query_id
stringlengths
32
32
query
stringlengths
7
129k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
f8d08c3498a978fdb4fda1619f5ec71a
optional int64 current_allocated_bytes = 3;
[ { "docid": "3290c1445a8fe471cc58acc88aaa1f4b", "score": "0.7482174", "text": "@java.lang.Override\n public long getCurrentAllocatedBytes() {\n return currentAllocatedBytes_;\n }", "title": "" } ]
[ { "docid": "3d28502f31a7e683a8b4467bcc5b2133", "score": "0.8538964", "text": "long getCurrentAllocatedBytes();", "title": "" }, { "docid": "05b693251411f6b4c066b695778781b0", "score": "0.78241915", "text": "long getCurrentAcquiredBytes();", "title": "" }, { "docid": "00a297ce9cd6387d72019aa4ab350190", "score": "0.75907266", "text": "@java.lang.Override\n public long getCurrentAllocatedBytes() {\n return currentAllocatedBytes_;\n }", "title": "" }, { "docid": "d2019ca0dd1a5823125aaad077f83bcc", "score": "0.7286105", "text": "long allocated();", "title": "" }, { "docid": "2eb32177443d2c4ee14ec3c00ba6e132", "score": "0.7030587", "text": "long getBufferRetainedSizeInBytes();", "title": "" }, { "docid": "94d3dec5f3c63f0c315c4733f472721c", "score": "0.6935353", "text": "int getCurrentSizeGb();", "title": "" }, { "docid": "b68ad7f77a055bef26ec8564621da2a5", "score": "0.69203144", "text": "public long getCurrentSize();", "title": "" }, { "docid": "afcfa9c6f4817abad1ecbcb8936f5312", "score": "0.69120556", "text": "public static native long getTotalBytesAllocated();", "title": "" }, { "docid": "6da581bd2632e954c30932087b6f8229", "score": "0.68974525", "text": "public long getAllocatedSpace();", "title": "" }, { "docid": "46fd6701467a069fb7b4ff723fe861d4", "score": "0.68355423", "text": "public abstract long getCurrentTotalSize();", "title": "" }, { "docid": "f3cf87e936e438406fdd2f7e39f3ab45", "score": "0.6682021", "text": "default int getUsedCapacity()\n {\n return -1;\n }", "title": "" }, { "docid": "7e06f3a1cfa5be6c91150356a3813e56", "score": "0.66333294", "text": "int getLocalMaxMemory();", "title": "" }, { "docid": "8c762803f96986b257347f5a780e83c0", "score": "0.65753394", "text": "default int getTotalCapacity()\n {\n return -1;\n }", "title": "" }, { "docid": "b44fe5a6539f4c927cc64527853ab5be", "score": "0.6556686", "text": "public void allocate(long bytes);", "title": "" }, { "docid": "8cb0525db0a037014ca8a74c42ffc7d0", "score": "0.6556304", "text": "@Override\n public long ramBytesAllocated() {\n return RamUsageEstimator.NUM_BYTES_OBJECT_HEADER + Integer.BYTES * 2 + Float.BYTES;\n }", "title": "" }, { "docid": "55f6afed9bfb1345447dda855bbcc792", "score": "0.65337807", "text": "public long memUsing();", "title": "" }, { "docid": "37fe718ab2ad7c254845d5e9380900bf", "score": "0.6517426", "text": "public int getMaxAllocatedStorage() { return maxAllocatedStorage; }", "title": "" }, { "docid": "9ef8bfc2d3c95481e098bbfe18a3dee3", "score": "0.6515674", "text": "int memSize() {\n return BASE_NODE_SIZE + 3 * 4;\n }", "title": "" }, { "docid": "0022a4e51231ef1573871135c85656f6", "score": "0.65123034", "text": "@java.lang.Override\n public int getCurrentSizeGb() {\n return currentSizeGb_;\n }", "title": "" }, { "docid": "90e360c4993a082a434871f0d692d02f", "score": "0.6481461", "text": "int getBytesAvailable();", "title": "" }, { "docid": "671c547e99af6c926db71782f32d2032", "score": "0.64802796", "text": "int getConsumedMemory();", "title": "" }, { "docid": "747a0d09fe8228cb9824a348d43c6d11", "score": "0.6462606", "text": "boolean hasCurrentAllocatedBytes();", "title": "" }, { "docid": "e3632e9970f85aa9d2b0df1d49a76e9d", "score": "0.64583516", "text": "public abstract long getCapacity();", "title": "" }, { "docid": "3610bcd828f6e3eee9cb95ff716916d9", "score": "0.64123195", "text": "@java.lang.Override\n public int getCurrentSizeGb() {\n return currentSizeGb_;\n }", "title": "" }, { "docid": "857313e8210c4d3ab1d645c5fbf37b05", "score": "0.63955957", "text": "int getCurrentSize();", "title": "" }, { "docid": "5972f240e44b262558c42680e762c0b5", "score": "0.638675", "text": "public final int writeSizePlaceHolder()\n {\n return aboffset++;\n }", "title": "" }, { "docid": "c6f2cf4cc4371b956719672d7f71a4a8", "score": "0.636903", "text": "int getMemory();", "title": "" }, { "docid": "864090cbec0c3b9a612e01e0b655d265", "score": "0.63275844", "text": "int maxWriteBufferNumberToMaintain();", "title": "" }, { "docid": "53e8c699ef291cd81b1ab7b0a15009fd", "score": "0.63239104", "text": "public String getCurrent_allocated() {\n return current_allocated;\n }", "title": "" }, { "docid": "1cba2f0e5f65c986179b3d38b10929bd", "score": "0.6323661", "text": "public int getCurrentSize()\r\n {\r\n return currentSize;\r\n }", "title": "" }, { "docid": "20f9164a2668146d5d39a75d3484a1b9", "score": "0.6323488", "text": "public int getCurrentSize(){\r\n\t\treturn size;\r\n\t}", "title": "" }, { "docid": "79e3b3df53993d95fef2630f007f8635", "score": "0.6319577", "text": "@Override\r\n\tpublic int spaceInGB() {\n\t\treturn 64;\r\n\t}", "title": "" }, { "docid": "219cbb99500f5e8773e67a997df614c7", "score": "0.6318585", "text": "public long getFree() { return free; }", "title": "" }, { "docid": "8f70495ecaefe86bf00e2ab745a877e2", "score": "0.6316235", "text": "public long getCapacity();", "title": "" }, { "docid": "862e95da372d5316f9e177866b752928", "score": "0.6311497", "text": "public int getSizeInBytes();", "title": "" }, { "docid": "8356eac45b39161d160967b874be249a", "score": "0.62970805", "text": "@Override public long getAllocatedLength() {\n return dataAllocatedSize;\n }", "title": "" }, { "docid": "55c07f1a4bd23a070b9d5fdcc7449544", "score": "0.6293837", "text": "@java.lang.Override\n public boolean hasCurrentAllocatedBytes() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "title": "" }, { "docid": "10b70efe300924f04d754cd38484bc20", "score": "0.62927383", "text": "@java.lang.Override\n public boolean hasCurrentAllocatedBytes() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "title": "" }, { "docid": "8a6ce8563ca433f1f6816dd7fd23f7bf", "score": "0.62908345", "text": "public abstract int sizeInBytes();", "title": "" }, { "docid": "a67949f3ad43c24bf3b7b618b26fa72c", "score": "0.6288123", "text": "protected long getMemorySizeIncludedByParent() {\n return 0;\n }", "title": "" }, { "docid": "ec2fe495a1442ba0b3856a4006287f5c", "score": "0.6275958", "text": "public long getUsedSize();", "title": "" }, { "docid": "0c7ad2cfdd3721cd456e96bf6d777db6", "score": "0.6254461", "text": "public int usedSize() {\r\n\t\treturn usedSize;\r\n\t}", "title": "" }, { "docid": "769ff7f51dcc8e65354c060d6e2fec23", "score": "0.6242811", "text": "private long getAvailable()\n {\n long count = getByteCount();\n return (index == 0) ? maxFirstVolumeSize - count : maxVolumeSize - count;\n }", "title": "" }, { "docid": "33bcb8d86f2cdd3df4f8ff9ca9c45c83", "score": "0.6234017", "text": "public long getUsed() { return used; }", "title": "" }, { "docid": "24ba41101311820cd56e88d073fc0304", "score": "0.62329704", "text": "public int getSize(){\n //To be written by student\n return localSize;\n }", "title": "" }, { "docid": "f0a3e22618de64203663560d698fd828", "score": "0.6231702", "text": "public String getTotal_allocated() {\n return total_allocated;\n }", "title": "" }, { "docid": "b73b07fdd25ddfdddbe0aaf8517e4169", "score": "0.62131655", "text": "public abstract long getUsableSpace() throws Exception;", "title": "" }, { "docid": "6660b1571c87694c7a1a3b6df253ce0a", "score": "0.62036353", "text": "int getMaximumQueueMemory();", "title": "" }, { "docid": "c43109efe61fb69dbbf8997f84758dbf", "score": "0.61813694", "text": "public int getByteSize();", "title": "" }, { "docid": "b4f09e6c63401b0377625c7bec6391fc", "score": "0.6171343", "text": "int getMem_limit();", "title": "" }, { "docid": "29a0d4d82ba6db35c841f59c12fb734c", "score": "0.61649436", "text": "int getMemorySizeGb();", "title": "" }, { "docid": "bd8f25fd2805cecfe1a69a0a479f9904", "score": "0.6159084", "text": "long getVirtualMemory();", "title": "" }, { "docid": "03fd030354f4c3bc0be4f8f9780c1d60", "score": "0.6156861", "text": "private int figureBufferAllocationFactor() {\n return (int) Math.min(Math.max(2L, entries() >> 10),\n Math.min(64, maxChunksPerEntry()));\n }", "title": "" }, { "docid": "ed34554ec90d5bd4b0f38567eb72db8d", "score": "0.61527336", "text": "Long getTotalSize() throws RuntimeException;", "title": "" }, { "docid": "f26b941b854b3280edbae7e7958389b1", "score": "0.6152566", "text": "public Integer getSize()\n/* */ {\n/* 134 */ return this.size;\n/* */ }", "title": "" }, { "docid": "79e1edbeabdc24627844a5782e96f606", "score": "0.6143109", "text": "long getResidentMemory();", "title": "" }, { "docid": "17822617822076dd0006cd7203a04db5", "score": "0.6139048", "text": "HostMemoryBuffer allocate(long bytes);", "title": "" }, { "docid": "11d04278b8b8d865bade88befb3a2c04", "score": "0.6131917", "text": "int getCurrentAcquiredBuffers();", "title": "" }, { "docid": "a0d0231aeedb2e5bb68f194495b29047", "score": "0.6117709", "text": "@Override public int getCurrentBufferSize() {\n return 50 * 1024;\n }", "title": "" }, { "docid": "f49470879882f7cec6f1c4dd5d193dba", "score": "0.6110996", "text": "@Override\n\t\t\tpublic long getMemoryUse() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "f739e10193fc021c328f3aa9e4025455", "score": "0.6102847", "text": "public Builder setCurrentAllocatedBytes(long value) {\n bitField0_ |= 0x00000001;\n currentAllocatedBytes_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "0d05bda9a4d08c9db5b735f841558a67", "score": "0.6095835", "text": "public int getRecordSizeInMemory()\n {\n return objectByteifyer.getRecordSizeInMemory();\n }", "title": "" }, { "docid": "0abd06990a8f1494e8637b500f1e67d9", "score": "0.60951173", "text": "int getCapacity();", "title": "" }, { "docid": "4d7face38deed82aac9e2c8bf9093e98", "score": "0.6094494", "text": "public int getCapacity();", "title": "" }, { "docid": "6559a5048840f0022b8090f7e0b37156", "score": "0.6083525", "text": "public void addToCurrent(long sizeBytes)\r\n {\r\n myCurrentSizeBytes += sizeBytes;\r\n }", "title": "" }, { "docid": "90d3d9ed4a99338cab6a6457bcfe8fd0", "score": "0.60832274", "text": "public int getRemainingSpaceSize(){\n return (blocks - maxPartitions) - 1 - 1;\n }", "title": "" }, { "docid": "e6d505f1c798720b7bf85789ae82ab5b", "score": "0.6077791", "text": "public abstract int capacity();", "title": "" }, { "docid": "94d9af525129149daf32fbf4ee3b0ca8", "score": "0.60708106", "text": "long getTotalBytesServed();", "title": "" }, { "docid": "c1ce7c7eb6909a676a3bc49669222377", "score": "0.60618395", "text": "abstract long maxRingSize();", "title": "" }, { "docid": "d9a2102a7d3c17e9685246bfecb26b18", "score": "0.6058408", "text": "public int getAllocatedStorage() {\n\t\treturn allocatedStorage;\n\t}", "title": "" }, { "docid": "92506baa05faf847fa77447e6b02eda8", "score": "0.60544086", "text": "public int getCurrentSize() {\n return numberOfEntries;\n }", "title": "" }, { "docid": "97a8e638f88a7d1709195afb442ff92d", "score": "0.60541135", "text": "int getNumTotalUnSpillBuffers();", "title": "" }, { "docid": "97cd8fdcd9b1cdb016895f1c9f24eba6", "score": "0.6052478", "text": "@Override\n\t public int getSizeBytes(){ \n\t\t return sizeOf(); \n\t}", "title": "" }, { "docid": "97cd8fdcd9b1cdb016895f1c9f24eba6", "score": "0.6052478", "text": "@Override\n\t public int getSizeBytes(){ \n\t\t return sizeOf(); \n\t}", "title": "" }, { "docid": "ae03aa567987e1906260e37cdaa614bb", "score": "0.60478944", "text": "int getBufferSize();", "title": "" }, { "docid": "f3fcbdba9a4b5829f99a4de19914dff4", "score": "0.6045943", "text": "long byteSize();", "title": "" }, { "docid": "98f4b9314a21890e4611fe3c4d9d80cd", "score": "0.60436416", "text": "public long getStorageInBytes() {\n\t\treturn storageInBytes;\n\t}", "title": "" }, { "docid": "5b0bd174e460f533685b3e6815421952", "score": "0.604086", "text": "int getAllocatedQuantityDelta();", "title": "" }, { "docid": "ed7c4364db52675d92f0e754bcd66db5", "score": "0.6040505", "text": "public int GetCapacity() {\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "be681547142af85fd1d7893e95e69c54", "score": "0.6035524", "text": "public static long getCurrentFreeMemoryBytes() {\r\n\t long heapSize = Runtime.getRuntime().totalMemory();\r\n\t long heapRemaining = Runtime.getRuntime().freeMemory(); \r\n\t long nativeUsage = Debug.getNativeHeapAllocatedSize();\r\n\r\n\t return Runtime.getRuntime().maxMemory() - (heapSize - heapRemaining) - nativeUsage; \r\n\t }", "title": "" }, { "docid": "ace4625358166b0b44cda946c3fc9f83", "score": "0.6025671", "text": "int bufferSize();", "title": "" }, { "docid": "ace4625358166b0b44cda946c3fc9f83", "score": "0.6025671", "text": "int bufferSize();", "title": "" }, { "docid": "04cf5936c7360a4abe37546b7506627d", "score": "0.6022528", "text": "public int getCapacity()\n {return this.capacity;}", "title": "" }, { "docid": "f8225af91c273fa0e64df7f4fae144e2", "score": "0.60206586", "text": "public long getByteOffset()\n/* */ {\n/* 89 */ return this._totalBytes;\n/* */ }", "title": "" }, { "docid": "d4871c831d7bb2db1938560793afb855", "score": "0.60159355", "text": "public int getWriteSize() {\n return this.itsTop + 2;\n }", "title": "" }, { "docid": "1c25a91f6ae5421aa2f4bfa20c91be2f", "score": "0.6015931", "text": "long getWalBytes();", "title": "" }, { "docid": "900254e2f7918567c9815ebfc6769846", "score": "0.60028756", "text": "public int getCapacity()\r\n {\r\n return this.initialCapacity;\r\n }", "title": "" }, { "docid": "6427a0310f815cec907dcfb4805d7d0a", "score": "0.6001194", "text": "public long getFreeSpace();", "title": "" }, { "docid": "c9d102183765ab6bca5dfe3f0b22a99a", "score": "0.5991349", "text": "@Override\n\tpublic int measureByteSize() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "46b4c39a403c2ef7992d5ceff8b97f7a", "score": "0.59871626", "text": "private void setupRealCapacity() {\n\t\trealPhysicalCapacity = userPhysicalCapacity + 1;\n\t}", "title": "" }, { "docid": "107b32ef4a29154185b0898976a7244b", "score": "0.5983162", "text": "public long getAvailableBytes() {\n return mStat.f_bavail * mStat.f_frsize;\n }", "title": "" }, { "docid": "6a428ca85bfd1ce3552617790856370d", "score": "0.5981508", "text": "public long size() { int o = __offset(6); return o != 0 ? (long)bb.getInt(o + bb_pos) & 0xFFFFFFFFL : 0L; }", "title": "" }, { "docid": "4ed759adb1d9011fb249c0fda0dc2b0b", "score": "0.598146", "text": "public int getCurrentSize() {\r\n\t\treturn numberOfEntries;\r\n\t}", "title": "" }, { "docid": "2fd5726dbdad4276929a716396b06dc8", "score": "0.59723914", "text": "public int getLength() \n {\n return bb.capacity();\n }", "title": "" }, { "docid": "c2725fa80f5c340b384cf9c35b244eb3", "score": "0.59665823", "text": "long maxCompactionBytes();", "title": "" }, { "docid": "fab9a9da276a8698394486e194c8b41c", "score": "0.59651196", "text": "public int capacity();", "title": "" }, { "docid": "fab9a9da276a8698394486e194c8b41c", "score": "0.59651196", "text": "public int capacity();", "title": "" }, { "docid": "ac4d37de34eeaf846d8ab94bcb67590d", "score": "0.5953899", "text": "public final Number getSizeBytes() {\n return this.sizeBytes;\n }", "title": "" }, { "docid": "487aad524ab416349b13b1f1ebec5d5e", "score": "0.5951091", "text": "public long getBytesUsed() {\n return containerData.getBytesUsed();\n }", "title": "" }, { "docid": "65bbfcdf22f15f7ae7280aea70aa8fb8", "score": "0.59507644", "text": "public int getWastedSpace(){\n return wastedSpace;\n }", "title": "" } ]
d77325806b8fe8479c9e99689a5de841
Returns the array of integers that was generate
[ { "docid": "c8ff21e75fab2c723a58e16bad67d2a2", "score": "0.6821724", "text": "public Integer[] getData(){\n\t\treturn array;\n\t}", "title": "" } ]
[ { "docid": "1363195fc15b5171160da10fd796cace", "score": "0.77701485", "text": "public static int[] get_array(){\n // complete this function\n int[] array = new int[]{22, 28, 14, 14, 87, 85, 81, 83};\n return array;\n }", "title": "" }, { "docid": "68257e49b15a41a352458a9b2418147e", "score": "0.769648", "text": "public static int[] get_array(){\n // complete this function\n int[] array = new int[]{22, 28, 14, 89, 87, 85, 81, 83};\n return array;\n }", "title": "" }, { "docid": "48263415f338c4e0c47c0dd48cc9c922", "score": "0.76674175", "text": "public int getNumber_int_array() {\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n return number_int_array;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n }", "title": "" }, { "docid": "db81df37e6b32c0b45b6402da99ae4db", "score": "0.75806445", "text": "private int[] generateNumArray() {\n\t\tint size = difficulty == 1 ? 3 : 5;\n\t\tint min = difficulty == 1 ? 100 : 10;\n\t\tint max = difficulty == 1 ? 1000 : 100;\n\t\t\n\t\tRandom rand = new Random();\n\t\tint[] numArray = new int[size];\n\t\tfor(int i = 0; i < size; ++i) {\n\t\t\t\n\t\t\tnumArray[i] = rand.nextInt(max - min) + min; \n\t\t}\n\t\treturn numArray;\n\t}", "title": "" }, { "docid": "fd8f49d60af1d2cb45615eb17df81138", "score": "0.75573516", "text": "public int[] array_of() {\r\n\t\tif(this.bytes == null) return null;\r\n\t\telse {\r\n\t\t\tint length = (int) Math.ceil(bytes.length / INT_BYTES);\r\n\t\t\tint[] int_array = new int[length]; int value, product;\r\n\t\t\tfor(int k = 0; k < length; k++) {\r\n\t\t\t\tvalue = 0; product = 1;\r\n\t\t\t\tfor(int i = 0; i < INT_BYTES; i++) {\r\n\t\t\t\t\tvalue = value + bytes[4 * k + i] * product;\r\n\t\t\t\t\tproduct = product * INT_STEP;\r\n\t\t\t\t}\r\n\t\t\t\tint_array[k] = value;\r\n\t\t\t}\r\n\t\t\treturn int_array;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "184da69cec252c54f48feb4bb6aacc2f", "score": "0.74972713", "text": "public int[] storeNumsInArray() {\n\t\tint[] arr = new int[100];\n\t\t\n\t\tfor(int i = 0; i < 100; i++) {\n\t\t\tarr[i] = i + 1;\n\t\t}\n\t\treturn arr;\n\t}", "title": "" }, { "docid": "f5e1fc8d8c18158991860c4e12417574", "score": "0.7337971", "text": "private int [] getArray() { return numbers; }", "title": "" }, { "docid": "8c80a6cfd16f281a906953f40f89d6a8", "score": "0.7304214", "text": "public static int[] createArray() {\n\t\tint[] newarray = new int[100];\n\t\tfor (int i = 0; i < newarray.length; i++) {\n\t\t\tnewarray[i] = (int)(Math.random() * 100) + 1;\n\t\t}\n\t\treturn newarray;\n\t}", "title": "" }, { "docid": "564ea1b94598670a6511e6e9dc3f35ae", "score": "0.7291487", "text": "public static int[] get_array() {\n // complete this function\n int[] array = {};\n return array;\n }", "title": "" }, { "docid": "29da42e4d048181cc98fc2932e354257", "score": "0.7158999", "text": "public int[] getArrayOfInteger() {\n return arrayOfInteger;\n }", "title": "" }, { "docid": "0b7dd118fd1bc094af4e4397c49409b9", "score": "0.70972526", "text": "public static int [] getIntArr(){\n\t\tTextIO.put(\"enter the number of element\");\n\t\tint n=TextIO.getlnInt();\n\t\tint [] arr = new int [n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tTextIO.putln(\"enter the element no.\"+(i+1));\n\t\t\tarr[i] = TextIO.getlnInt();\n\t\t}\n\t\treturn arr;\n\t}", "title": "" }, { "docid": "8dc2e45fef88efb090216debbfc5000d", "score": "0.70756704", "text": "public static int[] genArray()\n\t{\n\t\tfinal int maxarraysize = 1100;\n\t\tfinal int minarraysize = 900;\n\t\tfinal int maxnumber = 10000;\n\t\tint sizeofarray = minarraysize + (int)(Math.random() * ((maxarraysize - minarraysize) + 1));\n\t\tint[] createdarray = new int[sizeofarray];\n\t\tfor(int x = 0; x < createdarray.length; x++)\n\t\t\tcreatedarray[x] = 1 + (int)(Math.random() * maxnumber);\n\t\tcreatedarray = selectionSort(createdarray);\n\t\treturn createdarray;\n\t}", "title": "" }, { "docid": "6f5a69ec1d43fb52ba4972e8e66f5add", "score": "0.70482194", "text": "private int[] getArray(int n) {\n int[] vals = new int[n];\n for(int i =0; i < n; i++) {\n vals[i] = getNext();\n }\n return vals;\n }", "title": "" }, { "docid": "0fd9f1c3ba4d13df9e975a1d29f3f78a", "score": "0.6983108", "text": "public int[] toArray() {\n\t\treturn new int[] {}; // replace with your code\n\t}", "title": "" }, { "docid": "ba4ca805ada952649d689333cd9eea09", "score": "0.69736785", "text": "public static int[] createIncrementArray() {\n List<Integer> list = new ArrayList<>();\n int k = 0; long r = 0;\n list.add(1);\n \n while(true) {\n r = (long) (pow(4,k) + 3.*pow(2,k-1) + 1);\n if (r >= Integer.MAX_VALUE) break;\n if (r > 0) list.add((int)r);\n k++;\n }\n \n int[] z = (int[]) unbox(list.toArray(new Integer[0]));\n shellSort(z);\n return z;\n }", "title": "" }, { "docid": "f8362eb3a7943c10ab92b498a6a2ab36", "score": "0.69600284", "text": "private int [] build_array(){\n //Random class to create random ints\n Random rand = new Random();\n\n //Random size for array\n int size = rand.nextInt(MAX_SIZE - MIN_SIZE) + MIN_SIZE;\n\n //Allocate array\n int [] array = new int[size];\n \n //Set array elements to random integers\n for(int i = 0; i < size; ++i)\n array[i] = rand.nextInt(MAX_INT);\n\n return array;\n }", "title": "" }, { "docid": "97e3cdcbd5492c441410af84916f005a", "score": "0.69406086", "text": "public int[] getIntArray() {\n return intArray;\n }", "title": "" }, { "docid": "19a3817381ee829c29d4d8e06f9eb92a", "score": "0.6901993", "text": "public int[] intArray() {\n return blocks;\n }", "title": "" }, { "docid": "7a539e01361e75d14d121f4dc1c1597f", "score": "0.68812853", "text": "int getArray();", "title": "" }, { "docid": "fe268336d75bfa32d8b02454f398dfed", "score": "0.6838692", "text": "int[] data();", "title": "" }, { "docid": "ee5d484e3eb13447c7c161e52897cdd0", "score": "0.68260425", "text": "private static int[] getP(){\n\t\tint [] P = {16,7,20,21,29,12,28,17,1,15,23,26,5,18,31,10,2,8,24,14,32,27,3,9,19,13,30,6,22,11,4,25};\n\t\treturn P;\n\t}", "title": "" }, { "docid": "5d97b0a3a7e966ae6214e3a0092b1c53", "score": "0.6824215", "text": "public abstract int [] getValues();", "title": "" }, { "docid": "7bd8fd538be3a9d3df1af9d198f84f75", "score": "0.68018305", "text": "public int[] allBoxNums(){\r\n\t\tint[] a = {1,2,3};\r\n\t\treturn a;\r\n\t}", "title": "" }, { "docid": "1ccc1b2e48bf68351decf0d0b7fcc1ec", "score": "0.68014455", "text": "public int[] getOutputCountRange()\n {\n int[] result = new int[2];\n result[0] = 4;\n result[1] = 4;\n return result;\n }", "title": "" }, { "docid": "bf9fa5c13df060b37e473bea7e609ea6", "score": "0.67766273", "text": "public int[] generateRandomArray() {\r\n\t\t// Loops n amount of times and adds random integer to the array.\r\n\t\tfor(int i = 0; i < array.length; i++) {\r\n\t\t\tif(!random.nextBoolean()) {\r\n\t\t\t\tarray[i] = random.nextInt();\r\n\t\t\t} else {\r\n\t\t\t\t//If boolean is false, multiply value by -1 to \r\n\t\t\t\t// add a negative value to the array.\r\n\t\t\t\tarray[i] = random.nextInt() * -1;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn array;\r\n\t}", "title": "" }, { "docid": "a60f4b60cff2ea83be3076c824444045", "score": "0.67391205", "text": "private static int[] generateArray(long seed) {\r\n int val;\r\n int[] arr = new int[N];\r\n Random generator = new Random(seed);\r\n\r\n for(int i = 0; i < N; i++) {\r\n val = generator.nextInt(K);\r\n\r\n arr[i] = val;\r\n }\r\n return arr;\r\n }", "title": "" }, { "docid": "bdf124c75f7149d4f6ed4be3647f358f", "score": "0.6716637", "text": "public static int[]crearArray() {\n int tipos[] = new int [5];\n for (int i=0; i<tipos.length; i++) {\n tipos[i] = (int)(Math.random()*3); //Ataque enemigo = 0/A, Caida = 1/B, Bomba = 2/C\n }\n return tipos;\n }", "title": "" }, { "docid": "72777f7faf05daef9fca8d42f5ca6f5c", "score": "0.670607", "text": "public static int[] makeArray (){\r\n //Local variables\r\n Random generator = new Random();\r\n int arraySizeMax = 10, arraySizeMin = 5, valueMax = 4, valueMin = 0;\r\n int arrayLength = generator.nextInt(arraySizeMax - arraySizeMin + 1) + arraySizeMin;\r\n \r\n int[] numArray = new int [arrayLength];\r\n for (int i = 0; i < numArray.length; i ++){\r\n int randNum = generator.nextInt(valueMax - valueMin + 1) + valueMin;\r\n numArray[i] = randNum;\r\n }\r\n return numArray;\r\n }", "title": "" }, { "docid": "c8f453ca16090b9c45a305b81217e806", "score": "0.66805774", "text": "public int[] getNumberOfOnes(){\n int[] numOnes = new int[getN()];\n for (int i = 0; i < getMU(); i++) {\n int[] bitstring = getArray().get(i).getBitstring();\n for (int j = 0; j < getN(); j++) {\n numOnes[j] += bitstring[j];\n }\n }\n return numOnes;\n}", "title": "" }, { "docid": "44f5f0b0a2ac4579a2186c49cbed8d25", "score": "0.6647213", "text": "int[] getXcords();", "title": "" }, { "docid": "151c2a5febc0182b6b177811a36695fa", "score": "0.66422963", "text": "private int[] toArray() {\n String[] s = this.tostring().split(\",\");\n // make sure we have space to add the new integers\n int[] output = new int[s.length];\n\n for (int i=0;i<s.length;i++) // loop through values and parse to an integer\n output[i]=Integer.parseInt(s[i]);\n // finally, give back our integer array to whoever called us\n return output;\n }", "title": "" }, { "docid": "bcb1e9a14543dbb6ae510ecd4c016533", "score": "0.6641572", "text": "static int[] arrayGen(int indices){\n\t\t\n\t\t//create an Integer ArrayList from 1 - indices.\n\t\tArrayList<Integer> randPool = new ArrayList<Integer>();//list of ordered integers from which random numbers are pulled. Ensures no repeats.\n\t\tint[] randArr = new int[indices];\n\t\tint randIndex;//index of randomly found element in randPool.\n\t\t\n\t\tfor(int i = 0; i < indices; i++){\n\t\t\trandPool.add(i);\n\t\t}\n\t\t//create an empty int[] of length indices.\n\t\t//for indices of empty int[] pick a random index from the ArrayList and assign that value to the current index of int[]\n\t\tfor(int i = 0; i < indices; i++){\n\t\t\t\n\t\t\t//get random element of ArrayList and assign it to randArr.\n\t\t\trandIndex = (int)(Math.random() * randPool.size());\n\t\t\trandArr[i] = randPool.get(randIndex);\n\t\t\trandPool.remove(randIndex);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn randArr;\n\t\t\n\t}", "title": "" }, { "docid": "7b571aa571361605fc2ba4ec8ff06969", "score": "0.6630711", "text": "public Integer[] random(int n){\n Integer[] intArray = new Integer[n];\n for(int i=0;i<n;i++){\n intArray[i] = new Random().nextInt();\n }\n return intArray;\n }", "title": "" }, { "docid": "f2be801f6793b233181833d41ca7e633", "score": "0.65919167", "text": "public int[] getInputCountRange()\n {\n int[] result = new int[2];\n result[0] = 8;\n result[1] = 8;\n return result;\n }", "title": "" }, { "docid": "0dd0900ae7dcade92fba2b1644eb1468", "score": "0.6585618", "text": "public static int[] arrayWithNum(){\n int[] array = new int[3];\n for (int c = 0; c < array.length; c += 1){\n array[c] = random();\n }\n //sort array for proper answer\n Arrays.sort(array);\n return array;\n }", "title": "" }, { "docid": "04305a6fa5b76495888369ffa7d44580", "score": "0.657083", "text": "public StructureModifier<int[]> getIntegerArrays() {\n \t\treturn structureModifier.withType(int[].class);\n \t}", "title": "" }, { "docid": "a750fe2b0312e0daf2b519ca14f89e2f", "score": "0.65589535", "text": "public int[] get() {\n return ArrayUtils.toPrimitive(val.toArray(new Integer[0]));\n }", "title": "" }, { "docid": "0857b85e73faae64cf2c5381c8266c34", "score": "0.6539433", "text": "public static int[] RandList(){\n Random num = new Random();\n System.out.println(num.nextInt());\n return null;\n }", "title": "" }, { "docid": "ae50115b4918ee698d32bd31138d813d", "score": "0.65359515", "text": "public Package1[] getIntegers() {\n\t\treturn PACKAGE1_ARRAY.clone();\n\t}", "title": "" }, { "docid": "126ad2a8e7d925ea7cd8a03b3beccc09", "score": "0.6526564", "text": "public int[] toArray() {\n int[] result = new int[width];\n int im = 0;\n while (im < width) { \n result[im] = meter[im];\n im ++;\n } // while im\n return result;\n }", "title": "" }, { "docid": "3f0cf1253e7cb6eaa733c3034bf064cd", "score": "0.6514939", "text": "public int[] getArray()\n\t{\n\t\tint[] arr = new int[this.responseTime.size()];\n\t for (int i=0; i < arr.length; i++)\n\t {\n\t arr[i] = this.responseTime.get(i).intValue();\n\t }\n\t \n\t return arr;\n\t}", "title": "" }, { "docid": "01e34fe8b0dbe6bacbdd76eb018022e1", "score": "0.6509667", "text": "public static int [] generateArray(int N){\r\n\t int [] array = new int[N];\r\n\t Random rand = new Random();\r\n //using current time to make sure we get a random seed \r\n Long seed = System.currentTimeMillis();\r\n rand.setSeed(seed);\r\n\t for(int i=0; i<N;i++)\r\n\t {\r\n\t array[i] = rand.nextInt(maxInteger);\r\n\t }\r\n\t return array;\r\n\t}", "title": "" }, { "docid": "921976c8805f60f1bf743db03510720a", "score": "0.6481703", "text": "static int[] randomIntsArray(int length, int lowerLimit, int upperLimit) {\r\n return R.ints(length, lowerLimit, upperLimit+1).toArray();\r\n }", "title": "" }, { "docid": "802148fe88ab490896cfe468a0b9b40e", "score": "0.6474421", "text": "public static int[] arraymake(int x) {\n\t\tint[] array = new int[x];\r\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\tarray[i] = (int) (Math.random() * 128);\r\n\t\t}\r\n\t\treturn array;\r\n\t}", "title": "" }, { "docid": "2e32c41266d9345e8cc40e056544a8f3", "score": "0.6469033", "text": "private int[][] initialise() {\n\n\t\tint[][] output = new int[height][width];\n\n\t\tArrayList<Integer> numbers = new ArrayList<Integer>();\n\n\t\t//build an array to pull the numbers from, ensures they are used only once.\n\t\tfor (int i = 1; i <= height * width; i++) {\n\n\t\t\tnumbers.add(i); \n\n\t\t}\n\n\t\t//use a random to pick the numbers from the array.\n\t\tRandom r = new Random();\n\n\t\tfor (int i = 0; i < height; i++) {\n\t\t\tfor (int j = 0; j < width; j++) {\n\n\t\t\t\tint number = numbers.get(r.nextInt(numbers.size()));\n\t\t\t\toutput[i][j] = number;\n\t\t\t\tnumbers.remove(numbers.indexOf(number));\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn output;\n\t}", "title": "" }, { "docid": "a8c6ec7c46b65d52acca1306475e3bda", "score": "0.6460875", "text": "public int[][] returnArrayOfTimes()\n\t{\n\t\tint[][] array = new int[500][500];\n\t\tfor(int y=0; y<500; y++)\n\t\t{\n\t\t\tfor(int x=0; x<500; x++)\n\t\t\tarray[y][x]=(howManyTimes(xValuesArray[y],yValuesArray[x],0));\n\t\t}\n\t\treturn array;\n\t}", "title": "" }, { "docid": "f08fd8a4d14af1af9698803e25ecb21f", "score": "0.6456782", "text": "public static List<int[]> randomArrays()\n\t{\n\t\tRandom r = new Random();\n\t\tint len = 0, val = 0, arrs = 0;\n\t\tint[] arr;\n\t\tList<int[]> arrOriginal = new ArrayList<>();\n\t\tarrs = r.nextInt(100)+100;\n\t\tSystem.out.print(arrs);\n\t\tfor(int a = 0; a < NUM_ARRAYS; a++)\n\t\t{\n\t\t\tdo{\n\t\t\t\tlen = r.nextInt(MAX_INDECES + 1);\n\t\t\t}while(len < 1);\n\t\t\t\tarr = new int[len];\n\t\t\t\t\n\t\t\t\tfor(int b = 0; b < arr.length; b++)\n\t\t\t\t{\n\t\t\t\t\tdo{\n\t\t\t\t\t\tval = r.nextInt(MAX_VALUES+1);\n\t\t\t\t\t}while (val < 1);\n\t\t\t\t\tarr[b] = val;\n\t\t\t\t}\n\t\t\t\tarrOriginal.add(arr);\n\t\t}\n\t\treturn arrOriginal;\n\t}", "title": "" }, { "docid": "eadd451375116e0a1d7c1466b6230b4c", "score": "0.644947", "text": "public List<Integer> getListofNumbers();", "title": "" }, { "docid": "afca358430b821f980f655d9ec687e87", "score": "0.6448786", "text": "public int[] startGame()\n\t{\n\t\tgenerateRandomInts();\n\t\t\n\t\t// Note how we are initializing the return array\n\t\tint[] range = new int[]{m_lowInt, m_hiInt};\n\t\treturn range;\n\t}", "title": "" }, { "docid": "1d9d46557c0954e3356917e197952d04", "score": "0.64400524", "text": "public static int[] getRandomNumber(int totalData){\n \n int data[] = new int[totalData];\n for (int i=0;i<totalData;i++){\n int x = (int) ((Math.random()*((500-1)+1))+1);\n data[i]=x;\n }\n for(int i=0;i<data.length;i++){\n System.out.println(data[i]);\n }\n return data;\n }", "title": "" }, { "docid": "903fd53b13377d0363ec7f08461189d9", "score": "0.6430897", "text": "public int[] toArray() {\n return new int[0];\n }", "title": "" }, { "docid": "e3e6963244b5692e36ece2f3dc89289b", "score": "0.64270496", "text": "private static Integer[] generateArray(int size, int minNumber, int maxNumber) {\n Integer[] numberArray = new Integer[size];\n Random random = new Random();\n for (int curNumber = 0; curNumber < size; curNumber++) {\n numberArray[curNumber] = random.nextInt(maxNumber) + minNumber;\n }\n return numberArray;\n }", "title": "" }, { "docid": "b6bfc11fde530fc75d1bda5c9ce37e5c", "score": "0.6414707", "text": "public final int[] getVariableNumsArray() {\n return nums;\n }", "title": "" }, { "docid": "d1413dfdc0b665eea25ad3747fc9c04b", "score": "0.64003724", "text": "private static int[] genArray(int size, long seed)\n {\n\t Random rand = new Random(seed);\n\t int[] randArr = new int[size];\n\t for(int i = 0; i < randArr.length; i++)\n\t\t randArr[i] = rand.nextInt(size);\n\treturn randArr; \n }", "title": "" }, { "docid": "3d5144434598ba12cc552d2ca411a8d3", "score": "0.6372931", "text": "public long[] getIds()\n {\n return myIds.clone();\n }", "title": "" }, { "docid": "571834d113bb71517b2b2890f50e75bd", "score": "0.6370472", "text": "public int[] getElements() {\n return elements;\n }", "title": "" }, { "docid": "b05ffa1d2e4596fd867b812b2825e779", "score": "0.63649076", "text": "public int [] getResultadoDado() {\n\t\tint [] numeros=new int [2];\n\t\tRandom random= new Random();\n\t\tnumeros[0]= random.nextInt(6)+1;\n\t\tnumeros[1]= random.nextInt(6)+1;\n\t\t\n\t\tthis.resultadoDados = numeros;\n\t\treturn numeros;\n\t}", "title": "" }, { "docid": "c8d2976a285363ec5f6525faa68a08c7", "score": "0.6355414", "text": "public int[] getEachValue() {\r\n\t\tfinal int[] values = new int[this.nQuestionsSpeed];\r\n\t\tfor (int q = 0; q < values.length; q++) {\r\n\t\t\tvalues[q] = this.questions[q].getValue();\r\n\t\t}\r\n\t\treturn values;\r\n\t}", "title": "" }, { "docid": "995dd1f9f8e8535b631b1b2139aade7c", "score": "0.6352708", "text": "public int[] getValues()\r\n {\r\n return getValueList();\r\n }", "title": "" }, { "docid": "8b573361c41a6680e3384f05732b4c71", "score": "0.63449425", "text": "public int[] getGenotipo() { // método que retorna o genotipo (vetor decimal)\r\n return genotipo;\r\n }", "title": "" }, { "docid": "461e1ed74baa96a1174237f7ab5c591d", "score": "0.6343058", "text": "public static final int[] randIntArray(int length) {\n \tint[] ar = new int[length];\n for (int i = 0; i < length; ++i) {\n ar[i] = generator.nextInt();\n }\n return ar;\n }", "title": "" }, { "docid": "d7fd409266b3e3fbbcada0b9dff5535d", "score": "0.63417107", "text": "long[] ids();", "title": "" }, { "docid": "6129a0d24cd56825fc502c592b5ce773", "score": "0.632424", "text": "private static int[] getNums(int length, int size) {\n int[] nums = new int[length];\n\n Random rand = new Random();\n for (int i = 0; i < length; i++) {\n nums[i] = rand.nextInt(size);\n }\n\n return nums;\n }", "title": "" }, { "docid": "6c3fd7ac97b73cb2ba0401d274799bf0", "score": "0.63171333", "text": "static int[] initialize(int[] array){\n\t\tfor(int i=0;i<array.length;i++){\n\t\t\tarray[i]=(int)(Math.random()*9+1);\t\t\t\n\t\t}\n\t\treturn array;\n\t}", "title": "" }, { "docid": "bc5ffc6daba23e1a18abea83b28334ab", "score": "0.631627", "text": "public int[] getXs() {\n return xs;\n }", "title": "" }, { "docid": "4d45d17d9a3b298b5bf598e7a4afa259", "score": "0.62996936", "text": "public int getArray() \r\n\t {\n\t\t int sum = 0;\r\n\t\t for(int i=0; i<array.length; i++) \r\n\t\t {\r\n\t\t\t sum = sum + array[i];\r\n\r\n\t\t }\r\n\t\t return sum;\r\n\t}", "title": "" }, { "docid": "d1a7097bfc5a78ad2902c83ce3e28067", "score": "0.62991226", "text": "private int[] randomArrayGen(Integer size) {\r\n\r\n int result[] = new int[size];\r\n for (int i = 0; i < size; i++) {\r\n Integer newNumber = 0;\r\n if (i > 0) {\r\n do {\r\n newNumber = random.nextInt(boardLength - 1);\r\n } while (existInArray(newNumber, result));\r\n }\r\n\r\n result[i] = newNumber;\r\n }\r\n\r\n return result;\r\n }", "title": "" }, { "docid": "4bc2fc7e99fb0977be2e69ca1d7aa516", "score": "0.62966543", "text": "int[] flujo220V();", "title": "" }, { "docid": "cf4266623304ff102d37b04576a5ee5c", "score": "0.62936854", "text": "public static int[] generarCombinacion() {\n\r\n\t\tint[] numeros = new int[TAM];\r\n\t\tint i = 0;\r\n\t\tint b = 0;\r\n\r\n\t\t// cambiar esto para no for, sino para que si se repite no i++ y si no\r\n\t\t// que se quede hasta que no haya repetidos\r\n\t\tfor (i = 0; i < 6; i++) {\r\n\t\t\tnumeros[i] = 1 + (int) (Math.random() * 49);\r\n\t\t\twhile (b < i) {\r\n\t\t\t\tnumerosIguales(numeros, i);\r\n\t\t\t}\r\n\t\t\tb = 0;\r\n\t\t}\r\n\t\treturn numeros;\r\n\t}", "title": "" }, { "docid": "8a6364ccb1454a64bde36b17ee91a735", "score": "0.6292022", "text": "private Array2D<Integer> initIntArray() {\n Integer[][] intArray = {\n {75, 96, 3, 38},\n {15, 47, 93, 22},\n {61, 45, 37, 51},\n {77, 22, 16, 39}\n };\n return new Array2D<Integer>(intArray);\n }", "title": "" }, { "docid": "bebdc6045685697101a50355ed57616a", "score": "0.6288697", "text": "public static int[] getIntegers (int number){\n System.out.println(\"Enter \" + number + \" integer values.\\r\"); // this is going to print a message to enter your numbers (\\r)means it i gonna be in a new line!\n int[] values = new int[number]; // number is to how many elements are we going to assign the Array\n\n for (int i = 0; i<values.length; i++){\n values[i] = scanner.nextInt();\n }\n return values; // we returning the array into the calling process !!\n }", "title": "" }, { "docid": "f594a7bf1d6a65d6de86c0259952b0ac", "score": "0.6284248", "text": "private int[] createRandomArray(int length) {\n int[] numbers = new int[length];\n for (int i = 0; i < numbers.length; i++) {\n numbers[i] = random.nextInt(bound);\n }\n return numbers;\n }", "title": "" }, { "docid": "855d6dc3a3009d5b34344cd8988d96ef", "score": "0.6283535", "text": "int[] getGenerals() {\n return Arrays.stream(tiles)\n .filter(tile1 -> tile1.getClass().equals(GeneralTile.class))\n .sorted(Comparator.comparingInt(t -> t.getOwnerPlayerIndex().get()))\n .mapToInt(Tile::getTileIndex)\n .toArray();\n }", "title": "" }, { "docid": "00f8c4e7e6cfa11bb03f81821936ab31", "score": "0.62835145", "text": "private static Integer[] generateSedgewickIncrements() {\n List<Integer> list = new ArrayList();\n for (int i = 0; i < 16; i++) {\n int i1 = (int) (9 * Math.pow(4, i) - 9 * Math.pow(2, i) + 1);\n int i2 = (int) (Math.pow(4, i) - 3 * Math.pow(2, i) + 1);\n if (i1 > 0) {\n list.add(i1);\n }\n if (i2 > 0) {\n list.add(i2);\n }\n }\n Collections.sort(list);\n return (Integer[]) list.toArray();\n }", "title": "" }, { "docid": "c6faa345f4956df1edd244cf927738cf", "score": "0.6275755", "text": "public void generateArray(){\n array= new int[matrix.size()][matrix.size()];\n arrayRecovery=new int[matrix.size()][matrix.size()];\n for(int i =0; i < matrix.size(); i++){\n for(int j =0; j <matrix.size(); j++){\n array[i][j]= (Integer)matrix.get(i).get(j);\n arrayRecovery[i][j]= (Integer)matrix.get(i).get(j);\n }\n }\n}", "title": "" }, { "docid": "aca677c2119f95cc41217d1e35eba357", "score": "0.6268333", "text": "public static int[] randomArray(int number) \n{\n\n Random randomNumbers = new Random();\n int[] array;\n\n array = new int[number];\n for(int i=0; i<array.length; i++)\n {\n array[i] = randomNumbers.nextInt(1000);\n System.out.print(array[i]+ \" \"); \n }\n \n return array;\n \n}", "title": "" }, { "docid": "bafd7c11114029d40bbe20c930d1ed3a", "score": "0.6268165", "text": "public List<Integer> getValues();", "title": "" }, { "docid": "66072462adaf17995c6506e291c3499e", "score": "0.6268005", "text": "private static int[] toIntArray(ArrayList<Integer> a) {\n\t\tint[] ret = new int[a.size()];\n\t\tfor(int i = 0; i < ret.length; i++)\n\t\t\tret[i] = a.get(i);\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "037b3ffbcb46969c003a9176f0257117", "score": "0.6265179", "text": "public int[] Target();", "title": "" }, { "docid": "b449028c9aa1ca7f0f6538e8357a4ee7", "score": "0.6249334", "text": "public int[] getInts(int num) throws IOException{\n int[] back = new int[6];\n String[] file = OpenFile();\n back[0] = Integer.parseInt(file[num].substring(12,14));\n back[1] = Integer.parseInt(file[num].substring(16,18));\n back[2] = Integer.parseInt(file[num].substring(20,22));\n back[3] = Integer.parseInt(file[num].substring(24,26));\n back[4] = Integer.parseInt(file[num].substring(28,30));\n back[5] = Integer.parseInt(file[num].substring(32,34));\n return back;\n }", "title": "" }, { "docid": "1967deb1e98f03c32b7a26898fc44a9a", "score": "0.6246196", "text": "private static int[] genIds(int numProcesses) {\n\t\tHashSet<Integer> seen = new HashSet<Integer>();\n\t\tint[] ids = new int[numProcesses];\n\t\tfor (int i = 0; i < numProcesses; i++) {\n\t\t\tint id = (int) (Math.random() * 1000);\n\t\t\twhile (seen.contains(id)) {\n\t\t\t\tid = (int) (Math.random() * 1000);\n\t\t\t}\n\n\t\t\tids[i] = id;\n\t\t}\n\t\treturn ids;\n\t}", "title": "" }, { "docid": "d3d1a1a18a01e7113c781839a92119a9", "score": "0.624427", "text": "public static int[] generate_random_array (int n) {\n List<Integer> list;\n int[] array;\n\n list = new ArrayList<Integer> ();\n for (int i = 1; i <= n; i++)\n list.add(new Integer(i));\n\n Collections.shuffle(list, new Random(System.currentTimeMillis()));\n\n array = new int[n];\n for (int i = 0; i < n; i++)\n array[i] = list.get(i).intValue();\n\n return array;\n }", "title": "" }, { "docid": "83c22ec03d30287ee0a7e25ef6e2b574", "score": "0.6236315", "text": "public int[] generateRandomIntArray(int n) {\n n = n == -1 ? this.defaultSize : n;\n int[] list = new int[n];\n\n for (int i = 0; i < n; i++) list[i] = Math.max(1, random.nextInt(this.upperLimit - 1));\n\n return list;\n }", "title": "" }, { "docid": "7d340384903ff32cfafcd3382fec5e07", "score": "0.62323356", "text": "public abstract List<Integer[]> getData();", "title": "" }, { "docid": "b0acc2b7ef709b3abd7a61cd32dd188e", "score": "0.622883", "text": "public int[] getRandArray(int dataSize){\n\t\tRandom ran = new Random();\n\n\t\t//fill array\n\t\tint[] array = new int[dataSize];\n\t\tfor(int i = 0; i < dataSize; i++){\n\t\t\tarray[i] = ran.nextInt(100) + 1;\n\t\t}\n\t\treturn array;\n\t\t\n\t}", "title": "" }, { "docid": "4a727af12a4ec5515134fdc630b00683", "score": "0.62220615", "text": "public List<Integer> getOutputList() {\n \t\tif (outputList == null) {\n \t\t\toutputList = new ArrayList<Integer>();\n \t\t\tfor (int i = 0; i < numOutputs; i++) {\n \t\t\t\toutputList.add(i);\n \t\t\t}\n \t\t}\n \n \t\treturn outputList;\n \t}", "title": "" }, { "docid": "4c0e58a3de7776d7dcd562562cd4f97e", "score": "0.622011", "text": "abstract int[] getIV();", "title": "" }, { "docid": "e0528b61dd258b2cc13c4ea17bab71a9", "score": "0.6207922", "text": "public int[] getTestingSet ();", "title": "" }, { "docid": "84d8b3c81c8d5635b96cab61c1c9cc0a", "score": "0.6199241", "text": "public static int[] makeArray(int size) {\n int[] array = new int[size];\n for(int i=0; i<array.length; i++) {\n array[i] = RNG.nextInt(size+1);\n }\n return array;\n }", "title": "" }, { "docid": "70fdaec2345aecbad55cd6ba5e975d18", "score": "0.6196212", "text": "public long[] test() {\n\t\tlong[] lcg1000 = new long[1000];\n\t\tlcg1000[0] = seed;\n\t\tfor (int i = 1; i < 1000; i++)\n\t\t\tlcg1000[i] = generateNext(lcg1000[i - 1]);\n\t\treturn lcg1000;\n\t}", "title": "" }, { "docid": "29417509fdc0aefbdb32013b5db77658", "score": "0.6180951", "text": "private void generateRandomInts()\n\t{\n\t\t// TODO\n\t\tm_lowInt = m_random.nextInt(100) + 1;\n\t\tm_hiInt = m_random.nextInt(100) + 1;\n\t\t\n\t\tif (m_lowInt > m_hiInt)\n\t\t{\n\t\t\tint temp = m_lowInt;\n\t\t\tm_lowInt = m_hiInt;\n\t\t\tm_hiInt = temp;\n\t\t}\n\t\t//throw new RuntimeException(\"Not Implemented\");\t\n\t}", "title": "" }, { "docid": "a78cf41ed4bbf1878e07b43dd21cf40a", "score": "0.61785597", "text": "String showArrayGenerated() {\r\n\t\t\tString nums = \"\";\r\n\t\t\tfor (int i=0; i<mutantArray.length; i++) {\r\n\t\t\t\tnums += Integer.toString(mutantArray[i]) + \", \";\r\n\t\t\t}\r\n\t\t\treturn nums;\r\n\t\t}", "title": "" }, { "docid": "8804301983ccc17c850fd6d768c89113", "score": "0.6176284", "text": "public static int[] GetNumbers() {\n int x = 1;\n while (!NumberOfElements(countInput)) {\n System.out.println(\"Enter Number of Elements: \");\n countInput = s.nextInt();\n if (countInput <= 3) {\n System.out.println(\"Array should have more than 3 elements!\");\n }\n x++;\n }\n int arr[] = new int[countInput];\n System.out.println(\"Enter numbers: \");\n for (int i = 0; i < countInput; i++) {\n arr[i] = s.nextInt();\n }\n s.close();\n return arr;\n }", "title": "" }, { "docid": "7a80644ad847caf50132d41da17beea1", "score": "0.61750317", "text": "protected int[] getIRValues(){\n int[] values = new int[8];\n for(int i=0; i<8; i++) {\n int dis = 0;\n int direction = degree + i * 45;\n double tmp_x = pos.x + (Setting.getEnv().getRobotSize() * Math.cos(direction * Math.PI / 180));\n double tmp_y = pos.y + (Setting.getEnv().getRobotSize() * Math.sin(direction * Math.PI / 180));\n while(!CollisionLogic.isPointInWalls(tmp_x, tmp_y) && dis < Setting.getEnv().getRobotIrMaxDistance()) {\n dis += 1;\n tmp_x += 1 * Math.cos(direction * Math.PI / 180);\n tmp_y += 1 * Math.sin(direction * Math.PI / 180);\n }\n values[i] = dis;\n }\n return values;\n }", "title": "" }, { "docid": "af489da7e507a445c3cb2e1adee12316", "score": "0.6173711", "text": "public static int[] generateArray(int[] list) {\n for (int i = 0; i < list.length; i++) {\n list[i] = (int) (Math.random() * list.length);\n }\n return list;\n }", "title": "" }, { "docid": "8ae113a792c198050c2ce2c497347c33", "score": "0.61736", "text": "public String[] getNumbers() throws IOException{\n String[] altered = OpenFile();\n String newOne = null;\n int lines = readLines();\n \n for(int i =0; i < lines; i++){\n newOne = getCombination(i);\n altered[i] = newOne;\n }\n return altered;\n }", "title": "" }, { "docid": "9cfb1bd0d9e378f41bbc02087eb984b9", "score": "0.61624396", "text": "public int[] data() {\n return Arrays.copyOfRange(data, offset, offset + size);\n }", "title": "" }, { "docid": "68fb95bee6e1b063ae7b0ccec6ba3a74", "score": "0.61591107", "text": "public int[] shuffle() {\n List<Integer> list = getArrayList();\n int[] array = new int[orign.length];\n int index = 0;\n for (int i = 0; i < array.length; i++) {\n index = random.nextInt(list.size());\n array[i] = list.get(index);\n list.remove(index);\n }\n return array;\n }", "title": "" }, { "docid": "bfeaaabe0a52c73cc058a1d5fa9e9abc", "score": "0.6153593", "text": "public int[] getArray() {\n int[] preList = new int[size];\n LinkNode currentNode = head;\n for (int j = 0; j < size; j++) {\n preList[j] = currentNode.getData();\n currentNode = currentNode.getNext();\n }\n return preList;\n }", "title": "" }, { "docid": "b8d4d757d1590ce3f74dba3ad3786b79", "score": "0.6145496", "text": "private int[] funcGetImageButtonIdArray(){\n int[] _arr = new int[]{R.id.mg_pic_0,R.id.mg_pic_1,R.id.mg_pic_2,R.id.mg_pic_3,R.id.mg_pic_4,R.id.mg_pic_5,R.id.mg_pic_6,R.id.mg_pic_7};\n return _arr;\n }", "title": "" } ]
068288be6a8e475edecee4fceabec506
Build saml logout response.
[ { "docid": "580524c800c3f56d365f9fb5e7778f3a", "score": "0.6843578", "text": "protected LogoutResponse buildSamlLogoutResponse(final SamlRegisteredServiceMetadataAdaptor adaptor,\n final SingleLogoutService sloService,\n final RequestContext requestContext,\n final SamlRegisteredService registeredService,\n final LogoutRequest logoutRequest) throws Exception {\n val request = WebUtils.getHttpServletRequestFromExternalWebflowContext(requestContext);\n val response = WebUtils.getHttpServletResponseFromExternalWebflowContext(requestContext);\n\n val id = '_' + String.valueOf(RandomUtils.nextLong());\n val builder = configurationContext.getLogoutResponseBuilder();\n val status = builder.newStatus(StatusCode.SUCCESS, \"Success\");\n val issuer = builder.newIssuer(configurationContext.getCasProperties().getAuthn().getSamlIdp().getCore().getEntityId());\n\n val location = StringUtils.isBlank(sloService.getResponseLocation())\n ? sloService.getLocation()\n : sloService.getResponseLocation();\n LOGGER.trace(\"Creating logout response for binding [{}] with issuer [{}], location [{}] and service provider [{}]\",\n sloService.getBinding(), issuer, location, adaptor.getEntityId());\n val logoutResponse = builder.newLogoutResponse(id, location, issuer, status, logoutRequest.getID());\n\n if (configurationContext.getCasProperties().getAuthn().getSamlIdp().getLogout().isSignLogoutResponse()) {\n LOGGER.trace(\"Signing logout request for service provider [{}]\", adaptor.getEntityId());\n val logoutResponseSigned = configurationContext.getSamlObjectSigner()\n .encode(logoutResponse, registeredService, adaptor, response,\n request, sloService.getBinding(), logoutRequest, new MessageContext());\n configurationContext.getOpenSamlConfigBean().logObject(logoutResponseSigned);\n return logoutResponseSigned;\n }\n return logoutResponse;\n }", "title": "" } ]
[ { "docid": "9c89a73c870eca8ba4c3d5fab373f7e2", "score": "0.62922615", "text": "public Response buildUserLogoutResponse(String authorizationToken) {\n UserManager userManager = new UserManager();\n Response response;\n try {\n userManager.logout(authorizationToken);\n response = Response.status(NO_CONTENT).entity(buildResponseBody(SESSION_END_SUCCESS)).build();\n\n } catch (DatabaseException e) {\n response = Response.status(BAD_REQUEST).entity(buildResponseBody(CONTENT_CREATION_FAILURE, e.getMessage())).build();\n }\n\n return response;\n }", "title": "" }, { "docid": "98fa5d997daa3945862977d2e9f3bfed", "score": "0.62734056", "text": "protected void produceSamlLogoutResponsePost(final SamlRegisteredServiceMetadataAdaptor adaptor,\n final SingleLogoutService sloService,\n final RequestContext context,\n final SamlRegisteredService registeredService,\n final LogoutRequest logoutRequest) throws Exception {\n val logoutResponse = buildSamlLogoutResponse(adaptor, sloService, context, registeredService, logoutRequest);\n val location = StringUtils.isBlank(sloService.getResponseLocation())\n ? sloService.getLocation()\n : sloService.getResponseLocation();\n LOGGER.trace(\"Encoding logout response given endpoint [{}] for binding [{}]\", location, sloService.getBinding());\n\n val payload = SerializeSupport.nodeToString(XMLObjectSupport.marshall(logoutResponse));\n LOGGER.trace(\"Logout request payload is [{}]\", payload);\n\n val message = EncodingUtils.encodeBase64(payload);\n LOGGER.trace(\"Logout message encoded in base64 is [{}]\", message);\n\n val request = WebUtils.getHttpServletRequestFromExternalWebflowContext(context);\n val data = CollectionUtils.<String, Object>wrap(SamlProtocolConstants.PARAMETER_SAML_RESPONSE, message);\n val relayState = request.getParameter(SamlProtocolConstants.PARAMETER_SAML_RELAY_STATE);\n FunctionUtils.doIfNotNull(relayState, value -> data.put(SamlProtocolConstants.PARAMETER_SAML_RELAY_STATE, value));\n\n WebUtils.putLogoutPostUrl(context, location);\n WebUtils.putLogoutPostData(context, data);\n }", "title": "" }, { "docid": "4470c7a6f11e7fe67fb3c4a0e38a9f56", "score": "0.6256031", "text": "protected void produceSamlLogoutResponseRedirect(final SamlRegisteredServiceMetadataAdaptor adaptor,\n final SingleLogoutService sloService,\n final RequestContext context,\n final SamlRegisteredService registeredService,\n final LogoutRequest logoutRequest) throws Exception {\n val logoutResponse = buildSamlLogoutResponse(adaptor, sloService, context, registeredService, logoutRequest);\n val location = StringUtils.isBlank(sloService.getResponseLocation())\n ? sloService.getLocation()\n : sloService.getResponseLocation();\n LOGGER.trace(\"Encoding logout response given endpoint [{}] for binding [{}]\", location, sloService.getBinding());\n\n val request = WebUtils.getHttpServletRequestFromExternalWebflowContext(context);\n val encoder = new SamlIdPHttpRedirectDeflateEncoder(location, logoutResponse);\n encoder.setRelayState(request.getParameter(SamlProtocolConstants.PARAMETER_SAML_RELAY_STATE));\n encoder.doEncode();\n val redirectUrl = encoder.getRedirectUrl();\n LOGGER.debug(\"Final logout redirect URL is [{}]\", redirectUrl);\n\n WebUtils.putLogoutRedirectUrl(request, redirectUrl);\n }", "title": "" }, { "docid": "5bc138279ab2ba78210d1a55c578e85c", "score": "0.61038524", "text": "public static Result logout() {\n\t\tResult res;\n\n\t\tJsonNode data = request().body()\n\t\t\t\t\t\t\t\t .asJson();\n\n LinkedHashMap parser = UserRequestHelper.logout(data);\n\n String token = parser.get(\"token\").toString();\n\n\t\tUserTO user = mgr.getByToken(token);\n\t\tif (user == null) {\n\t\t\tres = ok(ErrorResponseHelper.badTokenError());\n\t\t}\n\t\telse if (!user.getToken()\n\t\t\t\t\t .getActive()) {\n\t\t\tres = ok(ErrorResponseHelper.userTokenInvalidError());\n\t\t}\n\t\telse {\n\t\t\tuser.getToken()\n\t\t\t\t.setActive(false);\n\t\t\tuser.setModifyDate(new Date());\n\t\t\tmgrToken.update(user.getToken());\n\t\t\tres = ok(UserResponseHelper.logoutSuccess());\n\t\t}\n\n\t\treturn res;\n\t}", "title": "" }, { "docid": "209536d6589b8ee18477e5b17e4ede20", "score": "0.60912126", "text": "public String logout() {\n try {\n destroyUserSession();\n response.sendRedirect(\"login.jspx\");\n fctx.responseComplete();\n } catch (IOException e) {\n e.printStackTrace();\n }\n \n return null;\n }", "title": "" }, { "docid": "150996ac92769654e2762f078050b6d9", "score": "0.60285026", "text": "public String logout() {\n\t\tHttpSession session = SessionUtils.getSession();\n\t\tsession.invalidate();\n\t\treturn \"login\";\n\t}", "title": "" }, { "docid": "5dbf4177f9d67ee4c1f761802b5085b5", "score": "0.5986392", "text": "public String logout() {\n\t\tif (sessionMap.containsKey(\"user.username\")) {\n\t\t\tsessionMap.remove(\"user.username\");\n\t\t}\n\t\treturn SUCCESS;\n\t}", "title": "" }, { "docid": "1c06a638eb7ec7c8d5f8ca6ebb0bfba9", "score": "0.59758246", "text": "private void userLogoutResponse() {\n LogoutDialog logout = new LogoutDialog(this);\n Util.LoggingQueue(this, \"Logout\", \"Logout dialog appearence\");\n logout.show();\n }", "title": "" }, { "docid": "ae780ddb11a4e24c127a442b0491f9d6", "score": "0.59360725", "text": "public String logout() {\n\t \tHttpServletRequest request = ServletActionContext.getRequest();\n\t \trequest.getSession().invalidate();\n\t \treturn \"success\";\n\t\t}", "title": "" }, { "docid": "4a825eb1bfcd9acfc3efddd619eb18dd", "score": "0.59262127", "text": "public String logout() {\n\t\tMap<String, Object> session = ActionContext.getContext().getSession();\n\t\tsession.remove(Constants.USER_ID);\n\t\tsession.remove(Constants.USER_NAME);\n\t\tsession.remove(Constants.GROUP);\n\t\treturn SUCCESS;\n\t}", "title": "" }, { "docid": "6f4f1dea5c6311f867828f89c510f7a1", "score": "0.58953315", "text": "@Override\n\tprotected void logoutResponseAction(String user) {\n\t}", "title": "" }, { "docid": "05d95b0852922ee2cb0b75b72aec6983", "score": "0.588007", "text": "private String adminLogout(HttpServletRequest request, HttpServletResponse response) {\n\t\trequest.setAttribute(\"msg\", \"Admin Logout Successfully\");\n\t\treturn \"index.jsp\";\n\t}", "title": "" }, { "docid": "893ab3d832e61d4302ee5ad4b6141dd8", "score": "0.5865222", "text": "public String logout() {\r\n\t \t return \"login\";\r\n\t }", "title": "" }, { "docid": "a1a745ba1e12902f60569103ec392ee7", "score": "0.58417976", "text": "public void logout() {\n\t\t_action = ServiceAction.ActionLogout;\r\n\t\tMap<String, Object> params = new HashMap<String, Object>();\r\n\t\tparams.put(\"token\", WhyqApplication.Instance().getRSAToken());\r\n\t\tparams.put(\"app\", Constants.APP);\r\n\t\tparams.put(\"app_name\", Constants.APP_NAME);\r\n\t\trequest(\"/m/logout\", params, true, false);\r\n\t}", "title": "" }, { "docid": "6dddc95395cb56c051f04638147b3694", "score": "0.57855165", "text": "public void createSSOResponse(HttpServletRequest request, HttpServletResponse response) {\n\t\tSSODetailsVO ssoDetails = authorizationUtils.getSSODetails(request, response);\n\t\tLoginRolesModel loginRolesModel = getLoginRolesModel(ssoDetails.getEmail());\n String jwtToken = tokenProvider.createTokenAuth(loginRolesModel.getLoginRoles());\n\t\tbuildSSOResponse(response,ssoDetails.getEmail(), jwtToken);\n\t}", "title": "" }, { "docid": "6d689d5957332d9db40fe0a6c4baf781", "score": "0.5763405", "text": "@ApiOperation(value = \"Logout\", notes = \"Logout the current user.\", tags = {\"protected\"})\n @ApiResponses({@ApiResponse(code = 200, message = \"\")})\n @PostMapping(value = \"/logout\")\n public void logout() {\n throw new IllegalStateException(\"Add Spring Security to handle authentication\");\n }", "title": "" }, { "docid": "b04cd1e844f79bb6f943d284b0d9a6a8", "score": "0.5759337", "text": "public void logout(final CallbacksLogout callbacks) {\n\n String url = GSA() + API_URL + \"act=\" + ACTION_LOGOUT + \"&uid=\" + getSessionVar(KEY_ACC_DATA_USER_ID);\n\n //Log.e(TAG, \"logout: url -> \" + url );\n\n StringRequest request = new StringRequest(\n url,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String s) {\n Log.e(\"XXX\", \"onResponse: logout resp -> \" + s);\n\n boolean success = s.equals(TRUE);\n\n\n if (success) {\n String serverAdd = GSV(SERVER_ADD);\n String lun = GSV(KEY_LAST_USERNAME);\n String autorefresh = GSV(KEY_AUTOREFRESH_RECENT_ITEMS);\n editor.clear();\n SSV(SERVER_ADD, serverAdd);\n SSV(KEY_LAST_USERNAME, lun);\n SSV(KEY_AUTOREFRESH_RECENT_ITEMS, autorefresh);\n editor.commit();\n }\n\n callbacks.onLogoutResult(success);\n\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError volleyError) {\n Log.d(TAG, \"onError logout restp -> \" + volleyError.getMessage());\n callbacks.onLogoutResult(false);\n }\n }\n );\n\n SOSApplication.getInstance().addToRequestQueue(request);\n\n\n }", "title": "" }, { "docid": "9d929aeccaa3ac16df8f28456b1567da", "score": "0.5747462", "text": "@RequestMapping(value=\"/logout\", method = RequestMethod.GET)\n public String logout (HttpServletRequest request, HttpServletResponse response) {\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n if (auth != null){ \n SecurityContextLogoutHandler sclh = \n new SecurityContextLogoutHandler();\n sclh.setInvalidateHttpSession(true);\n sclh.setClearAuthentication(true); \n sclh.logout(request, response, auth);\n }\n return \"home\";\n }", "title": "" }, { "docid": "41cc67357eacec5ed92c55233dc7438a", "score": "0.57339853", "text": "@GetMapping(\"/logout\")\n @ResponseBody\n public String logout() {\n return \"You have been logged out!\";\n }", "title": "" }, { "docid": "1941f5f2995a9a943991343757c00ad6", "score": "0.57296604", "text": "private account_force_logout_rsp(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "c367cec6519966ee5ba63b5b28f0e92b", "score": "0.57259154", "text": "public void logout() {\n HttpEntity<String> httpEntity = new HttpEntity<>(headers);\n try {\n ResponseEntity<String> responseEntity = restTemplate.exchange(logoutUrl, HttpMethod.POST, httpEntity, String.class);\n log.info(responseEntity.getStatusCode().toString());\n } catch (HttpClientErrorException e) {\n log.info(\"HttpLogout \" + e.toString());\n } catch (Exception e) {\n log.info(\"Logout \" + e.toString());\n }\n }", "title": "" }, { "docid": "8c5f9fb248a6fb9c299a029d26ff0bbb", "score": "0.5694805", "text": "public ResultBean logOut(HttpServletRequest request) {\n/* 112 */ ResultBean rb = new ResultBean();\n/* */ try {\n/* 114 */ SysUserDto sysUserDto = (SysUserDto)request.getSession().getAttribute(\"currentUser\");\n/* 115 */ if (sysUserDto != null) {\n/* 116 */ request.getSession().removeAttribute(\"currentUser\");\n/* */ }\n/* 118 */ rb.setFlag(Integer.valueOf(-1));\n/* 119 */ rb.setMsg(\"logout.success\");\n/* 120 */ } catch (Exception e) {\n/* 121 */ log.info(e.getMessage());\n/* 122 */ rb.setFlag(Integer.valueOf(0));\n/* 123 */ rb.setMsg(\"haveing.error\");\n/* */ } \n/* 125 */ return rb;\n/* */ }", "title": "" }, { "docid": "c23f07400104dfd73c6b2223e9f63332", "score": "0.56802374", "text": "private gw_account_logout_rsp(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "ccc1b3140727fdece7da5504b67136db", "score": "0.565637", "text": "protected SSOResponseType buildSsoResponse(SSORequestAbstractType request) {\n SSOResponseType response = new SSOResponseType();\n\n response.setID(uuidGenerator.generateId());\n response.setInReplayTo(request.getID());\n response.setIssuer(getProvider().getName());\n\n return response;\n }", "title": "" }, { "docid": "24b09d0e7f8875e6f741b9c408d3f46f", "score": "0.5641047", "text": "private UserLogoutResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "title": "" }, { "docid": "e8125c0f39487ef2b4db560a440bb306", "score": "0.5641024", "text": "@PostMapping(\"/logout\")\n public ResponseEntity logoutUser(@ApiParam(value = \"The LogoutRequest payload\") @Valid @RequestBody LogoutRequest logoutRequest) {\n userService.logoutUser(authUserService.getAuthUserId(), logoutRequest);\n Object credentials = SecurityContextHolder.getContext().getAuthentication().getCredentials();\n\n OnUserLogoutSuccessEvent logoutSuccessEvent = new OnUserLogoutSuccessEvent(userService.findById(authUserService.getAuthUserId()).get().getEmail(), credentials.toString(), logoutRequest);\n applicationEventPublisher.publishEvent(logoutSuccessEvent);\n return ResponseEntity.ok(new ApiResponse(true, \"Log out successful\"));\n }", "title": "" }, { "docid": "c2be87b32eb2b3a4ace73ee64d9aeffc", "score": "0.5637014", "text": "public void updateLogout(Authentication auth);", "title": "" }, { "docid": "cce32c608e6c13cb8dd86172d148957f", "score": "0.56331307", "text": "public String processLogout() throws CBException {\n\t\t\n\t\tlogger.info(\"INSIDE ACTION METHOD processLogout()\");\n\t\t\n\t\tServletContext context = ServletActionContext.getServletContext();\n\t\tHttpSession session = request.getSession();\n\n\t\tif (session != null) {\n\t\t\tcontext.setAttribute(LOGOUT, session.getAttribute(USERID_ATTRIBUTE));\n\t\t\tlogger.info(\"SUCCESSFULLY LOGGED OUT: \"+session.getAttribute(USERID_ATTRIBUTE));\n\t\t\tsession.invalidate();\n\t\t\treturn SUCCESS;\n\t\t} else\n\t\t\tlogger.error(\"LOGOUT ERROR: \"+session.getAttribute(USERID_ATTRIBUTE));\n\t\t\treturn ERROR;\n\t}", "title": "" }, { "docid": "45b1fbac60e36edc97f7e75705138b45", "score": "0.5590959", "text": "@Secure.Authenticated\n public static Result logout() {\n flash(\"success\", \"authentication.loggedOut\");\n session().clear();\n return redirect(\n routes.Application.index()\n );\n }", "title": "" }, { "docid": "01123b404adfc152554f81c120321955", "score": "0.5584904", "text": "@GetMapping(\"/logout\") \n\tpublic String logout(ServerHttpRequest request){\n\t\tnew SecurityContextLogoutHandler().setClearAuthentication(true);\n\t\t\n\t\treturn \"redirect:/logout\";\n\t}", "title": "" }, { "docid": "d25bfd0bb180d9595b1b783915585504", "score": "0.5567657", "text": "@GetMapping(LOGOUT_MAPPING)\n\tpublic String logout(HttpServletRequest request, \n\t HttpServletResponse response) throws IOException {\n\t\tHttpSession httpSession = request.getSession();\n httpSession.invalidate();\n \n Cookie jsessionIdCookie = new Cookie(\"JSESSIONID\", null);\n jsessionIdCookie.setMaxAge(0);\n jsessionIdCookie.setPath(\"/\");\n response.addCookie(jsessionIdCookie);\n\n Cookie ltpaToken2Cookie = new Cookie(\"LtpaToken2\", null);\n ltpaToken2Cookie.setMaxAge(0);\n ltpaToken2Cookie.setPath(\"/\");\n response.addCookie(ltpaToken2Cookie);\n \n response.setHeader(\"Cache-Control\",\"no-cache\"); //Forces caches to obtain a new copy of the page from the origin server\n response.setHeader(\"Cache-Control\",\"no-store\"); //Directs caches not to store the page under any circumstance\n response.setDateHeader(\"Expires\", 0); //Causes the proxy cache to see the page as \"stale\"\n response.setHeader(\"Pragma\",\"no-cache\");\n return \"redirect:/\";\n\t}", "title": "" }, { "docid": "7859ffde7b33a6166b55b144ef20522a", "score": "0.55617094", "text": "private void sendToFrameworkForLogout(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String sessionDataKey = UUID.randomUUID().toString();\n addSessionDataToCache(sessionDataKey);\n\n //Add all parameters to authentication context before sending to authentication framework\n AuthenticationRequest authenticationRequest = new AuthenticationRequest();\n authenticationRequest.setRequestQueryParams(request.getParameterMap());\n authenticationRequest.addRequestQueryParam(FrameworkConstants.RequestParams.LOGOUT, new String[] { \"true\" });\n authenticationRequest.setCommonAuthCallerPath(request.getRequestURI());\n authenticationRequest.setPost(true);\n //Add headers to AuthenticationRequestContext\n for (Enumeration e = request.getHeaderNames(); e.hasMoreElements(); ) {\n String headerName = e.nextElement().toString();\n authenticationRequest.addHeader(headerName, request.getHeader(headerName));\n }\n\n AuthenticationRequestCacheEntry authenticationRequestCacheEntry =\n new AuthenticationRequestCacheEntry(authenticationRequest);\n addAuthenticationRequestToRequest(request, authenticationRequestCacheEntry);\n sendRequestToFramework(request, response, sessionDataKey, FrameworkConstants.RequestType.CLAIM_TYPE_OIDC);\n }", "title": "" }, { "docid": "0ed06f24d85eaa4cc43d0811121eeb67", "score": "0.54983133", "text": "public void receiveResultlogout(\n com.trilliantnetworks.unity.ws.LogoutResponse result\n ) {\n }", "title": "" }, { "docid": "bc40483894ffb939bc0f26ac7ac1716c", "score": "0.54835224", "text": "@RequestMapping(\n value = UrlConstantsBo.LOGOUT,\n method = RequestMethod.POST)\n public ResponseEntity<ResponseBo> logout(HttpServletRequest request)\n throws RingException {\n String authHeader = request.getHeader(\"Authorization\");\n if (authHeader != null) {\n String tokenValue = authHeader.replace(\"Bearer\", \"\")\n .replace(\"bearer\", \"\")\n .trim();\n consumerTokenServices.revokeToken(tokenValue);\n }\n return new ResponseEntity<>(\n ResponseUtil.genericResponse(RingMessageCode.RM_1001.name()),\n HttpStatus.OK);\n }", "title": "" }, { "docid": "a269182b61920f2519416f3b9394e64b", "score": "0.546525", "text": "public String logout() {\n\n\t\tinsurancesPicklist.setSource(new ArrayList<Insurances>(gameBean\n\t\t\t\t.getInsurances()));\n\t\tinsurancesPicklist.setTarget(new ArrayList<Insurances>());\n\n\t\tFacesContext.getCurrentInstance().getExternalContext()\n\t\t\t\t.invalidateSession();\n\t\tFacesContext.getCurrentInstance().addMessage(\n\t\t\t\tnull,\n\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_INFO, \"Log out\",\n\t\t\t\t\t\t\"You are now logged off\"));\n\t\treturn \"/?faces-redirect=true\";\n\t}", "title": "" }, { "docid": "ff4ca5b2217773bfe3fd0c0c402158c7", "score": "0.54078853", "text": "public static Result logout() {\n String username = session(\"connected\");\n if(username !=null) {\n games.remove(username);\n session().clear();\n }\n\n return ok(authentication.render());\n }", "title": "" }, { "docid": "403de58dbefb875075d5e5c7c67e933d", "score": "0.5405619", "text": "public String logout() {\n HttpSession session = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(false);\n if (session != null) {\n session.invalidate();\n }\n return \"login\";\n }", "title": "" }, { "docid": "6acd853e2a633d01b9490b1c26969581", "score": "0.5396985", "text": "@PostMapping(value = USER_LOGOUT_URL)\n @Validated(BaseDTO.CreateValidationGroup.class)\n public ResponseEntity<Void> logout() {\n SecurityContextHolder.getContext().setAuthentication(null);\n return ResponseEntity.ok().build();\n }", "title": "" }, { "docid": "1170e3f043558aec98f7a151cee31be8", "score": "0.53912336", "text": "@PostMapping(value=\"/users/logout\")\n public MessageDTO logOut(HttpSession session) {\n System.out.println(\"Has the user logged in?\");\n sessManager.authorizeLogin(session);\n System.out.println(\"The user has logged in.\");\n sessManager.userLogsOut(session);\n System.out.println(\"The user has logged OUT\");\n return new MessageDTO(\"You logged out.\");\n }", "title": "" }, { "docid": "fee54504d51f92bd97a0e8e835c1d90b", "score": "0.5379352", "text": "String getLogoutUri();", "title": "" }, { "docid": "6771f61f59825deaf0bda56301cdb314", "score": "0.5377103", "text": "@RequestMapping(value = \"/logout\", method = RequestMethod.GET)\n public String logoutPage(HttpServletRequest request, HttpServletResponse response,\n RedirectAttributes redirect) {\n log.info(\"Room ID is: {}\", request.getParameter(\"roomId\"));\n if (request.getParameter(\"roomId\") != null) {\n ScheduledSession session = scheduledSessionDao.getScheduledSessionByRoomId(request.getParameter(\"roomId\"));\n if (session == null) {\n redirect\n .addFlashAttribute(\"errMessage\", \"No session ID is linked to this session call.\");\n return \"redirect:error\";\n } else {\n session.setDoctorStatus(false);\n scheduledSessionDao.putScheduledSession(session);\n }\n }\n\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n String redirectPage = \"redirect:/login?logout\";\n if (auth != null) {\n Set<String> roles = AuthorityUtils.authorityListToSet(auth.getAuthorities());\n if (roles.contains(ROLE_DOCTOR.name())) {\n redirectPage += \"&doctor\";\n } else if (roles.contains(ROLE_CLIENT_ADMIN.name()) || roles.contains(ROLE_USER_ADMIN.name())) {\n redirectPage += \"&admin\";\n }\n new SecurityContextLogoutHandler().logout(request, response, auth);\n }\n return redirectPage;\n }", "title": "" }, { "docid": "5dcab20c7f67f4fe6a221f7d19294a3c", "score": "0.53427285", "text": "public void logout() {}", "title": "" }, { "docid": "8c58663faeead4d31ce07ec7fe4320e2", "score": "0.533169", "text": "public Command logout() {\n\t\treturn new Command(CommandDescription.LOGOUT, new Logout());\n\t}", "title": "" }, { "docid": "f7c3445cd55b101999ee98a03fad7ec3", "score": "0.53118765", "text": "public String logout() {\n FacesContext.getCurrentInstance().getExternalContext().getSessionMap().clear();\r\n\r\n // Reset the logged-in User's properties\r\n username = password = \"\";\r\n firstName = middleName = lastName = \"\";\r\n address1 = address2 = city = state = zipcode = \"\";\r\n securityQuestion = 0;\r\n securityAnswer = \"\";\r\n email = statusMessage = \"\";\r\n\r\n // Invalidate the logged-in User's session\r\n FacesContext.getCurrentInstance().getExternalContext().invalidateSession();\r\n\r\n // Redirect to show the index (Home) page\r\n return \"/index.xhtml?faces-redirect=true\";\r\n }", "title": "" }, { "docid": "b5025da3850c3b60c54fc1abbe3d32d0", "score": "0.5289509", "text": "private void attemptLogout(){\n\t\tserverHandler.requestLogout();\n\t}", "title": "" }, { "docid": "a4996eb180f481152592f29e0a8f1df1", "score": "0.5276069", "text": "@RequestMapping(value = \"/logout\", method = RequestMethod.GET)\n public String logoutPage(HttpServletRequest request, HttpServletResponse response) {\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n if (auth != null) {\n new CustomLogoutHandler().logout(request, response, auth);\n }\n return \"logout\";\n }", "title": "" }, { "docid": "e7eeec2349752dbb00383b98e580bb4f", "score": "0.52727157", "text": "public Tootor logoutPost() throws TimeoutException, ExecutionException, InterruptedException, ApiException {\n Object postBody = null;\n\n\n // create path and map variables\n String path = \"/logout\".replaceAll(\"\\\\{format\\\\}\", \"json\");\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 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[]{};\n\n try {\n String localVarResponse = apiInvoker.invokeAPI(basePath, path, \"POST\", queryParams, postBody, headerParams, formParams, contentType);\n if (localVarResponse != null) {\n return Parser.tootor(localVarResponse);\n } else {\n return null;\n }\n } catch (ApiException ex) {\n throw ex;\n }\n }", "title": "" }, { "docid": "56a3956a9daf2ca530fc31e6d8e6f492", "score": "0.52585673", "text": "@RequestMapping(\"/logout\")\n\tpublic String logout(HttpServletRequest request, HttpServletResponse response, RedirectAttributes ra) {\n\t\tAuthentication auth = SecurityContextHolder.getContext().getAuthentication();\n\t if (auth != null){ \n\t new SecurityContextLogoutHandler().logout(request, response, auth);\n\t }\n\t ra.addFlashAttribute(\"logout\", \"Saliste correctamente\");\n\t return \"redirect:/login\";\n\t}", "title": "" }, { "docid": "878b962083242eafecd4d629710362c8", "score": "0.5256719", "text": "public AuthResponse logOut() throws RdkTimeoutException {\n logger.log(Level.INFO, \"DELETE \" + rdkUrl + \"/authentication\");\n WebTarget dashboardsTarget = authServiceTarget.path(\"authentication\");\n Response response = dashboardsTarget.request(MediaType.APPLICATION_JSON).cookie(rdkCookies.get(RDK_COOKIE_ID))\n \t\t.header(\"Authorization\", \"Bearer \" + jwtHeader).delete();\n\n processResponse(response);\n MetricsServiceResponse<AuthResponse> authResponse = response.readEntity(new GenericType<MetricsServiceResponse<AuthResponse>>() {\n });\n logger.log(Level.INFO, \"authenticateResponse: \\n\" + gson.toJson(authResponse));\n return authResponse.getData();\n }", "title": "" }, { "docid": "afc75ee6f2a9ec1ce4762145d1f91948", "score": "0.5254766", "text": "@Override\n \t\t\tpublic void onLogoutBegin() {\n \t\t\t\t\n \t\t\t}", "title": "" }, { "docid": "54bb12bfa6b0344a98f3448f747f4963", "score": "0.52429444", "text": "@GetMapping(\"/logout\")\n public String logoutView(){\n return \"redirect:/login?logout\";\n }", "title": "" }, { "docid": "df2dc602531f4b7c5f6f49d18d67b2ca", "score": "0.5236707", "text": "@RequestMapping(value = \"/logout-success\", method = GET)\r\n public String logoutsuccess() {\r\n return \"logout successful\";\r\n }", "title": "" }, { "docid": "e1d038a91e157b5c8389f5ec731bfb9e", "score": "0.5221342", "text": "public String getLogoutTarget() {\n return logoutTarget;\n }", "title": "" }, { "docid": "661a49dc2306cc2a0c10737e8849b888", "score": "0.5211714", "text": "protected String determineLogoutResponseBindingType(final SamlRegisteredService samlRegisteredService) {\n val logout = configurationContext.getCasProperties().getAuthn().getSamlIdp().getLogout();\n val binding = StringUtils.defaultIfBlank(samlRegisteredService.getLogoutResponseBinding(), logout.getLogoutResponseBinding());\n return StringUtils.defaultString(binding, SAMLConstants.SAML2_REDIRECT_BINDING_URI);\n }", "title": "" }, { "docid": "3d925c214a6d43039f6522b47c21021d", "score": "0.5208952", "text": "public String logout(ActionEvent e) throws IOException {\n return logout();\n }", "title": "" }, { "docid": "a4686bc8e246773c9851e5066b2ef8a9", "score": "0.520807", "text": "@RequestMapping(value = \"/logout\", method = RequestMethod.GET)\r\n\tpublic String logout(ModelMap model) {\r\n\t\treturn \"logout\";\r\n\t}", "title": "" }, { "docid": "71d7566e29f539beec10e6d61b5c1e9d", "score": "0.52012616", "text": "@Override\n \t\t\tpublic void onLogoutFinish() {\n \t\t\t\t\n \t\t\t}", "title": "" }, { "docid": "c77076a33d54a8fc2558d4915247685a", "score": "0.519836", "text": "public PacketSender sendLogout() {\r\n PacketBuilder out = new PacketBuilder(109);\r\n player.getSession().write(out);\r\n return this;\r\n }", "title": "" }, { "docid": "e227068ddbe5ea1038bc79e10d95ece1", "score": "0.51936865", "text": "public String logout() {\n\t\tlog.info(\"User \" + userName + \" logged out.\");\n\t\tFacesContext.getCurrentInstance().getExternalContext().invalidateSession();\n\t\tsetLoggedIn(false);\n\t\treturn \"home.xhtml?faces-redirect=true\";\n\t}", "title": "" }, { "docid": "7d487e605f384089fbe8ead442128626", "score": "0.518095", "text": "@Override\r\n\tpublic void logout() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6b5075e64ddda804d1cd59cfc92b2efd", "score": "0.5178358", "text": "public final static void logout(HttpServletRequest request,\n HttpServletResponse response) throws InternalErrorException {\n \n /* Remove cookies. */\n leaveCookies(response, \"\", \"\", COOKIES_TIME_TO_LIVE_REMOVE);\n \n /* Invalidate session. */\n HttpSession session = request.getSession(true);\n session.invalidate();\n \n }", "title": "" }, { "docid": "0f726071507326d5dc746c0c82e7096c", "score": "0.5177651", "text": "public void logout() {\n\t\tsend(new LogoutEvent());\n\t}", "title": "" }, { "docid": "5bd0c285a18ed6cb08562d112f599a5f", "score": "0.51769716", "text": "public Result logout() {\n if (!store_session.user_is_logged()) {\n return redirect(\"/\");\n }\n @Nonnull final String user_name = store_session.get_user_name();\n // register interaction\n model_user_interaction model_user_interaction = models_db_indie.model_user_interaction.from_web(user_name, enum_user_interaction_web_type.LOGOUT);\n store_local_db.update_user_interaction(model_user_interaction);\n\n store_session.clear();\n return redirect(\"/\");\n }", "title": "" }, { "docid": "bb4338a0f74c20e5110474638a2238a4", "score": "0.51735663", "text": "@RequestMapping({\"/logout\"})\r\n/* 78: */ public String logout()\r\n/* 79: */ throws Exception\r\n/* 80: */ {\r\n/* 81:106 */ SecurityUtils.getSubject().logout();\r\n/* 82:107 */ return \"redirect:/login.jsp\";\r\n/* 83: */ }", "title": "" }, { "docid": "7e11af2b16726f242ad6380a4363a82d", "score": "0.5172005", "text": "private void logout() {\n getVerifiersApplication().detachEndpoint();\n }", "title": "" }, { "docid": "f18647b3986353beffc050045835e10e", "score": "0.51699114", "text": "public LoginPage logoutFromOrangeHRM(){\r\n driver.findElement(By.id(UIElementparms.LOGOUT_WELCOME_ID)).click();\r\n if(driver.findElements(By.linkText(UIElementparms.LOGOUT_LOGOUT_LINK)).size()>0 ){\r\n \t\r\n }\r\n driver.findElement(By.linkText(UIElementparms.LOGOUT_LOGOUT_LINK)).click();\r\n return new LoginPage(driver);\r\n \r\n }", "title": "" }, { "docid": "093a340be56e9dc785d8917cd57627d9", "score": "0.51557946", "text": "@RequestMapping(method= RequestMethod.POST, path=\"/user/signout\", produces=MediaType.APPLICATION_JSON_UTF8_VALUE)\n public ResponseEntity<SignoutResponse> signout(@RequestHeader(\"authorization\") final String authorization) throws SignOutRestrictedException {\n UsersEntity usersEntity = userBusinessService.getUserFromToken(authorization);\n SignoutResponse signoutResponse = new SignoutResponse().id(usersEntity.getUuid()).message(\"SIGNED OUT SUCCESSFULLY\");\n\n return new ResponseEntity<SignoutResponse>(signoutResponse,HttpStatus.OK);\n }", "title": "" }, { "docid": "37f6f4a0d76cc4e956376b638fb381b9", "score": "0.51446885", "text": "@PostMapping(\"/logout\")\n public String logout(){\n return \"redirect:/login?logout\";\n }", "title": "" }, { "docid": "78ce5061898b4a4e5c9bead5f19117b2", "score": "0.51419926", "text": "public void logout();", "title": "" }, { "docid": "e8ebb2e668aa94ead915dd30e4f50725", "score": "0.51388764", "text": "public void logout() {\r\n\t\tfinal CloudRequest request = new CloudRequest();\r\n\t\trequest.performURLGET(false, this.session + \"logout\");\r\n\t\tthis.session = null;\r\n\t}", "title": "" }, { "docid": "a1bcf26a714f64a8419b7d2d3fd5b36b", "score": "0.51346266", "text": "@Override\n\tpublic void logout(HttpServletRequest request, HttpServletResponse response, Authentication authentication) {\n\t\tSystem.out.println(\"Going to clean token at SSO.\");\n\t\t\n\t\t String authHeader = request.getHeader(\"Authorization\");\n\t if (authHeader != null) {\n\t String tokenValue = authHeader.replace(\"Bearer\", \"\").trim();\n\t OAuth2AccessToken accessToken = tokenStore.readAccessToken(tokenValue);\n\t System.out.println(\"accessToken is being removed = \"+accessToken);\n\t tokenStore.removeAccessToken(accessToken);\n\t System.out.println(\"Have cleaned token at SSO.\");\n\t }\n\t \n\t}", "title": "" }, { "docid": "6732d371e6f618f421e09beb96b2c8e7", "score": "0.51327163", "text": "public String logout() {\n FacesContext.getCurrentInstance().getExternalContext().invalidateSession(); // the above is unnecessary once the session is invalidated\n return \"index.xhtml?faces-redirect=true\";\n\n }", "title": "" }, { "docid": "3d66d9e6c22d58180f3ba0cebf1f2880", "score": "0.51325494", "text": "private void logout() {\n Logger.d(LOG_TAG, \"Logging out user\");\n Outbound.logout();\n }", "title": "" }, { "docid": "7c8660f87b68c459a764cf2d34d11d2a", "score": "0.5124116", "text": "@GetMapping(\"user/signout\")\n\tpublic String signOut() {\n\t\tHttpSession session = request.getSession();\n\t\tsession.invalidate(); // distroy Usersession data /remove all the attributes\n\t\treturn \"redirect:/user/signin\";\n\t}", "title": "" }, { "docid": "6820c183369ca0551f0c3484223016f2", "score": "0.5120697", "text": "public static Result logout() {\n /* Clear old session data. */\n session().clear();\n\n return redirect(routes.Application.index());\n }", "title": "" }, { "docid": "74187613f894bb5e6129f0eb80140a7a", "score": "0.51183504", "text": "@RequestMapping(value = \"/logout\", method = RequestMethod.GET)\n public String logoutPage(HttpServletRequest request, HttpServletResponse response) {\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n if (auth != null) {\n new SecurityContextLogoutHandler().logout(request, response, auth);\n SecurityContextHolder.getContext().setAuthentication(null);\n }\n return \"redirect:/login?logout\";\n }", "title": "" }, { "docid": "3cbb75716b101070b242ffdd76ca45be", "score": "0.5095896", "text": "@Override\n public SingleValueFormat<String> logoutUser() {\n throw new NotImplementedException();\n }", "title": "" }, { "docid": "117f9250319004497112b3010af075f8", "score": "0.5086301", "text": "void logout(String tokenHeaderAcceso);", "title": "" }, { "docid": "d7acc7087e2bccc96691a0e45aae9e0e", "score": "0.5085324", "text": "@RequestMapping(\"/signout\")\r\n\tpublic String signoutHandler(@SessionAttribute(\"userLogin\") Users userSession) {\r\n\t\treturn\"signout\";\r\n\t\t\r\n\t}", "title": "" }, { "docid": "4b7cd0088de0d0a1ea04af50092efdc9", "score": "0.5073834", "text": "private void onLogoutSuccess() {\n\t\tusernameTF.setDisable(false);\n\t\tpasswordField.setDisable(false);\n\t\t\n\t\t// 2. Update Msg.\n\t\tString msg = \"Logout Successfull!\";\n\t\tloginMsgLabel.setText(msg);\n\n\t\t// 3. Disable tabs\n\t\tuploadPhotoTab.setDisable(true);\n\t\tshowPhotoTab.setDisable(true);\n\t\t\n\t\t// 4. remove User from Login Cache\n\t\tString username = usernameTF.getText();\n\t\tUser loggedOutUser = new User();\n\t\tloggedOutUser.setUsername(username);\n\t\tuserService.removeLoggedOutUserFromCache(loggedOutUser);\n\t\t\n\t\t// 5. Show Logout Success Dialog\n\t\tshowMsgBox(\"Authentication\", null, \"Logged-Out Successfully!\", AlertType.INFORMATION);\n\t}", "title": "" }, { "docid": "1134f0a80b27f0c98d264d5a0f7986d1", "score": "0.5056682", "text": "public static LogOutResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\r\n LogOutResponse object =\r\n new LogOutResponse();\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 (!\"LogOutResponse\".equals(type)){\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\r\n return (LogOutResponse)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://portal.vidyo.com/user/v1_1\",\"OK\").equals(reader.getName())){\r\n \r\n object.setOK(OK_type0.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 // A start element we are not expecting indicates an invalid parameter was passed\r\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\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 }", "title": "" }, { "docid": "fcb8355a81ed4a518d1f67833707714c", "score": "0.5047223", "text": "public String logOut() {\n\t\trejectedTimeSheets = null;\n\t\tcurrentEmployee = null;\n\t\tuserName = null;\n\t\tFacesContext.getCurrentInstance().getExternalContext()\n\t\t.invalidateSession();\n\t\tlog.info(\"Employee logged out @ LoginController.class\");\n\t\treturn \"logout\";\n\t}", "title": "" }, { "docid": "c19572f757db6a471c47b2f0f37f0495", "score": "0.50361496", "text": "public MessageInfo<Object> logout(SysUser user) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "3dc429b0067208671daa040e32605662", "score": "0.5030163", "text": "public String buildLogoutUrl(HttpServletRequest hreq, SSOPartnerAppConfig cfg) {\n return buildLogoutUrl(hreq, cfg.getDefaultResource() != null ? cfg.getDefaultResource() : \"/\");\n }", "title": "" }, { "docid": "8162d4d0ac5bd1c752ace0ca27edca07", "score": "0.50294024", "text": "@Override\r\n\tpublic void logout(AsyncCallback<Void> callback) throws ServerException {\n\t}", "title": "" }, { "docid": "f6e66d046f1485cd64d5f90eb9489b15", "score": "0.5026866", "text": "public static void handleLogout(Context ctx){\n lcLog.debug(\"Received Logout Request\");\n ctx.sessionAttribute(\"currentUser\",null);\n ctx.redirect(\"/ERS\");\n }", "title": "" }, { "docid": "12730d79e4ace2313d18bf5dc2cdd4ee", "score": "0.5022258", "text": "private void logOutUser(){\n CommonUtils.getInstance(this).showProgressDialog(this, \"Learniat Student\", \"Logging out the user\");\n String userId = CommonUtils.getInstance(this).loadStringPreferences(\"userid\");\n if(userId !=null && !userId.equalsIgnoreCase(\"Empty\")){\n String url = \"<Sunstone><Action><Service>Logout</Service><UserId>\"+userId+\"</UserId></Action></Sunstone>\";\n XMLConvertor.getInstance().StudentWebInterface().logOutUser(url, new Callback<UserLoginDataModel>() {\n @Override\n public void success(UserLoginDataModel userLoginDataModel, Response response) {\n CommonUtils.getInstance(TodayScheduleActivity.this).hideProgressDialog();\n if (userLoginDataModel.getSunStone().getAction().getStatus().equalsIgnoreCase(\"Success\")) {\n XMPPController.getInstance(TodayScheduleActivity.this).sendMessage(\"8\");\n CommonUtils.getInstance(TodayScheduleActivity.this).updateUserState(\"8\");\n disconnectConnection();\n } else {\n Toast.makeText(TodayScheduleActivity.this, userLoginDataModel.getSunStone().getAction().getStatus(), Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void failure(RetrofitError error) {\n CommonUtils.getInstance(TodayScheduleActivity.this).hideProgressDialog();\n Toast.makeText(TodayScheduleActivity.this, \"Failure\", Toast.LENGTH_SHORT).show();\n }\n });\n }\n }", "title": "" }, { "docid": "85f1389627462691cb4caf75600a6f54", "score": "0.5018845", "text": "public void logout() {\n PrivateChat.getInstance().logout(this);\n send(new LogoutEvent());\n }", "title": "" }, { "docid": "700dce4e65472158573687d5682c7378", "score": "0.50181484", "text": "@Override\n\tpublic void execute(HttpServletRequest request, HttpServletResponse response) {\n\t\tString str = \"logout\";\n\t\trequest.setAttribute(\"logout\", str);\n\t}", "title": "" }, { "docid": "b0ddd01b7d65dcc0c4692d0a0796f67e", "score": "0.5016553", "text": "public abstract void onLogout();", "title": "" }, { "docid": "14b63379d950691eb7771d831227b44f", "score": "0.5010735", "text": "@Test(dataProvider = \"data_logout_rest_test\", dataProviderClass = DataProviderRest.class)\n public void testRestLogout(String username, String password, String expectation) {\n Response response = loginRest(username, password);\n\n response = given()\n .baseUri(\"http://localhost:7844\")\n .contentType(ContentType.JSON)\n .cookie(response.getDetailedCookie(\"Authorization\"))\n .when().post(\"/api/logout\")\n .then().log().body().statusCode(302).extract().response();\n String location = response.getHeader(\"Location\");\n response = given()\n .baseUri(\"http://localhost:7844\")\n .cookie(response.getDetailedCookie(\"Authorization\"))\n .when().get(location)\n .then().statusCode(200).extract().response();\n String respBody = response.getBody().asString();\n\n Assert.assertTrue(respBody.contains(expectation));\n }", "title": "" }, { "docid": "fa87043d67188e8af8e1bb6e1e75c811", "score": "0.5010555", "text": "public abstract void userLogout(\n com.google.protobuf.RpcController controller,\n com.mmo.server.ServerClientProtocol.UserLogoutRequest request,\n com.google.protobuf.RpcCallback<com.mmo.server.ServerClientProtocol.UserLogoutResponse> done);", "title": "" }, { "docid": "d8ab96137929e343255bf3e06b983893", "score": "0.49973693", "text": "public String LogOutUser() {\n\t\tsession = request.getSession(false);\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"tututut.....\");\r\n\t\t\tsession.removeAttribute(\"UserType\");\r\n\t\t\tsession.removeAttribute(\"UserName\");\r\n\t\t\tsession.removeAttribute(\"tracker\");\r\n\t\t\tsession.invalidate();\r\n\t\t\t\r\n\t\t\tresult =SUCCESS;\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tresult = INPUT;\r\n\t\t\t// TODO: handle exception\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "042fafdfad88a755476c9a76176f0fe7", "score": "0.49901086", "text": "@RequestMapping(value=\"/logout\", method = RequestMethod.GET)\n\tpublic ModelAndView logout(HttpServletRequest request,\n\t\tHttpServletResponse response) throws Exception {\n\t\t\n\t\treturn new ModelAndView(\"login\");\n \n\t}", "title": "" }, { "docid": "bc91838c94baf9bbe23d5323f897b3fe", "score": "0.4969503", "text": "public String employeerLogout() {\r\n\t\tif (session.containsKey(\"nameOfEmployeer\")) {\r\n\t\t\tsession.remove(\"nameOfEmployeer\");\r\n\t\t\tsession.remove(\"emp_id\");\r\n\t\t\tsession.clear();\r\n\t\t}\r\n\t\treturn SUCCESS;\r\n\t}", "title": "" }, { "docid": "dcc9757bea9314babdd2df949f93361f", "score": "0.49674407", "text": "public void logOutSuccess() {\n // SessionId.getInstance().setSessionId(\"\");\n networkConnection = new NetworkConnection(this);\n String logoutString = \"OFFLINE_LOGOUT\";\n if (networkConnection.isNetworkAvailable()) {\n try {\n logoutString = \"ONLINE_LOGOUT\";\n String url = \"/login/logout\";\n\n LogoutDto logoutDto = new LogoutDto();\n logoutDto.setSessionId(SessionId.getInstance().getSessionId());\n logoutDto.setLogoutStatus(logoutString);\n logoutDto.setAppType(ApplicationType.KEROSENE_BUNK);\n SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\", Locale.getDefault());\n String dateStr = df.format(new Date());\n logoutDto.setLogoutTime(dateStr);\n String logout = new Gson().toJson(logoutDto);\n Log.e(\"base activity\", \"logout...\" + logout);\n StringEntity se = new StringEntity(logout, HTTP.UTF_8);\n\n httpConnection = new HttpClientWrapper();\n httpConnection.sendRequest(url, null, ServiceListenerType.LOGOUT_USER,\n SyncHandler, RequestType.POST, se, this);\n }catch (Exception e){\n Log.e(\"LOGOut\",\"Exception occured\"+e);\n }\n }\n FPSDBHelper.getInstance(this).updateLoginHistory(SessionId.getInstance().getTransactionId(), logoutString);\n // FPSDBHelper.getInstance(this).closeConnection();\n startActivity(new Intent(this, LoginActivity.class));\n finish();\n\n }", "title": "" }, { "docid": "77f7a3a24b61284d0026ef97b8939600", "score": "0.49617708", "text": "public static Promise<Result> logout() {\n\t\tPromise<Result> promise = Promise.promise(new F.Function0<Result>() {\n\n\t\t\t@Override\n\t\t\tpublic Result apply() throws Throwable {\n\t\t\t\tString key[] = { \"authKey\" };\n\t\t\t\tRequestHandler requestHandler = new RequestHandler(frmUser);\n\t\t\t\trequestHandler.setArrayKey(key);\n\t\t\t\tif (requestHandler.isContainError()) {\n\t\t\t\t\treturn badRequest(JsonHandler.getSuitableResponse(\n\t\t\t\t\t\t\trequestHandler.getErrorMessage(), false));\n\t\t\t\t}\n\n\t\t\t\tAuth auth = Auth.findAuth(requestHandler\n\t\t\t\t\t\t.getStringValue(\"authKey\"));\n\t\t\t\tauth.delete();\n\t\t\t\treturn ok(JsonHandler.getSuitableResponse(\"logout\", true));\n\t\t\t}\n\t\t});\n\t\treturn promise;\n\t}", "title": "" }, { "docid": "ac1109e2fab494d96cc1e7dcf0ebf0be", "score": "0.49612308", "text": "@GetMapping(\"logout\")\n\tpublic String logout(Model model, HttpSession session) {\n\t\tlogger.info(\"Method : access-denied Starts\");\n\n\t\tsession.invalidate();\n\n\t\tlogger.info(\"Method : access-denied ends\");\n\t\treturn \"redirect:\";\n\t}", "title": "" }, { "docid": "e4dad22008ea941ace567f8fd112f1c1", "score": "0.49568075", "text": "@PostMapping(\"/signout\")\n public String signout(ModelMap model, @ModelAttribute(\"loggedInUser\") UserDto loggedInUser,\n HttpServletRequest request, HttpServletResponse response) {\n\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n if (auth != null) {\n new SecurityContextLogoutHandler().logout(request, response, auth);\n }\n\n request.getSession().invalidate();\n response.addCookie(new Cookie(\"JSESSIONID\", \"\"));\n response.addCookie(new Cookie(\"remember-me\", \"\"));\n model.clear();\n\n return \"redirect:/\";\n\n }", "title": "" }, { "docid": "322ec56cbcd52376b2c1bb963fb3932e", "score": "0.4950611", "text": "@Override\n public String logout(){\n FacesContext.getCurrentInstance().getExternalContext().invalidateSession();\n SecurityContextHolder.getContext().setAuthentication(null);\n return \"index?faces-redirect=true\";\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "c91241b959139addaae545c8693c9e19", "score": "0.0", "text": "public void show(View view) {\n inflate = LayoutInflater.from(this).inflate(R.layout.bottom, null);\n camera = inflate.findViewById(R.id.camera);\n pic = inflate.findViewById(R.id.pic);\n cancel = inflate.findViewById(R.id.cancel);\n camera.setOnClickListener(this);\n pic.setOnClickListener(this);\n cancel.setOnClickListener(this);\n dialog = new Dialog(this);\n dialog.setContentView(inflate);\n Window dialogWindow = dialog.getWindow();\n dialogWindow.setGravity(Gravity.BOTTOM);\n WindowManager.LayoutParams lp = dialogWindow.getAttributes();\n lp.y = 20;\n dialogWindow.setAttributes(lp);\n dialog.show();\n }", "title": "" } ]
[ { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.68399656", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0c69424878be03e50f19e2ca61ef640b", "score": "0.68002176", "text": "@Override\r\n\tpublic void leggi() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8b6c961814c14fa02879570fd7e65ac5", "score": "0.6769489", "text": "@Override\r\n\tpublic void scarica() {\n\t\t\r\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65278774", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "1e34493fdecb11f6bbc24ef12eea2281", "score": "0.6386922", "text": "public void mo27791d() {\n }", "title": "" }, { "docid": "051f88f1f94e36fab8ec66de1946f037", "score": "0.6287329", "text": "public void mo27794g() {\n }", "title": "" }, { "docid": "db4b95a4460fb609bcd3716b1a4b3e23", "score": "0.6283629", "text": "@Override\r\n\tpublic void compra() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5eb303064635f4909e997c3effe2511d", "score": "0.6265152", "text": "public void mo27792e() {\n }", "title": "" }, { "docid": "fdf6bcd763ea5f5b221fd5a7669d1afb", "score": "0.6262988", "text": "public void mo28805a() {\n }", "title": "" }, { "docid": "381ca210fc42b87f9b8af474719578a0", "score": "0.62538177", "text": "public void mo41489c() {\n }", "title": "" }, { "docid": "203e120e0c17c7a390717d0ca9ff147a", "score": "0.6252656", "text": "public void mo11316JX() {\n }", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6237362", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "0b319072f0ae7225e83791b70ea23079", "score": "0.6200546", "text": "@Override\r\n\tpublic void ghhvhg() {\n\t\t\r\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "9cfdb7a953eedd93829d98c1649d8fa2", "score": "0.6147232", "text": "@Override\r\n\tprotected void rodape() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a1d358ef8dde60480477b5c8b2359c6d", "score": "0.611178", "text": "@Override\n\tpublic void compra() {\n\t\t\n\t}", "title": "" }, { "docid": "81e2e665536902ef3310e7a034f112ea", "score": "0.6104965", "text": "@Override\r\n\tpublic void apagar()\r\n\t{\n\r\n\t}", "title": "" }, { "docid": "e6068b0200c883e42ca4379e8b4390f4", "score": "0.61018884", "text": "@Override\n\tpublic void ihtiyacGidermek() {\n\t\t\n\t}", "title": "" }, { "docid": "222e7b9d44422cda9de5df0085949df1", "score": "0.60770625", "text": "public void mo27793f() {\n }", "title": "" }, { "docid": "6fc1bc8405449cd5caa1d0d4cc253eff", "score": "0.6024395", "text": "public void mo27783b() {\n }", "title": "" }, { "docid": "7de2b9a1638739d8a552ea81162374f7", "score": "0.6023624", "text": "@Override\r\n\tpublic void trasation() {\n\t\t \r\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6020569", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.6017447", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "39970aed3dc3a7bed24f03fb23731e78", "score": "0.6010486", "text": "@Override\r\n\tpublic void laufen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a46f6ccc5a2230632919d59213754a52", "score": "0.59971493", "text": "@Override\n\tpublic void grafikCizme() {\n\t\t\n\t}", "title": "" }, { "docid": "5a91ef0aa6990fc22e6e46d34355029e", "score": "0.59874135", "text": "@Override public void accionar() {\n\n }", "title": "" }, { "docid": "d673691f42a5a36d5d7e5d4f81aec55e", "score": "0.59567183", "text": "@Override\n\tpublic void reveiller() {\n\t\t\n\t}", "title": "" }, { "docid": "b048ca4f20a40ca0411a5330c06ce3d5", "score": "0.5952113", "text": "@Override\n\tpublic void infinteBatery() {\n\t\t\n\t}", "title": "" }, { "docid": "2bd910d11f3b18a5106b970f6e7e4c64", "score": "0.59445894", "text": "@Override\n\tpublic void Consulter() {\n\t\t\n\t}", "title": "" }, { "docid": "fa5eb14703b2a28ee4847f692d01e39d", "score": "0.59407693", "text": "@Override\r\n\tpublic void init() {\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a94b5981fe7c5ead7e5156e8e7cb9cb5", "score": "0.59315324", "text": "@Override\r\n\tpublic void attribute() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9fe10a8f8c056afc50123cc1485a6fdc", "score": "0.5927387", "text": "@Override\n\tvoid comision() {\n\t\t\n\t}", "title": "" }, { "docid": "dd66e8668788d27519d44caeb83b0c44", "score": "0.59262717", "text": "@Override\r\n\tpublic void operation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "ddafdd56d6d4b904d170e3608181850c", "score": "0.5918087", "text": "private void getArtefactId() {\n\t\t\n\t}", "title": "" }, { "docid": "c9b74342d0ae0e22bc7119b60588c66a", "score": "0.59013426", "text": "@Override\n\t\t\tpublic int getType() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.58881694", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5886334", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "53a77fe02ff8601b7f3a53009ccfd05c", "score": "0.58849895", "text": "public void designBasement() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0449d2500abd0eb1624d7773d0cf88dd", "score": "0.5881909", "text": "@Override\n\tpublic void ponisti() {\n\n\t}", "title": "" }, { "docid": "a21e7f5bc4a152c3cd6818af1be8ca7f", "score": "0.5877803", "text": "@Override\n\tpublic void accionar() {\n\t\t\n\t}", "title": "" }, { "docid": "b623306824ebd023ab9bf4fc0a66aaf3", "score": "0.5876838", "text": "public void mo5928c() {\n }", "title": "" }, { "docid": "8dbedd9965a878a9a7db1c5deb6a28cd", "score": "0.5871888", "text": "@Override\n public String toString() {\n return null;\n }", "title": "" }, { "docid": "5aa237d31e744d1e0729621e464fcfb2", "score": "0.5854053", "text": "@Override\r\n\tprotected void DataInit() {\n\r\n\t}", "title": "" }, { "docid": "5f122c528716d4e28cd3a6695d27b80f", "score": "0.5838742", "text": "@Override\n\tpublic void morir() {\n\n\t}", "title": "" }, { "docid": "4cc23ec21a978357a8a06db5bbae181c", "score": "0.5834908", "text": "@Override\n\t\tpublic void beSporty() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "f02c338eb46eb5cdf9d19504df309595", "score": "0.58264196", "text": "public void mo28814l() {\n }", "title": "" }, { "docid": "2be71c02c2e214eecbe2c8bd5dfe8cb0", "score": "0.58237594", "text": "@Override\n\tpublic void fortify() {\n\t\t\n\t}", "title": "" }, { "docid": "b7e98de900f4657495e91d5ff4bd6bd6", "score": "0.58140445", "text": "@Override\r\n\tpublic void init(){\r\n\t}", "title": "" }, { "docid": "e8b6a10ed01f50fbe15d66c44e6b001f", "score": "0.58043116", "text": "public void mo28809c() {\n }", "title": "" }, { "docid": "ecd084bf055d602fdedf08fab1e19a33", "score": "0.58032876", "text": "@Override\n\tvoid emi() {\n\t\t\n\t}", "title": "" }, { "docid": "1a69d70e6e0ab03826da865edbaa2710", "score": "0.5802549", "text": "@Override\r\n public void init() {\n \r\n }", "title": "" }, { "docid": "89685a97be106c5e65406e42741d0ec3", "score": "0.5795489", "text": "public void mo1383a() {\n }", "title": "" }, { "docid": "de5480604ae54822ca3e3427911bb2b8", "score": "0.57932764", "text": "@Override\r\n public void muestra() {\r\n \r\n }", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.57931334", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "812af2363c26b56566247f6bee5688a9", "score": "0.57931143", "text": "@Override\r\n\tprotected void cabecalho() {\n\t\t\r\n\t}", "title": "" }, { "docid": "630b43215e2b87f8b2bd389cae71f8a6", "score": "0.5789139", "text": "@Override\n\tprotected void dataAcquisition() {\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "849edaa5bbcc7511e16697ad05c01712", "score": "0.57740533", "text": "@Override\n\tpublic void avanzar() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "68ced9354b4e22b6351af0853a611a6c", "score": "0.57685226", "text": "@Override\n\tprotected void initDataReturn() {\n\n\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.576386", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.576386", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "4dad4a53c5b94a389679f4aa74f10e8b", "score": "0.576086", "text": "@Override\r\n\tprotected void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "627bf6ef88b45b88b902a23fc9a6eb2b", "score": "0.57533413", "text": "@Override\r\n\tpublic void init()\r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "393237de9c40b0b47e9d2c845ed92ee5", "score": "0.57512337", "text": "public void mo45857a() {\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "791f5ad29d019a14317f5d7e2a069c65", "score": "0.57465565", "text": "@Override\n\tpublic void aprovar() {\n\n\t}", "title": "" }, { "docid": "60492bcc1b7f57299660c3da0f16ab25", "score": "0.57418126", "text": "@Override\n\tpublic void icmek() {\n\t\t\n\t}", "title": "" }, { "docid": "da5e9df869731b2ae1dfbbfdf12b8cd8", "score": "0.5735176", "text": "public void mo3351d() {\n }", "title": "" }, { "docid": "a2125c0cb9324db88e7561e4a64c5e39", "score": "0.5734662", "text": "@Override\n\tpublic void etiquetas() {\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "24127c1aaba5ab942240f052757a1aae", "score": "0.5722859", "text": "@Override\n \tpublic void getStatus() {\n \t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5718783", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "2097402406ed48de16ed7ccfe28a85b4", "score": "0.57133764", "text": "public void mo5927b() {\n }", "title": "" }, { "docid": "03143ee9b26aa8a7d43576d479e4400a", "score": "0.5709887", "text": "public final void mo55685Zy() {\n }", "title": "" }, { "docid": "2fbf66fc78447a45c3f7ecb3924ab4b4", "score": "0.57051754", "text": "@Override\n public void initValue() {\n \n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701947", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "e1834e089677c260b4af3324391b3b67", "score": "0.5698954", "text": "public final void mo62463l() {\n }", "title": "" }, { "docid": "b42b054dfaac7d94036bce6ecf272a0e", "score": "0.56988037", "text": "private void pepe() {\n\t\t\n\t}", "title": "" }, { "docid": "09b27558b293ecd91a8d2d3a705d8a37", "score": "0.5676146", "text": "@Override\n\t\t\tpublic void c() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "86084419dce04a98c3acda092fe2ae36", "score": "0.5674851", "text": "@Override\r\n\t\t\tpublic void refresh() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "a0b89d2fbd83aefeb636ae04ad1fcd91", "score": "0.566569", "text": "public void init(){\n\t //TODO Auto-generated method stub\n\t}", "title": "" }, { "docid": "aabd8322198752312581d89a3059f204", "score": "0.56625766", "text": "@Override\n \tpublic void create() {\n\n \t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "29f3cdbb287e40f98a8d2f36bba2f27b", "score": "0.56487125", "text": "@Override\n\tpublic int eixos() {\n\t\treturn 1;\n\t}", "title": "" }, { "docid": "ce71f38a65a1456052420d8bdcb81b78", "score": "0.5647971", "text": "@Override\r\n\tprotected void reset()\r\n\t{\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t}", "title": "" }, { "docid": "70d974abd496677a87c8807bf56e0a5b", "score": "0.56434053", "text": "@Override\n public void desenhar() {\n \n }", "title": "" }, { "docid": "dbdc1deb5da4aee65d17f30f15f26778", "score": "0.56416714", "text": "private void getParentArtefactId() {\n\t\t\n\t}", "title": "" }, { "docid": "1f81bdf0bcfef346d61145fbc2986fa6", "score": "0.56412745", "text": "@Override\r\n public String getName() {\n return null;\r\n }", "title": "" }, { "docid": "acbb02f47467f45f5ab2c3b2e5f7545d", "score": "0.5640882", "text": "public final void mo62452a() {\n }", "title": "" } ]
1b2ac4a3e28fe9be35002766d329d52c
Relying on m_currentDetectionModeStrategy to manage the swipe left
[ { "docid": "db26b56141483d17c61b15ae063b9375", "score": "0.86609536", "text": "public void onSwipeLeft(){\n m_currentDetectionModeStrategy.onSwipeLeft();\n }", "title": "" } ]
[ { "docid": "f52f1c3d2739d57f958056089ef7edeb", "score": "0.74204695", "text": "public void onSwipeRight(){\n m_currentDetectionModeStrategy.onSwipeRight();\n }", "title": "" }, { "docid": "4008fc81f3e89fc6aa9f2c877e54700e", "score": "0.7117136", "text": "public void onSwipeLeft() {\n }", "title": "" }, { "docid": "9ec92e9112c5b4d05c39848c0ed5337e", "score": "0.70800954", "text": "@Override\n\tpublic void swipeLeft() {\n\t\t\n\t}", "title": "" }, { "docid": "28bcf039b5b69fe1b49bea7f2cf61169", "score": "0.70070565", "text": "@Override\n\tpublic void onLeftSwipe() {\n\n\t}", "title": "" }, { "docid": "c0ae7480fd8fc9e1eb2494f6d545e89f", "score": "0.6886202", "text": "@Override\n public void onSwipeLeft() {\n if (m_mainActivity.getDetectionProgress()!=NO_QR_DETECTED){\n\n //If the application is still detecting and the user has already reached the last currently available QRContent, cannot swipe left\n if (!(m_mainActivity.isApplicationDetecting() && m_mainActivity.getCurrentPos()==m_mainActivity.getContentSize()-1)){\n\n //If the app is waiting to be notified by the current QRFile of the end of its downloading, unregister as listener\n m_mainActivity.unregisterToQRFile();\n\n if (m_mainActivity.getCurrentPos()==m_mainActivity.getContentSize()-1){\n //Ending the reading if the user had already reached the last QRContent\n m_mainActivity.startNewDetection(\"\");\n }\n else{\n //Reading the next QRContent\n m_mainActivity.incrementCurrentPos();\n m_mainActivity.readCurrentContent();\n\n if (m_mainActivity.getCurrentPos()==m_mainActivity.getContentSize()-1){\n //Notifying the user if he has just reached the last QRContent\n ToneGeneratorSingleton.getInstance().lastQRCodeReadTone();\n }\n }\n }\n else{\n ToneGeneratorSingleton.getInstance().errorTone();\n }\n }\n else{\n ToneGeneratorSingleton.getInstance().errorTone();\n }\n }", "title": "" }, { "docid": "e1ea710d2592137a85e1fdd4993ad12d", "score": "0.68022424", "text": "public abstract void swipeLeft();", "title": "" }, { "docid": "6e4b01136952db2183bc33ccd49bb694", "score": "0.67455226", "text": "public void onSwipeLeft() {\n // TODO Auto-generated method stub\n\n }", "title": "" }, { "docid": "a31641bea095d0956633051f1ae26245", "score": "0.6286696", "text": "public boolean getSwipedLeft()\n\t{\n\t\treturn swipedLeft;\n\t}", "title": "" }, { "docid": "7da6968ffc83fffb9949da742ef9c8ab", "score": "0.619952", "text": "public void panLeft() {\n\t\tthis.camera.panLeft();\n\t\t\n\t}", "title": "" }, { "docid": "1b7a1ee14a1445ce46ddd4fe9c14608e", "score": "0.6061267", "text": "private void leftRightMovement() throws IOException{\n\t\tint moveCom = 0;\n\t\tmoveCom = camDisp.motionStart();\n\t\t\n\t\t//The instruction from CamDisplay is to move left\n\t\tif (moveCom == 1){\n\t\t\tmovePilot.left();\n\t\t\tstartCase = true;\n\t\t\t// move left\n\t\t} else if (moveCom == 2){\n\t\t\tmovePilot.right();\n\t\t\tstartCase = true;\n\n\t\t\t//move right\n\t\t} else if (moveCom == 0){\n\t\t\tmovePilot.stop();\n\t\t\tstartCase = false;\n\t\t\t//stop\n\t\t} else {\n\t\t\tmovePilot.stop();\n\t\t\tstartCase = false;\n\t\t\t//stop\n\t\t}\n\t}", "title": "" }, { "docid": "72fa17028764cc046175b10b88409d29", "score": "0.60484517", "text": "public boolean onLeftSide();", "title": "" }, { "docid": "9afa76bd810a9ece43da6be898cf40fa", "score": "0.6036644", "text": "@Override\r\n public void onStartTrackingTouch(RangeSeekBar view, boolean isLeft) {\n }", "title": "" }, { "docid": "202108935ed1e8186321a7fb016ca76a", "score": "0.6034248", "text": "@Override\n public void moveLeft() {\n \n }", "title": "" }, { "docid": "3d93bb7713543fbe8b30267a719d00b8", "score": "0.60290134", "text": "@Override\n public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {\n if ((e1.getX() - e2.getX()) > 50) {//左滑\n\n Bundle bundle1 = new Bundle();\n bundle1.putString(\"TAG_CASE_NUMBER\", TAG_CASE_NUMBER);\n\n if(Pass){\n bundle1.putString(\"TAG_NEXT_STEP_NUMBER\", TAG_NEXT_STEP_NUMBER);\n Intent it = new Intent(StepNextControlData.this, StepActionControl.class);\n it.putExtras(bundle1);\n startActivity(it);\n //overridePendingTransition(R.anim.in_from_right, R.anim.out_to_right);\n finish();\n }else{\n bundle1.putString(\"TAG_STEP_NUMBER\", TAG_STEP_NUMBER);\n bundle1.putInt(\"TAG_STEP_ORDER\", TAG_STEP_ORDER);\n //bundle1.putBoolean(\"TAG_BACK_TO_RECORDING\",true);\n Intent it1 = new Intent(StepNextControlData.this, Steprecording.class);\n it1.putExtras(bundle1);\n startActivity(it1);\n //overridePendingTransition(R.anim.in_from_right, R.anim.out_to_right);\n finish();\n }\n\n\n\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "4edb200b14e81ea2a42dd4a46228d2c8", "score": "0.6023425", "text": "@Override\n public int getMovementFlags(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder) {\n int dragFlags = ItemTouchHelper.UP | ItemTouchHelper.DOWN;\n //Available swipe directions\n int swipeFlags = ItemTouchHelper.LEFT | ItemTouchHelper.RIGHT;\n return makeMovementFlags(dragFlags, swipeFlags);\n }", "title": "" }, { "docid": "0bb5c3355cdd9d6ea0db171c2d6c9d6e", "score": "0.6014095", "text": "@Override\n public int getMovementFlags(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder) {\n if(recyclerView.getLayoutManager() instanceof LinearLayoutManager){\n //swipe direction\n int swipeFlags = ItemTouchHelper.START|ItemTouchHelper.END;\n // makeMovementFlags(0,swipeflags); the 0 is not support move\n return makeMovementFlags(0,swipeFlags);\n }\n return 0;\n }", "title": "" }, { "docid": "81058b7f6802ca1879b77a58e9ad6d34", "score": "0.60091853", "text": "public void left() {\n this.changed = Direction.Left;\n this.rotationChanged = Math.PI;\n }", "title": "" }, { "docid": "cc7e5103690f530f55afaf6015111ccc", "score": "0.59761715", "text": "public void moveLeft() {\r\n\t\tif(ducked == false){\r\n\t\t\tspeedX = -MOVESPEED;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1c3f8506816c8f5cf30f1ae4c48306a2", "score": "0.5975966", "text": "@Override\r\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\tif (mVelocityTracker == null) {\r\n\t\t\t\t\tmVelocityTracker = VelocityTracker.obtain();\r\n\t\t\t\t}\r\n\t\t\t\tmVelocityTracker.addMovement(event);\r\n\r\n\t\t\t\tfinal int action = event.getAction();\r\n\t\t\t\tfinal float x = event.getX();\r\n\t\t\t\tfinal float y = event.getY();\r\n\r\n\t\t\t\tswitch (action) {\r\n\t\t\t\tcase MotionEvent.ACTION_DOWN:\r\n\t\t\t\t\t// if (!mScroller.isFinished()) {\r\n\t\t\t\t\t// mScroller.abortAnimation();\r\n\t\t\t\t\t// }\r\n\t\t\t\t\tmLastMotionX = x;\r\n\t\t\t\t\tSystem.out.println(\"MotionEvent.ACTION_DOWN\");\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase MotionEvent.ACTION_MOVE:\r\n\t\t\t\t\tint deltaX = (int) (mLastMotionX - x);\r\n\t\t\t\t\tmLastMotionX = x;\r\n\t\t\t\t\tSystem.out.println(\"MotionEvent.ACTION_MOVE\");\r\n\t\t\t\t\t// scrollBy(deltaX, 0);\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase MotionEvent.ACTION_UP:\r\n\r\n\t\t\t\t\t// if (mTouchState == TOUCH_STATE_SCROLLING) {\r\n\t\t\t\t\tfinal VelocityTracker velocityTracker = mVelocityTracker;\r\n\t\t\t\t\tvelocityTracker.computeCurrentVelocity(1000);\r\n\t\t\t\t\tint velocityX = (int) velocityTracker.getXVelocity();\r\n\r\n\t\t\t\t\tif (velocityX > SNAP_VELOCITY) {\r\n\t\t\t\t\t\t// if (velocityX > SNAP_VELOCITY && mCurScreen > 0) {\r\n\t\t\t\t\t\t// Fling enough to move left\r\n\t\t\t\t\t\t// onScreenChangeListener.onScreenChange(mCurScreen -\r\n\t\t\t\t\t\t// 1);\r\n\t\t\t\t\t\t// System.out.println(\"mCurScreen=\" + (mCurScreen - 1));\r\n\t\t\t\t\t\t// snapToScreen(mCurScreen - 1);\r\n\t\t\t\t\t\t// scrollView.scrollTo(0, 0);\r\n\t\t\t\t\t\tmScroller.startScroll(480, 0, 0, 0, 1000);\r\n\t\t\t\t\t\tscrollView.invalidate();\r\n//\t\t\t\t\t\tscrollView.computeScroll();\r\n\t\t\t\t\t\tif (mScroller.computeScrollOffset()) {\r\n\t\t\t\t\t\t\tscrollView.scrollTo(mScroller.getCurrX(),\r\n\t\t\t\t\t\t\t\t\tmScroller.getCurrY());\r\n\t\t\t\t\t\t\tscrollView.postInvalidate();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tSystem.out.println(\"Fling enough to move left\");\r\n\t\t\t\t\t} else if (velocityX < -SNAP_VELOCITY) {\r\n\t\t\t\t\t\t// } else if (velocityX < -SNAP_VELOCITY\r\n\t\t\t\t\t\t// && mCurScreen < getChildCount() - 1) {\r\n\t\t\t\t\t\t// Fling enough to move right\r\n\t\t\t\t\t\t// onScreenChangeListener.onScreenChange(mCurScreen +\r\n\t\t\t\t\t\t// 1);\r\n\t\t\t\t\t\t// //只往右移动才加载数据\r\n\t\t\t\t\t\t// onScreenChangeListenerDataLoad.onScreenChange(mCurScreen+1);\r\n\t\t\t\t\t\t// snapToScreen(mCurScreen + 1);\r\n\t\t\t\t\t\t// scrollView.scrollTo(480, 0);\r\n\t\t\t\t\t\taddView(); \r\n//\t\t\t\t\t\tscrollView.addView(linearLayout);\r\n\t\t\t\t\t\tmScroller.startScroll(0, 0, 480, 0, 1000);\r\n\t\t\t\t\t\tscrollView.invalidate();\r\n//\t\t\t\t\t\tscrollView.computeScroll();\r\n\t\t\t\t\t\tif (mScroller.computeScrollOffset()) {\r\n\t\t\t\t\t\t\tscrollView.scrollTo(mScroller.getCurrX(),\r\n\t\t\t\t\t\t\t\t\tmScroller.getCurrY());\r\n\t\t\t\t\t\t\tscrollView.postInvalidate();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tSystem.out.println(\"Fling enough to move right\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// snapToDestination();\r\n\t\t\t\t\t\tSystem.out.println(\"else\");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (mVelocityTracker != null) {\r\n\t\t\t\t\t\tmVelocityTracker.recycle();\r\n\t\t\t\t\t\tmVelocityTracker = null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// }\r\n\t\t\t\t\tmTouchState = TOUCH_STATE_REST;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase MotionEvent.ACTION_CANCEL:\r\n\t\t\t\t\tmTouchState = TOUCH_STATE_REST;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn true;\r\n\t\t\t}", "title": "" }, { "docid": "608962ada60ae04966f6eadb8edbb90a", "score": "0.5972175", "text": "private void adjustLeft(WorldSpatial.Direction orientation, float delta) {\r\n\t\t\r\n\t\tswitch(orientation){\r\n\t\tcase EAST:\r\n\t\t\tif(getAngle() > WorldSpatial.EAST_DEGREE_MIN+EAST_THRESHOLD){\r\n\t\t\t\tturnRight(delta);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase NORTH:\r\n\t\t\tif(getAngle() > WorldSpatial.NORTH_DEGREE){\r\n\t\t\t\tturnRight(delta);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase SOUTH:\r\n\t\t\tif(getAngle() > WorldSpatial.SOUTH_DEGREE){\r\n\t\t\t\tturnRight(delta);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase WEST:\r\n\t\t\tif(getAngle() > WorldSpatial.WEST_DEGREE){\r\n\t\t\t\tturnRight(delta);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "edf2e6768050b7711caa6773387b82f8", "score": "0.5928222", "text": "private void applyLeftTurn(WorldSpatial.Direction orientation, float delta) {\r\n\t\tswitch(orientation){\r\n\t\tcase EAST:\r\n\t\t\tif(!getOrientation().equals(WorldSpatial.Direction.NORTH)){\r\n\t\t\t\tturnLeft(delta);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase NORTH:\r\n\t\t\tif(!getOrientation().equals(WorldSpatial.Direction.WEST)){\r\n\t\t\t\tturnLeft(delta);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase SOUTH:\r\n\t\t\tif(!getOrientation().equals(WorldSpatial.Direction.EAST)){\r\n\t\t\t\tturnLeft(delta);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase WEST:\r\n\t\t\tif(!getOrientation().equals(WorldSpatial.Direction.SOUTH)){\r\n\t\t\t\tturnLeft(delta);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "bcf8c0a783da59fd0e4d39d34182a25a", "score": "0.5874423", "text": "public void onSwipeTop() {\n m_currentDetectionModeStrategy.onSwipeTop();\n }", "title": "" }, { "docid": "af39771ec0256987c3e5210c8aceb2a6", "score": "0.5863934", "text": "public void onSwipeRight() {\n // TODO Auto-generated method stub\n\n }", "title": "" }, { "docid": "dd5d5262235f2226ae328ec4369f8dba", "score": "0.58538234", "text": "public static void swipeLeft(WebDriver driver) {\r\n\t\tSystem.out.println(\"=Performing New Swipe =\");\r\n\r\n\t\tAppiumDriver adriver = (AppiumDriver) driver;\r\n\t\tTouchAction touchAction = new TouchAction(adriver);\r\n\t\tDimension size = adriver.manage().window().getSize();\r\n\t\tint startx = (int) (size.width * 0.8);\r\n\t\tint endx = (int) (size.width * 0.15);\r\n\t\tint starty = size.height / 3; \r\n\t\t\r\n\t\t\r\n\r\n\t\ttry {\r\n\t\t\tif (isIos(driver))\r\n\t\t\t\ttouchAction.press(PointOption.point(startx, starty)).moveTo(PointOption.point(endx - startx, 0))\r\n\t\t\t\t\t\t.release().perform(); // Relative final Co-ordinates\r\n\t\t\telse\r\n\t\t\t\ttouchAction.press(PointOption.point(startx, starty))\r\n\t\t\t\t\t\t.waitAction(WaitOptions.waitOptions(Duration.ofSeconds(1)))\r\n\t\t\t\t\t\t.moveTo(PointOption.point(10, starty)).release().perform(); // Absolute final Co-ordinates\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.err.println(\"Scroll error \");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "d3836b30815878d025794174757c5da9", "score": "0.58509874", "text": "public boolean isLeftToRight() {\n/* 141 */ return ((this.orientation & 0x4) != 0);\n/* */ }", "title": "" }, { "docid": "ad9c1b2c9a19c4eed53617e9f4f6e694", "score": "0.58420753", "text": "public void onLeftToRightSwipe(View v){\n\n Log.i(TAG, \"left to right\");\n\n v.animate().setInterpolator(new DecelerateInterpolator())\n .setDuration(1000)\n .x(mRelativeLayout.getMeasuredWidth() - v.getMeasuredWidth()).setListener(new Animator.AnimatorListener() {\n @Override\n public void onAnimationStart(Animator animator) {\n\n }\n\n @Override\n public void onAnimationEnd(Animator animator) {\n\n }\n\n @Override\n public void onAnimationCancel(Animator animator) {\n\n }\n\n @Override\n public void onAnimationRepeat(Animator animator) {\n\n }\n });\n mRelativeLayout.invalidate();\n }", "title": "" }, { "docid": "e43f0517348625a0032b93c67a113745", "score": "0.5823345", "text": "@Override\n public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {\n float deltaX = e1.getX() - e2.getX();\n\n // Get swipe delta value in y axis.\n float deltaY = e1.getY() - e2.getY();\n\n // Get absolute value.\n float deltaXAbs = Math.abs(deltaX);\n float deltaYAbs = Math.abs(deltaY);\n\n\n //Detect Left and Right swipes.\n if(deltaXAbs >= MIN_SWIPE_DISTANCE_X && deltaXAbs <= MAX_SWIPE_DISTANCE_X ){\n if(deltaX > 0){\n //this.activity.displayMessage(\"Swipe To Left\");.\n this.activity.activityTurning(\"Swipe To Left\"); //오른쪽에서 왼쪽.\n\n\n\n } else{\n //this.activity.displayMessage(\"Swipe to Right\");.\n this.activity.activityTurning(\"Swipe To Right\"); //왼쪽에서 오른쪽.\n\n }\n }\n\n // Only when swipe distance between minimal and maximal distance value then we treat it as effective swipe\n if((deltaYAbs >= MIN_SWIPE_DISTANCE_Y) && (deltaYAbs <= MAX_SWIPE_DISTANCE_Y))\n {\n if(deltaY > 0)\n {\n\n //this.activity.displayMessage(\"Swipe to up\");\n this.activity.activityTurning(\"Swipe To Up\");\n\n }else\n {\n //this.activity.displayMessage(\"Swipe to down\");.\n this.activity.activityTurning(\"Swipe To Down\");\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "bf85d762e8f35fa2a13b008e1dfe1f39", "score": "0.582169", "text": "public void turnLeft() {\n int index = getNewIndex(-1);\n direction = Direction.values()[index];\n }", "title": "" }, { "docid": "739c47a138817da7182afc43ce7eeafe", "score": "0.5813885", "text": "@Override\n public void onSwipeRight() {\n if (m_mainActivity.getDetectionProgress()!=NO_QR_DETECTED){\n\n if (m_mainActivity.getCurrentPos()==0){\n //Notifying the user that he cannot swipe right because the current QRContent is the first\n ToneGeneratorSingleton.getInstance().firstQRCodeReadTone();\n }\n else{\n //If the app is waiting to be notified by the current QRFile of the end of its downloading, unregister as listener\n m_mainActivity.unregisterToQRFile();\n\n //Reading the previous QRContent\n m_mainActivity.decrementCurrentPos();\n m_mainActivity.readCurrentContent();\n }\n }\n else{\n ToneGeneratorSingleton.getInstance().errorTone();\n }\n\n }", "title": "" }, { "docid": "6ebb81a9fd09346bd02c131ac657b799", "score": "0.58061695", "text": "@Override\n public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY){\n if(Math.abs(e1.getY()-e2.getY())>SWIPE_MAX_OFF_PATH){\n return false;\n }\n //from left to right\n if(e2.getX() > e1.getX()){\n if(e2.getX() - e1.getX()> SWIPE_MIN_DISTANCE && Math.abs(velocityX)>SWIPE_THRESHOLD_VELOCITY){\n onSwipeRight();\n return true;\n }\n }\n if(e1.getX() - e2.getX()> SWIPE_MIN_DISTANCE && Math.abs(velocityX)>SWIPE_THRESHOLD_VELOCITY){\n onSwipeLeft();\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "4972d18461ac240b92fcec19580b1ab2", "score": "0.580116", "text": "public boolean ismIsMovingLeft() {\n return mIsMovingLeft;\n }", "title": "" }, { "docid": "488296fb6fe2da2e1524e4c5bb27b80b", "score": "0.5787625", "text": "public void scrollLeft() {\n\t\tBasicMovement sceneMovement = getDefaultMovement();\n\t\tsceneMovement.moveX(1);\n\t}", "title": "" }, { "docid": "ba63f1a53e2fbeb93fb9c5e20c2eff5c", "score": "0.5775581", "text": "@Override\n public int getMovementFlags(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder) {\n if(viewHolder.getItemViewType()== BaseRecyclerViewAdapter.VIEW_TYPES.NORMAL){\n return makeMovementFlags(dragFlags, swipeFlags);\n }\n return makeMovementFlags(dragFlags, 1>>1);\n }", "title": "" }, { "docid": "c7011941cb108e71a6e198de97987b5f", "score": "0.5736307", "text": "public void goLeft() { \n setDirection( DIRECTION_LEFT ); \n }", "title": "" }, { "docid": "fe0c07da5e705c935a2c1058c8410b1b", "score": "0.5704431", "text": "public void turnLeft() {\n \n \tdirection = LEFT;\n \tx = model.getCurrentX();\n \ty = model.getCurrentY();\n \t\n \t//wrap\n \tif(!(x <= 0)){\n \t\t//checking if player has no wall power ups\n \t\tif(model.hasNoWallPower){\n \t\t\tmodel.setCurrentX(x -= 1);\n \t\t\tmodel.noWallStepCount--;\n \t\t\t//reseting the counter if n steps are done\n \t\t\tif(model.noWallStepCount <= 0){\n \t\t\t\tmodel.hasNoWallPower = false;\n \t\t\t\tmodel.noWallStepCount = model.maxNoWallStep;\n \t\t\t}\n \t\t}else{\n \t\t\tif(x != 0 && !verticalLines[y][x-1]) {\n \t\t\t\tif(model.hasInvincible){\n \t\t\t\t\tmodel.invincibleStepCount--;\n \t \t\t\tif(model.invincibleStepCount <= 0){\n \t \t\t\t\tmodel.hasInvincible = false;\n \t \t\t\t\tmodel.invincibleStepCount = model.maxInvincibleStep;\n \t \t\t\t}\n \t\t\t\t}\n \t \t\tmodel.setCurrentX(x -= 1); \n \t \t}\n \t\t}\n \t}\n \t\n }", "title": "" }, { "docid": "8aaa9f6a66181e7bf11a0a6657d7d4ba", "score": "0.56996745", "text": "@Override\n public void onSwiping(RecyclerView.ViewHolder viewHolder, float ratio, int direction) {\n\n }", "title": "" }, { "docid": "4f774844f1a66c98770a6ba89c359b81", "score": "0.5699612", "text": "private GestureDetector createGestureDetector(Context context) {\n\t\tGestureDetector gestureDetector = new GestureDetector(context);\n\n\t\t// Create a base listener for generic gestures\n\t\tgestureDetector.setBaseListener(new GestureDetector.BaseListener() {\n\t\t\t@Override\n\t\t\tpublic boolean onGesture(Gesture gesture) {\n\n\t\t\t\tif (gesture == Gesture.SWIPE_RIGHT) {\n\n\t\t\t\t\t// do something on right (forward) swipe\n\t\t\t\t\tmAudioManager.playSoundEffect(Sounds.DISMISSED);\n\t\t\t\n\t\t\t\t\t//peaceOut(act_context);\n\t\t\t\t} else if (gesture == Gesture.SWIPE_LEFT) {\n\n\t\t\t\t\t// do something on left (backwards) swipe\n\t\t\t\t\tmAudioManager.playSoundEffect(Sounds.DISMISSED);\n\t\t\t\t\t//peaceOut(act_context);\n\t\t\t\t} else if (gesture == Gesture.SWIPE_DOWN) {\n\t\t\t\t\t//we cover this case in the below onKeyUp() method\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t});\n\t\tgestureDetector.setFingerListener(new GestureDetector.FingerListener() {\n\t\t\t@Override\n\t\t\tpublic void onFingerCountChanged(int previousCount, int currentCount) {\n\n\t\t\t\t// do something on finger count changes\n\t\t\t\tLog.i(TAG, \"Finger count changed\");\n\t\t\t}\n\t\t});\n\t\tgestureDetector.setScrollListener(new GestureDetector.ScrollListener() {\n\t\t\t@Override\n\t\t\tpublic boolean onScroll(float displacement, float delta,\n\t\t\t\t\tfloat velocity) {\n\t\t\t\t//int seekTo = (int)(1000 * velocity);\n\t\t\t\t//player.seekRelativeMillis(seekTo);\n\t\t\t\t// do something on scrolling\n\t\t\t\tLog.i(TAG, \"scroll detected, seeking to: \");\n\t\t\t\treturn true;\n\t\t\t}\n\t\t});\n\t\treturn gestureDetector;\n\n\t}", "title": "" }, { "docid": "8ef41589bc57ef449e9cc5820e6d5f97", "score": "0.5699581", "text": "public void onSwipeBottom() {\n m_currentDetectionModeStrategy.onSwipeBottom();\n }", "title": "" }, { "docid": "13312825dd8e06fe7b8275a2c1bc595a", "score": "0.56982", "text": "private void rotateLeft() {\n direction = direction.rotateLeft();\n }", "title": "" }, { "docid": "1bf5392370290779839262eba92de185", "score": "0.56959623", "text": "public SurfaceView getViewLeft() { return this.SurfaceViewLeft; }", "title": "" }, { "docid": "78e6138faeaf863d7eac1e5da6aa9584", "score": "0.56853515", "text": "public void turnLeft() {\n\t\tswitch (direction) {\n\t\tcase DOWN:\n\t\t\tdirection = Direction.RIGHT;\n\t\t\tbreak;\n\t\tcase LEFT:\n\t\t\tdirection = Direction.DOWN;\n\t\t\tbreak;\n\t\tcase RIGHT:\n\t\t\tdirection = Direction.UP;\n\t\t\tbreak;\n\t\tcase UP:\n\t\t\tdirection = Direction.LEFT;\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "d3d08fffb198ebbdfaca877c69f1129f", "score": "0.5667937", "text": "private void moveLeft() {\n\t\tsetDirection(Direction.LEFT);\n\t\tif(!tankCollisionLeft) {\n\t\t\tif(x - dx <= 0)\n\t\t\t\tx = 0;\n\t\t\telse\n\t\t\t\tx -= dx;\n\t\t}\n\t}", "title": "" }, { "docid": "64e05a229790ac931f04fcd279bb5162", "score": "0.566206", "text": "@Override\n public void onLeft() {\n layer.sprite.goLeft();\n }", "title": "" }, { "docid": "7e5d7951529908b1650ed2403cededb1", "score": "0.5660429", "text": "@Override\n public boolean onFling(MotionEvent downEvent, MotionEvent moveEvent, float velocityX, float velocityY) {\n boolean result = false;\n try {\n float diffY = moveEvent.getY() - downEvent.getY();\n float diffX = moveEvent.getX() - downEvent.getX();\n if (Math.abs(diffX) > Math.abs(diffY)) {\n //Swipe Left or Right\n if (Math.abs(diffX) > THRESHOLD && Math.abs(velocityX) > THRESHOLD_VELOCITY) {\n if (diffX > 0) {\n //Swipe Right\n swipeRight();\n } else {\n //Swipe Left\n swipeLeft();\n }\n result = true;\n }\n }\n else {\n //Swipe up or down\n if (Math.abs(diffY) > THRESHOLD && Math.abs(velocityY) > THRESHOLD_VELOCITY) {\n if (diffY > 0) {\n //Swipe down\n swipeDown();\n } else {\n //Swipe up\n swipeUp();\n }\n result = true;\n }\n }\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n return result;\n }", "title": "" }, { "docid": "ba567f18b76083cb23784c5075f815d2", "score": "0.565861", "text": "boolean isLeftSwipe(ArrayList<TuioCursor> cursors) {\n\t\tTuioPoint startPoint = getAveragePoint(cursors,0);\n\t\tSystem.out.println(\"Start pointX: \"+startPoint.getX());\n\t\tTuioPoint lastPoint = getAveragePoint(cursors,findMaxIndex(cursors));\n\t\tSystem.out.println(\"end pointX: \"+lastPoint.getX());\n\n//\t\tif (allPointsWithinRect(cursors, findMaxIndex(cursors), 0, 1, 0, startPoint.getY()-VERT_MIN_Y))\n//\t\t\treturn true;\n\t\tif (startPoint.getX() - HORIZ_MIN_X > lastPoint.getX())\n\t\t\treturn true;\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "c687295cce01b5aa915b44c18cec633c", "score": "0.56566525", "text": "public void move_left() {\n\t\tset_moving(true);\n\t\tset_moving_to_next_tile(true);\n\t\tmove_direction = Player.LEFT;\n\t\tdir = Player.LEFT;\n\t\tdir_still = Player.LEFT;\n\t}", "title": "" }, { "docid": "b1399b425afa7d5371201fac4c29b8d1", "score": "0.5621399", "text": "@Override\n\tpublic boolean onFling(MotionEvent e3, MotionEvent e4, float velocityX,\n\t\t\tfloat velocityY) {\n\t\tif (e3.getX() - e4.getX() > SWIPE_MIN_DISTANCE\n\t\t\t\t&& Math.abs(velocityX) > SWIPE_THRESHOLD_VELOCITY) {\n\t\t\tif(count2>5)\n\t\t\t{\n\t\t\t\tthis.releaseSoundEffect();\n\t\t\t\tthis.playSound(TUTORIAL_SUCCEEDED);\n\t\t\t\ttry {\n\t\t\t\t\t\n\t\t\t\t\tThread.sleep(1000);\n\t\t\t\n\t\t\t\t}catch(InterruptedException e11){\n\t\t\t\t\te11.printStackTrace();\n\t\t\t\t}\n\t\t\t\tsayPageName(\"You have successfully performed Swipe Right\");\n\t\t\t\ttry {\n\t\t\t\t\t\n\t\t\t\t\tThread.sleep(3000);\n\t\t\t\n\t\t\t\t}catch(InterruptedException e12){\n\t\t\t\t\te12.printStackTrace();\n\t\t\t\t}\n\t\t\t\tIntent intent = new Intent(TutorialSwipeLeft.this, TutorialButtons.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}else\n\t\t\t{\n\t\t\t\tthis.releaseSoundEffect();\n\t\t\t\tthis.playSound(TUTORIAL);\n\t\t\t\t\n\t\t\t\tsayPageName(\"swipe left\");\n\t\t\t\tcount2++;\n\t\t\t}\n\t\t\t\n\n\t\t\t//finish();\n\t\t}else if(e4.getX() - e3.getX() >SWIPE_MIN_DISTANCE\n\t\t\t\t&& Math.abs(velocityX) > SWIPE_THRESHOLD_VELOCITY) {\n\t\t\t//swipe left\n\t\t\tthis.sayPageName(\"Finish Tutorial\");\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tThread.sleep(2000);\n\t\t\n\t\t\t}catch(InterruptedException e31){\n\t\t\t\te31.printStackTrace();\n\t\t\t}\n\t\t\tIntent intent2 = new Intent(TutorialSwipeLeft.this, gt.class);\n\t\t\tstartActivity(intent2);\n\n\t\t}else if(e3.getY() - e4.getY() > SWIPE_MIN_DISTANCE\n\t\t\t\t&& Math.abs(velocityY) > SWIPE_THRESHOLD_VELOCITY) {\n\t\t\t\n\t\t\t\t\n\t\t // viewA.setText(\"-\" + \"Fling up?\" + \"-\");\n\n\t\t\t}else if(e4.getY() - e3.getY() > SWIPE_MIN_DISTANCE\n\t\t\t\t\t&& Math.abs(velocityY) > SWIPE_THRESHOLD_VELOCITY) {\n\t\t\t\n\t\t\t}\t\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "c47af46e779a1075ef651efa3d9ac6e7", "score": "0.5617383", "text": "public void onSwipeLeft(float distance) {\n if (swiper != null) {\n swiper.onSwipeLeft(distance);\n }\n }", "title": "" }, { "docid": "93dd6598ecf9e66b5f8dc941fffd1b6a", "score": "0.5614343", "text": "public abstract void swipeRight();", "title": "" }, { "docid": "20378ebe5c5e62225d16094cae2b70bf", "score": "0.5611609", "text": "public void moveLeft() {\n if(momentum == 0)\n set_image(image_left);\n\n momentum -= movement;\n if(momentum < -maxMovement)\n momentum = -maxMovement;\n\n set_x(x + (int)momentum);\n }", "title": "" }, { "docid": "660a40083465fc500ab77bc96bdff761", "score": "0.56046176", "text": "@Override\n\tpublic void moveLeftOne() {\n\t\t\n\t}", "title": "" }, { "docid": "5a4603cb7afc7e17fa61eb8886e2bcf3", "score": "0.5604429", "text": "public boolean canFlingFromRightToLeft(){\n if (!isZoomed())\n return true;\n //when zoomed, scroll = 0\n if(overScroller.getCurrX() == getMaxHorizontal())\n return true;\n else\n return false;\n }", "title": "" }, { "docid": "5328076736866f2c1a422694d0362db9", "score": "0.559471", "text": "private void moveLeft() {\n for(int i = 0; i < Settings.BOARD_GRID_LENGTH; i++) {\n if(markers[i][0].isChecked()) {\n return;\n }\n }\n for(int i = 0; i < markers.length; i++) {\n for(int j = 0; j < markers[i].length-1; j++) {\n if(markers[i][j+1].isChecked()) {\n markers[i][j].setChecked(true);\n markers[i][j+1].setChecked(false);\n }\n }\n }\n }", "title": "" }, { "docid": "61a1236fe992325176528b69ec6d31e7", "score": "0.558636", "text": "public SurfaceView getLeftSurfaceView() { return this.SurfaceViewLeft; }", "title": "" }, { "docid": "5cf8c4e8fbffba92e76980cdd4d3b5f9", "score": "0.5586298", "text": "public void steerLeft() {\r\n\t\tint currentDirection = super.get_direction();\r\n\t\tif(currentDirection == 0) {\r\n\t\t\tcurrentDirection = 360-10;\t// change 0 to 360 to avoid negative angle\r\n\t\t}else currentDirection = currentDirection-10;\r\n\t\tsuper.set_direction(currentDirection);\r\n\t}", "title": "" }, { "docid": "0e7bc0164e786a627fd93f6b7e955a56", "score": "0.5584055", "text": "private int get_left_flag(){\n return 2;\n }", "title": "" }, { "docid": "a6c47f750dba7f54cf678cfe132f5ff0", "score": "0.5583442", "text": "public void moveLeft(){\r\n moveLeft = true;\r\n }", "title": "" }, { "docid": "a8d539dfc06b65c04787c9bbb8c5e2e8", "score": "0.55775785", "text": "public void setLeftEnable(boolean enable) {\n\t\tleftEnable = enable;\n\t}", "title": "" }, { "docid": "4f23c84cf4f7281910ead7fb19310de6", "score": "0.5577441", "text": "private void handleMovement() {\n double turn = gamepad1.right_stick_x/2;\n double power = Math.hypot(gamepad1.left_stick_x, -gamepad1.left_stick_y);\n double moveAngle = Math.atan2(-gamepad1.left_stick_y, gamepad1.left_stick_x) - Math.PI/4;\n\n if (fieldMode) {\n moveAngle += -currPose.getHeading() - fieldHeadingOffset + fieldModeSign*Math.PI/2;\n }\n\n //power = power;\n turn = turn / 4;\n if (gamepad1.left_bumper) { // further bring it down\n power = power/3;\n turn = turn/3;\n }\n robotHardware.mecanumDriveTest(power, moveAngle, turn, 0);\n\n // toggle field mode on/off.\n // Driver 1: left trigger - enable; right trigger - disable\n if (gamepad1.left_trigger > 0) {\n fieldMode = true;\n fieldHeadingOffset = currPose.getHeading();\n } else if (gamepad1.right_trigger > 0) {\n fieldMode = false; //good luck driving\n }\n }", "title": "" }, { "docid": "520944f42e9e0f1e1df0218b5ed50b2e", "score": "0.5576981", "text": "@Override\n public int getMovementFlags(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder) {\n int dragFlags = ItemTouchHelper.UP | ItemTouchHelper.DOWN;\n int swipeFlags = ItemTouchHelper.START | ItemTouchHelper.END;\n return makeMovementFlags(dragFlags, swipeFlags);\n }", "title": "" }, { "docid": "7316f3a4ac1d848628eb6ebdb6c08e2c", "score": "0.5568636", "text": "public void moveLeft() {\n double x = this.rect.getUpperLeft().getX();\n if (x > 20) {\n double y = this.rect.getUpperLeft().getY();\n Point next = new Point(x - this.paddleSpeed, y);\n double w = this.rect.getWidth();\n double h = this.rect.getHeight();\n this.rect = new Rectangle(next, w, h);\n }\n\n }", "title": "" }, { "docid": "d82f149e0314dc6069ce0523aeffdd5c", "score": "0.5557673", "text": "public synchronized void startMovingLeft() {\n startMovingTime = System.currentTimeMillis();\n movingLeft = true;\n }", "title": "" }, { "docid": "6bbc7a574d8e2120d86ce68fc78e1626", "score": "0.5552949", "text": "public void moveLeft(){\n\t\tif(x > 40){\n\t\t\tif(dx > -5){\n\t\t\t\tdx = -1;\n\t\t\t\tdx -= 4;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "a0cb82162287f8ea1a42b051b89d6a59", "score": "0.5549892", "text": "@Override\r\n public boolean checkLeft() {\r\n return step[count1][0] == 1; //Si es True, existe camino libre\r\n //return this.SensorRight.pulse(); PARA FASE NO.2\r\n }", "title": "" }, { "docid": "4f64566d210db3e6fad83f1ab7dc19dd", "score": "0.55497", "text": "void turnLeft() throws Exception {\n\t\t// Move left wheel 400mm/s backwards\n\t\t// and right wheel 400mm/s forward\n\t\tdriveDirect(-400, 400);\n\t\t// Let the robot move for 436 milliseconds\n\t\tThread.sleep(436);\n\t\t// Stop moving\n\t\tstop();\n\t}", "title": "" }, { "docid": "5aada3b1779269f2bbcee2c258441251", "score": "0.554728", "text": "@Override\n\tpublic int getDragLeftCorrection() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "e0baac03b46fc8cc820389b4e4f57445", "score": "0.5541613", "text": "public abstract void scrollLeft();", "title": "" }, { "docid": "dc2a4c00035579394d4274014dd8cd28", "score": "0.5540761", "text": "public void moveLeft() {\n // change only if the paddle is inside the game boards\n if (rectangle.getUpperLeft().getX() >= REC_SIZE_HEIGHT + SPEED_PADDLE + 5) {\n Point temp = this.rectangle.getUpperLeft();\n // change the x value to the imagine change of speed\n double x = temp.getX() - this.speed;\n double y = temp.getY();\n Point update = new Point(x, y);\n // create the updated rectangle\n this.rectangle = new Rectangle(update, this.rectangle.getWidth(), this.rectangle.getHeight());\n }\n }", "title": "" }, { "docid": "6e1446814671df2e12defbb371b3c923", "score": "0.55343497", "text": "private void moveLeft() {\n if (rect.getUpperLeft().getX() < this.lScreenBorder + 10) {\n return;\n }\n this.rect.moveRectangleX(this.dSpeed * -1);\n }", "title": "" }, { "docid": "0a9b1efd8f4be2fbb292d255e58ff65f", "score": "0.553233", "text": "@Override\r\n\tpublic boolean onTouchEvent(MotionEvent v) {\r\n\t// MotionEvent reports input details from the touch screen\r\n\t// and other input controls. In this case, we are only\r\n\t// interested in events where the touch position changed.\r\n\t/*float x = e.getX();\r\n\tfloat y = e.getY();*/\r\n\tswitch (v.getAction()) {\r\n\tcase MotionEvent.ACTION_DOWN:\r\n\tLog.v(\"Test Action Down\", \"action down working\");\r\n\tLog.i(\"Test Action Nilai\", \"\"+Math.abs(esRender.getRunMode()-1));\r\n\tesRender.setRunMode(Math.abs(esRender.getRunMode()-1));\r\n\t//break;\r\n\trequestRender();\r\n\t//case MotionEvent.ACTION_POINTER_UP:\r\n\t//Log.v(\"Test Action ACTION_POINTER_UP\", \"action working\");\r\n\t//Log.i(\"Test Action Nilai\", \"\"+Math.abs(esRender.getAnimateStep()));\r\n\t//esRender.setAnimateStep(esRender.getAnimateStep()+8.0f);\r\n\t//requestRender();\r\n\t//case MotionEvent.ACTION_MOVE:\r\n\t//Log.v(\"Test Action ACTION_POINTER_DOWN\", \"action working\");\r\n\t//Log.i(\"Test Action Nilai\", \"\"+Math.abs(esRender.getAnimateStep()));\r\n\t//esRender.setAnimateStep(esRender.getAnimateStep()-8.0f);\r\n\t//requestRender();\r\n\t//case MotionEvent.ACTION_UP:\r\n\t//Log.v(\"Test Action Up\", \"action up working\");\r\n\t//esRender.setRunMode(esRender.getRunMode());\r\n\t//requestRender();\r\n\t//case MotionEvent.ACTION_MOVE:\r\n\t//esRender.setRunMode(esRender.getRunMode());\r\n\t//requestRender();\r\n\t}\r\n\t//mPreviousX = x;\r\n\t// mPreviousY = y;\r\n\treturn true;\r\n\t//break;\r\n\t}", "title": "" }, { "docid": "3ab18cf879b82ffbf3d830e30ddab049", "score": "0.5529049", "text": "public boolean canSeeGoalOnLeft() throws UnsupportedMethodException {\n\t\t\n\t\tif (sensorOnLeft){\n\t\t\tint distance = leftSensor.getDistance(getCurrentDirection(), getCurrentPosition(), theMaze);\n\t\t\t\n\t\t\tint i = 0;\n\t\t\t\n\t\t\tint xPosition = getCurrentPosition()[0];\n\t\t\tint yPosition = getCurrentPosition()[1];\n\t\t\t\n\t\t\tint xDirection = getCurrentDirection()[0];\n\t\t\tint yDirection = getCurrentDirection()[1];\n\t\t\t\n\t\t\t\n\t\t\t//it is always the case that either x or y will equal zero and the other number will be 1 or -1\n\t\t\t\n\t\t\tif (xDirection != 0){\n\t\t\t\t\n\t\t\t\tswitch(xDirection){\n\t\t\t\t\n\t\t\t\tcase 1: //we are moving right\n\t\t\t\t\twhile ( i < distance ){ //move down \n\t\t\t\t\t\tyPosition += 1; \n\t\t\t\t\t\ti++;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase -1: //we are moving left\n\t\t\t\t\twhile ( i < distance ){ //move up\n\t\t\t\t\t\tyPosition -= 1; \n\t\t\t\t\t\ti++;\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\t\telse{ //we are dealing with a vertical direction (up or down)\n\t\t\t\t\n\t\t\t\tswitch(yDirection){\n\t\t\t\t\n\t\t\t\tcase 1: //we are moving down\n\t\t\t\t\twhile ( i < distance ){ //move left\n\t\t\t\t\t\txPosition -= 1; \n\t\t\t\t\t\ti++;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase -1: //we are moving up\n\t\t\t\t\twhile ( i < distance ){ //move right\n\t\t\t\t\t\txPosition += 1; \n\t\t\t\t\t\ti++;\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\t\t\n\t\t\t\n\t\t\tif ( theMaze.mazecells.hasMaskedBitsFalse( xPosition, yPosition, leftSensor.bitMask ) && \n\t\t\t\ttheMaze.mazecells.hasMaskedBitsTrue(xPosition, yPosition, leftSensor.bitMask << 5) ){ //if a border is up in that direction\n\t\t\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\t\t\n\t\t\telse\n\t\t\t\treturn false;\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tthrow new UnsupportedMethodException();\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "e37303db9fc1c9c22dbe4c76f69dd28e", "score": "0.55272627", "text": "@Override\n\tpublic void swipeRight() {\n\t\t\n\t}", "title": "" }, { "docid": "b1079f014b441b5420b8ad2635fdd8e3", "score": "0.5523795", "text": "@Override\n public boolean onDown(MotionEvent e) {\n return true;\n }", "title": "" }, { "docid": "d923b25b0adc94846eafc29bedd5145a", "score": "0.5514532", "text": "@Override\n public boolean onFling(MotionEvent event1, MotionEvent event2,\n float velocityX, float velocityY) {\n\n /*\n Toast.makeText(getBaseContext(),\n event1.toString() + \"\\n\\n\" +event2.toString(),\n Toast.LENGTH_SHORT).show();\n */\n\n if(event2.getX() > event1.getX()){\n// Toast.makeText(getBaseContext(),\n// \"Swipe right - finish()\",\n// Toast.LENGTH_SHORT).show();\n\n finish();\n }\n\n return true;\n }", "title": "" }, { "docid": "9bd3c2a3cbafb1b8bf85a8c64912ff04", "score": "0.5505905", "text": "public void onRightToLeftSwipe(View v) {\n\n Log.i(TAG, \"right to left\");\n\n v.animate().setInterpolator(new DecelerateInterpolator())\n .setDuration(1000)\n .x(0).setListener(new Animator.AnimatorListener() {\n @Override\n public void onAnimationStart(Animator animator) {\n\n }\n\n @Override\n public void onAnimationEnd(Animator animator) {\n\n }\n\n @Override\n public void onAnimationCancel(Animator animator) {\n\n }\n\n @Override\n public void onAnimationRepeat(Animator animator) {\n\n }\n });\n mRelativeLayout.invalidate();\n }", "title": "" }, { "docid": "3ce9d071e5d987acaa3e2d73d4f02b84", "score": "0.5505238", "text": "@Override\n\tpublic boolean onTouchEvent(MotionEvent event){\n\t\tdistance = mContent.getMeasuredWidth() * 0.3F;\n\t\toverScrollDistance = mContent.getMeasuredWidth() * 0.6F;\n\t\tswitch(event.getAction() & MotionEvent.ACTION_MASK){\n\t\tcase MotionEvent.ACTION_DOWN:\n\t\t\tstopContentMovement();\n\t\t\tdx = (int) event.getX();\n\t\t\tdy = (int) event.getY();\n\t\t\ttouchMode = TOUCHMODE_DOWN;\n\t\t\tbreak;\n\t\tcase MotionEvent.ACTION_MOVE:\n\t\t\tswitch(touchMode){\n\t\t\tcase TOUCHMODE_IDLE:\n\t\t\t\tbreak;\n\t\t\tcase TOUCHMODE_DOWN:\n\t\t\t\tif(null == (Integer) dx && null == (Integer) dy){\n\t\t\t\t\tdx = (int) event.getHistoricalX(event.getHistorySize() - 1);\n\t\t\t\t\tdy = (int) event.getHistoricalY(event.getHistorySize() - 1);\n\t\t\t\t}\n\t\t\t\tif(horizontallyScrollOnly){\n\t\t\t\t\ttouchMode = TOUCHMODE_DRAGGING_HORIZONTALLY;\n\t\t\t\t}else{\n\t\t\t\t\tif(Math.abs(event.getX() - dx) > Math.abs(event.getY() - dy)){\n\t\t\t\t\t\tdx = (int) event.getX();\n\t\t\t\t\t\tdy = (int) event.getY();\n\t\t\t\t\t\ttouchMode = TOUCHMODE_DRAGGING_HORIZONTALLY;\n\t\t\t\t\t\tif(null != mOnSlideListener) mOnSlideListener.onHorizontallySlidePressed();\n\t\t\t\t\t}else{\n\t\t\t\t\t\tdx = (int) event.getX();\n\t\t\t\t\t\tdy = (int) event.getY();\n\t\t\t\t\t\ttouchMode = TOUCHMODE_DRAGGING_VERTICALLY;\n\t\t\t\t\t\tif(null != mOnSlideListener) mOnSlideListener.onVerticallySlidePressed();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase TOUCHMODE_DRAGGING_HORIZONTALLY:\n\t\t\t\tint scrollY = mContent.getScrollY();\n\t\t\t\tmoveX = (int) (dx - event.getX());\n\t\t\t\t//Temporally solution for overScroll bounce\n\t\t\t\tfloat diff = moveX / overScrollDistance;\n\t\t\t\t\n\t\t\t\tif(null != mOnSlideListener) mOnSlideListener.onHorizontallySlide(-moveX);\n\t\t\t\tif(moveX < distance && moveX > -distance){\n\t\t\t\t\t//Temporally solution for overScroll bounce\n\t\t\t\t\tif(moveX < 0){\n\t\t\t\t\t\tmoveX = (int) (moveX + moveX * diff);\n\t\t\t\t\t}\n\t\t\t\t\tif(moveX > 0){\n\t\t\t\t\t\tmoveX = (int) (moveX - moveX * diff);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tmContent.scrollTo(moveX, scrollY);\n\t\t\t\t\tscrollLeftContent(moveX + leftContentWidth, 0);\n\t\t\t\t\tscrollRightContent(moveX - rightContentWidth, 0);\n\t\t\t\t}\n\t\t\t\tif(moveX >= distance){\n\t\t\t\t\tif(null != getRightActivityClass()){\n\t\t\t\t\t\tif(this.getClass() == getRightActivityClass()){\n\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tIntent intent = new Intent(this, getRightActivityClass());\n\t\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttouchMode = TOUCHMODE_IDLE;\n\t\t\t\t\t\tmoveX = 0;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(moveX <= -distance){\n\t\t\t\t\tif(null != getLeftActivityClass()){\n\t\t\t\t\t\tif(this.getClass() == getLeftActivityClass()){\n\t\t finish();\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tIntent intent = new Intent(this, getLeftActivityClass());\n\t\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttouchMode = TOUCHMODE_IDLE;\n\t\t\t\t\t\tmoveX = 0;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase TOUCHMODE_DRAGGING_VERTICALLY:\n\t\t\t\tif(null != mOnSlideListener) mOnSlideListener.onVerticallySlide((int) (event.getY() - dy));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tbreak;\n\t\tcase MotionEvent.ACTION_UP:\n\t\tcase MotionEvent.ACTION_CANCEL:\n\t\t\tif(touchMode != TOUCHMODE_IDLE){\n\t\t\t\tbackToOriginalSpot();\n\t\t\t}\n\t\t\t\n\t\t\tmoveX = 0;\n\t\t\t\n\t\t\tif(null != mOnSlideListener){\n\t\t\t\tif(touchMode == TOUCHMODE_DRAGGING_VERTICALLY){\n\t\t\t\t\tmOnSlideListener.onVerticallySlideReleased();\n\t\t\t\t}else if(touchMode == TOUCHMODE_DRAGGING_HORIZONTALLY){\n\t\t\t\t\tmOnSlideListener.onHorizontallySlideReleased(touchMode == TOUCHMODE_IDLE);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\ttouchMode = TOUCHMODE_DOWN;\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\treturn super.onTouchEvent(event);\n\t}", "title": "" }, { "docid": "1ff60d41e7966997018b316235298253", "score": "0.55033475", "text": "@Override\n\tpublic void controllerLeftPressed(int arg0) {\n\n\t}", "title": "" }, { "docid": "1418def5fd005f04b0c97b3e1fbca365", "score": "0.5499756", "text": "public void moveLeft() {\n this.direction = -1;\n }", "title": "" }, { "docid": "4dd07a3d4ec430d01b6ea8e95daa4a73", "score": "0.54950166", "text": "public void moveLeftIfCan() {\n if (currentPiece.collideIf((-1 * BLOCKSIZE), 0, mesh) == false) {\n currentPiece.moveLeft();\n }\n\n }", "title": "" }, { "docid": "091b4d80d450ce4d576cbaaec8c6c313", "score": "0.5486773", "text": "public boolean getLeft() {\n\t\treturn speed < 0;\n\t}", "title": "" }, { "docid": "491a52cb08b03c6b2273f79ccd256cb4", "score": "0.54811823", "text": "public void enableNudge () {\n // Gamepad mapping is similar to tank drive.\n if (currentOpMode.gamepad1.left_trigger > 0){\n // nudge left wheel forward a little\n //moveMotor(leftDrive, NUDGE_SPEED, NUDGE_INCHES);\n leftDrive.setPower (-NUDGE_SPEED);\n }\n if (currentOpMode.gamepad1.right_trigger > 0){\n // nudge right wheel forward a little\n\n rightDrive.setPower(-NUDGE_SPEED);\n }\n if (currentOpMode.gamepad1.left_bumper){\n // nudge left wheel back a little\n leftDrive.setPower (NUDGE_SPEED);\n }\n if (currentOpMode.gamepad1.right_bumper){\n // nudge right wheel back a little\n rightDrive.setPower (NUDGE_SPEED);\n }\n }", "title": "" }, { "docid": "7737faf62036e4d3944e8a9a71c00526", "score": "0.5479001", "text": "@Override\n\tpublic void turnLeft() {\n\t\tif (direction == 0)\n\t\t\tdirection = 3;\n\t\telse\n\t\t\tdirection -= 1;\n\t}", "title": "" }, { "docid": "2a8a16d227b52a113884b0ce47507509", "score": "0.5477588", "text": "public void doTurnLeftState(){\n\n\t\tmot1.setCtrlValue(pos2);\n\t\tmot2.setCtrlValue(pos2);\n\t\t\t\t\t\n\t\tif(mot2.getMotTorque() >= initTorque){\n\t\t\tcutPeakControlValue++;\n\t\t\tif (cutPeakControlValue >= ignoreTimePCV) {\t\t// Peak-ControlValue ignored for xx ms\n\t\t\t\tcutPeakControlValue = 0;\n\t\t\t\t\n\t\t\t\tif(mot1.enc.getPos() < 220*2*Math.PI/360){\n\t\t\t\t\tSystem.out.print(\"Hindernis im Weg\");\n\t\t\t\t\tSystem.out.print('\\t');\n\t\t\t\t\tSystem.out.print(mot1.enc.getPos()); \n\t\t\t\t\tSystem.out.print(\"\\r\\n\");\n\t\t\t\t\tstate = STOP_STATE;\n\t\t\t\t}\n\t\t\t\telse{\t\t\n\t\t\t\t\tSystem.out.print(mot1.enc.getPos()); \n\t\t\t\t\tSystem.out.print('\\t');\n\t\t\t\t\tSystem.out.print(\"turn left done\");\n\t\t\t\t\tSystem.out.print(\"\\r\\n\");\n\t\t\t\t\tstate = INIT_FINISHED_STATE;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tcutPeakControlValue = 0;\n\t\t}\n\t}", "title": "" }, { "docid": "c5e712eaa4509c7905548c0a2d649d84", "score": "0.5474553", "text": "@Override\n\tpublic void controllerLeftPressed(int controller) {\n\t\t\n\t}", "title": "" }, { "docid": "1dfc237c26ecbd23743b3cd155cc4df9", "score": "0.54709417", "text": "public void setmIsMovingLeft(boolean mIsMovingLeft) {\n this.mIsMovingLeft = mIsMovingLeft;\n }", "title": "" }, { "docid": "0a27ef00804fd6c1b8df329bb5adab20", "score": "0.54701686", "text": "public void moveLeft() {\n\t\t_x-=1;\n\t}", "title": "" }, { "docid": "6f59a5ae10cd422ba1255540728e5da9", "score": "0.54680187", "text": "@Override\n\tpublic void controllerLeftPressed(int controller) {\n\n\t}", "title": "" }, { "docid": "f23a1aaf5c719ba0e8fe107c1f9b2a3d", "score": "0.54652846", "text": "boolean LeftTrigger(){\r\n if (gamepad1.left_trigger >= 0.1){\r\n return (true);}\r\n else return (false);}", "title": "" }, { "docid": "fedf550d83d35cdb6ee6429ed3100fd7", "score": "0.5464078", "text": "@Override\n public void onSwiped(@NonNull RecyclerView.ViewHolder viewHolder, int direction) {\n\n }", "title": "" }, { "docid": "2dad3ffd33ba16aad53a57499af3ed72", "score": "0.5461544", "text": "@Override\n public boolean onInterceptTouchEvent(RecyclerView rv, MotionEvent e) {\n gestureDetector.onTouchEvent(e);\n return false;\n }", "title": "" }, { "docid": "6831cbb6f4d82b609e86e5c754039bfb", "score": "0.5451297", "text": "public void moveLeft() {\n\t\tif (movingDir != 1) {\n\t\t\tnetSprite.changeAnimationFrames(MOVE_ANIMATION_LEFT, MOVE_ANIMATION_LEFT + MOVE_ANIMATION_LENGTH);\n\t\t\tmovingDir = 1;\n\t\t}\n\t}", "title": "" }, { "docid": "0af642258f8633d0914c4cc22cb8806b", "score": "0.5448265", "text": "@Override\n public void onSwiped(@NonNull RecyclerView.ViewHolder viewHolder, int direction) {\n }", "title": "" }, { "docid": "4a0facb5ae43b92790b8473cd2ca3b3d", "score": "0.54475653", "text": "public void mo7101e() {\n LiveViewStopmotionActivity.this._handler.post(new Runnable() {\n public void run() {\n C2331d.m10114a((Activity) LiveViewStopmotionActivity.this, C2328a.ON_SHOOT_MODE_CHANGED, (Bundle) null);\n }\n });\n }", "title": "" }, { "docid": "cb85800b64107e73c30f76ec0b5addae", "score": "0.5443388", "text": "@Override\r\n\t\tpublic boolean onDown(MotionEvent e) {\n\t\t\treturn true;\r\n\t\t}", "title": "" }, { "docid": "c8b49a103bcd1049a033a5e4a414d9ef", "score": "0.54429436", "text": "public void toLeft() {\n switch (facing) {\n case Constants.NORTH:\n facing = Constants.WEST;\n break;\n case Constants.SOUTH:\n facing = Constants.EAST;\n break;\n case Constants.WEST:\n facing = Constants.SOUTH;\n break;\n case Constants.EAST:\n facing = Constants.NORTH;\n break;\n default:\n break; \n }\n }", "title": "" }, { "docid": "24a22e5a09b195380fd7bddf9b3a06bb", "score": "0.54423285", "text": "@Override\n\t\t\tpublic void leftClick() {\n\t\t\t\tToast.makeText(getActivity(), \"left\", Toast.LENGTH_LONG).show();\n\t\t\t}", "title": "" }, { "docid": "cfe7c9c5196c7124644a8922a1506e19", "score": "0.5441956", "text": "public Direction GetDirectionForLeftButton() {\r\n if (this.dir == 0) {\r\n return Direction.values()[3];\r\n }\r\n return Direction.values()[this.dir - 1];\r\n }", "title": "" }, { "docid": "36ee45ac22c9256f919c5d67291d5480", "score": "0.5439665", "text": "@Override\n public boolean onDown(MotionEvent e) {\n return true;\n }", "title": "" }, { "docid": "36ee45ac22c9256f919c5d67291d5480", "score": "0.5439665", "text": "@Override\n public boolean onDown(MotionEvent e) {\n return true;\n }", "title": "" }, { "docid": "4e7dce2b4c900f018283dfca4287a530", "score": "0.54302126", "text": "public Pointer turnLeft() {\n \tswitch(direction) {\n \t\tcase Upward:\n \t\t\tdirection = Direction.Left;\n \t\t\tbreak;\n \t\tcase Left:\n \t\t\tdirection = Direction.Downward;\n \t\t\tbreak;\n \t\tcase Downward:\n \t\t\tdirection = Direction.Right;\n \t\t\tbreak; \t\t\n \t\tcase Right:\n \t\t\tdirection = Direction.Upward;\n \t\t\tbreak; \t \t\t\t\n \t}\n \t\n \treturn this;\n\t}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "c4bb14da3021cf40dbf0795c7e39c782", "score": "0.0", "text": "public void actionPerformed(ActionEvent e) {\n\t\t\t\ttextAreaEditor.setFont(new Font(font,1,tamanhoDaLetra));\n\t\t\t\testiloDaLetra = 1;\n\t\t\t\t\n\t\t\t}", "title": "" } ]
[ { "docid": "ef1b6c3f597a66c59960d73eadee6f25", "score": "0.6904447", "text": "private void apparence()\n\t\t{\n\n\t\t}", "title": "" }, { "docid": "4862518dedb9e169c3cc620e5ebe04c5", "score": "0.6696056", "text": "@Override\r\n\tpublic void atura() {\n\t\t\r\n\t}", "title": "" }, { "docid": "651ef6275f1a33ed6582a1599cab78d2", "score": "0.66211534", "text": "@Override\n\tpublic void bekle() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "c56ced5e9768caa7a88a0e86dc1d02eb", "score": "0.6557507", "text": "@Override\n\tpublic void pintate() {\n\t\t\n\t}", "title": "" }, { "docid": "534c466f09845319b9edaf959a891c09", "score": "0.6546559", "text": "@Override\r\n\tpublic void debriyaj() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.64127725", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.63762105", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.6362821", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.6362821", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.6362821", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.6362821", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "df89b968807fade64158ed6c7401bc7a", "score": "0.62550694", "text": "@Override\r\n\tpublic void afficher() {\n\t\t\r\n\t}", "title": "" }, { "docid": "761f5db0b07474bff2090f23a6693efb", "score": "0.6211042", "text": "private void Prodto() {\n\n\t}", "title": "" }, { "docid": "74578344538dd194907dffc0406cacac", "score": "0.6166714", "text": "@Override\n public void suicide() {\n \n }", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "a2392cc71aaf87bc730f13f37ecdb439", "score": "0.6153736", "text": "private void apparence()\r\n\t\t{\r\n\t\t//Rien\r\n\t\t}", "title": "" }, { "docid": "db51ad8e6f15ad35a767d84e1e1eda68", "score": "0.61275035", "text": "@Override\n\t\t\tpublic void cry() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "23f3a7415a3f7463e8a1124d06cf4cf2", "score": "0.609125", "text": "@Override\n\tpublic void valide() {\n\t\t\n\t}", "title": "" }, { "docid": "e24a2515146ce17481b567e14f6d3258", "score": "0.6075012", "text": "public void retrievecart() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "fba36b6a112c0dbc3dd5aa61fe730a40", "score": "0.60609394", "text": "@Override\n\tpublic void subir() {\n\t\t\n\t}", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.605578", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "280c1f1bfe3582788f566eafe40085dd", "score": "0.60448366", "text": "@Override\n \tpublic void init() {\n \t\t\n \t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6023245", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "2ba22ff158b6e941041f9460eddd0944", "score": "0.5991409", "text": "@Override\n public void operation() {\n \n }", "title": "" }, { "docid": "afc2a2ef708681a23da24526386fa543", "score": "0.5979341", "text": "@Override\r\n\tpublic void demo4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "951638c11e887c3f81bcc83306f4e413", "score": "0.5957303", "text": "@Override\r\n\tpublic void trunon() {\n\r\n\t}", "title": "" }, { "docid": "03a6fa2a6dc40f30e9f67797ea87ac0e", "score": "0.5950196", "text": "@Override\n\tvoid generate() {\n\t\t\n\t}", "title": "" }, { "docid": "86b315eabc97abef1ea325b454b16656", "score": "0.5934478", "text": "@Override\n\tpublic void veneno() {\n\t\t\n\t}", "title": "" }, { "docid": "4f4340003331db95a2feee0084056a02", "score": "0.59033096", "text": "@Override\n\tprotected void inicializar() {\n\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5902906", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.5886342", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "c16fc3362f80f1c0559c76bf68be5792", "score": "0.58815277", "text": "@Override\n\tpublic void affiche() {\n\t\t\n\t}", "title": "" }, { "docid": "a6c80a6456cfc74acaa16a2f9c3063c5", "score": "0.5881057", "text": "@Override\n\t\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "bf75e876384ccbd3516440064d914edb", "score": "0.585407", "text": "@Override\r\n\t\t\tpublic void process() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "22f2421f5b9cc11d1699c42857b4dfe9", "score": "0.5850562", "text": "protected void mo1582st() {\n }", "title": "" }, { "docid": "7d4da85943fb6a6ba61dac3c9ae538b3", "score": "0.58336115", "text": "@Override\n\tpublic void morir() {\n\t\t\n\t}", "title": "" }, { "docid": "d07c1f5c9d405e36c1ebf9e7e586652e", "score": "0.5830177", "text": "private Solution() {\n /** Not using this function**/\n }", "title": "" }, { "docid": "fab6f4103beb4667b90da1eb3672a4fa", "score": "0.5821835", "text": "@Override\n\tprotected void update() {\n\n\t}", "title": "" }, { "docid": "2be71c02c2e214eecbe2c8bd5dfe8cb0", "score": "0.58195674", "text": "@Override\n\tpublic void fortify() {\n\t\t\n\t}", "title": "" }, { "docid": "4112f041d618773e927eaf69a897467b", "score": "0.5817743", "text": "@Override\r\n\tpublic void tempup() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d1236089c8974701d0acd37b2cad6d5b", "score": "0.5809914", "text": "@Override\n\tpublic void init(){\n\t\t\n\t}", "title": "" }, { "docid": "8d9539007d174aa71cae3fdbfe4952c6", "score": "0.5801801", "text": "@Override \n\tpublic void init() {\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.5793788", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "bcd5f0b16beb225527894894dcaf774f", "score": "0.5789414", "text": "@Override\n\tprotected void update() {\n\t\t\n\t}", "title": "" }, { "docid": "5243b8d363dba36edfd9e64eb96cc9d5", "score": "0.57880706", "text": "@Override\n public int getStatus() {\n return 0;\n }", "title": "" }, { "docid": "b096eae650ba80789eb6446d859169a3", "score": "0.5776792", "text": "protected void mo1586sx() {\n }", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "17cb0676e79dae45623dcbdd6cf2af58", "score": "0.5773822", "text": "@Override\n\tpublic void update() {\n\t\t// TODO Auto-generated method stub\n\n\t}", "title": "" }, { "docid": "849edaa5bbcc7511e16697ad05c01712", "score": "0.57732296", "text": "@Override\n\tpublic void avanzar() {\n\t\t\n\t}", "title": "" }, { "docid": "6c897821a3b00faa6e582b1c5bd5b3c6", "score": "0.57677484", "text": "@Override\r\n\tpublic void direksiyon() {\n\t\t\r\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "81ea0647fff57e17ec5107049b4dbf8b", "score": "0.57594514", "text": "@Override\n public int size() {\n return 1;\n }", "title": "" }, { "docid": "535ccad74dc29933b6b48fea680ba27c", "score": "0.5755988", "text": "@Override\r\n\tpublic void operacion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1985dddb6264adc2fb069a687b25f36b", "score": "0.57541007", "text": "@Override\n\tpublic void groom() {\n\t\t\n\t}", "title": "" }, { "docid": "33572cd017818797318a53dbacbc00b9", "score": "0.57530975", "text": "@Override\r\n\t\t\tpublic void initialize() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a8b768dae1b52549249069e4d6a9253f", "score": "0.57492036", "text": "@Override\n public int getType() {\n return 0;\n }", "title": "" }, { "docid": "b6c53604ad2f38e9cacf958a442de4cf", "score": "0.57409", "text": "@Override\n\tprotected void initAfterData() {\n\n\t}", "title": "" }, { "docid": "734b1972ec29b58535c294e3962d017d", "score": "0.5736822", "text": "@Override\n\tpublic void generar() {\n\t\t\n\t}", "title": "" }, { "docid": "4f5334e4c63e1b16e38cf957e8576a25", "score": "0.5735921", "text": "@Override\n\tpublic void getHaned() {\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "a7ae27b45bb1a02a96ba4232264be825", "score": "0.57315516", "text": "@Override\n\tpublic void embarcar() {\n\t\t\n\t}", "title": "" }, { "docid": "c6e40448cb261fef3ee1fc3a1f5373f0", "score": "0.57304126", "text": "@Override\n\tpublic void operation() {\n\t\t\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "ba3ff1d644c6b502f46e78f3112e984c", "score": "0.57151", "text": "@Override\r\n\tpublic void toss() \r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "a1a79ff63f3eb784a0134fc70f7de913", "score": "0.57141805", "text": "@Override\n\tpublic void initdata() {\n\n\t}", "title": "" }, { "docid": "20aa3abef3af4ea8bcf5e834227be04c", "score": "0.57137775", "text": "@Override\n\tpublic void Pessoa() {\n\t\t\n\t}", "title": "" }, { "docid": "6894ea3aa25d3dee3c3dd8331b9a9cdd", "score": "0.57120746", "text": "@Override\n\t public int correr() {\n\t return 7;\n\t }", "title": "" }, { "docid": "d7405dbb7f385c28de1f97859172342b", "score": "0.5705621", "text": "@Override\n\tpublic void affiche() {\n\t}", "title": "" }, { "docid": "f9fa4d6203b441d4a00a824c3219ddb2", "score": "0.5704342", "text": "@Override\n\tprotected void doOperate() {\n\n\t}", "title": "" }, { "docid": "b2858312446172fa25a799c5367d2043", "score": "0.56896037", "text": "Smelting(){\r\n\r\n\t\t}", "title": "" }, { "docid": "2d9072b54f55f18557f92b99be58ec2f", "score": "0.56886935", "text": "@Override\r\n public String toString() {\n\treturn null;\r\n }", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "af5603f291fb4fc9dd83e46e0602225b", "score": "0.56868714", "text": "@Override\r\n\tpublic void demo3() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c937f9289f415cfdd7aefc5d621d0867", "score": "0.56740177", "text": "@Override\n protected void inicializar() {\n }", "title": "" }, { "docid": "e8efac2ee01f452014413fb75d28b3a6", "score": "0.5659524", "text": "@Override\r\n\tpublic void initState() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "1857996533d34551ac38dd34ec5213a3", "score": "0.56573755", "text": "public void koniecReplikacie() {\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" } ]
59df0caa306f745ca89cdac8a1710199
Test case number: 81 /Coverage entropy=0.9809896824453154
[ { "docid": "ac846a7a4dde86d5746334c666101e57", "score": "0.0", "text": "@Test(timeout = 4000)\n public void test081() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter((byte)0);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"5xBc)*#/JeVIF5gh\";\n stringArray0[1] = \"5xBc)*#/JeVIF5gh\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 1, \"5xBc)*#/JeVIF5gh\", \"5xBc)*#/JeVIF5gh\", \"5xBc)*#/JeVIF5gh\", stringArray0, true, false);\n // Undeclared exception!\n try { \n methodWriter0.visitInsn(1348);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 1348\n //\n verifyException(\"org.objectweb.asm.jip.MethodWriter\", e);\n }\n }", "title": "" } ]
[ { "docid": "eefcb8163fe844db41b4e7f3007cf287", "score": "0.6526019", "text": "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Discretize discretize0 = new Discretize(\"h&uYpUC]>5dku/m]CS\");\n discretize0.m_ClassIndex = 102;\n double[][] doubleArray0 = new double[4][0];\n byte[] byteArray0 = new byte[8];\n byteArray0[0] = (byte)0;\n byteArray0[2] = (byte)96;\n byteArray0[3] = (byte)0;\n byteArray0[5] = (byte) (-102);\n byteArray0[6] = (byte)96;\n byteArray0[7] = (byte) (-102);\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n double[] doubleArray1 = new double[9];\n doubleArray1[0] = (double) (byte)0;\n doubleArray1[3] = (double) 102;\n doubleArray1[4] = (double) (byte)0;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"h&uYpUC]>5dku/m]CS\");\n doubleArray1[5] = (double) (byte) (-102);\n doubleArray1[4] = 0.0;\n FileSystemHandling.shouldAllThrowIOExceptions();\n doubleArray1[8] = (double) (byte)0;\n doubleArray0[0] = doubleArray1;\n doubleArray0[1] = doubleArray1;\n discretize0.m_CutPoints = doubleArray0;\n String string0 = discretize0.getBinRangesString((byte)0);\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(\"(-inf-0],(0-0],(0-0],(0-102],(102-0],(0--102],(-102-0],(0-0],(0-0],(0-inf)\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n }", "title": "" }, { "docid": "7b86a76e9e9f3d6b2d46e9aa1a5ecf24", "score": "0.64076036", "text": "@Test(timeout = 4000)\n public void test05() throws Throwable {\n Evaluation.handleCostOption(\"\", 0);\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n textDirectoryLoader0.getOptions();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.equals(textDirectoryLoader0);\n assertFalse(boolean0);\n \n double double0 = evaluation0.weightedAreaUnderPRC();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "title": "" }, { "docid": "cf2c237bf23fd6da172af8072a976609", "score": "0.6385013", "text": "@Test(timeout = 4000)\n public void test32() throws Throwable {\n FileSystemHandling.shouldAllThrowIOExceptions();\n Attribute attribute0 = new Attribute(\"+]S^<Ux5jl\");\n Attribute attribute1 = attribute0.copy(\"Options:\\n\\t-list-packages <all | installed | available>\\n\\t-package-info <repository | installed | archive> <packageName | packageZip>\\n\\t-install-package <packageName | packageZip | URL> [version]\\n\\t-uninstall-package packageName\\n\\t-refresh-cache\");\n attribute1.setWeight(0.0);\n JRip jRip0 = new JRip();\n AbstractClassifier.makeCopy(jRip0);\n JRip.RipperRule jRip_RipperRule0 = jRip0.new RipperRule();\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute0);\n double double0 = jRip_NominalAntd0.getCover();\n assertEquals(Double.NaN, double0, 0.01);\n \n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd(attribute1);\n JRip.NumericAntd jRip_NumericAntd1 = (JRip.NumericAntd)jRip_NumericAntd0.copy();\n assertEquals(Double.NaN, jRip_NumericAntd1.getSplitPoint(), 0.01);\n assertNotSame(jRip_NumericAntd1, jRip_NumericAntd0);\n assertEquals(Double.NaN, jRip_NumericAntd1.getAttrValue(), 0.01);\n \n JRip.NumericAntd jRip_NumericAntd2 = jRip0.new NumericAntd(attribute0);\n assertEquals(Double.NaN, jRip_NumericAntd2.getAccu(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd2.getAccuRate(), 0.01);\n assertEquals(0.0, jRip_NumericAntd2.getMaxInfoGain(), 0.01);\n \n int[] intArray0 = new int[6];\n intArray0[0] = 4;\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Instances instances0 = new Instances(\"@attribute\", arrayList0, 4);\n jRip_RipperRule0.prune(instances0, true);\n FileSystemHandling.shouldAllThrowIOExceptions();\n jRip_RipperRule0.hasAntds();\n boolean boolean0 = jRip_RipperRule0.hasAntds();\n assertFalse(jRip0.getDebug());\n assertEquals(2, jRip0.getOptimizations());\n assertTrue(jRip0.getUsePruning());\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(1L, jRip0.getSeed());\n assertFalse(boolean0);\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals((-1.0), jRip_RipperRule0.getConsequent(), 0.01);\n assertEquals(3, jRip0.getFolds());\n }", "title": "" }, { "docid": "b1a3dd464739fce5c17f09f75415f164", "score": "0.6374639", "text": "@Test(timeout = 4000)\n public void test11() throws Throwable {\n Evaluation.handleCostOption(\"\", 0);\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n textDirectoryLoader0.setOutputFilename(false);\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n instances0.stream();\n double double0 = evaluation0.numTruePositives(22);\n assertEquals(0.0, double0, 0.01);\n \n double double1 = evaluation0.unclassified();\n assertEquals(0.0, double1, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "694eb827d70bef7c00ac5f3cb96ce509", "score": "0.62808347", "text": "@Test(timeout = 4000)\n public void test27() throws Throwable {\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n TestInstances testInstances0 = new TestInstances();\n TestInstances testInstances1 = new TestInstances();\n Instances instances0 = testInstances0.generate(\" \");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.getRevision();\n FilteredClassifier filteredClassifier0 = new FilteredClassifier();\n evaluation0.setNumericPriorsFromBuffer();\n evaluation0.rootMeanPriorSquaredError();\n }", "title": "" }, { "docid": "32737fd821a7ee1c0e22b7998c7d0f3b", "score": "0.6247478", "text": "@Test\n public void testEntropy() {\n System.out.println(\"entropy\");\n MultivariateGaussianDistribution instance = new MultivariateGaussianDistribution(mu, Matrix.of(sigma));\n assertEquals(2.954971, instance.entropy(), 1E-6);\n }", "title": "" }, { "docid": "0dd161add24da8f2c313321aae6ba34c", "score": "0.6187965", "text": "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Discretize discretize0 = new Discretize(\"g\");\n discretize0.setOutputFormat();\n double[][] doubleArray0 = new double[2][0];\n double[] doubleArray1 = new double[9];\n doubleArray1[0] = 0.0;\n doubleArray1[1] = 0.0;\n doubleArray1[2] = (-1803.2);\n doubleArray1[3] = 1726.34;\n doubleArray1[4] = 1316.19;\n doubleArray1[5] = 0.0;\n doubleArray1[6] = (-8.99122234509242);\n doubleArray1[7] = 1.7976931348623157E308;\n doubleArray1[8] = (-1.7976931348623157E308);\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[4];\n doubleArray2[0] = 1.7976931348623157E308;\n doubleArray2[1] = 1726.34;\n doubleArray2[2] = (-1803.2);\n doubleArray2[3] = 0.0;\n doubleArray0[1] = doubleArray2;\n discretize0.m_CutPoints = doubleArray0;\n // Undeclared exception!\n try { \n discretize0.getBinRangesString((-1952257859));\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -1952257859\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "191e5577548f9c6b9e31235268440f94", "score": "0.6160229", "text": "@Test(timeout = 4000)\n public void test00() throws Throwable {\n Discretize discretize0 = new Discretize(\"ma6:[z8W(%2_++X[5\");\n discretize0.setInvertSelection(false);\n String[] stringArray0 = new String[7];\n stringArray0[0] = \"ma6:[z8W(%2_++X[5\";\n stringArray0[1] = \"ma6:[z8W(%2_++X[5\";\n stringArray0[2] = \"ma6:[z8W(%2_++X[5\";\n stringArray0[3] = \"ma6:[z8W(%2_++X[5\";\n stringArray0[4] = \"ma6:[z8W(%2_++X[5\";\n stringArray0[5] = \"pv<X4\\\"T2E#((:rxF/f!\";\n stringArray0[6] = \"ma6:[z8W(%2_++X[5\";\n Discretize.main(stringArray0);\n discretize0.invertSelectionTipText();\n double double0 = 44.9043;\n discretize0.m_DesiredWeightOfInstancesPerInterval = 44.9043;\n discretize0.findNumBinsTipText();\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning(3404);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "title": "" }, { "docid": "5947b8d06f2a5234b3f399d9747aee8b", "score": "0.61584055", "text": "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize(\"X]..?f\");\n discretize0.setAttributeIndices(\"X]..?f\");\n discretize0.m_UseEqualFrequency = true;\n discretize0.m_MakeBinary = true;\n discretize0.setDesiredWeightOfInstancesPerInterval((-1.0));\n discretize0.m_DesiredWeightOfInstancesPerInterval = 1.7976931348623157E308;\n discretize0.getCapabilities();\n discretize0.binsTipText();\n discretize0.getOptions();\n discretize0.getBinRangesString((-1));\n discretize0.getRevision();\n assertEquals(1.7976931348623157E308, discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "title": "" }, { "docid": "333370c99aa8211840b41c23f6adb4f0", "score": "0.6067685", "text": "@Test(timeout = 4000)\n public void test14() throws Throwable {\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"tm\\\"iK7~\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.m_Header = instances0;\n char[] charArray0 = new char[1];\n charArray0[0] = 'F';\n String string0 = evaluation0.num2ShortID((-2), charArray0, 8);\n assertEquals(\" F\", string0);\n \n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n testInstances0.setNumRelationalString(82);\n double double0 = evaluation0.pctIncorrect();\n assertEquals(Double.NaN, double0, 0.01);\n \n String string1 = evaluation0.toSummaryString((String) null, true);\n assertEquals(\"null\\nTotal Number of Instances 0 \\n\", string1);\n \n double double1 = evaluation0.pctUnclassified();\n double double2 = evaluation0.m_SumPriorEntropy;\n double double3 = evaluation0.falsePositiveRate(32);\n assertEquals(0.0, double3, 0.01);\n \n double double4 = evaluation0.coverageOfTestCasesByPredictedRegions();\n double double5 = evaluation0.rootMeanSquaredError();\n double double6 = evaluation0.SFEntropyGain();\n assertNotEquals(double6, double5, 0.01);\n \n evaluation0.confusionMatrix();\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(2, doubleArray0.length);\n \n double double7 = evaluation0.weightedRecall();\n assertEquals(double7, double4, 0.01);\n \n System.setCurrentTimeMillis((-59L));\n double double8 = evaluation0.weightedAreaUnderROC();\n assertEquals(double8, double1, 0.01);\n assertEquals(Double.NaN, double8, 0.01);\n }", "title": "" }, { "docid": "382844f757fb037cc2beb2627cd31eae", "score": "0.60600317", "text": "@Test(timeout = 4000)\n public void test10() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n GlobalInfoJavadoc globalInfoJavadoc0 = new GlobalInfoJavadoc();\n globalInfoJavadoc0.setSilent(false);\n REPTree rEPTree0 = new REPTree();\n evaluation0.numTrueNegatives(0);\n evaluation0.setDiscardPredictions(true);\n evaluation0.SFPriorEntropy();\n double double0 = evaluation0.numTruePositives(100000);\n assertTrue(evaluation0.getDiscardPredictions());\n assertEquals(0.0, double0, 0.01);\n }", "title": "" }, { "docid": "a704bc7a652b51012e82c4fec7d817be", "score": "0.601815", "text": "@Test(timeout = 4000)\n public void test19() throws Throwable {\n JRip jRip0 = new JRip();\n jRip0.toString();\n Attribute attribute0 = new Attribute(\"{\", 2287);\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute0);\n double[] doubleArray0 = new double[4];\n doubleArray0[0] = (double) 1;\n doubleArray0[1] = (double) 4;\n doubleArray0[2] = 559.9;\n doubleArray0[3] = (double) 2;\n SparseInstance sparseInstance0 = new SparseInstance(559.9, doubleArray0);\n jRip_NominalAntd0.covers(sparseInstance0);\n jRip_NominalAntd0.getAttrValue();\n Attribute attribute1 = jRip_NominalAntd0.getAttr();\n attribute1.setWeight(0.0);\n JRip.RipperRule jRip_RipperRule0 = jRip0.new RipperRule();\n jRip_RipperRule0.setConsequent((-945.575));\n jRip0.listOptions();\n jRip0.listOptions();\n jRip_RipperRule0.size();\n jRip0.getFolds();\n CoverTree coverTree0 = new CoverTree();\n try { \n coverTree0.kNearestNeighbours(sparseInstance0, 0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "title": "" }, { "docid": "ee1e5156e314abd32f5e33bf1610678c", "score": "0.6015949", "text": "public TestTransferEntropyBinaryDiscrete invoke() {\n\n int arrayLengths = 100;\n RandomGenerator rg = new RandomGenerator();\n\n// Generate some random binary data:\n sourceArray = rg.generateRandomInts(arrayLengths, 2);\n int[] destArray = new int[arrayLengths];\n destArray[0] = 0;\n System.arraycopy(sourceArray, 0, destArray, 1, arrayLengths - 1);\n sourceArray2 = rg.generateRandomInts(arrayLengths, 2);\n\n //打印两个原始Array,取值是二元的,0-1,即只有0-1两种状态\n for(int i=0;i<sourceArray2.length;i++){\n System.out.println(\"the\"+i+\"element is_\"+\"sourceArray:\"+sourceArray[i]+\" sourceArray2:\"+sourceArray2[i]+\"\\n\");\n }\n\n// Create a TE calculator and run it:\n TransferEntropyCalculatorDiscrete teCalc=\n new TransferEntropyCalculatorDiscrete(2, 1);\n teCalc.initialise();\n teCalc.addObservations(sourceArray, destArray);\n double result = teCalc.computeAverageLocalOfObservations();\n System.out.printf(\"For copied source, result should be close to 1 bit : %.3f bits\\n\", result);\n teCalc.initialise();\n teCalc.addObservations(sourceArray2, destArray);\n double result2 = teCalc.computeAverageLocalOfObservations();\n System.out.printf(\"For random source, result should be close to 0 bits: %.3f bits\\n\", result2);\n return this;\n }", "title": "" }, { "docid": "02cd166fc77e07e5cbbae2950ec6854c", "score": "0.601251", "text": "@Test\n\t@Override\n\tpublic void testNormalDistribution() throws Exception {\n\t}", "title": "" }, { "docid": "6a26a8bb1673b720d51ed6f3e473201d", "score": "0.6005411", "text": "@Test(timeout = 4000)\n public void test21() throws Throwable {\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\" \");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.m_Header = instances0;\n VotedPerceptron votedPerceptron0 = new VotedPerceptron();\n CVParameterSelection cVParameterSelection0 = new CVParameterSelection();\n cVParameterSelection0.setClassifier(votedPerceptron0);\n Evaluation.makeOptionString(votedPerceptron0, false);\n Evaluation evaluation1 = new Evaluation(instances0);\n Evaluation evaluation2 = new Evaluation(instances0);\n Evaluation evaluation3 = new Evaluation(evaluation0.m_Header);\n Instances instances1 = evaluation0.getHeader();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n Evaluation evaluation4 = new Evaluation(instances1);\n evaluation4.toCumulativeMarginDistributionString();\n Evaluation evaluation5 = new Evaluation(instances0);\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, (String) null);\n evaluation5.meanAbsoluteError();\n double double0 = evaluation3.SFMeanEntropyGain();\n assertEquals(Double.NaN, double0, 0.01);\n \n evaluation3.weightedMatthewsCorrelation();\n String string0 = evaluation4.toClassDetailsString((String) null);\n assertEquals(\"null\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\n 0 0 0 0 0 0 ? ? class1\\n 0 0 0 0 0 0 ? ? class2\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n }", "title": "" }, { "docid": "25440b7e4a7306b1e2136558aa282480", "score": "0.6004716", "text": "@Test(timeout = 4000)\n public void test19() throws Throwable {\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"tm\\\"iK7~\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.m_Header = instances0;\n char[] charArray0 = new char[1];\n charArray0[0] = 'F';\n String string0 = evaluation0.num2ShortID((-2), charArray0, 8);\n assertEquals(\" F\", string0);\n \n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n testInstances0.setNumRelationalString(82);\n double double0 = evaluation0.pctIncorrect();\n String string1 = evaluation0.toSummaryString((String) null, true);\n assertEquals(\"null\\nTotal Number of Instances 0 \\n\", string1);\n \n double double1 = evaluation0.pctUnclassified();\n double double2 = evaluation0.m_SumPriorEntropy;\n double double3 = evaluation0.falsePositiveRate(32);\n assertEquals(0.0, double3, 0.01);\n \n double double4 = evaluation0.coverageOfTestCasesByPredictedRegions();\n assertEquals(double4, double1, 0.01);\n \n double double5 = evaluation0.rootMeanSquaredError();\n double double6 = evaluation0.SFEntropyGain();\n assertNotEquals(double6, double0, 0.01);\n \n evaluation0.confusionMatrix();\n evaluation0.confusionMatrix();\n double double7 = evaluation0.weightedRecall();\n assertNotEquals(double7, double3, 0.01);\n assertEquals(double7, double5, 0.01);\n \n System.setCurrentTimeMillis((-59L));\n Evaluation evaluation1 = new Evaluation(evaluation0.m_Header);\n evaluation0.rootRelativeSquaredError();\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n }", "title": "" }, { "docid": "93e42410659568fd1ee4adfab391529f", "score": "0.59959316", "text": "int entropySize() {\n\t\t return 8;\n\t }", "title": "" }, { "docid": "b7fa1c6274727df4089bab004ec17276", "score": "0.5987089", "text": "@Test(timeout = 4000)\n public void test27() throws Throwable {\n FileSystemHandling.shouldAllThrowIOExceptions();\n Attribute attribute0 = new Attribute(\"+]S^<Ux5jl\");\n Attribute attribute1 = attribute0.copy(\"Options:\\n\\t-list-packages <all | installed | available>\\n\\t-package-info <repository | installed | archive> <packageName | packageZip>\\n\\t-install-package <packageName | packageZip | URL> [version]\\n\\t-uninstall-package packageName\\n\\t-refresh-cache\");\n attribute1.setWeight(0.0);\n JRip jRip0 = new JRip();\n AbstractClassifier.makeCopy(jRip0);\n JRip.RipperRule jRip_RipperRule0 = jRip0.new RipperRule();\n assertEquals((-1.0), jRip_RipperRule0.getConsequent(), 0.01);\n \n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute0);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"date\");\n double double0 = jRip_NominalAntd0.getCover();\n assertEquals(Double.NaN, double0, 0.01);\n \n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd(attribute1);\n JRip.NumericAntd jRip_NumericAntd1 = (JRip.NumericAntd)jRip_NumericAntd0.copy();\n assertEquals(Double.NaN, jRip_NumericAntd1.getAttrValue(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd1.getSplitPoint(), 0.01);\n assertNotSame(jRip_NumericAntd1, jRip_NumericAntd0);\n \n JRip.NumericAntd jRip_NumericAntd2 = jRip0.new NumericAntd(attribute0);\n int[] intArray0 = new int[6];\n intArray0[0] = 4;\n intArray0[1] = 2;\n intArray0[2] = 3;\n intArray0[4] = 4;\n intArray0[5] = 1;\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, true);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(1, intArray0, 2);\n boolean boolean0 = jRip_NumericAntd2.covers(binarySparseInstance0);\n assertTrue(boolean0);\n \n System.setCurrentTimeMillis(0L);\n String string0 = jRip_NominalAntd0.getRevision();\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccuRate(), 0.01);\n assertEquals(\"8118\", string0);\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccu(), 0.01);\n assertEquals(0.0, jRip_NominalAntd0.getMaxInfoGain(), 0.01);\n \n long long0 = jRip0.getSeed();\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertTrue(jRip0.getUsePruning());\n assertEquals(2, jRip0.getOptimizations());\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(3, jRip0.getFolds());\n assertEquals(1L, long0);\n assertFalse(jRip0.getDebug());\n }", "title": "" }, { "docid": "70def4ca57bcb2db9400b4ca2e71db51", "score": "0.59687656", "text": "@Test(timeout = 4000)\n public void test09() throws Throwable {\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"tm\\\"iK7~\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.m_Header = instances0;\n VotedPerceptron votedPerceptron0 = new VotedPerceptron();\n CVParameterSelection cVParameterSelection0 = new CVParameterSelection();\n cVParameterSelection0.setClassifier(votedPerceptron0);\n Evaluation.makeOptionString(votedPerceptron0, false);\n Evaluation evaluation1 = new Evaluation(instances0);\n evaluation1.getHeader();\n Evaluation evaluation2 = new Evaluation(instances0);\n String string0 = evaluation2.toMatrixString();\n assertEquals(\"=== Confusion Matrix ===\\n\\n a b <-- classified as\\n 0 0 | a = class1\\n 0 0 | b = class2\\n\", string0);\n \n double double0 = evaluation1.meanAbsoluteError();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation1.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "fa5a5c2f5a5faae03c0cece90ff79b14", "score": "0.5957744", "text": "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize(\"X]..?f\");\n discretize0.setAttributeIndices(\"X]..?f\");\n assertFalse(discretize0.getMakeBinary());\n \n discretize0.m_MakeBinary = true;\n discretize0.binsTipText();\n discretize0.m_DefaultCols = \"Optimize number of bins using leave-one-out estimate\\n\\tof estimated entropy (for equal-width discretization).\\n\\tIf this is set then the -B option will be ignored.\";\n String[] stringArray0 = discretize0.getOptions();\n discretize0.getBinRangesString((-1));\n Discretize.main(stringArray0);\n assertTrue(discretize0.getMakeBinary());\n assertEquals(10, discretize0.getBins());\n }", "title": "" }, { "docid": "a954f06f3f4dd02370ff53382468bed0", "score": "0.59477305", "text": "@Test(timeout = 4000)\n public void test251() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n resultMatrixLatex0.clearHeader();\n ResultMatrixSignificance.main((String[]) null);\n }", "title": "" }, { "docid": "ec3d918951ffe570af0b85d0171fd9e2", "score": "0.5922605", "text": "@Test(timeout = 4000)\n public void test25() throws Throwable {\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"tm\\\"iK7~\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.m_Header = instances0;\n char[] charArray0 = new char[1];\n charArray0[0] = 'F';\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n CVParameterSelection cVParameterSelection0 = new CVParameterSelection();\n ZeroR zeroR0 = new ZeroR();\n cVParameterSelection0.setClassifier(zeroR0);\n MultiClassClassifier multiClassClassifier0 = new MultiClassClassifier();\n evaluation0.KBRelativeInformation();\n System.setCurrentTimeMillis((-1L));\n Evaluation evaluation1 = new Evaluation(instances0);\n evaluation0.toClassDetailsString(\".arff\");\n evaluation1.trueNegativeRate(474);\n }", "title": "" }, { "docid": "946ae3a0da2dc01edec54b9bf2bc369a", "score": "0.5922458", "text": "@Test(timeout = 4000)\n public void test09() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.globalInfo();\n assertEquals(\"An instance filter that discretizes a range of numeric attributes in the dataset into nominal attributes. Discretization is by simple binning. Skips the class attribute if set.\", string0);\n \n discretize0.setAttributeIndices(\"\");\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "title": "" }, { "docid": "35cd538a6dfa956e9edc60a441a1df05", "score": "0.59159017", "text": "@Test(timeout = 4000)\n public void test03() throws Throwable {\n Evaluation.handleCostOption(\"\", 0);\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Vector<NaiveBayesMultinomial> vector0 = new Vector<NaiveBayesMultinomial>();\n instances0.removeAll(vector0);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.equals(textDirectoryLoader0);\n boolean boolean0 = evaluation0.equals(vector0);\n assertFalse(boolean0);\n \n double double0 = evaluation0.numTrueNegatives(2);\n assertEquals(0.0, double0, 0.01);\n \n double double1 = evaluation0.SFPriorEntropy();\n assertEquals(0.0, double1, 0.01);\n \n double double2 = evaluation0.numTruePositives(117);\n assertEquals(double2, double0, 0.01);\n assertEquals(0.0, double2, 0.01);\n }", "title": "" }, { "docid": "56c0fdd9541b914fd81210a6523dc3dd", "score": "0.5894087", "text": "@Test(timeout = 4000)\n public void test08() throws Throwable {\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"tm\\\"iK7~\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.m_Header = instances0;\n VotedPerceptron votedPerceptron0 = new VotedPerceptron();\n CVParameterSelection cVParameterSelection0 = new CVParameterSelection();\n cVParameterSelection0.setClassifier(votedPerceptron0);\n Evaluation.makeOptionString(votedPerceptron0, false);\n Evaluation evaluation1 = new Evaluation(instances0);\n evaluation1.getHeader();\n Evaluation evaluation2 = new Evaluation(instances0);\n String string0 = evaluation1.toSummaryString(false);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n \n double double0 = evaluation1.meanAbsoluteError();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation1.unclassified(), 0.01);\n }", "title": "" }, { "docid": "2d7d45d73e5f0258193fa70f56667f70", "score": "0.58820015", "text": "public static void main(String[] args) {\n\n\t\ttry {\n\n\t\t\tinput();\n\n\t\t\tclassEntropy = new double[partitionCount];\n\n\t\t\tfor (int i = 0; i < partitionCount; i++) {\n\t\t\t\tint yesCount = 0;\n\t\t\t\tint noCount = 0;\n\t\t\t\tint tCount = 0;\n\t\t\t\tfor (int j = 0; j < instanceCount; j++) {\n\n\t\t\t\t\tfor (int k = 0; k < classCount[i]; k++) {\n\t\t\t\t\t\tif (classData[i][k] == (j + 1)\n\t\t\t\t\t\t\t\t&& inputData[j][featureCount - 1] == 1)\n\t\t\t\t\t\t\tyesCount++;\n\t\t\t\t\t\tif (classData[i][k] == (j + 1)\n\t\t\t\t\t\t\t\t&& inputData[j][featureCount - 1] == 0)\n\t\t\t\t\t\t\tnoCount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tclassEntropy[i] = calculateEntropy(noCount, yesCount);\n\t\t\t}\n\n\t\t\tconditionalEntropy = new double[partitionCount][featureCount - 1];\n\t\t\tinformationGain = new double[partitionCount][featureCount - 1];\n\n\t\t\tfor (int i = 0; i < partitionCount; i++) {\n\t\t\t\tfor (int j = 0; j < featureCount - 1; j++) {\n\t\t\t\t\tint yesCount0 = 0;\n\t\t\t\t\tint noCount0 = 0;\n\t\t\t\t\tint yesCount1 = 0;\n\t\t\t\t\tint noCount1 = 0;\n\t\t\t\t\tint noCount2 =0;\n\t\t\t\t\tint yesCount2 =0;\n\n\t\t\t\t\tfor (int k = 0; k < classCount[i]; k++) {\n\t\t\t\t\t\tif (inputData[classData[i][k] - 1][j] == 0\n\t\t\t\t\t\t\t\t&& inputData[classData[i][k] - 1][featureCount - 1] == 0)\n\t\t\t\t\t\t\tnoCount0++;\n\t\t\t\t\t\telse if (inputData[classData[i][k] - 1][j] == 0\n\t\t\t\t\t\t\t\t&& inputData[classData[i][k] - 1][featureCount - 1] == 1)\n\t\t\t\t\t\t\tyesCount0++;\n\t\t\t\t\t\telse if (inputData[classData[i][k] - 1][j] == 1\n\t\t\t\t\t\t\t\t&& inputData[classData[i][k] - 1][featureCount - 1] == 0)\n\t\t\t\t\t\t\tnoCount1++;\n\t\t\t\t\t\telse if (inputData[classData[i][k] - 1][j] == 1\n\t\t\t\t\t\t\t\t&& inputData[classData[i][k] - 1][featureCount - 1] == 1)\n\t\t\t\t\t\t\tyesCount1++;\n\t\t\t\t\t\telse if (inputData[classData[i][k] - 1][j] == 2\n\t\t\t\t\t\t\t\t&& inputData[classData[i][k] - 1][featureCount - 1] == 0)\n\t\t\t\t\t\t\tnoCount2++;\n\t\t\t\t\t\telse if (inputData[classData[i][k] - 1][j] == 2\n\t\t\t\t\t\t\t\t&& inputData[classData[i][k] - 1][featureCount - 1] == 1)\n\t\t\t\t\t\t\tyesCount2++;\n\t\t\t\t\t}\n\n\t\t\t\t\tconditionalEntropy[i][j] = calculateConditionalEntropy(\n\t\t\t\t\t\t\tnoCount0, yesCount0, noCount1, yesCount1, noCount2, yesCount2);\n\t\t\t\t\tinformationGain[i][j] = classEntropy[i]\n\t\t\t\t\t\t\t- conditionalEntropy[i][j];\n\t\t\t\t}\n\t\t\t}\n\t\t\tfindMaxGainFeature();\n\t\t\tInputOutput.writeOutput();\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Partition unsuccessful...\");\n\t\t}\n\t}", "title": "" }, { "docid": "6936126c5485091cee9e10ea8238d3bb", "score": "0.58676285", "text": "@Test(timeout = 4000)\n public void test095() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertNotNull(resultMatrixSignificance0);\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n \n boolean boolean0 = true;\n resultMatrixSignificance0.m_PrintColNames = true;\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n \n resultMatrixSignificance0.setPrintColNames(true);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n \n String string0 = resultMatrixSignificance0.removeFilterName(\"|oY.$SBwz*`$$;RV\");\n assertEquals(\"|oY.$SBwz*`$$;RV\", string0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertNotNull(string0);\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n \n String[] stringArray0 = new String[9];\n stringArray0[0] = \"|oY.$SBwz*`$$;RV\";\n stringArray0[1] = \"*\";\n stringArray0[2] = \"*\";\n stringArray0[3] = \" \";\n stringArray0[4] = \"|oY.$SBwz*`$$;RV\";\n stringArray0[5] = \"|oY.$SBwz*`$$;RV\";\n stringArray0[6] = \")\";\n stringArray0[7] = \"|oY.$SBwz*`$$;RV\";\n stringArray0[8] = \"v\";\n resultMatrixSignificance0.m_RowNames = stringArray0;\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(9, resultMatrixSignificance0.getRowCount());\n \n String string1 = resultMatrixSignificance0.removeFilterName(\"|oY.$SBwz*`$$;RV\");\n assertEquals(\"|oY.$SBwz*`$$;RV\", string1);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertTrue(string1.equals((Object)string0));\n assertNotNull(string1);\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(9, resultMatrixSignificance0.getRowCount());\n \n resultMatrixSignificance0.clearHeader();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(9, resultMatrixSignificance0.getRowCount());\n \n resultMatrixSignificance0.clearSummary();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(9, resultMatrixSignificance0.getRowCount());\n \n String string2 = resultMatrixSignificance0.globalInfo();\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", string2);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(string2.equals((Object)string0));\n assertFalse(string2.equals((Object)string1));\n assertNotNull(string2);\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(9, resultMatrixSignificance0.getRowCount());\n \n int int0 = 1725;\n // Undeclared exception!\n try { \n resultMatrixSignificance0.toString();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "title": "" }, { "docid": "c56f0c59da58941bd39689470682744a", "score": "0.5866139", "text": "@Test(timeout = 4000)\n public void test22() throws Throwable {\n FileSystemHandling.shouldAllThrowIOExceptions();\n Discretize discretize0 = new Discretize();\n discretize0.m_IgnoreClass = true;\n discretize0.getCapabilities();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(7, stringArray0.length);\n }", "title": "" }, { "docid": "17fbeac7d3d1821d7313fe65d89c5db7", "score": "0.58561957", "text": "public static void main(String[] args) throws IOException {\n\n String path = \"C:\\\\Users\\\\jakub\\\\Desktop\\\\mnist_png\\\\training\";\n //testImageLoader(path);\n DigitsImageLoader loader = new DigitsImageLoader(path);\n BufferedImage[][] images = loader.loadDigits();\n\n RCHistogramFeature featureMethod = new RCHistogramFeature();\n featureMethod.setThreshold(5);\n\n long start = System.currentTimeMillis();\n double[][][] featureVectors1 = new double[images.length][][];\n for (int digit = 0; digit < featureVectors1.length; digit++) {\n featureVectors1[digit] = new double[images[digit].length][];\n double[][] imageFeatureVectors = featureVectors1[digit];\n\n for (int i = 0; i < imageFeatureVectors.length; i++) {\n double[] featureVector = featureMethod.createFeature(images[digit][i]);\n imageFeatureVectors[i] = featureVector;\n }\n }\n\n testClassifier(new MinimumDistanceClassifier(featureVectors1));\n long e = System.currentTimeMillis() - start;\n System.out.println(e);\n }", "title": "" }, { "docid": "dbfcf3cba7ca75a6483c014e391498ff", "score": "0.5845504", "text": "@Test(timeout = 4000)\n public void test08() throws Throwable {\n int int0 = 0;\n Evaluation.handleCostOption(\"\", 0);\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/evosuite_readability_gen/projects/107_weka\");\n byte[] byteArray0 = new byte[0];\n FileSystemHandling.appendDataToFile(evoSuiteFile0, byteArray0);\n Vector<NaiveBayesMultinomial> vector0 = new Vector<NaiveBayesMultinomial>();\n instances0.removeAll(vector0);\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n evaluation0.numInstances();\n CostSensitiveClassifier costSensitiveClassifier0 = new CostSensitiveClassifier();\n CostMatrix costMatrix0 = costSensitiveClassifier0.getCostMatrix();\n Evaluation evaluation1 = null;\n try {\n evaluation1 = new Evaluation(instances0, costMatrix0);\n fail(\"Expecting exception: Exception\");\n \n } catch(Throwable e) {\n //\n // Cost matrix not compatible with data!\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "c34a5bce34df89196827cb16c337c057", "score": "0.5842511", "text": "@Test(timeout = 4000)\n public void test16() throws Throwable {\n JRip jRip0 = new JRip();\n jRip0.toString();\n Attribute attribute0 = new Attribute(\"{\", 2287);\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute0);\n double[] doubleArray0 = new double[4];\n doubleArray0[0] = (double) 1;\n doubleArray0[1] = (double) 4;\n doubleArray0[2] = 559.9;\n doubleArray0[3] = (double) 2;\n SparseInstance sparseInstance0 = new SparseInstance(559.9, doubleArray0);\n jRip_NominalAntd0.covers(sparseInstance0);\n jRip_NominalAntd0.getAttrValue();\n Attribute attribute1 = jRip_NominalAntd0.getAttr();\n attribute1.setWeight(0.0);\n JRip.RipperRule jRip_RipperRule0 = jRip0.new RipperRule();\n jRip_RipperRule0.setConsequent((-945.575));\n jRip0.listOptions();\n // Undeclared exception!\n try { \n jRip0.getRuleStats(0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.classifiers.rules.JRip\", e);\n }\n }", "title": "" }, { "docid": "a176ecc066c42dc17d2545a54e66d930", "score": "0.5830135", "text": "@Test\n\tvoid computeEntropy_Zeros() {\n\t\tStereoMutualInformation alg = new StereoMutualInformation();\n\t\talg.configureHistogram(251);\n\n\t\t// only a few non-zero values\n\t\tfor (int i = 0; i < 251; i++) {\n\t\t\talg.histJoint.set(250,i,40);\n\t\t}\n\t\talg.computeProbabilities();\n\t\talg.computeEntropy();\n\n\t\t// make sure all numbers are valid\n\t\tfor (int i = 0; i < 251; i++) {\n\t\t\tassertFalse(UtilEjml.isUncountable(alg.entropyLeft.get(i,0)));\n\t\t\tassertFalse(UtilEjml.isUncountable(alg.entropyRight.get(i,0)));\n\n\t\t\tfor (int j = 0; j < 251; j++) {\n\t\t\t\tassertFalse(UtilEjml.isUncountable(alg.entropyJoint.get(j,i)));\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "d56f39c755f6f02e0e0b033c42ae7830", "score": "0.5826153", "text": "public static void main(String... args) {\n for(int size = 1; size < 1_000_000; size *= 10) {\n // for(int size = 1; size < 1_000_000; size = (size < 100) ? (size + 1) : (int) (size * 1.1)) {\n Data best = null;\n for (int segmentLengthBits = 3; segmentLengthBits < 14; segmentLengthBits++) {\n int segmentLength = 1 << segmentLengthBits;\n if (segmentLength > size) {\n break;\n }\n for(double load = 0.85; load > 0.3; load-= 0.05) {\n Data d = getProbability(size, segmentLengthBits, load, best);\n if (d != null && d.p > 0.85) {\n if (best == null || d.bitsPerKey < best.bitsPerKey) {\n best = d;\n }\n break;\n }\n }\n }\n if (best != null) {\n System.out.println(best);\n }\n }\n }", "title": "" }, { "docid": "c718181e085f5ff4588f7c415dc7c5f4", "score": "0.5809715", "text": "@Test(timeout = 4000)\n public void test07() throws Throwable {\n Evaluation.handleCostOption(\"\", 0);\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.equals(textDirectoryLoader0);\n assertFalse(boolean0);\n \n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0, doubleArray0.length);\n }", "title": "" }, { "docid": "f1d4954d96b5929f0147776c05edd3e4", "score": "0.5783119", "text": "@Test(timeout = 4000)\n public void test04() throws Throwable {\n Discretize discretize0 = new Discretize(\"X]..?f\");\n discretize0.setAttributeIndices(\"X]..?f\");\n discretize0.m_MakeBinary = true;\n discretize0.m_DesiredWeightOfInstancesPerInterval = 1.7976931348623157E308;\n discretize0.binsTipText();\n discretize0.getOptions();\n discretize0.getBinRangesString((-1));\n discretize0.getRevision();\n assertEquals(1.7976931348623157E308, discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "title": "" }, { "docid": "113ddbd5c9c3c8256fd34d7eb5a259fb", "score": "0.5780839", "text": "@Test(timeout = 4000)\n public void test03() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.toString();\n discretize0.useBinNumbersTipText();\n discretize0.setBins(2928);\n String[] stringArray0 = new String[4];\n stringArray0[0] = \"Use bin numbers (eg BXofY) rather than ranges for for discretized attributes\";\n stringArray0[1] = \"Use bin numbers (eg BXofY) rather than ranges for for discretized attributes\";\n stringArray0[2] = \"weka.filters.unsupervised.attribute.Discretize\";\n stringArray0[3] = \"Ur\";\n discretize0.setOptions(stringArray0);\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-2100));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "title": "" }, { "docid": "bd49e37e0d2d6f02b5f1a19c2031ce9f", "score": "0.57702196", "text": "@Test(timeout = 4000)\n public void test62() throws Throwable {\n CostMatrix costMatrix0 = Evaluation.handleCostOption(\"\", 0);\n assertNull(costMatrix0);\n \n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertNotNull(textDirectoryLoader0);\n \n Instances instances0 = textDirectoryLoader0.getDataSet();\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances0.relationName());\n assertEquals(0, instances0.numClasses());\n assertEquals(1, instances0.classIndex());\n assertEquals(0.0, instances0.sumOfWeights(), 0.01);\n assertEquals(0, instances0.size());\n assertTrue(instances0.checkForStringAttributes());\n assertEquals(0, instances0.numInstances());\n assertEquals(2, instances0.numAttributes());\n assertNotNull(instances0);\n \n CostSensitiveClassifier costSensitiveClassifier0 = new CostSensitiveClassifier();\n assertEquals(1, CostSensitiveClassifier.MATRIX_ON_DEMAND);\n assertEquals(2, CostSensitiveClassifier.MATRIX_SUPPLIED);\n assertFalse(costSensitiveClassifier0.getDebug());\n assertEquals(\"The random number seed to be used.\", costSensitiveClassifier0.seedTipText());\n assertEquals(\"A metaclassifier that makes its base classifier cost-sensitive. Two methods can be used to introduce cost-sensitivity: reweighting training instances according to the total cost assigned to each class; or predicting the class with minimum expected misclassification cost (rather than the most likely class). Performance can often be improved by using a Bagged classifier to improve the probability estimates of the base classifier.\", costSensitiveClassifier0.globalInfo());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", costSensitiveClassifier0.debugTipText());\n assertEquals(1, costSensitiveClassifier0.getSeed());\n assertEquals(0, costSensitiveClassifier0.graphType());\n assertEquals(\"Sets the cost matrix explicitly. This matrix is used if the costMatrixSource property is set to \\\"Supplied\\\".\", costSensitiveClassifier0.costMatrixTipText());\n assertEquals(\"The base classifier to be used.\", costSensitiveClassifier0.classifierTipText());\n assertEquals(\"Sets the directory where cost files are loaded from. This option is used when the costMatrixSource is set to \\\"On Demand\\\".\", costSensitiveClassifier0.onDemandDirectoryTipText());\n assertFalse(costSensitiveClassifier0.getMinimizeExpectedCost());\n assertEquals(\"Sets whether the minimum expected cost criteria will be used. If this is false, the training data will be reweighted according to the costs assigned to each class. If true, the minimum expected cost criteria will be used.\", costSensitiveClassifier0.minimizeExpectedCostTipText());\n assertNotNull(costSensitiveClassifier0);\n \n TestInstances testInstances0 = new TestInstances();\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(testInstances0.getNoClass());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertNotNull(testInstances0);\n \n Instances instances1 = testInstances0.generate();\n assertFalse(instances1.equals((Object)instances0));\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(testInstances0.getNoClass());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(20, instances1.numInstances());\n assertEquals(2, instances1.numAttributes());\n assertEquals(\"Testdata\", instances1.relationName());\n assertEquals(1, instances1.classIndex());\n assertEquals(2, instances1.numClasses());\n assertFalse(instances1.checkForStringAttributes());\n assertEquals(20.0, instances1.sumOfWeights(), 0.01);\n assertEquals(20, instances1.size());\n assertNotNull(instances1);\n assertNotSame(instances1, instances0);\n \n Evaluation evaluation0 = new Evaluation(instances1, (CostMatrix) null);\n assertFalse(instances1.equals((Object)instances0));\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(testInstances0.getNoClass());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(20, instances1.numInstances());\n assertEquals(2, instances1.numAttributes());\n assertEquals(\"Testdata\", instances1.relationName());\n assertEquals(1, instances1.classIndex());\n assertEquals(2, instances1.numClasses());\n assertFalse(instances1.checkForStringAttributes());\n assertEquals(20.0, instances1.sumOfWeights(), 0.01);\n assertEquals(20, instances1.size());\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertNotNull(evaluation0);\n \n String string0 = evaluation0.toClassDetailsString(\"@relation\");\n assertFalse(instances1.equals((Object)instances0));\n assertEquals(\"@relation\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\n 0 0 0 0 0 0 ? ? class1\\n 0 0 0 0 0 0 ? ? class2\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(testInstances0.getNoClass());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(20, instances1.numInstances());\n assertEquals(2, instances1.numAttributes());\n assertEquals(\"Testdata\", instances1.relationName());\n assertEquals(1, instances1.classIndex());\n assertEquals(2, instances1.numClasses());\n assertFalse(instances1.checkForStringAttributes());\n assertEquals(20.0, instances1.sumOfWeights(), 0.01);\n assertEquals(20, instances1.size());\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertNotNull(string0);\n assertNotSame(instances1, instances0);\n }", "title": "" }, { "docid": "271c0d4f22298072283217038fd5e0ab", "score": "0.576457", "text": "@Test(timeout = 4000)\n public void test26() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"tm\\\"iK7~\");\n Evaluation evaluation0 = new Evaluation(instances0);\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n CVParameterSelection cVParameterSelection0 = new CVParameterSelection();\n ZeroR zeroR0 = new ZeroR();\n MultiClassClassifier multiClassClassifier0 = new MultiClassClassifier();\n Evaluation.main(testInstances0.DEFAULT_WORDS);\n evaluation0.KBRelativeInformation();\n Evaluation.makeOptionString(multiClassClassifier0, true);\n FilteredClusterer filteredClusterer0 = new FilteredClusterer();\n evaluation0.toClassDetailsString();\n // Undeclared exception!\n try { \n evaluation0.fMeasure(2);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 2\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "2d541ad7b407e419be986740bd2f3411", "score": "0.57622236", "text": "@Test(timeout = 4000)\n public void test12() throws Throwable {\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"tm\\\"iK7~\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.m_Header = instances0;\n char[] charArray0 = new char[1];\n charArray0[0] = 'F';\n String string0 = evaluation0.num2ShortID((-2), charArray0, 8);\n assertEquals(\" F\", string0);\n \n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n testInstances0.setNumRelationalString(82);\n double double0 = evaluation0.pctIncorrect();\n String string1 = evaluation0.toSummaryString((String) null, true);\n assertEquals(\"null\\nTotal Number of Instances 0 \\n\", string1);\n \n double double1 = evaluation0.pctUnclassified();\n assertEquals(Double.NaN, double1, 0.01);\n \n double double2 = evaluation0.m_SumPriorEntropy;\n evaluation0.falsePositiveRate(32);\n double double3 = evaluation0.coverageOfTestCasesByPredictedRegions();\n assertEquals(double3, double0, 0.01);\n \n Instances.test(testInstances0.DEFAULT_WORDS);\n evaluation0.rootMeanSquaredError();\n double double4 = evaluation0.m_ConfLevel;\n assertEquals(0.95, double4, 0.01);\n \n evaluation0.confusionMatrix();\n evaluation0.confusionMatrix();\n Evaluation evaluation1 = new Evaluation(instances0);\n evaluation0.useNoPriors();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "title": "" }, { "docid": "4e71bf108a9dcf31e44cd4d0c42be044", "score": "0.5758069", "text": "@Test(timeout = 4000)\n public void test115() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertNotNull(resultMatrixSignificance0);\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n \n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(resultMatrixSignificance0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertNotNull(resultMatrixPlainText0);\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertFalse(resultMatrixPlainText0.getPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n \n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixPlainText0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertFalse(resultMatrixPlainText0.getPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(40, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n \n resultMatrixSignificance0.WIN_STRING = \" \";\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n \n boolean boolean0 = resultMatrixGnuPlot0.getPrintRowNames();\n assertTrue(boolean0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertFalse(resultMatrixPlainText0.getPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(40, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n \n boolean[] booleanArray0 = new boolean[5];\n booleanArray0[0] = true;\n booleanArray0[1] = true;\n booleanArray0[2] = true;\n booleanArray0[3] = true;\n booleanArray0[4] = true;\n resultMatrixPlainText0.m_ColHidden = booleanArray0;\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertFalse(resultMatrixPlainText0.getPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n \n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertNotNull(resultMatrixHTML0);\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n \n String string0 = resultMatrixHTML0.getDisplayName();\n assertEquals(\"HTML\", string0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertNotNull(string0);\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n \n boolean boolean1 = resultMatrixSignificance0.isStdDev(0);\n assertFalse(boolean1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(boolean1 == boolean0);\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n }", "title": "" }, { "docid": "74cffeae265be8720efa07bcd29df739", "score": "0.57442963", "text": "@Test(timeout = 4000)\n public void test182() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n resultMatrixLatex0.setSignificanceWidth(2);\n resultMatrixLatex0.setMeanPrec(2);\n resultMatrixLatex0.toStringSummary();\n assertEquals(2, resultMatrixLatex0.getSignificanceWidth());\n }", "title": "" }, { "docid": "9f2bde2ce17f198c8af20c040fa99f11", "score": "0.5741103", "text": "@Test(timeout = 4000)\n public void test02() throws Throwable {\n Evaluation.handleCostOption(\"\", 0);\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n String[] stringArray0 = new String[3];\n stringArray0[0] = \"@relation\";\n stringArray0[1] = \".arff\";\n stringArray0[2] = \"@data\";\n textDirectoryLoader0.setOptions(stringArray0);\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.equals(textDirectoryLoader0);\n assertFalse(boolean0);\n \n double double0 = evaluation0.rootMeanSquaredError();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "d359209a97c8e22b9eda476e7c72aca1", "score": "0.57407933", "text": "@Test(timeout = 4000)\n public void test22() throws Throwable {\n JRip jRip0 = new JRip();\n JRip.RipperRule jRip_RipperRule0 = jRip0.new RipperRule();\n assertEquals((-1.0), jRip_RipperRule0.getConsequent(), 0.01);\n \n InputMappedClassifier inputMappedClassifier0 = new InputMappedClassifier();\n String[] stringArray0 = new String[9];\n stringArray0[0] = \"?{Cuzcj-_4b\";\n stringArray0[1] = \"%tO(J z\";\n stringArray0[2] = \"4+)l;M_n<UPN\";\n double[] doubleArray0 = new double[3];\n doubleArray0[0] = 559.9;\n doubleArray0[1] = 1.0;\n doubleArray0[2] = 559.9;\n SparseInstance sparseInstance0 = new SparseInstance(1.0, doubleArray0);\n ArrayList<Locale.LanguageRange> arrayList0 = new ArrayList<Locale.LanguageRange>();\n List<String> list0 = Locale.filterTags((List<Locale.LanguageRange>) arrayList0, (Collection<String>) null);\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n Attribute attribute0 = new Attribute(\"?{Cuzcj-_4b\", list0, protectedProperties0);\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute0);\n jRip_NominalAntd0.covers(sparseInstance0);\n jRip_NominalAntd0.getAttrValue();\n Attribute attribute1 = jRip_NominalAntd0.getAttr();\n attribute0.setWeight(64.0);\n JRip.RipperRule jRip_RipperRule1 = jRip0.new RipperRule();\n jRip_RipperRule0.setConsequent(Double.NaN);\n JRip jRip1 = new JRip();\n JRip.RipperRule jRip_RipperRule2 = jRip0.new RipperRule();\n jRip_RipperRule2.hasAntds();\n jRip_RipperRule0.covers(sparseInstance0);\n jRip_NominalAntd0.copy();\n jRip_NominalAntd0.getMaxInfoGain();\n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd(attribute1);\n String string0 = jRip_NumericAntd0.getRevision();\n assertEquals(\"8118\", string0);\n }", "title": "" }, { "docid": "93278205aec40a592841e84f1a7161d2", "score": "0.5732525", "text": "@Test(timeout = 4000)\n public void test11() throws Throwable {\n Discretize discretize0 = new Discretize(\"#\");\n String string0 = discretize0.attributeIndicesTipText();\n assertEquals(\"Specify range of attributes to act on. This is a comma separated list of attribute indices, with \\\"first\\\" and \\\"last\\\" valid values. Specify an inclusive range with \\\"-\\\". E.g: \\\"first-3,5,6-10,last\\\".\", string0);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n }", "title": "" }, { "docid": "06a27e3f908ee4d863aa9b3b7f95aec6", "score": "0.57311445", "text": "public Double entropy() {\n double entropy = 0.0;\n HashMap<Label, Double> percentage = labelPercentage();\n for (HashMap.Entry<Label, Double> entry : percentage.entrySet()) {\n double proportion = entry.getValue() / 100;\n entropy += -1 * (proportion) * Math.log(proportion) / Math.log(percentage.size());\n }\n return (int) (entropy * 100) / 100.0;\n }", "title": "" }, { "docid": "82bc74e3f934d03f718e41fb80e76788", "score": "0.5730462", "text": "@Test(timeout = 4000)\n public void test139() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(1, 0);\n int[][] intArray0 = new int[3][2];\n resultMatrixSignificance0.m_ShowStdDev = false;\n resultMatrixSignificance0.m_NonSigWins = intArray0;\n int[] intArray1 = new int[4];\n intArray1[0] = 0;\n intArray1[1] = 0;\n intArray1[2] = 0;\n intArray1[3] = 0;\n intArray0[0] = intArray1;\n int[] intArray2 = new int[7];\n intArray2[0] = 1;\n intArray2[1] = 1;\n intArray2[2] = 2;\n intArray2[6] = 2;\n intArray2[4] = 0;\n resultMatrixSignificance0.getRowName(2138);\n intArray2[5] = 1;\n intArray2[6] = 2;\n intArray0[1] = intArray2;\n int[] intArray3 = new int[6];\n intArray3[1] = 0;\n intArray3[2] = 0;\n intArray3[3] = 0;\n intArray3[4] = 1;\n intArray0[2] = intArray3;\n resultMatrixSignificance0.setSummary(intArray0, intArray0);\n resultMatrixSignificance0.setPrintRowNames(false);\n resultMatrixSignificance0.getDisplayName();\n boolean boolean0 = resultMatrixSignificance0.isSignificance(3);\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertTrue(boolean0);\n }", "title": "" }, { "docid": "e432fa2f879d2b48404b9513e86733ac", "score": "0.5725753", "text": "@Test(timeout = 4000)\n public void test24() throws Throwable {\n JRip jRip0 = new JRip();\n JRip.RipperRule jRip_RipperRule0 = jRip0.new RipperRule();\n InputMappedClassifier inputMappedClassifier0 = new InputMappedClassifier();\n String[] stringArray0 = new String[9];\n stringArray0[0] = \"?{Cuzcj-_4b\";\n stringArray0[1] = \"%tO(J z\";\n stringArray0[2] = \"4+)l;M_n<UPN\";\n stringArray0[3] = \"\\nGrowing and pruning Replace ...\";\n stringArray0[4] = \"--=8h\";\n stringArray0[5] = \"IR\\\"3C2\";\n stringArray0[6] = \"IR\\\"3C2\";\n stringArray0[7] = \"mqVdpB\";\n stringArray0[8] = \"k>g6=J]K$\";\n jRip0.setOptions(stringArray0);\n JRip.RipperRule jRip_RipperRule1 = jRip0.new RipperRule();\n jRip_RipperRule1.size();\n jRip_RipperRule1.setConsequent((-651.008404112985));\n assertEquals((-651.008404112985), jRip_RipperRule1.getConsequent(), 0.01);\n \n JRip jRip1 = new JRip();\n JRip.RipperRule jRip_RipperRule2 = jRip1.new RipperRule();\n JRip.RipperRule jRip_RipperRule3 = jRip1.new RipperRule();\n jRip_RipperRule3.hasAntds();\n Attribute attribute0 = new Attribute(\"Using inverse-distance weighting kernels\\n\");\n JRip.NominalAntd jRip_NominalAntd0 = jRip1.new NominalAntd(attribute0);\n double double0 = jRip_NominalAntd0.getAccuRate();\n assertEquals(Double.NaN, double0, 0.01);\n }", "title": "" }, { "docid": "63ee1263b8ae8ee562b72c169ac61ccd", "score": "0.57243514", "text": "@Test(timeout = 4000)\n public void test02() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getAttributeIndices();\n discretize0.setDesiredWeightOfInstancesPerInterval(3785.69462);\n discretize0.setOutputFormat();\n String[] stringArray0 = new String[7];\n stringArray0[0] = \"first-last\";\n stringArray0[1] = \"first-last\";\n String string0 = \"OOLodY\";\n stringArray0[2] = \"OOLodY\";\n stringArray0[3] = \"first-last\";\n stringArray0[4] = \"first-last\";\n stringArray0[5] = \"first-last\";\n stringArray0[6] = \"first-last\";\n discretize0.setOptions(stringArray0);\n discretize0.setBins((-5883));\n discretize0.desiredWeightOfInstancesPerIntervalTipText();\n // Undeclared exception!\n try { \n discretize0.findNumBins((-5883));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "732420f45f1e1d21e7378abc06a98553", "score": "0.5712801", "text": "@Test(timeout = 4000)\n public void test158() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.m_StdDevWidth = 97;\n resultMatrixSignificance0.setMeanPrec((-766));\n int[] intArray0 = new int[8];\n intArray0[0] = 2;\n intArray0[1] = 2;\n intArray0[2] = 2;\n intArray0[3] = 2;\n intArray0[4] = (-766);\n intArray0[5] = 1;\n intArray0[6] = 2;\n intArray0[7] = 2;\n resultMatrixSignificance0.m_RankingWins = intArray0;\n resultMatrixSignificance0.clearRanking();\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixSignificance0);\n resultMatrixHTML0.setMeanWidth((-563));\n resultMatrixHTML0.m_MeanWidth = 1126;\n resultMatrixHTML0.m_PrintRowNames = false;\n resultMatrixHTML0.m_StdDevWidth = 0;\n resultMatrixSignificance0.toStringKey();\n resultMatrixHTML0.countWidthTipText();\n String[] stringArray0 = resultMatrixHTML0.getOptions();\n resultMatrixHTML0.m_RowNames = stringArray0;\n resultMatrixSignificance0.setPrintRowNames(false);\n resultMatrixSignificance0.getShowAverage();\n resultMatrixHTML0.printRowNamesTipText();\n resultMatrixHTML0.setRemoveFilterName(false);\n resultMatrixHTML0.toStringSummary();\n resultMatrixSignificance0.setSignificance(2, 0, 26);\n assertEquals(97, resultMatrixSignificance0.getStdDevWidth());\n }", "title": "" }, { "docid": "017a7cda383c1b7e584b3dffebc52b74", "score": "0.5708906", "text": "@Test(timeout = 4000)\n public void test26() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertNotNull(resultMatrixSignificance0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n \n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance(resultMatrixSignificance0);\n assertNotNull(resultMatrixSignificance1);\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleRowCount());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance1.getColCount());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertEquals(1, resultMatrixSignificance1.getRowCount());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertEquals(1, resultMatrixSignificance1.getVisibleColCount());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n \n int[][] intArray0 = new int[2][9];\n int[] intArray1 = new int[5];\n intArray1[0] = 915;\n intArray1[1] = (-2430);\n intArray1[2] = 0;\n intArray1[3] = 0;\n intArray1[4] = 2;\n intArray0[0] = intArray1;\n int[] intArray2 = new int[9];\n assertFalse(intArray2.equals((Object)intArray1));\n \n intArray2[0] = 1;\n intArray2[1] = 2;\n intArray2[2] = 0;\n intArray2[3] = (-2430);\n intArray2[4] = 2;\n intArray2[5] = 2;\n intArray2[6] = 2;\n intArray2[7] = (-2430);\n intArray2[8] = 2;\n intArray0[1] = intArray2;\n resultMatrixSignificance0.setSummary(intArray0, intArray0);\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertEquals(2, intArray0.length);\n }", "title": "" }, { "docid": "e198344b223e7763dc24807dde886ee3", "score": "0.57039815", "text": "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n int[] intArray0 = new int[4];\n intArray0[0] = 891;\n String string0 = discretize0.makeBinaryTipText();\n assertEquals(\"Make resulting attributes binary.\", string0);\n \n double[] doubleArray0 = new double[4];\n doubleArray0[0] = (double) 891;\n doubleArray0[1] = (double) 891;\n doubleArray0[3] = (double) 891;\n DenseInstance denseInstance0 = new DenseInstance(891, doubleArray0);\n String string1 = discretize0.useEqualFrequencyTipText();\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", string1);\n \n discretize0.getBinRangesString((-1840700267));\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n }", "title": "" }, { "docid": "ae771fafe50b1b99e0df4af6041ea7f2", "score": "0.5702861", "text": "@Test(timeout = 4000)\n public void test17() throws Throwable {\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"tm\\\"iK7~\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.m_Header = instances0;\n char[] charArray0 = new char[1];\n charArray0[0] = 'F';\n CVParameterSelection cVParameterSelection0 = new CVParameterSelection();\n ZeroR zeroR0 = new ZeroR();\n cVParameterSelection0.setClassifier(zeroR0);\n MultiClassClassifier multiClassClassifier0 = new MultiClassClassifier();\n evaluation0.KBRelativeInformation();\n Evaluation.makeOptionString(multiClassClassifier0, true);\n Evaluation evaluation1 = new Evaluation(instances0);\n testInstances0.getData();\n Evaluation evaluation2 = new Evaluation(instances0);\n evaluation2.toCumulativeMarginDistributionString();\n evaluation0.meanAbsoluteError();\n Instance instance0 = null;\n try { \n Evaluation.handleCostOption(\".bsi\", 3);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Can't open file null.\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "a86bd50bed03457ba46fb2b96425daaa", "score": "0.5700574", "text": "@Test(timeout = 4000)\n public void test23() throws Throwable {\n JRip jRip0 = new JRip();\n jRip0.toString();\n Attribute attribute0 = new Attribute(\"{\", 2296);\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute0);\n double[] doubleArray0 = new double[4];\n doubleArray0[0] = (double) 1;\n doubleArray0[1] = (double) 4;\n doubleArray0[2] = 559.9;\n doubleArray0[3] = (double) 2;\n SparseInstance sparseInstance0 = new SparseInstance(559.9, doubleArray0);\n jRip_NominalAntd0.covers(sparseInstance0);\n jRip_NominalAntd0.getAttrValue();\n Attribute attribute1 = jRip_NominalAntd0.getAttr();\n FileSystemHandling.shouldAllThrowIOExceptions();\n attribute1.setWeight(0.0);\n JRip.RipperRule jRip_RipperRule0 = jRip0.new RipperRule();\n jRip_RipperRule0.setConsequent((-945.575));\n JRip jRip1 = new JRip();\n JRip.RipperRule jRip_RipperRule1 = jRip1.new RipperRule();\n jRip_RipperRule0.hasAntds();\n jRip_RipperRule0.covers(sparseInstance0);\n assertEquals((-945.575), jRip_RipperRule0.getConsequent(), 0.01);\n \n jRip_NominalAntd0.getCover();\n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd(attribute1);\n jRip_NumericAntd0.copy();\n boolean boolean0 = jRip_NumericAntd0.covers(sparseInstance0);\n assertTrue(boolean0);\n }", "title": "" }, { "docid": "04ebe07f8af79a560dfa2e4e4a2012ad", "score": "0.566652", "text": "@Test(timeout = 4000)\n public void test28() throws Throwable {\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"tm\\\"iK7~\");\n Evaluation evaluation0 = new Evaluation(instances0);\n CVParameterSelection cVParameterSelection0 = new CVParameterSelection();\n ZeroR zeroR0 = new ZeroR();\n cVParameterSelection0.setClassifier(zeroR0);\n MultiClassClassifier multiClassClassifier0 = new MultiClassClassifier();\n Evaluation.main(testInstances0.DEFAULT_WORDS);\n evaluation0.KBRelativeInformation();\n Evaluation.makeOptionString(multiClassClassifier0, false);\n evaluation0.trueNegativeRate(1);\n }", "title": "" }, { "docid": "6ad79b0b3404cfb7ae0f7655a6afcab7", "score": "0.565708", "text": "@Test(timeout = 4000)\n public void test11() throws Throwable {\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"tm\\\"iK7~\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.m_Header = instances0;\n VotedPerceptron votedPerceptron0 = new VotedPerceptron();\n CVParameterSelection cVParameterSelection0 = new CVParameterSelection();\n cVParameterSelection0.setClassifier(votedPerceptron0);\n Evaluation.makeOptionString(votedPerceptron0, false);\n Evaluation evaluation1 = new Evaluation(instances0);\n evaluation1.getHeader();\n Evaluation evaluation2 = new Evaluation(instances0);\n evaluation2.m_ClassIsNominal = false;\n evaluation0.toCumulativeMarginDistributionString();\n evaluation1.meanAbsoluteError();\n evaluation2.setDiscardPredictions(false);\n evaluation1.pctCorrect();\n Random.setNextRandom(816);\n }", "title": "" }, { "docid": "3ecff3ad4c64450141e14eef05a89d23", "score": "0.5653397", "text": "@Test\n public void asdf(){\n target.solution(24);\n// target.solution(30);\n }", "title": "" }, { "docid": "70c42a2679213cacbb0b37826da6b684", "score": "0.5652208", "text": "@Test(timeout = 4000)\n public void test146() throws Throwable {\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixHTML0);\n resultMatrixHTML0.TIE_STRING = \"(\";\n resultMatrixLatex0.getStdDev(0, 25);\n resultMatrixLatex0.setStdDev(3911, 85, 0);\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(69, 3911);\n }", "title": "" }, { "docid": "0517a94046479163088e15a483aa1524", "score": "0.56379503", "text": "@Test(timeout = 4000)\n public void test17() throws Throwable {\n Discretize discretize0 = new Discretize(\"EMPTY_NOMINAL_CLASS\");\n double[][] doubleArray0 = new double[6][6];\n double[] doubleArray1 = new double[4];\n doubleArray1[0] = (-3648.0);\n doubleArray1[1] = (-1054.73506792072);\n doubleArray1[2] = (-2285.17536);\n doubleArray1[3] = 0.0;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[7];\n doubleArray2[0] = (-1054.73506792072);\n doubleArray2[1] = (-3648.0);\n doubleArray2[2] = (-1054.73506792072);\n doubleArray2[3] = 0.0;\n doubleArray2[4] = (-3648.0);\n doubleArray2[5] = (-1054.73506792072);\n doubleArray2[6] = 0.0;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[6];\n doubleArray3[0] = (-2285.17536);\n doubleArray3[1] = (-2285.17536);\n doubleArray3[2] = (-3648.0);\n doubleArray3[3] = (-1054.73506792072);\n doubleArray3[4] = (-2285.17536);\n doubleArray3[5] = (-1054.73506792072);\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[4];\n doubleArray4[0] = (-3648.0);\n doubleArray4[1] = (-1062.620979);\n doubleArray4[2] = (-1054.73506792072);\n doubleArray4[3] = (-2285.17536);\n doubleArray0[3] = doubleArray4;\n double[] doubleArray5 = new double[6];\n doubleArray5[0] = 0.0;\n doubleArray5[1] = (-3648.0);\n doubleArray5[2] = (-1062.620979);\n doubleArray5[3] = (-3648.0);\n doubleArray5[4] = (-1054.73506792072);\n doubleArray5[5] = (-1062.620979);\n doubleArray0[4] = doubleArray5;\n double[] doubleArray6 = new double[3];\n doubleArray6[0] = (-3648.0);\n doubleArray6[1] = (-2285.17536);\n doubleArray6[2] = Double.NaN;\n doubleArray0[5] = doubleArray6;\n discretize0.m_CutPoints = doubleArray0;\n // Undeclared exception!\n try { \n discretize0.getCutPoints((-2134061872));\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -2134061872\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "629b3174174569c5a4cba37d18168b56", "score": "0.563563", "text": "@Test(timeout = 4000)\n public void test041() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(1, 0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertNotNull(resultMatrixSignificance0);\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n \n int[] intArray0 = new int[4];\n intArray0[0] = 0;\n intArray0[1] = 0;\n intArray0[2] = 0;\n intArray0[3] = 0;\n int[] intArray1 = new int[7];\n assertFalse(intArray1.equals((Object)intArray0));\n \n intArray1[0] = 1;\n intArray1[2] = 2;\n intArray1[4] = 0;\n intArray1[5] = 1;\n intArray0[3] = 2;\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n \n String[] stringArray0 = new String[2];\n stringArray0[0] = \"\";\n stringArray0[1] = \" \";\n resultMatrixGnuPlot0.m_ColNames = stringArray0;\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getColCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n \n resultMatrixGnuPlot0.setRowName(0, \"\");\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getColCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(0, 1);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertNotNull(resultMatrixCSV0);\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getColCount());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n \n int[] intArray2 = new int[1];\n assertFalse(intArray2.equals((Object)intArray0));\n assertFalse(intArray2.equals((Object)intArray1));\n \n intArray2[0] = (-358);\n resultMatrixCSV0.setRowOrder(intArray2);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(intArray2.equals((Object)intArray0));\n assertFalse(intArray2.equals((Object)intArray1));\n assertNotSame(intArray2, intArray0);\n assertNotSame(intArray2, intArray1);\n assertEquals(1, intArray2.length);\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getColCount());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertArrayEquals(new int[] {(-358)}, intArray2);\n \n String string0 = resultMatrixCSV0.globalInfo();\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", string0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertNotNull(string0);\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getColCount());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n \n boolean boolean0 = resultMatrixGnuPlot0.getRowHidden(2);\n assertFalse(boolean0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getColCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n \n boolean boolean1 = resultMatrixSignificance0.isStdDev(1);\n assertFalse(boolean1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertTrue(boolean1 == boolean0);\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n }", "title": "" }, { "docid": "a2559d87cc5cfaad0a84ce9cc2a00ded", "score": "0.5633371", "text": "@Test(timeout = 4000)\n public void test166() throws Throwable {\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixHTML0);\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(2, 0);\n int int0 = resultMatrixLatex0.getMeanWidth();\n assertEquals(25, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(0, int0);\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n }", "title": "" }, { "docid": "b9f7a864fcaa01cc9e1dad2397d6326a", "score": "0.5623473", "text": "@Test(timeout = 4000)\n public void test193() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n resultMatrixGnuPlot0.clearRanking();\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixGnuPlot0);\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixLatex0);\n String[] stringArray0 = new String[6];\n stringArray0[0] = \"\";\n stringArray0[1] = \" \";\n resultMatrixLatex0.setMeanWidth((-1411));\n stringArray0[2] = \"\";\n stringArray0[3] = \"CfC%{OiEL.Z6=\";\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixHTML0);\n // Undeclared exception!\n try { \n resultMatrixSignificance0.toStringHeader();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "title": "" }, { "docid": "e20d92a0b2c78e207843f140985c38be", "score": "0.56021523", "text": "@Test(timeout = 4000)\n public void test27() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertNotNull(resultMatrixSignificance0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n \n int int0 = resultMatrixSignificance0.getDefaultColNameWidth();\n assertEquals(0, int0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n \n resultMatrixSignificance0.setMeanPrec(1);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n \n String string0 = resultMatrixSignificance0.toStringKey();\n assertEquals(\"Key:\\n(1) col0\\n\", string0);\n assertNotNull(string0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n \n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixSignificance0);\n assertNotNull(resultMatrixHTML0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(40, resultMatrixHTML0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(1, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n \n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixHTML0);\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(40, resultMatrixHTML0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(1, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(40, resultMatrixGnuPlot0.getRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n \n resultMatrixHTML0.assign(resultMatrixGnuPlot0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(40, resultMatrixHTML0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(1, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(40, resultMatrixGnuPlot0.getRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n \n ResultMatrixHTML resultMatrixHTML1 = new ResultMatrixHTML();\n assertNotNull(resultMatrixHTML1);\n assertFalse(resultMatrixHTML1.equals((Object)resultMatrixHTML0));\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML1.meanPrecTipText());\n assertEquals(0, resultMatrixHTML1.getDefaultColNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML1.printRowNamesTipText());\n assertFalse(resultMatrixHTML1.getDefaultRemoveFilterName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML1.rowNameWidthTipText());\n assertTrue(resultMatrixHTML1.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixHTML1.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML1.countWidthTipText());\n assertFalse(resultMatrixHTML1.getDefaultShowStdDev());\n assertEquals(0, resultMatrixHTML1.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixHTML1.getVisibleColCount());\n assertEquals(0, resultMatrixHTML1.getCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML1.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML1.colNameWidthTipText());\n assertTrue(resultMatrixHTML1.getPrintRowNames());\n assertEquals(2, resultMatrixHTML1.getDefaultMeanPrec());\n assertEquals(2, resultMatrixHTML1.getDefaultStdDevPrec());\n assertFalse(resultMatrixHTML1.getDefaultShowAverage());\n assertEquals(0, resultMatrixHTML1.getDefaultMeanWidth());\n assertFalse(resultMatrixHTML1.getDefaultEnumerateRowNames());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML1.globalInfo());\n assertEquals(\"HTML\", resultMatrixHTML1.getDisplayName());\n assertEquals(0, resultMatrixHTML1.getDefaultStdDevWidth());\n assertFalse(resultMatrixHTML1.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML1.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixHTML1.getColCount());\n assertEquals(2, resultMatrixHTML1.getStdDevPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML1.showStdDevTipText());\n assertFalse(resultMatrixHTML1.getShowStdDev());\n assertFalse(resultMatrixHTML1.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML1.stdDevWidthTipText());\n assertEquals(0, resultMatrixHTML1.getSignificanceWidth());\n assertTrue(resultMatrixHTML1.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixHTML1.getRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML1.meanWidthTipText());\n assertFalse(resultMatrixHTML1.getPrintColNames());\n assertFalse(resultMatrixHTML1.getEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML1.significanceWidthTipText());\n assertEquals(0, resultMatrixHTML1.getDefaultCountWidth());\n assertEquals(0, resultMatrixHTML1.getStdDevWidth());\n assertEquals(1, resultMatrixHTML1.getRowCount());\n assertEquals(25, resultMatrixHTML1.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML1.getMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML1.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML1.stdDevPrecTipText());\n assertTrue(resultMatrixHTML1.getEnumerateColNames());\n assertEquals(2, resultMatrixHTML1.getMeanPrec());\n assertFalse(resultMatrixHTML1.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML1.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML1.getColNameWidth());\n \n int[] intArray0 = new int[8];\n intArray0[0] = 0;\n intArray0[1] = 0;\n intArray0[2] = 783;\n intArray0[3] = 0;\n intArray0[4] = (-2346);\n intArray0[5] = 0;\n intArray0[6] = 2;\n intArray0[7] = (-3604);\n resultMatrixHTML0.setColOrder(intArray0);\n assertFalse(resultMatrixHTML0.equals((Object)resultMatrixHTML1));\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(40, resultMatrixHTML0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(1, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertNotSame(resultMatrixHTML0, resultMatrixHTML1);\n assertArrayEquals(new int[] {0, 0, 783, 0, (-2346), 0, 2, (-3604)}, intArray0);\n assertEquals(8, intArray0.length);\n \n resultMatrixHTML1.setColName(1, \"-show-avg\");\n assertFalse(resultMatrixHTML1.equals((Object)resultMatrixHTML0));\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML1.meanPrecTipText());\n assertEquals(0, resultMatrixHTML1.getDefaultColNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML1.printRowNamesTipText());\n assertFalse(resultMatrixHTML1.getDefaultRemoveFilterName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML1.rowNameWidthTipText());\n assertTrue(resultMatrixHTML1.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixHTML1.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML1.countWidthTipText());\n assertFalse(resultMatrixHTML1.getDefaultShowStdDev());\n assertEquals(0, resultMatrixHTML1.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixHTML1.getVisibleColCount());\n assertEquals(0, resultMatrixHTML1.getCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML1.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML1.colNameWidthTipText());\n assertTrue(resultMatrixHTML1.getPrintRowNames());\n assertEquals(2, resultMatrixHTML1.getDefaultMeanPrec());\n assertEquals(2, resultMatrixHTML1.getDefaultStdDevPrec());\n assertFalse(resultMatrixHTML1.getDefaultShowAverage());\n assertEquals(0, resultMatrixHTML1.getDefaultMeanWidth());\n assertFalse(resultMatrixHTML1.getDefaultEnumerateRowNames());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML1.globalInfo());\n assertEquals(\"HTML\", resultMatrixHTML1.getDisplayName());\n assertEquals(0, resultMatrixHTML1.getDefaultStdDevWidth());\n assertFalse(resultMatrixHTML1.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML1.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixHTML1.getColCount());\n assertEquals(2, resultMatrixHTML1.getStdDevPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML1.showStdDevTipText());\n assertFalse(resultMatrixHTML1.getShowStdDev());\n assertFalse(resultMatrixHTML1.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML1.stdDevWidthTipText());\n assertEquals(0, resultMatrixHTML1.getSignificanceWidth());\n assertTrue(resultMatrixHTML1.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixHTML1.getRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML1.meanWidthTipText());\n assertFalse(resultMatrixHTML1.getPrintColNames());\n assertFalse(resultMatrixHTML1.getEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML1.significanceWidthTipText());\n assertEquals(0, resultMatrixHTML1.getDefaultCountWidth());\n assertEquals(0, resultMatrixHTML1.getStdDevWidth());\n assertEquals(1, resultMatrixHTML1.getRowCount());\n assertEquals(25, resultMatrixHTML1.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML1.getMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML1.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML1.stdDevPrecTipText());\n assertTrue(resultMatrixHTML1.getEnumerateColNames());\n assertEquals(2, resultMatrixHTML1.getMeanPrec());\n assertFalse(resultMatrixHTML1.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML1.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML1.getColNameWidth());\n assertNotSame(resultMatrixHTML1, resultMatrixHTML0);\n \n resultMatrixHTML1.setColOrder(intArray0);\n assertFalse(resultMatrixHTML1.equals((Object)resultMatrixHTML0));\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML1.meanPrecTipText());\n assertEquals(0, resultMatrixHTML1.getDefaultColNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML1.printRowNamesTipText());\n assertFalse(resultMatrixHTML1.getDefaultRemoveFilterName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML1.rowNameWidthTipText());\n assertTrue(resultMatrixHTML1.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixHTML1.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML1.countWidthTipText());\n assertFalse(resultMatrixHTML1.getDefaultShowStdDev());\n assertEquals(0, resultMatrixHTML1.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixHTML1.getVisibleColCount());\n assertEquals(0, resultMatrixHTML1.getCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML1.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML1.colNameWidthTipText());\n assertTrue(resultMatrixHTML1.getPrintRowNames());\n assertEquals(2, resultMatrixHTML1.getDefaultMeanPrec());\n assertEquals(2, resultMatrixHTML1.getDefaultStdDevPrec());\n assertFalse(resultMatrixHTML1.getDefaultShowAverage());\n assertEquals(0, resultMatrixHTML1.getDefaultMeanWidth());\n assertFalse(resultMatrixHTML1.getDefaultEnumerateRowNames());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML1.globalInfo());\n assertEquals(\"HTML\", resultMatrixHTML1.getDisplayName());\n assertEquals(0, resultMatrixHTML1.getDefaultStdDevWidth());\n assertFalse(resultMatrixHTML1.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML1.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixHTML1.getColCount());\n assertEquals(2, resultMatrixHTML1.getStdDevPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML1.showStdDevTipText());\n assertFalse(resultMatrixHTML1.getShowStdDev());\n assertFalse(resultMatrixHTML1.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML1.stdDevWidthTipText());\n assertEquals(0, resultMatrixHTML1.getSignificanceWidth());\n assertTrue(resultMatrixHTML1.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixHTML1.getRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML1.meanWidthTipText());\n assertFalse(resultMatrixHTML1.getPrintColNames());\n assertFalse(resultMatrixHTML1.getEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML1.significanceWidthTipText());\n assertEquals(0, resultMatrixHTML1.getDefaultCountWidth());\n assertEquals(0, resultMatrixHTML1.getStdDevWidth());\n assertEquals(1, resultMatrixHTML1.getRowCount());\n assertEquals(25, resultMatrixHTML1.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML1.getMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML1.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML1.stdDevPrecTipText());\n assertTrue(resultMatrixHTML1.getEnumerateColNames());\n assertEquals(2, resultMatrixHTML1.getMeanPrec());\n assertFalse(resultMatrixHTML1.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML1.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML1.getColNameWidth());\n assertNotSame(resultMatrixHTML1, resultMatrixHTML0);\n assertArrayEquals(new int[] {0, 0, 783, 0, (-2346), 0, 2, (-3604)}, intArray0);\n assertEquals(8, intArray0.length);\n }", "title": "" }, { "docid": "92284113ee58595c4014c91cd12cc285", "score": "0.5601399", "text": "@Test(timeout = 4000)\n public void test193() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n resultMatrixLatex0.clearRanking();\n double[] doubleArray0 = new double[0];\n resultMatrixLatex0.setEnumerateColNames(true);\n resultMatrixLatex0.removeFilterName(\" statistically significant improvement or degradation}\");\n resultMatrixLatex0.m_Counts = doubleArray0;\n resultMatrixLatex0.getRowName((-3963));\n resultMatrixLatex0.setPrintColNames(true);\n resultMatrixLatex0.clearHeader();\n resultMatrixLatex0.setColHidden(0, false);\n resultMatrixLatex0.m_StdDev = null;\n // Undeclared exception!\n try { \n resultMatrixLatex0.setCount(0, 0.0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "title": "" }, { "docid": "a0a2b3cf9e4f46d38636166fab5e5adc", "score": "0.5597417", "text": "@Test(timeout = 4000)\n public void test20() throws Throwable {\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"tm\\\"iK7~\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.m_Header = instances0;\n VotedPerceptron votedPerceptron0 = new VotedPerceptron();\n CVParameterSelection cVParameterSelection0 = new CVParameterSelection();\n cVParameterSelection0.setClassifier(votedPerceptron0);\n Evaluation.makeOptionString(votedPerceptron0, false);\n Evaluation evaluation1 = new Evaluation(instances0);\n evaluation1.getHeader();\n Evaluation evaluation2 = new Evaluation(evaluation0.m_Header);\n String string0 = evaluation0.toMatrixString();\n assertEquals(\"=== Confusion Matrix ===\\n\\n a b <-- classified as\\n 0 0 | a = class1\\n 0 0 | b = class2\\n\", string0);\n \n double double0 = Evaluation.MIN_SF_PROB;\n evaluation2.numInstances();\n evaluation1.rootMeanPriorSquaredError();\n double double1 = evaluation1.weightedAreaUnderPRC();\n assertEquals(Double.NaN, double1, 0.01);\n assertEquals(0.0, evaluation1.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "ee73cb91df29435fab1313bb7a448295", "score": "0.559488", "text": "@Test(timeout = 4000)\n public void test054() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertNotNull(resultMatrixSignificance0);\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n \n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(2, 0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertNotNull(resultMatrixPlainText0);\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getRowCount());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getColCount());\n assertEquals(2, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n \n resultMatrixPlainText0.clearSummary();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getRowCount());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getColCount());\n assertEquals(2, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n \n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(2, 0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(2, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n \n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot();\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n assertNotNull(resultMatrixGnuPlot1);\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot1.getRowNameWidth());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot1.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n \n resultMatrixGnuPlot1.setRowName(3, (String) null);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n assertNotSame(resultMatrixGnuPlot1, resultMatrixGnuPlot0);\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot1.getRowNameWidth());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot1.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(1, 0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertNotNull(resultMatrixCSV0);\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getRowCount());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n \n int[] intArray0 = new int[5];\n intArray0[0] = 1;\n intArray0[1] = 0;\n intArray0[2] = (-358);\n intArray0[3] = 0;\n intArray0[4] = 1;\n resultMatrixCSV0.setRowOrder(intArray0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(5, intArray0.length);\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getRowCount());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertArrayEquals(new int[] {1, 0, (-358), 0, 1}, intArray0);\n \n String string0 = resultMatrixCSV0.globalInfo();\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", string0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertNotNull(string0);\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getRowCount());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n \n boolean boolean0 = resultMatrixGnuPlot0.getRowHidden(0);\n assertFalse(boolean0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixGnuPlot0.equals((Object)resultMatrixGnuPlot1));\n assertNotSame(resultMatrixGnuPlot0, resultMatrixGnuPlot1);\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(2, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n }", "title": "" }, { "docid": "b44da534667de2f40ba463cd6a6479c9", "score": "0.5589334", "text": "@Test(timeout = 4000)\n public void test13() throws Throwable {\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"tm\\\"iK7~\");\n Evaluation evaluation0 = new Evaluation(instances0);\n testInstances0.generate(\".arff\");\n evaluation0.m_Header = instances0;\n double[][] doubleArray0 = new double[0][8];\n evaluation0.m_ConfusionMatrix = doubleArray0;\n char[] charArray0 = new char[1];\n charArray0[0] = 'F';\n evaluation0.KBMeanInformation();\n CVParameterSelection cVParameterSelection0 = new CVParameterSelection();\n LWL lWL0 = new LWL();\n cVParameterSelection0.setClassifier(lWL0);\n Evaluation.makeOptionString(lWL0, false);\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances1 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation1 = new Evaluation(instances1);\n evaluation1.getHeader();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n Evaluation evaluation2 = new Evaluation(instances1);\n evaluation1.toCumulativeMarginDistributionString();\n evaluation1.meanAbsoluteError();\n evaluation2.SFMeanEntropyGain();\n OneR oneR0 = new OneR();\n try { \n Evaluation.wekaStaticWrapper(oneR0, \"setNumFolds\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.classifiers.rules.OneR$OneRRule\", e);\n }\n }", "title": "" }, { "docid": "f159db975bcb491ae265c9dc120e9601", "score": "0.5587882", "text": "public static void main(String[] args) throws Exception {\n\t\t\n\t\tFile csvFile = new File(\"featureModel/busybox.dimacs.ca1.csv\");\n\t\tFile srcFile = new File(\"bugs/busybox/archival/tar.c\");\n\t\tList<List<String>> samplings = new ConstrainedOneDisabledOnewise().getSamples(srcFile, csvFile);\n\t\t\n\t\tfor (List<String> s : samplings){\n\t\t\t//System.out.println(tester.getNumberOfMacrosEnabled(s));\n\t\t\tSystem.out.println(s);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "79ded9507df6089f6214f481c36bd60d", "score": "0.55835015", "text": "@Test(timeout = 4000)\n public void test128() throws Throwable {\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n int[][] intArray0 = new int[4][4];\n int[] intArray1 = new int[7];\n intArray1[0] = 0;\n intArray1[1] = 2;\n intArray1[2] = 2;\n intArray1[3] = 2;\n intArray1[4] = 1;\n intArray1[5] = 0;\n intArray1[6] = (-246);\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(312, 1);\n resultMatrixSignificance0.setSummary(intArray0, intArray0);\n resultMatrixSignificance0.setPrintRowNames(true);\n resultMatrixSignificance0.getDisplayName();\n resultMatrixSignificance0.getStdDev(1, 2);\n resultMatrixSignificance0.getVisibleColCount();\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n \n resultMatrixHTML0.getCount(6);\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n }", "title": "" }, { "docid": "2e15b2e6c8967c0c44a27ab259eb5a5d", "score": "0.55787903", "text": "@Test(timeout = 4000)\n public void test20() throws Throwable {\n JRip jRip0 = new JRip();\n DecisionTable decisionTable0 = new DecisionTable();\n Instances instances0 = decisionTable0.m_dtInstances;\n Attribute attribute0 = new Attribute(\"\\\"4F/Mq5/c|)\", 116);\n Attribute attribute1 = new Attribute(\"@attribute\", \"d88\");\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute1);\n JRip.NominalAntd jRip_NominalAntd1 = (JRip.NominalAntd)jRip_NominalAntd0.copy();\n assertEquals(0.0, jRip_NominalAntd1.getMaxInfoGain(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd1.getCover(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd1.getAccuRate(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd1.getAccu(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd1.getAttrValue(), 0.01);\n \n JRip jRip1 = new JRip();\n String string0 = jRip1.minNoTipText();\n assertEquals(\"The minimum total weight of the instances in a rule.\", string0);\n \n String string1 = jRip0.debugTipText();\n assertEquals(\"Whether debug information is output to the console.\", string1);\n \n boolean boolean0 = jRip0.getCheckErrorRate();\n assertTrue(boolean0);\n \n String[] stringArray0 = jRip1.getOptions();\n assertEquals(2, jRip1.getOptimizations());\n assertEquals(1L, jRip1.getSeed());\n assertTrue(jRip1.getUsePruning());\n assertFalse(jRip1.getDebug());\n assertEquals(11, stringArray0.length);\n assertEquals(2.0, jRip1.getMinNo(), 0.01);\n assertEquals(3, jRip1.getFolds());\n }", "title": "" }, { "docid": "79a87e110e03a92466919c608a21a033", "score": "0.55742484", "text": "@Test\n public void improveCostTest() {\n // TODO: test improveCost\n }", "title": "" }, { "docid": "58feffee2f3ebbadf5ef3039358f61bf", "score": "0.5573658", "text": "private static double entropy(int[] data) {\n\t\tint sum=0;\n\t\tdouble entropy = 0;\n\t\tfor (int x : data) {\n\t\t\tsum += x;\n\t\t\tentropy -= x * Math.log(x);\n\t\t}\n\t\tentropy += sum * Math.log(sum);\n\t\treturn entropy;\n\t}", "title": "" }, { "docid": "ffd331a681428f40b851c278e572249d", "score": "0.55701643", "text": "@Test(timeout = 4000)\n public void test015() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertNotNull(resultMatrixSignificance0);\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n \n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(2, 0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertNotNull(resultMatrixPlainText0);\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getRowCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(2, resultMatrixPlainText0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n \n resultMatrixPlainText0.clearSummary();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getRowCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(2, resultMatrixPlainText0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixPlainText0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertNotNull(resultMatrixLatex0);\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getRowCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(2, resultMatrixPlainText0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(0, resultMatrixLatex0.getRowCount());\n assertEquals(5, resultMatrixLatex0.getCountWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(2, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertTrue(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(2, resultMatrixLatex0.getVisibleColCount());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(25, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n \n String string0 = resultMatrixLatex0.padString(\"`tptE~4dE!l$&j$b\", 0, false);\n assertEquals(\"`tptE~4dE!l$&j$b\", string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertNotNull(string0);\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getRowCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(2, resultMatrixPlainText0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(0, resultMatrixLatex0.getRowCount());\n assertEquals(5, resultMatrixLatex0.getCountWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(2, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertTrue(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(2, resultMatrixLatex0.getVisibleColCount());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(25, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(resultMatrixPlainText0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertNotNull(resultMatrixCSV0);\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getRowCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(2, resultMatrixPlainText0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getVisibleRowCount());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(5, resultMatrixCSV0.getCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixCSV0.getPrintColNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getRowCount());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixCSV0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n \n boolean boolean0 = resultMatrixCSV0.getDefaultEnumerateColNames();\n assertTrue(boolean0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getRowCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(2, resultMatrixPlainText0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getVisibleRowCount());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(5, resultMatrixCSV0.getCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixCSV0.getPrintColNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getRowCount());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixCSV0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n \n String[] stringArray0 = new String[3];\n stringArray0[0] = \"(\";\n stringArray0[1] = \")\";\n stringArray0[2] = null;\n ResultMatrixCSV.main(stringArray0);\n assertEquals(3, stringArray0.length);\n \n resultMatrixLatex0.setColName(0, \")\");\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getRowCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(2, resultMatrixPlainText0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(0, resultMatrixLatex0.getRowCount());\n assertEquals(5, resultMatrixLatex0.getCountWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(2, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertTrue(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(2, resultMatrixLatex0.getVisibleColCount());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(25, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n \n int int0 = resultMatrixLatex0.getSignificanceCount(0, (-752));\n assertEquals(0, int0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getRowCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(2, resultMatrixPlainText0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(0, resultMatrixLatex0.getRowCount());\n assertEquals(5, resultMatrixLatex0.getCountWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(2, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertTrue(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(2, resultMatrixLatex0.getVisibleColCount());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(25, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n \n ResultMatrixLatex resultMatrixLatex1 = new ResultMatrixLatex();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixLatex1.equals((Object)resultMatrixLatex0));\n assertNotNull(resultMatrixLatex1);\n assertTrue(resultMatrixLatex1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex1.showAverageTipText());\n assertFalse(resultMatrixLatex1.getDefaultPrintColNames());\n assertFalse(resultMatrixLatex1.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex1.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex1.countWidthTipText());\n assertFalse(resultMatrixLatex1.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex1.printRowNamesTipText());\n assertEquals(0, resultMatrixLatex1.getCountWidth());\n assertFalse(resultMatrixLatex1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex1.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex1.colNameWidthTipText());\n assertEquals(2, resultMatrixLatex1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex1.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixLatex1.getVisibleColCount());\n assertEquals(2, resultMatrixLatex1.getDefaultMeanPrec());\n assertEquals(1, resultMatrixLatex1.getVisibleRowCount());\n assertFalse(resultMatrixLatex1.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex1.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex1.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex1.getStdDevPrec());\n assertEquals(1, resultMatrixLatex1.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateRowNamesTipText());\n assertTrue(resultMatrixLatex1.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertFalse(resultMatrixLatex1.getPrintColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex1.getDisplayName());\n assertEquals(1, resultMatrixLatex1.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex1.meanWidthTipText());\n assertFalse(resultMatrixLatex1.getEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex1.showStdDevTipText());\n assertTrue(resultMatrixLatex1.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex1.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultCountWidth());\n assertEquals(0, resultMatrixLatex1.getRowNameWidth());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex1.globalInfo());\n assertEquals(0, resultMatrixLatex1.getStdDevWidth());\n assertFalse(resultMatrixLatex1.getShowAverage());\n assertEquals(0, resultMatrixLatex1.getDefaultRowNameWidth());\n assertTrue(resultMatrixLatex1.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex1.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex1.printColNamesTipText());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n assertFalse(resultMatrixLatex1.getShowStdDev());\n assertEquals(2, resultMatrixLatex1.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex1.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex1.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex1.rowNameWidthTipText());\n \n String string1 = resultMatrixLatex1.toStringMatrix();\n assertEquals(\"\\\\begin{table}[thb]\\n\\\\caption{\\\\label{labelname}Table Caption}\\n\\\\footnotesize\\n{\\\\centering \\\\begin{tabular}{lr}\\n\\\\\\\\\\n\\\\hline\\nDataset & (1)\\\\\\\\\\n\\\\hline\\nrow0 & \\\\\\\\\\n\\\\hline\\n\\\\multicolumn{2}{c}{$\\\\circ$, $\\\\bullet$ statistically significant improvement or degradation}\\\\\\\\\\n\\\\end{tabular} \\\\footnotesize \\\\par}\\n\\\\end{table}\\n\", string1);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixLatex1.equals((Object)resultMatrixLatex0));\n assertFalse(string1.equals((Object)string0));\n assertNotSame(resultMatrixLatex1, resultMatrixLatex0);\n assertNotNull(string1);\n assertTrue(resultMatrixLatex1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex1.showAverageTipText());\n assertFalse(resultMatrixLatex1.getDefaultPrintColNames());\n assertFalse(resultMatrixLatex1.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex1.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex1.countWidthTipText());\n assertFalse(resultMatrixLatex1.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex1.printRowNamesTipText());\n assertEquals(0, resultMatrixLatex1.getCountWidth());\n assertFalse(resultMatrixLatex1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex1.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex1.colNameWidthTipText());\n assertEquals(2, resultMatrixLatex1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex1.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixLatex1.getVisibleColCount());\n assertEquals(2, resultMatrixLatex1.getDefaultMeanPrec());\n assertEquals(1, resultMatrixLatex1.getVisibleRowCount());\n assertFalse(resultMatrixLatex1.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex1.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex1.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex1.getStdDevPrec());\n assertEquals(1, resultMatrixLatex1.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateRowNamesTipText());\n assertTrue(resultMatrixLatex1.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertFalse(resultMatrixLatex1.getPrintColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex1.getDisplayName());\n assertEquals(1, resultMatrixLatex1.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex1.meanWidthTipText());\n assertFalse(resultMatrixLatex1.getEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex1.showStdDevTipText());\n assertTrue(resultMatrixLatex1.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex1.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultCountWidth());\n assertEquals(0, resultMatrixLatex1.getRowNameWidth());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex1.globalInfo());\n assertEquals(0, resultMatrixLatex1.getStdDevWidth());\n assertFalse(resultMatrixLatex1.getShowAverage());\n assertEquals(0, resultMatrixLatex1.getDefaultRowNameWidth());\n assertTrue(resultMatrixLatex1.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex1.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex1.printColNamesTipText());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n assertFalse(resultMatrixLatex1.getShowStdDev());\n assertEquals(2, resultMatrixLatex1.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex1.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex1.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex1.rowNameWidthTipText());\n \n // Undeclared exception!\n try { \n resultMatrixLatex0.toStringHeader();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "title": "" }, { "docid": "270f8e66b9b7ef59ca976f1300370963", "score": "0.5568786", "text": "@Test(timeout = 4000)\n public void test23() throws Throwable {\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"distributionForInstance\");\n Evaluation evaluation0 = new Evaluation(instances0);\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n TestInstances testInstances1 = new TestInstances();\n testInstances1.setNumRelationalString((-2));\n evaluation0.pctIncorrect();\n evaluation0.m_NoPriors = true;\n evaluation0.toSummaryString(\"distributionForInstance\", true);\n evaluation0.pctUnclassified();\n try { \n evaluation0.correlationCoefficient();\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Can't compute correlation coefficient: class is nominal!\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "c85b65a0fd4a9438d698cbc5ccde2de0", "score": "0.5568283", "text": "@Test(timeout = 4000)\n public void test046() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(1, 0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertNotNull(resultMatrixSignificance0);\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n \n int[][] intArray0 = new int[3][2];\n resultMatrixSignificance0.m_NonSigWins = intArray0;\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n \n int[] intArray1 = new int[4];\n intArray1[0] = 0;\n intArray1[1] = 0;\n intArray1[2] = 0;\n intArray1[3] = 0;\n intArray0[0] = intArray1;\n int[] intArray2 = new int[7];\n assertFalse(intArray2.equals((Object)intArray1));\n \n intArray2[0] = 1;\n intArray2[1] = 1;\n intArray2[2] = 2;\n intArray2[3] = 2;\n intArray2[4] = 0;\n String string0 = resultMatrixSignificance0.getRowName(2138);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertNull(string0);\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n \n intArray2[6] = 2;\n intArray0[1] = intArray2;\n int[] intArray3 = new int[6];\n assertFalse(intArray3.equals((Object)intArray1));\n assertFalse(intArray3.equals((Object)intArray2));\n \n intArray3[0] = 2;\n intArray3[1] = 0;\n intArray3[2] = 0;\n intArray3[3] = 0;\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertNotNull(resultMatrixLatex0);\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n \n resultMatrixLatex0.setStdDev(1, (-2032), 4.8);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n }", "title": "" }, { "docid": "08620d3bb5f5bda8a66d9fb8206e0ad6", "score": "0.55655485", "text": "@Test(timeout = 4000)\n public void test113() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(1, 0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertNotNull(resultMatrixSignificance0);\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n \n int[][] intArray0 = new int[3][2];\n int[] intArray1 = new int[4];\n intArray1[0] = 0;\n intArray1[1] = 0;\n intArray1[2] = 0;\n intArray1[3] = 0;\n intArray0[0] = intArray1;\n int[] intArray2 = new int[7];\n assertFalse(intArray2.equals((Object)intArray1));\n \n intArray2[0] = 1;\n intArray2[1] = 1;\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(0, 0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertNotNull(resultMatrixHTML0);\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(0, resultMatrixHTML0.getColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getVisibleRowCount());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixHTML0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(0, resultMatrixHTML0.getVisibleColCount());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n \n String string0 = resultMatrixHTML0.toStringKey();\n assertEquals(\"<table border=\\\"1\\\" cellpadding=\\\"3\\\" cellspacing=\\\"0\\\">\\n <tr><td colspan=\\\"2\\\"><b>Key</b></td></tr>\\n</table>\\n\", string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertNotNull(string0);\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(0, resultMatrixHTML0.getColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getVisibleRowCount());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixHTML0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(0, resultMatrixHTML0.getVisibleColCount());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n \n double double0 = resultMatrixHTML0.getAverage(4);\n assertEquals(0.0, double0, 0.01);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(0, resultMatrixHTML0.getColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getVisibleRowCount());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixHTML0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(0, resultMatrixHTML0.getVisibleColCount());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n \n int int0 = resultMatrixSignificance0.getColNameWidth();\n assertEquals(0, int0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n \n boolean boolean0 = resultMatrixHTML0.getColHidden((-794));\n assertFalse(boolean0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(0, resultMatrixHTML0.getColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getVisibleRowCount());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixHTML0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(0, resultMatrixHTML0.getVisibleColCount());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n \n ResultMatrixCSV resultMatrixCSV0 = null;\n try {\n resultMatrixCSV0 = new ResultMatrixCSV(1, (-3087));\n fail(\"Expecting exception: NegativeArraySizeException\");\n \n } catch(NegativeArraySizeException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "title": "" }, { "docid": "7abdc03eada59f07458dacb67e24b9e4", "score": "0.5562738", "text": "@Test(timeout = 4000)\n public void test16() throws Throwable {\n byte[] byteArray0 = new byte[34];\n HashWrapper hashWrapper0 = new HashWrapper(byteArray0);\n MockFile mockFile0 = new MockFile(\"1^%8|FrkXc\", \"1^%8|FrkXc\");\n URL uRL0 = mockFile0.toURL();\n LightWeightSeedManager lightWeightSeedManager0 = LightWeightSeedManager.getSingleton();\n LightWeightSeed lightWeightSeed0 = new LightWeightSeed(lightWeightSeedManager0, \"1^%8|FrkXc\", hashWrapper0, uRL0, mockFile0, (LightWeightSeedAdapter) null);\n lightWeightSeed0.start();\n lightWeightSeed0.stop();\n }", "title": "" }, { "docid": "2d810c5d5d65045b493d61d9dab3b8ba", "score": "0.5561018", "text": "@Test(timeout = 4000)\n public void test096() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertNotNull(resultMatrixLatex0);\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n \n String[] stringArray0 = new String[7];\n stringArray0[0] = \"$circ$\";\n stringArray0[1] = \")\";\n stringArray0[2] = \" \";\n resultMatrixLatex0.clear();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n \n String[][] stringArray1 = resultMatrixLatex0.toArray();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertNotNull(stringArray1);\n assertEquals(3, stringArray1.length);\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n \n int[] intArray0 = new int[3];\n intArray0[0] = (-2519);\n intArray0[1] = (-1064);\n intArray0[2] = 0;\n resultMatrixLatex0.m_RowOrder = intArray0;\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n \n stringArray0[3] = \"(\";\n resultMatrixLatex0.setEnumerateRowNames(false);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n \n stringArray0[4] = \"$\\bullet$\";\n resultMatrixLatex0.setShowAverage(false);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n \n stringArray0[5] = \"$\\bullet$\";\n stringArray0[6] = \"$\\bullet$\";\n resultMatrixLatex0.setOptions(stringArray0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(7, stringArray0.length);\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n \n int[] intArray1 = new int[1];\n assertFalse(intArray1.equals((Object)intArray0));\n \n intArray1[0] = 26;\n resultMatrixLatex0.m_ColOrder = intArray1;\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n \n double double0 = resultMatrixLatex0.getMean(26, 97);\n assertEquals(0.0, double0, 0.01);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n \n String[][] stringArray2 = resultMatrixLatex0.toArray();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(stringArray2.equals((Object)stringArray1));\n assertNotSame(stringArray2, stringArray1);\n assertNotNull(stringArray2);\n assertEquals(3, stringArray2.length);\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n \n int int0 = resultMatrixLatex0.getDefaultRowNameWidth();\n assertEquals(0, int0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n \n // Undeclared exception!\n try { \n resultMatrixLatex0.getColSize(stringArray2, 0, false, false);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "title": "" }, { "docid": "de85637d4ba7288bbfe026e9c2e0671d", "score": "0.5560231", "text": "@Test(timeout = 4000)\n public void test159() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixCSV0);\n String[] stringArray0 = resultMatrixSignificance0.getOptions();\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(18, stringArray0.length);\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n }", "title": "" }, { "docid": "aad4c13213078d0f11da88f0f368912d", "score": "0.5557356", "text": "@SuppressWarnings(\"unchecked\")\r\n private void generateTestcases(int p_size, int p_noiseLevel,\r\n int p_incompletenessLevel) {\r\n int p, i, j, r, ffc, max, one, zero;\r\n Random random;\r\n ArrayList<Integer> pos, pos2;\r\n int testcase[];\r\n\r\n p = this.phenotypeLength;\r\n i = 0;\r\n j = 0;\r\n r = 0;\r\n random = new Random();\r\n\r\n this.testCaseCount = p_size;\r\n this.testCases = new int[p_size][p];\r\n\r\n pos = new ArrayList<Integer>();\r\n for (i = p - 1; i >= 0; --i)\r\n pos.add(new Integer(i));\r\n\r\n for (i = 0; i < p_size; ++i) {\r\n testcase = new int[p];\r\n for (j = p - 1; j >= 0; --j)\r\n testcase[j] = (j ^ 1) & 1;\r\n\r\n pos2 = (ArrayList<Integer>) pos.clone();\r\n for (j = this.internalIncompletenessDifficultyLevel - 1; j >= 0; --j) {\r\n r = random.nextInt(pos2.size());\r\n testcase[pos2.get(r).intValue()] = 2;\r\n pos2.remove(r);\r\n }\r\n\r\n for (j = this.internalNoiseDifficultyLevel - 1; j >= 0; --j) {\r\n r = random.nextInt(pos2.size());\r\n testcase[pos2.get(r).intValue()] ^= 1;\r\n pos2.remove(r);\r\n }\r\n\r\n this.testCases[i] = testcase;\r\n }\r\n\r\n byte[] correctSolution = new byte[(this.phenotypeLength >> 3) + 1];\r\n for (i = correctSolution.length - 1; i >= 0; --i)\r\n correctSolution[i] = (byte) this.SOLUTION_VALUE;\r\n\r\n ffc = this.functionalObjectiveFunctionCount;\r\n this.functionalObjectiveFunctionCount = 1;\r\n\r\n this.minimumFitnessToSuccess = this\r\n .calculateFunctionalObjectivFitness(correctSolution, 0,\r\n this.phenotypeLength);\r\n \r\n max = 0;\r\n \r\n for( i = 0; i < p; ++i )\r\n {\r\n one = 0;\r\n zero = 0;\r\n \r\n for( j = 0; j < p_size; ++j )\r\n {\r\n if( this.testCases[j][i] == 1)\r\n ++one;\r\n else if( this.testCases[j][i] == 0 )\r\n ++zero;\r\n }\r\n \r\n max += Math.max(one, zero);\r\n }\r\n \r\n this.maximumFitness = max;\r\n\r\n this.functionalObjectiveFunctionCount = ffc;\r\n }", "title": "" }, { "docid": "bda057290628cb35827533acc71fc6e6", "score": "0.55571324", "text": "@Test(timeout = 4000)\n public void test029() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(1, 0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertNotNull(resultMatrixSignificance0);\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n \n int[][] intArray0 = new int[3][2];\n resultMatrixSignificance0.m_NonSigWins = intArray0;\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n \n int[] intArray1 = new int[4];\n intArray1[0] = 0;\n intArray1[1] = 0;\n intArray1[2] = 0;\n intArray1[3] = 0;\n intArray0[0] = intArray1;\n int[] intArray2 = new int[7];\n assertFalse(intArray2.equals((Object)intArray1));\n \n intArray2[0] = 1;\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(0, 2);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertNotNull(resultMatrixHTML0);\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getVisibleColCount());\n assertEquals(0, resultMatrixHTML0.getColCount());\n assertEquals(2, resultMatrixHTML0.getRowCount());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n \n resultMatrixSignificance0.setColNameWidth(2);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getColNameWidth());\n \n String string0 = resultMatrixHTML0.getSummaryTitle(3);\n assertEquals(\"d\", string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertNotNull(string0);\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getVisibleColCount());\n assertEquals(0, resultMatrixHTML0.getColCount());\n assertEquals(2, resultMatrixHTML0.getRowCount());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixHTML0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertNotNull(resultMatrixLatex0);\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getVisibleColCount());\n assertEquals(0, resultMatrixHTML0.getColCount());\n assertEquals(2, resultMatrixHTML0.getRowCount());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(25, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(2, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(2, resultMatrixLatex0.getRowCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixLatex0.getColCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n \n resultMatrixLatex0.setRemoveFilterName(false);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getVisibleColCount());\n assertEquals(0, resultMatrixHTML0.getColCount());\n assertEquals(2, resultMatrixHTML0.getRowCount());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(25, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(2, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(2, resultMatrixLatex0.getRowCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixLatex0.getColCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n \n resultMatrixHTML0.setRowHidden(2679, true);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getVisibleColCount());\n assertEquals(0, resultMatrixHTML0.getColCount());\n assertEquals(2, resultMatrixHTML0.getRowCount());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n \n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance();\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n assertNotNull(resultMatrixSignificance1);\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertEquals(1, resultMatrixSignificance1.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance1.getColCount());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance1.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n \n resultMatrixSignificance1.assign(resultMatrixLatex0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n assertNotSame(resultMatrixSignificance1, resultMatrixSignificance0);\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertEquals(0, resultMatrixSignificance1.getColCount());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertEquals(2, resultMatrixSignificance1.getVisibleRowCount());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(25, resultMatrixSignificance1.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertEquals(2, resultMatrixSignificance1.getRowCount());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getVisibleColCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getVisibleColCount());\n assertEquals(0, resultMatrixHTML0.getColCount());\n assertEquals(2, resultMatrixHTML0.getRowCount());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(25, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(2, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(2, resultMatrixLatex0.getRowCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixLatex0.getColCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n \n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(resultMatrixHTML0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertNotNull(resultMatrixPlainText0);\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getColCount());\n assertEquals(2, resultMatrixPlainText0.getRowCount());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getVisibleColCount());\n assertEquals(0, resultMatrixHTML0.getColCount());\n assertEquals(2, resultMatrixHTML0.getRowCount());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n \n boolean boolean0 = resultMatrixHTML0.getColHidden(3);\n assertFalse(boolean0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getVisibleColCount());\n assertEquals(0, resultMatrixHTML0.getColCount());\n assertEquals(2, resultMatrixHTML0.getRowCount());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n }", "title": "" }, { "docid": "3354d979b4e2012efef6208fcc22299f", "score": "0.5554719", "text": "@Test\n public void testRandom() {\n System.out.println(\"random\");\n double[] prob = {0.473646292, 0.206116725, 0.009308497, 0.227844687, 0.083083799};\n int[] sample = Math.random(prob, 300);\n double[][] hist = Histogram.histogram(sample, 5);\n double[] p = new double[5];\n for (int i = 0; i < 5; i++) {\n p[i] = hist[2][i] / 300.0;\n }\n assertTrue(Math.KullbackLeiblerDivergence(prob, p) < 0.05);\n }", "title": "" }, { "docid": "5b32dcc2e3ed4162ea926aa573693e63", "score": "0.55537534", "text": "private static void testFile(FileSystem fs, Path inPath, Path outPath, DataConverter converter, DecisionForest forest,\n\t\t\t\t\t Dataset dataset, Random rng) throws IOException {\n\t\t\t\t \n\t\t\t\t\tint tp = 0;\n\t\t\t\t\tint fp = 0;\n\t\t\t\t\tint fn = 0;\n\t\t\t\t\tint tn = 0;\n\t\t\t\t\tint total_test = 0;\n\t\t\t\t \n\t\t\t\t FSDataOutputStream ofile = null;\n\t\t\t\t \n\t\t\t\t if (outPath != null) {\n\t\t\t\t ofile = fs.create(outPath);\n\t\t\t\t }\n\n\t\t\t\t FSDataInputStream input = fs.open(inPath);\n\t\t\t\t \n\t\t\t\t\t// Start test\n\t\t\t\t\tDate teststart = new Date();\n\t\t\t\t\tSystem.out.println(\"Start Predict \" + teststart);\n\t\t\t\t \n\t\t\t\t try {\n\t\t\t\t\t System.out.println(\"begin scan\");\n\t\t\tScanner scanner = new Scanner(input);\n\t\t\t\t\t \n\t\t\t\t while (scanner.hasNextLine()) {\n\t\t\t\t String line = scanner.nextLine();\n//\t\t\t\t System.out.println(line);\n\t\t\t\t if (line.isEmpty()) {\n\t\t\t\t continue; // skip empty lines\n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t Instance instance = converter.convert(line);\n\t\t\t\t double prediction = forest.classify(dataset, rng, instance);\n\t\t\t\t double truelable = dataset.getLabel(instance);\n//\t\t\t\t System.out.println(\"truelable \" + truelable);\n//\t\t\t\t System.out.println(\"prediction \" + prediction);\n\t\t\t\t \n//\t\t\t\t if (ofile != null) {\n//\t\t\t\t ofile.writeChars(Double.toString(prediction)); // write the prediction\n//\t\t\t\t ofile.writeChar('\\n');\n//\t\t\t\t }\n\t\t\t\t \n//\t\t\t\t results.add(new double[] {dataset.getLabel(instance), prediction});\n\t\t\t\t \n\t\t\t\t if ( truelable == 0.0 && prediction == 0.0) {\n\t\t\t\t \t tn ++; total_test++;\n\t\t\t\t }else if(truelable != 0.0 && prediction == 0.0) {\n\t\t\t\t \t fn ++; total_test++;\n\t\t\t\t }else if (truelable == 0.0 && prediction != 0.0) {\n\t\t\t\t \t fp ++; total_test++;\n\t\t\t\t }else if (truelable != 0.0 && prediction != 0.0) {\n\t\t\t\t \t tp ++ ;total_test++;\n\t\t\t\t }else {total_test++;}\n\n\t\t\t\t \n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t\t\t// Test End\n\t\t\t\t\t\tDate testend = new Date();\n\t\t\t\t\t\tSystem.out.println(\"End prediction \" + testend);\n\t\t\t\t \n\t\t\t\t\t\t// calculate accuracy\n\t\t\t\t\t\t\n\t\t\t\t\t\tdouble accuracy, DR, FPR, Precision, Recall,F1;\n\t\t\t\t\t\t\n\t\t\t\t\t\taccuracy = (double)((double)(tp+tn) / (double)(tp+fp+fn+tn));\n\t\t\t\t\t\tDR = (double)(tp/(double)(tp+fp));\n\t\t\t\t\t\tFPR = (double)fp / (double)(fp+tn);\n\t\t\t\t\t\tPrecision = (double)tp / (double)(tp+fp);\n\t\t\t\t\t\tRecall = (double)tp /(double) (tp+fn);\n\t\t\t\t\t\tF1 =(double)( 2.0 / (double)( ( 1/Precision ) + ( 1 / Recall) ));\n\t\t\t\t \n\t\t \t\t\tSystem.out.println(\"********************Metrics********************\" );\n\t\t \t\t\t\n\t\t \t\t\tSystem.out.println(\"total test data = \" + total_test);\n\t\t \t\t\tSystem.out.println(\"tp:\" +tp + \" fp:\" +fp +\" fn:\" +fn + \" tn:\" +tn);\n\t\t \t\t\tSystem.out.println(\"accuracy = \" + accuracy);\n\t\t \t\t\tSystem.out.println(\"Detection Rate = \" + DR);\n\t\t \t\t\tSystem.out.println(\"False positive rate = \" + FPR);\n\t\t \t\t\tSystem.out.println(\"Precision = \" + Precision);\n\t\t \t\t\tSystem.out.println(\"Recall = \" + Recall);\n\t\t \t\t\tSystem.out.println(\"F1 score = \" + F1);\n\t\t \t\t\t\n\t\t \t\t\tSystem.out.println(\"Predict Time = \" + (testend.getTime() - teststart.getTime() ) + \" milliseconds\" );\n\n\t\t\t\t \n\t\t\t\t scanner.close(); \n\t\t\t\t }\n\t\t\t\t finally {\n\t\t\t\t\t Closeables.closeQuietly(input);\n\t\t\t\t }\n\t\t\t\t \n\t\t\t }", "title": "" }, { "docid": "78701295ffbbdc8b3b074f2b0de7f434", "score": "0.55534106", "text": "@Test(timeout = 4000)\n public void test178() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.m_RowNameWidth = 2;\n resultMatrixSignificance0.LOSS_STRING = \"mean-width\";\n resultMatrixSignificance0.setCountWidth(0);\n resultMatrixSignificance0.setStdDevPrec(0);\n resultMatrixSignificance0.addHeader(\"\", \"\");\n assertEquals(0, resultMatrixSignificance0.getStdDevPrec());\n }", "title": "" }, { "docid": "f708fbad5e7f479131bfff9f141d3aa7", "score": "0.5549234", "text": "@Test(timeout = 4000)\n public void test079() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(1, 0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertNotNull(resultMatrixSignificance0);\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n \n int[] intArray0 = new int[4];\n intArray0[0] = 0;\n intArray0[1] = 0;\n intArray0[2] = 0;\n intArray0[3] = 0;\n int[] intArray1 = new int[7];\n assertFalse(intArray1.equals((Object)intArray0));\n \n intArray1[0] = 1;\n intArray1[2] = 2;\n intArray1[4] = 0;\n intArray1[5] = 1;\n intArray0[3] = 2;\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertNotNull(resultMatrixGnuPlot0);\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n \n String[] stringArray0 = new String[2];\n stringArray0[0] = \"\";\n stringArray0[1] = \" \";\n resultMatrixGnuPlot0.m_ColNames = stringArray0;\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getColCount());\n \n resultMatrixGnuPlot0.setRowName(0, \"\");\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getColCount());\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(0, 1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertNotNull(resultMatrixCSV0);\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getColCount());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(0, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n \n int[] intArray2 = new int[1];\n assertFalse(intArray2.equals((Object)intArray0));\n assertFalse(intArray2.equals((Object)intArray1));\n \n resultMatrixCSV0.setEnumerateColNames(false);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertFalse(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(0, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n \n intArray2[0] = (-358);\n resultMatrixCSV0.setRowOrder(intArray2);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(intArray2.equals((Object)intArray0));\n assertFalse(intArray2.equals((Object)intArray1));\n assertNotSame(intArray2, intArray0);\n assertNotSame(intArray2, intArray1);\n assertEquals(1, intArray2.length);\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertFalse(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(0, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertArrayEquals(new int[] {(-358)}, intArray2);\n \n String string0 = resultMatrixCSV0.globalInfo();\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertNotNull(string0);\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertFalse(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(0, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n \n boolean boolean0 = resultMatrixGnuPlot0.getRowHidden(2);\n assertFalse(boolean0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot0.getColCount());\n }", "title": "" }, { "docid": "106004d38f6a3cc74bbeb13846b0b162", "score": "0.55489737", "text": "@Test(timeout = 4000)\n public void test31() throws Throwable {\n FileSystemHandling.shouldAllThrowIOExceptions();\n JRip jRip0 = new JRip();\n jRip0.setOptions((String[]) null);\n Attribute attribute0 = new Attribute(\"X7G\", \"X7G\");\n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd(attribute0);\n assertEquals(Double.NaN, jRip_NumericAntd0.getAttrValue(), 0.01);\n \n jRip_NumericAntd0.value = (double) 1;\n jRip_NumericAntd0.toString();\n String string0 = jRip_NumericAntd0.toString();\n assertEquals(\"X7G >= NaN\", string0);\n }", "title": "" }, { "docid": "6c7198993ce246b216f11ab1531a3752", "score": "0.5546331", "text": "@Test(timeout = 4000)\n public void test102() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(1, 0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertNotNull(resultMatrixSignificance0);\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n \n int[] intArray0 = new int[4];\n intArray0[0] = 0;\n intArray0[1] = 0;\n intArray0[2] = 0;\n intArray0[3] = 0;\n int[] intArray1 = new int[7];\n assertFalse(intArray1.equals((Object)intArray0));\n \n intArray1[0] = 1;\n intArray1[2] = 2;\n intArray1[4] = 0;\n intArray1[5] = 1;\n intArray0[3] = 2;\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n \n String[] stringArray0 = new String[2];\n stringArray0[0] = \"\";\n stringArray0[1] = \" \";\n resultMatrixGnuPlot0.m_ColNames = stringArray0;\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(2, resultMatrixGnuPlot0.getColCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n \n resultMatrixGnuPlot0.setRowName(0, \"\");\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(2, resultMatrixGnuPlot0.getColCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(0, 1);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertNotNull(resultMatrixCSV0);\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n \n int[] intArray2 = new int[1];\n assertFalse(intArray2.equals((Object)intArray1));\n assertFalse(intArray2.equals((Object)intArray0));\n \n intArray2[0] = (-358);\n resultMatrixCSV0.setRowOrder(intArray2);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(intArray2.equals((Object)intArray1));\n assertFalse(intArray2.equals((Object)intArray0));\n assertNotSame(intArray2, intArray1);\n assertNotSame(intArray2, intArray0);\n assertEquals(1, intArray2.length);\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertArrayEquals(new int[] {(-358)}, intArray2);\n \n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertNotNull(resultMatrixPlainText0);\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n \n String string0 = resultMatrixPlainText0.padString(\"\", 294, false);\n assertEquals(\" \", string0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertNotNull(string0);\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n \n String string1 = resultMatrixPlainText0.toStringSummary();\n assertEquals(\"-summary data not set-\", string1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(string1.equals((Object)string0));\n assertNotNull(string1);\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixPlainText0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertNotNull(resultMatrixLatex0);\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertTrue(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(5, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(25, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n \n int int0 = resultMatrixLatex0.getDefaultStdDevPrec();\n assertEquals(2, int0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertTrue(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(5, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(25, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n }", "title": "" }, { "docid": "c37d9094e550d3252f4eae431f322a72", "score": "0.55381036", "text": "@Test\n public void test() {\n Map<TermId, Integer> recipeToId = new HashMap<>();\n Map<TermId, Set<TermId>> labels = new HashMap<>();\n int nextId = 1;\n for (VegetableRecipeAnnotation a : recipeAnnotations) {\n if (!recipeToId.containsKey(a.getItemId())) {\n recipeToId.put(a.getItemId(), nextId++);\n }\n TermId recipeId = a.id();\n if (!labels.containsKey(recipeId)) {\n labels.put(recipeId, new HashSet<>());\n }\n final Set<TermId> termIds = labels.get(recipeId);\n termIds.add(a.id());\n }\n\n Map<Integer, ScoreDistribution> samplingResult = scoreSampling.performSampling();\n assertEquals(1, samplingResult.size());\n // todo add more testing of distribution\n }", "title": "" }, { "docid": "9a444185dc74f7bee24f3e73baf4a3c7", "score": "0.5534836", "text": "@Test(timeout = 4000)\n public void test09() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Vector<NaiveBayesMultinomial> vector0 = new Vector<NaiveBayesMultinomial>();\n instances0.removeAll(vector0);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.equals(textDirectoryLoader0);\n TechnicalInformationHandlerJavadoc technicalInformationHandlerJavadoc0 = new TechnicalInformationHandlerJavadoc();\n evaluation0.equals(technicalInformationHandlerJavadoc0);\n evaluation0.numTrueNegatives(0);\n evaluation0.SFPriorEntropy();\n Evaluation evaluation1 = new Evaluation(instances0);\n double[] doubleArray0 = new double[1];\n doubleArray0[0] = (double) 0;\n try { \n evaluation0.evaluationForSingleInstance(doubleArray0, (Instance) null, false);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "b3e7702b390f84967b1cd1a90ead8026", "score": "0.5534103", "text": "@Test\n public void test58() throws Throwable {\n SeqClassifierFlags seqClassifierFlags0 = new SeqClassifierFlags();\n assertEquals(\"\", seqClassifierFlags0.toString());\n assertNotNull(seqClassifierFlags0);\n assertEquals(50, seqClassifierFlags0.SGD2QNhessSamples);\n assertTrue(seqClassifierFlags0.useSequences);\n assertFalse(seqClassifierFlags0.useBoundarySequences);\n assertFalse(seqClassifierFlags0.combo);\n assertFalse(seqClassifierFlags0.useGoodForNamesCpC);\n assertFalse(seqClassifierFlags0.casedDistSim);\n assertFalse(seqClassifierFlags0.useTypeySequences);\n assertFalse(seqClassifierFlags0.useNoisyNonNoisyFeature);\n assertFalse(seqClassifierFlags0.useTypeSeqs3);\n assertFalse(seqClassifierFlags0.useTypeSeqs2);\n assertFalse(seqClassifierFlags0.useCRFforUnsup);\n assertEquals(1.0E-4, seqClassifierFlags0.tolerance, 0.01D);\n assertFalse(seqClassifierFlags0.printWeights);\n assertFalse(seqClassifierFlags0.greekifyNGrams);\n assertFalse(seqClassifierFlags0.useTrainLexicon);\n assertFalse(seqClassifierFlags0.randomLopFeatureSplit);\n assertFalse(seqClassifierFlags0.useWEBFreqDict);\n assertFalse(seqClassifierFlags0.useDictleng);\n assertFalse(seqClassifierFlags0.useHk);\n assertFalse(seqClassifierFlags0.useNextRealWord);\n assertFalse(seqClassifierFlags0.useMUCFeatures);\n assertFalse(seqClassifierFlags0.useDict2);\n assertFalse(seqClassifierFlags0.testHessSamples);\n assertFalse(seqClassifierFlags0.removeBackgroundSingletonFeatures);\n assertFalse(seqClassifierFlags0.deleteBlankLines);\n assertFalse(seqClassifierFlags0.includeFullCRFInLOP);\n assertEquals(0.1, seqClassifierFlags0.dualDecompInitialStepSize, 0.01D);\n assertEquals((-1), seqClassifierFlags0.arbitraryInputLayerSize);\n assertFalse(seqClassifierFlags0.usePrediction2);\n assertFalse(seqClassifierFlags0.useParenMatching);\n assertEquals(0.0, seqClassifierFlags0.removeTopNPercent, 0.01D);\n assertFalse(seqClassifierFlags0.useWEB);\n assertFalse(seqClassifierFlags0.useDictCTB2);\n assertFalse(seqClassifierFlags0.useTopics);\n assertEquals(0, seqClassifierFlags0.dualDecompMaxItr);\n assertFalse(seqClassifierFlags0.groupByFeatureTemplate);\n assertEquals(0.1, seqClassifierFlags0.initialGain, 0.01D);\n assertEquals(0.0, seqClassifierFlags0.priorLambda, 0.01D);\n assertFalse(seqClassifierFlags0.bioSubmitOutput);\n assertFalse(seqClassifierFlags0.usePre);\n assertFalse(seqClassifierFlags0.transitionEdgeOnly);\n assertFalse(seqClassifierFlags0.useQuartic);\n assertFalse(seqClassifierFlags0.useDisjunctiveShapeInteraction);\n assertFalse(seqClassifierFlags0.strictlySecondOrder);\n assertFalse(seqClassifierFlags0.useFloat);\n assertFalse(seqClassifierFlags0.addBiasToEmbedding);\n assertFalse(seqClassifierFlags0.useASBCSuf1);\n assertFalse(seqClassifierFlags0.dropoutApprox);\n assertFalse(seqClassifierFlags0.useAs);\n assertFalse(seqClassifierFlags0.regularizeSoftmaxTieParam);\n assertFalse(seqClassifierFlags0.dump);\n assertFalse(seqClassifierFlags0.useSeenFeaturesOnly);\n assertFalse(seqClassifierFlags0.useNegHKDict2);\n assertFalse(seqClassifierFlags0.useHardGE);\n assertEquals(0.0, seqClassifierFlags0.l1reg, 0.01D);\n assertFalse(seqClassifierFlags0.useNegCTBDict2);\n assertFalse(seqClassifierFlags0.useRadical);\n assertFalse(seqClassifierFlags0.useChPos);\n assertFalse(seqClassifierFlags0.removeStrictGoodCoNLLDuplicates);\n assertFalse(seqClassifierFlags0.fakeDataset);\n assertFalse(seqClassifierFlags0.useNegCTBDict4);\n assertFalse(seqClassifierFlags0.useNegCTBDict3);\n assertFalse(seqClassifierFlags0.useSegmentation);\n assertFalse(seqClassifierFlags0.useNB);\n assertFalse(seqClassifierFlags0.useNegHKDict3);\n assertFalse(seqClassifierFlags0.useNegHKDict4);\n assertFalse(seqClassifierFlags0.intern2);\n assertFalse(seqClassifierFlags0.retainEntitySubclassification);\n assertFalse(seqClassifierFlags0.useHybrid);\n assertFalse(seqClassifierFlags0.useWordn);\n assertFalse(seqClassifierFlags0.readStdin);\n assertFalse(seqClassifierFlags0.dualDecompAlignment);\n assertFalse(seqClassifierFlags0.useShapeConjunctions);\n assertFalse(seqClassifierFlags0.useGazettes);\n assertEquals(25, seqClassifierFlags0.QNsize);\n assertFalse(seqClassifierFlags0.useLemmas);\n assertEquals(25, seqClassifierFlags0.QNsize2);\n assertFalse(seqClassifierFlags0.useUnicodeBlock);\n assertTrue(seqClassifierFlags0.learnCHBasedOnEN);\n assertFalse(seqClassifierFlags0.useBeginSent);\n assertFalse(seqClassifierFlags0.expandMidDot);\n assertFalse(seqClassifierFlags0.normalizeTerms);\n assertFalse(seqClassifierFlags0.evaluateBackground);\n assertFalse(seqClassifierFlags0.useSuf);\n assertFalse(seqClassifierFlags0.useEntityTypeSequences);\n assertEquals(0, seqClassifierFlags0.numTimesPruneFeatures);\n assertFalse(seqClassifierFlags0.useAcqPrior);\n assertFalse(seqClassifierFlags0.useRad2b);\n assertFalse(seqClassifierFlags0.usePhraseWordTags);\n assertEquals(0, seqClassifierFlags0.hybridCutoffIteration);\n assertEquals(10, seqClassifierFlags0.totalDataSlice);\n assertFalse(seqClassifierFlags0.subCWGaz);\n assertFalse(seqClassifierFlags0.dehyphenateNGrams);\n assertEquals(1, seqClassifierFlags0.endFold);\n assertFalse(seqClassifierFlags0.doAdaptation);\n assertTrue(seqClassifierFlags0.useQN);\n assertFalse(seqClassifierFlags0.useWideDisjunctive);\n assertFalse(seqClassifierFlags0.useNoisyLabel);\n assertFalse(seqClassifierFlags0.blockInitialize);\n assertEquals(0, seqClassifierFlags0.multiThreadGibbs);\n assertEquals(0.0, seqClassifierFlags0.dropoutRate, 0.01D);\n assertFalse(seqClassifierFlags0.useReverse);\n assertFalse(seqClassifierFlags0.useBagOfWords);\n assertEquals(10, seqClassifierFlags0.totalFeatureSlice);\n assertFalse(seqClassifierFlags0.tuneSGD);\n assertEquals((-1), seqClassifierFlags0.samplingSpeedUpThreshold);\n assertEquals(0.1, seqClassifierFlags0.gainSGD, 0.01D);\n assertFalse(seqClassifierFlags0.useSentenceNumber);\n assertFalse(seqClassifierFlags0.useOrdinal);\n assertFalse(seqClassifierFlags0.useAbbr1);\n assertFalse(seqClassifierFlags0.testVariance);\n assertEquals(100, seqClassifierFlags0.printClassifierParam);\n assertFalse(seqClassifierFlags0.useSymWordPairs);\n assertFalse(seqClassifierFlags0.prependEmbedding);\n assertEquals((-1), seqClassifierFlags0.maxNGramLeng);\n assertEquals(0.0, seqClassifierFlags0.alignmentPruneThreshold, 0.01D);\n assertFalse(seqClassifierFlags0.keepAllWhitespaces);\n assertFalse(seqClassifierFlags0.useOutDict2);\n assertFalse(seqClassifierFlags0.useLastRealWord);\n assertEquals(0.0, seqClassifierFlags0.pctSegmenterScale, 0.01D);\n assertFalse(seqClassifierFlags0.useNERPrior);\n assertTrue(seqClassifierFlags0.useHiddenLayer);\n assertFalse(seqClassifierFlags0.usePk);\n assertFalse(seqClassifierFlags0.useFREQ);\n assertFalse(seqClassifierFlags0.baseline);\n assertEquals((-1), seqClassifierFlags0.SGDPasses);\n assertEquals(1, seqClassifierFlags0.startFold);\n assertFalse(seqClassifierFlags0.normalize);\n assertEquals(1, seqClassifierFlags0.numFolds);\n assertFalse(seqClassifierFlags0.usePKChar2);\n assertEquals(0, seqClassifierFlags0.maxDocSize);\n assertTrue(seqClassifierFlags0.initViterbi);\n assertFalse(seqClassifierFlags0.usePrev);\n assertFalse(seqClassifierFlags0.useMoreTags);\n assertFalse(seqClassifierFlags0.useStochasticQN);\n assertFalse(seqClassifierFlags0.useOWLQN);\n assertFalse(seqClassifierFlags0.powerAlignProb);\n assertFalse(seqClassifierFlags0.suppressMidDotPostprocessing);\n assertFalse(seqClassifierFlags0.useNGrams);\n assertFalse(seqClassifierFlags0.useURLSequences);\n assertFalse(seqClassifierFlags0.restrictTransitionsTimit);\n assertFalse(seqClassifierFlags0.cacheNGrams);\n assertFalse(seqClassifierFlags0.noNeighborConstraints);\n assertFalse(seqClassifierFlags0.useWord4);\n assertFalse(seqClassifierFlags0.useWord3);\n assertFalse(seqClassifierFlags0.useWord2);\n assertFalse(seqClassifierFlags0.useScaledSGD);\n assertFalse(seqClassifierFlags0.noMidNGrams);\n assertFalse(seqClassifierFlags0.useWordPairs);\n assertFalse(seqClassifierFlags0.useSGDtoQN);\n assertFalse(seqClassifierFlags0.useIfInteger);\n assertFalse(seqClassifierFlags0.nonLinearCRF);\n assertFalse(seqClassifierFlags0.useLC);\n assertEquals(0, seqClassifierFlags0.numOfSlices);\n assertFalse(seqClassifierFlags0.useTitle);\n assertFalse(seqClassifierFlags0.useSum);\n assertEquals((-1), seqClassifierFlags0.wordShape);\n assertFalse(seqClassifierFlags0.normalizeTimex);\n assertFalse(seqClassifierFlags0.useKL);\n assertFalse(seqClassifierFlags0.useDictPK2);\n assertEquals(1, seqClassifierFlags0.kBest);\n assertFalse(seqClassifierFlags0.largeChSegFile);\n assertFalse(seqClassifierFlags0.useMoreGazFeatures);\n assertFalse(seqClassifierFlags0.useDictionaryConjunctions);\n assertEquals(1, seqClassifierFlags0.numTimesRemoveTopN);\n assertFalse(seqClassifierFlags0.useMinimalAbbr1);\n assertEquals(0.9, seqClassifierFlags0.selfTrainConfidenceThreshold, 0.01D);\n assertFalse(seqClassifierFlags0.usePosition);\n assertFalse(seqClassifierFlags0.useRule2);\n assertFalse(seqClassifierFlags0.useWordShapeGaz);\n assertFalse(seqClassifierFlags0.useWord1);\n assertFalse(seqClassifierFlags0.outputIterationsToFile);\n assertFalse(seqClassifierFlags0.softmaxOutputLayer);\n assertEquals(0, seqClassifierFlags0.multiThreadClassifier);\n assertFalse(seqClassifierFlags0.useVB);\n assertEquals(0.0, seqClassifierFlags0.softmaxTieLambda, 0.01D);\n assertFalse(seqClassifierFlags0.useCommonWordsFeature);\n assertFalse(seqClassifierFlags0.useMinimalAbbr);\n assertFalse(seqClassifierFlags0.useAdaGradFOBOS);\n assertFalse(seqClassifierFlags0.useUnicodeType4gram);\n assertFalse(seqClassifierFlags0.useLongSequences);\n assertFalse(seqClassifierFlags0.sighanPostProcessing);\n assertEquals(0, seqClassifierFlags0.numOfFeatureSlices);\n assertFalse(seqClassifierFlags0.useDisjunctive);\n assertFalse(seqClassifierFlags0.verboseMode);\n assertFalse(seqClassifierFlags0.useTypeSeqs);\n assertFalse(seqClassifierFlags0.useNPGovernor);\n assertFalse(seqClassifierFlags0.useEitherSideDisjunctive);\n assertFalse(seqClassifierFlags0.printXML);\n assertFalse(seqClassifierFlags0.splitOnHead);\n assertFalse(seqClassifierFlags0.useMoreAbbr);\n assertFalse(seqClassifierFlags0.useChunks);\n assertFalse(seqClassifierFlags0.useABSTR);\n assertFalse(seqClassifierFlags0.terminateOnEvalImprovement);\n assertFalse(seqClassifierFlags0.useDictionaryConjunctions3);\n assertEquals(0.1, seqClassifierFlags0.initRate, 0.01D);\n assertFalse(seqClassifierFlags0.ocrTrain);\n assertEquals(8, seqClassifierFlags0.maxAllowedChromaticSize);\n assertFalse(seqClassifierFlags0.useSymTags);\n assertEquals(1.0, seqClassifierFlags0.dropoutScale, 0.01D);\n assertFalse(seqClassifierFlags0.useNextSequences);\n assertFalse(seqClassifierFlags0.strictlyZeroethOrder);\n assertEquals((-1), seqClassifierFlags0.QNPasses);\n assertFalse(seqClassifierFlags0.printNR);\n assertFalse(seqClassifierFlags0.mergeTags);\n assertFalse(seqClassifierFlags0.useCorefFeatures);\n assertFalse(seqClassifierFlags0.useDisjShape);\n assertFalse(seqClassifierFlags0.evaluateTrain);\n assertEquals(1000, seqClassifierFlags0.wordSegBeamSize);\n assertEquals(1.0, seqClassifierFlags0.unsupDropoutScale, 0.01D);\n assertFalse(seqClassifierFlags0.use4Clique);\n assertEquals(30, seqClassifierFlags0.beamSize);\n assertFalse(seqClassifierFlags0.printFactorTable);\n assertFalse(seqClassifierFlags0.useSigmoid);\n assertFalse(seqClassifierFlags0.useNumberFeature);\n assertFalse(seqClassifierFlags0.groupByInput);\n assertTrue(seqClassifierFlags0.useMemoryEvaluator);\n assertFalse(seqClassifierFlags0.memoryThrift);\n assertFalse(seqClassifierFlags0.groupByHiddenUnit);\n assertTrue(seqClassifierFlags0.separateASCIIandRange);\n assertTrue(seqClassifierFlags0.applyNERPenalty);\n assertFalse(seqClassifierFlags0.printTrainLabels);\n assertFalse(seqClassifierFlags0.hardcodeSoftmaxOutputWeights);\n assertFalse(seqClassifierFlags0.useBerkeleyAlignerForViterbi);\n assertFalse(seqClassifierFlags0.lowercaseNGrams);\n assertFalse(seqClassifierFlags0.useASBCPre1);\n assertEquals(0.95, seqClassifierFlags0.adaDeltaRho, 0.01D);\n assertEquals(1, seqClassifierFlags0.selfTrainWindowSize);\n assertEquals(0.5, seqClassifierFlags0.alignmentDecodeThreshold, 0.01D);\n assertFalse(seqClassifierFlags0.useABSTRFreq);\n assertFalse(seqClassifierFlags0.dontExtendTaggy);\n assertTrue(seqClassifierFlags0.useDenero);\n assertTrue(seqClassifierFlags0.restrictLabels);\n assertTrue(seqClassifierFlags0.keepOBInMemory);\n assertFalse(seqClassifierFlags0.useChunkySequences);\n assertFalse(seqClassifierFlags0.useInPlaceSGD);\n assertFalse(seqClassifierFlags0.terminateOnAvgImprovement);\n assertEquals(1.0, seqClassifierFlags0.sigma, 0.01D);\n assertFalse(seqClassifierFlags0.useSemPrior);\n assertFalse(seqClassifierFlags0.numberEquivalenceDistSim);\n assertFalse(seqClassifierFlags0.useHuber);\n assertFalse(seqClassifierFlags0.strictlyThirdOrder);\n assertFalse(seqClassifierFlags0.strictlyFirstOrder);\n assertTrue(seqClassifierFlags0.useExternal);\n assertFalse(seqClassifierFlags0.weightByEntropy);\n assertFalse(seqClassifierFlags0.augmentedDateChars);\n assertFalse(seqClassifierFlags0.useSMD);\n assertFalse(seqClassifierFlags0.initWithNERPosterior);\n assertFalse(seqClassifierFlags0.useFeaturesCpC5gram);\n assertFalse(seqClassifierFlags0.announceObjectBankEntries);\n assertFalse(seqClassifierFlags0.useLemmaAsWord);\n assertFalse(seqClassifierFlags0.geDebug);\n assertFalse(seqClassifierFlags0.useGEforSup);\n assertFalse(seqClassifierFlags0.useUnicodeType5gram);\n assertEquals(0, seqClassifierFlags0.interimOutputFreq);\n assertEquals(100, seqClassifierFlags0.numSamples);\n assertFalse(seqClassifierFlags0.useANTE);\n assertFalse(seqClassifierFlags0.gradientDebug);\n assertFalse(seqClassifierFlags0.usePhraseWords);\n assertFalse(seqClassifierFlags0.verboseForTrueCasing);\n assertTrue(seqClassifierFlags0.useOutputLayer);\n assertTrue(seqClassifierFlags0.biAlignmentPriorIsPMI);\n assertFalse(seqClassifierFlags0.useBig5);\n assertFalse(seqClassifierFlags0.useYetMoreCpCShapes);\n assertFalse(seqClassifierFlags0.useFilter);\n assertFalse(seqClassifierFlags0.useAdaDelta);\n assertEquals(0, seqClassifierFlags0.featureCountThresh);\n assertFalse(seqClassifierFlags0.useUnicodeType);\n assertFalse(seqClassifierFlags0.estimateInitial);\n assertEquals((-1), seqClassifierFlags0.labelDictionaryCutoff);\n assertEquals(8, seqClassifierFlags0.distSimMaxBits);\n assertFalse(seqClassifierFlags0.pctSegmenterScaleByCRF);\n assertFalse(seqClassifierFlags0.useNextVB);\n assertFalse(seqClassifierFlags0.tieOutputLayer);\n assertEquals((-1), seqClassifierFlags0.numHiddenUnits);\n assertFalse(seqClassifierFlags0.saveFeatureIndexToDisk);\n assertFalse(seqClassifierFlags0.useGENIA);\n assertFalse(seqClassifierFlags0.useUniformPrior);\n assertFalse(seqClassifierFlags0.printFirstOrderProbs);\n assertEquals(1, seqClassifierFlags0.numStartLayers);\n assertFalse(seqClassifierFlags0.booleanFeatures);\n assertFalse(seqClassifierFlags0.useTOK);\n assertEquals(0, seqClassifierFlags0.maxRight);\n assertFalse(seqClassifierFlags0.useABGENE);\n assertFalse(seqClassifierFlags0.use2W);\n assertEquals(2, seqClassifierFlags0.maxLeft);\n assertEquals(10, seqClassifierFlags0.wideDisjunctionWidth);\n assertFalse(seqClassifierFlags0.useWordUTypeConjunctions3);\n assertFalse(seqClassifierFlags0.cleanGazette);\n assertTrue(seqClassifierFlags0.includeC2EViterbi);\n assertFalse(seqClassifierFlags0.secondOrderNonLinear);\n assertFalse(seqClassifierFlags0.useWordUTypeConjunctions2);\n assertFalse(seqClassifierFlags0.usePKSuf1);\n assertFalse(seqClassifierFlags0.alternateTraining);\n assertFalse(seqClassifierFlags0.useHKChar2);\n assertTrue(seqClassifierFlags0.useKnownLCWords);\n assertTrue(seqClassifierFlags0.useViterbi);\n assertEquals(Integer.MAX_VALUE, seqClassifierFlags0.printFeaturesUpto);\n assertFalse(seqClassifierFlags0.useFirstWord);\n assertFalse(seqClassifierFlags0.usePrevVB);\n assertFalse(seqClassifierFlags0.useEitherSideWord);\n assertFalse(seqClassifierFlags0.usePKPre1);\n assertFalse(seqClassifierFlags0.useRad1);\n assertTrue(seqClassifierFlags0.splitDocuments);\n assertFalse(seqClassifierFlags0.doFeatureDiscovery);\n assertFalse(seqClassifierFlags0.lowerNewgeneThreshold);\n assertEquals(1, seqClassifierFlags0.nerSlowerTimes);\n assertFalse(seqClassifierFlags0.useCWSWordFeaturesAll);\n assertFalse(seqClassifierFlags0.useNeighborNGrams);\n assertTrue(seqClassifierFlags0.useWord);\n assertFalse(seqClassifierFlags0.useTaggySequencesShapeInteraction);\n assertFalse(seqClassifierFlags0.iobTags);\n assertFalse(seqClassifierFlags0.useSequentialScanSampling);\n assertFalse(seqClassifierFlags0.useSGD);\n assertFalse(seqClassifierFlags0.useBilingualNERPrior);\n assertFalse(seqClassifierFlags0.useACR);\n assertFalse(seqClassifierFlags0.suppressTestDebug);\n assertFalse(seqClassifierFlags0.useAdaDiff);\n assertFalse(seqClassifierFlags0.pctSegmenterLenAdjust);\n assertFalse(seqClassifierFlags0.usePhraseFeatures);\n assertFalse(seqClassifierFlags0.useFeaturesCpC6gram);\n assertFalse(seqClassifierFlags0.dualDecompDebug);\n assertFalse(seqClassifierFlags0.useBigramInTwoClique);\n assertFalse(seqClassifierFlags0.testObjFunction);\n assertEquals(0, seqClassifierFlags0.featureCountThreshold);\n assertFalse(seqClassifierFlags0.useOccurrencePatterns);\n assertEquals(0, seqClassifierFlags0.maxQNItr);\n assertFalse(seqClassifierFlags0.factorInAlignmentProb);\n assertFalse(seqClassifierFlags0.useKBest);\n assertTrue(seqClassifierFlags0.averagePerceptron);\n assertEquals(15, seqClassifierFlags0.stochasticBatchSize);\n assertEquals(0.0, seqClassifierFlags0.annealingRate, 0.01D);\n assertFalse(seqClassifierFlags0.useRad2);\n assertEquals(0, seqClassifierFlags0.ocrFold);\n assertFalse(seqClassifierFlags0.backpropLopTraining);\n assertFalse(seqClassifierFlags0.useProtoFeatures);\n assertEquals((-1), seqClassifierFlags0.maxIterations);\n assertFalse(seqClassifierFlags0.useExtraTaggySequences);\n assertFalse(seqClassifierFlags0.useNegASBCDict2);\n assertFalse(seqClassifierFlags0.usePrediction);\n assertFalse(seqClassifierFlags0.useTaggySequences);\n assertFalse(seqClassifierFlags0.useWordShapeConjunctions2);\n assertFalse(seqClassifierFlags0.useWordShapeConjunctions3);\n assertEquals(3, seqClassifierFlags0.charHalfWindow);\n assertFalse(seqClassifierFlags0.useOnlySeenWeights);\n assertFalse(seqClassifierFlags0.useEntityTypes);\n assertFalse(seqClassifierFlags0.useLabelSource);\n assertFalse(seqClassifierFlags0.twoStage);\n assertTrue(seqClassifierFlags0.initWithPosterior);\n assertFalse(seqClassifierFlags0.useCWSWordFeatures);\n assertFalse(seqClassifierFlags0.useHeadGov);\n assertFalse(seqClassifierFlags0.useNegASBCDict3);\n assertEquals(0, seqClassifierFlags0.removeTopN);\n assertFalse(seqClassifierFlags0.useNegASBCDict4);\n assertFalse(seqClassifierFlags0.useRandomSeed);\n assertFalse(seqClassifierFlags0.groupByOutputClass);\n assertFalse(seqClassifierFlags0.powerAlignProbAsAddition);\n assertFalse(seqClassifierFlags0.useFeaturesC6gram);\n assertFalse(seqClassifierFlags0.conjoinShapeNGrams);\n assertFalse(seqClassifierFlags0.factorInBiEdgePotential);\n assertFalse(seqClassifierFlags0.strictGoodCoNLL);\n assertFalse(seqClassifierFlags0.doGibbs);\n assertEquals(0, seqClassifierFlags0.scaledSGDMethod);\n assertFalse(seqClassifierFlags0.useCTBChar2);\n assertFalse(seqClassifierFlags0.useFeaturesC5gram);\n assertEquals(1.0, seqClassifierFlags0.lambdaCH, 0.01D);\n assertFalse(seqClassifierFlags0.perceptronDebug);\n assertFalse(seqClassifierFlags0.useShapeStrings3);\n assertFalse(seqClassifierFlags0.useShapeStrings1);\n assertFalse(seqClassifierFlags0.useWordTag);\n assertFalse(seqClassifierFlags0.matchNERIncentive);\n assertFalse(seqClassifierFlags0.useShapeStrings5);\n assertFalse(seqClassifierFlags0.useWordnetFeatures);\n assertFalse(seqClassifierFlags0.useShapeStrings4);\n assertEquals(0.001, seqClassifierFlags0.adaGradEps, 0.01D);\n assertFalse(seqClassifierFlags0.useShapeStrings);\n assertEquals(1.0, seqClassifierFlags0.randomizedRatio, 0.01D);\n assertFalse(seqClassifierFlags0.learnENBasedOnCH);\n assertFalse(seqClassifierFlags0.checkNameList);\n assertFalse(seqClassifierFlags0.useYear);\n assertEquals(0.0, seqClassifierFlags0.priorAlpha, 0.01D);\n assertFalse(seqClassifierFlags0.useAbbr);\n assertFalse(seqClassifierFlags0.appendLC);\n assertFalse(seqClassifierFlags0.useObservedFeaturesOnly);\n assertFalse(seqClassifierFlags0.useEmbedding);\n assertFalse(seqClassifierFlags0.useNegDict2);\n assertFalse(seqClassifierFlags0.useEntityRule);\n assertFalse(seqClassifierFlags0.randomLopWeights);\n assertEquals(0, seqClassifierFlags0.nerSkipFirstK);\n assertFalse(seqClassifierFlags0.noEdgeFeature);\n assertFalse(seqClassifierFlags0.keepEnglishWhitespaces);\n assertEquals(1, seqClassifierFlags0.numLopExpert);\n assertFalse(seqClassifierFlags0.useCTBPre1);\n assertFalse(seqClassifierFlags0.useASBCChar2);\n assertFalse(seqClassifierFlags0.checkGradient);\n assertFalse(seqClassifierFlags0.useTags);\n assertFalse(seqClassifierFlags0.useNegDict3);\n assertFalse(seqClassifierFlags0.sloppyGazette);\n assertFalse(seqClassifierFlags0.useNegDict4);\n assertFalse(seqClassifierFlags0.skipOutputRegularization);\n assertFalse(seqClassifierFlags0.useGenericFeatures);\n assertEquals(1, seqClassifierFlags0.selfTrainIterations);\n assertEquals(1, seqClassifierFlags0.multiThreadPerceptron);\n assertFalse(seqClassifierFlags0.keepEmptySentences);\n assertFalse(seqClassifierFlags0.sparseOutputLayer);\n assertFalse(seqClassifierFlags0.useHKSuf1);\n assertEquals(0.01, seqClassifierFlags0.epsilon, 0.01D);\n assertFalse(seqClassifierFlags0.useGazettePhrases);\n assertFalse(seqClassifierFlags0.useMSRChar2);\n assertFalse(seqClassifierFlags0.printLabelValue);\n assertFalse(seqClassifierFlags0.useNERPriorBIO);\n assertEquals(0, seqClassifierFlags0.evaluateIters);\n assertFalse(seqClassifierFlags0.lazyUpdate);\n assertEquals(1, seqClassifierFlags0.CRForder);\n assertFalse(seqClassifierFlags0.useDictHK2);\n assertFalse(seqClassifierFlags0.useABSTRFreqDict);\n assertFalse(seqClassifierFlags0.purgeDatasets);\n assertFalse(seqClassifierFlags0.timitDatum);\n assertFalse(seqClassifierFlags0.addCapitalFeatures);\n assertEquals(0.0, seqClassifierFlags0.featureWeightThreshold, 0.01D);\n assertFalse(seqClassifierFlags0.makeConsistent);\n assertFalse(seqClassifierFlags0.useFeaturesC4gram);\n assertFalse(seqClassifierFlags0.useDictASBC2);\n assertEquals(2, seqClassifierFlags0.CRFwindow);\n assertFalse(seqClassifierFlags0.doFE);\n assertFalse(seqClassifierFlags0.useFeaturesCpC4gram);\n assertFalse(seqClassifierFlags0.useClassFeature);\n assertFalse(seqClassifierFlags0.useMsr);\n assertFalse(seqClassifierFlags0.useReverseAffix);\n assertEquals((-1), seqClassifierFlags0.purgeFeatures);\n assertFalse(seqClassifierFlags0.useIsURL);\n assertFalse(seqClassifierFlags0.useIsDateRange);\n assertEquals(0.1, seqClassifierFlags0.dualDecompInitialStepSizeAlignment, 0.01D);\n assertEquals(Double.POSITIVE_INFINITY, seqClassifierFlags0.searchGraphPrune, 0.01D);\n assertFalse(seqClassifierFlags0.usePrevSequences);\n assertFalse(seqClassifierFlags0.useGazFeatures);\n assertFalse(seqClassifierFlags0.intern);\n assertFalse(seqClassifierFlags0.useMidDotShape);\n assertFalse(seqClassifierFlags0.selfTest);\n assertFalse(seqClassifierFlags0.printProbs);\n assertEquals(0, seqClassifierFlags0.startEvaluateIters);\n assertTrue(seqClassifierFlags0.useCWSFeatures);\n assertFalse(seqClassifierFlags0.useCWSWordFeaturesBigram);\n assertEquals(1, seqClassifierFlags0.multiThreadGrad);\n assertFalse(seqClassifierFlags0.useRobustQN);\n assertTrue(seqClassifierFlags0.useInternal);\n assertFalse(seqClassifierFlags0.useDualDecomp);\n assertEquals(1, seqClassifierFlags0.terminateOnEvalImprovementNumOfEpoch);\n assertFalse(seqClassifierFlags0.useNegPKDict3);\n assertEquals(1.0, seqClassifierFlags0.alignDDAlpha, 0.01D);\n assertFalse(seqClassifierFlags0.useNegPKDict4);\n assertFalse(seqClassifierFlags0.dampDDStepSizeWithAlignmentProb);\n assertEquals(1, seqClassifierFlags0.featureThreshold);\n assertFalse(seqClassifierFlags0.useRule);\n assertFalse(seqClassifierFlags0.useNPHead);\n assertFalse(seqClassifierFlags0.useNegPKDict2);\n assertFalse(seqClassifierFlags0.usePhraseWordSpecialTags);\n assertEquals(0.0, seqClassifierFlags0.featureDiffThresh, 0.01D);\n assertEquals(1, seqClassifierFlags0.numDatasetsPerFile);\n assertFalse(seqClassifierFlags0.useBerkeleyCompetitivePosterior);\n assertFalse(seqClassifierFlags0.useObservedSequencesOnly);\n assertFalse(seqClassifierFlags0.useAltGazFeatures);\n assertFalse(seqClassifierFlags0.usePrevNextLemmas);\n assertFalse(seqClassifierFlags0.useChromaticSampling);\n assertFalse(seqClassifierFlags0.justify);\n assertFalse(seqClassifierFlags0.useCTBSuf1);\n assertEquals(1, seqClassifierFlags0.numRuns);\n assertFalse(seqClassifierFlags0.dualDecompNotBIO);\n assertEquals(0.0, seqClassifierFlags0.newgeneThreshold, 0.01D);\n assertFalse(seqClassifierFlags0.useDistSim);\n assertFalse(seqClassifierFlags0.useNext);\n assertFalse(seqClassifierFlags0.useUnknown);\n assertFalse(seqClassifierFlags0.iobWrapper);\n assertFalse(seqClassifierFlags0.useHKPre1);\n assertEquals(1, seqClassifierFlags0.bisequencePriorType);\n assertEquals(1.0, seqClassifierFlags0.adaptSigma, 0.01D);\n assertEquals(1.0, seqClassifierFlags0.lambdaEN, 0.01D);\n assertEquals((-1), seqClassifierFlags0.tuneSampleSize);\n assertEquals(4, seqClassifierFlags0.disjunctionWidth);\n \n String string0 = JSONObject.numberToString((Number) 0.95);\n assertNotNull(string0);\n assertEquals(\"0.95\", string0);\n \n JSONObject jSONObject0 = null;\n try {\n jSONObject0 = new JSONObject((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "title": "" }, { "docid": "412f5303adacf2c70776854f031bc748", "score": "0.553214", "text": "@Test(timeout = 4000)\n public void test21() throws Throwable {\n byte[] byteArray0 = new byte[10];\n byteArray0[0] = (byte) (-1);\n byteArray0[1] = (byte) (-92);\n byteArray0[2] = (byte) (-84);\n byteArray0[3] = (byte)25;\n byteArray0[4] = (byte) (-114);\n byteArray0[5] = (byte)65;\n byteArray0[4] = (byte)51;\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n int int0 = expressionMatrixImpl0.getValue(0, 1);\n assertEquals((-1), int0);\n }", "title": "" }, { "docid": "533823c26e454177d44c8f5cb25ff51d", "score": "0.55313194", "text": "private static void testAlgosOnRefDataSet()\n \t{\n\t\tApriori.runExperiment(Dataset.T5_I2_D100K, MinSup.POINT_SEVEN_FIVE_PERCENT);\n \t}", "title": "" }, { "docid": "66c040a261e8fe6271f1d4d4ae0a081d", "score": "0.5530422", "text": "@Test(timeout = 4000)\n public void test11() throws Throwable {\n JRip jRip0 = new JRip();\n jRip0.getTechnicalInformation();\n jRip0.getTechnicalInformation();\n AbstractClassifier.makeCopy(jRip0);\n jRip0.toString();\n AbstractClassifier.makeCopy(jRip0);\n jRip0.getUsePruning();\n jRip0.getMinNo();\n ArrayList<String> arrayList0 = new ArrayList<String>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n Attribute attribute0 = new Attribute(\"JRIP: No model built yet.\", arrayList0, protectedProperties0);\n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd(attribute0);\n SerializedClassifier serializedClassifier0 = new SerializedClassifier();\n File file0 = serializedClassifier0.getModelFile();\n String string0 = \"]>An(V\\\"}\";\n MockPrintStream mockPrintStream0 = null;\n try {\n mockPrintStream0 = new MockPrintStream(file0, \"]>An(V\\\"}\");\n fail(\"Expecting exception: FileNotFoundException\");\n \n } catch(Throwable e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.evosuite.runtime.mock.java.io.MockFileOutputStream\", e);\n }\n }", "title": "" }, { "docid": "401bfb7eba37ca44e7a6856242dfd44d", "score": "0.55296034", "text": "@Test(timeout = 4000)\n public void test20() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(1, 0);\n assertNotNull(resultMatrixSignificance0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n \n int int0 = resultMatrixSignificance0.getDefaultRowNameWidth();\n assertEquals(40, int0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n \n String string0 = resultMatrixSignificance0.doubleToString(0.0, 0);\n assertEquals(\"0.\", string0);\n assertNotNull(string0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n \n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n \n String string1 = resultMatrixGnuPlot0.toStringRanking();\n assertEquals(\"-ranking data not set-\", string1);\n assertNotNull(string1);\n assertFalse(string1.equals((Object)string0));\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n \n int[] intArray0 = new int[2];\n intArray0[0] = 1;\n resultMatrixGnuPlot0.setRowNameWidth((-399));\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n \n int int1 = resultMatrixGnuPlot0.getStdDevPrec();\n assertEquals(2, int1);\n assertFalse(int1 == int0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n }", "title": "" }, { "docid": "860e7485dbbd5a9c9710616e178a46ac", "score": "0.5524283", "text": "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize(\"\\tOptimize number of bins using leave-one-out estimate\\n\\tof estimated entropy (for equal-width discretization).\\n\\tIf this is set then the -B option will be ignored.\");\n discretize0.setInvertSelection(true);\n discretize0.getOptions();\n int[] intArray0 = new int[1];\n intArray0[0] = 1147;\n SparseInstance sparseInstance0 = null;\n try {\n sparseInstance0 = new SparseInstance((-1.0), (double[]) null, intArray0, 1147);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.SparseInstance\", e);\n }\n }", "title": "" }, { "docid": "8431169cc86948b674d240de7d82d09a", "score": "0.55181664", "text": "@Test(timeout = 4000)\n public void test18() throws Throwable {\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"tm\\\"iK7~\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.m_Header = instances0;\n VotedPerceptron votedPerceptron0 = new VotedPerceptron();\n CVParameterSelection cVParameterSelection0 = new CVParameterSelection();\n cVParameterSelection0.setClassifier(votedPerceptron0);\n Evaluation.makeOptionString(votedPerceptron0, false);\n Evaluation evaluation1 = new Evaluation(instances0);\n testInstances0.getData();\n Evaluation evaluation2 = new Evaluation(instances0);\n evaluation1.confusionMatrix();\n evaluation0.confusionMatrix();\n double double0 = evaluation0.weightedRecall();\n assertEquals(Double.NaN, double0, 0.01);\n \n String string0 = evaluation2.toMatrixString(\".bsi\");\n assertEquals(\".bsi\\n a b <-- classified as\\n 0 0 | a = class1\\n 0 0 | b = class2\\n\", string0);\n \n evaluation1.toSummaryString();\n assertEquals(Double.NaN, evaluation1.weightedTruePositiveRate(), 0.01);\n }", "title": "" }, { "docid": "8e005eef39f0fe0417a4f504d90cbd84", "score": "0.55176514", "text": "public void test1570() { doTest(true, true); }", "title": "" }, { "docid": "8b59d2e68f13bd3ae7ef6ca3fc7c7279", "score": "0.5516321", "text": "@Before\r\n\tpublic void setUp() throws Exception {\r\n\t\tsuper.setUp();\r\n\t\tSIRJavaFactory sir = new SIRJavaFactory();\r\n\t\tsir.setExperimentRoot(EXPERIMENTROOT);\r\n\t\tApplication testapp = sir.extract(appname);\r\n\t\tp = testapp.getProgram(ProgramVariant.orig, 0);\r\n\t\tsfe = new SourceFileEntity(p,\"default.package\",\"test.java\",null);\r\n\t\ts1 = new StatementEntity(sfe,10,\"int i=0\");\r\n\t\ts2 = new StatementEntity(sfe,20,\"int j=0\");\r\n\t\ts3 = new StatementEntity(sfe,120,\"int k=0\");\r\n\t\t\r\n\t\ttca = new ArrayList<>();\r\n\t\ttca.add(a);tca.add(b);tca.add(c);tca.add(d);tca.add(e);tca.add(f);\r\n\t\tList<StatementEntity> sea = new ArrayList<>();\r\n\t\tsea.add(s1);sea.add(s2);sea.add(s3);\r\n\t\tcodeCoverage =new CodeCoverage<StatementEntity>(tca,sea,null);\r\n\t\tcodeCoverage.setLink(a, s1);\r\n\t\tcodeCoverage.setLink(a, s3);\r\n\t\tcodeCoverage.setLink(c, s1);\r\n\t\tcodeCoverage.setLink(c, s3);\r\n\t\tcodeCoverage.setLink(e, s3);\r\n\t\tcodeCoverage.setLink(f,s1);\r\n\t}", "title": "" }, { "docid": "8b32732975c9fa518af156356bd3793e", "score": "0.551245", "text": "@Test(timeout = 4000)\n public void test050() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertNotNull(resultMatrixSignificance0);\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n \n resultMatrixSignificance0.m_RowNameWidth = 2;\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n \n resultMatrixSignificance0.LOSS_STRING = \"mean-width\";\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n \n resultMatrixSignificance0.setCountWidth((-9));\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n \n String string0 = resultMatrixSignificance0.toStringMatrix();\n assertEquals(\"Da (1)\\n--------------------\\nro \\n\", string0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertNotNull(string0);\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n \n resultMatrixSignificance0.setPrintRowNames(false);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n \n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertNotNull(resultMatrixHTML0);\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n \n String string1 = resultMatrixSignificance0.enumerateRowNamesTipText();\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", string1);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(string1.equals((Object)string0));\n assertNotNull(string1);\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n }", "title": "" }, { "docid": "22366e39fa285f349fa61e5566087c83", "score": "0.55123", "text": "@Test(timeout = 4000)\n public void test107() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertNotNull(resultMatrixSignificance0);\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n \n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(93, 2);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(93, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(93, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n \n resultMatrixGnuPlot0.clear();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(93, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(93, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixGnuPlot0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertNotNull(resultMatrixLatex0);\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(93, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(93, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(50, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(93, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertTrue(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(93, resultMatrixLatex0.getColCount());\n assertFalse(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixLatex0.getRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n \n resultMatrixLatex0.setSize(1, 0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(93, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(93, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(50, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertTrue(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(0, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertFalse(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n \n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertNotNull(resultMatrixPlainText0);\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n }", "title": "" }, { "docid": "9756b5db0f629edcae3f303be2fbb581", "score": "0.5511673", "text": "@Test(timeout = 4000)\n public void test00() throws Throwable {\n JRip jRip0 = new JRip();\n LinkedList<Locale.LanguageRange> linkedList0 = new LinkedList<Locale.LanguageRange>();\n Environment environment0 = new Environment();\n Set<String> set0 = environment0.getVariableNames();\n List<String> list0 = Locale.filterTags((List<Locale.LanguageRange>) linkedList0, (Collection<String>) set0);\n Locale.FilteringMode locale_FilteringMode0 = Locale.FilteringMode.REJECT_EXTENDED_RANGES;\n List<String> list1 = Locale.filterTags((List<Locale.LanguageRange>) linkedList0, (Collection<String>) list0, locale_FilteringMode0);\n Attribute attribute0 = new Attribute(\"#w#-6'qw,\", list1, 0);\n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd(attribute0);\n double double0 = jRip_NumericAntd0.getSplitPoint();\n assertEquals(Double.NaN, jRip_NumericAntd0.getAttrValue(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd0.getCover(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n assertFalse(jRip0.getDebug());\n assertTrue(jRip0.getCheckErrorRate());\n assertTrue(jRip0.getUsePruning());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(1L, jRip0.getSeed());\n assertEquals(3, jRip0.getFolds());\n assertEquals(Double.NaN, jRip_NumericAntd0.getAccuRate(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd0.getAccu(), 0.01);\n assertEquals(0.0, jRip_NumericAntd0.getMaxInfoGain(), 0.01);\n assertEquals(2, jRip0.getOptimizations());\n }", "title": "" }, { "docid": "c29cdd68f2b64f4387a321ba897a048d", "score": "0.550888", "text": "@Test(timeout = 4000)\n public void test033() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertNotNull(resultMatrixSignificance0);\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n \n String string0 = resultMatrixSignificance0.getColName(7);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertNull(string0);\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n \n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(2, 0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertNotNull(resultMatrixPlainText0);\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(0, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getColCount());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n \n resultMatrixPlainText0.clearSummary();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(0, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getColCount());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n \n String[] stringArray0 = new String[9];\n stringArray0[0] = \"$w7]\\\"$x-O*{$^wl\";\n stringArray0[1] = \"\";\n stringArray0[2] = \"*\";\n stringArray0[3] = \"v\";\n stringArray0[4] = \"$w7]\\\"$x-O*{$^wl\";\n stringArray0[5] = \")\";\n stringArray0[6] = \"$w7]\\\"$x-O*{$^wl\";\n stringArray0[7] = \"JOR}My?[1>q\";\n stringArray0[8] = \")\";\n ResultMatrixPlainText.main(stringArray0);\n assertEquals(9, stringArray0.length);\n \n int[] intArray0 = new int[3];\n intArray0[0] = 0;\n intArray0[1] = 2;\n intArray0[2] = 2;\n resultMatrixSignificance0.setColOrder(intArray0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(3, intArray0.length);\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertArrayEquals(new int[] {0, 2, 2}, intArray0);\n \n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n \n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot(resultMatrixSignificance0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n assertNotNull(resultMatrixGnuPlot1);\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertTrue(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(40, resultMatrixGnuPlot1.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n \n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance(resultMatrixGnuPlot1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n assertNotNull(resultMatrixSignificance1);\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertTrue(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(40, resultMatrixGnuPlot1.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance1.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance1.getRowCount());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance1.getVisibleColCount());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n \n boolean boolean0 = resultMatrixSignificance0.getDefaultShowStdDev();\n assertFalse(boolean0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n \n String string1 = resultMatrixGnuPlot1.getRowName((-1));\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertNotSame(resultMatrixGnuPlot1, resultMatrixGnuPlot0);\n assertNull(string1);\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertTrue(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(40, resultMatrixGnuPlot1.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n \n int int0 = resultMatrixPlainText0.getDisplayCol((-382));\n assertEquals((-1), int0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(0, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getColCount());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n \n double double0 = resultMatrixGnuPlot1.getCount(1);\n assertEquals(0.0, double0, 0.01);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertNotSame(resultMatrixGnuPlot1, resultMatrixGnuPlot0);\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertTrue(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(40, resultMatrixGnuPlot1.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "9635077fd042dd94f9d745ca8803d381", "score": "0.0", "text": "@Override\n\tpublic void dispose(Application app) {\n\n\t}", "title": "" } ]
[ { "docid": "ef1b6c3f597a66c59960d73eadee6f25", "score": "0.6904447", "text": "private void apparence()\n\t\t{\n\n\t\t}", "title": "" }, { "docid": "4862518dedb9e169c3cc620e5ebe04c5", "score": "0.6696056", "text": "@Override\r\n\tpublic void atura() {\n\t\t\r\n\t}", "title": "" }, { "docid": "651ef6275f1a33ed6582a1599cab78d2", "score": "0.66211534", "text": "@Override\n\tpublic void bekle() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "c56ced5e9768caa7a88a0e86dc1d02eb", "score": "0.6557507", "text": "@Override\n\tpublic void pintate() {\n\t\t\n\t}", "title": "" }, { "docid": "534c466f09845319b9edaf959a891c09", "score": "0.6546559", "text": "@Override\r\n\tpublic void debriyaj() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.64127725", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.63762105", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.6362821", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.6362821", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.6362821", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.6362821", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "df89b968807fade64158ed6c7401bc7a", "score": "0.62550694", "text": "@Override\r\n\tpublic void afficher() {\n\t\t\r\n\t}", "title": "" }, { "docid": "761f5db0b07474bff2090f23a6693efb", "score": "0.6211042", "text": "private void Prodto() {\n\n\t}", "title": "" }, { "docid": "74578344538dd194907dffc0406cacac", "score": "0.6166714", "text": "@Override\n public void suicide() {\n \n }", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "a2392cc71aaf87bc730f13f37ecdb439", "score": "0.6153736", "text": "private void apparence()\r\n\t\t{\r\n\t\t//Rien\r\n\t\t}", "title": "" }, { "docid": "db51ad8e6f15ad35a767d84e1e1eda68", "score": "0.61275035", "text": "@Override\n\t\t\tpublic void cry() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "23f3a7415a3f7463e8a1124d06cf4cf2", "score": "0.609125", "text": "@Override\n\tpublic void valide() {\n\t\t\n\t}", "title": "" }, { "docid": "e24a2515146ce17481b567e14f6d3258", "score": "0.6075012", "text": "public void retrievecart() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "fba36b6a112c0dbc3dd5aa61fe730a40", "score": "0.60609394", "text": "@Override\n\tpublic void subir() {\n\t\t\n\t}", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.605578", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "280c1f1bfe3582788f566eafe40085dd", "score": "0.60448366", "text": "@Override\n \tpublic void init() {\n \t\t\n \t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6023245", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "2ba22ff158b6e941041f9460eddd0944", "score": "0.5991409", "text": "@Override\n public void operation() {\n \n }", "title": "" }, { "docid": "afc2a2ef708681a23da24526386fa543", "score": "0.5979341", "text": "@Override\r\n\tpublic void demo4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "951638c11e887c3f81bcc83306f4e413", "score": "0.5957303", "text": "@Override\r\n\tpublic void trunon() {\n\r\n\t}", "title": "" }, { "docid": "03a6fa2a6dc40f30e9f67797ea87ac0e", "score": "0.5950196", "text": "@Override\n\tvoid generate() {\n\t\t\n\t}", "title": "" }, { "docid": "86b315eabc97abef1ea325b454b16656", "score": "0.5934478", "text": "@Override\n\tpublic void veneno() {\n\t\t\n\t}", "title": "" }, { "docid": "4f4340003331db95a2feee0084056a02", "score": "0.59033096", "text": "@Override\n\tprotected void inicializar() {\n\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5902906", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.5886342", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "c16fc3362f80f1c0559c76bf68be5792", "score": "0.58815277", "text": "@Override\n\tpublic void affiche() {\n\t\t\n\t}", "title": "" }, { "docid": "a6c80a6456cfc74acaa16a2f9c3063c5", "score": "0.5881057", "text": "@Override\n\t\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "bf75e876384ccbd3516440064d914edb", "score": "0.585407", "text": "@Override\r\n\t\t\tpublic void process() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "22f2421f5b9cc11d1699c42857b4dfe9", "score": "0.5850562", "text": "protected void mo1582st() {\n }", "title": "" }, { "docid": "7d4da85943fb6a6ba61dac3c9ae538b3", "score": "0.58336115", "text": "@Override\n\tpublic void morir() {\n\t\t\n\t}", "title": "" }, { "docid": "d07c1f5c9d405e36c1ebf9e7e586652e", "score": "0.5830177", "text": "private Solution() {\n /** Not using this function**/\n }", "title": "" }, { "docid": "fab6f4103beb4667b90da1eb3672a4fa", "score": "0.5821835", "text": "@Override\n\tprotected void update() {\n\n\t}", "title": "" }, { "docid": "2be71c02c2e214eecbe2c8bd5dfe8cb0", "score": "0.58195674", "text": "@Override\n\tpublic void fortify() {\n\t\t\n\t}", "title": "" }, { "docid": "4112f041d618773e927eaf69a897467b", "score": "0.5817743", "text": "@Override\r\n\tpublic void tempup() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d1236089c8974701d0acd37b2cad6d5b", "score": "0.5809914", "text": "@Override\n\tpublic void init(){\n\t\t\n\t}", "title": "" }, { "docid": "8d9539007d174aa71cae3fdbfe4952c6", "score": "0.5801801", "text": "@Override \n\tpublic void init() {\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.5793788", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "bcd5f0b16beb225527894894dcaf774f", "score": "0.5789414", "text": "@Override\n\tprotected void update() {\n\t\t\n\t}", "title": "" }, { "docid": "5243b8d363dba36edfd9e64eb96cc9d5", "score": "0.57880706", "text": "@Override\n public int getStatus() {\n return 0;\n }", "title": "" }, { "docid": "b096eae650ba80789eb6446d859169a3", "score": "0.5776792", "text": "protected void mo1586sx() {\n }", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "17cb0676e79dae45623dcbdd6cf2af58", "score": "0.5773822", "text": "@Override\n\tpublic void update() {\n\t\t// TODO Auto-generated method stub\n\n\t}", "title": "" }, { "docid": "849edaa5bbcc7511e16697ad05c01712", "score": "0.57732296", "text": "@Override\n\tpublic void avanzar() {\n\t\t\n\t}", "title": "" }, { "docid": "6c897821a3b00faa6e582b1c5bd5b3c6", "score": "0.57677484", "text": "@Override\r\n\tpublic void direksiyon() {\n\t\t\r\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "81ea0647fff57e17ec5107049b4dbf8b", "score": "0.57594514", "text": "@Override\n public int size() {\n return 1;\n }", "title": "" }, { "docid": "535ccad74dc29933b6b48fea680ba27c", "score": "0.5755988", "text": "@Override\r\n\tpublic void operacion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1985dddb6264adc2fb069a687b25f36b", "score": "0.57541007", "text": "@Override\n\tpublic void groom() {\n\t\t\n\t}", "title": "" }, { "docid": "33572cd017818797318a53dbacbc00b9", "score": "0.57530975", "text": "@Override\r\n\t\t\tpublic void initialize() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a8b768dae1b52549249069e4d6a9253f", "score": "0.57492036", "text": "@Override\n public int getType() {\n return 0;\n }", "title": "" }, { "docid": "b6c53604ad2f38e9cacf958a442de4cf", "score": "0.57409", "text": "@Override\n\tprotected void initAfterData() {\n\n\t}", "title": "" }, { "docid": "734b1972ec29b58535c294e3962d017d", "score": "0.5736822", "text": "@Override\n\tpublic void generar() {\n\t\t\n\t}", "title": "" }, { "docid": "4f5334e4c63e1b16e38cf957e8576a25", "score": "0.5735921", "text": "@Override\n\tpublic void getHaned() {\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "a7ae27b45bb1a02a96ba4232264be825", "score": "0.57315516", "text": "@Override\n\tpublic void embarcar() {\n\t\t\n\t}", "title": "" }, { "docid": "c6e40448cb261fef3ee1fc3a1f5373f0", "score": "0.57304126", "text": "@Override\n\tpublic void operation() {\n\t\t\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "ba3ff1d644c6b502f46e78f3112e984c", "score": "0.57151", "text": "@Override\r\n\tpublic void toss() \r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "a1a79ff63f3eb784a0134fc70f7de913", "score": "0.57141805", "text": "@Override\n\tpublic void initdata() {\n\n\t}", "title": "" }, { "docid": "20aa3abef3af4ea8bcf5e834227be04c", "score": "0.57137775", "text": "@Override\n\tpublic void Pessoa() {\n\t\t\n\t}", "title": "" }, { "docid": "6894ea3aa25d3dee3c3dd8331b9a9cdd", "score": "0.57120746", "text": "@Override\n\t public int correr() {\n\t return 7;\n\t }", "title": "" }, { "docid": "d7405dbb7f385c28de1f97859172342b", "score": "0.5705621", "text": "@Override\n\tpublic void affiche() {\n\t}", "title": "" }, { "docid": "f9fa4d6203b441d4a00a824c3219ddb2", "score": "0.5704342", "text": "@Override\n\tprotected void doOperate() {\n\n\t}", "title": "" }, { "docid": "b2858312446172fa25a799c5367d2043", "score": "0.56896037", "text": "Smelting(){\r\n\r\n\t\t}", "title": "" }, { "docid": "2d9072b54f55f18557f92b99be58ec2f", "score": "0.56886935", "text": "@Override\r\n public String toString() {\n\treturn null;\r\n }", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "af5603f291fb4fc9dd83e46e0602225b", "score": "0.56868714", "text": "@Override\r\n\tpublic void demo3() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c937f9289f415cfdd7aefc5d621d0867", "score": "0.56740177", "text": "@Override\n protected void inicializar() {\n }", "title": "" }, { "docid": "e8efac2ee01f452014413fb75d28b3a6", "score": "0.5659524", "text": "@Override\r\n\tpublic void initState() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "1857996533d34551ac38dd34ec5213a3", "score": "0.56573755", "text": "public void koniecReplikacie() {\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" } ]
1c54c890a548930e25fd88e7b34ec57c
Sets the point's continuous coordinates
[ { "docid": "1552eddb6daa8c99525be580b289bc1e", "score": "0.0", "text": "public void setX(double[] x){\n\tif (x == null){\n\t dimCon = 0;\n\t cooCon = null;\n\t}\n\telse{\n\t dimCon = x.length;\n\t cooCon = new double[dimCon];\n\t System.arraycopy(x, 0, cooCon, 0, dimCon);\n\t}\n }", "title": "" } ]
[ { "docid": "0343364df09e50954731b59a72819115", "score": "0.67667425", "text": "public void setPoint(Double val);", "title": "" }, { "docid": "a25f29469004062b169cc32f6142c896", "score": "0.67291343", "text": "public void setStart(Point p) {\n\n\t\tx1 = p.x;\n\t\ty1 = p.y;\n\t}", "title": "" }, { "docid": "79db6d708b35f78fb1f08f7dc99c501f", "score": "0.6589543", "text": "public void setPoint(final int v) {\n point = v;\n }", "title": "" }, { "docid": "5d1f0edc05011252aae5e2b32bbe14b2", "score": "0.6529898", "text": "void setXY(int xCoord, int yCoord);", "title": "" }, { "docid": "0ef8e5b1a59aadd00b5a1ad725ff46cb", "score": "0.64291894", "text": "public void setSetpoint(double setpoint);", "title": "" }, { "docid": "5a14102ef91a4ad0b1790817adfd9769", "score": "0.64003855", "text": "public void setX (double x) {\r\n xCoord = x;\r\n }", "title": "" }, { "docid": "fb4069b94124e6db7b37f4e33e98935e", "score": "0.6398728", "text": "public void setXY(int x , int y){\r\n this.x = xd = x;\r\n this.y = yd = y;\r\n }", "title": "" }, { "docid": "fbbd043091dd1e570ce2126f9a33188b", "score": "0.6369479", "text": "public void setStart(Point p){\n setStart(p.x, p.y);\n }", "title": "" }, { "docid": "5b2a7fe3d02248c4f3e7e56256b10c9a", "score": "0.63560617", "text": "public void setXY(double x, double y) {\r\n this.x = x;\r\n this.y = y;\r\n }", "title": "" }, { "docid": "a79a37b211221e9ff482ab50e15767e4", "score": "0.6338237", "text": "public void setPxy(int x, int y) {\n\t\tset = true;\r\n\t\tpx = x;\r\n\t\tpy = y;\r\n\t}", "title": "" }, { "docid": "7954c577fea6ff3807ab1fc687ac00c5", "score": "0.63318896", "text": "public void setPoint(Point p) {\n\t\tthis.p = p;\n\t}", "title": "" }, { "docid": "b9e8ab09a94cf94b8c07446f27730c09", "score": "0.6315344", "text": "private void setLoc(Point point) {\n\t\tthis.x = (int) point.getX();\n\t\tthis.y = (int) point.getY()-1;\n\t\tstartingPoint = point;\n\t}", "title": "" }, { "docid": "44056d51612114e7703406cda2dc6f93", "score": "0.6301588", "text": "public void setPoints(AbstractDataset x, AbstractDataset y);", "title": "" }, { "docid": "b6ad9a161e5898f254767edadaaeea14", "score": "0.62938803", "text": "public void setPoint(int i, double x, double y) {\n\t\tsetPoint(i, new PointROI(x, y));\n\t}", "title": "" }, { "docid": "adf25cdeaa268cdec896b248900ef889", "score": "0.6292668", "text": "public void setStart(double x, double y){\n x1 = x;\n y1 = y;\n }", "title": "" }, { "docid": "c5868502dfbc296deb5be047ff12422c", "score": "0.628843", "text": "public void setStartPoint(PointXY p) {\n\t\tthis.startPoint.setLocation(p);\n\t}", "title": "" }, { "docid": "33bbe7dba5b1071fb95f31d80be65029", "score": "0.62773365", "text": "public void setPosition(Point p) {\n\t\tthis.p = p;\n\t\tsetCurrent();\n\t}", "title": "" }, { "docid": "4eb016bb1183e388115949b43c224103", "score": "0.6265027", "text": "public void setPointOne(Point p)\n\t{\n\t\tthis.pointOne = p;\n\t}", "title": "" }, { "docid": "468df8337d9a638e771ea852970bf7a9", "score": "0.6262388", "text": "public void setPoint(Integer point) {\n this.point = point;\n }", "title": "" }, { "docid": "78188e2b549d801acb7c7bca78a26cdb", "score": "0.6259565", "text": "public void setCoord(Coord coord);", "title": "" }, { "docid": "137471cf48cbccd227606ef054f5475c", "score": "0.62224275", "text": "public void setLocation(Point point);", "title": "" }, { "docid": "9dc668a9fb230ffd6cc4d2df6dbdb5ae", "score": "0.62009686", "text": "public void setxPos(double x){ xPos = x;}", "title": "" }, { "docid": "97cc04892409da552904b4947aa7b095", "score": "0.6191298", "text": "public void setPointAt(Point p, int i) {\n willChange();\n fPoints.setElementAt(p, i);\n if (spline != null) {\n spline.setPoints(fPoints);\n }\n changed();\n }", "title": "" }, { "docid": "5dac82ff525d8f914b36fe11580e7088", "score": "0.6184724", "text": "public void setCoordinates(int x, int y) {\n if(x >= 0 && y>= 0) {\n this.x = x;\n this.y = y;\n }\n else{\n this.x=0;\n this.y=0;\n }\n }", "title": "" }, { "docid": "e0ee6c0dbdbbab8ac4452efa34aa791e", "score": "0.61654603", "text": "@Override\n\tpublic void setPoint(int i, IROI point) {\n\t\tif (i == 0) {\n\t\t\tsetPoint(point.getPointRef());\n\t\t} else {\n\t\t\tpts.set(i, point instanceof PointROI ? (PointROI) point : new PointROI(point.getPointRef()));\n\t\t}\n\t\tsetDirty();\n\t}", "title": "" }, { "docid": "be4b2c8ccd6f6bb33245a71e1af29640", "score": "0.6158011", "text": "public void setXY(int xx,int yy){\r\n\t\tx=xx;\r\n\t\ty=yy;\r\n\t}", "title": "" }, { "docid": "8dae67d4efc378192389c95c5ed1e1dc", "score": "0.6140687", "text": "public void set(double x, double y) {\n this.x = x;\n this.y = y;\n }", "title": "" }, { "docid": "52f2a134ab3f7cda57194e27e1b05041", "score": "0.61321914", "text": "public void setXY(int x, int y)\n {\n this.x = x;\n this.y = y;\n }", "title": "" }, { "docid": "0633fe2a93893a4bb470f5226f65d5c6", "score": "0.610727", "text": "public void setPosition(final Point point) {\n setPosition(point.x, point.y);\n }", "title": "" }, { "docid": "2172e96b4669605e7ef0cb0a71536c7c", "score": "0.61014843", "text": "@Override\n public void setLocation(Point point)\n {\n setLocation(point.x, point.y);\n }", "title": "" }, { "docid": "e6c263b1cb7142e18559ed53f98e0767", "score": "0.6099155", "text": "private void setCoordinates() {\n step_1a();\n resize_andSubstates(sChart.state);\n }", "title": "" }, { "docid": "c8ed7890fadddd25123645f1b8b2ce13", "score": "0.607658", "text": "public void setPosition(double x, double y){\n setX(x);\n setY(y);\n }", "title": "" }, { "docid": "e123121b5ed75f4fadad0a82f1fe50bd", "score": "0.6072097", "text": "public void setEnd(Point p) {\n\n\t\tx2 = p.x;\n\t\ty2 = p.y;\n\t}", "title": "" }, { "docid": "59a635f4d8b22269d28ca0452589e85a", "score": "0.60716414", "text": "public void setPt(){}", "title": "" }, { "docid": "5b7fe2fcade6e7a1b0c73fc30c7233ca", "score": "0.6053079", "text": "public void setPoint(Point point) {\n\t\tPosition position = new Position();\t\t\n\t\t// clear position list just to be sure you are only adding one point\n\t\tposition.getPoint().clear();\n\t\tposition.getPoint().add(point);\n\t\tsetPosition(position);\n\t}", "title": "" }, { "docid": "37fb8b2ee3f0f429f9411bb522ead3b7", "score": "0.60508263", "text": "public El setXY(Point p) {\r\n makePositionable();\r\n Point pts = translatePoints(p);\r\n if (p.x != Style.DEFAULT) {\r\n setLeft(pts.x);\r\n }\r\n if (p.y != Style.DEFAULT) {\r\n setTop(pts.y);\r\n }\r\n return this;\r\n }", "title": "" }, { "docid": "64baca7068683699f78410bb40a31f9c", "score": "0.6039468", "text": "public void setLocation(Point p) {\n\t\tthis.x = p.x;\n\t\tthis.y = p.y;\n\t}", "title": "" }, { "docid": "57575863ae83fae7bf4e6fa02a4c42a3", "score": "0.6013923", "text": "public void setPos( int x, int y);", "title": "" }, { "docid": "4b31a2e6f8a25da8f6b25ced32c06edd", "score": "0.60079634", "text": "public void setCoords(double x, double y)\r\n\t{\r\n\t\tcacheValid = false;\r\n\t\tthis.xpos = x;\r\n\t\tthis.ypos = y;\t\t\r\n\t}", "title": "" }, { "docid": "6a361dfbe6ec1460eaa68a45a29a6b0f", "score": "0.59945095", "text": "public void setStart(Point p) {\n start = p;\n changed = true;\n }", "title": "" }, { "docid": "5bee82ebb08ef4f6c21ef50c4677d865", "score": "0.598769", "text": "public void setPoints(double fromX, double fromY, double toX, double toY) {\n this.fromX = fromX;\n this.fromY = fromY;\n this.toX = toX;\n this.toY = toY;\n }", "title": "" }, { "docid": "1b6fc3899b3e45aa7be2d05eec8d5a02", "score": "0.5968021", "text": "public void setXY(double x, double y) {\n TTrack track = getTrack();\n if (track.isLocked()) return;\n if (rgbRegion.isFixedPosition()) {\n RGBStep step = (RGBStep) rgbRegion.steps.getStep(0);\n step.getPosition().setLocation(x, y); // set location of step 0\n step.erase();\n rgbRegion.refreshStep(RGBStep.this); // set location of this step\n rgbRegion.clearData(); // all data is invalid\n } else {\n setLocation(x, y);\n rgbRegion.keyFrames.add(n);\n dataValid = false; // this step's data is invalid\n }\n repaint();\n track.support.firePropertyChange(\"step\", null, n); //$NON-NLS-1$\n }", "title": "" }, { "docid": "3ece9ece747b03b522c217b00ac2be8d", "score": "0.596234", "text": "public void setPosition(double px, double py){\r\n\tthis.x = px;\r\n\tthis.y = py;\r\n}", "title": "" }, { "docid": "3545ba097411add729e76ff574a715cd", "score": "0.5950804", "text": "private void setPoints(int pts){\r\n this.points = pts;\r\n }", "title": "" }, { "docid": "5387b4c89c2804345d2a160896db5825", "score": "0.59502935", "text": "public void setInitialPos(double x, double y){\n this.x = x;\n this.y = y;\n }", "title": "" }, { "docid": "59ce763402f96c30de07d3ea020050c5", "score": "0.5947903", "text": "public void setPosition(BoardPoint point)\n\t{\n\t\tposition = point;\n\t}", "title": "" }, { "docid": "640fc48752353149c1e4c1fa650f1be1", "score": "0.59441364", "text": "public void setX(double x){\n\t\tthis.xPos=x;\n\t}", "title": "" }, { "docid": "25ad1161d3ec2089c6a1856631e4e6e4", "score": "0.5943397", "text": "public void setOriginPoint(PointF origin) {\n startPoint = origin;\n invalidate();\n }", "title": "" }, { "docid": "06522fa6a0514f4d5db7b48532e78f63", "score": "0.5936065", "text": "public void setPosition(double x, double y){\n\t\tthis.x_pos = x;\n\t\tthis.y_pos = y;\n\t}", "title": "" }, { "docid": "51f0733b3a41845d5d7ea6f1d677cd31", "score": "0.59160423", "text": "public void setPosition(double x, double y) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}", "title": "" }, { "docid": "cdbba90fdc7c75192e4e6a1b85791036", "score": "0.5914898", "text": "public void setLoc(Point p){\n\t\tcenter = p;\n\t}", "title": "" }, { "docid": "8b9a71329d15cdf7f7e5c8533160ffdd", "score": "0.5901108", "text": "public void set(double x, double y) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}", "title": "" }, { "docid": "5c3ac7d180a5d524f2c16f11d7067712", "score": "0.5897393", "text": "@Override\n public void setLocation(Point2D mousePoint) {\n Line2D.Double auxLine = (Line2D.Double) myShape;\n Point p2aux = new Point((int) (auxLine.x2 - auxLine.x1), (int) (auxLine.y2 - auxLine.y1));\n \n auxLine.setLine(mousePoint, new Point((int)mousePoint.getX()+p2aux.x, (int)mousePoint.getY()+p2aux.y));\n }", "title": "" }, { "docid": "d48f9a2af41791c93e670c36da5fbcee", "score": "0.58944887", "text": "public void setCoords(ArrayList<Point> p){\n this.coords = p;\n }", "title": "" }, { "docid": "a82998e23ba52d5c9103b43d928c1dcd", "score": "0.5887694", "text": "public void setPosition(float x, float y) {\n point.setPosition(x + position.x - offset, y + position.y - offset);\n }", "title": "" }, { "docid": "57a907e287980437371c0ee8173f638e", "score": "0.58840847", "text": "public final void setPosition(final Point p) {\r\n position.setAbsis(p.getAbsis());\r\n position.setOrdinat(p.getOrdinat());\r\n }", "title": "" }, { "docid": "ddc0b37ee40e29e6a053c87d7d6eab72", "score": "0.58820057", "text": "public void setPointedAt( floatPoint2D fpt )\n {\n //set the cursor position on the view component\n ((IViewComponent2D)ivc).setPointedAt( fpt ); \n }", "title": "" }, { "docid": "ea88268b20e7dbe0cc37997cc42f5162", "score": "0.5878209", "text": "public void setXY(float x, float y) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}", "title": "" }, { "docid": "4143e5c51c6e02c9427d05c858507638", "score": "0.5877688", "text": "public El setXY(int x, int y) {\r\n return setXY(new Point(x, y));\r\n }", "title": "" }, { "docid": "552955132a2a3534561ce9d46fdd6cd7", "score": "0.5873896", "text": "public void setPosition(float x, float y){\n this.x = x - this.width/2;\n this.y = y - this.height/2;\n }", "title": "" }, { "docid": "ea62c99d49dc337958daf61b7528d895", "score": "0.5865391", "text": "public DataPoint() {\r\n\t\tthis.x = 0; this.y = 0; this.ey = 0;\r\n\t}", "title": "" }, { "docid": "807ffebfb8fc22021e19841257e7f84c", "score": "0.5858689", "text": "public void Point(double x, double y, Color color) {\n gc.setFill(color);\n gc.fillOval(x - 5, y - 5, 10.0, 10.0);\n }", "title": "" }, { "docid": "cdf09e40bf5b2d19f03eb073e8a5b02e", "score": "0.58559865", "text": "public void setEnd(Point p){\n setEnd(p.x, p.y);\n }", "title": "" }, { "docid": "487a806f74134be0e807aa283b3976aa", "score": "0.58502716", "text": "@Override\n public void onPointPositionChange(float x, float y) {\n mBaseX = x;\n mBaseY = y;\n calculatePath();\n }", "title": "" }, { "docid": "714a1ed517ba251b1809af7a14a9f1ea", "score": "0.58444273", "text": "public void setX(int x) {\r\n\t\r\n\t\tcoordinateX = x;\r\n\t\r\n\t}", "title": "" }, { "docid": "335944870c87b13dff8f5a5505346988", "score": "0.5842526", "text": "public void set(final double x, final double y)\n\t{\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}", "title": "" }, { "docid": "eb5bcfc3430e784e45c02efafd064ec4", "score": "0.58391213", "text": "public void setPoint(Vector3D point) {\n\t\tthis.point = point;\n\t}", "title": "" }, { "docid": "443129cbfdecee068bc036106b214f90", "score": "0.5836443", "text": "@Override\n public void setCoordinates(int xPos, int yPos) {\n this.oldX = this.xPos;\n this.oldY = this.yPos;\n this.xPos = xPos;\n this.yPos = yPos;\n }", "title": "" }, { "docid": "e41ef914a1e61fd7a3314c9e147b27e2", "score": "0.5831998", "text": "public void setPosition(Vector position) {\n\t\tarea.transform(AffineTransform.getTranslateInstance(-this.position.x, -this.position.y));\r\n\t\tarea.transform(AffineTransform.getTranslateInstance(position.x, position.y));\r\n\t\tthis.position = position;\r\n\t}", "title": "" }, { "docid": "44030cc399eaeb2d58d6f310db9ae8b3", "score": "0.58230084", "text": "public void setCoordinates(int x, int y) {\n this.xPosition = x;\n this.yPosition = y;\n }", "title": "" }, { "docid": "5bdec0f6507b090b2d14fb11c2979ab5", "score": "0.58129936", "text": "public void setXY(int x, int y) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}", "title": "" }, { "docid": "8c1a9c5df1125fb88e5d9197dc5dc5e2", "score": "0.5810001", "text": "public void setSetPoint(double setPoint) {\n if (isBounded) {\n this.setPoint = MathUtils.clip(setPoint, lowerBound, upperBound);\n } else {\n this.setPoint = setPoint;\n }\n }", "title": "" }, { "docid": "9b159990ed131e858acd6be5c44c027d", "score": "0.58087367", "text": "public void setPoints(int points) {\n\t\tcurrentPoints = currentPoints + points;\n\t}", "title": "" }, { "docid": "5c565ee89521555c7a7cc8223cc76975", "score": "0.5801875", "text": "public void setXY(double new_x, double new_y) {\n setX(new_x);\n setY(new_y);\n }", "title": "" }, { "docid": "2e7b3dbcd752aa1c33ad7413a5161884", "score": "0.5797522", "text": "public void changeCoordinates(double x, double y) {\n this.x = x;\n this.y = y;\n }", "title": "" }, { "docid": "6ec55b6371227a86e5afd3690a5a2c00", "score": "0.5796564", "text": "public Point(final double xx,\r\n final double yy) {\r\n this.pc = new PointCarte(xx,\r\n yy);\r\n }", "title": "" }, { "docid": "4c58d47eb33a0f3549d8f9936d8942bd", "score": "0.57910126", "text": "void setPosition(float x, float y);", "title": "" }, { "docid": "6538f574ee1bca99eb35336797b14db6", "score": "0.57886076", "text": "public void setX(int x) {\n this.xcoordinate = x;\n }", "title": "" }, { "docid": "77c03c6967113befe5c9831c205b6d4b", "score": "0.57876116", "text": "public void setCoords(int x, int y) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}", "title": "" }, { "docid": "28b314611f741b4fae077237922087a0", "score": "0.57740587", "text": "public void set(Coordinate coordinates) {\r\n this.x = coordinates.y;\r\n this.y = coordinates.y;\r\n }", "title": "" }, { "docid": "76c06a24f933f6386ad61dd54f870581", "score": "0.57704914", "text": "public void setPoint(int anIndex, double aX, double aY)\n {\n _pnts[anIndex*2] = aX;\n _pnts[anIndex*2+1] = aY;\n shapeChanged();\n }", "title": "" }, { "docid": "fb45a4a157ccdb45e5e52c1bacf5ac94", "score": "0.57687503", "text": "public void setCoord(Point2D.Double coord) {\r\n\t\tthis.coord = coord;\r\n\t}", "title": "" }, { "docid": "8227901f563df0fa336ba953be3a2dcc", "score": "0.5755467", "text": "public void setCoord(Float x, Float y) throws OutOfMainAreaException{\n setX(x);\n setY(y);\n }", "title": "" }, { "docid": "7cce4704af83055ea866f3bd1cd13c71", "score": "0.57492566", "text": "public void setxPos(int xPos)//Set method for X coordinate\r\n {\r\n this.xPos = xPos;\r\n }", "title": "" }, { "docid": "39fb9bb134362c54f21ef54b87bb83dd", "score": "0.5744087", "text": "public void set (Point other)\n {\n color.set(other.color);\n offset = other.offset;\n }", "title": "" }, { "docid": "8c06cd7cd9f2fe03b1a70d0f42214c96", "score": "0.5743315", "text": "public void setX(double i) \t\t{ x = i; }", "title": "" }, { "docid": "44ffefc1855f9513f3a7c8ff1fa322b0", "score": "0.5739886", "text": "public void setPosition(int x, int y){\n changePosition(x-offsetX, y-offsetY);\n }", "title": "" }, { "docid": "c0e4976bc38db62a115061e683b66906", "score": "0.57353824", "text": "public void setPoint(Color c, boolean circ) {\n\t\tcolor =c;\n\t\tcircle =circ;\n\t}", "title": "" }, { "docid": "b7151c05b8449399e3a04553c1678718", "score": "0.57328856", "text": "public Points(int x , int y){\n set(x,y);\n }", "title": "" }, { "docid": "342cb3260a2f1b6a6c0102735da4acc7", "score": "0.5709514", "text": "public Points(){\n this.x = 0;\n this.y = 0;\n }", "title": "" }, { "docid": "a1b298fcc699eb8a65afef6f08ee9892", "score": "0.5708207", "text": "public void setCoordLat(double value) {\n this.coordLat = value;\n }", "title": "" }, { "docid": "885735729fc317cc5946546b551b25b8", "score": "0.5696256", "text": "public void set(int x ,int y){\n this.x = x;\n this.y = y;\n }", "title": "" }, { "docid": "11b286dc6aced010375fe0554ae56613", "score": "0.56949925", "text": "public Point(Point point) {\n this(point.coordinates);\n }", "title": "" }, { "docid": "8519fd07ffb7d153caaebb30067af17d", "score": "0.56888103", "text": "public void setXconstrained2D(double x){\n\t\tdouble b = y / this.x;\n\t\tthis.x = x;\n\t\ty = b*x;\n\t}", "title": "" }, { "docid": "0462e560559f7e517f3c7b95c9c819ed", "score": "0.5688239", "text": "public void setStartCoord(Coord c) {\n startCoord = c;\n }", "title": "" }, { "docid": "185bf23c03fd82431aa505c7d9c00a36", "score": "0.56829655", "text": "public void setPos( int x, int y)\n\t{\n\t xPos = x;\n\t yPos = y;\n\t}", "title": "" }, { "docid": "c09ab409aaa6c6077877c8929ac83460", "score": "0.5682461", "text": "public void setpointsJour(int point){\n\tsuper.setpointsJour(point);\n\t}", "title": "" }, { "docid": "9e4e55c56c466147e485a795027d5cca", "score": "0.5670911", "text": "public void setPoint(Point ajout) {\n this.x = ajout.x;\n this.y = ajout.y;\n this.isUpperOf = ajout.isUpperOf;\n this.isIntersectionOf = ajout.isIntersectionOf;\n }", "title": "" }, { "docid": "fdffd8a5313542b94467deed7c31d938", "score": "0.5668788", "text": "public void setLocation(Point p) {\n mouseLocation = p;\n }", "title": "" }, { "docid": "7370789438aa027c3c8aaa5d88b7f905", "score": "0.5664813", "text": "@Override\r\n\tpublic Circle UpdateCoords() {\n\t\tthis.x = this.point1.x;\r\n\t\tthis.y = this.point1.y;\r\n\r\n\t\treturn this;\r\n\t}", "title": "" }, { "docid": "f47bab8c45476a24108f53b39f0c5e5e", "score": "0.56627953", "text": "public void xsetCompassPoint(net.opengis.gml.CompassPointEnumeration compassPoint)\n {\n synchronized (monitor())\n {\n check_orphaned();\n net.opengis.gml.CompassPointEnumeration target = null;\n target = (net.opengis.gml.CompassPointEnumeration)get_store().find_element_user(COMPASSPOINT$0, 0);\n if (target == null)\n {\n target = (net.opengis.gml.CompassPointEnumeration)get_store().add_element_user(COMPASSPOINT$0);\n }\n target.set(compassPoint);\n }\n }", "title": "" } ]
caf33f7ea9ee409e861cba05be6fa6bc
Starts the system in normal mode (i.e. at main menu).
[ { "docid": "2aaeac6307a30478e1a971e3e2213c90", "score": "0.83753115", "text": "private void startNormalMode()\r\n\t{\r\n\t\tMenuGUI tvMenu = createTVMenu();\r\n\t\tMenuGUI mainMenu = createMainMenu( tvMenu );\r\n\t\t\r\n\t\tscreenManager.show(mainMenu);\r\n\t}", "title": "" } ]
[ { "docid": "d0e03ef63f37022335b74dd1106e55f3", "score": "0.7201933", "text": "public void start(){\n this.runMenu();\n }", "title": "" }, { "docid": "7fcf04741891385e341f27ebc467d491", "score": "0.7025917", "text": "public void startTerminal() {\n\t\tMainMenu mainMenu = new MainMenu(this);\n\t\tmMainMenu = mainMenu;\n\t\t \n\t}", "title": "" }, { "docid": "e60579227f222c806dca5bbcf18009c7", "score": "0.70057416", "text": "public void start()\r\n\t{\r\n\t\tdisplayMainMenu();\r\n\t}", "title": "" }, { "docid": "5eecc743278d32e200061d4675ab10eb", "score": "0.68162864", "text": "public static void Start() {\n Menu.title();\n while(true){\n Menu.Instructions();\n int instruction = App.promptOption();\n try {\n actions[instruction].Perform();\n }catch (NullPointerException | NoEntryDB | SQLException e){\n e.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "714acca265ff96ef29bed9ebc4f3a57c", "score": "0.6744247", "text": "public void start() {\n menuFlow();\n }", "title": "" }, { "docid": "d1db980d2a8b590758f54f51ebaadb47", "score": "0.67017037", "text": "public void start() {\n model.on();\n view.disableStartMenuItem();\n view.enableStopMenuItem();\n }", "title": "" }, { "docid": "6efe9b0a21d209dc4f3d26c8f2f475ff", "score": "0.6495313", "text": "private void startMachine() {\n\t\tIntent machineIntent = new Intent(this, MainActivity.class);\n\t\tthis.startActivity(machineIntent);\n\t}", "title": "" }, { "docid": "ea91d575257be6c3b50e12fa1a451695", "score": "0.6369898", "text": "public void initialSystem();", "title": "" }, { "docid": "5dbefed4840e871e96495e2ffc06b297", "score": "0.636388", "text": "public void startCurrentGame() {\r\n if ( server != null ) // Checking this condition is not neccessary, action of menu causing invoking of this method is possible only when local server running...\r\n server.startCurrentGame();\r\n }", "title": "" }, { "docid": "85a63147a809fd440a76501f66deb526", "score": "0.63554233", "text": "public void start() throws IOException {\n myGameOver = false;\n myGameTicks = 0;\n // Now that the timer and softkeys are ready, \n // this screen can be displayed (since the menu is \n // not shown initially)\n myDisplay.setCurrent(this);\n\n }", "title": "" }, { "docid": "4936ff810f4a7b8679163e58644eb055", "score": "0.63448185", "text": "public void start() {\n BaseMenu nextMenu = entryMenu;\n if (autoCommit)\n do {\n nextMenu = nextMenu.execute();\n Manager.getInstance().commit();\n } while (!(nextMenu instanceof Quit));\n else\n do {\n nextMenu = nextMenu.execute();\n } while (!(nextMenu instanceof Quit));\n }", "title": "" }, { "docid": "5d9904ba40aecffe29f61c99e7619659", "score": "0.6326506", "text": "private static void launch() {\n // create the system bundle\n systemBundle = new SystemBundle();\n systemBundle.state = Bundle.STARTING;\n }", "title": "" }, { "docid": "34a0ae730828d22b397a6b3cae3d4b54", "score": "0.6315713", "text": "public void display(final Main main) {\r\n\t\tsetFullScreenMode(true);\r\n\t\tmain.setCurrent(this, true);\r\n\t\tfinal Thread thread = new Thread(new Runnable() {\t\t\t\r\n\t\t\tpublic void run() {\r\n\t\t\t\tfinal long begin = System.currentTimeMillis();\r\n\t\t\t\ttry {\r\n\t\t\t\t\twhile (!go) {\r\n\t\t\t\t\t\tsynchronized (splashImage) {\r\n\t\t\t\t\t\t\tsplashImage.wait(5000L);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\twhile (System.currentTimeMillis()-begin<4000L) {\r\n\t\t\t\t\t\tThread.sleep(500L);\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t// ignore\r\n\t\t\t\t}\r\n\t\t\t\ttry {\r\n\t\t\t\t\tmain.startApp();\r\n\t\t\t\t} catch (MIDletStateChangeException e) {\r\n\t\t\t\t\t// ignore\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tthread.start();\r\n\t}", "title": "" }, { "docid": "926aed384e7ec5f93eeb7b31e961e651", "score": "0.6313596", "text": "public void start_normal(View v) {\n MainActivity.normal();\n Intent i = new Intent(StartActivity.this, MainActivity.class);\n startActivity(i);\n }", "title": "" }, { "docid": "df4773f170c64aecf8d6babff8c99674", "score": "0.6310468", "text": "public void start()\r\n {\r\n start(STATUS_ACTIVE);\r\n }", "title": "" }, { "docid": "3749ff3840c1cb097f443d999db4ed24", "score": "0.6293577", "text": "public void startMenu();", "title": "" }, { "docid": "5b08be8331e317480c23896aa56d38d8", "score": "0.6240633", "text": "protected void startApp() {\n\t\tLayar.setCurrent(from);\n\t}", "title": "" }, { "docid": "9a39e7f90d142349c3d0c5474b04f5b4", "score": "0.62399024", "text": "public void startup() {\n\tstart();\n }", "title": "" }, { "docid": "f2128c88cc442a678b1a3f61c918a2e8", "score": "0.6204237", "text": "public static void main(String[] args) { // main method\n openMenu();\n }", "title": "" }, { "docid": "6aa6e04f4af56f2e9b124d3616977211", "score": "0.61818695", "text": "private void launchMenu() {\n\t\tMenu menu = new Menu();\n\t\tMenuController menuController = new MenuController(menu);\n\t\tmenuView.setController(menuController);\n\t\tmenu.addObserver((MenuObserver) menuView);\n\t\tmenuView.display();\n\t}", "title": "" }, { "docid": "43c609caaf0c91c6faa30c27aecbee59", "score": "0.61720645", "text": "public void mainMenu() {\r\n\t\tmyStage.setScene(scnMenu);\r\n\t\tgameSpace.reset();\r\n\t}", "title": "" }, { "docid": "fd82350b05b531d51f2a7ef17bccbd29", "score": "0.6167184", "text": "protected void startStopStandaloneEM(){\n\t \tstartStandaloneEM();\n\t \tstopStandaloneEM();\n\t }", "title": "" }, { "docid": "e179ddc1e5abc94187e881b99c0218d8", "score": "0.6145116", "text": "@Override\n\tpublic void start() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"0 : Create movie\");\n\t\tSystem.out.println(\"1 : Update movie\");\n\t\tSystem.out.println(\"2 : Back to previous menu\");\n\t\t\n\t\tint choice = this.getInputChoice(0, 2);\n\t\tthis.run(choice);\n\t}", "title": "" }, { "docid": "56d0c4f26b438482e6c5460cdff97c95", "score": "0.61396545", "text": "private void showStartScreen() {\n mainMenuStub.setVisibility(View.VISIBLE); \n }", "title": "" }, { "docid": "13e656c78e0d5eafb1aff31bf466236a", "score": "0.6132312", "text": "public static void showMainMenu(){\n Menu.main();\n }", "title": "" }, { "docid": "7a003df0d30440300574e0b5c47cd639", "score": "0.6113367", "text": "private void runSystem() {\n String command;\n init();\n while (keepGoing) {\n displayMenu();\n while (true) {\n command = input.next();\n command.toLowerCase();\n if (DEFAULT_COMMAND.contains(command) && command.length() == 1) {\n break;\n } else {\n System.out.println(\"Invalid input. Please select once again.\");\n }\n }\n processCommand(command);\n }\n }", "title": "" }, { "docid": "42872a53d93306da14393b2688f35cfa", "score": "0.6077931", "text": "public void activateStart() { // go back to start menu\n\t\tboardModel.reset();\n\t\tboard.reset();\n\t\t\n\t\tboard.setActiveVisible(false);\n\t\tmainMenu.setActiveVisible(true);\n\t\tstate = GameState.nextState(state);\t\t\t\n\t}", "title": "" }, { "docid": "a07ef9dc21dc3254d90e82288a374636", "score": "0.6044795", "text": "private void startMainApplication()\r\n\t{\r\n\t\tVaadinIRC.getS().init(window);\r\n\t}", "title": "" }, { "docid": "c38dd5b521d184096ac5f87fe0b479f4", "score": "0.6042089", "text": "public void windowNormal() {\r\n getWindow().setWindowState(SmallAppWindow.WindowState.NORMAL);\r\n }", "title": "" }, { "docid": "8935535eafe381443d5f018655d62496", "score": "0.60351664", "text": "public static void main(String[] args) {\n displayMenu();\r\n\t}", "title": "" }, { "docid": "4437cabbfabdc47ee4887d36b625cfa6", "score": "0.6023326", "text": "public void autonomousInit() {\n shooter.enable();\n new SpinDown().start();\n SmartDashboard.putBoolean(\"Enabled\", true);\n if (teleop != null) {\n teleop.cancel();\n }\n autonomouse = (Command) chooser.getSelected();\n if (autonomouse != null) {\n autonomouse.start();\n }\n }", "title": "" }, { "docid": "92bcc936c1a199740033d5f3ad872562", "score": "0.59873563", "text": "public void startGame(){\n\t\tstartGame(false);\n\t}", "title": "" }, { "docid": "29b13fb72dbb96422c3534e3fa14a70b", "score": "0.5982309", "text": "public void startApp() {\n if (midletPaused) {\n resumeMIDlet();\n } else {\n initialize();\n startMIDlet();\n }\n midletPaused = false;\n }", "title": "" }, { "docid": "29b13fb72dbb96422c3534e3fa14a70b", "score": "0.5982309", "text": "public void startApp() {\n if (midletPaused) {\n resumeMIDlet();\n } else {\n initialize();\n startMIDlet();\n }\n midletPaused = false;\n }", "title": "" }, { "docid": "75fc8c7a188d847f29f8eb893760700f", "score": "0.59774905", "text": "@Override\n\tpublic void startMainMenu() {\n\t\tremoveNotif();\n\t\tif (layang != null) {\n\t\t\tlayang.release();\n\t\t}\n\t\tif (motors == null)\n\t\t\tmotors = MotorDataAdapter.readAllMotor(getApplicationContext());\n\t\tif (onPause)\n\t\t\treturn;\n\t\tmainmenuFragment.setDataMotor(motors);\n\t\tgetFragmentManager().beginTransaction()\n\t\t\t\t.replace(R.id.container, mainmenuFragment).commit();\n\t}", "title": "" }, { "docid": "b12a1e5a4085260958140a1a241c6354", "score": "0.5971982", "text": "protected void mainMenu() {\n\n\t\t/******************************************************************************/\n\t\t/* Wait for user command to execute next action. */\n\t\tdo {\n\t\t\tprintMenu();\n\n\t\t\ttry {\n\t\t\t\tAction action = readAction();\n\t\t\t\tif (action != null) {\n\t\t\t\t\tActionResult actionResult = action.performAction(this);\n\t\t\t\t\tswitch (actionResult) {\n\t\t\t\t\tcase CLOSE_SERVER:\n\t\t\t\t\t\treturn; // closes server\n\t\t\t\t\tcase NOTHING:\n\t\t\t\t\t\tcontinue; // continue looping menu\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tprintException(e);\n\t\t\t}\n\n\t\t} while (true);\n\t\t/******************************************************************************/\n\t}", "title": "" }, { "docid": "c64e0933826c0960f35f5bc99bfbc9ef", "score": "0.5968664", "text": "public void startProgram(){\n this.displayBanner();\r\n \r\n //get the players name\r\n String playersName = this.getPlayersName();\r\n \r\n //create new player\r\n Player player = ProgramControl.createPlayer(playersName);\r\n \r\n //display a customized welcome message\r\n this.displayWelcomeMessage(player);\r\n \r\n //display the main menu\r\n MainMenuView mainMenuView = new MainMenuView();\r\n mainMenuView.displayMenu();\r\n }", "title": "" }, { "docid": "5f972465f152c502085b0a1ae2b267c6", "score": "0.59373504", "text": "public static void main(String[] args) throws IOException {\n\n new MainMenuScreen().show();\n\n\n\n }", "title": "" }, { "docid": "01ad813519d26a3e48308bac342c87da", "score": "0.5933253", "text": "@Override\n\tpublic void displayMenu() {\n\t\tSystem.out.println(\"P)ost Update\");\n\t\tSystem.out.println(\"E)xit to main\");\n\t}", "title": "" }, { "docid": "cbc1ac856d6c155635bab5a1d757ef61", "score": "0.591856", "text": "@FXML public void handleToMain()throws Exception{\r\n StartSale.killProcess();\r\n new StartMain().start();\r\n }", "title": "" }, { "docid": "cbc1f346552307773f70ac9280720a46", "score": "0.5915762", "text": "public void startApp()\n {\n if (midletPaused)\n resumeMIDlet();\n else\n {\n initialize();\n startMIDlet();\n //#ifdef DEBUG\n try\n {\n //commandAction(cmdConfirm, newProjectForm);\n } catch (Throwable t)\n {\n t.printStackTrace();\n }\n //#endif\n }\n midletPaused = false;\n }", "title": "" }, { "docid": "d53d273f3735ae2aa8ff415d487a7124", "score": "0.5908631", "text": "public void autonomousInit() {\n print(\"Entering autonomous mode\");\n\n // Use this command as the default ...\n Command autonomousCommand = new DriveForwardAndBackward();\n if (autonomousCommandChooser != null) {\n // Decide via the SmartDashboard which autonomous command we should use ...\n try {\n Command selected = (Command)autonomousCommandChooser.getSelected();\n if (selected != null) autonomousCommand = selected;\n } catch (NullPointerException e) {\n // This happens when there is no SmartDashboard running\n }\n }\n print(\"Starting autonomous operation \" + autonomousCommand.getName() + \"...\");\n autonomousCommand.start();\n }", "title": "" }, { "docid": "b88653190dd0528ddff2df699dcf1bd0", "score": "0.58974636", "text": "@Override\n\tpublic void start() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"0 : Create a public holiday\");\n\t\tSystem.out.println(\"1 : List all public holidays\");\n\t\tSystem.out.println(\"2 : Delete a public holiday\");\n\t\tSystem.out.println(\"3 : Back to previous menu\");\n\t\tint choice = this.getInputChoice(0, 3);\n\t\t\n\t\tthis.run(choice);\n\t}", "title": "" }, { "docid": "5ba0d9b7edeeef403252e5e876598b41", "score": "0.5897351", "text": "private static void displayMainMenu() {\n\t\tSystem.out.println(\"...........Main Menu......\");\n\t\tSystem.out.println(\"1.Add Mobiles to the System\");\n\t\tSystem.out.println(\"2.Sort Mobiles based on Model\");\n\t\tSystem.out.println(\"3.Update Price of Mobile\");\n\t\tSystem.out.println(\"4.Delete Mobile from the System\");\n\t\tSystem.out.println(\"5.Exit\");\n\n\t}", "title": "" }, { "docid": "6577106644f0c8756fdea167fbc2aacb", "score": "0.58768445", "text": "void start() {\n launch();\n }", "title": "" }, { "docid": "f2aec2ef1f41dcfeb52c478938ae1741", "score": "0.58692276", "text": "public synchronized void launch() {\n \t\t/* Return if framework already started */\n \t\tif (active) {\n \t\t\treturn;\n \t\t}\n \t\t/* mark framework as started */\n \t\tactive = true;\n \t\t/* Resume systembundle */\n \t\tif (Debug.DEBUG && Debug.DEBUG_GENERAL) {\n \t\t\tDebug.println(\"Trying to launch framework\"); //$NON-NLS-1$\n \t\t}\n \t\tsystemBundle.resume();\n \t}", "title": "" }, { "docid": "18fa15b222f4857aa2de77c2d6d3c81d", "score": "0.58686364", "text": "public void autonomousInit() {\n if (autonomousCommand != null) autonomousCommand.start();\n }", "title": "" }, { "docid": "474b4aaab9f8b198989289cb7a2eb66d", "score": "0.586718", "text": "public static void main(String[] args) {\n\t\trunMenu();\n\t}", "title": "" }, { "docid": "b10a988443091c5d10476060cdc4d745", "score": "0.58587253", "text": "public void start() {\n\t\t\n\t\tisRunning = true;\n\t\t\n\t\tstartTime = System.currentTimeMillis();\n\t\t\n\t\t// DEBUGGING SYSO\n\t\tSystem.out.println(\"start clicked\");\n\t}", "title": "" }, { "docid": "e14f42969af2dbe7d5636ae7cebbfc7b", "score": "0.5846738", "text": "public static void main(String[] args) {\n\t\trunMenu();\n\n\t}", "title": "" }, { "docid": "e14f42969af2dbe7d5636ae7cebbfc7b", "score": "0.5846738", "text": "public static void main(String[] args) {\n\t\trunMenu();\n\n\t}", "title": "" }, { "docid": "c8f48ef1b7dea08e21eb745165fa1098", "score": "0.5837948", "text": "private void starting(){\n\t\tswitch(cutterState){\n\t\tcase UNDEFINED: // program is in the start\n\t\t\tbreak;\n\t\tcase PERFORATION: // program paused in perforation\n\t\t\tbreak;\n\t\tcase FREE_RUN: // program paused on free run\n\t\t\tbreak;\n\t\tcase WORK_RUN: // program paused on cutting\n\t\t\tbreak;\n\t\tdefault:\n\t\t}\n\t}", "title": "" }, { "docid": "bea92e9f15b94f33791a019c237f9fb8", "score": "0.5835388", "text": "public void startProgram() {\n this.displayBanner();\n\n //prompt the player to enter their name Retrieve the name of the player\n String playersName = this.getPlayersName();\n\n //create and save the player object\n Player player = ProgramControl.createPlayer(playersName);\n\n //display a personalized welcome message this.displayWelcomeMessage(player);\n this.displayWelcomeMessage(player);\n\n //Display the main menu.\n MainMenuView Menu = new MainMenuView();\n Menu.display();\n }", "title": "" }, { "docid": "2471d7464d2e2badecf64cae46b4a7d2", "score": "0.58135104", "text": "@Override\n public void runOpMode() {\n robot.init(hardwareMap);\n\n\n // Wait for the game to start (driver presses PLAY)\n // Abort this loop is started or stopped.\n while (!(isStarted() || isStopRequested())) {\n idle();\n }\n\n }", "title": "" }, { "docid": "12e2c7073926cbbbcfc9d7ce1a81246d", "score": "0.57904124", "text": "public static void open() {\r\n open(8 + WINDOW_USER);\r\n }", "title": "" }, { "docid": "c07d935c6fb04a5175077771fba0fcb8", "score": "0.5773409", "text": "public void start_hard(View v) {\n MainActivity.hard();\n Intent i = new Intent(StartActivity.this, MainActivity.class);\n startActivity(i);\n }", "title": "" }, { "docid": "e2705191e9623f01270dca7e4f72bae7", "score": "0.5770026", "text": "void start() {\n\t\tSystem.out.println(\".....* \"+Gamename+\" *.....\");\n\t}", "title": "" }, { "docid": "d1d98b73a062364b3e219daeb180f25a", "score": "0.57683355", "text": "public static void main(String[] args) {\n startProgramm();\n\n }", "title": "" }, { "docid": "93b42be1782942c7e7d9380319c6b9d6", "score": "0.576572", "text": "public MainMenu() {\n boolean keepGoingMainMenu = true;\n String command;\n input = new Scanner(System.in);\n\n while (keepGoingMainMenu) {\n displayMenu();\n command = input.next();\n command = command.toLowerCase();\n\n if (command.equals(\"e\")) {\n keepGoingMainMenu = false;\n } else {\n processCommandDisplayMenu(command);\n }\n }\n }", "title": "" }, { "docid": "cb98bb03ee786268d8c1039289e1e2fe", "score": "0.5764736", "text": "public PokeDexStart() {\n new MainUI().setVisible(true); // create user interface\n }", "title": "" }, { "docid": "8904060fa47c6a427e5ce99b49522d40", "score": "0.57629645", "text": "public void autonomousInit() {\n if (autonomousCommand != null) {\n autonomousCommand.start();\n }\n }", "title": "" }, { "docid": "a24349388971ef7028f080edc956df23", "score": "0.5748958", "text": "public void userStart(){}", "title": "" }, { "docid": "4032fd963d2b5d36297ef954f987c705", "score": "0.5747579", "text": "public static void main(String[] args) {\n\t menu();\n }", "title": "" }, { "docid": "e7252557551d1aad5838135bb493c4d3", "score": "0.57439524", "text": "public boolean switchToNormalMode () \t\t\t\tthrows Exception;", "title": "" }, { "docid": "b7b9467ae3175d7325d0a4c12feb9974", "score": "0.57435554", "text": "public synchronized void Start () {\n\t\t// If the program is already running, then don't start it up!\n\t\tif (running)\n\t\t\treturn;\n\t\t\n\t\trunning = true; // Activates the main game loop\n\t\tthread = new Thread(this);\n\t\tthread.start(); // Calls the run method in the this class\n\t}", "title": "" }, { "docid": "c735d13b7c424598d4eecab36171539b", "score": "0.5737039", "text": "public void start() {\r\n\t\t// Nothing to do here.\r\n\t}", "title": "" }, { "docid": "28b569dd74e47adc76ba947dbc1b07e5", "score": "0.57317334", "text": "public static void main(String[] args) {\n\t\t\trunMenu();\n\n\t\t}", "title": "" }, { "docid": "28b569dd74e47adc76ba947dbc1b07e5", "score": "0.57317334", "text": "public static void main(String[] args) {\n\t\t\trunMenu();\n\n\t\t}", "title": "" }, { "docid": "7af3ee9699de337f54e299cbceee3df3", "score": "0.57315135", "text": "public Main()\n {\n setUp(false);//do the setup. boolean indicates if this is a new game or if it is a restart.\n }", "title": "" }, { "docid": "d6b0b0d308bf8816f9ce582130d3e743", "score": "0.5728953", "text": "public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n \t//ultrareceive.setAutomaticMode(true);\n \tsetDefaultCommand(new TankDriveCommand());\n }", "title": "" }, { "docid": "57501bb073f05001d7947b5ab8b801ea", "score": "0.57288575", "text": "public abstract void starten();", "title": "" }, { "docid": "11bcc38f65df0b7e034420742110c328", "score": "0.57273155", "text": "public void start(){ \r\n \r\n eControl.login( \r\n screen.login(\r\n eControl.getCodes(\r\n eControl.getAllEmployees() )) );\r\n\r\n home( eControl.getActualUserLevelNumber() );\r\n }", "title": "" }, { "docid": "5b5b372d4abcc64b49eceae304530982", "score": "0.572486", "text": "private void startGUIThread() {\n\t\t// set flag for controle all threads of application.\n\t\ttry {\n\t\t\t//remove CourseSessionWindow and add gui for view all tools activities.\n\t\t\tMainWindow mainWindow=MainWindow.getController();\n\t\t\tmainWindow.setMenuItemText();\n\t\t\tmainWindow.setMenuText();\n\t\t\tmainWindow.setMenuText1();\n\t\t\tmainWindow.getDesktop().removeAll();\n mainWindow.getDesktop().setBackground(new java.awt.Color(220,220,220));\n mainWindow.getDesktop().add(new JoinSessionPanel(),BorderLayout.CENTER);\n mainWindow.getContainer().add(mainWindow.getDesktop(),BorderLayout.CENTER);\n mainWindow.getContainer().validate();\n mainWindow.getContainer().repaint();\n\t\t}catch(Exception e){}\n\t}", "title": "" }, { "docid": "350b53d25e9ef049a87a205758193dd5", "score": "0.5720026", "text": "public void start() {\n backend.createDB();\n MainController controller = new MainController();\n controller.init(backend).setVisible(true);\n }", "title": "" }, { "docid": "82de37fd019e396c021844f73a2e5554", "score": "0.57130194", "text": "private void startApplication() {\n System.out.println(\"Hi! You entered to restaurant database\");\n System.out.println(\"Select you next step\");\n System.out.println(\"d - work with dish information\\ne - work with info about employee\");\n System.out.println(\"m - work with menu information\\no - work with info about orders\");\n System.out.println(\"rm - work with ready meals information\\nw - work with info about ingredients in warehouse\");\n System.out.println(\"q - to leave application\");\n }", "title": "" }, { "docid": "e77d35795c5a09c03c3b14a969f879ca", "score": "0.5712687", "text": "public static void main(String[] args) {\r\n mainMenu();\r\n }", "title": "" }, { "docid": "21582b149a93d4b10191a5d5e82fd151", "score": "0.57059836", "text": "public static void main(String[] args) {\n changeDesktop();\r\n }", "title": "" }, { "docid": "535149d545b59a7463bf2ca98b819867", "score": "0.5705554", "text": "protected void startStandaloneEM() {\n\t try {\n\t startEM(STANDALONE_EM_ROLE_ID);\n\t \tLOGGER.info(\"Standalone EM is started\");\n\t } catch (Exception e) {\n\t \tLOGGER.error(\"Standalone EM failed to start\");\n\t \tAssert.assertTrue(false);\n\t \te.printStackTrace();\t \n\t }\n\t }", "title": "" }, { "docid": "95fa187217f1b00290a3fd0c5ff5204a", "score": "0.5703932", "text": "public void start() {\n\t\tdo {\n\t\t\tselection = menu.select();\n\t\t\tif (Button.ENTER.isDown()) {\n\t\t\t\tButton.ENTER.waitForPressAndRelease();\n\t\t\t\tswitch (selection) {\n\t\t\t\tcase 0: {\n\t\t\t\t\tpc.startCalibration();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase 1: {\n\t\t\t\t\tLCD.clear();\n\t\t\t\t\twidth = setWidth();\n\t\t\t\t\tButton.ENTER.waitForPressAndRelease();\n\t\t\t\t\theight = setHeight();\n\t\t\t\t\trect = new Rectangle(width, height);\n\t\t\t\t\trect.plot(pc);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase 2: {\n\t\t\t\t\tLCD.clear();\n\t\t\t\t\twidth = setWidth();\n\t\t\t\t\tship = new Ship(width);\n\t\t\t\t\tship.plot(pc);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase 3: {\n\t\t\t\t\tLCD.clear();\n\t\t\t\t\tLCD.drawString(\"Press ESC\", 0, 0);\n\t\t\t\t\tButton.ESCAPE.waitForPress();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} while (!Button.ESCAPE.isDown());\n\n\t}", "title": "" }, { "docid": "65a96cd51ea8fe67944318d64ace8b9c", "score": "0.5701358", "text": "public void start() {\n\t\tthis.run = true;\n\t}", "title": "" }, { "docid": "2cc6971b55095fc12269619ba5acac42", "score": "0.56984454", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu)\n\t{\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\tmMenu = menu;\n\t\tsetStartStopMenu(!isMyServiceRunning(FallDetectionService.class));\n\t\treturn true;\n\t}", "title": "" }, { "docid": "c4a6a03cc4a958fdee3387932ec56862", "score": "0.5688125", "text": "public void enableSystemWideAfterBoot(Context context) {\n final ContentResolver resolver = context.getContentResolver();\n this.mHandler.post(new Runnable() {\n public void run() {\n if (FingerSenseSettings.isFingerSenseEnabled(resolver)) {\n HwPhoneWindowManager.this.enableSystemWideActions();\n } else {\n HwPhoneWindowManager.this.disableSystemWideActions();\n }\n }\n });\n }", "title": "" }, { "docid": "3e48d9f3babeb13a4715d53798ae5e7b", "score": "0.568568", "text": "private void startWizard()\r\n\t{\r\n\t\tSetupWizard\twizard = new SetupWizard();\r\n\t\t\r\n\t\twizard.addEventListener(new WizardEventListener()\r\n\t\t{\r\n\t\t\t@Override\r\n\t\t\tpublic void wizardCompleted()\r\n\t\t\t{\r\n\t\t\t\tMainFrame.this.startNormalMode();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tscreenManager.show(wizard);\r\n\t}", "title": "" }, { "docid": "6df415ff748dea0345620389f61b6f0f", "score": "0.5685467", "text": "public static void main(String args[]) throws IOException\n {\n mainMenu(); \n }", "title": "" }, { "docid": "774f7a92b7d0fa8e6d4886633fedb39f", "score": "0.5683173", "text": "private void menu()\n {\n final Option[] options = new Option[] {\n new Option(\"countOccurrences\", \"Count occurrences of word\"),\n new Option(\"showVersesWithWord\", \"Show verses where word appears\"),\n new Option(\"getLocationsOfVersesWithWord\", \"Location of verses where word appears\"),\n new Option(\"showChapterInBook\", \"Show a chapter\"),\n new Option(\"showVersesInBook\", \"Show a range of verses\"),\n new Option(\"exitProgram\", \"Exit\")\n };\n \n try\n {\n while(run)\n {\n createMenu(options, \"Main menu\");\n }\n }\n catch (IOException e)\n {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "f74daee84589f3395f7f0fe7289bd872", "score": "0.568315", "text": "@Override\n\tpublic void autonomousInit() {\n\t\ttele = false;\n\t\t\n\t\tautonomousCommand = chooser.getSelected();\n\t\t\n\t\tif (autonomousCommand != null)\n\t\t\tautonomousCommand.start();\n\t}", "title": "" }, { "docid": "16b4533cf1e602e9499555bcd12cab78", "score": "0.5677595", "text": "public void start()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "1c74ce6142539f8f13e38151c45a18b4", "score": "0.5677205", "text": "private void OpenMain() {\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "78272e0c221b54e6022341849356a016", "score": "0.5676789", "text": "public void elevate() {\n\t\thc.stop();\n\t\tup.setPwmValue(1024);\n\t\tup.setForward();\n\t}", "title": "" }, { "docid": "6740bfacbd069acc29e9c6293d4d19aa", "score": "0.56695336", "text": "public void start() {\n\t\tsetExtendedState(JFrame.MAXIMIZED_BOTH);\n\t\tsetVisible(true);\n\t}", "title": "" }, { "docid": "e497682c1ac560215e4b06a3f71ee3ec", "score": "0.56655157", "text": "public void start() {\r\n \r\n \t}", "title": "" }, { "docid": "e78c04fd202020de425355086920ca24", "score": "0.5664524", "text": "public void startMainScreen() throws IOException {\n clearScreen();\n\n final String addCommand = Option.getCommand(Option.MAIN_SCREEN_ADD);\n final String printCommand = Option.getCommand(Option.MAIN_SCREEN_PRINT);\n final String searchCommand = Option.getCommand(Option.MAIN_SCREEN_SEARCH);\n final String deleteCommand = Option.getCommand(Option.MAIN_SCREEN_DELETE);\n final String exitCommand = Option.getCommand(Option.MAIN_SCREEN_EXIT);\n\n\t\tdo {\n\n printMainScreen();\n out.flush();\n userInput = reader.readLine().trim();\n out.flush();\n\n // Adding a new contact\n if (addCommand.equalsIgnoreCase(userInput)) {\n clearScreen();\n addNewContact();\n continue;\n }\n\n // Print a contact list\n if (printCommand.equalsIgnoreCase(userInput)) {\n clearScreen();\n printPocketBook();\n continue;\n }\n\n // Search for a contact\n if (searchCommand.equalsIgnoreCase(userInput)) {\n clearScreen();\n searchByName();\n continue;\n }\n\n // Delete a contact\n if (deleteCommand.equalsIgnoreCase(userInput)) {\n clearScreen();\n deleteContact();\n }\n\n\n\t\t} while (!exitCommand.equalsIgnoreCase(userInput));\n\n\t}", "title": "" }, { "docid": "c3a892a65ed0e76782e8ba7e399242fc", "score": "0.5661673", "text": "@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n mainActivity.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE\n | View.SYSTEM_UI_FLAG_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);\n }", "title": "" }, { "docid": "67db2abbfda06d28bd2e5c0600a419b4", "score": "0.566154", "text": "public void boot() {\r\n\t\tSystem.out.println(\"start the windows bar\");\r\n\t\tSystem.out.println(\"initialize the drivers\");\r\n\t\tSystem.out.println(\"enable date/time\");\r\n\t}", "title": "" }, { "docid": "849926b6a9999adbd0ec0c93a6ea7043", "score": "0.56588244", "text": "public static void goToMainMenu() {\n fadeCurrent();\n gui.imagePanel.triggerFadeImageEvent(\"homepage\", 5, ImageObject.Command.FADE_IN, true);\n gui.addComponent(Route.MAIN_MENU);\n }", "title": "" }, { "docid": "191fc96e2ce482f70d41952be25dc08d", "score": "0.56568676", "text": "public void start()\n {\n describeProgram();\n getInput();\n displayOutput();\n }", "title": "" }, { "docid": "1922c52e8e625badfed18135b4d97d38", "score": "0.56565326", "text": "public void autonomousInit()\n {\n //Start running the autonomous command when \n auton = new AutonomousCommand();\n auton.start();\n }", "title": "" }, { "docid": "07cc2b03748dbe956aa6e24af4e92d27", "score": "0.5654145", "text": "public void start(){\n\t}", "title": "" }, { "docid": "2f24ddbdbc884e37bd745143faba97df", "score": "0.56532717", "text": "@Override\n\tpublic void start() {\n\t\tint brightnessMode;\n\t\ttry {\n\t\t\tbrightnessMode = Settings.System.getInt(\n\t\t\t\t\tcontext.getContentResolver(),\n\t\t\t\t\tSettings.System.SCREEN_BRIGHTNESS_MODE);\n\t\t\tsavedBrightnessMode = brightnessMode;\n\t\t} catch (SettingNotFoundException e) {\n\t\t\tLog.e(\"Display.start()\", e.toString(), e);\n\t\t\tmarkTurnedOff();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (brightnessMode == Settings.System.SCREEN_BRIGHTNESS_MODE_AUTOMATIC) {\n\t\t\tSettings.System.putInt(\n\t\t\t\t\tcontext.getContentResolver(),\n\t\t\t\t\tSettings.System.SCREEN_BRIGHTNESS_MODE,\n\t\t\t\t\tSettings.System.SCREEN_BRIGHTNESS_MODE_MANUAL );\n\t\t}\n\t\t\n\t\t// set brightness to maximum, keep screen on, and turn on fullscreen\n\t\tWindowManager.LayoutParams layoutParams = context.getWindow().getAttributes();\n\t\tsavedBrightness = layoutParams.screenBrightness;\n\t\tsavedFlags = layoutParams.flags;\n\t\tlayoutParams.screenBrightness = 1.0F;\n\t\tlayoutParams.flags |=\n\t\t\t\tWindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON |\n\t\t\t\tWindowManager.LayoutParams.FLAG_FULLSCREEN;\n\t\tcontext.getWindow().setAttributes(layoutParams);\n\t\t\n\t\t// white screen for max power consumption with OLED screens:\n\t\t\n\t\t// make WhiteScreen visible\n\t\tView whiteScreen = context.findViewById(R.id.WhiteScreen);\n\t\twhiteScreen.setVisibility(View.VISIBLE);\n\t\t// hide action bar\n\t\tActionBar ab = context.getActionBar();\n\t\tsavedActionBarShowing = ab.isShowing();\n\t\tif (savedActionBarShowing)\n\t\t\tab.hide();\n\t\t// set onClick listener to turn WhiteScreen off\n\t\twhiteScreen.setOnClickListener(new View.OnClickListener() {\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tstop();\n\t\t\t\tmarkTurnedOff();\n\t\t\t}\n\t\t});\n\t\t\n\t\tisStateSaved = true;\n\t}", "title": "" }, { "docid": "2f03a81838761a3c0be3287022c7b763", "score": "0.5651756", "text": "protected void doStart() {\n\t}", "title": "" } ]
e07987205cf7b145a5137080e890ed46
Bring the window corresponding to this id in front of all other windows. The window may flicker as it is removed and restored by the system.
[ { "docid": "b3d3891c3db15166b7db294dee0015fa", "score": "0.78331745", "text": "public final synchronized void bringToFront(int id) {\n Window window = getWindow(id);\n if (window == null) {\n if (DEBUG) {\n throw new IllegalArgumentException(\"Tried to bringToFront(\" + id\n + \") a null window.\");\n }\n return;\n }\n\n if (window.visibility == Window.VISIBILITY_GONE) {\n if (DEBUG) {\n throw new IllegalStateException(\"Tried to bringToFront(\" + id\n + \") a window that is not shown.\");\n }\n return;\n }\n\n if (window.visibility == Window.VISIBILITY_TRANSITION) {\n return;\n }\n\n StandOutLayoutParams params = window.getLayoutParams();\n\n // remove from window menuManager then add back\n try {\n mSysWindowManager.removeView(window);\n } catch (Exception ex) {\n Log.e(TAG, ex.getMessage());\n }\n try {\n mSysWindowManager.addView(window, params);\n } catch (Exception ex) {\n Log.e(TAG, ex.getMessage());\n }\n }", "title": "" } ]
[ { "docid": "adcafab5d95e3f89abae70acb76dea29", "score": "0.75156075", "text": "public void moveToFront() { mainWindow.toFront(); }", "title": "" }, { "docid": "e1adadd6a9f196e41ee44b9702807af6", "score": "0.7216654", "text": "private void bringToFront(){\r\n aFrame.setExtendedState(JFrame.ICONIFIED);\r\n aFrame.setExtendedState(JFrame.NORMAL);\r\n }", "title": "" }, { "docid": "95833320131e40d2bb6d2862e264b0e4", "score": "0.68301713", "text": "public void windowBecameFront() { }", "title": "" }, { "docid": "f6bd9884cd53b0b2a75cf2ae6b0bf4fd", "score": "0.66173655", "text": "private void bringToFront(javax.swing.JInternalFrame f) {\r\n try {\r\n if (f.isIcon()){ // if control window is minimized,\r\n f.setIcon(false); // unminimize it.\r\n }\r\n f.setSelected(true);\r\n }\r\n catch (Exception e){\r\n e.printStackTrace();\r\n }\r\n desktopPane.moveToFront(f);\r\n }", "title": "" }, { "docid": "6ff0031c728a0ec7a25e4d99e0d3dfe7", "score": "0.64790875", "text": "public void showWindow() {\n setVisible(true);\n toFront();\n \n if (UITools.isRunningOnKDE()) {\n new FocusWindowInKdeThread().start();\n }\n }", "title": "" }, { "docid": "6a295de9dcbeb4cbe13791a811f1cbcb", "score": "0.6376087", "text": "private void toFront(){\n\t\tsetVisible(true);\n\t\trequestFocus();\n\t}", "title": "" }, { "docid": "c19f82fe7cf6c224c3c1014821e3b158", "score": "0.628116", "text": "public void toFront() {\n if (choiceListener != null)\n choiceListener.unfurledChoiceOpening(helper);\n\n Rectangle r = placeOnScreen();\n reshape(r.x, r.y, r.width, r.height);\n super.toFront();\n setVisible(true);\n }", "title": "" }, { "docid": "ea1168f448c86bf7d96fb2e2238d1ed8", "score": "0.6233005", "text": "public void bringToFront()\n {\n artistBtn.bringToFront();\n trackBtn.bringToFront();\n albumBtn.bringToFront();\n historyBtn.bringToFront();\n searchBtn.bringToFront();\n }", "title": "" }, { "docid": "b11cd190dcd5ffd15ccca840d5a08aee", "score": "0.61974376", "text": "public void backToMain(){\n\t\t(SwingUtilities.getWindowAncestor(this)).dispose(); \n\t}", "title": "" }, { "docid": "f558bc6f39e856dde94cac25250ac60d", "score": "0.59163046", "text": "public void notOnTop(){\n\t\t\tsetAlwaysOnTop(false);\n\t\t}", "title": "" }, { "docid": "a8ec7bde6f55d7c436bd47892bcb0c88", "score": "0.5908247", "text": "@Override\n public void actionPerformed(ActionEvent ae) {\n jFrame.toFront();\n }", "title": "" }, { "docid": "05a20c68824e2a80782b2f14e844ba5e", "score": "0.5888617", "text": "void switchToNewWindow();", "title": "" }, { "docid": "8297b19811f5b80302bf62312ead607f", "score": "0.5888514", "text": "protected void setLowerWindow(Window lowerWindow) {\r\n \tthis.lowerWindow = lowerWindow;\r\n }", "title": "" }, { "docid": "03e3b5147f45c53bf4056a5fa6af502f", "score": "0.5873589", "text": "@Override\n public void beginWindow(long windowId)\n {\n\n }", "title": "" }, { "docid": "5178d481b135416aec2e8c83bd66a373", "score": "0.58527523", "text": "public static void reloadWindow() {\r\n\t\twindow = SFoxEngine.getWindow().getID();\r\n\t}", "title": "" }, { "docid": "4a7d9aedb5f1eb98df3e8fbf25cddb05", "score": "0.58404785", "text": "private void makeANewWindow() {\n\n // make a frame with menubar\n JFrame frame = new NewWindow();\n\n // change location\n if (location != null) {\n location.x += 200;\n location.y += 40;\n // location.translate(40,40);\n frame.setLocation(location);\n resetLocation();\n } else {\n location = frame.getLocation();\n }\n\n }", "title": "" }, { "docid": "36bba9b2b8b361bc7ed47ca56f38d728", "score": "0.58119917", "text": "private void topWindows() {\n\t\tdouble x = getWidth() / 2 - HOUSE_WIDTH * 0.30;\n\t\tdouble y = getHeight() * 0.25 + HOUSE_HEIGHT * 0.15;\n/* draw 4 parts windows */\n\t\tfor (int i = 0; i < 2; i++) {\n\t\t\tfor (int j = 0; j < 2; j++) {\n\t\t\t\tadd(new GRect(x, y, SINGLE_WINDOW_WIDTH, SINGLE_WINDOW_HEIGHT));\n\t\t\t\tadd(new GRect(x, y + SINGLE_WINDOW_HEIGHT, SINGLE_WINDOW_WIDTH, SINGLE_WINDOW_HEIGHT));\n\t\t\t\tx += SINGLE_WINDOW_WIDTH;\n\t\t\t}\n/* set coordinates x for right window */\n\t\t\tx = getWidth() / 2 + HOUSE_WIDTH / 2 - HOUSE_WIDTH * 0.20 - 2 * SINGLE_WINDOW_WIDTH;\n\t\t}\n\t}", "title": "" }, { "docid": "fb14634c7a0bc893a414d3a793947a7d", "score": "0.5778092", "text": "public void switchWindows() {\n\n String parent = driver.getWindowHandle();\n Set<String> s = driver.getWindowHandles();\n\n for (String child_window : s) {\n if (!parent.equals(child_window)) {\n driver.switchTo().window(child_window);\n }\n }\n }", "title": "" }, { "docid": "aa46445fb2739f4cab3aed311b3ec469", "score": "0.57571816", "text": "@Override\r\n protected void windowActivated() {\r\n if (mbFirstActivation) {\r\n mbFirstActivation = false;\r\n moGridDps.getTable().requestFocusInWindow();\r\n }\r\n }", "title": "" }, { "docid": "7cdd95c012cc3b4b3f7d73db417da2f8", "score": "0.57486105", "text": "public final void setFocusedWindow(Window window) {\n sFocusedWindow = window;\n }", "title": "" }, { "docid": "b790e5ad5edb63b704b32dd2181fd6b6", "score": "0.57006955", "text": "private void switchToGroupsWindow() {\n // TODO: Needs refactoring for window manager, it must looks like: windowManager.openGroupsWindow();\n \twindowManager.open(\"usergroup.zul\");\n }", "title": "" }, { "docid": "ae11e993653fed1b5e268657b014fa17", "score": "0.5693755", "text": "private void showWindow() {\n\t\tthis.setLocation(UiUtil.getWindowWidth(this.getWidth()), UiUtil.getWindowHeight(this.getHeight()));\n\t\tthis.setVisible(true);\n\t}", "title": "" }, { "docid": "5bfb66b6c6b01b02476bd7c26ee8b0b7", "score": "0.5689251", "text": "public static void switchToChildWindow() {\n\t\tString mainWindow = driver.getWindowHandle();\n\t\tSet<String> allWindows = driver.getWindowHandles();\n\t\tfor (String window : allWindows) {\n\t\t\tif(!window.equals(mainWindow)) {\n\t\t\t\tdriver.switchTo().window(window);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7edd7bf38fc8599b795bc515e10d4793", "score": "0.5688069", "text": "public void switchtoNewWindow() {\r\n getWindowHandle();\r\n for (String windowsHandle : driver.getWindowHandles()) {\r\n driver.switchTo().window(windowsHandle);\r\n }\r\n }", "title": "" }, { "docid": "1b36727efaf1bbbb49bfc528874faf32", "score": "0.5673815", "text": "public void switchToNextWindow() {\n\n\t\tString parent = getCurrentWindowHandle();\n\t\tSet <String> AllWindow = driver.getWindowHandles();\n\t\tfor(String window : AllWindow) {\n\n\t\t\tif(!window.equals(parent)) {\n\n\t\t\t\tdriver.switchTo().window(window);\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "09bfd3c0fbbcf464f130d2cf9d9dd853", "score": "0.567115", "text": "private static void bringToFront(){\n String currentWindowHandle = webDriver.getWindowHandle();\n\n //run your javascript and alert code\n ((JavascriptExecutor)webDriver).executeScript(\"alert('Test')\");\n webDriver.switchTo().alert().accept();\n\n //Switch back to to the window using the handle saved earlier\n webDriver.switchTo().window(currentWindowHandle);\n }", "title": "" }, { "docid": "9e0ab7357f41465cd302d45673ce50c2", "score": "0.56611925", "text": "public void windowOpened(WindowEvent e) \n {\n \towner = javax.swing.FocusManager.getCurrentManager().getActiveWindow();\t\n }", "title": "" }, { "docid": "f8a8c3966dc3e4d76fe0e8378adf55da", "score": "0.56604755", "text": "public void switchWindow() {\n for (String winHandle : driver.getWindowHandles()) {\n driver.switchTo().window(winHandle);\n }\n }", "title": "" }, { "docid": "6b0f74e1ea536aa827b3db9eeabd9134", "score": "0.56471646", "text": "public void onTop(){\n\t\t\tsetAlwaysOnTop(true);\n\t\t}", "title": "" }, { "docid": "d8321a0c8f3b12482e10b544cc5b7917", "score": "0.56411034", "text": "public void showWindow() {\n\t\tbaseFrame.setVisible(true);\n\t}", "title": "" }, { "docid": "b4784c743b4af886cd15e01805d80c11", "score": "0.5636832", "text": "public Register_Window() {\n this.setUndecorated(true);\n initComponents();\n\n this.setLocationRelativeTo(null);\n\n }", "title": "" }, { "docid": "f4c2bbec6a319222d9c05827b0642772", "score": "0.56214166", "text": "private void setCurrentWindowLayout(int windowId) {\n if (windowId < 0 || windowId >= mCaptionWindowLayouts.length) {\n return;\n }\n CCWindowLayout windowLayout = mCaptionWindowLayouts[windowId];\n if (windowLayout == null) {\n return;\n }\n if (DEBUG) {\n Log.d(TAG, \"setCurrentWindowLayout to \" + windowId);\n }\n mCurrentWindowLayout = windowLayout;\n }", "title": "" }, { "docid": "eda1381b64e46107de816f5e2195f092", "score": "0.5588068", "text": "public static void addWindowRememberer\n (final JFrame frame, Class classForPrefs)\n {\n // dismiss move operations until we've established our position from prefs\n final boolean[] windowOpened = { false };\n final Preferences prefs = getPrefs(classForPrefs);\n frame.addWindowListener(new WindowAdapter() {\n @Override\n public void windowOpened(WindowEvent e) {\n frame.setBounds(getStartingBounds(prefs));\n windowOpened[0] = true;\n }\n @Override\n public void windowClosing(WindowEvent e) {\n saveWindowBounds(frame, prefs);\n }\n });\n frame.addComponentListener(new ComponentAdapter() {\n @Override\n public void componentResized(ComponentEvent e) {\n if (windowOpened[0]) // we'll get this event before windowOpened\n saveWindowBounds(frame, prefs);\n }\n @Override\n public void componentMoved(ComponentEvent e) {\n if (windowOpened[0]) // we'll get this event before windowOpened\n saveWindowBounds(frame, prefs);\n }\n });\n }", "title": "" }, { "docid": "37bf9aabba3a4302d4b80f72d3f4f2ad", "score": "0.5587283", "text": "public static void switchToChildWindow() {\n\t\tString mainWindow = driver.getWindowHandle();\n\t\tSet<String> windows = driver.getWindowHandles();\n\t\tfor (String window : windows) {\n\t\t\tif (!window.equals(mainWindow)) {\n\t\t\t\tdriver.switchTo().window(window);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "fcd3e9406693fa35669b2a02a1c1bea9", "score": "0.55825824", "text": "public void toFront() {\n\t\ttry {\n\t\t\tthis_stage.toFront();\n\t\t} catch (final Exception ex) {\n\t\t\tSystem.err.println(\"not Front\");\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "b03c71aa2626c32dcc46a7ed8d660f51", "score": "0.5576406", "text": "public void SwitchtoParentWindow()\n\t{\n\t\tlog.info(\"Switching to parent window\");\n\t\tdriver.switchTo().defaultContent();\n\t}", "title": "" }, { "docid": "0c63dc34ab4f3dda1edacaf203492f83", "score": "0.5568945", "text": "public MouseActionWindow() {\n\t\t\n\t\t//polygonUp = createPolygon(true);\n\t\t//polygonDown = createPolygon(false);\n\t\tpolygonFilledUp = createFilledPolygon(true);\n\t\tpolygonFilledDown = createFilledPolygon(false);\n\n\t\tsetWindowForVirtualScreen();\n\t\tsetAlwaysOnTop(true);\n\t\tsetBackground(new Color(0, true));\n\t}", "title": "" }, { "docid": "e858a507387c0a9d8c4fa2651085fff0", "score": "0.5560342", "text": "public void addWindow(Window window);", "title": "" }, { "docid": "9cbbadb5a50bed892390a2f73d93beef", "score": "0.55319256", "text": "public abstract void set_window(int window);", "title": "" }, { "docid": "638b9b310353c539213b431cc1541f77", "score": "0.55317336", "text": "private void userWindow(){\r\n flashWindow.dispose();\r\n userWindow =new JFrame(\"User Window\");\r\n userWindow.setLayout(null);\r\n accountTabs(userWindow);\r\n userWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n userWindow.setSize(getWidth(), getHeight());\r\n userWindow.setResizable(true);\r\n userWindow.setVisible(true);\r\n }", "title": "" }, { "docid": "94c0b12a4e9d0b25b188b46e639ad1e4", "score": "0.55314285", "text": "public void startGame() {\n\t\tcpw.removeAll();\n\t\tcpw.add(cpw.getGameBoardWindow());\n\t\tcpw.revalidate();\n\t\tcpw.repaint();\t\n\t}", "title": "" }, { "docid": "bd5950e3cdc3f6a4dfe2362a4bddf4b6", "score": "0.5517111", "text": "public void setWindows(int index) {\n gamePane.setVisible(false);\n loginPane.setVisible(false);\n profilePane.setVisible(false);\n switch (index) {\n case 0:\n gamePane.setVisible(true);\n resetGameUI();\n wheel.setRotate(0);\n\n break;\n case 1:\n loginPane.setVisible(true);\n break;\n case 2:\n profilePane.setVisible(true);\n break;\n default:\n //DoNothing\n break;\n }\n }", "title": "" }, { "docid": "a006966aa86f9222abbb5ebb8d6a1b9a", "score": "0.55169046", "text": "public PrimaryWindow() {\n\t\tconstructWindow();\n\t}", "title": "" }, { "docid": "42eb41f0f9547095e5d3667a72fd415a", "score": "0.55150723", "text": "public void gomain() {\n\t\tsetVisible(false);\n\t\tcontentPane.removeAll();\n\t\tcontentPane.add(new MainScreen(contentPane));\n\n\t\tcontentPane.repaint();\n\t\tcontentPane.revalidate();\n\t\t\n\t}", "title": "" }, { "docid": "76bb103f8c65ab78d8589b6c9a5d57b0", "score": "0.55054784", "text": "public String switchWindow()\n\t{\n\t\tString winHandleBefore = driver.getWindowHandle();\n\t\t//Switch to new window opened\n\t\tfor(String winHandle : driver.getWindowHandles()){\n\t\t driver.switchTo().window(winHandle);\n\t\t}\t\n\t\treturn winHandleBefore;\n\t}", "title": "" }, { "docid": "7823ebfaff4ca6b4051ce45629adcc1c", "score": "0.5496254", "text": "private void showPopupWinWindow() {\n popupWinWindow.showAtLocation(findViewById(R.id.mainLayout), Gravity.CENTER,0,0);\n }", "title": "" }, { "docid": "63494609dac26d2fd4a5c08bbecbc8bc", "score": "0.5488359", "text": "private void close() {\n ZKUtil.findAncestor(root, Window.class).detach();\n }", "title": "" }, { "docid": "20a94e6dbcf41068814d8b1a9f9e608d", "score": "0.54851425", "text": "private void flashWindow(){\r\n flashWindow=new JFrame(\"Organizer\");\r\n flashWindow.setLayout(null);\r\n createFlashPanel(flashWindow);\r\n flashWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n flashWindow.setSize(getWidth()/2, getHeight()/2);\r\n flashWindow.setLocation(getWidth()/4, getHeight()/4);\r\n flashWindow.setResizable(false);\r\n flashWindow.setVisible(true);\r\n }", "title": "" }, { "docid": "4dea67e3f53b462d268e1b4b3cf7fdde", "score": "0.5485116", "text": "public void switchToWindow(int index) {\n\t\tSet<String> Allwindows = driver.getWindowHandles();\r\n\t\t//converting to List from set\r\n\t\tList<String> windowList = new ArrayList<String>();\r\n\t\twindowList.addAll(Allwindows); //Storing all the webelement from set to List\r\n\t\t//switching to child window from parent window\r\n\t\tdriver.switchTo().window(windowList.get(index));\r\n\t\t\r\n\t}", "title": "" }, { "docid": "560613639a765441a7a1c3c418e1f498", "score": "0.5476946", "text": "protected void setCurrentWindow(Window cwnd) {\r\n \tthis.cwnd = cwnd;\r\n }", "title": "" }, { "docid": "a84ac8e698dd136e993045a24c425c93", "score": "0.54618746", "text": "public void keepScreenOn() {\n this.mHandler.removeMessages(17);\n this.mHandler.removeMessages(2);\n getWindow().addFlags(128);\n }", "title": "" }, { "docid": "0fd27d18195625cb9e726e7d59ccc566", "score": "0.543156", "text": "private void displayWindow() {\n\t\t\n\t\tfinal String methodName = \"displayWindow\";\n\t\tGUILogger.entering(CLASS_NAME, methodName);\n\t\t\n\t\tpack();\n GUIUtils.centerOnScreen(this);\n setVisible(true);\n \n GUILogger.exiting(CLASS_NAME, methodName);\n \n\t}", "title": "" }, { "docid": "79cf396870073c99fa4888b7b0f1eeef", "score": "0.5427711", "text": "public static void createTopPopUp() {\n \tjFrame = new JFrame();\n \tjFrame.setUndecorated(true);\n \tinitComponents();\n \tjFrame.setFocusableWindowState(false);\n }", "title": "" }, { "docid": "704466a8236950a01c381542d4db843b", "score": "0.5416142", "text": "public void windowGoAway(MesquiteWindow whichWindow) {\r\t\twhichWindow.hide();\r\t\twhichWindow.dispose();\r\t\tiQuit();\r\t}", "title": "" }, { "docid": "bb943107f904348c31e4902622db43d7", "score": "0.5397788", "text": "private void setWindowOptions() {\n // position the frame in the center of the screen\n this.window.setLocationRelativeTo(null);\n this.window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.window.setVisible(true);\n }", "title": "" }, { "docid": "67021832723fee01c29a12713ff41e25", "score": "0.53960943", "text": "public void switchToMainWindow() {\n if (this.isAnHybridApp && StringUtils.isNotBlank(this.mainWindow)\n && !this.driver.getWindowHandle().equals(this.mainWindow)) {\n this.driver.switchTo().window(this.mainWindow);\n }\n }", "title": "" }, { "docid": "4472c1560b4aa052ab3ca342502d55f1", "score": "0.53797364", "text": "public void showWindow() {\n\t\tthis.setVisible(true);\n\t\tthis.setExtendedState(JFrame.MAXIMIZED_BOTH);\n\t}", "title": "" }, { "docid": "160233d097f1df6682b25dfe35b391f9", "score": "0.53743786", "text": "public static void setTransparent(@NotNull JWindow window) {\n JComponent rootPane = window.getRootPane();\n if (rootPane != null) {\n rootPane.setDoubleBuffered(false);\n }\n JComponent contentPane = (JComponent)window.getContentPane();\n if (contentPane != null) {\n contentPane.setDoubleBuffered(false);\n }\n\n //noinspection UseJBColor\n window.setBackground(new Color(1, 1, 1, 0));\n }", "title": "" }, { "docid": "3f7b54c0516fae25c2ba6d980a0ed0f6", "score": "0.53731114", "text": "private static void switchPanel(ATMWindowState state)\n\t{\n\t\tcurrentWindowState = state;\n\t\tlayeredPane.removeAll();\n\t\tlayeredPane.add(stateToPanel(state));\n\t\tlayeredPane.repaint();\n\t\tlayeredPane.revalidate();\n\t\tcontentPane.requestFocusInWindow();\n\t}", "title": "" }, { "docid": "e530522240cdb85c29d0be1c9e622a4e", "score": "0.5363561", "text": "public String switchWindow() {\n\n\t\tString parentWindow = getCurrentWindowHandle();\n\t\tSet <String> allWindows = driver.getWindowHandles();\n\t\tfor(String windows : allWindows) {\n\n\t\t\tdriver.switchTo().window(windows);\n\t\t}\n\n\t\tString childWindow = getCurrentWindowHandle();\n\t\treturn childWindow;\n\n\t}", "title": "" }, { "docid": "905695f0be9c31e245af414035eec5d9", "score": "0.5360363", "text": "public void windowOpened(WindowEvent e) {\n mainUI.pack();\n mainUI.setMenuState();\n }", "title": "" }, { "docid": "70d2c7d523d4049a02eefc260b4d540d", "score": "0.53588164", "text": "protected void recover() {\n this.setVisible(true);\n this.getRootPane().setDefaultButton(buttonClose);\n // this.toFront();\n // this.requestFocus();\n }", "title": "" }, { "docid": "b5fee6e01e4d1281f7b82fa63e92bda4", "score": "0.53496253", "text": "public void handleRestoreWindow() {\n\t\t\n\t}", "title": "" }, { "docid": "d8a675545fd9e86f85f650eee54f168d", "score": "0.53439444", "text": "protected void showViewInPrimaryWindow(SwingView inView) {\r\n\r\n // Make a JFrame to contain the view\r\n final JFrame frame = new JFrame();\r\n\r\n // Set its title, icon, resizability\r\n if (inView.getTitle() != null) {\r\n frame.setTitle(inView.getTitle());\r\n }\r\n // All JFrames take the same icon\r\n Image icon = getDefaultWindowIcon();\r\n if (icon != null) {\r\n frame.setIconImage(icon);\r\n }\r\n frame.setResizable(inView.isResizable());\r\n\r\n setupWindow(frame.getRootPane(), inView, false);\r\n }", "title": "" }, { "docid": "f21f61925e83c101abae646dd518c6b0", "score": "0.5339526", "text": "private void BackToMain() {\n \twindow.setScene(main);\n }", "title": "" }, { "docid": "c116c6f3024ac8fc679329b671137eff", "score": "0.53329474", "text": "public final void CenterAndShow() {\n this.setLocationRelativeTo(null);\n this.setVisible(true);\n }", "title": "" }, { "docid": "d1ee618fa1d967fdd81f70fd655a79af", "score": "0.5330432", "text": "public void postInitGUI(){\n\t\tGUITools.centerWindow(this);\t\t\n\t}", "title": "" }, { "docid": "f45e7f44dd7d693a19cd1b599272c835", "score": "0.5327366", "text": "final void moveActivityToFrontLocked(ActivityRecord newTop) {\n ProtoLog.i(WM_DEBUG_ADD_REMOVE, \"Removing and adding activity %s to root task at top \"\n + \"callers=%s\", newTop, Debug.getCallers(4));\n\n positionChildAtTop(newTop);\n updateEffectiveIntent();\n }", "title": "" }, { "docid": "dc21b963336ac447907041ef4900f89b", "score": "0.5325386", "text": "public void switchBackToPreviousWindow() {\n\t\twebDriver.close();\n\n\t\tPollingUtilities.sleep(2000);\n\t\tfinal Set<String> allWindows = webDriver.getWindowHandles();\n\t\tfinal Iterator<String> it = allWindows.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\twebDriver.switchTo().window(it.next());\n\t\t}\n\t}", "title": "" }, { "docid": "64264a74173b95880f81db40b1c29511", "score": "0.53176576", "text": "public void createTransparentWindow(Stage parentWindow) {\n transparentWindow = new TransparentWindow();\n transparentWindow.getWindow().initOwner(parentWindow);\n }", "title": "" }, { "docid": "da994df04da5bd8cb6aa38a4231df5b8", "score": "0.5317146", "text": "@Override\n public void windowIconified(WindowEvent e)\n {\n HistoryDisplay history = HistoryDisplay.getInstance();\n history.setVisible(false);\n }", "title": "" }, { "docid": "fd3260aed48baae3d71c5f9c825d3f23", "score": "0.5297935", "text": "private void showLostMessage(){\n Lost ins = new Lost();\n JFrame frame = (JFrame)this.getParent().getParent().getParent();\n frame.add(ins,new org.netbeans.lib.awtextra.AbsoluteConstraints(WIDTH/2- 175, HEIGHT/2 - 200, -1, -1));\n ins.setVisible(true);\n frame.removeKeyListener(this);\n repaint();\n }", "title": "" }, { "docid": "48a59c64d18408a93da076b974c4045e", "score": "0.5295949", "text": "protected void setUpperWindow(Window upperWindow) {\r\n \tthis.upperWindow = upperWindow;\r\n }", "title": "" }, { "docid": "f18b23376c72c6eae7dfe4d53a392ebc", "score": "0.5295691", "text": "public void updateWindow()\n {\n boolean baseIsAcked = true;\n while(baseIsAcked) {\n TxQueueNode node = window.getHeadNode();\n if(node != null && node.getStatus() == TxQueueNode.ACKNOWLEDGED) {\n try {\n window.remove();\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n } else {\n baseIsAcked = false;\n }\n }\n }", "title": "" }, { "docid": "46b16a82f02d1484f38ea1de8a922959", "score": "0.5294051", "text": "@Override\n public void windowDeiconified(WindowEvent e)\n {\n HistoryDisplay history = HistoryDisplay.getInstance();\n history.setVisible(true);\n }", "title": "" }, { "docid": "94775d9ad9092ada055e24275c177172", "score": "0.5292729", "text": "public static void switchWindow(int index) {\n\t\tSet<String> allId = driver.getWindowHandles();\n\t\tList<String> l=new LinkedList<>();\n\t\tl.addAll(allId);\n\t\tdriver.switchTo().window(l.get(index));\n\t}", "title": "" }, { "docid": "60c84e034f0a39cbc5c4009e9c2151a8", "score": "0.5289745", "text": "public void bidCallWindow()\r\n {\r\n if ( currentState == GameState.PLAYING )\r\n {\r\n BidWindow bidWindow = new BidWindow( numPlayers, players );\r\n bidWindow.open( this );\r\n }\r\n else\r\n {\r\n close();\r\n }\r\n }", "title": "" }, { "docid": "b14ff99dfaf4709a1a75717e3769ec59", "score": "0.52868074", "text": "public void makeVisible() \n\t{\n\t\t//make window visible\n\t\ttestWindow.setVisible(true);\n\t}", "title": "" }, { "docid": "f8f8f8ed793ca379c1c29f8eeb68ed06", "score": "0.5283576", "text": "private void moveToMenuScreen() {\n game.setScreen(new MenuScreen());\n dispose();\n }", "title": "" }, { "docid": "c243f0622fb9e047f9cf3ed36adc731a", "score": "0.5282545", "text": "private void setUpSemiTransparentLayer(final Window window) {\n mainWindow.enableSemiTransparentLayer(Boolean.TRUE);\n window.addWindowListener(new WindowAdapter() {\n public void windowClosed(WindowEvent e) {\n mainWindow.enableSemiTransparentLayer(Boolean.FALSE);\n }\n });\n }", "title": "" }, { "docid": "a3351837c2b807345a9ee8c55cb9eac0", "score": "0.5281104", "text": "final void activateWindowHack (boolean reschedule) {\n lastWindowActivated = System.currentTimeMillis();\n if (reschedule) {\n scheduleGetFromSystemClipboard(true);\n }\n }", "title": "" }, { "docid": "cc71aea76066ab4ee1bfc9842c56088f", "score": "0.52772415", "text": "public void windowIconified(WindowEvent evt) {\n propsFrame.setVisible(false);}", "title": "" }, { "docid": "2268f1d64add8723b64df0c6e4449819", "score": "0.5276619", "text": "@Override\r\n\tpublic void windowOpened(WindowEvent e) \r\n\t{\n\t\tShellFrame.commandArea.requestFocus();\r\n\t}", "title": "" }, { "docid": "52242b5b724512aaba50b1e7a2d5e6e3", "score": "0.5259513", "text": "public static void normalScreen() {\n frame.setExtendedState(JFrame.NORMAL);\n }", "title": "" }, { "docid": "22fdd3adf9c382e432be055249bc3de7", "score": "0.52561045", "text": "void returnToMainMenu() {\r\n new MainMenu().setVisible(true);\r\n dispose();\r\n }", "title": "" }, { "docid": "c5e5a1de9e9fa4835aadd4408eb57d3c", "score": "0.5250701", "text": "private void initWindows(){\r\n newGameFrame = new JFrame(\"Zen l'Initie : New game\");\r\n newGameFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\r\n newGameFrame.add(createNewGameFrame());\r\n\r\n newGameFrame.setMinimumSize(newGameFrame.getSize());\r\n newGameFrame.pack();\r\n newGameFrame.setVisible(true);\r\n }", "title": "" }, { "docid": "c6ac63c40353415e56b07303d60def68", "score": "0.525009", "text": "private void returnToFrontPage() {\n\t\tFrontPage frontPage = new FrontPage();\n\t\tfrontPage.setVisible(true);\n\t\tsetVisible(false);\n\t\tdispose();\n\n\t}", "title": "" }, { "docid": "d684321c7336d26c252844622e5a077e", "score": "0.5244001", "text": "public void setWindowed(boolean windowed);", "title": "" }, { "docid": "00a880329afcedbeaa53075bac2d41a4", "score": "0.5243606", "text": "public void switchToParentWindow() \n\t{\n\t\t//try block has all the possible conditions\n\t\ttry {\n\t\t\t\n\t\t\tdriver.switchTo().window(parent);\n\t\t/*\tSet<String> allWindows = driver.getWindowHandles();\n\t\t\t\n\t\t\tfor (String splitWindow : allWindows)\n\t\t\t{\n\t\t\t\tSystem.out.println(splitWindow);\n\t\t\t\tdriver.switchTo().window(splitWindow);\n\t\t\t\tbreak;\n\t\t\t}*/\n\t\t} \n\t\t//in case of window not found this catch block will be executed\n\t\tcatch (NoSuchWindowException e) \n\t\t{\n\t\t\tSystem.out.println(\"No such window found\");\n\t\t}\n\t\t//in case of web browser closed or crashed the below catch will be executed\n\t\tcatch (WebDriverException e) \n\t\t{\n\t\t\tSystem.out.println(\"Browser closed\");\n\t\t}\n\t\t//Executes even when the above steps gets success or failed\n\t\tfinally {\n\t\t\ttakeSnap();\n\t\t}\n\t}", "title": "" }, { "docid": "705dc9d85a2fdba3efafb570ab5010e3", "score": "0.5234638", "text": "public void setWindow(Window window) {\r\n\t\tthis.window = window;\r\n\t}", "title": "" }, { "docid": "eff08ae2133e598cd27b452c125adb35", "score": "0.5232062", "text": "public void displayWindow() {\n this.setVisible(true);\n }", "title": "" }, { "docid": "30c5385b3328c812b24ecfbad092d5ed", "score": "0.5231739", "text": "@Override\r\n public void windowOrderChanged() {\n }", "title": "" }, { "docid": "2f8d41a5aaff3797fe0f59f97f2c16a2", "score": "0.5231168", "text": "void windowDidActivate(boolean didActivate) {\n \tthis.mainPanel.setActive(didActivate);\n \tthis.repaint();\n }", "title": "" }, { "docid": "877780e44648cf14b3f09ed7b3c5c905", "score": "0.5230979", "text": "protected void addEntry() {\n EntryWindow entryWindow = FXWindowsManager.getInstance().getWindow(EntryWindow.class);\n EntryWindowController entryWindowController = entryWindow.getController();\n\n entryWindowController.addMode();\n\n FXWindowsManager.getInstance().showWindowAndWait(entryWindow, getMainWindow().getWindow());\n }", "title": "" }, { "docid": "923f62b53cc5a6775f5d2497ce75c435", "score": "0.5230914", "text": "@Override\n protected void reparentSurfaceControl(SurfaceControl.Transaction t, SurfaceControl newParent) {\n if (isOrganized() && isAlwaysOnTop()) {\n return;\n }\n super.reparentSurfaceControl(t, newParent);\n }", "title": "" }, { "docid": "bdcddbbc4eb9f3bff4113a0d28c47376", "score": "0.5228363", "text": "public void switchToParentWindow() {\r\n\t\ttry {\r\n\t\t\tdriver.switchTo().window(parentwindow);\r\n\t\t\tSystem.out.println(\"switchToParentWindow - You're in parent window - \" + parentwindow);\r\n\t\t} catch (NoSuchElementException e) {\r\n\t\t\tSystem.err.println(\"switchToParentWindow Method- No Such Element Exception\");\r\n\t\t} catch (NoSuchWindowException e) {\r\n\t\t\tSystem.err.println(\"switchToParentWindow Method- No Such Window Exception\");\r\n\t\t} catch (NotFoundException e) {\r\n\t\t\tSystem.err.println(\"switchToParentWindow Method- Not found Exception\");\r\n\t\t} catch (WebDriverException e) {\r\n\t\t\tSystem.err.println(\"switchToParentWindow Method- WebDriver Exception\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.err.println(\"switchToParentWindow Method- Exception Unknown..Check Below Stacktrace\");\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttakeSnap();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ad81ce3aa2a53a8b9541c57207da002a", "score": "0.52217644", "text": "@Override\n\t\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\tserviceRegistrar.getService(DialogTaskManager.class).setExecutionContext(frame);\n\t\t\t\t\n\t\t\t\t// This is necessary because the same menu bar is used by other frames, including CytoscapeDesktop\n\t\t\t\tfinal JMenuBar menuBar = cyMenus.getJMenuBar();\n\t\t\t\tfinal Window window = SwingUtilities.getWindowAncestor(menuBar);\n\n\t\t\t\tif (!frame.equals(window)) {\n\t\t\t\t\tif (window instanceof JFrame && !LookAndFeelUtil.isAquaLAF()) {\n\t\t\t\t\t\t// Do this first, or the user could see the menu disappearing from the out-of-focus windows\n\t\t\t\t\t\tfinal JMenuBar dummyMenuBar = cyMenus.createDummyMenuBar();\n\t\t\t\t\t\t((JFrame) window).setJMenuBar(dummyMenuBar);\n\t\t\t\t\t\tdummyMenuBar.updateUI();\n\t\t\t\t\t\twindow.repaint();\n\t\t\t\t\t}\n\n\t\t\t\t\tframe.setJMenuBar(menuBar);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (LookAndFeelUtil.isAquaLAF() && menuBar.equals(frame.getJMenuBar()))\n\t\t\t\t\tcyMenus.setMenuBarVisible(true);\n\t\t\t\t\n\t\t\t\t// Don't forget to update the UI, or it can cause some issues,\n\t\t\t\t// such as the menus being duplicated on Mac/Aqua when activating detached frames\n\t\t\t\t// (see http://code.cytoscape.org/redmine/issues/3582)\n\t\t\t\tmenuBar.updateUI();\n\t\t\t}", "title": "" }, { "docid": "067a13e7d2a9878c789bb301fc4c08f2", "score": "0.5217813", "text": "public void showDialog() {\n Component focusOwner = KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner();\r\n\r\n if (null != focusOwner) {\r\n while (focusOwner.getParent() != null) {\r\n focusOwner = focusOwner.getParent();\r\n }\r\n }\r\n\r\n super.setLocationRelativeTo(focusOwner);\r\n super.setVisible(true);\r\n }", "title": "" }, { "docid": "18cef9f59d086bd473fb7249774a8fa5", "score": "0.51929206", "text": "public void makeMainWindow() {\n mainWindow = new REKiTWindow(this);\n }", "title": "" }, { "docid": "c87e9e34377f5736d82aba5013530519", "score": "0.5183917", "text": "public void windowResized() {\n\t\tmenu.setMiddleOffsetPos(0, 70);\n\t\tstartGame.setMiddleOffsetPos(0, 140);\n\n\t\teasyMode.setMiddleOffsetPos(0, -240);\n\t\tnormalMode.setMiddleOffsetPos(0, -170);\n\t\thardMode.setMiddleOffsetPos(0, -100);\n\t}", "title": "" } ]
35cad8c271fcfe458dbe2ac7f33b85d3
This method checks if the given postion will overlap other positions, therefore we have to get the neigbor postions of the received position and check if the are inside the grid and not occupied
[ { "docid": "f14b2194d6ed52fc87c9609867cd370b", "score": "0.76761955", "text": "private boolean hasOverLap(Position position) {\n for (Position pos : getPostionNeighbors(position)) {\n // for every neigbor position check it is occupied and inside the grid\n if (insideTheGrid(pos) && postionsOccuppiedContians(pos))\n return true;\n }\n\n return false;\n\n }", "title": "" } ]
[ { "docid": "2309e819a7866ac2057c6553d9e4a316", "score": "0.742865", "text": "private Position checkPositionsAround(Position pos){\n\t/*\tPosition potentialPosition;\n\t\tPosition returnedPosition;*/\n\t//\tfor(Position a: hitPositions) {\n\t\t\t// if the hit position is not on the edges of the battleship board (otherwise, this algorithm would create an exception as it checks for positions outside of the board)\n\t\t\tif(/*positionEquals(pos, a) &&*/ ( (pos.columnIndex() >= 1 && pos.columnIndex() <=8) && (pos.rowIndex() >= 1 && pos.rowIndex() <= 8 ))) {\n\t\t\t\tdecideAppropriatenessOfPosition(pos);\n\t\t\t\t/*potentialPosition = new Position (pos.rowIndex() + 1, pos.columnIndex());\n\t\t\t\tif(hitPositions.contains(potentialPosition)) {\n\t\t\t\t\tpotentialPosition = new Position (pos.rowIndex() - 1, pos.columnIndex());\n\t\t\t\t\tif(hitPositions.contains(potentialPosition)) {\n\t\t\t\t\t\tpotentialPosition = new Position (pos.rowIndex() , pos.columnIndex() + 1);\n\t\t\t\tif(hitPositions.contains(potentialPosition)) {\n\t\t\t\t\t\t\tpotentialPosition = new Position (pos.rowIndex() , pos.columnIndex() - 1);\n\t\t\t\t//If none of the surrounding Positions choose randomly..This should not be possible, but just in case\n\t\t\t\tif(hitPositions.contains(potentialPosition)) {\n\t\t\t\t\tint randomXPosition = (int )Math.random()*10 ;\n\t\t\t\t\tint randomYPosition = (int )Math.random()*10 ;\n\t\t\t\t\tboolean empty = false;\n\t\t\t\t\twhile(!empty) {\n\t\t\t\t\t\trandomXPosition = (int )Math.random()*10 ;\n\t\t\t\t\t\trandomYPosition = (int )Math.random()*10 ;\n\t\t\t\t\t\tpotentialPosition = new Position(randomXPosition,randomYPosition);\n\t\t\t\t\t\tempty = Grid.empty(pos);*/\n\t\t\t}else {\n\t\t\t\t\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "0be0e82dbb1df89bdccc032c7c16b835", "score": "0.7228099", "text": "private boolean insideTheGrid(Position position) {\n // 0 and 9 and the startpoint and the end points of the grid, so we check if the given position inside those boundires\n return position.getXcord() >= 0 && position.getXcord() <= 9 && position.getYCord() >= 0 && position.getYCord() <= 9;\n }", "title": "" }, { "docid": "714463241761147e9b38542f7f42f451", "score": "0.69912076", "text": "private boolean ValidatePosition(Position p) {\n\n // chceck postion p is not inside the gird boundaries\n if (!insideTheGrid(p)) {\n return true;\n }\n // if the postiion p is in the occupied positions\n if (postionsOccuppiedContians(p)) {\n\n return true;\n }\n // if the postion p overlapp\n return hasOverLap(p);\n }", "title": "" }, { "docid": "df99a63e3b262c60ecc8ba1131f04423", "score": "0.6907977", "text": "private boolean postionsOccuppiedContians(Position p) {\n for (Position position : occupiedPositions) {\n // get postion in occupiedPositions and compare it with the received postion p\n if (p.getXcord() == position.getXcord() && p.getYCord() == position.getYCord())\n // if the x,y coordinates are same\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "362b17f29841a9c251f22805d7bcbab0", "score": "0.6834435", "text": "private void checkHitPositions() {\n\t\tfor(int a = 0; a < 10; a ++) {\n\t\t\tfor(int b = 0; b < 10; b++) {\n\t\t\t\tif(Grid.hit(new Position (a,b))) {\n\t\t\t\t\thitPositions.add(new Position(a,b));\n\t\t\t\t}else if(Grid.miss(new Position(a,b))){\n\n\t\t\t\t\tmissPositions.add(new Position (a,b));\n\t\t\t\t}else{\n\t\t\t\t\temptyPositions.add(new Position (a,b));\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "f5ce98844ef4417ef2592cbb79792684", "score": "0.6725969", "text": "private Position decideAppropriatenessOfPosition(Position pos) {\n\t\t// things to check\n\t\t// What type of boat\n\t\t// How many spaces there are on the left, right, top, bottom. If there are two choices, assess the rest of the hit positions\n\t\tchar boatInitial;\n\t\tint spacesOnRightOfPos;\n\t\tint spacesOnLeftOfPos;\n\t\tint spacesOnBottomOfPos;\n\t\tint spacesOnTopOfPos;\n\n\t\tboatInitial = Grid.boatInitial(pos);\n\t\tspacesOnRightOfPos = 10 - (pos.columnIndex()+ 1);\n\t\tspacesOnLeftOfPos = pos.columnIndex()+ 1;\n\t\tspacesOnTopOfPos = pos.rowIndex() + 1;\n\t\tspacesOnBottomOfPos = 10 - (pos.rowIndex()+ 1 );\n\n\t\t//Now that everything has been set to the correct value, it is time to find out what positions near it are hit and which ones are a miss\n\t\tArrayList <Position> suitablePositions = new ArrayList<Position>();\n\n\t\t//Position Below Position pos\n\t\tPosition pos1 = new Position(pos.rowIndex() + 1, pos.columnIndex());\n\t\t//Position Above Position pos\n\t\tPosition pos2 = new Position(pos.rowIndex() - 1, pos.columnIndex());\n\t\t//Position to the Right of Position pos\n\t\tPosition pos3 = new Position(pos.rowIndex() , pos.columnIndex() + 1);\n\t\t//Position to the Left of Position pos\n\t\tPosition pos4 = new Position(pos.rowIndex() , pos.columnIndex() - 1);\n\n\n\t\t// The following block of code checks whether surrounding positions are already hit\n\t\t//These are if there is already a hit position near it. Now I need to make one for the first hit\n\t\tif(Grid.hit(pos1) && Grid.boatInitial(pos1) == Grid.boatInitial(pos)) {\n\t\t\t//checks the positions around for hits\n\t\t\tfor(int a = 1; a < initialToNumberOfSpaces(boatInitial); a++ ) {\n\t\t\t\tif(!Grid.hit(new Position(pos1.rowIndex() + a, pos1.columnIndex()) )&& Grid.boatInitial(pos) == Grid.boatInitial(new Position(pos1.rowIndex() + a, pos1.columnIndex()))) {\n\t\t\t\t\tsuitablePositions.add(new Position(pos1.rowIndex() + a, pos1.columnIndex()));\n\t\t\t\t\treturn new Position(pos1.rowIndex() + a, pos1.columnIndex());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(Grid.hit(pos2) && Grid.boatInitial(pos2) == Grid.boatInitial(pos)) {\n\t\t\t//checks the positions around for hits\n\t\t\tfor(int a = 1; a < initialToNumberOfSpaces(boatInitial); a++ ) {\n\t\t\t\tif(!Grid.hit(new Position(pos2.rowIndex() + a, pos2.columnIndex()) )&& Grid.boatInitial(pos) == Grid.boatInitial(new Position(pos2.rowIndex() + a, pos2.columnIndex()))) {\n\t\t\t\t\tsuitablePositions.add(new Position(pos2.rowIndex() + a, pos2.columnIndex()));\n\t\t\t\t\treturn new Position(pos2.rowIndex() + a, pos2.columnIndex());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(Grid.hit(pos3) && Grid.boatInitial(pos3) == Grid.boatInitial(pos)) {\n\t\t\t//checks the positions around for hits\n\t\t\tfor(int a = 1; a < initialToNumberOfSpaces(boatInitial); a++ ) {\n\t\t\t\tif(!Grid.hit(new Position(pos3.rowIndex() + a, pos3.columnIndex()) )&& Grid.boatInitial(pos) == Grid.boatInitial(new Position(pos3.rowIndex() + a, pos3.columnIndex()))) {\n\t\t\t\t\tsuitablePositions.add(new Position(pos3.rowIndex() + a, pos3.columnIndex()));\n\t\t\t\t\treturn new Position(pos3.rowIndex() + a, pos.columnIndex());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(Grid.hit(pos4) && Grid.boatInitial(pos4) == Grid.boatInitial(pos)) {\n\t\t\t//checks the positions around for hits\n\t\t\tfor(int a = 1; a < initialToNumberOfSpaces(boatInitial); a++ ) {\n\t\t\t\tif(!Grid.hit(new Position(pos4.rowIndex() + a, pos4.columnIndex()) )&& Grid.boatInitial(pos) == Grid.boatInitial(new Position(pos4.rowIndex() + a, pos4.columnIndex()))) {\n\t\t\t\t\tsuitablePositions.add(new Position(pos4.rowIndex() + a, pos4.columnIndex()));\n\t\t\t\t\treturn new Position(pos4.rowIndex() + a, pos.columnIndex());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// At this point in the code, the program knows that there have been no previous hits around it\n\t\t//This is regarding the first hit and the computer is trying to find the second hit\n\t\tif(Grid.hit(pos)) {\n\t\t\t// if the grid \n\t\t\tif(boatInitial == 'A') {\n\t\t\t\tif(spacesOnRightOfPos >= 5) {\n\t\t\t\t\treturn pos3;\n\t\t\t\t}else if(spacesOnLeftOfPos >= 5) {\n\t\t\t\t\treturn pos4;\n\t\t\t\t}else if(spacesOnTopOfPos >= 5) {\n\t\t\t\t\treturn pos2;\n\t\t\t\t}else if(spacesOnBottomOfPos >=5 ) {\n\t\t\t\t\treturn pos1;\n\t\t\t\t}else {\n\t\t\t\t\t//if code reaches this point, something is wrong in my program\n\t\t\t\t}\n\t\t\t}else if(boatInitial == 'B'){\n\t\t\t\tif(spacesOnRightOfPos >= 4) {\n\t\t\t\t\treturn pos3;\n\t\t\t\t}else if(spacesOnLeftOfPos >= 4) {\n\t\t\t\t\treturn pos4;\n\t\t\t\t}else if(spacesOnTopOfPos >= 4) {\n\t\t\t\t\treturn pos2;\n\t\t\t\t}else if(spacesOnBottomOfPos >=4 ) {\n\t\t\t\t\treturn pos1;\n\t\t\t\t}else {\n\t\t\t\t\t//if code reaches this point, something is wrong in my program\n\n\t\t\t\t}\n\t\t\t}else if(boatInitial == 'C') {\n\t\t\t\tif(spacesOnRightOfPos >= 3) {\n\t\t\t\t\treturn pos3;\n\t\t\t\t}else if(spacesOnLeftOfPos >= 3) {\n\t\t\t\t\treturn pos4;\n\t\t\t\t}else if(spacesOnTopOfPos >= 3) {\n\t\t\t\t\treturn pos2;\n\t\t\t\t}else if(spacesOnBottomOfPos >=3 ) {\n\t\t\t\t\treturn pos1;\n\t\t\t\t}else {\n\t\t\t\t\t//if code reaches this point, something is wrong in my program\n\t\t\t\t}\n\t\t\t}else if(boatInitial == 'S') {\n\t\t\t\tif(spacesOnRightOfPos >= 3) {\n\t\t\t\t\treturn pos3;\n\t\t\t\t}else if(spacesOnLeftOfPos >= 3) {\n\t\t\t\t\treturn pos4;\n\t\t\t\t}else if(spacesOnTopOfPos >= 3) {\n\t\t\t\t\treturn pos2;\n\t\t\t\t}else if(spacesOnBottomOfPos >=3 ) {\n\t\t\t\t\treturn pos1;\n\t\t\t\t}else {\n\t\t\t\t\t//if code reaches this point, something is wrong in my program\n\t\t\t\t}\n\t\t\t}else if(boatInitial == 'D') {\n\t\t\t\tif(spacesOnRightOfPos >= 2) {\n\t\t\t\t\treturn pos3;\n\t\t\t\t}else if(spacesOnLeftOfPos >= 2) {\n\t\t\t\t\treturn pos4;\n\t\t\t\t}else if(spacesOnTopOfPos >= 2) {\n\t\t\t\t\treturn pos2;\n\t\t\t\t}else if(spacesOnBottomOfPos >=2 ) {\n\t\t\t\t\treturn pos1;\n\t\t\t\t}else {\n\t\t\t\t\t//if code reaches this point, something is wrong in my program\n\t\t\t\t}\n\t\t\t}else {\n\n\n\t\t\t}\n\n\t\t}\n\t\treturn new Position (0,0);\n\t}", "title": "" }, { "docid": "2921b28f6a2830d592b95bf6aa3f0e06", "score": "0.6567156", "text": "private boolean nearCellsContain(int x, int y, String status){\n boolean is = false;\n if((x > 0) && (x < size-1) && (y > 0) && (y < size-1)){\n if(getBtnAttr(x + 1, y).contains(status) || getBtnAttr(x - 1, y).contains(status) ||\n getBtnAttr(x, y + 1).contains(status) || getBtnAttr(x, y- 1).contains(status) ){\n is = true;\n }\n } else if ((x == 0)&& (y > 0) && (y < size-1)){\n if(getBtnAttr(x + 1, y).contains(status) ||\n getBtnAttr(x, y + 1).contains(status) || getBtnAttr(x, y - 1).contains(status) ){\n is = true;\n }\n } else if ((x == size-1)&& (y > 0) && (y < size-1)) {\n if (getBtnAttr(x - 1, y).contains(status) ||\n getBtnAttr(x, y + 1).contains(status) || getBtnAttr(x, y - 1).contains(status)) {\n is = true;\n }\n } else if ((y == 0)&& (x > 0) && (x < size-1)){\n if(getBtnAttr(x + 1, y).contains(status) || getBtnAttr(x - 1, y).contains(status) ||\n getBtnAttr(x, y + 1).contains(status) ){\n is = true;\n }\n } else if ((y == size-1)&& (x > 0) && (x < size-1)) {\n if(getBtnAttr(x + 1, y).contains(status) || getBtnAttr(x - 1, y).contains(status) ||\n getBtnAttr(x, y-1).contains(status) ){\n is = true;\n }\n } else if((x == 0) && (y == 0)){\n if(getBtnAttr(x + 1, y).contains(status) || getBtnAttr(x, y+1).contains(status) ){\n is = true;\n }\n } else if((x == 0) && (y == size-1)){\n if(getBtnAttr(x + 1, y).contains(status) || getBtnAttr(x, y-1).contains(status) ){\n is = true;\n }\n } else if((x == size-1) && (y == 0)){\n if(getBtnAttr(x - 1, y).contains(status) || getBtnAttr(x, y+1).contains(status) ){\n is = true;\n }\n } else if((x == size-1) && (y == size-1)){\n if(getBtnAttr(x - 1, y).contains(status) || getBtnAttr(x, y-1).contains(status) ){\n is = true;\n }\n }\n return is;\n }", "title": "" }, { "docid": "c9df0790e64a4469a783703e0e05f3ba", "score": "0.651645", "text": "private boolean nearCellsAllAre(int x, int y, String status){\n boolean is = false;\n if((x > 0) && (x < size-1) && (y > 0) && (y < size-1)){\n if(getBtnAttr(x + 1, y).contains(status) && getBtnAttr(x - 1, y).contains(status) &&\n getBtnAttr(x, y+1).contains(status) && getBtnAttr(x, y-1).contains(status) ){\n is = true;\n }\n } else if ((x == 0)&& (y > 0) && (y < size-1)){\n if(getBtnAttr(x + 1, y).contains(status) &&\n getBtnAttr(x, y+1).contains(status) && getBtnAttr(x, y-1).contains(status) ){\n is = true;\n }\n } else if ((x == size-1)&& (y > 0) && (y < size-1)) {\n if (getBtnAttr(x - 1, y).contains(status) &&\n getBtnAttr(x, y + 1).contains(status) && getBtnAttr(x, y - 1).contains(status)) {\n is = true;\n }\n } else if ((y == 0)&& (x > 0) && (x < size-1)){\n if(getBtnAttr(x + 1, y).contains(status) && getBtnAttr(x - 1, y).contains(status) &&\n getBtnAttr(x, y+1).contains(status) ){\n is = true;\n }\n } else if ((y == size-1)&& (x > 0) && (x < size-1)) {\n if(getBtnAttr(x + 1, y).contains(status) && getBtnAttr(x - 1, y).contains(status) &&\n getBtnAttr(x, y-1).contains(status) ){\n is = true;\n }\n } else if((x == 0) && (y == 0)){\n if(getBtnAttr(x + 1, y).contains(status) && getBtnAttr(x, y+1).contains(status) ){\n is = true;\n }\n } else if((x == 0) && (y == size-1)){\n if(getBtnAttr(x + 1, y).contains(status) && getBtnAttr(x, y-1).contains(status) ){\n is = true;\n }\n } else if((x == size-1) && (y == 0)){\n if(getBtnAttr(x - 1, y).contains(status) && getBtnAttr(x, y+1).contains(status) ){\n is = true;\n }\n } else if((x == size-1) && (y == size-1)){\n if(getBtnAttr(x - 1, y).contains(status) && getBtnAttr(x, y-1).contains(status) ){\n is = true;\n }\n }\n return is;\n }", "title": "" }, { "docid": "e0465da33bb1ec2a7d59b303cffdd4da", "score": "0.6507289", "text": "private boolean checkIfInsideBoard(Point coordinates) {\r\n return ((coordinates.x >= 0 && coordinates.x < getBoardSize()) && (coordinates.y >= 0 && coordinates.y < getBoardSize()));\r\n\r\n }", "title": "" }, { "docid": "17c0593e4db6f897ebc4e9cbde815952", "score": "0.63578445", "text": "public boolean isOver(RectCollision other) //I don't know if this ever used but it checks overlapment. Refer to Board.isOLappingNode()\n {\n if(this.x1 == other.x1 && other.y1 == this.y1) //this = l1.x&y, r1.x&y (x1,y1)(x2,y2)\n { return true; }\n \n else\n {\n return false;\n }\n }", "title": "" }, { "docid": "790f8863ca9958ca74c3bf91af7e85ed", "score": "0.634349", "text": "public boolean possiblePosition(Ship shipToPlace)\n {\n if ((shipToPlace.getStern().getI() > GRID_WIDTH - 1) ||\n (shipToPlace.getStern().getJ() > GRID_HEIGHT - 1))\n return false;\n //draw potential placement\n \n //scan area around ship to determine whenever it touches others or not.\n\n int startI = shipToPlace.getBow().getI();\n int startJ = shipToPlace.getBow().getJ();\n\n int endI = shipToPlace.getStern().getI();\n int endJ = shipToPlace.getStern().getJ();\n\n for(int i = startI; i <= endI; i++)\n for(int j = startJ; j <= endJ; j++){\n if(grid[i][j].getState() != CellState.FREE)\n {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "c0755b6f8a9eb6adcc1adbd945f4c160", "score": "0.6330476", "text": "public boolean isInsideBounds(Position e);", "title": "" }, { "docid": "c9db3768ffd4c7f7b0108a14319dd97f", "score": "0.6325949", "text": "private boolean checkOverlap(Point p){\r\n\t\tNode current = this.m_snake.getHead();\r\n\t\tSnakePoint sp;\r\n\r\n\t\twhile (current != null) {\r\n\t\t\tsp = (SnakePoint) current.getData();\r\n\t\t\tif(p.equals(sp.getLocation())){\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tcurrent = current.getNextNode();\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "d292bcbc06fb4101cecac24732c97b3a", "score": "0.6274868", "text": "private boolean isInGrid()\r\n\t{\r\n\t\treturn !isInGYard();\r\n\t}", "title": "" }, { "docid": "dc82b9fabac1d5f5a60de5814c6906b5", "score": "0.6267625", "text": "boolean placementCheck(int x, int y, FloatRect boundaries, ArrayList<Tower> towers,Background selectedMap)\n\t{\n\t\tFloatRect towerBoundaries = this.getImg().getGlobalBounds();\n\t\tfor(Tower tower : towers)\n\t\t{\n\t\t\t// Checking if the tower isnt the current tower and checking if the tower lies within the point being checked\n\t\t\tif(tower != this && towerBoundaries.contains(tower.x, tower.y))\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t/*int boundaryLeft = (int) boundaries.left;\n\t\tint boundaryWidth = (int) boundaries.width;\n\t\tint boundaryTop = (int) boundaries.top;\n\t\tint boundaryHeight = (int) boundaries.height;*/\n\n\t\t//for(int i=boundaryLeft;i<boundaryLeft+boundaryWidth;i++)\n\t\t//{\n\t\t\t//for(int j=boundaryTop;j<boundaryTop+boundaryHeight;j++)\n\t\t//\t{\n\t\t\t\tColor pixel = iBackground.getPixel(x,y);\n\t\t\t\tColor placementColor1 = selectedMap.getPlacementColor1();\n\t\t\t\tColor placementColor2 = selectedMap.getPlacementColor2();\n\t\t\t\tboolean place1 = isSimilar(pixel,placementColor1,50);\n\t\t\t\tboolean place2 = isSimilar(pixel,placementColor2,50);\n\t\t\t\tif(!isTrap && !(place1 || place2)) return false;\n\t\t\t\tif(isTrap && (place1 || place2)) return false;\n\t\t//\t}\n\t\t//}\n\t\t\n\t\treturn true;\n\n\t}", "title": "" }, { "docid": "9fa29ebfa6a3c87c230830351da8120d", "score": "0.6261461", "text": "private static ArrayList<Position> positionsNearNotDeceasedShips() {\r\n\t\tBoard board = Game.getUniqueInstance().getPlayerBoard();\r\n\t\tArrayList<Position> shotsTakenByPlayer = board.shotsTaken();\r\n\t\tArrayList<Position> neightborPositions = new ArrayList<Position>();\r\n\t\tArrayList<Position> positions = new ArrayList<Position>();\r\n\t\tfor(Position position1 : shotsTakenByPlayer) {\r\n\t\t\tfor(Position position2 : shotsTakenByPlayer) {\r\n\t\t\t\tif(\r\n\t\t\t\t\t!position1.equals(position2) &&\r\n\t\t\t\t\tboard.shipInPosition(position1) != null &&\r\n\t\t\t\t\tboard.shipInPosition(position2) != null &&\r\n\t\t\t\t\t!board.shipInPosition(position1).isDeceased() &&\r\n\t\t\t\t\t!board.shipInPosition(position2).isDeceased()\r\n\t\t\t\t) {\r\n\t\t\t\t\tif(position1.getLetter() == position2.getLetter() && position1.getNumber() == position2.getNumber()-1) {\r\n\t\t\t\t\t\tPosition west = new Position(position1.getLetter(), position1.getNumber()-1);\r\n\t\t\t\t\t\tPosition east = new Position(position2.getLetter(), position2.getNumber()+1);\r\n\t\t\t\t\t\tif(Position.isValidPosition(west) && !positions.contains(west) && board.statusInPosition(west).equals(Status.NOT_SHOOTED))\r\n\t\t\t\t\t\t\tpositions.add(west);\r\n\t\t\t\t\t\tif(Position.isValidPosition(east) && !positions.contains(east) && board.statusInPosition(east).equals(Status.NOT_SHOOTED))\r\n\t\t\t\t\t\t\tpositions.add(east);\r\n\t\t\t\t\t\tif(!neightborPositions.contains(position1))\r\n\t\t\t\t\t\t\tneightborPositions.add(position1);\r\n\t\t\t\t\t\tif(!neightborPositions.contains(position2))\r\n\t\t\t\t\t\t\tneightborPositions.add(position2);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(position1.getNumber() == position2.getNumber() && position1.getLetter() == position2.getLetter()-1) {\r\n\t\t\t\t\t\tPosition north = new Position((char)(position1.getLetter()-1), position1.getNumber());\r\n\t\t\t\t\t\tPosition south = new Position((char)(position2.getLetter()+1), position2.getNumber());\r\n\t\t\t\t\t\tif(Position.isValidPosition(north) && !positions.contains(north) && board.statusInPosition(north).equals(Status.NOT_SHOOTED))\r\n\t\t\t\t\t\t\tpositions.add(north);\r\n\t\t\t\t\t\tif(Position.isValidPosition(south) && !positions.contains(south) && board.statusInPosition(south).equals(Status.NOT_SHOOTED))\r\n\t\t\t\t\t\t\tpositions.add(south);\r\n\t\t\t\t\t\tif(!neightborPositions.contains(position1))\r\n\t\t\t\t\t\t\tneightborPositions.add(position1);\r\n\t\t\t\t\t\tif(!neightborPositions.contains(position2))\r\n\t\t\t\t\t\t\tneightborPositions.add(position2);\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\tshotsTakenByPlayer.removeAll(neightborPositions);\r\n\t\tif(positions.size() < Game.getUniqueInstance().numberOfEnemyShipsAlive()) {\r\n\t\t\tArrayList<Position> singlePositions = new ArrayList<Position>();\r\n\t\t\tfor(Position position : shotsTakenByPlayer) {\r\n\t\t\t\tif(board.shipInPosition(position) != null && !board.shipInPosition(position).isDeceased()) {\r\n\t\t\t\t\tPosition[] nearPositions = new Position[4];\r\n\t\t\t\t\tnearPositions[0] = new Position((char)(position.getLetter()-1),position.getNumber());\r\n\t\t\t\t\tnearPositions[1] = new Position((char)(position.getLetter()+1),position.getNumber());\r\n\t\t\t\t\tnearPositions[2] = new Position(position.getLetter(),position.getNumber()-1);\r\n\t\t\t\t\tnearPositions[3] = new Position(position.getLetter(),position.getNumber()+1);\r\n\t\t\t\t\tfor(Position nearPosition : nearPositions) {\r\n\t\t\t\t\t\tif(Position.isValidPosition(nearPosition) && !singlePositions.contains(nearPosition) && board.statusInPosition(nearPosition).equals(Status.NOT_SHOOTED)) {\r\n\t\t\t\t\t\t\tsinglePositions.add(nearPosition);\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\twhile(positions.size() < Game.getUniqueInstance().numberOfEnemyShipsAlive() && !singlePositions.isEmpty()) {\r\n\t\t\t\tpositions.add(singlePositions.remove(new Random().nextInt(singlePositions.size())));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn positions;\r\n\t}", "title": "" }, { "docid": "d6323dedc56850cba0a932e7c76c37b0", "score": "0.6253704", "text": "private void checkCollide() {\n if (map != null && map.checkCollision(pos)) {\n // TODO check velocity, if > ts then check each tile that was crossed over\n\n boolean collisionLastX = map.checkCollision(new Vector2(lastPos.x, pos.y));\n boolean collisionLastY = map.checkCollision(new Vector2(pos.x, lastPos.y));\n\n if (collisionLastX == collisionLastY) {\n pos.set(Map.snap(lastPos, pos));\n } else if (!collisionLastX) {\n pos.x = Map.snap(lastPos.x, pos.x);\n } else {\n pos.y = Map.snap(lastPos.y, pos.y);\n }\n\n targetPos.set(pos);\n }\n }", "title": "" }, { "docid": "0afd00cf640978af5f98446c02665b40", "score": "0.6225103", "text": "public boolean isInside(Position p) {\r\n return p.getX() < 8 && p.getX() >= 0 && p.getY() < 8 && p.getY() >= 0;\r\n }", "title": "" }, { "docid": "1b28da29129a4a100fdf3f96e1e97433", "score": "0.6217669", "text": "static boolean isInsideGrid(int i, int j, int ROW, int COL)\n {\n return (i >= 0 && i < ROW &&j >= 0 && j < COL);\n }", "title": "" }, { "docid": "f6380e9446893b89a9d0d6ed9fc0dd03", "score": "0.6209054", "text": "private boolean canBePlaced (int row, int col, int[][] board, int n) {\n\n for ( int i = 0; i < n; i++ )\n if (board[i][col] == 1) {\n return false;\n }\n\n for (int i = row, j = col; !(i < 0 || i > n - 1 || j < 0 || j > n-1); i--, j--) {\n if (board[i][j] == 1) {\n return false;\n }\n }\n for (int i = row, j = col; !(i < 0 || i > n - 1 || j < 0 || j > n-1); i++, j++) {\n if (board[i][j] == 1) {\n return false;\n }\n }\n for (int i = row, j = col; !(i < 0 || i > n - 1 || j < 0 || j > n-1); i--, j++) {\n if (board[i][j] == 1) {\n return false;\n }\n }\n for (int i = row, j = col; !(i < 0 || i > n - 1 || j < 0 || j > n-1); i++, j--) {\n if (board[i][j] == 1) {\n return false;\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "72ec8491c228bd4a9f9c4f37c16a11c2", "score": "0.6201839", "text": "private boolean IsValidPosition(Pair<Integer> pos)\n {\n return (pos.first >= 0) && (pos.second >= 0) &&\n (pos.first < _board.Width) && (pos.second < _board.Height);\n }", "title": "" }, { "docid": "d25994952ff1c9072f334e076bbe3ac8", "score": "0.6158519", "text": "private void checkForOutBounds() {\n\t\t\tfloat x = position.x;\n\t\t\tfloat y = position.y;\n\t\t\tif(x>=Gdx.graphics.getWidth()) {\n\t\t\t\tposition.x = position.x-SNAKE_MOVEMENT;\n\t\t\t}\n\t\t\tif(x<0) {\n\t\t\t\tposition.x = position.x+SNAKE_MOVEMENT;\n\t\t\t}\n\t\t\tif(y >= Gdx.graphics.getHeight()) {\n\t\t\t\tposition.y = position.y-SNAKE_MOVEMENT;\n\t\t\t}\n\t\t\tif(y < 0) {\n\t\t\t\tposition.y = position.y+SNAKE_MOVEMENT;\n\t\t\t}\n\t}", "title": "" }, { "docid": "eff36a8bcec14b1c5cae34f34f747ae2", "score": "0.6155414", "text": "public void CheckPositions() {\r\n int start = 0;\r\n boolean[] isSpaceList = new boolean[spaceList.size()+1];\r\n for(boolean is: isSpaceList){\r\n is = false;\r\n }\r\n double x, y, isize, jsize, size, distance;\r\n for (int i = start; i < spaceList.size() - 1; i++) {\r\n for (int j = i + 1; j < spaceList.size(); j++) {\r\n x = ((spaceList.get(i).getxPosition()) - (spaceList.get(j).getxPosition()));\r\n y = ((spaceList.get(i).getyPosition()) - (spaceList.get(j).getyPosition()));\r\n distance = (x*x + y*y);\r\n isize = spaceList.get(i).getSize();\r\n jsize = spaceList.get(j).getSize();\r\n //size = Math.sqrt(Math.pow(isize, 2) + Math.pow(jsize, 2));\r\n if(((isize+jsize)*(isize+jsize)) > distance){\r\n if (testIntersection(spaceList.get(i).getPolygonFinal(), spaceList.get(j).getPolygonFinal())) {\r\n isSpaceList[i] = true;\r\n isSpaceList[j] = true; \r\n }\r\n }\r\n }\r\n }\r\n for (int i = 0; i < spaceList.size(); i++) {\r\n if (spaceList.get(i) instanceof Shot && (spaceList.get(i).getxPosition() < 50 || spaceList.get(i).getxPosition() > 1850 || spaceList.get(i).getyPosition() < 50 || spaceList.get(i).getyPosition() > 1000)) {\r\n isSpaceList[i] = true;\r\n }\r\n }\r\n for(int i = isSpaceList.length-1; i >= 0; i--){\r\n if(isSpaceList[i] == true){\r\n // spaceList.remove(i);\r\n spaceList.get(i).hitSpaceObject(spaceList.get(i));\r\n }\r\n }\r\n }", "title": "" }, { "docid": "4e48a55882cea62fdc67593970087501", "score": "0.61451966", "text": "public boolean inPosition() {\n\t\tif (player.absX == 3057 && player.absY == 4970 || player.absX == 3055 && player.absY == 4970 || player.absX == 3055 && player.absY == 4977 || player.absX == 3057 && player.absY == 4977) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "78bb0668334cf978a30571e6b9423cbb", "score": "0.6143088", "text": "public boolean isOutOfBounds ( Position position ) {\r\n\t\tPosition pos = convertPosition(position);\r\n\r\n\t\tif (pos.getX() < top_left.getX() ||\r\n\t\t\tpos.getX() > bottom_right.getX() ||\r\n\t\t\tpos.getY() < top_left.getY() ||\r\n\t\t\tpos.getY() > bottom_right.getY()) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "87e3924cd15160d14cfef6c6b7b24042", "score": "0.6137522", "text": "private boolean positionDoesNotOverlap(CellMessagePanel panel) {\r\n for (CellMessagePanel peer : panels) {\r\n if (peer != panel && panel.overlaps(peer)) {\r\n return false;\r\n }\r\n }\r\n // Only do this check when positioning messages off the current cell.\r\n // Obviously, the positions all overlap adjacent cells to the current\r\n // cell.\r\n Cell current = hasBoard.getBoard().getCurrentCell();\r\n if (panel.getTd() != current.getTd()) {\r\n for (Cell cell : current.getAdjacentCells(null)) {\r\n if (panel.overlaps(cell.getTd())) {\r\n return false;\r\n }\r\n }\r\n }\r\n \r\n // Does it extend off the page? The panel's left is not less than 5 and \r\n // it's top plus its height (and padding) are not greater than the window's height\r\n int bottom = (panel.getAbsoluteTop() + panel.getOffsetHeight() + 5);\r\n return (panel.getAbsoluteLeft() > 5) && (bottom < Window.getClientHeight());\r\n }", "title": "" }, { "docid": "fc5857be60b618a4cf38893d2c8507f8", "score": "0.6108032", "text": "private boolean isValidPlacement(String t, int x, int y) {\r\n boolean canPlace = false;\r\n //first check if first turn for either player\r\n\r\n //if its not the first turn then check if the spot is blank\r\n if(x < 0 || x > 14) {\r\n \tcanPlace = false;\r\n }\r\n else if(y < 0 || y > 14) {\r\n \tcanPlace = false;\r\n }\r\n else if (gomArr[x][y].equals(\"blank\")) {\r\n \tcanPlace = true;\r\n }\r\n return canPlace;\r\n }", "title": "" }, { "docid": "765ad72f32b34d32eec10114e62fc114", "score": "0.6103322", "text": "public static boolean recessive(Position current) {\n int currentX = current.getX();\n int currentY = current.getY();\n\n //base case check if we at the exit\n if (currentX == exitX && currentY == exitY) {\n System.out.println(currentX + \" \" + currentY);\n return true;\n }\n\n placesBeen.add(current);\n\n //now try to find where to go next\n //try eatch of the 4 adjacent tiles, check we have not been down them and that we can go down them\n Position upOne = new Position(currentY + 1, currentX);\n if (upOne.getY() < m && !placesBeen.contains(upOne) && maze.get(currentY + 1).get(currentX) == 1) {\n if (recessive(upOne)) {\n System.out.println(currentX + \" \" + currentY);\n return true;\n }else{\n placesBeen.remove(upOne);\n }\n }\n\n Position downOne = new Position(currentY - 1, currentX);\n if (downOne.getY() >= 0 && !placesBeen.contains(downOne) && maze.get(currentY - 1).get(currentX) == 1) {\n if (recessive(downOne)) {\n System.out.println(currentX + \" \" + currentY);\n return true;\n }else{\n placesBeen.remove(downOne);\n }\n }\n\n Position rightOne = new Position(currentY, currentX + 1);\n if (rightOne.getX() < n && !placesBeen.contains(rightOne) && maze.get(currentY).get(currentX + 1) == 1) {\n if (recessive(rightOne)) {\n System.out.println(currentX + \" \" + currentY);\n return true;\n }else{\n placesBeen.remove(rightOne);\n }\n }\n\n Position leftOne = new Position(currentY, currentX - 1);\n if (leftOne.getX() >= 0 && !placesBeen.contains(leftOne) && maze.get(currentY).get(currentX - 1) == 1) {\n if (recessive(leftOne)) {\n System.out.println(currentX + \" \" + currentY);\n return true;\n }else{\n placesBeen.remove(leftOne);\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "4b1ad77244f21b3d371ed970e285ce0a", "score": "0.61026907", "text": "boolean hasPosition();", "title": "" }, { "docid": "4b1ad77244f21b3d371ed970e285ce0a", "score": "0.61026907", "text": "boolean hasPosition();", "title": "" }, { "docid": "4b1ad77244f21b3d371ed970e285ce0a", "score": "0.61026907", "text": "boolean hasPosition();", "title": "" }, { "docid": "4b1ad77244f21b3d371ed970e285ce0a", "score": "0.61026907", "text": "boolean hasPosition();", "title": "" }, { "docid": "78aecde422bda60bdc702550f81b620f", "score": "0.60802907", "text": "boolean verificaPosicao(Navio n, Tabuleiro t) {\n\t\tint x = n.posicao[0][0], y = n.posicao[0][1];\n\t\tif (x < 0 || x + n.tamanho - 1 >= t.tamanho || y < 0 || y + n.tamanho - 1 >= t.tamanho) {\n\t\t\tif (n.jogador==1){\n\t\t\t\tSystem.out.println(\"Coordenadas fora do tabuleiro. Redigite.\");\n\t\t\t}\n\t\t\treturn false;\n\t\t} else {\n\t\t\tfor (int i = 0; i < n.tamanho; i++) {\n\t\t\t\tx = n.posicao[i][0];\n\t\t\t\ty = n.posicao[i][1];\n\t\t\t\tif (t.posicao[x][y] != 0) {\n\t\t\t\t\tif (n.jogador==1){\n\t\t\t\t\t\tSystem.out.println(\"Posicao ja ocupada. Redigite.\");\n\t\t\t\t\t}\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "9af8d81bebac3699d71b636845d1371b", "score": "0.6080259", "text": "protected boolean isPointInRegion(int rectX, int rectY, int rectWidth, int rectHeight, int pointX, int pointY) {\n/* 682 */ int i = this.guiLeft;\n/* 683 */ int j = this.guiTop;\n/* 684 */ pointX -= i;\n/* 685 */ pointY -= j;\n/* 686 */ return (pointX >= rectX - 1 && pointX < rectX + rectWidth + 1 && pointY >= rectY - 1 && pointY < rectY + rectHeight + 1);\n/* */ }", "title": "" }, { "docid": "23427ec5b7fcbf0ee427a8d6bd464c19", "score": "0.60751027", "text": "public boolean hit_or_miss(int xcoor, int ycoor)\r\n{\r\n\tif(!in_Grid(xcoor, ycoor))\r\n\t\treturn false;\r\n\t\r\n\tif(battleship.position[xcoor][ycoor]>=1){\r\n\t\tbattleship.position_hit[xcoor][ycoor]=1;\r\n\t\t\r\n\t\treturn true;\r\n\t}\r\n\tif(carrier.position[xcoor][ycoor]>=1){\r\n\t\tcarrier.position_hit[xcoor][ycoor]=1;\r\n\t\t\r\n\t\treturn true;\r\n\t}\r\n\tif(submarine.position[xcoor][ycoor]>=1){\r\n\t\tsubmarine.position_hit[xcoor][ycoor]=1;\r\n\t\t\r\n\t\treturn true;\r\n\t}\r\n\tif(cruiser.position[xcoor][ycoor]>=1){\r\n\t\tcruiser.position_hit[xcoor][ycoor]=1;\r\n\t\t\r\n\t\treturn true;\r\n\t}\r\n\tif(patrolboat.position[xcoor][ycoor]>=1){\r\n\t\tpatrolboat.position_hit[xcoor][ycoor]=1;\r\n\t\t\r\n\t\treturn true;\r\n\t}\r\n\telse \r\n\t\treturn false;\r\n}", "title": "" }, { "docid": "362ffb8b5aec7ffb7dbb2c1e10a75490", "score": "0.6067099", "text": "private void checkOverLap() {\r\n\t\tboolean check = PlantStageUtil.plants.size() != 0;\r\n\t\twhile(check) {\r\n\t\t\tfor(Plant plant : PlantStageUtil.plants) {\r\n\t\t\t\tRectangle plantRect = new Rectangle(plant.location.x, plant.location.y, plant.radius, plant.radius);\r\n\t\t\t\tRectangle rect = new Rectangle(this.location.x, this.location.y, this.radius, this.radius);\r\n\t\t\t\tif(rect.intersects(plantRect)) {\r\n\t\t\t\t\tthis.location = new Point(CommonUtil.getRandomNumber(radius, ScreenUtils.WIDTH - radius), CommonUtil.getRandomNumber(radius, ScreenUtils.HEIGHT - radius));\r\n\t\t\t\t\tcheck = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}else\r\n\t\t\t\t\tcheck = false;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "465992e1fa8814ab0add3d1e2bad5507", "score": "0.6064152", "text": "public boolean wumpusNear() {\n int x = getX() / 30;\n int y = getY() / 30;\n if (gridTiles.getGridTile((x + 1) % 20, y) == 5 ||\n gridTiles.getGridTile((x + 19) % 20, y) == 5 ||\n gridTiles.getGridTile(x, (y + 1) % 20) == 5 ||\n gridTiles.getGridTile(x, (y + 19) % 20) == 5\n ) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "6d5bc28ad352494e620e32ff859971bb", "score": "0.60618645", "text": "public boolean isPositionOccupied(int pos){\r\n DigitalInput x=m_top;\r\n if(pos==BALL_POSITION_TOP){\r\n x=m_top;\r\n }\r\n else if(pos==BALL_POSITION_MIDDLE){\r\n x=m_middle;\r\n }\r\n else if(pos==BALL_POSITION_BOTTOM){\r\n x=m_bottom;\r\n }\r\n else{\r\n return false;\r\n }\r\n return x.get();\r\n }", "title": "" }, { "docid": "3c1ea7c5bd368ff13e2e813b8197bdd3", "score": "0.60538054", "text": "private boolean checkIfBoardIsFull(){\r\n for(int i = 0; i < getBoardSize(); i++)\r\n for(int j = 0; j < getBoardSize(); j++){\r\n if(checkIfEmptySpot(new Point(j, i)))\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "777107cde383c529c33f98890374316a", "score": "0.6022124", "text": "private boolean isColliding() {\n\tif ((xLoc < 0)) {\n\t //System.out.println(\"Left\");\n\t return true;\n\t} else if (yLoc < 0) {\n\t //System.out.println(\"Top\");\n\t return true;\n\t} else if ((xLoc + imgWidth) >= frameWidth) {\n\t //System.out.println(\"Right\");\n\t return true;\n\t} else if ((yLoc + imgHeight) >= frameHeight) {\n\t //System.out.println(\"Bottom\");\n\t return true;\n\t}\n\treturn false;\n }", "title": "" }, { "docid": "cf6599cc7f6fc2472bde46cbda11f990", "score": "0.6006734", "text": "boolean equals(GridPosition gridPosition);", "title": "" }, { "docid": "21da68a6f720c65f9a4828a3615f3efd", "score": "0.6002278", "text": "boolean hasGrid();", "title": "" }, { "docid": "8b2003d36c133fcd95048e1a48a0bb8e", "score": "0.5996037", "text": "public boolean postionShipsOnGrid(Ship ship, Position position, int direction) {\n if (postionIsAvailable(ship, position, direction)) {\n placeShip(ship, position, direction);\n return true;\n } else\n return false;\n }", "title": "" }, { "docid": "592963c967286df4e9d05b56ac604bce", "score": "0.5989916", "text": "public boolean allAlligned() {\r\n\r\nint ctr=0;\r\nfor (int g=0; g<PacmanUtilities.numberOfGhosts; g++) {\r\n\tif (currentGhostPos[0][1]==currentGhostPos[g][1]) {\r\n\t\tctr++;\r\n\t}\r\n}\r\nreturn (ctr==PacmanUtilities.numberOfGhosts);\r\n}", "title": "" }, { "docid": "fbf3fc5bb695adaf4a6c4c337b86197a", "score": "0.5966079", "text": "private static boolean isMineAt(final int[][] grid, final int x, final int y, final int width, final int height) {\n if (x >= 0 && y >= 0 && x < width && y < height) {\n if (grid[x][y] == -1) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "f6fc7da41ebab929a2312aba9474a177", "score": "0.5943629", "text": "public boolean validate(Ship shipToPlace)\n {\n if ((shipToPlace.getStern().getI() > GRID_WIDTH - 1) ||\n (shipToPlace.getStern().getJ() > GRID_HEIGHT - 1))\n return false;\n //draw potential placement\n \n //scan area around ship to determine whenever it touches others or not.\n boolean doesNotIntersect = true;\n\n int startI = (shipToPlace.getBow().getI() - 1 < 0) ? 0 : shipToPlace.getBow().getI() - 1;\n int startJ = (shipToPlace.getBow().getJ() - 1 < 0) ? 0 : shipToPlace.getBow().getJ() - 1;\n\n int endI = (shipToPlace.getStern().getI() + 1 > GRID_WIDTH - 1) \n ? shipToPlace.getStern().getI() : shipToPlace.getStern().getI() + 1;\n int endJ = (shipToPlace.getStern().getJ() + 1 > GRID_HEIGHT - 1) \n ? shipToPlace.getStern().getJ() : shipToPlace.getStern().getJ() + 1;\n\n //gridPaint(shipToPlace.getBow(), shipToPlace.getStern(), CellState.CANDIDATE);\n for(int i = startI; i <= endI; i++)\n for(int j = startJ; j <= endJ; j++){\n if(grid[i][j].getState() == CellState.BUSY)\n {\n doesNotIntersect = false;\n grid[i][j].setState(CellState.INTERSECTION);\n }\n else if(!shipToPlace.inBounds(new Coordinates(i,j)))\n grid[i][j].setState(CellState.NEAR_SHIP_AREA);\n else\n grid[i][j].setState(CellState.CANDIDATE);\n }\n \n return doesNotIntersect;\n }", "title": "" }, { "docid": "fe9f7a37f8907fc091c0452a37c11736", "score": "0.5940749", "text": "public boolean isOccupied(Position pos);", "title": "" }, { "docid": "ebba6bcc0f2312511607270d00df673b", "score": "0.5939458", "text": "static boolean checkPosition(String[][] map, int[] position, int placed, int shipSize) {\n try {\n if (placed == 1) {\n for (int i = 0; i < shipSize; i++) {\n if (map[position[0] + i][position[1]].equals(\"V|\")) {\n System.out.println(\" There is another ship \");\n return false;\n }\n }\n } else if (placed == 2) {\n for (int i = 0; i < shipSize; i++) {\n if (map[position[0]][(position[1]) + i].equals(\"V|\")) {\n System.out.println(\" There is another ship \");\n return false;\n }\n }\n }\n } catch (Exception e) {\n System.out.println(\" Ship does not fit in the map \");\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "9c3e949e44babfeed15626103d489606", "score": "0.5938729", "text": "public boolean isValidPosition(MotionEvent event) {\n boolean isValid = true;\n double ballRadius;\n\n /**\n * Other balls\n */\n for (int i = 0; i < this.balls.size(); i++) {\n Ball ball = this.balls.get(i);\n double distSqr = Utility.getDistanceNotSquared((event.getX() - this.whiteBall.getWidth()) + this.whiteBall.getRadius(),\n (event.getY() - this.whiteBall.getHeight()) + this.whiteBall.getRadius(), ball.getVector2().getX(), ball.getVector2().getY());\n\n if (this.whiteBall == balls.get(i)) {\n continue;\n }\n ballRadius = balls.get(i).getRadius();\n if (distSqr <= (this.whiteBall.getRadius() + ballRadius) * (this.whiteBall.getRadius() + ballRadius) && this.whiteBall.getCollision()) {\n isValid = false;\n }\n }\n\n /**\n * Holes\n */\n for (int i = 0; i < this.holes.size(); i++) {\n Hole hole = this.holes.get(i);\n double distSqr = Utility.getDistanceNotSquared((event.getX() - this.whiteBall.getWidth()) + this.whiteBall.getRadius(),\n (event.getY() - this.whiteBall.getHeight()) + this.whiteBall.getRadius(), (hole.getVector2().getX() - 18), (hole.getVector2().getY() - 18));\n\n if (distSqr <= (this.whiteBall.getRadius() + 20) * (this.whiteBall.getRadius() + 20) && this.whiteBall.getCollision()) {\n isValid = false;\n }\n }\n\n /**\n *Muren links en rechts\n */\n\n if (event.getX() - this.whiteBall.getRadius() < game.getWidth() * 0.07) {\n isValid = false;\n } else if (event.getX() + this.whiteBall.getRadius() > game.getWidth() * 0.93) {\n isValid = false;\n }\n\n /**\n * Muren boven en onder\n */\n if (event.getY() - this.whiteBall.getRadius() < game.getPlayHeight() * 0.12) {\n isValid = false;\n } else if (event.getY() + this.whiteBall.getRadius() > game.getPlayHeight() * 0.88) {\n isValid = false;\n }\n\n /**\n * PlaceableWalls\n */\n for (int i = 0; i < game.getWalls().size(); i++) {\n\n Wall wall = game.getWalls().get(i);\n\n double side1 = Math.sqrt(Math.pow(event.getX() - wall.getVector2().getX(), 2) + Math.pow(event.getY() - wall.getVector2().getY(), 2));\n double side2 = Math.sqrt(Math.pow(event.getX() - wall.getEndVector2().getX(), 2) + Math.pow(event.getY() - wall.getEndVector2().getY(), 2));\n double base = Math.sqrt(Math.pow(wall.getEndVector2().getX() - wall.getVector2().getX(), 2) + Math.pow(wall.getEndVector2().getY() - wall.getVector2().getY(), 2));\n\n if (this.whiteBall.getRadius() + this.whiteBall.getWidth() / 2 > side1 || this.whiteBall.getRadius() + this.whiteBall.getWidth() / 2 > side2) return false;\n double angle1 = Math.atan2(wall.getEndVector2().getX() - wall.getVector2().getX(), wall.getEndVector2().getY() - wall.getVector2().getY()) - Math.atan2(event.getX() - wall.getVector2().getX(), event.getY() - wall.getVector2().getY());\n double angle2 = Math.atan2(wall.getVector2().getX() - wall.getEndVector2().getX(), wall.getVector2().getY() - wall.getEndVector2().getY()) - Math.atan2(event.getX() - wall.getEndVector2().getX(), event.getY() - wall.getEndVector2().getY());\n\n if (angle1 > Math.PI / 2 || angle2 > Math.PI / 2)\n return true;\n\n double semiperimeter = (side1 + side2 + base) / 2;\n\n double areaOfTriangle = Math.sqrt(semiperimeter * (semiperimeter - side1) * (semiperimeter - side2) * (semiperimeter - base));\n\n double height = 2 * areaOfTriangle / base;\n\n isValid = !(height < this.whiteBall.getRadius() + this.whiteBall.getWidth() / 2);\n }\n\n return isValid;\n }", "title": "" }, { "docid": "ede8a4804b254054a2c7180ebd81805b", "score": "0.5934336", "text": "public boolean overlaps(Plot p){\n //if one rectangle is on left side of other or if one rectangle is above other\n //assume no overlap\n boolean xCoordCheck = this.getX() >= p.getXLower() || p.getX() >= this.getXLower();\n boolean yCoordCheck = this.getY() <= p.getYLower() || p.getY() <= this.getYLower();\n return !xCoordCheck && !yCoordCheck;\n }", "title": "" }, { "docid": "5cb83786a067d2423708f07185c02eeb", "score": "0.5929753", "text": "private boolean thirdAndMorePlacementCheck(int xToCheck, int yToCheck) {\n if(!Game.shipsCanTouch() && isTouching(xToCheck * 10 + yToCheck)){\n return false;\n }\n \n List<Integer> currentCoordinates = game.getCurrentShip().getCoordinates();\n Collections.sort(currentCoordinates);\n\n Integer startBorder = currentCoordinates.get(0);\n\n Integer endBorder = currentCoordinates.get(currentCoordinates.size() - 1);\n\n if (game.getCurrentShip().isHorizontalPlacement()) {\n // x +- 1\n int startBorderX = startBorder / 10;\n int endBorderX = endBorder / 10;\n\n boolean possibleXBeforeStart = (startBorderX - 1) == xToCheck;\n boolean possibleXAfterEnd = (endBorderX + 1) == xToCheck;\n\n boolean possibleY = startBorder % 10 == yToCheck;\n\n return (possibleXBeforeStart || possibleXAfterEnd) && possibleY;\n\n } else {\n // y +- 1\n int startBorderY = startBorder % 10;\n int endBorderY = endBorder % 10;\n\n boolean possibleYBeforeStart = (startBorderY - 1) == yToCheck;\n boolean possibleYAfterEnd = (endBorderY + 1) == yToCheck;\n\n boolean possibleX = startBorder / 10 == xToCheck;\n\n return (possibleYBeforeStart || possibleYAfterEnd) && possibleX;\n }\n }", "title": "" }, { "docid": "d686edc51b028cc39b78be35362ee93a", "score": "0.5926305", "text": "public boolean canMove(Piece s, Point t){\n //not empty\n if (map[t.x][t.y] != -1) return false;\n return Math.abs(s.x - t.x) + Math.abs(s.y-t.y) == 1;\n }", "title": "" }, { "docid": "228df9bcbaef3ad4de1c077726795dcb", "score": "0.59241134", "text": "public boolean canMove() {\n Grid<Actor> gr = getGrid();\n if (gr == null) {\n return false;\n }\n\n ArrayList<Location> allLocation = getValid(getLocation());\n \n // the first element in allLocation list is current position.\n allLocation.add(0, getLocation());\n \n ArrayList<Location> emptyLocation = new ArrayList<Location>();\n \n \n for (int i = 1 ; i < allLocation.size() ; i++) {\n if (gr.get(allLocation.get(i)) == null) {\n emptyLocation.add(allLocation.get(i));\n }\n }\n \n /* \n * check if there is a empty location can move\n * if yes, push current position into stack\n * if none, pop the stack to get the last position to move (go back)\n */\n \n if (!emptyLocation.isEmpty()) {\n next = chooseDirection(emptyLocation);\n crossLocation.push(allLocation);\n int direction = getLocation().getDirectionToward(next);\n directionCount.put(direction, directionCount.get(direction) + 1);\n }\n else if (!crossLocation.empty()) {\n allLocation = crossLocation.pop();\n next = allLocation.get(0);\n int direction = next.getDirectionToward(getLocation());\n directionCount.put(direction, directionCount.get(direction) - 1);\n }\n return true;\n }", "title": "" }, { "docid": "c6ed03df4eefe77b6c0479c4d84411ba", "score": "0.5907096", "text": "private static boolean inrage(int nx, int ny) {\n if (nx >= 0 && ny >= 0 && nx < n && ny < n)\n return true;\n return false;\n }", "title": "" }, { "docid": "0b47b97cb402f3cc413c87d073e35074", "score": "0.59047675", "text": "public boolean isOccupiedPosition(int gridRow, int gridColumn) {\n\t\treturn false;\n\t\t//to check if a grid cell is already occupied\n\t}", "title": "" }, { "docid": "5b1b226d5cb72de6030fb664a4f2584b", "score": "0.5883022", "text": "public void checkPlatformIntersect() {\n for (Obstacle o : scene) {\n if (bot.intersect(o.getTop())) {//Top intersect\n ground = true;\n dy = 0;\n float d = Math.abs(y + imageHeight - o.getTop().top); //distance of intersection sides use for offset\n y -= d - 2;\n break;\n } else if (!bot.intersect(o.getTop())) {//Free fall\n ground = false; //if none of objects' top touch bottom, no ground\n }\n\n if (top.intersect(o.getBot())) {//Bot intersect\n //if top touch object bottom (ceiling), no ground and stop moving in that direction, offset outside rectangle\n dy = -dy;\n float d = Math.abs(y - o.getBot().bottom); //distance of intersection sides\n this.y += d;\n ground = false;\n break;\n }\n }\n }", "title": "" }, { "docid": "ab8a10a38f1681d1cb06a1f6a5ba1fdb", "score": "0.587725", "text": "private boolean isInBound(int row, int col) {\n return (row >= 0) && (row < N) && (col >= 0) && (col < N);\n }", "title": "" }, { "docid": "d2812848f3c31cdefae39da03ff972b0", "score": "0.5862505", "text": "public boolean doesOverlap(int[]zoneRect) {\n int[] hitBox = {pos[X]+15,pos[Y]+16,pos[WIDTH]-30,pos[HEIGHT]-32}; // Declaring the hitbox of the frog\n if (hitBox[X] > zoneRect[X]+zoneRect[WIDTH] || zoneRect[X] > hitBox[X]+hitBox[WIDTH]) {\n return false;\n }\n\n // If one rectangle is above other\n else if (hitBox[Y] > zoneRect[Y]+zoneRect[HEIGHT] || zoneRect[Y] > hitBox[Y]+hitBox[HEIGHT]) {\n return false;\n }\n //Otherwise the Rects overlap\n return true;\n }", "title": "" }, { "docid": "3de83472346eda1ff5f9a73d3f971e6e", "score": "0.5859811", "text": "private boolean isLocationOk(int dimension1, int dimension2,\n\t\t\tboolean horizontal, Ocean ocean) {\n\t\t// initialize the primitive to return\n\t\tboolean isEmpty = true;\n\t\t// these four variables gives the range of squares to check\n\t\tint startEdge;\n\t\tint endEdge;\n\t\tint startPoint;\n\t\tint endPoint;\n\n\t\t// if end position of dimension1 does not exceed the range\n\t\tif (dimension1 + this.getLength() <= 10) {\n\t\t\t// find the start and end point (length) to scan\n\t\t\tstartPoint = dimension1 - 1;\n\t\t\tendPoint = dimension1 + this.getLength();\n\t\t\t\n\t\t\t// if the ship is proposed to be place at a edge\n\t\t\t// modify the startPoint and endPoint\n\t\t\tif (startPoint == -1) {\n\t\t\t\tstartPoint = 0;\n\t\t\t}else if (endPoint == 10) {\n\t\t\t\tendPoint = 9;\n\t\t\t}\n\n\t\t\t// find the width of the scan\n\t\t\tstartEdge = dimension2 - 1;\n\t\t\tendEdge = dimension2 + 1;\n\t\t\t\n\t\t\t// if the ship is proposed to be placed at a edge\n\t\t\t// modify the startEdge and endEdge\n\t\t\tif (startEdge == -1) {\n\t\t\t\tstartEdge = 0;\n\t\t\t}else if (endEdge == 10){\n\t\t\t\tendEdge = 9;\n\t\t\t}\n\n\t\t\t// determine if the ship could be placed\n\t\t\t// iterate through each square in the required range\n\t\t\t// to check whether any of them are o\n\t\t\t// if so return false\n\t\t\tfor (int i = startPoint; i <= endPoint; i++) {\n\t\t\t\tfor (int j = startEdge; j <= endEdge; j++) {\n\t\t\t\t\t// if the ship is horizontal\n\t\t\t\t\tif (horizontal) {\n\t\t\t\t\t\t// dimension1 = column\n\t\t\t\t\t\tif (ocean.isOccupied(j, i)) {\n\t\t\t\t\t\t\tisEmpty = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t// if the ship is vertical\n\t\t\t\t\t}else {\n\t\t\t\t\t\t// dimension1 = row\n\t\t\t\t\t\tif (ocean.isOccupied(i, j)) {\n\t\t\t\t\t\t\tisEmpty = false;\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// return false when the length of the ship exceeds the range\n\t\t}else {\n\t\t\tisEmpty = false;\n\t\t}\n\t\t\n\t\t// return the result\n\t\treturn isEmpty;\n\t}", "title": "" }, { "docid": "b7d6bd58e6c43092363656db694a131f", "score": "0.5857282", "text": "private boolean isMovePossible() {\n\t\tif ((getSquareWithOffset(-1, 0) != '#')\n\t\t\t\t|| (getSquareWithOffset(0, 1) != '#')\n\t\t\t\t|| (getSquareWithOffset(1, 0) != '#')\n\t\t\t\t|| (getSquareWithOffset(0, -1) != '#')) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "bbe75b31c4e813c8af0ba4cb427ddb39", "score": "0.584862", "text": "boolean canMoveTo(int x, int y);", "title": "" }, { "docid": "a1009ba06857a1490f76729181ff27f5", "score": "0.5846597", "text": "public boolean inBounds(GridPosition position) {\n return grid.inBounds(position);\n }", "title": "" }, { "docid": "d57d7c65ef33309b68416ba90840b480", "score": "0.58410555", "text": "public abstract boolean canMove(Board board, int startRow, int startCol, int endRow, int endCol);", "title": "" }, { "docid": "b398bcd6c894193151017658f537ddba", "score": "0.58400536", "text": "public void collisionCheck() {\n \n\t\t//clear the division space map\n\t\tfor (int i = 0; i < dsmDim.getX() * dsmDim.getY(); ++i) {\n\t\t\t\n\t\t divisionSpaceMap.get(i).clear();\n\t\t}\n\t\t\n\t\t//build the division space map\n\t\tfor (CollisionType c : entities) {\n\t\t \n\t\t //find the locations of the entities in the division space\n Vector2d lowerBound = new Vector2d(\n (int) ((c.getPos().getX() - (c.getDim().getX() / 2.0f)\n + dim.getX()) * 5.0f),\n (int) ((c.getPos().getY() - (c.getDim().getY() / 2.0f) +\n dim.getY()) * 5.0f));\n\t\t \n Vector2d upperBound = new Vector2d(\n (int) ((c.getPos().getX() + (c.getDim().getX() / 2.0f)\n + dim.getX()) * 5.0f),\n (int) ((c.getPos().getY() + (c.getDim().getY() / 2.0f) +\n dim.getY()) * 5.0f));\n \n// if (c instanceof Obstacle) {\n// \n// Log.v(\"Obliterate\", \"pos: \" + c.getPos().getX() + \" x \" + c.getPos().getY());\n// Log.v(\"Obliterate\", \"dim: \" + c.getDim().getX() + \" x \" + c.getDim().getY());\n// Log.v(\"Obliterate\", \"lower: \" + lowerBound.getX() + \" x \" + lowerBound.getY());\n// Log.v(\"Obliterate\", \"upper: \" + upperBound.getX() + \" x \" + upperBound.getY());\n// }\n\t\t\t\n\t\t\t//TODO: optimise\n\t\t\tfor (int y = (int) lowerBound.getY();\n\t\t\t y <= (int) upperBound.getY(); ++y) {\n\t\t\t for (int x = (int) lowerBound.getY();\n\t\t x <= (int) upperBound.getY(); ++x) {\n\t\t\t \n\t\t\t if (x >= 0 && x < dsmDim.getX() &&\n\t\t y >= 0 && y < dsmDim.getY()) {\n\t\t\t \n\t\t\t divisionSpaceMap.get(\n\t\t (int) (x + (y * dsmDim.getX()))).add(c);\n\t\t\t }\n\t\t\t }\n\t\t\t}\n\t\t}\n\t\t\n\t\t//check collision\n\t\tfor (ArrayList<CollisionType> a : divisionSpaceMap) {\n\t\t\t\n\t\t \n\t\t\tfor (CollisionType c1 : a) {\n\t\t\t \n\t\t\t\tfor (CollisionType c2 : a) {\n\t\t\t\t\t \n\t\t\t\t //TODO: optimise loop\n\t\t\t\t \n\t\t\t\t\tif (c1 != c2 && collision(c1, c2)) {\n\t\t\t\t\t \n if (c1 instanceof Debris && c2 instanceof Obstacle) {\n \n c1.getSpeed().set(-c1.getSpeed().getX() * 0.5f,\n -c1.getSpeed().getY() * 0.5f);\n \n c1.getPos().add(c1.getSpeed());\n }\n else if (c1 instanceof Debris && c2 instanceof Force &&\n\t\t\t\t !((Debris) c1).getForceApplied()) {\n\t\t\t\t\t \n\t\t\t\t //calculate the direction\n\t\t\t double direction =\n\t\t c2.getPos().angleBetween(c1.getPos());\n\t\t\t \n\t\t\t //add some noise to the angle\n\t\t\t direction += ((Math.PI / 3.0) *\n\t\t rand.nextFloat()) - (Math.PI / 6.0);\n\t\t\t \n\t\t\t Vector2d speed = new Vector2d(\n\t\t (float) -(c2.getSpeed().getX() *\n Math.cos(direction)),\n\t\t (float) (c2.getSpeed().getX() *\n Math.sin(direction)));\n\t\t\t \n\t\t\t //set that the fore has been applied\n\t\t\t ((Debris) c1).setForceApplied(true);\n\t\t\t ((Debris) c1).applyGravity();\n\t\t\t \n\t\t\t c1.setSpeed(speed);\n\t\t\t \n\t\t\t break;\n\t\t\t\t\t }\n\t\t\t\t\t else if (c1 instanceof Debris && c2 instanceof Debris) {\n\t\t\t\t\t \n\t\t\t\t\t if (((Debris) c2).getApplyGravity()) {\n\t\t\t\t\t \n\t\t\t\t\t ((Debris) c1).applyGravity();\n\t\t\t\t\t \n\t\t\t\t\t //set a little bit of noise\n\t\t\t\t\t c1.getSpeed().add(0.001f * (rand.nextFloat() - 0.5f),\n\t\t\t\t\t 0.001f * (rand.nextFloat() - 0.5f));\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\t\n\t\t\t\tif (c1 instanceof Debris && ((Debris) c1).getApplyGravity()) {\n\t\t\t\t \n\t\t\t\t float speedX = c1.getSpeed().getX();\n\t\t\t\t float speedY = c1.getSpeed().getY();\n\t\t\t\t \n if (speedX > gravity.getX()) {\n \n speedX -= Math.abs(gravity.getX() / 110.0f);\n }\n else if (speedX < gravity.getX()) {\n \n speedX += Math.abs(gravity.getX() / 110.0f);\n }\n if (speedY > gravity.getY()) {\n \n speedY -= Math.abs(gravity.getY() / 110.0f);\n }\n else if (speedY < gravity.getY()) {\n \n speedY += Math.abs(gravity.getY() / 110.0f);\n }\n \n c1.getSpeed().set(speedX, speedY);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n }", "title": "" }, { "docid": "3f5bf7bf26113f7097c905436712f51d", "score": "0.58320624", "text": "@Test\r\n\tvoid testNoOverlap() {\n\t\tassertEquals(Chess.noOverlap(\"Ka1, Qb\"), false);\r\n\t\tassertEquals(Chess.noOverlap(\"Ka1, Qb12, Ra8\"), false);\r\n\t\t// Should return false if two pieces share a location\r\n\t\tassertEquals(Chess.noOverlap(\"Ka1, Qb2, Pc3, Pb2, Pd5\"), false);\r\n\t\t// Should return true if no two pieces share a location\r\n\t\tassertEquals(Chess.noOverlap(\"Ka1, Qb1, Pa2, Pb2, Nb3, Rc2\"), true);\r\n\t}", "title": "" }, { "docid": "3ec5f0f16a9d84290989792cfc5528c8", "score": "0.5825355", "text": "public boolean isInside(Vector2 p) {\r\n return p.x >= -(getWidth()/2 + numberOfLoops * COIL_WIDTH) && p.x <= getWidth()/2 &&\r\n p.y >= -getHeight()/2 && p.y <= getHeight()/2;\r\n }", "title": "" }, { "docid": "015900760a171205e786591617e8e8d1", "score": "0.5821366", "text": "public boolean isPossibleMove(Point coordinates) {\r\n boardMatrix = getBoard();\r\n boolean v1 = false, v2 = false, v3 = false, v4 = false, v5 = false,\r\n v6 = false, v7 = false, v8 = false;\r\n if (checkIfInsideBoard(coordinates) && checkIfEmptySpot(coordinates)) {\r\n v1 = (checkDirection(coordinates, new Point(0, 1)));\r\n //GameManager.printBoard(this);\r\n v2 = (checkDirection(coordinates, new Point(1, 0)));\r\n //GameManager.printBoard(this);\r\n v3 = (checkDirection(coordinates, new Point(0, -1)));\r\n //GameManager.printBoard(this);\r\n v4 = (checkDirection(coordinates, new Point(-1, 0)));\r\n //GameManager.printBoard(this);\r\n v5 = (checkDirection(coordinates, new Point(1, 1)));\r\n //GameManager.printBoard(this);\r\n v6 = (checkDirection(coordinates, new Point(1, -1)));\r\n //GameManager.printBoard(this);\r\n v7 = (checkDirection(coordinates, new Point(-1, -1)));\r\n //GameManager.printBoard(this);\r\n v8 = (checkDirection(coordinates, new Point(-1, 1)));\r\n //GameManager.printBoard(this);\r\n\r\n }\r\n return (v1 || v2 || v3 || v4 || v5 || v6 || v7 || v8);\r\n }", "title": "" }, { "docid": "a2728a0703d79e62465684e2c0faee59", "score": "0.58212185", "text": "private boolean checkPosition(int[] positions, int occupiedRows, int columnIndex) {\n for (int i = 0; i < occupiedRows; i++) {\n if ((positions[i] == columnIndex) || (positions[i] - i == columnIndex - occupiedRows) || (positions[i] + i == columnIndex + occupiedRows)) {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "233f6da64c204366abc3af4e6e11c451", "score": "0.5820223", "text": "public boolean findCollision() {\n\t\tPoint mid = new Point(0.0, 0.0);\n\t\tPoint reala = new Point(0.0, 0.0);\n\t\tPoint realb = new Point(0.0, 0.0);\n\n\t\tfor (int i = id; i < p.numBodies - 1; i = i + numWorkers) {\n\t\t\tfor (int j = i + 1; j < p.numBodies; j++) {\n\t\t\t\tp.overlapCount = 0;\n\t\t\t\tif (overlap(p.changeArray.get(i), p.changeArray.get(j)) == true) {\n\t\t\t\t\tthis.collision += 1;\n\t\t\t\t\tdouble distance = Math.sqrt(Math.pow(\n\t\t\t\t\t\t\t(p.changeArray.get(i).acquirePosition().x - p.changeArray.get(j).acquirePosition().x), 2.0)\n\t\t\t\t\t\t\t+ Math.pow((p.changeArray.get(i).acquirePosition().y\n\t\t\t\t\t\t\t\t\t- p.changeArray.get(j).acquirePosition().y), 2.0));\n\t\t\t\t\t//System.out.printf(\"distance: %f\\n\", distance);\n\t\t\t\t\t//System.out.println(\"Deceted Collection here<-----------------------\\n\");\n\t\t\t\t\tif (distance < p.sizeOfBody && p.overlapCount > 10) {\n\t\t\t\t\t\tp.DT *= 0.5;\n\t\t\t\t\t\t//System.out.println(\"Deceted Collection OVERLAP here<-----------------------\\n\");\n\t\t\t\t\t\tp.overlapCount++;\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tmid.x = (p.changeArray.get(i).acquirePosition().x + p.changeArray.get(j).acquirePosition().x) / 2;\n\t\t\t\t\tmid.y = (p.changeArray.get(i).acquirePosition().y + p.changeArray.get(j).acquirePosition().y) / 2;\n\t\t\t\t\treala = calculateRealLocation(distance, mid, p.changeArray.get(i).acquirePosition());\n\t\t\t\t\trealb = calculateRealLocation(distance, mid, p.changeArray.get(j).acquirePosition());\n\t\t\t\t\tp.changeArray.get(i).makePosition(reala.x, reala.y);\n\t\t\t\t\tp.changeArray.get(j).makePosition(realb.x, realb.y);\n\t\t\t\t\tgetCollision(i,j);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "0acfe5d29a5c7d75e1260789794377a9", "score": "0.5815609", "text": "public boolean checkBoardCollision()\n {\n for(int i = bodyLength; i > 0; i--)\n {\n if((i > 4) && (getHeadX() == x[i]) && (getHeadY() == y[i]))\n {\n return false;\n }\n }\n if(getHeadY() >= GameValues.BoardHeight - GameValues.ScorePanelHeight){\n return false;\n }\n if (getHeadY() < 0) {\n return false;\n }\n if(getHeadX() >= GameValues.BoardWidth)\n {\n return false;\n }\n return getHeadX() >= 0;\n }", "title": "" }, { "docid": "dcfa1df02a12bcc8f7523144a35c8945", "score": "0.5812706", "text": "private boolean checkPlayerShipPos(char row, int col)\n\t{\n\t\tfor(Battleship bs : mBattleships)\n\t\t{\n\t\t\t// has the ship been placed and the position is different\n\t\t\tif(bs.hasBeenPlaced())\n\t\t\t{\n\t\t\t\t// they are on top of each other so return true\n\t\t\t\tfor(int i = 0; i < bs.getPositions().length; i++)\n\t\t\t\t{\n\t\t\t\t\tif(bs.getPositions()[i].getRow() == row && bs.getPositions()[i].getColumn() == col)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Safety to return false, in case it is the first ship to be placed\n\t\treturn false;\n\t}", "title": "" }, { "docid": "2613dfed8e656dccf3df66c0b57b8353", "score": "0.58121604", "text": "public boolean positionIsOutOfBounds(Vector2 position){\n if(position.x < 0 || position.x >= boardWidth) return true;\n if(position.y < 0 || position.y >= boardHeight) return true;\n return false;\n }", "title": "" }, { "docid": "b43092309c57d9e366fafa36fab8bb88", "score": "0.581009", "text": "private boolean polygonCollides(Polygon platform)\n\t{\n\t\tPositionType[][] grid = map.getNewGrid();\n\t\t for (int x = 0; x < grid.length; x++)\n\t\t\t for (int y = 0; y < grid[x].length; y++)\n\t\t\t {\n\t\t\t\t PositionType type = grid[x][y];\n\t\t\t\t if ((type == PositionType.OBSTACLE || type == PositionType.OPAQUE) && platform.contains(x, y))\n\t\t\t\t\t return true;\n\t\t\t } \n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "127ab7f5c5f18ce2bd30c82e172aa274", "score": "0.580938", "text": "public boolean inBounds(){\n\t\tif (x < planeSize && x > -planeSize && y < planeSize && y > -planeSize)\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "1f2503682082a5282d82dc977c6434c1", "score": "0.58061486", "text": "private Boolean invalidEntry(int e_row, int e_col, int rows, int cols) {\n Byte[][] board = othello.getBoard().getBoard(); \n boolean near = false;\n \n // Looks if is inside the board\n if(e_row < 0 || e_row >= rows || e_col < 0 || e_col >= cols) return true;\n // Looks if is already taken\n if(board[e_row][e_col] != null) return true;\n\n // Looks if there is a near token already\n if(e_row > 0 && e_col > 0 && !near) near = board[e_row-1][e_col-1] == null ? false: true;\n if(e_row > 0 && !near) near = board[e_row-1][e_col] == null ? false: true;\n if(e_row > 0 && e_col < cols-1 && !near) near = board[e_row-1][e_col+1] == null ? false: true;\n if(e_row < rows-1 && e_col > 0 && !near) near = board[e_row+1][e_col-1] == null ? false: true;\n if(e_row < rows-1 && !near) near = board[e_row+1][e_col] == null ? false: true;\n if(e_row < rows-1 && e_col < cols-1 && !near) near = board[e_row+1][e_col+1] == null ? false: true;\n if(e_col > 0 && !near) near = board[e_row][e_col-1] == null ? false: true;\n if(e_col < cols-1 && !near) near = board[e_row][e_col+1] == null ? false: true;\n \n if(!near) return true;\n else return false;\n }", "title": "" }, { "docid": "f123000f5df73a82f083a862c9292338", "score": "0.5803553", "text": "private void checkAdjacentBlocks()\n {\n \tcheckBlockForVein(posX, posY-1, posZ);\n \tcheckBlockForVein(posX, posY+1, posZ);\n \tcheckBlockForVein(posX+1, posY, posZ);\n \tcheckBlockForVein(posX-1, posY, posZ);\n \tcheckBlockForVein(posX, posY, posZ+1);\n \tcheckBlockForVein(posX, posY, posZ-1);\n }", "title": "" }, { "docid": "13acfecd96f36087785187fc5653a6fb", "score": "0.5802114", "text": "public boolean percolates() {\r\n// for (int i = 0; i < size; i++) {\r\n// for (int j = 0; j < size; j++) { \r\n// if (isOpen(1, i+1) && isOpen(size,j+1)) {\r\n//// System.out.println (i + \" \" + j);\r\n// if (uf.connected(getPos(1, i+1), getPos(size, j+1))) {\r\n// return true;\r\n// }\r\n// }\r\n// }\r\n// }\r\n return uf.connected(first, last); //FIX\r\n }", "title": "" }, { "docid": "52a81f5adfafa848924775a96de53a79", "score": "0.5800135", "text": "private boolean checkXORforOverlap(XORMarble m) {\r\n\t\tboolean result = false;\r\n\t\t\r\n\t\tfor(int i = 0; i < xorPos.size(); i++) {\r\n\t\t\tif(xorPos.get(i).getFirstPosition().equals(m.getFirstPosition()) ||\r\n\t\t\t\t\txorPos.get(i).getSecondPosition().equals(m.getFirstPosition()) ||\r\n\t\t\t\t\txorPos.get(i).getFirstPosition().equals(m.getSecondPosition()) ||\r\n\t\t\t\t\txorPos.get(i).getSecondPosition().equals(m.getSecondPosition())){\r\n\t\t\t\tresult = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "10b87e8c0bdb2264d7cf1fcce5e60735", "score": "0.5799628", "text": "public boolean hasOverlapOrOutOfBounds(TETile[][] world) {\n for (int x = this.pos.x; x < this.pos.x + this.width; x++) {\n for (int y = this.pos.y; y < this.pos.y + this.len; y++) {\n //just checks for indexOutOfBounds error\n if (x < world.length && x >= 0 && y < world[0].length && y >= 0) {\n if (!world[x][y].equals(Tileset.NOTHING)) {\n return true;\n }\n }\n else {\n return true;\n }\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "54acec2a3efa3407bf522cce4c57da26", "score": "0.5788823", "text": "public boolean canMove() {\n if (!getEmptyTiles().isEmpty()) return true;\n\n // checking the first column and row for the same neighbours\n for (int i = 1; i < FIELD_WIDTH; i++) {\n if (gameTiles[0][i].value == gameTiles[0][i-1].value ||\n gameTiles[i][0].value == gameTiles[i-1][0].value) {\n return true;\n }\n }\n\n //checking other tiles for the same neighbours\n for (int i = 1; i < FIELD_WIDTH; i++) {\n for (int j = 1; j < FIELD_WIDTH; j++) {\n if (gameTiles[i][j].value == gameTiles[i-1][j].value ||\n gameTiles[i][j].value == gameTiles[i][j-1].value\n ) {\n return true;\n }\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "4dd3e8f85432b19ef8c281bee86424c5", "score": "0.57866186", "text": "private Position placeInteractive() {\n List<Point> pointsCanBeExit = new ArrayList<>();\n List<Point> pointsCanBeSpawned = new ArrayList<>();\n for (int i = 1; i < width - 1; i++) {\n for (int j = 1; j < height - 1; j++) {\n if (map[i][j] == Tileset.WALL) {\n Point[] nearPoints = getNearPoints(points[i][j]);\n int countNothing = 0;\n int countFloor = 0;\n for (Point point : nearPoints) {\n if (map[point.getXPosition()][point.getYPosition()] == Tileset.NOTHING) {\n countNothing++;\n }\n if (map[point.getXPosition()][point.getYPosition()] == Tileset.FLOOR) {\n countFloor++;\n }\n }\n if (countNothing == 1 && countFloor == 1) {\n pointsCanBeExit.add(points[i][j]);\n }\n }\n if (map[i][j] == Tileset.FLOOR) {\n pointsCanBeSpawned.add(points[i][j]);\n }\n }\n }\n int size = pointsCanBeExit.size();\n int exitCode = random.nextInt(size);\n Point point = pointsCanBeExit.get(exitCode);\n map[point.getXPosition()][point.getYPosition()] = Tileset.LOCKED_DOOR;\n size = pointsCanBeSpawned.size();\n int spawnCode = random.nextInt(size);\n point = pointsCanBeSpawned.get(spawnCode);\n map[point.getXPosition()][point.getYPosition()] = Tileset.PLAYER;\n return point;\n }", "title": "" }, { "docid": "07cefbf6000370eabac7e21713ae16f9", "score": "0.5785882", "text": "private boolean overlap(Rectangle playerBounds, Rectangle opponentBounds) {\n return opponentBounds.x < playerBounds.x + playerBounds.width && \n opponentBounds.x + opponentBounds.width > playerBounds.x && \n opponentBounds.y < playerBounds.y + playerBounds.height && \n opponentBounds.y + opponentBounds.height > playerBounds.y;\n }", "title": "" }, { "docid": "7ad4611f8cdc28212fe6a11b52799ffc", "score": "0.5785225", "text": "private boolean checkRowsForObstacles(Piece piece, Location to)\n {\n if (piece.getLocation().rank() == to.rank())\n {\n if (piece.getLocation().file() > to.file())\n {\n for (int i = piece.getLocation().file() - 1; i > to.file(); i--)\n {\n if (getPieceAtLocation(new Location(to.rank(), i)) != null)\n {\n return false;\n }\n }\n return true;\n }\n else if (piece.getLocation().file() < to.file())\n {\n for (int i = piece.getLocation().file() + 1; i < to.file(); i++)\n {\n if (getPieceAtLocation(new Location(to.rank(), i)) != null)\n {\n return false;\n }\n }\n return true;\n }\n else\n {\n return false;\n }\n }\n else if (piece.getLocation().file() == to.file())\n {\n if (piece.getLocation().rank() > to.rank())\n {\n for (int i = piece.getLocation().rank() - 1; i > to.rank(); i--)\n {\n if (getPieceAtLocation(new Location(i, to.file())) != null)\n {\n return false;\n }\n }\n return true;\n }\n else if (piece.getLocation().rank() < to.rank())\n {\n for (int i = piece.getLocation().rank() + 1; i < to.rank(); i++)\n {\n if (getPieceAtLocation(new Location(i, to.file())) != null)\n {\n return false;\n }\n }\n return true;\n }\n else\n {\n return false;\n }\n }\n else\n {\n return false;\n }\n }", "title": "" }, { "docid": "a5fa2b44ab42b69c98a2f12091a0e45a", "score": "0.5782347", "text": "private boolean isOverRect(Point p) {\n Rectangle r = new Rectangle(0, 0, component.getBounds().width - 1,\n component.getBounds().height - 1);\n r.grow(PROX_DIST, PROX_DIST);\n return r.contains(p);\n }", "title": "" }, { "docid": "e6934d0c9a23280e97d3f3bcc1545bd5", "score": "0.5778664", "text": "private boolean collidingWithRect(Rectangle rect){\n for (int i = 0; i < 2; i ++) {\n if (this.position[i] - rect.position[i] > 0) {\n if (this.position[i] - this.dimensions[i] / 2 >= rect.position[i] + rect.dimensions[i] / 2)\n return false;\n } else if (this.position[i] + this.dimensions[i] / 2 <= rect.position[i] - rect.dimensions[i] / 2)\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "7624900de8a3be9e113f7daed5f0ef9d", "score": "0.57774687", "text": "private boolean postionIsAvailable(Ship ship, Position position, int direction) {\n\n switch (direction) {\n case Ship.SHIP_HORIZONTAL:\n for (int i = position.getXcord(); i < position.getXcord() + ship.getSize(); i++) {\n Position p = getPostion(i, position.getYCord());\n // validates the postion p if its ok to occupie\n if (ValidatePosition(p)) return false;\n }\n break;\n case Ship.SHIP_VERTICAL:\n for (int i = position.getYCord(); i < position.getYCord() + ship.getSize(); i++) {\n Position p = getPostion(position.getXcord(),i);\n if (ValidatePosition(p)) return false;\n }\n break;\n }\n\n\n\n return true;\n }", "title": "" }, { "docid": "f41f615717c20e7c0c200b6fc3dd1056", "score": "0.57713646", "text": "public boolean checkStatus() {\n //instant variable\n double holeSize = 320;//the diameter of a blackHole\n\n\n //calculates overlap \n // double distanceIceFire = GMath.distance(icePlanet.getX()+planetSize/2, icePlanet.getY()+planetSize/2,\n // firePlanet.getX()+planetSize/2, firePlanet.getY()+planetSize/2);\n // double overlapIceFire = planetSize - distanceIceFire;\n // double distanceIceHole1 = GMath.distance(icePlanet.getX()+planetSize/2, icePlanet.getY()+planetSize/2,\n // blackHole1.getX(), blackHole1.getY());\n // double overlapIceHole1 = holeSize/2 + planetSize/2 - distanceIceHole1;\n // double distanceIceHole2 = GMath.distance(icePlanet.getX()+planetSize/2, icePlanet.getY()+planetSize/2,\n // blackHole2.getX(), blackHole2.getY());\n // double overlapIceHole2 = holeSize/2 + planetSize/2 - distanceIceHole2;\n // double distanceFireHole1 = GMath.distance(firePlanet.getX()+planetSize/2, firePlanet.getY()+planetSize/2,\n // blackHole1.getX(), blackHole1.getY());\n // double overlapFireHole1 = holeSize/2 + planetSize/2 - distanceFireHole1;\n // double distanceFireHole2 = GMath.distance(firePlanet.getX()+planetSize/2, firePlanet.getY()+planetSize/2,\n // blackHole2.getX(), blackHole2.getY());\n // double overlapFireHole2 = holeSize/2 + planetSize/2 - distanceFireHole2;\n // double distanceIronHole1 = GMath.distance(ironPlanet.getX()+planetSize/2, ironPlanet.getY()+planetSize/2,\n // blackHole1.getX(), blackHole1.getY());\n // double overlapIronHole1 = holeSize/2 + planetSize/2 - distanceIronHole1;\n // double distanceIronHole2 = GMath.distance(ironPlanet.getX()+planetSize/2, ironPlanet.getY()+planetSize/2,\n // blackHole2.getX(), blackHole2.getY());\n // double overlapIronHole2 = holeSize/2 + planetSize/2 - distanceIronHole2;\n\n //if firePlanet overlaps destination set gameIsOver to true and labels \"you won\" and \"start game\" to visible\n if(firePlanet.getBounds().intersects(destination.getBounds())){\n gameIsOver = true;\n youWon.setVisible(true);\n startGame.setVisible(true);\n }\n\n //if icePlanet overlaps firePlanet, set gameIsOver to true and label \"startGame\" to visible \n if(icePlanet.getBounds().intersects(firePlanet.getBounds())){\n gameIsOver = true;\n startGame.setVisible(true);\n remove(icePlanet); \n }\n\n\n //if icePlanet overlaps blackHole1, set gameIsOver to true and label \"startGame\" to visible\n if(icePlanet.getBounds().intersects(blackHole1.getBounds())){\n gameIsOver = true;\n startGame.setVisible(true);\n remove(icePlanet); \n }\n\n\n //if icePlanet overlaps blackHole2, set gameIsOver to true and label \"startGame\" to \n if(icePlanet.getBounds().intersects(blackHole2.getBounds())){\n gameIsOver = true;\n startGame.setVisible(true);\n remove(icePlanet); \n }\n\n\n //if firePlanet overlaps blackHole1, set gameIsOver to true and label \"startGame\" to visible\n if(firePlanet.getBounds().intersects(blackHole1.getBounds())){\n gameIsOver = true;\n startGame.setVisible(true);\n remove(firePlanet); \n }\n\n //if firePlanet overlaps blackHole2, set gameIsOver to true and label \"startGame\" to visible\n if(firePlanet.getBounds().intersects(blackHole2.getBounds())){\n gameIsOver = true;\n startGame.setVisible(true);\n remove(firePlanet); \n }\n\n \n\n //if ironPlanet overlaps blackHole1, set gameIsOver to true and label \"startGame\" to visible\n if(ironPlanet.getBounds().intersects(blackHole1.getBounds())){\n gameIsOver = true;\n startGame.setVisible(true);\n remove(ironPlanet); \n }\n\n \n \n\n //if ironPlanet overlaps blackHole2, set gameIsOver to true and label \"startGame\" to visible\n if(ironPlanet.getBounds().intersects(blackHole2.getBounds())){\n gameIsOver = true;\n startGame.setVisible(true);\n remove(ironPlanet); \n }\n\n return gameIsOver;\n }", "title": "" }, { "docid": "dc85c8318cee80a3b35ce7668b1573a0", "score": "0.5761145", "text": "private boolean isPointSafe(IntPoint p) {\n for (IntPoint obstacle : visibleObstacles) {\n if (distance(p, obstacle) <= radius * SAFE_DISTANCE_FACTOR)\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "c61747a98efcf652141fec85683806d0", "score": "0.57540274", "text": "public boolean inBetween(Player p){\n\t\t\n\t\tLocation l = p.getLocation();\n\t\t\n\t\tif(l.getY() >= corner_1.y && l.getY() <= corner_2.y){//compare Y coordinate\n\t\t\t\n\t\t\tif(l.getX() >= corner_1.x && l.getX() <= corner_2.x){//compare X coordinate\n\t\t\t\t\n\t\t\t\tif(l.getZ() >= corner_1.z && l.getZ() <= corner_2.z){//compare Z coordinate\n\t\t\t\t\treturn true;\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\treturn false;//else return false\n\t}", "title": "" }, { "docid": "29fdc375b794f0d86b87e462b1449f92", "score": "0.57518226", "text": "private final boolean isCollision(int aX, int aY, int aW, int aH, int bX, int bY, int bW, int bH)\r\n {\r\n if ( bY + bH <= aY ) \t\t// Is the bottom of b above the top of a\r\n return false;\r\n if ( bY >= aY + aH ) \t\t// Is the top of b below bottom of a\r\n return false;\r\n \tif ( bX + bW <= aX ) \t// Is the right of b to the left of a\r\n \treturn false;\r\n \tif ( bX >= aX + aW ) \t// Is the left of b to the right of a\r\n return false;\r\n \t// remaining: hit:\r\n return true;\r\n }", "title": "" }, { "docid": "7a4e9e23ab744a9301c5f0309e63b650", "score": "0.5749882", "text": "protected boolean testOverlap(Proxy p1, Proxy p2) {\n for (int axis = 0; axis < 2; ++axis)\n {\n Bound[] bounds = m_bounds[axis];\n\n //assert(p1.lowerBounds[axis] < 2 * m_proxyCount);\n //assert(p1.upperBounds[axis] < 2 * m_proxyCount);\n //assert(p2.lowerBounds[axis] < 2 * m_proxyCount);\n //assert(p2.upperBounds[axis] < 2 * m_proxyCount);\n\n if (bounds[p1.lowerBounds[axis]].value > bounds[p2.upperBounds[axis]].value)\n return false;\n\n if (bounds[p1.upperBounds[axis]].value < bounds[p2.lowerBounds[axis]].value)\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "728c27067dea5b72160cda790c618dc8", "score": "0.5749759", "text": "private boolean checkForVoxel(Vector3f pos) {\n\t\tint x = (int) (pos.x - position.x);\n\t\tint y = (int) (pos.y - position.y);\n\t\tint z = (int) (pos.z - position.z);\n\t\t\n\t\t//Forloop to check for all 6 sides\n\t\tfor(int i = 0; i < 6; i++) {\n\t\t\ttry {\n\n\t\t\t\tif(!voxelMap\n\t\t\t\t\t\t[(int) (x + VoxelData.FACE_SIDE_CHECKS[i].x)]\n\t\t\t\t\t\t[(int) (y + VoxelData.FACE_SIDE_CHECKS[i].y)]\n\t\t\t\t\t\t[(int) (z + VoxelData.FACE_SIDE_CHECKS[i].z)]) {\n\t\t\t\t\t//Return true statement if has no neighbors\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\t//Return true if it out of arraybound.\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\t//Return false if it has all 6 neighbors and no \"ArrayIndexOutOfBoundsExepction\".\n\t\treturn false;\n\t}", "title": "" }, { "docid": "62e6156623e39683c91454a77a2a8350", "score": "0.57437754", "text": "public boolean isValidShipPlacement(Coord[] cList, ArrayList<Ship> myShipList) {\n for (Coord c1 : cList) {\n //check every ship in current ship list\n for (int i = 0; i < myShipList.size(); i++) {\n\n //checks all coords in each ship in the list\n Coord[] shipCoordList = myShipList.get(i).getCoordList();\n for (Coord c2 : shipCoordList) {\n if (c1.matches(c2)) {\n System.out.println(\"Overlaps another ship at \" + c1);\n return false;\n }\n }\n }\n int x = c1.getX();\n int y = c1.getY();\n\n if (x < 0 || x > this.cols || y < 0 || y > this.rows) {\n System.out.println(\"Not placed on grid correctly\");\n return false;\n }\n }\n\n return true;\n\n }", "title": "" }, { "docid": "88ebe36925da9a6f4dd4e4c6321237bb", "score": "0.57406044", "text": "private static boolean isValidPosition(int i, int j, int[][] result) {\n\t\tint x;\n\t\tint y;\n\t\t/*\n\t\t\tO------------Y\n\t\t\t|\n\t\t\t|\n\t\t\t|\n\t\t\t|\n\t\t\tX\n\t\t*/\n\t\t// check up\n\t\tx = i;\n\t\ty = j;\n\t\twhile (x > 0) {\n\t\t\tif (result[x - 1][y] == 2) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (result[x - 1][y] == 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (result[x - 1][y] == 0) {\n\t\t\t\tx--;\n\t\t\t}\n\t\t}\t\t\n\t\t// check down\n\t\tx = i;\n\t\ty = j;\n\t\twhile (x < result.length - 1) {\n\t\t\tif (result[x + 1][y] == 2) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (result[x + 1][y] == 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (result[x + 1][y] == 0) {\n\t\t\t\tx++;\n\t\t\t}\n\t\t}\t\n\t\t\n\t\t// check left\n\t\tx = i;\n\t\ty = j;\n\t\twhile (y > 0) {\n\t\t\tif (result[x][y - 1] == 2) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (result[x][y - 1] == 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (result[x][y - 1] == 0) {\n\t\t\t\ty--;\n\t\t\t}\n\t\t}\t\t\t\n\t\t// check right\n\t\tx = i;\n\t\ty = j;\n\t\twhile (y < result.length - 1) {\n\t\t\tif (result[x][y + 1] == 2) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (result[x][y + 1] == 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (result[x][y + 1] == 0) {\n\t\t\t\ty++;\n\t\t\t}\n\t\t}\n\t\t// check left-top direction\n\t\tx = i;\n\t\ty = j;\n\t\twhile (x > 0 && y > 0) {\n\t\t\tif (result[x - 1][y - 1] == 2) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (result[x - 1][y - 1] == 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (result[x - 1][y - 1] == 0) {\n\t\t\t\tx--;\n\t\t\t\ty--;\n\t\t\t}\n\t\t}\n\t\t// check right-top direction\n\t\tx = i;\n\t\ty = j;\n\t\twhile (x > 0 && y < result.length - 1) {\n\t\t\tif (result[x - 1][y + 1] == 2) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (result[x - 1][y + 1] == 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (result[x - 1][y + 1] == 0) {\n\t\t\t\tx--;\n\t\t\t\ty++;\n\t\t\t}\n\t\t}\t\t\n\t\t// check left-bottom direction\n\t\tx = i;\n\t\ty = j;\n\t\twhile (x < result.length - 1 && y > 0) {\n\t\t\tif (result[x + 1][y - 1] == 2) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (result[x + 1][y - 1] == 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (result[x + 1][y - 1] == 0) {\n\t\t\t\tx++;\n\t\t\t\ty--;\n\t\t\t}\n\t\t}\t\t\t\n\t\t// check right-bottom direction\n\t\tx = i;\n\t\ty = j;\n\t\twhile (x < result.length - 1 && y < result.length - 1) {\n\t\t\tif (result[x + 1][y + 1] == 2) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (result[x + 1][y + 1] == 1) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (result[x + 1][y + 1] == 0) {\n\t\t\t\tx++;\n\t\t\t\ty++;\n\t\t\t}\n\t\t}\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "84818537bb6059dff34429e71d31ef59", "score": "0.57262725", "text": "boolean hasPosY();", "title": "" }, { "docid": "94e4cb78384e1be744c47d1c6e5246ff", "score": "0.5722763", "text": "public boolean movePossible(Player p){\n for (Map.Entry<Location, Piece> entry : frame.entrySet()){\n boolean playersColor = Piece.isPlayers(p, frame.get(entry.getKey()));\n\n if (!Location.isInventory(entry.getKey()) && playersColor && !Location.isInventory(entry.getKey())) {\n //find adjacent location of this piece\n ArrayList<Location> adjacentLocations = getAdjacent(entry.getKey());\n for (Location adj: adjacentLocations) {\n if (frame.get(adj) == Piece.NONE)\n return true;\n }\n } else if (Location.isInventory(entry.getKey()))\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "f8a2f14b48a55866069027f3ee64d337", "score": "0.57222605", "text": "boolean collision() {\n\t\treturn ( new Rectangle((int)getObstaclePosX(),(int)getObstaclePosY(), getDimensionsHeight(), getDimensionsLenght()).intersects(new Rectangle(((int)AngryBirdsModel.oiseau.corpsPos[0])-(Constantes.DIAMETRE/2),((int)AngryBirdsModel.oiseau.corpsPos[1])-(Constantes.DIAMETRE/2)+10,Constantes.DIAMETRE,Constantes.DIAMETRE)));\n\n\t}", "title": "" }, { "docid": "6bbdd28776acf586e69831e937bddfb5", "score": "0.5716635", "text": "boolean isSafe(final int maze[][], final int x, final int y) {\n // if (x,y outside maze) return false\n return x >= 0 && x < N && y >= 0 && y < N && maze[x][y] == 1;\n }", "title": "" }, { "docid": "948e08d308b37e6a1458cc56bcba4726", "score": "0.5713516", "text": "private boolean isLegalToMoveTo(int x, int y, Direction direction){\n int newX = x + direction.xComponent();\n int newY = y + direction.yComponent();\n\n if (newX >= mapX || newX < 0)\n return false;\n else if (newY >= mapY || newY < 0)\n return false;\n else\n return obstacles.stream().noneMatch(obstacle -> obstacle.getX() == newX && obstacle.getY() == newY);\n }", "title": "" }, { "docid": "1cdd3f15375281c7678603a595e89e53", "score": "0.5711414", "text": "public abstract boolean outOfBounds(int HEIGHT, int WIDTH);", "title": "" } ]
84dcc525dfb69fc9ee813498a4052950
Remove the given element to this type.
[ { "docid": "4ea8b6f7e421221d58ed665fcaa821f7", "score": "0.6504768", "text": "public void remove(Declarator element) throws ChameleonProgrammerException;", "title": "" } ]
[ { "docid": "a4a464c6f0d0d16f2c355a32110ffd22", "score": "0.8035005", "text": "public T remove (T element);", "title": "" }, { "docid": "fd0cef6a99966eacb78b9a691e7a381c", "score": "0.80326945", "text": "public void remove(T element);", "title": "" }, { "docid": "0effced175c5d708ac4322ec880839eb", "score": "0.7491885", "text": "public void removeElement(ThingNode element)\n\t{\n\t\tsuper.removeElement(element);\n\t\telements.remove(element);\n\t}", "title": "" }, { "docid": "b41d4c31475bd8b2165551ea6729dc26", "score": "0.73274046", "text": "public T remove(T element) throws EmptyCollectionException, ElementNotFoundException;", "title": "" }, { "docid": "acb90df24268bccf2bd0ac1452172cac", "score": "0.71150786", "text": "E remove(E element) {\n\t\t\tshort index = (short)((element.hashCode() >> 24) & 0x000000FF);\n\t\t\tE obj = nodes[index].remove(this, element.hashCode(), (byte) 1);\n\t\t\tif (obj != null) {\n\t\t\t\tsize--;\n\t\t\t}\n\t\t\treturn obj;\n\t\t}", "title": "" }, { "docid": "14d0cc63c25bd76d4e62a80f0487755f", "score": "0.70430356", "text": "public boolean remove(ElementType element){\n if(this.find(element)==-1){\n return false;\n }\n elements[this.find(element)]=elements[size-1];\n size--;\n return true;\n }", "title": "" }, { "docid": "3015e13f37e629970888a96a70b1ef31", "score": "0.7023299", "text": "Form removeElement(Element element);", "title": "" }, { "docid": "9eb66e270c0ca61e77213dc833a626b2", "score": "0.70073634", "text": "public boolean remove(T element, Point2D pos);", "title": "" }, { "docid": "25bd58a92309732c66b93cb3c07c51a4", "score": "0.70014924", "text": "boolean remove(String elementId);", "title": "" }, { "docid": "4ddda03fcdb2f1d5d1d448856fad09a4", "score": "0.6934402", "text": "public E remove();", "title": "" }, { "docid": "4ddda03fcdb2f1d5d1d448856fad09a4", "score": "0.6934402", "text": "public E remove();", "title": "" }, { "docid": "44cc5ee6c18001363bd1c9b023908753", "score": "0.6872266", "text": "public void delete(T element);", "title": "" }, { "docid": "b4ac7a7693970a87708f25ef4048855e", "score": "0.68496984", "text": "@Override\n\tpublic void remove(Element e) {\n\t\t\n\t}", "title": "" }, { "docid": "fc9f5151ba705ce3742ee888885febd7", "score": "0.68301946", "text": "public Object remove();", "title": "" }, { "docid": "1613f5877ef0d5c8566267e77f814763", "score": "0.6818805", "text": "boolean remove(T element);", "title": "" }, { "docid": "96ac7205d77b33332fd3e4a1d02515dd", "score": "0.6719988", "text": "public boolean removeElement(Object obj);", "title": "" }, { "docid": "8ba8033655f7feab006fec4d9b2a8f25", "score": "0.66657555", "text": "public void remove();", "title": "" }, { "docid": "8ba8033655f7feab006fec4d9b2a8f25", "score": "0.66657555", "text": "public void remove();", "title": "" }, { "docid": "8ba8033655f7feab006fec4d9b2a8f25", "score": "0.66657555", "text": "public void remove();", "title": "" }, { "docid": "8ba8033655f7feab006fec4d9b2a8f25", "score": "0.66657555", "text": "public void remove();", "title": "" }, { "docid": "8ba8033655f7feab006fec4d9b2a8f25", "score": "0.66657555", "text": "public void remove();", "title": "" }, { "docid": "8d20c970f11ffb5939d3a64292601fd7", "score": "0.6655509", "text": "Object remove();", "title": "" }, { "docid": "055d9b275c4fcdc7aa3952f3cb259853", "score": "0.66548383", "text": "private static void deleteElement(RubyProjectElement element) {\r\n \t\tRubyProject projectInternal = element.getRubyProjectInternal();\r\n \t\tprojectInternal.getRubyElementsInternal().remove(element);\r\n \r\n deleteResource(element); \r\n \t}", "title": "" }, { "docid": "537915714b1be1b789a68cd0e79e7371", "score": "0.66275275", "text": "@Override\r\n\tpublic boolean remove(T element) {\n\t\treturn this._list.remove(element);\r\n\t}", "title": "" }, { "docid": "32c091cc6530f95af1b1428ee2c3ec3a", "score": "0.6590597", "text": "@Override\r\n\tpublic void delete(T element) {\n\r\n\t}", "title": "" }, { "docid": "94d128d20a0b4fee7e368502131d757e", "score": "0.658717", "text": "public void remove(GuiElementBase element) {\n\t\tif (!children.remove(element))\n\t\t\tthrow new UnsupportedOperationException(\"The specified element is not a child of this container\");\n\t\tif (element.isPressed())\n\t\t\telement.getContext().setPressed(null);\n\t\telement.setContext(null);\n\t\telement.setParent(null);\n\t\tonChildRemoved(element);\n\t}", "title": "" }, { "docid": "23795163ecb777d6c71187d6eb94546b", "score": "0.6581893", "text": "public void removeElement(SvgElement element) {\n Objects.requireNonNull(element);\n if (children.contains(element)) {\n children.remove(element);\n updateChildrenAttribute();\n }\n }", "title": "" }, { "docid": "349787c301fadf5bfb08ae64e8a231a6", "score": "0.6554508", "text": "public void removeProperty(TLProperty element);", "title": "" }, { "docid": "9e534380e87dccb244552d6719241772", "score": "0.65018773", "text": "public void remove () {}", "title": "" }, { "docid": "e3452919ead4721667e7ed0882764908", "score": "0.6498362", "text": "public static void borrarElement(Element element) throws Exception {\n\t\tEntityManager em = JPA.em();\n\t\tElementPK pk = new ElementPK();\n\t\tpk.setCodi(element.codi);\n\t\tpk.setComunitat(element.comunitat.nif);\n\t\tElement actorToBeRemoved = em.find(Element.class, pk);\n\n\t\ttry {\n\t\t\tem.remove(actorToBeRemoved);\n\t\t\tem.flush();\n\t\t} catch (Exception e) {\n\t\t\tthrow e;\n\t\t}\n\t}", "title": "" }, { "docid": "86c193329d83ba796146100a0b5fd448", "score": "0.64965826", "text": "public AvlTree<E> remove(Comparable<E> element){\n root = remove(element, root);\n return this;\n }", "title": "" }, { "docid": "e4a9d1830de5a0504c1350de1e7fe2fd", "score": "0.6445333", "text": "@Override\n\t\t\tpublic void remove() {\n\t\t\t\tthrow new UnsupportedOperationException();\n//\t\t\t\tif (i == begin || removed)\n//\t\t\t\t\tthrow new IllegalStateException();\n//\t\t\t\telements.set(i-1, null);\n//\t\t\t\tremoved = true;\n\t\t\t}", "title": "" }, { "docid": "fa2794d93e611e30861bcc18bd9efabc", "score": "0.64429754", "text": "public Type remove(int index);", "title": "" }, { "docid": "d41063c1b97fb38b85d6a4deb24b808f", "score": "0.6416041", "text": "public abstract void removeElement(int id) throws PositionEX;", "title": "" }, { "docid": "b852b25f111f888d865e05c0becd41ca", "score": "0.64112586", "text": "public void remove(@Nonnull CustomElement customElement) {\n removeElement(customElement);\n }", "title": "" }, { "docid": "7b56b43b246c79557b2398495e777629", "score": "0.64084804", "text": "public void removeFromRatebooks(entity.ImpactTestingRateBook element);", "title": "" }, { "docid": "ce6d582ab2af94a3c5f4493d494f9eda", "score": "0.64078474", "text": "@Override\n\tpublic void remove(E x) {\n\t\t\n\t}", "title": "" }, { "docid": "78964092f6e688a856a1b4e6dd59adba", "score": "0.6406155", "text": "public void remove(Level level, T originalElement) {\n if (this.internalRegistry.containsKey(level)) {\n Vector<T> elements = this.internalRegistry.get(level);\n\n // Make sure to check for null in-case the key was removed between the contains check and the get.\n if (elements != null) {\n // Try to find this element in the collection.\n for (int i = 0; i < elements.size(); i++) {\n T element = elements.get(i);\n\n if (element.hashCode() == originalElement.hashCode()) {\n // remove the element from the collection to ensure that another player/thread doesn't try to remove the same item.\n elements.remove(element);\n\n // Let the implementor know that this element was removed to do any custom processing.\n this.onElementRemoved(level, element);\n break;\n }\n }\n\n if (elements.size() == 0) {\n // No more elements, remove the level from the array.\n this.internalRegistry.remove(level);\n }\n }\n }\n }", "title": "" }, { "docid": "a3d8406cec753b4ebc46f4b7fc5420a4", "score": "0.6388185", "text": "public void remove(IVisualElement elem) {\n children.remove(elem);\n if (elem.getParent() == parentRef.get()) {\n elem.setParent(null);\n }\n }", "title": "" }, { "docid": "eae90436ac5172f4bb0cace48b6809cb", "score": "0.63857406", "text": "E remove(Id id);", "title": "" }, { "docid": "b89293e0f680b5369bbff8567a65c1ad", "score": "0.6377072", "text": "public <T extends IDBEntities> void delete(T element) {\n\t\tif (element == null)\n\t\t\treturn;\n\t\tEntityManager em = getEM();\n\t\ttry {\n\t\t\tem.getTransaction().begin();\n\t\t\t// Entity must be attached\n\t\t\tif (!em.contains(element))\n\t\t\t\telement = em.merge(element);\n\t\t\tem.remove(element);\n\t\t\tem.getTransaction().commit();\n\t\t} catch (Exception ex) {\n\t\t\tem.getTransaction().rollback();\n\t\t} finally {\n\t\t\tem.close();\n\t\t}\n\t}", "title": "" }, { "docid": "34d8f111959699879cb1d9b69d5d5208", "score": "0.6371641", "text": "public void remove(int element) {\r\n\t\tint i = find(element);\r\n\t\tlist[i] = -1;\r\n\t\tinsertionSort(list);\r\n\t\tcurrentPosition = i;\r\n\t}", "title": "" }, { "docid": "475c523a9207df27b36e0a789d04f291", "score": "0.6365136", "text": "private static void deleteElement(ProjectElement element) {\r\n \t\tProject projectInternal = element.getProjectInternal();\r\n projectInternal.getElementsInternal().remove(element);\r\n \r\n deleteResource(element); \r\n \r\n projectInternal.eResource().setModified(true);\r\n \t}", "title": "" }, { "docid": "cc9d748f67cdd4ecf6c7e7ad072d6ff5", "score": "0.6356955", "text": "public void remove() {\n\t }", "title": "" }, { "docid": "cc9d748f67cdd4ecf6c7e7ad072d6ff5", "score": "0.6356955", "text": "public void remove() {\n\t }", "title": "" }, { "docid": "cc9d748f67cdd4ecf6c7e7ad072d6ff5", "score": "0.6356955", "text": "public void remove() {\n\t }", "title": "" }, { "docid": "e363b1cba020ad59de8791d4d552aea1", "score": "0.6355957", "text": "public void removeAll(Object element);", "title": "" }, { "docid": "7b84e0b26513df7f9ca33cad6086e1e0", "score": "0.6352826", "text": "public void remove(SelectableGraphElement element)\n {\n if (element != null) {\n element.setSelected(false);\n elements.remove(element);\n }\n }", "title": "" }, { "docid": "e0c2825d8e48f671296ca7d76e27f5e3", "score": "0.6351031", "text": "public void removeElementAt(int index);", "title": "" }, { "docid": "2fc9192d449890abc56a320fd068d7d6", "score": "0.63488245", "text": "public void remove() {\n\n }", "title": "" }, { "docid": "3353e8ea6638cca0e9f809f41a2e3e89", "score": "0.6340455", "text": "@Override\n public void remove() {\n if(elementToRemove != null){\n if(elementToRemove == lastInternalIteratorGivenElement){\n iterator.remove();\n }\n else{\n list.remove(elementToRemove);\n }\n }\n }", "title": "" }, { "docid": "4437affb4884ec270978acdf9d5613c6", "score": "0.63321674", "text": "public Node<T> detach(T element) {\n // Sanity check.\n if (this.element == element) {\n this.element = null;\n } else {\n throw new IllegalArgumentException(\"Removal of wrong element.\");\n }\n // Useful for chaining.\n return this;\n }", "title": "" }, { "docid": "afefe0f80ee7a50eba79adc421050db6", "score": "0.63269866", "text": "@Override\n public void remove() {\n }", "title": "" }, { "docid": "7b15e93e8b3aa2bdeba99fa0c496ce93", "score": "0.6323139", "text": "@Override\n\tpublic void remove() { }", "title": "" }, { "docid": "41d0cd0b4c1c01cdbb3f0911f6942cca", "score": "0.6307442", "text": "@Override\r\n\tpublic E remove() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "b892b029ea8271898cee6e834d6eb41d", "score": "0.6302651", "text": "@Override\n public void remove() {\n }", "title": "" }, { "docid": "323837c031a4d9a95736ed10f4c96d32", "score": "0.6301288", "text": "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "323837c031a4d9a95736ed10f4c96d32", "score": "0.6301288", "text": "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "11c5fa63d610b40711ede7c56186b432", "score": "0.6290023", "text": "public E remove(int index);", "title": "" }, { "docid": "e4a3d83176b18c0091f6cee2073df5ac", "score": "0.6288635", "text": "public final void remove () {\r\n }", "title": "" }, { "docid": "00c8c714ff39875182cf4adbeaab4145", "score": "0.6282781", "text": "void deleteElement(int elementId);", "title": "" }, { "docid": "ec152811cb8d71849f0527f2c67ad2c1", "score": "0.628234", "text": "@Override\n\tpublic E remove() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "fe1489e6b8a7dc6223b9fd87a1bc6b0e", "score": "0.6274109", "text": "public void remove(int index) {\n\t\t\tcheckIndex(index);\n\t\t\tfor(int i = index; i < size - 1; i++) {\n\t\t\t\telementData[i] = elementData[i + 1];\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "a75f4642466c2367746a628cd1dec495", "score": "0.6269249", "text": "public void remove() {\n elements[index] = null;\n size--;\n next();\n }", "title": "" }, { "docid": "3909ae12b1194553570f8e759bb1a500", "score": "0.624564", "text": "@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}", "title": "" }, { "docid": "3909ae12b1194553570f8e759bb1a500", "score": "0.624564", "text": "@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}", "title": "" }, { "docid": "3afd484f4423e8baea48f21acac22500", "score": "0.62403023", "text": "public void remove() {\r\n super.remove();\r\n }", "title": "" }, { "docid": "c1bdd99562fbf70831579432e3847de9", "score": "0.6233428", "text": "@Override\n\t\t\t\tpublic void remove() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "584f0a3c4fe8c8c6ba37a95004f71f9c", "score": "0.6230972", "text": "public void remove() {\r\n //\r\n }", "title": "" }, { "docid": "0650e310e5da7501518ad7d515974a5e", "score": "0.6227496", "text": "public void remove() {\n super.remove();\n }", "title": "" }, { "docid": "0650e310e5da7501518ad7d515974a5e", "score": "0.6227496", "text": "public void remove() {\n super.remove();\n }", "title": "" }, { "docid": "0650e310e5da7501518ad7d515974a5e", "score": "0.6227496", "text": "public void remove() {\n super.remove();\n }", "title": "" }, { "docid": "0650e310e5da7501518ad7d515974a5e", "score": "0.6227496", "text": "public void remove() {\n super.remove();\n }", "title": "" }, { "docid": "0650e310e5da7501518ad7d515974a5e", "score": "0.6227496", "text": "public void remove() {\n super.remove();\n }", "title": "" }, { "docid": "0650e310e5da7501518ad7d515974a5e", "score": "0.6227496", "text": "public void remove() {\n super.remove();\n }", "title": "" }, { "docid": "0650e310e5da7501518ad7d515974a5e", "score": "0.6227496", "text": "public void remove() {\n super.remove();\n }", "title": "" }, { "docid": "eebb74f4d0883d2929ac991d3b27866c", "score": "0.62274635", "text": "public boolean removeElement(Element element) {\n if (removeNoNotify(element)) {\n setChanged();\n Message message = Message.makeRemoved(element);\n notifyObservers(message);\n return true;\n } else {\n return false;\n }\n\n }", "title": "" }, { "docid": "6212136e7cf044f4175f0a0160ef5fcf", "score": "0.6214039", "text": "public Bag remove (D elt) {\n\treturn this;\n }", "title": "" }, { "docid": "445e6381777bef1949900453ed738d57", "score": "0.6204241", "text": "public void remove(Element e) {\n\t\tlistLiving.remove(e);\n\t\tmapContains.put(e.getPosition(), null);\n\t}", "title": "" }, { "docid": "e9c848471c373b2ae8795d05714b7b87", "score": "0.6204209", "text": "public void remove() {\n\t}", "title": "" }, { "docid": "e9c848471c373b2ae8795d05714b7b87", "score": "0.6204209", "text": "public void remove() {\n\t}", "title": "" }, { "docid": "2b8c9fa42562887a71d58ad484e5888e", "score": "0.6192597", "text": "public boolean remove(Type t);", "title": "" }, { "docid": "666b32d6a7e88d3dfac9a8c099dc5741", "score": "0.61803097", "text": "@Override\n public void eliminarElemento(Object elemento) {\n database.delete(elemento);\n }", "title": "" }, { "docid": "2e528ce6dfd96e291120a44a1b332386", "score": "0.61552054", "text": "public boolean remove(Object element) {\n\n\t\tif (element == null) {\n\t\t\tthrow new IllegalArgumentException(\"ArrayList cannot contain null.\");\n\t\t}\n\t\tint index = -1;\n\t\tfor (int i = 0; i < this.size; i++) {\n\t\t\tObject object = this.storedObjects[i];\n\t\t\tif (object.equals(element)) {\n\t\t\t\tindex = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (index == -1) {\n\t\t\treturn false;\n\t\t}\n\t\tfor (int i = index + 1; i < this.size; i++) {\n\t\t\tthis.storedObjects[i - 1] = this.storedObjects[i];\n\t\t}\n\t\tthis.size--;\n\t\tthis.storedObjects[this.size] = null;\n\t\treturn true;\n\t}", "title": "" }, { "docid": "c3e10d2d2481521e7f2de30311a70db5", "score": "0.61548454", "text": "private void removeStackElement(final StackElement elementToRemove)\n {\n // Get previous and next elements in the linked list\n final StackElement previousElement = elementToRemove.previous;\n final StackElement nextElement = elementToRemove.next;\n\n if (previousElement == null)\n {\n this.head = nextElement;\n }\n else\n {\n previousElement.next = nextElement;\n }\n\n if (nextElement == null)\n {\n this.tail = previousElement;\n }\n else\n {\n nextElement.previous = previousElement;\n }\n }", "title": "" }, { "docid": "1054115adbf61cd644dbc240d0ee4904", "score": "0.6151672", "text": "public void remove() {\n btRemove().push();\n }", "title": "" }, { "docid": "1054115adbf61cd644dbc240d0ee4904", "score": "0.6151672", "text": "public void remove() {\n btRemove().push();\n }", "title": "" }, { "docid": "37a2a3440fc133b59365bc5bff5fbbd9", "score": "0.614911", "text": "public void removeChild( ChildType child );", "title": "" }, { "docid": "0e7145b6e0248b7a9ec2595922988a51", "score": "0.61450166", "text": "public /*@ non_null @*/ JMLObjectSet<E> remove(E elem) {\n if (!has(elem)) {\n return this;\n } else {\n //@ assume the_list != null;\n JMLListObjectNode<E> new_list = the_list.remove(elem);\n //@ assume (new_list == null) == (size == 1);\n return new JMLObjectSet<E>(new_list, size - 1);\n }\n }", "title": "" }, { "docid": "98ec11f364993ac6134fef2afcfe2332", "score": "0.61449933", "text": "protected void clearElement(final ELEMENT element)\r\n {\r\n //Does nothing by default\r\n }", "title": "" }, { "docid": "fac82ddbf75eecbf6fb88f068c85a546", "score": "0.6137915", "text": "public void remove(T element) throws Exception {\r\n\tif(isEmpty()) throw new Exception(\"Remove attempted on empty list\");\r\n\tif(trailer.getInfo() == element) removeLast();\r\n\tboolean found = false;\r\n\tDLLNode<T> temp = header;\r\n\twhile(temp != null) {\r\n\t\tif (temp.getInfo().equals(element)) {\r\n\t\t\ttemp.getBack().setLink(temp.getLink());\r\n\t\t\t((DLLNode<T>) temp.getLink()).setBack(temp.getBack());\r\n\t\t\tfound = true;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\ttemp = temp.getBack();\r\n\t}\r\n\tif (!found) throw new Exception(\"Could not find element\");\r\n}", "title": "" }, { "docid": "db8540e53f20248e1466bc9ab9dacd00", "score": "0.6137394", "text": "public abstract boolean remove(E e);", "title": "" }, { "docid": "15f73d5cb6cf7e36b9ebea7908a97058", "score": "0.6134782", "text": "public static native boolean RemoveIt(long lpjFbxArrayVector2, long pElement);", "title": "" }, { "docid": "d3d9183ed63929a095b0e288693008c1", "score": "0.6134104", "text": "public void remove(){\n }", "title": "" }, { "docid": "2b6d1deceb021ba1fd3f5d68459c8e58", "score": "0.6124531", "text": "public void remove(E e) {\n Position<Item<E>> p = findPosition(e);\n if (p != null) // element's position is found\n list.remove(p);\n }", "title": "" }, { "docid": "ff521c0541a54e4bae3be9c3c37ae38e", "score": "0.61203235", "text": "public void removeElement() throws IndexOutOfBoundsException, UnsupportedOperationException {\n\t\tlist.remove(0);\n\t}", "title": "" }, { "docid": "7793b98834a12cde542e040e5597bd58", "score": "0.61183995", "text": "@Override\r\n\tpublic void removeElement(K key) {\n\t\tque.remove(key);\r\n\t\thashMap.remove(key);\r\n\t}", "title": "" }, { "docid": "130611890cb2fb95601948e2abc2a4bf", "score": "0.6102357", "text": "public boolean remove(E element){\n // TO BE IMPLEMENTED\n Object result = map.remove(element);\n if(result != null){\n return true;\n }else{\n return false;\n } \n }", "title": "" }, { "docid": "12c4003874250dc1e2cce4645ac9d5b1", "score": "0.6099064", "text": "@Override\n\tpublic void remove() {\n\t\t\n\t}", "title": "" }, { "docid": "12c4003874250dc1e2cce4645ac9d5b1", "score": "0.6099064", "text": "@Override\n\tpublic void remove() {\n\t\t\n\t}", "title": "" } ]
0335223cdd5cd117f0b355722644f808
Set value saved to certain key.
[ { "docid": "f2d6351b4792c1939098fdc4f9deccf2", "score": "0.6944147", "text": "public void setValue(String key, Object value)\n\t{\n\t\tgetProperty(key).setValue(value);\n\t}", "title": "" } ]
[ { "docid": "3fbaa511272d322867214d14cbccaaae", "score": "0.78359646", "text": "public void setValue(String key, Object value);", "title": "" }, { "docid": "4685c3410f82525fcbc7c8243410a5b8", "score": "0.73752934", "text": "void setAssociatedValue(Object key, Object value);", "title": "" }, { "docid": "9b969e6eca43e9f6b77ed0736c88bbeb", "score": "0.7285855", "text": "public final void set(String key, Object value) {\n this._data.put(key, value);\n }", "title": "" }, { "docid": "faac2dfc0971d4345600ee071a238f35", "score": "0.70397526", "text": "public void set(String key, Serializable value) {\n state.put(key.toLowerCase(), value);\n }", "title": "" }, { "docid": "4734f8a8e98b8eefcb9e5c1635670439", "score": "0.70271856", "text": "void set(@Nonnull String key, @Nonnull T value);", "title": "" }, { "docid": "40e8cb56265ec9908fbe24f35e0042ab", "score": "0.7013889", "text": "public void set(String name, String key, Object value) {\n\n\t}", "title": "" }, { "docid": "f95461deb7dc359133476d7549dacd66", "score": "0.7004023", "text": "public void set(String key, String value) {\n sendBulk(\"SET\", key, value);\n }", "title": "" }, { "docid": "edb79574232c3ca35aad48dacb14b676", "score": "0.6976435", "text": "public boolean set(String key, String value);", "title": "" }, { "docid": "675c3b170aa335b9c83c837750a8387b", "score": "0.6973164", "text": "public static void setValue(String key, String value, Context context) {\n\n SharedPreferences preferences = context.getSharedPreferences(\n context.getPackageName(), Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(key, value);\n// editor.commit();\n editor.apply();\n }", "title": "" }, { "docid": "7a23c87e09ef016b9ba34983f6f66ff4", "score": "0.6897235", "text": "void set(K name, V value);", "title": "" }, { "docid": "51142d1d8cefc93703763fa8d5978d53", "score": "0.68736446", "text": "private void putValue (String key, String value) { db.put(bytes(key), bytes(value)); }", "title": "" }, { "docid": "58fd040f704b561d2abe1bd613d119df", "score": "0.68634933", "text": "public <T> T setAttribute(Key<T> key, T value);", "title": "" }, { "docid": "c103d242b0ac0879729dd683cd9a730d", "score": "0.68603855", "text": "public final void setPersistent(String key, Object value) {\n this._persistentData.put(key, value);\n }", "title": "" }, { "docid": "286308d6c7ae8bbcb99eed7db1e75800", "score": "0.6798883", "text": "public void set(String key, Object value) {\n if (value != null) {\n put(key, value);\n }\n else {\n remove(key);\n }\n }", "title": "" }, { "docid": "b6c2a871008ff408ae69a17a138654bc", "score": "0.6736493", "text": "public void setData (String key, Object value) {\n\t \ttry{\n\t \t\tthis_mon.enter();\n\t \t\n\t \t\tif (data == null) {\n\t\t \t data = new HashMap();\n\t\t \t}\n\t\t if (value == null) {\n\t\t if (data.containsKey(key))\n\t\t data.remove(key);\n\t\t } else {\n\t\t data.put(key, value);\n\t\t }\n\t \t}finally{\n\t \t\t\n\t \t\tthis_mon.exit();\n\t \t}\n\t }", "title": "" }, { "docid": "06ba55196c7d558fbba8711dffc48aff", "score": "0.6722832", "text": "public static void setValue(String key, String value) {\n \t\tif(!initiated) createTables();\n \t\t\n \t\tif(!getValue(key).trim().equals(\"\"))\n \t\t\tdelValue(key);\n \n \t\tDB = SQLiteDatabase.openOrCreateDatabase(DATABASE_NAME, null);\n \t\tDB.execSQL(MISC_INSERT_VALUE +\"(\\\"\" + key + \"\\\", \\\"\" + value + \"\\\")\");\n \t\tDB.close();\n \t}", "title": "" }, { "docid": "14ab6313ac9f030def1936934bc293af", "score": "0.67029613", "text": "void putValue(String key, String value);", "title": "" }, { "docid": "84f51bb9200acacafa70e85630399a20", "score": "0.6678515", "text": "@Override\n public void set(K key, V value) {\n if (!this.dataMap.containsKey(key)) {\n Integer insertOrder = this.insertCounter.incrementAndGet();\n this.insertOrderToKeyMap.set(insertOrder, key);\n this.keyToInsertOrderMap.set(key, insertOrder);\n }\n this.dataMap.set(key, value);\n }", "title": "" }, { "docid": "683fcf3fb270e7e7d936d0bbb4055e4d", "score": "0.66465247", "text": "@SuppressWarnings(\"unchecked\")\n @Override\n public void writeValue(final Key key, final Object value) {\n assert UjoManager.assertDirectAssign(key, value, this);\n ((ValueAgent) key).writeValue(this, value);\n }", "title": "" }, { "docid": "175a76753691ba56af95b709fb6d514b", "score": "0.6635436", "text": "public static void set(String key, Object value) {\n /* if two clients independently decide to use the same name for their thread-local variable,\n they unintentionally share a single variable, which will generally cause both clients to fail.*/\n }", "title": "" }, { "docid": "7f611077bcacbdc3c4160c7d5fd6f976", "score": "0.6629444", "text": "void setUserData(String key, Object value);", "title": "" }, { "docid": "2a5588bc3d9fdbc2b1418d8a7bb1f62c", "score": "0.6622234", "text": "public void setSystemSettingByKeyAndValue (String key, String value);", "title": "" }, { "docid": "0f96e69d892136196d2d497be4ed0d09", "score": "0.6574688", "text": "public void putValue(String key, Object val);", "title": "" }, { "docid": "83c1c035c37b55d05e0c3ad6ac001d64", "score": "0.656344", "text": "public void setValueForKey(String key, String value) {\n for (IArgument a : this) {\n if (a.getKey().equals(key) && !a.isReadOnly()) {\n a.setValue(value);\n }\n }\n }", "title": "" }, { "docid": "040a37a03051b4eac661635cd2737a5c", "score": "0.6559822", "text": "public void setData(String key, String value) {\n if (data == null) {\n data = new HashMap<String, String>();\n }\n data.put(key, value);\n }", "title": "" }, { "docid": "31fa082f474f88bcd4faa8a9717b848d", "score": "0.65454316", "text": "@Override\r\n\tpublic Object setValue(String key, Object value) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "5d6e546c7dd2f702b507dcc511b7003b", "score": "0.65107924", "text": "<T> void setValue(Object owner, Object key, T value, long time, String tag);", "title": "" }, { "docid": "67c8a400923b6de3775406c96b15f3bb", "score": "0.6504604", "text": "public void setObject(String key, @NonNull Object value) {\n SharedPreferences prefs = mContext.getSharedPreferences(DEFAULT_PREFS, Context.MODE_PRIVATE);\n Editor editor = prefs.edit();\n editor.putString(key, mGson.toJson(value));\n editor.apply();\n }", "title": "" }, { "docid": "1054e56aed0f749e63c12d1a1ec386ec", "score": "0.64968526", "text": "public <V> void setValue(Object key, V value)\n\t\t{\n\t\t\tJFormField<?> field;\n\t\t\tif ((field = fieldValueMap.get(key)) != null)\n\t\t\t{\n\t\t\t\tMethod m;\n\t\t\t\ttry {\n\t\t\t\t\tm = field.getClass().getMethod(\"setValue\", value.getClass());\n\t\t\t\t\tm.invoke(field, value);\n\t\t\t\t} catch (NoSuchMethodException | SecurityException | IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {\n\t\t\t\t\tthrow new ClassCastException(\"Could not set form field: \" + e.getLocalizedMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "26c57d45dcb66e3dab12055bf2d68a7f", "score": "0.6491001", "text": "public Value put( Key key, Value value );", "title": "" }, { "docid": "1f95c6e56a2a4cda94580f5ceca18a1c", "score": "0.6471226", "text": "@Override\n\tpublic void setSettings(String key, String value) {\n\t\tSetting settingEntity = getSettingEntity(key);\n\t\tif (settingEntity != null) {\n\t\t\tsettingEntity.setValue(value);\n\t\t} else {\n\t\t\tsettingEntity = new Setting();\n\t\t\tsettingEntity.setKey(key);\n\t\t\tsettingEntity.setValue(value);\n\t\t\tsuper.persist(settingEntity);\n\t\t}\n\t}", "title": "" }, { "docid": "2043f143206cce55fe94f341f9a7616c", "score": "0.6465554", "text": "public void set(String key, String value){\r\n map.put(key.toUpperCase(), value);\r\n }", "title": "" }, { "docid": "72361700dc4e997627c3a22a4cef4fc8", "score": "0.6455577", "text": "public static void setString(String key, String value) {\n SharedPreferences sharedPref = WikiSearchApplication.getInstance().getSharedPreferences(PREF_NAME, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(key, value);\n editor.apply();\n }", "title": "" }, { "docid": "1ca60f82890fdbc5e2a061a4465fc16d", "score": "0.6451545", "text": "public void set(String key, String value) {\n NodeList nodes = this.doc.getElementsByTagName(key);\n if (nodes.getLength() > 0) {\n // update value\n nodes.item(0).setTextContent(value);\n } else {\n // add new node with value\n Node newNode = this.doc.createElement(key);\n newNode.setTextContent(value);\n this.doc.getDocumentElement().appendChild(newNode);\n }\n }", "title": "" }, { "docid": "c5a982b707219a13ea030bb57a6c733b", "score": "0.6441212", "text": "void lSet(String key, long index, Object value);", "title": "" }, { "docid": "7584842233c6a52572bdc354c07c1e26", "score": "0.64284766", "text": "public void set(String key, String value) {\n if (inputs != null && inputs.containsKey(key)) {\n inputs.put(key, value);\n } else if (outputs != null && outputs.containsKey(key)) {\n outputs.put(key, value);\n } else {\n if (inputs == null) {\n inputs = new LinkedHashMap<String, String>();\n }\n inputs.put(key, value);\n }\n }", "title": "" }, { "docid": "cc725fd6ec30954b48c84547e2fd5e33", "score": "0.6410584", "text": "@Override\n\tpublic void setValue(final K value) {\n\t\tisLazyLoaded = false;\n\t\tkeyField.setValue(value);\n\t}", "title": "" }, { "docid": "4c4e312e627d22d517991a4af38db3f8", "score": "0.6399811", "text": "default <T> void setValue(Object owner, Object key, T value) {\n setValue(owner, key, value, System.currentTimeMillis(), null);\n }", "title": "" }, { "docid": "8b7f5f2705d9deb8beb72c876eb44d18", "score": "0.6399002", "text": "private void setValue(String aKey, String strValue)\n\t{\n\t\tif ( null == mValMap )\n\t\t\treturn ;\n\t\t\n\t\tmValMap.setValue(aKey, strValue);\n\t}", "title": "" }, { "docid": "3a7036ab56d8f9358b397f6b79207995", "score": "0.6377106", "text": "public void updateSystemSettingByKeyAndValue (String key, String value);", "title": "" }, { "docid": "36e47cf83fd0355ce043956ced1c1ba1", "score": "0.63754785", "text": "@Override\n\t\tpublic void putValue(String key, Object value) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "36e47cf83fd0355ce043956ced1c1ba1", "score": "0.63754785", "text": "@Override\n\t\tpublic void putValue(String key, Object value) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "34344f2ee852cf1c3789dabdf2599123", "score": "0.6372084", "text": "private static void setString (String key, String value)\n {\n SharedPreferences preferences = MainActivity.activity.getPreferences (Context.MODE_PRIVATE);\n preferences.edit ().putString (key, value).apply ();\n }", "title": "" }, { "docid": "6de54b7b2c2659f67a75ef4600f8d3ab", "score": "0.6363183", "text": "public void setString(String key, String value) {\n getEditor().putString(key, value).apply();\n }", "title": "" }, { "docid": "dd117942701a0db5881a59c25322bdcc", "score": "0.636112", "text": "@Override\n public V set(K key, V value) {\n // TODO Auto-generated method stub\n return null;\n }", "title": "" }, { "docid": "2946d8085d07c7e41d4fc9e43a1f8564", "score": "0.6356482", "text": "public void setStateValue(Node contextNode, Object key, Object value)\n {\n HashMap<Object, Object> stateMap = uiStateMap.get(contextNode);\n if(stateMap == null)\n {\n stateMap = new HashMap<Object, Object>();\n }\n stateMap.put(key, value);\n uiStateMap.put(contextNode, stateMap);\n }", "title": "" }, { "docid": "6624bea8ffc345024f8523addbafd200", "score": "0.6351859", "text": "public void lset(String key, int index, String value) {\n sendBulk(\"LSET\", key, s(index), value);\n }", "title": "" }, { "docid": "035a6027946d928a2478b2190618d140", "score": "0.6338835", "text": "@Override\n\tpublic void setKey(K key) {\n\t\tthis.key = key;\n\t}", "title": "" }, { "docid": "edb9aac57a87bcdd377baa1a2c38cd4f", "score": "0.63350224", "text": "@Override\n\tpublic boolean put(Key k) {\n\t\n\t\t\n\t\t\tString str = set.put(k, \"value\");\n\t\t\n\n\t\t\tif (str == null)\n\t\t\t\treturn false;\n\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "d8efb1c39d4357f050f0081d5ee1bb1d", "score": "0.63303375", "text": "private void setValue(DocumentKeyValueElement value) {\n this.value = value;\n }", "title": "" }, { "docid": "d5c45ab93e1374a85f5ec794e09fd07b", "score": "0.6325387", "text": "public void setKey(Object key) {\n this.key = key;\n }", "title": "" }, { "docid": "871aaeda46f9138e7040f10840d7ad0b", "score": "0.6320939", "text": "public void set( int key, Object value )\n {\n checkKey( key ) ;\n extend( key ) ;\n list.set( key, value ) ;\n }", "title": "" }, { "docid": "be0832a41a81d9be4cecdd203a2719b5", "score": "0.6300205", "text": "@Override\n public void set(TKey key, TValue value) {\n this.validateKey(key);\n\n if (this.has(key)) {\n //\n // If the key is set in the cache, update its value...\n //\n IDoublyLinkedListNode<IKeyValueNode<TKey, TValue>> currNode = this.data.getKeyValueNode(key);\n currNode.getValue().setValue(value);\n\n this.currentItemAccessed(currNode);\n }\n else {\n //\n // If the cache is over its capacity, then make available space for the new item...\n //\n if (this.overCapacity()) {\n assert(this.properties.getNumberOfItemsForMakingAvailableSpace() <= this.size());\n\n this.makeAvailableSpace(\n this.data,\n this.properties.getNumberOfItemsForMakingAvailableSpace());\n\n Conditions.validate(\n !this.overCapacity(),\n \"The cache should have an available space.\");\n }\n\n IDoublyLinkedListNode<IKeyValueNode<TKey, TValue>> currNode =\n DoublyLinkedListNode.make(KeyValueNode.make(key, value));\n\n this.newItemAccessed(currNode);\n }\n }", "title": "" }, { "docid": "8ced335001947b7ca68636c0d1c7a4e0", "score": "0.62949544", "text": "public void setValue(JSONObject json, String key, String value) {\r\n try {\r\n json.put(key, value);\r\n } catch (JSONException e) {\r\n }\r\n }", "title": "" }, { "docid": "c1c25241fee94f1c8b1a93011a01e24f", "score": "0.6275948", "text": "public void setData ( final Object key, final Object data )\n {\n _dataCache.put ( key, data );\n }", "title": "" }, { "docid": "3d82c83fe5d3ba6441ae867fcd8d3d91", "score": "0.6275907", "text": "public void put(String key, String value);", "title": "" }, { "docid": "35971bc080581abb86b7ae77d7007522", "score": "0.62652516", "text": "public void set(String key, int value){\r\n map.put(key.toUpperCase(), \"\"+value);\r\n }", "title": "" }, { "docid": "8e79450c81e114efad8c9af2d29bcf1e", "score": "0.6262566", "text": "public void put(String key, String value) {\n/* 111 */ if (value == null) {\n/* 112 */ throw new IllegalArgumentException(\"No value provided for key \" + key);\n/* */ }\n/* 114 */ validate(key, value);\n/* 115 */ this.data.put(key, value);\n/* */ }", "title": "" }, { "docid": "081752b39c92cb598e3e8b4fa44fc0fe", "score": "0.6251924", "text": "public void put (Object key, Object value);", "title": "" }, { "docid": "da7245383e8f58f5a0c2c051dec1557c", "score": "0.62102044", "text": "void hSet(String key, Object field, Object value);", "title": "" }, { "docid": "508396354fb00067ac93abf38b8d64fd", "score": "0.6200502", "text": "public T putVal(T value, Object ... key ) {\n return delegate_.put(new ObjParams(key), value);\n }", "title": "" }, { "docid": "949cc0b660f6800677fd71536b92512f", "score": "0.61881584", "text": "public static void setValue(String key, boolean value, Context context) {\n\n SharedPreferences preferences = context.getSharedPreferences(\n context.getPackageName(), Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putBoolean(key, value);\n// editor.commit();\n editor.apply();\n }", "title": "" }, { "docid": "355babae9fa6c03c2b43a8652d8f1224", "score": "0.618725", "text": "public boolean set( String key, Object value ) {\n\t\treturn set( \"set\", key, value, null, null, primitiveAsString );\n\t}", "title": "" }, { "docid": "d371128045d7ccf36e548b21e8345b0f", "score": "0.6171444", "text": "@Override\r\n\tpublic void putValue(String key, Object value) {\n\t}", "title": "" }, { "docid": "3252889e949df875be8237ad0c08edcd", "score": "0.6163883", "text": "public void save(String key, String value) {\n SharedPreferences sp = context.getSharedPreferences(\n SHARED_PREFERENCES, Activity.MODE_PRIVATE);\n SharedPreferences.Editor editor = sp.edit();\n editor.putString(key, value);\n editor.apply();\n }", "title": "" }, { "docid": "3b629743ece1505376b3122363124c53", "score": "0.6161959", "text": "public void setValue(Storable object, Object value);", "title": "" }, { "docid": "29a9d0d81e4c4fa1534ec92824544a06", "score": "0.6160299", "text": "public static void setUserDetails(String key, String value) {\n userdetails.get().put(key, value);\n }", "title": "" }, { "docid": "ffd8f551573a8b3b2cbd6770e133f450", "score": "0.61542314", "text": "void put(String key, String value);", "title": "" }, { "docid": "3943550e40e0a26c97e76e5dc9b5baa5", "score": "0.61526984", "text": "public static void put(Object key, Object value) { controllers.put(key, value); }", "title": "" }, { "docid": "001e232f995e9243fbc31a2fc0c8cb3c", "score": "0.614877", "text": "public void setExperimentProperty(final String key, final String val);", "title": "" }, { "docid": "c7d6bfe3d3cc88a8b131e167ed8cb915", "score": "0.6148132", "text": "public MutableState set(Object variableKey, Object value) {\n if(variableKey.equals(VAR_AGENTS_LOC)){\n this.agentsLoc = (Integer[])value;\n }\n else if(variableKey.equals(VAR_TIME_FROM_LAST_REPAIR)){\n this.timeFromLastRepair = (Map<Integer,Integer>) value;\n }\n else{\n throw new UnknownKeyException(variableKey);\n }\n return this;\n }", "title": "" }, { "docid": "0ba0dac99eac6d85db33847e2039011a", "score": "0.614441", "text": "V setValue(V value);", "title": "" }, { "docid": "864249c991a397a97a47213f2809bd90", "score": "0.6131022", "text": "public void put(final String key, final String value) {\n\n }", "title": "" }, { "docid": "5b4a29fff7acbf3ca75bc73b19b34ba0", "score": "0.61278534", "text": "private void setKey(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n key_ = value;\n }", "title": "" }, { "docid": "3cf30eb4faa2b43411c4240bfc684d54", "score": "0.61205274", "text": "public void set(String key, String value, int timestamp) {\n map.putIfAbsent(key, new ArrayList<Pair<Integer, String>>());\n \n //If key is already present in the map then add the pair\n map.get(key).add(new Pair(timestamp, value));\n \n }", "title": "" }, { "docid": "2d7d84ee38393b03939038678dc588ae", "score": "0.61190754", "text": "public void setKey(K key) {\n\t\tthis.key = key;\n\t}", "title": "" }, { "docid": "962575841682b48e718cfdf55db37dcc", "score": "0.61152923", "text": "public void setKey(final String key);", "title": "" }, { "docid": "fc9296c9c5ebef074b99ecf4fa22781e", "score": "0.6111345", "text": "void setKey(java.lang.String key);", "title": "" }, { "docid": "c82915515018144b5f7d7ab75e722e34", "score": "0.610526", "text": "public void setValue(String k, Object o)\n {\n if (values == null)\n {\n values = new Hashtable<String, Object>();\n }\n values.put(k, o);\n }", "title": "" }, { "docid": "48362e8daea43ec4d89cf956c6820575", "score": "0.6103435", "text": "@Override\n public void set(String key, FieldType type, Object value) {\n checkShortStringLength(key, encoding, MAX_FIELD_NAME_SIZE);\n if (ENCODING.equals(key)) {\n if (type == FieldType.INT16) {\n setEncoding((Short) value);\n }\n else {\n throw new EventSystemException(\"Attempted to set \" + ENCODING + \" with type \"\n + type + \" when \" + FieldType.INT16 +\n \" is required.\");\n }\n }\n else {\n if (type == FieldType.STRING || type == FieldType.STRING_ARRAY) {\n if (find(ENCODING) < 0) {\n setEncoding(encoding);\n }\n }\n final int fieldIndex = find(key);\n if (fieldIndex >= 0) {\n // Found the field. Can we modify it in place?\n final int tokenIndex = getTokenIndexFromFieldIndex(fieldIndex);\n final FieldType oldType = FieldType.byToken(bytes[tokenIndex]);\n if (oldType == type && type.isConstantSize()) {\n // Modify the value in place, requiring no shifts.\n Serializer.serializeValue(type, value, encoding, bytes, tokenIndex + 1);\n return;\n }\n clear(key);\n }\n if (value != null) {\n appendField(key, type, value);\n }\n }\n }", "title": "" }, { "docid": "769f2db9e09634ebb96fc96bc75abab5", "score": "0.6101093", "text": "void saveToSharedPreferences(String key, String value)\n {\n sharedPreferences.edit().putString(key, value).apply();\n }", "title": "" }, { "docid": "48a4515fd04040ce336d9839359425f1", "score": "0.60989153", "text": "public void put(final String key, final Object value);", "title": "" }, { "docid": "3773d4e557807e4431ece61d2a27d272", "score": "0.6090862", "text": "public static void saveInt(String key, int value)\n {\n getSharedPreferences().edit().putInt(key, value).commit();\n \n }", "title": "" }, { "docid": "d4eaeee627363dbb30dcdf91a8f4bd6a", "score": "0.60886836", "text": "public void put(String key, Value value){\n if(key == null){\n throw new IllegalArgumentException(\"key may not be null\");\n }\n if(value == null){\n throw new IllegalArgumentException(\"value may not be null\");\n }\n root = put(root, key, value, 0);\n }", "title": "" }, { "docid": "7592526366d06ffce16909ef4ee5ac53", "score": "0.6088359", "text": "void changeKey(String newKey);", "title": "" }, { "docid": "952b673fc19f08c90f9da96540d71108", "score": "0.60854024", "text": "public static void save(String valueKey, String value, Context context) {\n SharedPreferences prefs = PreferenceManager\n .getDefaultSharedPreferences(context);\n SharedPreferences.Editor edit = prefs.edit();\n edit.putString(valueKey, value);\n edit.commit();\n }", "title": "" }, { "docid": "48887283a5e4b3f2ed38b27b46800862", "score": "0.6079609", "text": "public void set(String key, Object val) {\n\t\tset(key, val, ValueTypes.VALUE_TYPE_NONE);\n\t}", "title": "" }, { "docid": "8281ea9c0b8f224df0460dd01cb30677", "score": "0.6078623", "text": "public void put(String key, int value){\r\n \troot = put(root,key,value);\r\n }", "title": "" }, { "docid": "6e54c97b8659c76dabad1a4653d471c6", "score": "0.60755444", "text": "public static void set(String key, String val) {\n Node rNode = r.get(r.root, key + \" \");\n if(blockCount > 0) {\n if(rNode != null) {\n commandStack.push(\"SET \" + key + \" \" + rNode.val.toString());\n } else {\n commandStack.push(\"UNSET \" + key);\n }\n }\n\n // if key already existed, must update numEqualRT as if it were unset\n if(rNode != null) {\n String oldVal = rNode.val.toString();\n Node n = numEqualRT.get(numEqualRT.root, oldVal + \" \");\n int count = Integer.parseInt(n.val.toString());\n if(count > 1) {\n n.val = count - 1;\n } else {\n numEqualRT.delete(numEqualRT.root, oldVal + \" \");\n }\n } \n\n // ensure keys are terminated?\n // maybe should automatically append\n int err;\n if(key.charAt(key.length() - 1) != ' ') {\n err = r.insert(r.root, key + \" \", val);\n } else {\n err = r.insert(r.root, key, val);\n }\n\n Node n = numEqualRT.get(numEqualRT.root, val + \" \");\n if(n != null) {\n int count = Integer.parseInt(n.val.toString());\n n.val = new Integer(count + 1);\n } else {\n numEqualRT.insert(numEqualRT.root, val + \" \", new Integer(1));\n }\n\n }", "title": "" }, { "docid": "640257a3d6a4fb9ea843e90fae130d3e", "score": "0.60744", "text": "void setData(String key, byte[] data);", "title": "" }, { "docid": "eb1acb0a7ad562a235e5c15156c957ca", "score": "0.60725313", "text": "@Override\n protected void OnPutValue(String key) {\n \n }", "title": "" }, { "docid": "504ea531918e73d0269d8cf6c26c2738", "score": "0.606265", "text": "public void put(String key, Object value) {\n context.put(key, value);\n }", "title": "" }, { "docid": "25b6022651b99f91bf76d7a0f8623c69", "score": "0.606222", "text": "public static void setValue (String key, Float value){\n\n }", "title": "" }, { "docid": "0677cddf1998b03c240aa65af9cbd361", "score": "0.6056469", "text": "public void setValue(Enum key, String value) {\n this._task.put(key, value);\n }", "title": "" }, { "docid": "3cc979a50b9c209d89e5f941ed886f51", "score": "0.6054876", "text": "public void setProperty(String key, Object value);", "title": "" }, { "docid": "f3eb21ef9d9dd3ce970e966f70121882", "score": "0.60539204", "text": "public void put(String store, String key, String value);", "title": "" }, { "docid": "85c6b61cb78994e08491454dbeb59fd0", "score": "0.6053341", "text": "public void put(Key key, Value value) {\n root = put(root, key, value);\n }", "title": "" }, { "docid": "5508a8297d28ca4b5b5efbb538c6df92", "score": "0.6044447", "text": "void setValue(Object val);", "title": "" }, { "docid": "a786b8475cd704a7c017f0b8e3668261", "score": "0.6042731", "text": "public void put (K key, V value);", "title": "" }, { "docid": "3b0954cdbf227fb0aea893ebeb22fc3b", "score": "0.604164", "text": "public void setValue(Enum key, long value) {\n this._task.put(key, Long.toString(value));\n }", "title": "" } ]
2603f59fc23cd2a57b699cb3d324f2e2
Creates or finds a PfsGroup from its string representation.
[ { "docid": "68d4cf8690e38f255426dc57d14593d3", "score": "0.76663476", "text": "@JsonCreator\n public static PfsGroup fromString(String name) {\n return fromString(name, PfsGroup.class);\n }", "title": "" } ]
[ { "docid": "8be98dd363b2b5726316255086fd8734", "score": "0.57464045", "text": "public Builder setGroup(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n group_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "da530317f1669493278f4a1a67227c34", "score": "0.5580902", "text": "public Group createGroup(String id) throws CoordinationException;", "title": "" }, { "docid": "5ee15b1d593465745c17977afa27d27c", "score": "0.55039984", "text": "Group createGroup();", "title": "" }, { "docid": "6787f7c21147e1017c0e5d2be3cf7311", "score": "0.54235667", "text": "public GroupCard stringToGroupCard(String name, Person p){\r\n GroupCard card = null;\r\n\r\n for (PowerStructure crd : p.pStructure.getChildren()) {\r\n if(crd.LABEL.getName().equals(name)){\r\n card = (GroupCard) crd.LABEL;\r\n break;\r\n }\r\n }\r\n return card;\r\n }", "title": "" }, { "docid": "5595a0cd152ffeebf0b61f1169ae7d3e", "score": "0.5393657", "text": "public Builder setGroupKey(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x20000000;\n groupKey_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "9e74e3510d813cc7ee172f897b31cfb7", "score": "0.53672385", "text": "void createGroup (String groupName,String description) throws BaseException;", "title": "" }, { "docid": "9a467f4a24a27fb417e6012f00675a56", "score": "0.53598905", "text": "public PropertyGroup createPropertyGroup(String groupName);", "title": "" }, { "docid": "8106fe45bf74fc0100df132ac14eee3c", "score": "0.52764595", "text": "public static Group getNewGroup(Persistent p)\n {\n Group g = null;\n try\n {\n Class groupWrapperClass = TurbineSecurity.getGroupClass();\n\n Class [] clazz = new Class [] { Persistent.class };\n Object [] params = new Object [] { p };\n\n g = (Group) groupWrapperClass\n .getConstructor(clazz)\n .newInstance(params);\n }\n catch (Exception e)\n {\n log.error(\"Could not instantiate a new group from supplied persistent: \", e);\n }\n\n return g;\n }", "title": "" }, { "docid": "60d1f3a2eb6e15aa20fc2c5d5ed5d5aa", "score": "0.5255689", "text": "Group getByName(String name);", "title": "" }, { "docid": "1bad7a577397ac6e534a53d9e0cc235e", "score": "0.5230983", "text": "void create(Group group);", "title": "" }, { "docid": "f3449c7a78085a63505d4cd25075c6b3", "score": "0.5217622", "text": "public Builder setGroup(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n group_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "7140366b9a2e671a734816c748edc87b", "score": "0.5188529", "text": "Group registerNewGroup(GroupData groupData);", "title": "" }, { "docid": "dfc9daa315e5a2516d9007307496729f", "score": "0.5167067", "text": "public Builder setGroupName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n groupName_ = value;\n \n return this;\n }", "title": "" }, { "docid": "1dfe4144a42e1f61a82487a76b30257f", "score": "0.5156977", "text": "public Builder setNewGroupName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n newGroupName_ = value;\n \n return this;\n }", "title": "" }, { "docid": "1dfe4144a42e1f61a82487a76b30257f", "score": "0.5156977", "text": "public Builder setNewGroupName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n newGroupName_ = value;\n \n return this;\n }", "title": "" }, { "docid": "1dfe4144a42e1f61a82487a76b30257f", "score": "0.5156977", "text": "public Builder setNewGroupName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n newGroupName_ = value;\n \n return this;\n }", "title": "" }, { "docid": "1dfe4144a42e1f61a82487a76b30257f", "score": "0.5156977", "text": "public Builder setNewGroupName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n newGroupName_ = value;\n \n return this;\n }", "title": "" }, { "docid": "eeef91e82da35462b42ab68a95d335d2", "score": "0.5155509", "text": "public RestGroupsModel createGroup(String groupBodyCreate) throws Exception\n {\n RestRequest request = RestRequest.requestWithBody(HttpMethod.POST, groupBodyCreate, \"groups?{parameters}\", restWrapper.getParameters());\n return restWrapper.processModel(RestGroupsModel.class, request);\n }", "title": "" }, { "docid": "bfcd7237d89dcf0923434de73a33cfba", "score": "0.51489997", "text": "public GroupElement encodeByteArrayToGroupElement(byte[] binaryString) {\n\t\t//Currently we don't support this conversion. \n\t\t//Will be implemented in the future.\n\t\treturn null;\n\t}", "title": "" }, { "docid": "2ca8ec2cec7f74c5d76b4435189934c3", "score": "0.51457214", "text": "public java.lang.String getGroup() {\n java.lang.Object ref = group_;\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 group_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "09a9506ff1c2f2bf086542845de72511", "score": "0.5140566", "text": "Builder group(String group);", "title": "" }, { "docid": "4b3fe01846c810fdfe34cef1a8713567", "score": "0.5140121", "text": "public Builder setGroupNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n groupName_ = value;\n \n return this;\n }", "title": "" }, { "docid": "28f3c0f30d0653720e7e482d79e272fe", "score": "0.5135734", "text": "public Builder setGroupName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000040;\n groupName_ = value;\n \n return this;\n }", "title": "" }, { "docid": "c94d50d287b30cd316f4e468bd4a4812", "score": "0.5134812", "text": "public Builder setGroupName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n groupName_ = value;\n \n return this;\n }", "title": "" }, { "docid": "c94d50d287b30cd316f4e468bd4a4812", "score": "0.5134812", "text": "public Builder setGroupName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n groupName_ = value;\n \n return this;\n }", "title": "" }, { "docid": "7403cea1f331cfc4fbb073a965d8ebc9", "score": "0.51341015", "text": "public Builder setGroupNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n groupName_ = value;\n \n return this;\n }", "title": "" }, { "docid": "39c879c58052e32255f7d4fe2ded8db5", "score": "0.51314586", "text": "public Builder setGroupName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n groupName_ = value;\n \n return this;\n }", "title": "" }, { "docid": "eb5fa8d95544f824711583dd730e20f6", "score": "0.51259875", "text": "public Builder setGroupNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000040;\n groupName_ = value;\n \n return this;\n }", "title": "" }, { "docid": "9f8bbdf5000dc76232e649277483698b", "score": "0.51255697", "text": "public Builder setGroupNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n groupName_ = value;\n \n return this;\n }", "title": "" }, { "docid": "9f8bbdf5000dc76232e649277483698b", "score": "0.51255697", "text": "public Builder setGroupNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n groupName_ = value;\n \n return this;\n }", "title": "" }, { "docid": "104e289dabb953e69991e322e42f5057", "score": "0.51152295", "text": "public Builder setGroupNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n groupName_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "58e31eb8e92909c146c6daf994b648a2", "score": "0.5110047", "text": "public java.lang.String getGroup() {\n java.lang.Object ref = group_;\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 group_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "ec1b80c3d145cf4398c9619f1a931f85", "score": "0.51016295", "text": "public String group(String paramString) {\n/* 572 */ int i = getMatchedGroupIndex(paramString);\n/* 573 */ if (this.groups[i * 2] == -1 || this.groups[i * 2 + 1] == -1)\n/* 574 */ return null; \n/* 575 */ return getSubSequence(this.groups[i * 2], this.groups[i * 2 + 1]).toString();\n/* */ }", "title": "" }, { "docid": "6b37221cb264d8dbe40ff8a4a80c689a", "score": "0.5097181", "text": "String createGroup(String username, String groupName) throws HTTPException;", "title": "" }, { "docid": "d01fb4776d08fe1b3aeef09bae31e949", "score": "0.5057387", "text": "public NetworkRequest createSearchGroupRequest(String searchString) {\n return new NetworkRequestImpl(NetworkRequest.NetworkRequestType.SEARCH_GROUP,\n () -> {\n Group group = new Group();\n group.setName(searchString);\n return CommunicationUtils.getObjectMapper().writeValueAsString(group);\n });\n }", "title": "" }, { "docid": "cbc069ba1761f0b00b9b637670961b47", "score": "0.50510234", "text": "public Builder setNewGroupNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n newGroupName_ = value;\n \n return this;\n }", "title": "" }, { "docid": "cbc069ba1761f0b00b9b637670961b47", "score": "0.50510234", "text": "public Builder setNewGroupNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n newGroupName_ = value;\n \n return this;\n }", "title": "" }, { "docid": "cbc069ba1761f0b00b9b637670961b47", "score": "0.50510234", "text": "public Builder setNewGroupNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n newGroupName_ = value;\n \n return this;\n }", "title": "" }, { "docid": "cbc069ba1761f0b00b9b637670961b47", "score": "0.50510234", "text": "public Builder setNewGroupNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n newGroupName_ = value;\n \n return this;\n }", "title": "" }, { "docid": "e2657c46c5323246c85e52b5dc25095b", "score": "0.5044478", "text": "public java.lang.String getGroup() {\n java.lang.Object ref = group_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n group_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "70a36176daf564f884a3483fb28effa1", "score": "0.50438315", "text": "void setGroupid(java.lang.String groupid);", "title": "" }, { "docid": "7f9f5df9b2f115b0d85b04daccfe717c", "score": "0.5033663", "text": "public java.lang.String getGroup() {\n java.lang.Object ref = group_;\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 group_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "7ec8b6262c0286cdf1b3b77a533b3f67", "score": "0.4989998", "text": "public Builder setGroupGuid(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n groupGuid_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "535cd8faf38e225b91e6ffd43198c0a1", "score": "0.4989059", "text": "public Builder setGroupBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n group_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "37d8ed1bf5e4c7e0e4b019fb8854a9d9", "score": "0.49808785", "text": "public Group createGroup(Group g)\n\t\tthrows IllegalArgumentException;", "title": "" }, { "docid": "98a9d4f962504a57b612bde3de03b5b5", "score": "0.49273133", "text": "private Group createGroup(String title, String description, Long orgId, User creator) {\r\n if(title == null || title.isEmpty()) {\r\n //Title can't be null or empty.\r\n return null;\r\n } else {\r\n return new Group(title, description, orgId, creator);\r\n }\r\n }", "title": "" }, { "docid": "696b70df5bb91eb6acd357c99b795158", "score": "0.492665", "text": "public Builder setGroupBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n group_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "d083d638ec7efbd80a018ae965b107c1", "score": "0.4880071", "text": "CreateGroupResult createGroup(CreateGroupRequest createGroupRequest);", "title": "" }, { "docid": "cc2aa9f4e622a755792d726299a9851e", "score": "0.48712164", "text": "public void setGroupId( String _strGroupId )\n {\n this._strGroupId = _strGroupId;\n }", "title": "" }, { "docid": "1902adfdc6b229105cadc533e17611f5", "score": "0.4866944", "text": "void setGrouping(String group);", "title": "" }, { "docid": "df525166ff1385c7bbbc4278ab88a07f", "score": "0.48568642", "text": "public Group parseGroup(CharSequence text, DecodeMonitor monitor) throws ParseException {\n Address address = parseAddress(text, monitor);\n if (!(address instanceof Group))\n throw new ParseException(\"Not a group address\");\n\n return (Group) address;\n }", "title": "" }, { "docid": "6b56cacbf33a2b6be179d61271ba76b5", "score": "0.4783939", "text": "void setGroup(String group);", "title": "" }, { "docid": "4e40e4a0214631add9b991d14374bd6a", "score": "0.47820276", "text": "public Group createGroup(String name) {\n // Default currency CHF\n Group newGroup = new Group(null, name, Currency.CHF);\n\n newGroup.setId(createNewId());\n LOGGER.debug(\"New Group: {}\", newGroup);\n\n GroupEntity groupEntity = groupRepository.create(newGroup);\n return groupEntity.toGroup();\n }", "title": "" }, { "docid": "e366b889e053e875458a70df1c8a8388", "score": "0.47710907", "text": "public Builder setGroupGuidBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n groupGuid_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "646c3467c280cedc30f1e30e9cf6f5ae", "score": "0.47683513", "text": "Group findGroupById(Integer groupId);", "title": "" }, { "docid": "023df1b95fbe9314b9f81d8a2305ff0a", "score": "0.4741843", "text": "public Group newGroup(String groupName,String community) {\n Group g = new Group();\n g.setName(groupName);\n g.setCommunity(community);\n return g;\n \n }", "title": "" }, { "docid": "0f2e1d8b7a8fefc980c8e51a9d215552", "score": "0.473149", "text": "Group getById(long id);", "title": "" }, { "docid": "8f21b200b836724b4a73d78aa44dc277", "score": "0.47215867", "text": "public static SubprojectsGroup create(String name, Project project) {\n String path = project.getProjectDirectory().toURL().toExternalForm();\n String id = sanitizeNameAndUniquifyForId(name);\n LOG.log(Level.FINE, \"Creating: {0}\", id);\n Preferences p = NODE.node(id);\n p.put(KEY_NAME, name);\n p.put(KEY_KIND, KIND);\n p.put(KEY_PATH, path);\n return new SubprojectsGroup(id);\n }", "title": "" }, { "docid": "78599625739e0ed2834ff032d60cd97c", "score": "0.47045055", "text": "public static CompletableFuture<InspectorService.ObjectGroup> createGroup(\n @NotNull FlutterApp app, @NotNull FlutterDebugProcess debugProcess,\n @NotNull VmService vmService, String groupName) {\n return create(app, debugProcess, vmService).thenApplyAsync((service) -> service.createObjectGroup(groupName));\n }", "title": "" }, { "docid": "c1274876de00d4232f29ae2c0282077a", "score": "0.4701293", "text": "public Builder setGroupName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n groupName_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "16c3be3b2a8a115743b6d9b0b93f1560", "score": "0.46830025", "text": "public com.google.protobuf.ByteString\n getGroupBytes() {\n java.lang.Object ref = group_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n group_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "d1f5c17b313c7122760f4b9544fd2fd8", "score": "0.46819246", "text": "public String getNewGroupName() {\n Object ref = newGroupName_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n newGroupName_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "d1f5c17b313c7122760f4b9544fd2fd8", "score": "0.46819246", "text": "public String getNewGroupName() {\n Object ref = newGroupName_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n newGroupName_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "d1f5c17b313c7122760f4b9544fd2fd8", "score": "0.46819246", "text": "public String getNewGroupName() {\n Object ref = newGroupName_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n newGroupName_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "d1f5c17b313c7122760f4b9544fd2fd8", "score": "0.46819246", "text": "public String getNewGroupName() {\n Object ref = newGroupName_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n newGroupName_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "ebafdcc826dc9f404adf86026a6cc80e", "score": "0.46799228", "text": "public com.google.protobuf.ByteString\n getGroupBytes() {\n java.lang.Object ref = group_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n group_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "32d0a45d2f21fee26a1a4d53fbba80c0", "score": "0.4676791", "text": "SystemGroupNamesType createSystemGroupNamesType();", "title": "" }, { "docid": "4e515c2b56660d0995bf28d65e8faabc", "score": "0.46559405", "text": "void addGroupToGroup (String groupName,String subgroupName) throws BaseException;", "title": "" }, { "docid": "76e6a23b175918d87dc7177d9e59cb47", "score": "0.46401057", "text": "public SongGroup ( String newGroupName, String newGroupDdescription )\n {\n groupName = newGroupName;\n groupDescription = newGroupDdescription;\n }", "title": "" }, { "docid": "993ef4023faa8529ae2340b09fc7be7a", "score": "0.46239296", "text": "public Group findGroup(String arg0) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "62a9b6ac0775736ef87d91542ac83dac", "score": "0.46221855", "text": "public com.google.protobuf.ByteString\n getGroupBytes() {\n java.lang.Object ref = group_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n group_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "92025d91a75760dd8b842100d9ed70b6", "score": "0.461298", "text": "public static Group load(int id, boolean organisationFromDb, ServletContext context) {\n Group grp = new Group();\n grp.setGrpid(id);\n\n String query;\n if (organisationFromDb) {\n query = \"SELECT name, orgid FROM grp WHERE grpid=?\";\n } else {\n query = \"SELECT name FROM grp WHERE grpid=?\";\n }\n\n Context initCtx;\n Connection conn;\n try {\n initCtx = new InitialContext();\n Context envCtx = (Context) initCtx.lookup(\"java:comp/env\");\n DataSource ds = (DataSource) envCtx.lookup(\"jdbc/OpenMailArchDB\");\n\n conn = ds.getConnection();\n\n PreparedStatement stmt = conn.prepareStatement(query);\n stmt.setInt(1, id);\n ResultSet rsMail = stmt.executeQuery();\n\n if (rsMail.wasNull()) {\n rsMail.close();\n stmt.close();\n return null;\n }\n\n if (rsMail.next()) {\n grp.setName(rsMail.getString(\"name\"));\n context.log(\"GROUP LOAD: found in DB: \" + grp.getName());\n if (organisationFromDb)\n grp.setOrg(Organisation.load(rsMail.getInt(\"orgid\"), context));\n\n rsMail.close();\n stmt.close();\n } else {\n rsMail.close();\n stmt.close();\n return null;\n }\n\n String membersQuery = \"SELECT username FROM grp_members WHERE grpid=?\";\n stmt = conn.prepareStatement(query);\n stmt.setInt(1, id);\n ResultSet rsMembers = stmt.executeQuery();\n\n List<String> members = new ArrayList<>();\n while (rsMembers.next()) {\n members.add(rsMembers.getString(1));\n }\n rsMembers.close();\n stmt.close();\n\n grp.setMembers(members);\n\n conn.close();\n } catch (NamingException | SQLException e) {\n context.log(e.getMessage(), e);\n }\n\n return grp;\n }", "title": "" }, { "docid": "d6e377e848409c7c8de225b3983b9e64", "score": "0.46125907", "text": "public String getNewGroupName() {\n Object ref = newGroupName_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n newGroupName_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }", "title": "" }, { "docid": "d6e377e848409c7c8de225b3983b9e64", "score": "0.46125907", "text": "public String getNewGroupName() {\n Object ref = newGroupName_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n newGroupName_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }", "title": "" }, { "docid": "d6e377e848409c7c8de225b3983b9e64", "score": "0.46125907", "text": "public String getNewGroupName() {\n Object ref = newGroupName_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n newGroupName_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }", "title": "" }, { "docid": "d6e377e848409c7c8de225b3983b9e64", "score": "0.46125907", "text": "public String getNewGroupName() {\n Object ref = newGroupName_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n newGroupName_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }", "title": "" }, { "docid": "08ea57a5bcfa3b7b6168397fe2ad5a61", "score": "0.46056464", "text": "FileSetRefGroupType1 createFileSetRefGroupType1();", "title": "" }, { "docid": "5d4fcab94865b4cef52a927652518c22", "score": "0.45860988", "text": "public Group(int id, String name, String title, SecurityRegistry registry) {\n this.id = id;\n this.name = name;\n this.title = title;\n this.registry = registry;\n }", "title": "" }, { "docid": "6b6679f1bf92bc0b8cf2c4a59ae523eb", "score": "0.45841187", "text": "public com.google.protobuf.ByteString\n getGroupBytes() {\n java.lang.Object ref = group_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n group_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "3a7131a23ad3e3654f89ea5247e488ae", "score": "0.45814857", "text": "public void addSpfGroup( String grpName ) { //, LocalizationFile lFile ) {\n\t\tsynchronized ( spfsMap ) {\t\t\t\n\t\t\tif( !spfsMap.containsKey( grpName ) ) {\n\t\t\t\tspfsMap.put( grpName, new TreeMap<String, Map<String,AbstractRBD<?>>>() );\n\t\t\t\tspfGrpCount++;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "8f8723165594a85624e985cc5d99e5ec", "score": "0.45805177", "text": "static public Group loadById(int id) {\n\n\t\ttry (Connection conn = DbUtil.getConn();\n\t\t\tPreparedStatement pst = conn.prepareStatement(LOAD_BY_ID)) {\n\t\t\tpst.setInt(1, id);\n\t\t\ttry (ResultSet res = pst.executeQuery()) {\n\t\t\t\tif (res.next()) {\n\t\t\t\t\tGroup tmpGroup = new Group();\n\t\t\t\t\ttmpGroup.setName(res.getString(\"name\"));\n\t\t\t\t\ttmpGroup.setId(res.getInt(\"id\"));\n\t\t\t\t\treturn tmpGroup;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "6d7dd51a03b1dd3997fd9c705545bb07", "score": "0.4577823", "text": "void createResourceGroup(String name, ResourceGroup resourcegroup) throws PulsarAdminException;", "title": "" }, { "docid": "d88f9f0c0b05ee94168de1c980d8d048", "score": "0.45656005", "text": "public void setGroupName(String value) {\n this.groupName = value;\n }", "title": "" }, { "docid": "db7325d2082098fcdcc38d22b056a8e0", "score": "0.45401663", "text": "public void testCreateGroupNPE() throws Exception {\r\n assertNotNull(\"setup fails\", registry);\r\n try {\r\n registry.createGroup(null, fileIds);\r\n fail(\"if groupName is null, throw NullPointerException\");\r\n } catch (NullPointerException e) {\r\n // good\r\n }\r\n try {\r\n registry.createGroup(GROUP_NAME, null);\r\n fail(\"if fileIds is null, throw NullPointerException\");\r\n } catch (NullPointerException e) {\r\n // good\r\n }\r\n }", "title": "" }, { "docid": "33ffc0d0eebd9a99e367bce3187e0f64", "score": "0.45378798", "text": "@Create\n\tpublic MethodOutcome createGroup(@ResourceParam Group theGroup) {\n\n\t\t// Save this Group to the database...\n\t\tDafGroup dafGroup = service.createGroup(theGroup);\n\t\tGroup group = parseGroup(dafGroup.getData());\n\t\tMethodOutcome retVal = new MethodOutcome();\n\t\tretVal.setId(new IdType(RESOURCE_TYPE, group.getIdElement().getIdPart(),group.getMeta().getVersionId()));\n\t\treturn retVal;\n\t}", "title": "" }, { "docid": "61ff4632d0417b91dc5440542f5af685", "score": "0.4523155", "text": "public void setGroup(java.lang.String group) {\n this.group = group;\n }", "title": "" }, { "docid": "f9d96d7e915165a77fae0ed2a0a0101b", "score": "0.4521195", "text": "public String group(int group);", "title": "" }, { "docid": "b3c1705f78617b1969487a68ec635953", "score": "0.45178172", "text": "@Override\n public Identifier getNewInstance(String str) {\n int index = str.indexOf(\"://\");\n if (index < 0)\n throw new RemoteRuntimeException(\"Invalid name \" + str);\n String type = str.substring(0, index);\n Class<? extends Identifier> clazz = typeToClazzMap.get(type);\n Class<?>[] argTypes = {String.class};\n Constructor<? extends Identifier> constructor;\n try {\n constructor = clazz.getDeclaredConstructor(argTypes);\n Object[] args = new Object[1];\n args[0] = str.substring(index + 3);\n return constructor.newInstance(args);\n } catch (NoSuchMethodException | SecurityException | InstantiationException | IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {\n e.printStackTrace();\n throw new RemoteRuntimeException(e);\n }\n }", "title": "" }, { "docid": "3729d7bc77dfbae303e1bb97130e6921", "score": "0.45115194", "text": "public ModuleGroup(String descriptorLocation, ClassLoader loader) {\r\n if (descriptorLocation == null) {\r\n throw new ModuleException(\"No module group descriptor specified\");\r\n }\r\n\r\n if (loader == null) {\r\n loader = getClass().getClassLoader();\r\n }\r\n\r\n URL resrc = Module.getResource(descriptorLocation, loader);\r\n if (resrc == null) {\r\n throw new ModuleException(\"Module group descriptor not found: \" \r\n + descriptorLocation);\r\n }\r\n \r\n try {\r\n this.loader = loader;\r\n this.allModules = Collections.synchronizedMap(new LinkedHashMap());\r\n this.normalModules = new Vector();\r\n this.systemModules = new Vector();\r\n this.activeModules = new Vector();\r\n this.children = Collections.synchronizedSet(new HashSet());\r\n this.descriptor = new PropertyTree(resrc);\r\n this.name = descriptor.getProperty(\"/module-group/@name\");\r\n \r\n loadModules();\r\n }\r\n catch (Exception e) {\r\n throw new ModuleException(\"Unable to initialize module group '\"+getName()+\"'\", e);\r\n }\r\n }", "title": "" }, { "docid": "023b5e9786ca0bc8136ead9d7a6eb524", "score": "0.4505677", "text": "public void testCreateGroupGroupExistsException() throws Exception {\r\n assertNotNull(\"setup fails\", registry);\r\n registry.createGroup(GROUP_NAME, new ArrayList());\r\n assertTrue(\"the groupName should exist\", registry.getGroupNames().contains(GROUP_NAME));\r\n try {\r\n registry.createGroup(GROUP_NAME, fileIds);\r\n fail(\"if the group name already exists, throw GroupExistsException\");\r\n } catch (GroupExistsException e) {\r\n // good\r\n }\r\n registry.removeGroup(GROUP_NAME);\r\n }", "title": "" }, { "docid": "24a146ca853a1d34b6a4a7c65d47562b", "score": "0.4492554", "text": "public static JabberID valueOf(String s) {\n JabberID jid=new JabberID();\n jid.parseJID(s);\n\n return jid;\n }", "title": "" }, { "docid": "486c20170b829a0ddd0c3344321c04a2", "score": "0.44905204", "text": "public static GeolocPush formatStrToGeoloc(String str) {\n \ttry {\n\t \tStringTokenizer items = new StringTokenizer(str, \",\");\n\t \tString label = null;\n\t \tif (items.countTokens() > 5) {\n\t \t\tlabel = items.nextToken();\n\t \t}\n\t\t\tdouble latitude = Double.valueOf(items.nextToken());\t\t\t\t\t\n\t\t\tdouble longitude = Double.valueOf(items.nextToken());\n\t\t\tdouble altitude = Double.valueOf(items.nextToken());\n\t\t\tlong expiration = Long.valueOf(items.nextToken());\n\t\t\tfloat accuracy = Float.valueOf(items.nextToken());\n\t\t\treturn new GeolocPush(label, latitude, longitude, altitude, expiration, accuracy);\n \t} catch(NoSuchElementException e) {\n \t\treturn null;\n \t} catch(NumberFormatException e) {\n \t\treturn null;\n \t}\n }", "title": "" }, { "docid": "0c449b2619e252c7b0f3da31d0fc0d7d", "score": "0.44878858", "text": "void setGroupName(String a);", "title": "" }, { "docid": "a323d687d89dcd93a737bd73bce9a2eb", "score": "0.4484754", "text": "public GroupName (){\n\n }", "title": "" }, { "docid": "777344f1ed3d6ced3a373c23669b8edc", "score": "0.44826978", "text": "public User_group create(User_group obj) {\n ApiClient client = new ApiClient(Global.getConfigValue(\"APP.USER.API_ADDRESS\") + \"/user_group\");\n JsonObject data = client.executePostQuery(obj);\n if (data == null) {\n return null;\n } else {\n if (data.get(\"status\").getAsInt() == 200 && data.get(\"result\")!=null && !data.get(\"result\").toString().equals(\"null\")) {\n Gson gson = Global.getGsonObject(\"yyyy-MM-dd'T'HH:mm:ss.Z\");\n return gson.fromJson(data.get(\"result\").getAsJsonObject().toString(), User_group.class);\n } else {\n return null;\n }\n }\n }", "title": "" }, { "docid": "98c8c9849acfb1ec02c6e9840c8eb41b", "score": "0.4474027", "text": "GroupInfo getGroupById(String id) throws HTTPException;", "title": "" }, { "docid": "2b6b12f25f7f39381761e8bacca02e91", "score": "0.4473771", "text": "public static GameServer creatGameServer(String str) \r\n\t{\t\r\n\t\tstr=str.substring(14,str.length()-1);\r\n\t\tGson gson = new Gson();\r\n\t\ttry\r\n\t\t{\r\n\t\t\tGameServer game = gson.fromJson(str, GameServer.class);\r\n\t\t\treturn game;\r\n\t\t} \r\n\t\tcatch ( JsonSyntaxException e) \r\n\t\t{\r\n\t\t\tthrow new RuntimeException(\"not a GameServer\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "721d3583f58c9ff0bc91b72904b11ab5", "score": "0.4471955", "text": "public String createGroup(Class<? extends AbstractGroupAgent> type, GroupDataInitialiser init)\n\t{\n\t\treturn ec.createGroup(type, init);\n\t}", "title": "" }, { "docid": "e8d6aaabe15ecde29693d3b2c14ad574", "score": "0.44696686", "text": "public Group( int id, String name, String title, SecurityRegistry registry ) {\n this.id = id;\n this.name = name;\n this.title = title;\n this.registry = registry;\n }", "title": "" }, { "docid": "2576f95be0de4fb3fac573cb957eb9ec", "score": "0.44693476", "text": "public java.lang.String getGroupName() {\n java.lang.Object ref = groupName_;\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 groupName_ = s;\n return s;\n }\n }", "title": "" } ]
0784ec1b3385f59bf1f72a781a6fab53
click on the close windows
[ { "docid": "191a6567f3f4f9cec9a4b5e19b3c5236", "score": "0.0", "text": "@Override\r\n public void mouseClicked(MouseEvent e) {\r\n release();\r\n }", "title": "" } ]
[ { "docid": "efc8a28b08b32a0f51be6afd3dd91285", "score": "0.7731259", "text": "public void closeClicked(){\n System.out.println(\"Closing...\");\n System.exit(0);\n }", "title": "" }, { "docid": "1f424c9b26a6eccc69e59190fb0d23f7", "score": "0.76176727", "text": "public void close() {\n\t\tclick(\"//span[text()='×']\");\n\t}", "title": "" }, { "docid": "45f06f5399314e9c010a8c545d3c3542", "score": "0.7588202", "text": "private void closeButtonClicked(){\n\tSystem.exit(0);\r\n }", "title": "" }, { "docid": "8bea34f42fdfb84c4e8f98de55ea0337", "score": "0.7534656", "text": "public void close() {\n\n\t\tnew PushButton(\"Finish\").click();\n\t}", "title": "" }, { "docid": "4dc16a7425513c9427799ced1caf8118", "score": "0.7511447", "text": "public void btnClickCloseBtn() {\n\n\t\ttry {\n\t\t\tTestLog.log.info(\"Clicking on Close Icon on The top corner \");\n\t\t\tclickClose.click();\n\t\t\tTestLog.log.info(\"Clicked on Close Icon on The top corner\");\n\n\t\t} catch (Exception ex) {\n\t\t\tTestLog.log\n\t\t\t\t\t.info(\"Could not Click on Close Icon on The top corner. \"\n\t\t\t\t\t\t\t+ ex);\n\t\t}\n\n\t}", "title": "" }, { "docid": "0c837ad11d187eef59788dd9124dac70", "score": "0.7411471", "text": "public void close(){\n WindowEvent winClosingEvent = new WindowEvent(this,WindowEvent.WINDOW_CLOSING);\n Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(winClosingEvent);\n }", "title": "" }, { "docid": "af3b789c737f6d814c243d71b044b85c", "score": "0.73861647", "text": "private void close() {\n this.processWindowEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING));\r\n }", "title": "" }, { "docid": "b53438be788d27a33d8b6cb18e5a335c", "score": "0.7372092", "text": "private void close(){\n WindowEvent windowClose = new WindowEvent(this, WindowEvent.WINDOW_CLOSING);\n Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(windowClose);\n }", "title": "" }, { "docid": "17a090a626670af81cfadf0574731dc0", "score": "0.7370209", "text": "@Override\r\n public void windowClosing(WindowEvent we) {\r\n ClickCounterFrame win = (ClickCounterFrame) we.getSource();\r\n win.dispose();\r\n System.exit(0);\r\n }", "title": "" }, { "docid": "38341193119a29ed633b0f4bdf522dce", "score": "0.7300091", "text": "private void closeMouseClicked(java.awt.event.MouseEvent evt) {\n dispose();\n }", "title": "" }, { "docid": "ca60fd9f1b7f4e6d8c09f4caf3354dd9", "score": "0.7270517", "text": "public void closeWindow(){\n\t\t\n\t\tthis.dispose();\n\t}", "title": "" }, { "docid": "d262a4730aa69c7e6f2ee61b19404a5a", "score": "0.72093576", "text": "private void close() {\n WindowEvent WinClosing = new WindowEvent(this,WindowEvent.WINDOW_CLOSING);\n Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(WinClosing);\n }", "title": "" }, { "docid": "6e5bc52dc8917d7eca7b115697bf838c", "score": "0.71422327", "text": "private void close() {\n WindowEvent winClosingEvent = new WindowEvent(this, WindowEvent.WINDOW_CLOSING);\n Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(winClosingEvent);\n }", "title": "" }, { "docid": "caa91de1e6b260a2e355bbd2bcf5621d", "score": "0.7119322", "text": "protected abstract void handleCloseClick();", "title": "" }, { "docid": "8a0896a51b6709b5052e7592054f5643", "score": "0.70979786", "text": "private void closeWindow() {\r\n this.setVisible(false);\r\n }", "title": "" }, { "docid": "25ab2b188b5cc2de7be5bf0d2d96cb13", "score": "0.7081813", "text": "private void close(){\n WindowEvent winClosing=new WindowEvent(this,WindowEvent.WINDOW_CLOSING);\n Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(winClosing);\n}", "title": "" }, { "docid": "8288f8a96298360fc4760eaaefb6c2f8", "score": "0.7050829", "text": "@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\tIterator<Window> iterator = getUI().getWindows().iterator();\n\t\t\t\twhile(iterator.hasNext()){\n\t\t\t\t\tWindow window = iterator.next();\n\t\t\t\t\twindow.close();\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "9c9c4d7943489798fa42483a74ccf1c1", "score": "0.70491785", "text": "public void close() {\r\n\t\tgetFrame().dispatchEvent(new WindowEvent(getFrame(), WindowEvent.WINDOW_CLOSING));\r\n\t\t\r\n\t}", "title": "" }, { "docid": "5c001757493ecbcb3299b0b642ae5b9e", "score": "0.7039718", "text": "public void close(){\r\n\t\tif (dontCloseBag){\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tint loops = 0;\r\n\t\twhile (isOpen() && loops < 30){\r\n\t\t\tloops++;\r\n\t\t\tFScript.execTask(\"click 396 41 left false false false\", owner.getId()); //top right button\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8c929c13114832f1022cc55e1c9a006a", "score": "0.702852", "text": "private void closeDialog(WindowEvent evt) {\n close();\n }", "title": "" }, { "docid": "1443903a7151874e916b04fca9f3a52f", "score": "0.7020379", "text": "public abstract boolean requestCloseWindow();", "title": "" }, { "docid": "0c6beda2f97aa4af8fcf91a75f33cc0d", "score": "0.70192194", "text": "public void actionCloseTimeOffWindow(ActionEvent event) {\r\n\t\t\r\n\t\tSystem.out.println(\"close pressed\");\r\n\t\tStage stage = (Stage) closeButton.getScene().getWindow();\r\n\t stage.close();\r\n\t}", "title": "" }, { "docid": "8d4e86ec59278c85d250cc4413ab2cf9", "score": "0.7011575", "text": "void closeButton_actionPerformed(ActionEvent e) {\n dispose();\n }", "title": "" }, { "docid": "c6f51beb1e5cdd6b987b540ac5d0fff8", "score": "0.6997775", "text": "private void handleClose(WindowEvent we) {\n controller.close();\n }", "title": "" }, { "docid": "8ad59e40bb8d251a9be2b709908316a9", "score": "0.69932246", "text": "public void CloseNewWindow(){\n\t\tdriver.close();\n\t}", "title": "" }, { "docid": "f88d98df50797495ee26649c0aceffac", "score": "0.69873136", "text": "@FXML\r\n\tpublic void closeWindow(MouseEvent event){\n\t\t\t\tPlatform.exit();\r\n\t}", "title": "" }, { "docid": "38fd0b3e3e356ee65f5025078e07cec9", "score": "0.6985908", "text": "public void close() {\n setVisible(false);\n dispose();\n }", "title": "" }, { "docid": "8a69310f10d38bbb814ecdac7bb26194", "score": "0.6967166", "text": "private void closeButtonActionPerformed(java.awt.event.ActionEvent evt) {\n\t\tSystem.exit(0);\r\n\t}", "title": "" }, { "docid": "def3225b774cf3c491cffc89691287f1", "score": "0.6937082", "text": "public void exitIVAction(){\n\t\tPopupWnd.getStage().close();\n\t}", "title": "" }, { "docid": "2ee17ea94afc5c3db6752fc9f620511c", "score": "0.69290805", "text": "public void btnCloseClick(View view) {\n finish();\n }", "title": "" }, { "docid": "800d2c1abdcab9d8e89c8feaffed7b2e", "score": "0.6913089", "text": "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getActionCommand()==\"关闭\"){\n\t\t\tframe.dispose();\n\t\t}\n\t}", "title": "" }, { "docid": "a534cf7e1d469b0b283f09a2013a81a5", "score": "0.69121313", "text": "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n close();\n }", "title": "" }, { "docid": "9b36400785b3a53f65db23aff456f405", "score": "0.69094145", "text": "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tm.otherWindowOpen = false;\r\n\t\t\t\tsetVisible(false);\r\n\t\t\t\tdispose();\r\n\t\t\t}", "title": "" }, { "docid": "07c4433cc9f58bc61f973223550ed3f7", "score": "0.69067335", "text": "protected void windowClosed()\r\n {\r\n System.exit(0);\r\n }", "title": "" }, { "docid": "4168f286079e0ac3480dbdff9a26f036", "score": "0.6901444", "text": "private void setClose() {\n\t\tthis.setVisible(false);\r\n\t}", "title": "" }, { "docid": "f7d5893a0a0c774ffec2958e84bb6519", "score": "0.68649435", "text": "public void btn_Close_Click(ActionEvent e) throws Exception\n\t{\n\t\t//#CM692407\n\t\t// Return to the parent screen.\n\t\tparentRedirect(null);\n\t}", "title": "" }, { "docid": "4c58f77ebbc5673d68766a1b17007066", "score": "0.68639463", "text": "public void windowClosing(WindowEvent e){\n _controller.windowClosing();\n }", "title": "" }, { "docid": "5af10387588815f74802d66d93910a40", "score": "0.6861749", "text": "private void windowClosing ()\n {\n\tmyMaster.getLocusTracker (myLocus).removeListener (myMessageListener);\n\tmyLocus.removeListener (myEntityListener);\n }", "title": "" }, { "docid": "da18f5d1751631fd1c4c78ff206f89a6", "score": "0.6861245", "text": "@Override\n public void onClick(View v) {\n clickExit();\n }", "title": "" }, { "docid": "f81b31cb81d87d2be3c4153d4f91b06f", "score": "0.686054", "text": "public void close() {\n WindowEvent winClosingEvent = new WindowEvent(this, WindowEvent.WINDOW_CLOSING);\n Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(winClosingEvent);\n }", "title": "" }, { "docid": "f81b31cb81d87d2be3c4153d4f91b06f", "score": "0.686054", "text": "public void close() {\n WindowEvent winClosingEvent = new WindowEvent(this, WindowEvent.WINDOW_CLOSING);\n Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(winClosingEvent);\n }", "title": "" }, { "docid": "7e3aa2ca7ac92b15a5e43244c52b8089", "score": "0.68480974", "text": "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible (false);\n dispose ();\n \n System.exit (0);\n }", "title": "" }, { "docid": "cfa430afa884d460df22a30653b6258d", "score": "0.68337756", "text": "public void close() {\n this.setVisible(false);\n this.dispose();\n }", "title": "" }, { "docid": "a8431320891ebc06c6dc14b4a21e08e5", "score": "0.6832689", "text": "public void \t\n windowClosing\n (\n WindowEvent e\n ) \n {\n setVisible(false);\n removePanels();\n UIMaster.getInstance().destroyWindow(this);\n }", "title": "" }, { "docid": "0d4b5b746f3c95571637ccbad78f57bb", "score": "0.68234235", "text": "private void close() {\n\t\tString[] opt = { \"Yes\", \"No\" };\n\t\tif (JOptionPane.showOptionDialog(this, \"Do you really want to exit?\", \"Olympic Games\", 0, JOptionPane.INFORMATION_MESSAGE, new ImageIcon(img.exit), opt, opt[0]) == 0) {\n\t\t\tMain.gravarEstado();\n\t\t\tdispose();\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "title": "" }, { "docid": "b574458cdf3f234548247745de2dd548", "score": "0.6822684", "text": "@Override\r\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tsuper.windowClosing(e);\r\n\t\t\t\tclickedProgrammende();\r\n\t\t\t}", "title": "" }, { "docid": "0d76bc3fcf5b6da75955e19e97cfe757", "score": "0.6821663", "text": "@Override\n\t\t\tpublic void windowClosing(WindowEvent e)\n\t\t\t{\n\t\t\t\tlogOutBtn.doClick();\n\t\t\t\tsuper.windowClosing(e);\n\t\t\t}", "title": "" }, { "docid": "667c439543fbce0f8df0fff7c3168484", "score": "0.6819106", "text": "@Override\n\tpublic void handle_close(ActionEvent event)\n\t{\n\t\tcloseWindow();\n\t}", "title": "" }, { "docid": "9c69fbd86f24721d401ad2bced00b65a", "score": "0.6809837", "text": "public void windowClosing(WindowEvent e) \r\n {\n scalaSci.math.plot.plot.close(figureId); \r\n }", "title": "" }, { "docid": "b97641f8a92559e8e789a666e274656a", "score": "0.68036544", "text": "@Override \n\t \tpublic void windowClosing(WindowEvent e) {\n\t \t\tSystem.exit(0); \n\t \t}", "title": "" }, { "docid": "669d13c2d1d4b818802011b83db05770", "score": "0.68028146", "text": "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\ttry {\r\n\t\t\t\t\tTApplication.instance.exit();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO: handle exception\r\n\t\t\t\t}\r\n\t\t\t}", "title": "" }, { "docid": "6738419538f27ccbe5d31b01ad3aec98", "score": "0.6801247", "text": "private void gameGUIClosing(java.awt.event.WindowEvent evt) {\n Info req = new Info();\n req.setAction(QUIT_DESK);\n req.setDesk_num(this.desk_num);\n req.setDesk_position(this.desk_position);\n this.c.send(req);\n this.dispose();\n }", "title": "" }, { "docid": "c630715f4df0b570e4717ac417db9a79", "score": "0.67919964", "text": "public void closeLoginWithButton(){\n\t\tcloseLoginButton.click();\n\t}", "title": "" }, { "docid": "41fd888697873abbdf353f42b9b36f5f", "score": "0.67902374", "text": "public void closeWindow()\n\n\t{\n\n\t\tcommBroker.closeBroker();\n\n\t}", "title": "" }, { "docid": "98156a2b301fb15032c766f5de32b8f8", "score": "0.67897636", "text": "public void onClose(){\n\t\t\tsetVisible(false);\n\t\t\tc.startUp();\n\t\t}", "title": "" }, { "docid": "9e8604ce5d47d0b998eaa3043f3f30ac", "score": "0.6780785", "text": "public void windowClosing(WindowEvent we) {\r\n System.exit(0);\r\n }", "title": "" }, { "docid": "8509fa81c0de075e215c4ac1e91dcca3", "score": "0.67731136", "text": "public void closeMenu();", "title": "" }, { "docid": "fd83d030509f12fc09748e24d0dd96ef", "score": "0.67721015", "text": "public void onCancelBtnClick() {\n close(WINDOW_CLOSE_ACTION);\n }", "title": "" }, { "docid": "bada26182d210a2b32622c042cbfcc34", "score": "0.67701536", "text": "public void windowClosing(WindowEvent windowEvent){\n \t System.exit(0);\n }", "title": "" }, { "docid": "852a8373d321222acc08726a77ec6e76", "score": "0.67654556", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tpopMes.closePopWindow();\n\t\t\t}", "title": "" }, { "docid": "10c072657565fbf65f04fdecefda0b79", "score": "0.6754726", "text": "private void closeButtonActionPerformed(java.awt.event.ActionEvent evt) {\n\t dispose();\n }", "title": "" }, { "docid": "e1c0998f2cfd581fe53925bc9ea4a8f6", "score": "0.6743109", "text": "public void closeButtonAction(){\n stage = (Stage) idClose.getScene().getWindow();\n stage.close();\n }", "title": "" }, { "docid": "9fcb1c5c3790479d3f009f4825eec4a4", "score": "0.67424035", "text": "public void OnClickQuit(View view) {\n\t\tfinish();\n\t}", "title": "" }, { "docid": "9ff633133c8ecf6980ba88d91a3b15fd", "score": "0.67414826", "text": "private void closeWindow() {\r\n\t\tint option = JOptionPane.showConfirmDialog(\r\n\t\t\t\tnull, \r\n\t\t\t\t\"Close this window?\", \r\n\t\t\t\t\"Exit\", \r\n\t\t\t\tJOptionPane.YES_NO_OPTION);\r\n\t\tif(option == JOptionPane.YES_OPTION)\r\n\t\t\tthis.dispose();\r\n\t}", "title": "" }, { "docid": "999bee577a44527976a1bd37b2acf84c", "score": "0.67355627", "text": "public void windowClosing(WindowEvent e){\n System.exit(0);\n }", "title": "" }, { "docid": "81579b236a2e1963ba2d601bf036cb57", "score": "0.6729139", "text": "public void windowClosing(WindowEvent e) {\n\t\t\t\t\t\t\t\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "e42d3620872f73444c15d0ca86be35eb", "score": "0.6728114", "text": "public void windowClosing(WindowEvent e){\r\n \r\n if(e.getSource()== menu){\r\n \t System.exit(0); //es para cerrar toda la aplicación\r\n }//if\r\n \r\n if(e.getSource()== m){\r\n \t m.dispose(); //cerramos ventana mostrar\r\n }//if\r\n\r\n}", "title": "" }, { "docid": "6355b6ebe1ea8de295ce33adb512f1f0", "score": "0.6724242", "text": "public static void closeBrowser(){\n\t\tmyD.quit();\n\t}", "title": "" }, { "docid": "bba2f6621faa4850329245109e780f07", "score": "0.67200464", "text": "public void Close ()\n\t\t{\n\t\t\tm_jfPar.dispatchEvent(new WindowEvent(m_jfPar, WindowEvent.WINDOW_CLOSING));\n\t\t}", "title": "" }, { "docid": "24392aa129fa3c39f5cbe8a3b87c2c37", "score": "0.67149377", "text": "@Override\n\t\t\tpublic void windowClosed(WindowEvent we) {\n\t\t\t\tSystem.exit(0);\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "b10661454f45652be6f9eba10519b585", "score": "0.67120785", "text": "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible (false);\n dispose ();\n }", "title": "" }, { "docid": "b10661454f45652be6f9eba10519b585", "score": "0.67120785", "text": "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible (false);\n dispose ();\n }", "title": "" }, { "docid": "1b350f6cf8e55d7938da06156b071a27", "score": "0.67112696", "text": "public void closeWindow()\n {\n recordWindowSize();\n dispose();\n closeToolWindows();\n }", "title": "" }, { "docid": "279260325394f81d19a03a7c82675098", "score": "0.6701433", "text": "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\r\n setVisible(false);\r\n }", "title": "" }, { "docid": "b979bc8aa7d684251167cbb3e979dd60", "score": "0.6692924", "text": "public static void closePopUp()\n\t{\n\t\ttry {\n\t\t\tThread.sleep(7000);\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\tcloseOption.click();\n\t\tReporter.log(\"Clicked close Option\", true);\n\n\t}", "title": "" }, { "docid": "16af9770e0231b80d578a7723933f01b", "score": "0.6691229", "text": "public void viewAllBooksWindowClose() {\n\n\t\tStage stage = (Stage) viewAllBooksClose.getScene().getWindow();\n\t\tstage.close();\n\n\t}", "title": "" }, { "docid": "e012830f853ea5972053f206073e52ba", "score": "0.6690947", "text": "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\r\n doClose(RET_CANCEL);\r\n }", "title": "" }, { "docid": "e012830f853ea5972053f206073e52ba", "score": "0.6690947", "text": "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\r\n doClose(RET_CANCEL);\r\n }", "title": "" }, { "docid": "712c142a785a00f4ec8c3a39d39d01b3", "score": "0.6671627", "text": "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible(false);\n dispose();\n }", "title": "" }, { "docid": "712c142a785a00f4ec8c3a39d39d01b3", "score": "0.6671627", "text": "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible(false);\n dispose();\n }", "title": "" }, { "docid": "712c142a785a00f4ec8c3a39d39d01b3", "score": "0.6671627", "text": "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible(false);\n dispose();\n }", "title": "" }, { "docid": "712c142a785a00f4ec8c3a39d39d01b3", "score": "0.6671627", "text": "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible(false);\n dispose();\n }", "title": "" }, { "docid": "712c142a785a00f4ec8c3a39d39d01b3", "score": "0.6671627", "text": "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible(false);\n dispose();\n }", "title": "" }, { "docid": "712c142a785a00f4ec8c3a39d39d01b3", "score": "0.6671627", "text": "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible(false);\n dispose();\n }", "title": "" }, { "docid": "712c142a785a00f4ec8c3a39d39d01b3", "score": "0.6671627", "text": "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible(false);\n dispose();\n }", "title": "" }, { "docid": "712c142a785a00f4ec8c3a39d39d01b3", "score": "0.6671627", "text": "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible(false);\n dispose();\n }", "title": "" }, { "docid": "712c142a785a00f4ec8c3a39d39d01b3", "score": "0.6671627", "text": "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible(false);\n dispose();\n }", "title": "" }, { "docid": "712c142a785a00f4ec8c3a39d39d01b3", "score": "0.6671627", "text": "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible(false);\n dispose();\n }", "title": "" }, { "docid": "712c142a785a00f4ec8c3a39d39d01b3", "score": "0.6671627", "text": "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible(false);\n dispose();\n }", "title": "" }, { "docid": "06f3840befc869f9a5ecc959d4eb90f3", "score": "0.6668561", "text": "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n doClose();\n }", "title": "" }, { "docid": "bf3b7190eac85ec3b2ffb3f8761f5534", "score": "0.66661406", "text": "public void holdBookWindowClose() {\n\n\t\tStage stage = (Stage) holdBookClose.getScene().getWindow();\n\t\tstage.close();\n\n\t}", "title": "" }, { "docid": "e7ebc069b628309961e41dd5918afa44", "score": "0.6665743", "text": "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n doClose(RET_CANCEL);\n }", "title": "" }, { "docid": "e7ebc069b628309961e41dd5918afa44", "score": "0.6665743", "text": "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n doClose(RET_CANCEL);\n }", "title": "" }, { "docid": "e7ebc069b628309961e41dd5918afa44", "score": "0.6665743", "text": "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n doClose(RET_CANCEL);\n }", "title": "" }, { "docid": "e7ebc069b628309961e41dd5918afa44", "score": "0.6665743", "text": "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n doClose(RET_CANCEL);\n }", "title": "" }, { "docid": "e7ebc069b628309961e41dd5918afa44", "score": "0.6665743", "text": "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n doClose(RET_CANCEL);\n }", "title": "" }, { "docid": "e7ebc069b628309961e41dd5918afa44", "score": "0.6665743", "text": "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n doClose(RET_CANCEL);\n }", "title": "" }, { "docid": "7375ad9bc553f2b49f06ffd971b21613", "score": "0.66624326", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n getFloatingWindow().close();\n }", "title": "" }, { "docid": "d74ab28eca79607a427a4153048f3b75", "score": "0.66610855", "text": "public void closeLoginFormWithClick(){\n\t\tloginScreenRoot.click(); // clicks inside login form, should do opposite\n\t}", "title": "" }, { "docid": "2f69d8b9e13fc503d575eed3b106d3d7", "score": "0.66548365", "text": "@FXML\n void processCloseWindow(MouseEvent event) {\n \tStage stage = (Stage) btnCloseWindow.getScene().getWindow();\n stage.close();\n }", "title": "" }, { "docid": "4c7a52eecb869e3079fab57eb883506f", "score": "0.6642645", "text": "public void closeWindow() {\n this.getWS().windows.remove(this);\n }", "title": "" } ]
f4974c4c18703ef9ee3674fc4d30fc61
Get name of the user
[ { "docid": "23de5c90830a1071db4fa458452b86f1", "score": "0.7878116", "text": "public String getName() {\n\n return userName;\n\n }", "title": "" } ]
[ { "docid": "7056a57c6bac40e9cfb59d8f571459a0", "score": "0.86147916", "text": "java.lang.String getUserName();", "title": "" }, { "docid": "7056a57c6bac40e9cfb59d8f571459a0", "score": "0.86147916", "text": "java.lang.String getUserName();", "title": "" }, { "docid": "bc4386fb14a7a467fafed9f47811823d", "score": "0.8585271", "text": "@Override\r\n\tpublic String getName() {\n\t\treturn user.getName();\r\n\t}", "title": "" }, { "docid": "18b220ffacf943c8fd4e1a30d1fb8401", "score": "0.8534082", "text": "public static String getName_user() {\n return name_user;\n }", "title": "" }, { "docid": "ffed60e75070a25102cf8ab3706ad3b0", "score": "0.83301175", "text": "public String getUserName()\n {\n return userName.toString();\n }", "title": "" }, { "docid": "148f69d13c0fcddccf6a277478621916", "score": "0.8259264", "text": "public String getUser_name() {\n\t\treturn user_name;\n\t}", "title": "" }, { "docid": "ae088e2b73fc90d246f0e321eff641f3", "score": "0.82495105", "text": "public static String getUserName() {\n return sp.getString(\"UserName\", \"user1\");\n }", "title": "" }, { "docid": "99d4aeca773c577ca14ed3e48eda3c51", "score": "0.81854284", "text": "String getUserName();", "title": "" }, { "docid": "99d4aeca773c577ca14ed3e48eda3c51", "score": "0.81854284", "text": "String getUserName();", "title": "" }, { "docid": "99d4aeca773c577ca14ed3e48eda3c51", "score": "0.81854284", "text": "String getUserName();", "title": "" }, { "docid": "99d4aeca773c577ca14ed3e48eda3c51", "score": "0.81854284", "text": "String getUserName();", "title": "" }, { "docid": "76c2b50e0d530975b5b3398a3df60caf", "score": "0.818075", "text": "public synchronized String getUserName(){\n\t\tif(userName.isPresent())\n\t\t\treturn userName.get();\n\t\telse return \"unknown\";\n\t}", "title": "" }, { "docid": "1ada5965b4b26c41b17faa0e58eec33d", "score": "0.8163185", "text": "public String getUserName()\r\n\t{\r\n\t\treturn user_name;\r\n\t}", "title": "" }, { "docid": "e73756c6aaf259098afb35e8eddcae83", "score": "0.8094106", "text": "public String getUsername() {\n return getString(\"Name\");\n }", "title": "" }, { "docid": "0499fd87beada200a8c90bf15f02b6b7", "score": "0.8081732", "text": "java.lang.String getUsername();", "title": "" }, { "docid": "0499fd87beada200a8c90bf15f02b6b7", "score": "0.8081732", "text": "java.lang.String getUsername();", "title": "" }, { "docid": "0499fd87beada200a8c90bf15f02b6b7", "score": "0.8081732", "text": "java.lang.String getUsername();", "title": "" }, { "docid": "0499fd87beada200a8c90bf15f02b6b7", "score": "0.8081732", "text": "java.lang.String getUsername();", "title": "" }, { "docid": "0499fd87beada200a8c90bf15f02b6b7", "score": "0.8081732", "text": "java.lang.String getUsername();", "title": "" }, { "docid": "0499fd87beada200a8c90bf15f02b6b7", "score": "0.8081732", "text": "java.lang.String getUsername();", "title": "" }, { "docid": "0499fd87beada200a8c90bf15f02b6b7", "score": "0.8081732", "text": "java.lang.String getUsername();", "title": "" }, { "docid": "0499fd87beada200a8c90bf15f02b6b7", "score": "0.8081732", "text": "java.lang.String getUsername();", "title": "" }, { "docid": "85dd0d75c365b9cd386f12ee7d91be23", "score": "0.80619", "text": "public String getUserName() {\n return getValue(\"username\");\n }", "title": "" }, { "docid": "0f8b181b515712dcbb31e089dc26291d", "score": "0.8023988", "text": "public String getName() {\n\t\tString user = \"\";\n\t\ttry {\n\t\t\tif (checkFile(\"userProfile\")) {\n\t\t\t\tuser = profileActivity.getUser().toString();\n\t\t\t\t//user = profileEntry.getUsername();\n\t\t\t\tLog.d(TAG, \"Data From Internal Storage\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t}\n\t\treturn user;\n\n\t}", "title": "" }, { "docid": "702296b7efe7c2bcb81e96f6395e2876", "score": "0.79821634", "text": "@Override\n\tpublic String getUserName() {\n\t\treturn model.getUserName();\n\t}", "title": "" }, { "docid": "2ec80ef2e2182a31d292d4186f042595", "score": "0.794594", "text": "@Override\n\tpublic java.lang.String getUserName() {\n\t\treturn _escritor.getUserName();\n\t}", "title": "" }, { "docid": "1df5cb6a286597916a145a2ff7b6f27a", "score": "0.79161793", "text": "java.lang.String getUser();", "title": "" }, { "docid": "1df5cb6a286597916a145a2ff7b6f27a", "score": "0.79161793", "text": "java.lang.String getUser();", "title": "" }, { "docid": "1df5cb6a286597916a145a2ff7b6f27a", "score": "0.79161793", "text": "java.lang.String getUser();", "title": "" }, { "docid": "1df5cb6a286597916a145a2ff7b6f27a", "score": "0.79161793", "text": "java.lang.String getUser();", "title": "" }, { "docid": "1df5cb6a286597916a145a2ff7b6f27a", "score": "0.79161793", "text": "java.lang.String getUser();", "title": "" }, { "docid": "1df5cb6a286597916a145a2ff7b6f27a", "score": "0.79161793", "text": "java.lang.String getUser();", "title": "" }, { "docid": "1df5cb6a286597916a145a2ff7b6f27a", "score": "0.79161793", "text": "java.lang.String getUser();", "title": "" }, { "docid": "1df5cb6a286597916a145a2ff7b6f27a", "score": "0.79161793", "text": "java.lang.String getUser();", "title": "" }, { "docid": "1df5cb6a286597916a145a2ff7b6f27a", "score": "0.79161793", "text": "java.lang.String getUser();", "title": "" }, { "docid": "1df5cb6a286597916a145a2ff7b6f27a", "score": "0.79161793", "text": "java.lang.String getUser();", "title": "" }, { "docid": "1df5cb6a286597916a145a2ff7b6f27a", "score": "0.79161793", "text": "java.lang.String getUser();", "title": "" }, { "docid": "3fb3b8cba0eb5f9fc571ce4c6d98841d", "score": "0.785766", "text": "protected String getUserName() {\n logger.trace(\"getUserName()\");\n\n return userName;\n }", "title": "" }, { "docid": "605a02b90b7022d373447eb974253a93", "score": "0.7843634", "text": "@Override\n public String getUserName() {\n return name;\n }", "title": "" }, { "docid": "605a02b90b7022d373447eb974253a93", "score": "0.7843634", "text": "@Override\n public String getUserName() {\n return name;\n }", "title": "" }, { "docid": "e0ab3f61dcef190465a3839d5878aec0", "score": "0.7832072", "text": "String getNomeUser();", "title": "" }, { "docid": "37650cfb4a991b12dec900b7f85e7ca5", "score": "0.7807675", "text": "public String getUserName();", "title": "" }, { "docid": "d7fee863c1f058f76d65dabc6db7a23b", "score": "0.7747962", "text": "@Override\r\n\tpublic String getUsername() {\n\t\treturn user.getUsername();\r\n\t}", "title": "" }, { "docid": "77aff6c5854a06068400b831828af562", "score": "0.7746142", "text": "@Override\n\tpublic String getUsername() {\n\t\treturn user.getUsername();\n\t}", "title": "" }, { "docid": "77aff6c5854a06068400b831828af562", "score": "0.7746142", "text": "@Override\n\tpublic String getUsername() {\n\t\treturn user.getUsername();\n\t}", "title": "" }, { "docid": "a69d1a2ba8498f0217a957fc7a0d06b0", "score": "0.7739093", "text": "public String getUsername() {\n return getName() + getAge();\n }", "title": "" }, { "docid": "17cad03efa45b3ccdbfad493154c9837", "score": "0.77328324", "text": "public final String getuserName() {\n\t\treturn this.userNameField;\n\t}", "title": "" }, { "docid": "45b4ca5694164386eff39de8d7508e23", "score": "0.77268356", "text": "@Override\n\tpublic java.lang.String getUserName() {\n\t\treturn _formToPorletMap.getUserName();\n\t}", "title": "" }, { "docid": "c6332331b16f3d158da25c496e944188", "score": "0.7674675", "text": "@Override\r\n\tpublic String getUsername() {\n\t\treturn name;\r\n\t}", "title": "" }, { "docid": "e66d9c6a59f1bae6b8a4e5183ad630a1", "score": "0.76640606", "text": "public java.lang.String getUserName() {\n java.lang.Object ref = userName_;\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 userName_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "0e9eb444c25dc7808a105e41e3d6d22e", "score": "0.76576835", "text": "@Override\n\tpublic java.lang.String getUserName() {\n\t\treturn _item.getUserName();\n\t}", "title": "" }, { "docid": "6b6b2c1bb4040f6a31431cb3ab67fc71", "score": "0.7650949", "text": "public String getUser() {\n return username;\n }", "title": "" }, { "docid": "5d88e3c5152ecaebfd3c268de19d7776", "score": "0.7649871", "text": "String getUserName(String userId);", "title": "" }, { "docid": "e7c4369ccc5079518ea0a833a630dc87", "score": "0.76448077", "text": "public String getUser() {\n\t\treturn userName;\n\t}", "title": "" }, { "docid": "0c3be8e37dae5006e2a1929d67e91f97", "score": "0.7634972", "text": "@Override\n\tpublic String getUsername() {\n\t\treturn user.getEmail();\n\t}", "title": "" }, { "docid": "312ee40b1cb139126d079f4ab17e1799", "score": "0.76262504", "text": "public String getUsername() {\n\t\treturn getUser();\n\t}", "title": "" }, { "docid": "f0aa4f04f091bc5284ef8be490573ca9", "score": "0.7615668", "text": "public java.lang.String getUserName() {\n java.lang.Object ref = userName_;\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 userName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "d431839d5df66e08542da2ded68f9721", "score": "0.7614977", "text": "@Override\r\n\tpublic String getUsername() {\n\t\treturn this.name;\r\n\t}", "title": "" }, { "docid": "84cea74f2895ecb2c629665168a3f20c", "score": "0.76052374", "text": "public String getUsername() {\n\t\treturn \"user\";\n\t}", "title": "" }, { "docid": "716a2ad5a1e6dafd22cda3a6306977ae", "score": "0.759377", "text": "public String getUserName() {\n final String userName = this.getPrincipal() != null ? this.getPrincipal().getPrincipalName() : null;\n\n return userName != null ? userName : \"\";\n }", "title": "" }, { "docid": "60408a9937f009388ad0b53a3f1b9b06", "score": "0.758868", "text": "String getUsername();", "title": "" }, { "docid": "60408a9937f009388ad0b53a3f1b9b06", "score": "0.758868", "text": "String getUsername();", "title": "" }, { "docid": "60408a9937f009388ad0b53a3f1b9b06", "score": "0.758868", "text": "String getUsername();", "title": "" }, { "docid": "60408a9937f009388ad0b53a3f1b9b06", "score": "0.758868", "text": "String getUsername();", "title": "" }, { "docid": "60408a9937f009388ad0b53a3f1b9b06", "score": "0.758868", "text": "String getUsername();", "title": "" }, { "docid": "f9c90590c499ea4053343a25f857ee49", "score": "0.7580222", "text": "String getUser();", "title": "" }, { "docid": "f9c90590c499ea4053343a25f857ee49", "score": "0.7580222", "text": "String getUser();", "title": "" }, { "docid": "f9c90590c499ea4053343a25f857ee49", "score": "0.7580222", "text": "String getUser();", "title": "" }, { "docid": "f9c90590c499ea4053343a25f857ee49", "score": "0.7580222", "text": "String getUser();", "title": "" }, { "docid": "6184660514c8b2e84344e83771121dbb", "score": "0.7574639", "text": "public String getAuthenticatedUserName() {\n if (username == null) {\n loadUser();\n }\n return username;\n }", "title": "" }, { "docid": "34882ebe0a21eabc360a5ca74b32f417", "score": "0.75725675", "text": "@Override\n public String getUsername() {\n return user.getUsername();\n }", "title": "" }, { "docid": "3a5f0964bc7cf6f732f2c48bcfbde53f", "score": "0.7572294", "text": "public java.lang.String getUserName() {\n java.lang.Object ref = userName_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n userName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "6622437f8d44e724121591d6ce293f81", "score": "0.75613534", "text": "public java.lang.String getUserName()\r\n {\r\n return this._userName;\r\n }", "title": "" }, { "docid": "01c11b9cea3ab89c17058f64a1ed341c", "score": "0.75572723", "text": "public String getUserrealname() {\r\n return userrealname;\r\n }", "title": "" }, { "docid": "e2d32e2d15667e2391c37759a1c7983b", "score": "0.7543076", "text": "public String getUserName() {\n return PROPERTIES.getProperty(\"username\");\n }", "title": "" }, { "docid": "7df900ebd29dc8b1d31ad6325d763545", "score": "0.7539137", "text": "public String getUserName() {\r\n return userName;\r\n }", "title": "" }, { "docid": "7df900ebd29dc8b1d31ad6325d763545", "score": "0.7539137", "text": "public String getUserName() {\r\n return userName;\r\n }", "title": "" }, { "docid": "7df900ebd29dc8b1d31ad6325d763545", "score": "0.7539137", "text": "public String getUserName() {\r\n return userName;\r\n }", "title": "" }, { "docid": "7df900ebd29dc8b1d31ad6325d763545", "score": "0.7539137", "text": "public String getUserName() {\r\n return userName;\r\n }", "title": "" }, { "docid": "7df900ebd29dc8b1d31ad6325d763545", "score": "0.7539137", "text": "public String getUserName() {\r\n return userName;\r\n }", "title": "" }, { "docid": "7df900ebd29dc8b1d31ad6325d763545", "score": "0.7539137", "text": "public String getUserName() {\r\n return userName;\r\n }", "title": "" }, { "docid": "7df900ebd29dc8b1d31ad6325d763545", "score": "0.7539137", "text": "public String getUserName() {\r\n return userName;\r\n }", "title": "" }, { "docid": "7df900ebd29dc8b1d31ad6325d763545", "score": "0.7539137", "text": "public String getUserName() {\r\n return userName;\r\n }", "title": "" }, { "docid": "43e67c5b3cc4b12258079d896b6f5060", "score": "0.75347185", "text": "public String getUserName() {\n return userName;\n }", "title": "" }, { "docid": "43e67c5b3cc4b12258079d896b6f5060", "score": "0.75347185", "text": "public String getUserName() {\n return userName;\n }", "title": "" }, { "docid": "43e67c5b3cc4b12258079d896b6f5060", "score": "0.75347185", "text": "public String getUserName() {\n return userName;\n }", "title": "" }, { "docid": "43e67c5b3cc4b12258079d896b6f5060", "score": "0.75347185", "text": "public String getUserName() {\n return userName;\n }", "title": "" }, { "docid": "43e67c5b3cc4b12258079d896b6f5060", "score": "0.75347185", "text": "public String getUserName() {\n return userName;\n }", "title": "" }, { "docid": "43e67c5b3cc4b12258079d896b6f5060", "score": "0.75347185", "text": "public String getUserName() {\n return userName;\n }", "title": "" }, { "docid": "43e67c5b3cc4b12258079d896b6f5060", "score": "0.75347185", "text": "public String getUserName() {\n return userName;\n }", "title": "" }, { "docid": "43e67c5b3cc4b12258079d896b6f5060", "score": "0.75347185", "text": "public String getUserName() {\n return userName;\n }", "title": "" }, { "docid": "43e67c5b3cc4b12258079d896b6f5060", "score": "0.75347185", "text": "public String getUserName() {\n return userName;\n }", "title": "" }, { "docid": "43e67c5b3cc4b12258079d896b6f5060", "score": "0.75347185", "text": "public String getUserName() {\n return userName;\n }", "title": "" }, { "docid": "43e67c5b3cc4b12258079d896b6f5060", "score": "0.75347185", "text": "public String getUserName() {\n return userName;\n }", "title": "" }, { "docid": "43e67c5b3cc4b12258079d896b6f5060", "score": "0.75347185", "text": "public String getUserName() {\n return userName;\n }", "title": "" }, { "docid": "43e67c5b3cc4b12258079d896b6f5060", "score": "0.75347185", "text": "public String getUserName() {\n return userName;\n }", "title": "" }, { "docid": "43e67c5b3cc4b12258079d896b6f5060", "score": "0.75347185", "text": "public String getUserName() {\n return userName;\n }", "title": "" }, { "docid": "43e67c5b3cc4b12258079d896b6f5060", "score": "0.75347185", "text": "public String getUserName() {\n return userName;\n }", "title": "" }, { "docid": "43e67c5b3cc4b12258079d896b6f5060", "score": "0.75347185", "text": "public String getUserName() {\n return userName;\n }", "title": "" }, { "docid": "43e67c5b3cc4b12258079d896b6f5060", "score": "0.75347185", "text": "public String getUserName() {\n return userName;\n }", "title": "" } ]
5df407871ee116e1c409925d3d878f3e
Returns the File object representing the "webapps" directory
[ { "docid": "14d93cc4b54761f44fb8476de16176e6", "score": "0.66592306", "text": "private File getWarFilePath() {\n List<File> foundFiles = new ArrayList<>();\n try {\n Files.walkFileTree(getTopDirFilePath().toPath(), new SimpleFileVisitor<Path>() {\n @Override\n public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException {\n if (dir.endsWith(\"webapps\")) {\n foundFiles.add(dir.toFile());\n }\n return FileVisitResult.CONTINUE;\n }\n });\n } catch (IOException e) {\n // end of file searching\n }\n if (foundFiles.size() != 0) {\n return foundFiles.get(0);\n }\n return null;\n }", "title": "" } ]
[ { "docid": "25cba7a7e9d001d2bb466da53150994d", "score": "0.75164336", "text": "public String getWebappDirOrFile() {\n\t\treturn this.webappDirOrFile;\n\t}", "title": "" }, { "docid": "38586d78ae125468876252c535a7707a", "score": "0.68857527", "text": "File getApplicationDirectory();", "title": "" }, { "docid": "bab2ec8a1b2b9adecafca29612f48f7b", "score": "0.6885224", "text": "private File confirmWebappDirectory(Properties props) {\r\n \t\tString filename = getRequiredProperty(props, PROP_WEBAPP_DIRECTORY);\r\n \t\tFile webappDirectory = new File(filename);\r\n \t\tif (!webappDirectory.exists()) {\r\n \t\t\tthrow new IllegalArgumentException(\"Invalid value for '\"\r\n \t\t\t\t\t+ PROP_WEBAPP_DIRECTORY + \"': directory '\" + filename\r\n \t\t\t\t\t+ \"' does not exist.\");\r\n \t\t}\r\n \t\tif (!webappDirectory.isDirectory()) {\r\n \t\t\tthrow new IllegalArgumentException(\"Invalid value for '\"\r\n \t\t\t\t\t+ PROP_WEBAPP_DIRECTORY + \"': '\" + filename\r\n \t\t\t\t\t+ \"' is not a directory.\");\r\n \t\t}\r\n \t\tif (!webappDirectory.canWrite()) {\r\n \t\t\tthrow new IllegalArgumentException(\"Invalid value for '\"\r\n \t\t\t\t\t+ PROP_WEBAPP_DIRECTORY + \"': directory '\" + filename\r\n \t\t\t\t\t+ \"' is not writeable.\");\r\n \t\t}\r\n \t\treturn webappDirectory;\r\n \t}", "title": "" }, { "docid": "afa8d9d42d3870df7e9f7e46fdc74aeb", "score": "0.686522", "text": "private File confirmWebappDirectory(Properties props) {\r\n\t\tString filename = getRequiredProperty(props, PROP_WEBAPP_DIRECTORY);\r\n\t\tFile webappDirectory = new File(filename);\r\n\t\tif (!webappDirectory.exists()) {\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid value for '\"\r\n\t\t\t\t\t+ PROP_WEBAPP_DIRECTORY + \"': directory '\" + filename\r\n\t\t\t\t\t+ \"' does not exist.\");\r\n\t\t}\r\n\t\tif (!webappDirectory.isDirectory()) {\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid value for '\"\r\n\t\t\t\t\t+ PROP_WEBAPP_DIRECTORY + \"': '\" + filename\r\n\t\t\t\t\t+ \"' is not a directory.\");\r\n\t\t}\r\n\t\tif (!webappDirectory.canWrite()) {\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid value for '\"\r\n\t\t\t\t\t+ PROP_WEBAPP_DIRECTORY + \"': directory '\" + filename\r\n\t\t\t\t\t+ \"' is not writeable.\");\r\n\t\t}\r\n\t\treturn webappDirectory;\r\n\t}", "title": "" }, { "docid": "98f686f0680a21637e29e327fbcb50e9", "score": "0.6790144", "text": "public static String getWebPath() {\r\n\t\treturn getRealPath( \"WEB-INF/\");\r\n\t}", "title": "" }, { "docid": "a378414f004d49818ca009cb9ee2020e", "score": "0.66711396", "text": "private static Path get_webapp_path() {\n try {\n return Paths.get(Util.class.getResource(SERVLET_CONFIG_PATH).toURI()).getParent().getParent();\n } catch (URISyntaxException e) {\n throw new RuntimeException(\"Failed find webapp path\", e);\n }\n }", "title": "" }, { "docid": "42466dfadb8691fb0d825594bacf5430", "score": "0.6584574", "text": "String getWebProjectStringOutDir();", "title": "" }, { "docid": "c6a12d33c6bfb9cc653f0f3955ed3ed7", "score": "0.65262306", "text": "public FileObject getWebFolder() {\n // assert webFolder.isValid();\n return webFolder;\n }", "title": "" }, { "docid": "e3b1f7c050fe6537c09fea50557a68de", "score": "0.65127116", "text": "public String getWebappsDirectoryName() {\n return webappsDirectoryName;\n }", "title": "" }, { "docid": "6d6e246d5eb8dabb866f7a21ee51fb07", "score": "0.6156106", "text": "File getAppResDirectory();", "title": "" }, { "docid": "5fd5bd5eeee1ea3c1d26ab69e0eeca9e", "score": "0.61515605", "text": "String parseWebappPath() throws CruiseControlException {\n final CruiseControlOptions config = CruiseControlOptions.getInstance();\n final File webappPath = config.getOptionDir(CruiseControlOptions.KEY_WEBAPP_PATH);\n // TODO: validate is useless, since conf.getOptionDir() already validates the dir\n validateWebAppPath(webappPath, CruiseControlOptions.KEY_WEBAPP_PATH);\n return webappPath.getAbsolutePath();\n }", "title": "" }, { "docid": "fe19677889521f9d013526f97b0b69b9", "score": "0.61428773", "text": "public String getWebAppPath()\n {\n return this.xwiki.getWebAppPath(this.context);\n }", "title": "" }, { "docid": "955178e87b22e8d745f5b309da0348c3", "score": "0.6140329", "text": "public File getDeployedDirectory()\n {\n\t\tif(!FileUtils.safeIsDirectory(deployedDirectory))\n\t\t\tdeployedDirectory = null;\n\t\t\n return deployedDirectory;\n }", "title": "" }, { "docid": "a7ce3f42f1d8c712eb409da0dacd511b", "score": "0.6139978", "text": "public File getFile()\n\t{\n\t\tFile dir = loader.gameDir;\n\t\tif (!this.isModApp)\n\t\t{\n\t\t\tdir = new File(dir, \"mods/\" + this.mod.identifier + \"/\");\n\t\t}\n\t\tif (this.location == EnumAssetLocation.JAR)\n\t\t{\n\t\t\tif (this.isModApp)\n\t\t\t{\n\t\t\t\tdir = new File(dir, \"jars/\");\n\t\t\t}\n\t\t\tdir = new File(dir, \"client.jar\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (this.location == EnumAssetLocation.ASSETS)\n\t\t\t{\n\t\t\t\tdir = new File(dir, \"assets/\");\n\t\t\t}\n\t\t\tdir = new File(dir, this.file);\n\t\t}\n\t\treturn dir;\n\t}", "title": "" }, { "docid": "17ff09c3f32e6a9dd3e3262e5b7dbd3f", "score": "0.6063578", "text": "private static File getDirectory(ContentRequest req) {\n String pathInfo = normalise(req.getBerliozPath());\n File folder = XMLConfiguration.getXMLRootFolder(req);\n return new File(folder, pathInfo);\n }", "title": "" }, { "docid": "921f9b0c5a9e846920a4886d9c61a1d8", "score": "0.6054501", "text": "private static File getAppFile(String aName) {\n return new File(getAppDataDir(AppDirName, true), aName);\n }", "title": "" }, { "docid": "fa8ba0f816dc6f7d6818b0473534ed33", "score": "0.60469", "text": "File getBaseDir();", "title": "" }, { "docid": "713b4f775bc8a66211832316fa738361", "score": "0.5965965", "text": "public static File getOrCreateWebViewCrashDir() {\n return getOrCreateDir(getWebViewCrashDir());\n }", "title": "" }, { "docid": "bd59d7ab89a087db075351c872f0e8af", "score": "0.5956945", "text": "private String getUploadDirectory()\n {\n String substring = \"/EzyHotel-J2E/EzyHotel/dist/gfdeploy/EzyHotel/EzyHotel-war_war/\";\n \n //this is the file path that is for different local server\n String UPLOAD_DIRECTORY = context.getRealPath(\"/\").replace(substring, \"\");\n System.out.println(\"#UPLOAD_DIRECTORY : \" + UPLOAD_DIRECTORY);\n return UPLOAD_DIRECTORY;\n }", "title": "" }, { "docid": "dc1a9b2a9d05bf5e9bcee065e8885256", "score": "0.5955806", "text": "public static String getWebPath( String sFileName) {\r\n\t\treturn getRealPath( \"WEB-INF/\" + sFileName);\r\n\t}", "title": "" }, { "docid": "bbae2d896cac8798881f31e28dc87404", "score": "0.59327507", "text": "public static File getWebViewCrashDir() {\n return new File(ContextUtils.getApplicationContext().getCacheDir(), WEBVIEW_CRASH_DIR);\n }", "title": "" }, { "docid": "1d0e457aa108d0d3095a6d36172312cf", "score": "0.59264076", "text": "@NotNull public File getDirFile()\n {\n File result = new File(expand(element.getDir()));\n\n if (!result.isAbsolute()) {\n File basedir = new File(expand(element.basedir));\n\n basedir = normalizeFile(basedir);\n\n result = new File(basedir, result.getPath());\n }\n\n return result;\n }", "title": "" }, { "docid": "df32f5d9beb42cabfcd520168935fb65", "score": "0.59253424", "text": "public File getDataDirectory() {\n return new File(\".\");\n }", "title": "" }, { "docid": "54ff1aae5cc3f11b293e5b7c047214ea", "score": "0.58987194", "text": "private FileObject getWebInf() {\n if (wmRoot == null) {\n return null;\n }\n WebModule webModule = WebModule.getWebModule(wmRoot);\n if (webModule != null) {\n return webModule.getWebInf();\n }\n return null;\n }", "title": "" }, { "docid": "e69b9c14d317a225b0a8328f76f48639", "score": "0.5777388", "text": "File getBasedir();", "title": "" }, { "docid": "6a70690c0f002847cb93b0c6c63319dc", "score": "0.5744594", "text": "public File getJSPDirectory()\n {\n\t\tif(!FileUtils.safeIsDirectory(jspDirectory))\n\t\t\tjspDirectory = null;\n\t\t\n return jspDirectory;\n }", "title": "" }, { "docid": "ada761869fa4c19cb703926fbcf681fd", "score": "0.5706108", "text": "public File getDirectory()\n {\n return getComponent().getCurrentDirectory();\n }", "title": "" }, { "docid": "20423edb9a616bfe721ef6767f2a2182", "score": "0.56702673", "text": "public File getAppTmpDir() {\n return appTmpDir;\n }", "title": "" }, { "docid": "98ee9c7447b22500b01ae92ae542c311", "score": "0.5668589", "text": "public static File getAppDir(Context context) {\n return createDir(context.getFilesDir(), \"_app\"); //We do this beacause android studio add instant run\n // stuff in getFleDir\n }", "title": "" }, { "docid": "2aa60d3cb35e72fe96f9ba0aa0d5631a", "score": "0.56682", "text": "private static String getWebContentBaseDirectory(EclipseWriterConfig config)\n throws MojoExecutionException {\n // getting true location of web source dir from config\n File warSourceDirectory =\n new File(IdeUtils.getPluginSetting(config.getProject(), JeeUtils.ARTIFACT_MAVEN_WAR_PLUGIN,\n \"warSourceDirectory\", \"src/main/webapp\"));\n // getting real and correct path to the web source dir\n String webContentDir =\n IdeUtils.toRelativeAndFixSeparator(config.getEclipseProjectDirectory(), warSourceDirectory, false);\n\n // getting the path to meta-inf base dir\n String result = config.getProject().getBasedir().getAbsolutePath() + File.separatorChar + webContentDir;\n\n return result;\n }", "title": "" }, { "docid": "610b1633a2f1816337f2d7c405f7a4f6", "score": "0.56641614", "text": "public File getBaseDir() {\n if (baseDir == null) {\n try {\n setBasedir(\".\");\n } catch (BuildException ex) {\n ex.printStackTrace();\n }\n }\n return baseDir;\n }", "title": "" }, { "docid": "5bbabf112f1b02a6ae9674de50512adf", "score": "0.5627854", "text": "public static File getWebViewTmpCrashDir() {\n return new File(ContextUtils.getApplicationContext().getCacheDir(), WEBVIEW_TMP_CRASH_DIR);\n }", "title": "" }, { "docid": "11bfc5e6ac0630035c5cfb2ad6bea97f", "score": "0.56224906", "text": "public File getConfDir()\n {\n return new File( basedir, getConfiguration().getConfDirPath() );\n }", "title": "" }, { "docid": "d299a55fc9da29c23cde3ba072b57346", "score": "0.56100655", "text": "public static String getWebRoot() throws ConfigurationException {\n\t\tString result = Configuration.getConfiguration().webRoot;\n\t\treturn checkProperty(result, \"schemalocation\");\n\t}", "title": "" }, { "docid": "4e5414ff7a99ed0f7755a4aa7a15ec88", "score": "0.55995405", "text": "public String getClientFile(String request) {\n request = request.substring(1);\n File cached = new File(WEB_CACHE + File.separator + request);\n if(!cached.exists()) {\n try {\n ZipEntry ze = jar.getEntry(gameData.getString(\"clientDir\") + \"/\" + request);\n if(ze == null)\n return null;\n FileSystem.copy(jar.getInputStream(ze), cached);\n }catch(IOException ex) {\n LOG.warn(\"Encountered exception while trying to cache web file.\");\n ex.printStackTrace(System.out);\n return null;\n }\n }\n return cached.getAbsolutePath();\n }", "title": "" }, { "docid": "d865fb55cf289b040fa3df365655f2e7", "score": "0.5599484", "text": "public static File getAppCacheDirectory(Context context) {\n File appCacheDir = context.getCacheDir();// use internal storage\n File externCacheDir = getExternalCacheDir(context);\n if(appCacheDir == null && isExternalMounted() && externCacheDir != null) {\n appCacheDir = externCacheDir;// use external storage if no internal storage\n }\n return appCacheDir;\n }", "title": "" }, { "docid": "4591782fc7e2d0a776078a2455d80de3", "score": "0.5582213", "text": "public File getFile(){\n return new File(fFile.getAbsolutePath());\n }", "title": "" }, { "docid": "0a9cec5c2131c17281bb9507ac6375e2", "score": "0.55807793", "text": "private static File getIdeaHomeDir() {\n URL url = Bootstrap.class.getResource(\"\");\n if (url == null || !\"jar\".equals(url.getProtocol())) return null;\n\n String path = url.getPath();\n\n int start = path.indexOf(\"file:/\");\n int end = path.indexOf(\"!/\");\n if (start == -1 || end == -1) return null;\n\n String jarFileUrl = path.substring(start, end);\n\n try {\n File bootstrapJar = new File(new URI(jarFileUrl));\n return bootstrapJar.getParentFile().getParentFile();\n } catch (URISyntaxException e) {\n return null;\n }\n }", "title": "" }, { "docid": "59b8abe5a601ec5a2a335b607160b630", "score": "0.5556296", "text": "public static File getOrCreateWebViewCrashLogDir() {\n File dir = new File(getOrCreateWebViewCrashDir(), WEBVIEW_CRASH_LOG_DIR);\n return getOrCreateDir(dir);\n }", "title": "" }, { "docid": "556b3eb93555327a11030e73904d37ea", "score": "0.5544794", "text": "protected File getHomeDirectory() {\n \t\treturn fHome;\n \t}", "title": "" }, { "docid": "24dc62fb8568706ce8cc099eb1d85575", "score": "0.5519115", "text": "private File getFilePath() {\n Preferences prefs = Preferences.userNodeForPackage(Main.class);\n String filePath = prefs.get(FILE_PATH, null);\n if (filePath != null) {\n return new File(filePath);\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "5a0ed0c2dc38a8d7b4d781dc3182f74f", "score": "0.5505191", "text": "public static File getWebViewCrashLogDir() {\n return new File(getWebViewCrashDir(), WEBVIEW_CRASH_LOG_DIR);\n }", "title": "" }, { "docid": "c4a7f582e210ee2d60c736cddd805967", "score": "0.5496822", "text": "Directory getDirectory();", "title": "" }, { "docid": "24d4347880392999f01013a1e39c3d6e", "score": "0.54914814", "text": "public File getFile(String key) {\n String path = get(key);\n\n if (path == null) return null;\n\n File file = new File(path);\n\n if (file.exists()) return file;\n\n file = new File(getHomeDirectory(), path);\n\n if (file.exists()) return file;\n\n file = new File(getConfigDirectory(), path);\n\n if (file.exists()) return file;\n\n return null;\n }", "title": "" }, { "docid": "6ec890eb3af0b58d1a54e29819cced17", "score": "0.54716897", "text": "public abstract File getBuildDirectory();", "title": "" }, { "docid": "ddc2a6cea4a86e5d5d1380a89acbeb70", "score": "0.54684037", "text": "File getBaseDir() {\n\t\treturn this.baseDir;\n\t}", "title": "" }, { "docid": "8c7da7a81a7c4981ab4e0da27a239d58", "score": "0.5468262", "text": "private File getIndexDir() {\n indexDir = directoryHandler.getIndexDirectory();\n return indexDir;\n }", "title": "" }, { "docid": "101f024d2d86ba46d60c1dc912456b35", "score": "0.54677457", "text": "public void setWebProjectDir(File argWebProjectDir) throws IOException;", "title": "" }, { "docid": "39531cdc103cfd12afd02ddc8ac92731", "score": "0.5465413", "text": "public abstract File getTestFilesDirectory();", "title": "" }, { "docid": "6484dd8d83547e92bf0ea888611ddde9", "score": "0.54610825", "text": "private static File getConfigFile()\n\t{\n\t\tString homePath = System.getProperty(\"user.home\");\n\t\tFile config = new File(homePath, CONFIGFILE);\n\t\treturn config;\n\t}", "title": "" }, { "docid": "d637060d691c23a9d40a01d251b7eb82", "score": "0.5458043", "text": "public static String getApplicationRoot() {\n\t\treturn getProperty(CONTINEO_APP_ROOTDIR);\n\t}", "title": "" }, { "docid": "53ab1de8ac53c90fb3e28530af89b77d", "score": "0.54547757", "text": "public static File getFile() {\r\n\t\treturn THE_FILE.getAbsoluteFile();\r\n\t}", "title": "" }, { "docid": "e5e860663533a43bbfc1c66fe14c1766", "score": "0.54450345", "text": "public static String getPathToJarfileDir() {\n String url = AppConfig.class.getResource(\"/\" + AppConfig.class.getName().replaceAll(\"\\\\.\", \"/\") + \".class\").toString();\n url = url.substring(4).replaceFirst(\"/[^/]+\\\\.jar!.*$\", \"/\");\n try {\n File dir = new File(new URL(url).toURI());\n url = dir.getAbsolutePath();\n } catch (MalformedURLException mue) {\n url = null;\n } catch (URISyntaxException ue) {\n url = null;\n }\n return url;\n }", "title": "" }, { "docid": "3fd5b3250dc81aa3ccea5797fcd78c9a", "score": "0.54197204", "text": "public File getConfigDirectory() {\n File file = props.getFile(CONFIG_P, null);\n return (file == null) ? new File(getRootDirectory(), \"config\") : file;\n }", "title": "" }, { "docid": "36f306600e78e9f662f6fba681d1d50b", "score": "0.54170656", "text": "Directory getRootDirectory();", "title": "" }, { "docid": "564c147b661602fb6de50e12d6b42ad6", "score": "0.541142", "text": "public File getRootTempPath() {\n\t\tif (_tmpRoot == null) {\n\t\t\t_tmpRoot = new File(tempDir(), \t//directorio temporal\n\t\t\t\t\tMiscUtils.plainFileName(repositoryURL)); \t\t\t//crea un nombre dada la url del repositorio\n\t\t}\n\t\treturn returnDirectory(_tmpRoot);\n\t}", "title": "" }, { "docid": "048a23eb02ea4d7007d65c29b4f1d2ad", "score": "0.54102343", "text": "protected File getBundleFile() {\n \t\tgetGenerationDir(); /* create the generation dir if necessary */\n \n \t\treturn (file);\n \t}", "title": "" }, { "docid": "f780c1b086ced9891f4f035bd81a9cf2", "score": "0.5404056", "text": "private static File defineBaseDir()\n {\n String value;\n\n // Figure the base directory\n value = MPEEnv.getEnv(BASEDIR_PROP, DEFAULT_DIR);\n return new File(value, DEFAULT_SUBDIR);\n }", "title": "" }, { "docid": "790f9d8e29781be222057a6a85c73a75", "score": "0.53853655", "text": "@Nullable\n public File getFile() {\n if (isLocalFile()) {\n return new File(uri.getPath());\n }\n return null;\n }", "title": "" }, { "docid": "a29ab6f8075e9f4455ffed01b50a244c", "score": "0.5382067", "text": "private File getLocalStagingDir() {\n return new File(config.get(Configs.Keys.LOCAL_STAGING_DIRECTORY, Configs.Defaults.LOCAL_STAGING_DIRECTORY));\n }", "title": "" }, { "docid": "498803b30db7fc970765c8df5765374a", "score": "0.5381554", "text": "public File getResourceDir()\n {\n return resourceDir_;\n }", "title": "" }, { "docid": "6b4d8dcdc44d8fb87731470221f4fe91", "score": "0.537211", "text": "protected File getLogFile() {\n String logDirectory = JiveGlobals.getXMLProperty(\"log.directory\");\n if (logDirectory == null) {\n if (JiveGlobals.getHomeDirectory() != null) {\n File openfireHome = new File(JiveGlobals.getHomeDirectory());\n if (openfireHome.exists() && openfireHome.canWrite()) {\n logDirectory = (new File(openfireHome, \"logs\")).toString();\n }\n }\n }\n\n if (!logDirectory.endsWith(File.separator))\n logDirectory = logDirectory + File.separator;\n\n // Make sure the logs directory exists. If not, make it:\n File logDir = new File(logDirectory);\n if (!logDir.exists()) logDir.mkdir();\n \n String fileName = JiveGlobals.getProperty( LOG_FILE_PROPERTY, DEFAULT_LOG_FILE );\n return new File( logDir, fileName );\n\t}", "title": "" }, { "docid": "9d1dfd6d665a251971380943b321843a", "score": "0.5365102", "text": "public File getPathToRoot();", "title": "" }, { "docid": "cc5d9af81b2a4562de92708532061752", "score": "0.53617996", "text": "String getOutputDir();", "title": "" }, { "docid": "9bde143ab9f717823011969a05f0502e", "score": "0.5360125", "text": "File getDataFolder();", "title": "" }, { "docid": "82209ed5c8868ccede62dc3fbe3a766a", "score": "0.534939", "text": "public File getHomeDirectory()\n {\n return m_home;\n }", "title": "" }, { "docid": "bdb768d10ef4c4e3b95d3e626433a4c7", "score": "0.5347923", "text": "public String getEclipseWarFilePath(ProtectionDomain pDomain, String warFileName) {\n URL location = pDomain.getCodeSource().getLocation();\n File topEdgent = new File(location.getPath()).getParentFile().getParentFile();\n File warFile = new File(topEdgent, \"./target/java8/console/webapps/\" +warFileName);\n if (warFile.exists()) {\n \treturn warFile.getAbsolutePath();\n } else {\n \treturn \"\";\n }\n\t\n }", "title": "" }, { "docid": "a50427c362c6147e5f7cd9cb0d174736", "score": "0.53471035", "text": "public File getAuthDirectory() {\n return new File(getConfigDirectory(), \"auth\");\n }", "title": "" }, { "docid": "162a84079e8174eabfc3ce403dfb2430", "score": "0.53311294", "text": "public File getBaseDirectory()\n {\n return m_base;\n }", "title": "" }, { "docid": "30c571dbe0fff5f977d41fe7add518cc", "score": "0.53270394", "text": "public File getBuildServerRoot() {\n\t\treturn buildServerRoot;\n\t}", "title": "" }, { "docid": "1dc3e2547e1f02bbedeb1310327c10f4", "score": "0.53256875", "text": "public File getGeneratedXMLDirectory()\n {\n if(!FileUtils.safeIsDirectory(generatedXMLDirectory))\n generatedXMLDirectory = null;\n\n return generatedXMLDirectory;\n }", "title": "" }, { "docid": "d7882fc0ec87a8ec4c32a346be02a04f", "score": "0.53202164", "text": "public abstract File getGlobalBinDir();", "title": "" }, { "docid": "c7a2f0293184c38eef0abfc970d5752b", "score": "0.5317648", "text": "private File getFile(HttpServletRequest req)\n throws ServlexException\n {\n String id = req.getSession(true).getId();\n File file = null;\n try {\n file = File.createTempFile(\"servlex-\", id);\n }\n catch ( IOException ex ) {\n error(500, \"Internal Server Error\", \"Error creating a temporary dir, with ID: \" + id, ex);\n }\n return file;\n }", "title": "" }, { "docid": "8b2185eb655679f9d0cbeed606bace6e", "score": "0.5314219", "text": "public static File directory() {\n return new File(Environment.getExternalStorageDirectory(), \"Geodata\");\n }", "title": "" }, { "docid": "365e46e9bbfafea40b7b2ad265c25901", "score": "0.53090525", "text": "public String getFile() {\n // replace with your own code\n return \"\";\n }", "title": "" }, { "docid": "c80a266a9f5a27a9af4c318c143ba027", "score": "0.5303644", "text": "@NotNull\n public VirtualFile getFile() {\n return new FakeVirtualFile(ProjectUtil.guessModuleDir(myModule), \"Dummy\");\n //return myModule.getModuleFile();\n }", "title": "" }, { "docid": "8e1ce96295cf570161fdd310b787b7e4", "score": "0.5303561", "text": "public File createFile()\n {\n return new File();\n }", "title": "" }, { "docid": "6704d7a13f91134ff1e40d15af589a83", "score": "0.52982306", "text": "public File getPersistenceEventsDirectory();", "title": "" }, { "docid": "7860dc8db3f3030952d497f7c3fd9d59", "score": "0.5297943", "text": "public File getFile() throws Exception {\n URI uri = CommonUtils.toURI(getURL());\n File file;\n if (uri != null) {\n file = CommonUtils.getFile(uri, uri.toString());\n } else {\n file = CommonUtils.getFile(getURL(), null);\n }\n return file;\n }", "title": "" }, { "docid": "36c741c82e6f3e317fcc32cbe7fbdf87", "score": "0.52970016", "text": "@Override\r\n\tprotected String getRootFilesPath() {\r\n\t\treturn CloudFilesService.CLOUDFILES_BASEPATH;\r\n\t}", "title": "" }, { "docid": "77402977796a7d5f52344878d09d7830", "score": "0.52871346", "text": "public static synchronized java.io.File getApplication( String sExec, String sExtraPath )\n {\n if( sExtraPath != null && sExtraPath.length() > 0 )\n {\n sExtraPath = sExtraPath.trim();\n \n // Removes leading and trailing \"/\"\n if( sExtraPath.charAt( 0 ) == '/' )\n sExtraPath = sExtraPath.substring( 1 );\n \n if( sExtraPath.charAt( sExtraPath.length() - 1 ) == '/' )\n sExtraPath = sExtraPath.substring( 0, sExtraPath.length() - 1 );\n \n sExec = sExtraPath +'/'+ sExec;\n }\n \n return new java.io.File( Constant.getAppDir(), sExec );\n }", "title": "" }, { "docid": "685debb4b012fbc4bd0a6b288c58350d", "score": "0.5286925", "text": "public static File getBaseIntegrationPath()\n {\n File integrationJar;\n try\n {\n integrationJar = new File(ResourceUtils.class.getProtectionDomain().getCodeSource().getLocation().toURI());\n // assume integration JAR is located at build/deploy/bundle/file.jar within the project folder\n File file = new File(integrationJar, \"../../../../\").getCanonicalFile();\n assertThat(file, isDirectory());\n return file;\n }\n catch (URISyntaxException | IOException e)\n {\n throw new IllegalStateException(e);\n }\n }", "title": "" }, { "docid": "2b44af23efc85a1e297311554ec21e16", "score": "0.5281019", "text": "public Path applicationPath() {\n String path = uriInfo.getBaseUri().getPath();\n return Paths.get(path).getName(0);\n }", "title": "" }, { "docid": "4b3c8a881a242bb0f7f93728ec44f40d", "score": "0.52793366", "text": "public abstract File getAlarmDirectory(String subDirectory);", "title": "" }, { "docid": "496202dd4219a01097eb86cdd69c0cbc", "score": "0.52748674", "text": "public String getFile();", "title": "" }, { "docid": "291fd01701e0c6367726535f6ebfac1c", "score": "0.5273139", "text": "public static String getAppFolder()\r\n {\r\n return preferences.get(ID_APP_FOLDER, \"\");\r\n }", "title": "" }, { "docid": "f587f410be29bf7523370236ce70371c", "score": "0.5272661", "text": "@NotNull\n String getDirectory();", "title": "" }, { "docid": "67a72f1646f0fa11ba01abb1de2fb2b5", "score": "0.5269548", "text": "public File getFile() {\n File file = new File(filename);\n if (!file.isAbsolute()) {\n String path =\n getRelativeTo().getPath() + File.separator + filename;\n file = new File(path);\n file = resolveRelativeReferences(file);\n }\n return file;\n }", "title": "" }, { "docid": "0a0d336eff9d1b90b26a4103d4af0cf0", "score": "0.52638376", "text": "private static File getUserDir() {\n return new File(System.getProperty(\"user.dir\"));\n }", "title": "" }, { "docid": "c18ca8208e16f837e07361561162fd75", "score": "0.5257698", "text": "public static File getResource(final String relative) {\r\n return new File(Application.getHome(), relative);\r\n }", "title": "" }, { "docid": "5958ae46b49a8abdef7a1a18fd47bb95", "score": "0.52403295", "text": "public static File getEmbmsTempFileDir(Context context) {\n SharedPreferences prefs = context.getSharedPreferences(TEMP_FILE_ROOT_PREF_FILE_NAME, 0);\n String storedTempFileRoot = prefs.getString(TEMP_FILE_ROOT_PREF_NAME, null);\n try {\n if (storedTempFileRoot != null) {\n return new File(storedTempFileRoot).getCanonicalFile();\n } else {\n return new File(context.getFilesDir(),\n MbmsDownloadSession.DEFAULT_TOP_LEVEL_TEMP_DIRECTORY).getCanonicalFile();\n }\n } catch (IOException e) {\n throw new RuntimeException(\"Unable to canonicalize temp file root path \" + e);\n }\n }", "title": "" }, { "docid": "45cc0d1d4b4758fda9123263d4214131", "score": "0.5238077", "text": "protected File getBasedir() {\n if (basedir == null) {\n throw new RuntimeException(\"Your subclass have a field called 'basedir'. Remove it and use getBasedir() \" +\n \"instead.\");\n }\n\n return this.basedir;\n }", "title": "" }, { "docid": "ddf41efa6635a5188300c15c49091386", "score": "0.5235963", "text": "public static File temporaryFileDirectory() {\n\t\treturn temporaryFileDirectory;\n\t}", "title": "" }, { "docid": "f86984edfe333fa93d9c1163f27769aa", "score": "0.5219402", "text": "public static File getHomeDir() {\n \t\tString hd = System.getenv(\"SORCER_HOME\");\n \n \t\tif (hd != null && hd.length() > 0) {\n try {\n hd = new File(hd).getCanonicalPath();\n } catch (IOException io) {\n }\n \t\t\tSystem.setProperty(SORCER_HOME, hd);\n \t\t\treturn new File(hd);\n \t\t}\n \n \t\thd = System.getProperty(SORCER_HOME);\n \t\tif (hd != null && hd.length() > 0) {\n try {\n hd = new File(hd).getCanonicalPath();\n } catch (IOException io) {\n }\n \t\t\treturn new File(hd);\n \t\t}\n \n \t\thd = props.getProperty(SORCER_HOME);\n \t\tif (hd != null && hd.length() > 0) {\n try {\n hd = new File(hd).getCanonicalPath();\n } catch (IOException io) {\n }\n \t\t\treturn new File(hd);\n \t\t}\n \t\tthrow new IllegalArgumentException(hd\n \t\t\t\t+ \" is not a valid 'sorcer.home' directory\");\n \t}", "title": "" }, { "docid": "89398efc73cbc2a4a818c09d6285c335", "score": "0.52165145", "text": "public File getPersistenceActiveDirectory();", "title": "" }, { "docid": "f7e2e441948abfaedfb7faf2b146c2ba", "score": "0.52152455", "text": "public File getProjectDir() {\n\t\treturn new File(location, name + PROJECT_DIR_SUFFIX);\n\t}", "title": "" }, { "docid": "ded87b7842f34d15657215ea860d57f0", "score": "0.5201308", "text": "private File figureUserOntologyTarget() {\r\n\t\tFile webappDirectory = properties.getWebappDirectory();\r\n\t\tFile authDirectory = new File(webappDirectory,\r\n\t\t\t\t\"WEB-INF/ontologies/auth\");\r\n\r\n\t\tif (!authDirectory.exists()) {\r\n\t\t\tthrow new FatalException(\"Target directory for the test data \"\r\n\t\t\t\t\t+ \"ontology file doesn't exist. Webapp directory is '\"\r\n\t\t\t\t\t+ webappDirectory + \"', target directory is '\"\r\n\t\t\t\t\t+ authDirectory + \"'\");\r\n\t\t}\r\n\r\n\t\treturn new File(authDirectory, TEST_USER_ONTOLOGY_FILENAME);\r\n\t}", "title": "" }, { "docid": "5f90cf535f578ed9feda0a359b539eed", "score": "0.51980764", "text": "@Nullable\n File getProjectPath() {\n try {\n final VirtualFile baseDir = getProject().getBaseDir();\n if (baseDir == null) {\n return null;\n }\n\n return new File(baseDir.getPath());\n\n } catch (Exception e) {\n // IDEA 10.5.2 sometimes throws an AssertionException in project.getBaseDir()\n LOG.debug(\"Couldn't retrieve base location\", e);\n return null;\n }\n }", "title": "" }, { "docid": "ca1e9fbcb6360b0cf269745afd6bdcf6", "score": "0.5193677", "text": "public Element getDirectoryServlet()\n { \n Iterator i = getElements(ResinWebXmlTag.DIRECTORY_SERVLET);\n if (!i.hasNext())\n {\n return null;\n }\n return (Element) i.next();\n }", "title": "" }, { "docid": "965234b398995bf2092ae9b7c6259148", "score": "0.5190765", "text": "public static String documentRootPathFromInstallPath( String installPath ) {\n\n // Get the WebServerConfig.plist file\n File configPlist = new File( new String( installPath + \"/Library/WebObjects/Configuration/\" ), \"WebServerConfig.plist\" );\n NSDictionary configDict = (NSDictionary)WXFileUtilities.objectFromPListFile( configPlist );\n\n // Return the content\n return (String)configDict.objectForKey( \"DocumentRoot\" );\n }", "title": "" } ]
83073ac37d4534cd0d1dd0ccbd75f2dd
$ANTLR end "clause" $ANTLR start "head" org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:75:1: head returns [FofFormula formula] : (f= atomic | ^( EXISTS ^( VAR_LIST ( VAR_ID )+ ) f= atomic ) );
[ { "docid": "392683a42f9b48d56e664393de3ea7e4", "score": "0.72507894", "text": "public final FofFormula head() throws RecognitionException {\n FofFormula formula = null;\n\n\n FofFormula f =null;\n\n\n try {\n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:76:5: (f= atomic | ^( EXISTS ^( VAR_LIST ( VAR_ID )+ ) f= atomic ) )\n int alt12=2;\n switch ( input.LA(1) ) {\n case EQUAL:\n case PSOA:\n case SUBCLASS:\n {\n alt12=1;\n }\n break;\n case EXISTS:\n {\n alt12=2;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 12, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt12) {\n case 1 :\n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:76:9: f= atomic\n {\n pushFollow(FOLLOW_atomic_in_head364);\n f=atomic();\n\n state._fsp--;\n\n\n formula = f; \n\n }\n break;\n case 2 :\n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:77:9: ^( EXISTS ^( VAR_LIST ( VAR_ID )+ ) f= atomic )\n {\n match(input,EXISTS,FOLLOW_EXISTS_in_head377); \n\n match(input, Token.DOWN, null); \n match(input,VAR_LIST,FOLLOW_VAR_LIST_in_head380); \n\n match(input, Token.DOWN, null); \n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:77:29: ( VAR_ID )+\n int cnt11=0;\n loop11:\n do {\n int alt11=2;\n switch ( input.LA(1) ) {\n case VAR_ID:\n {\n alt11=1;\n }\n break;\n\n }\n\n switch (alt11) {\n \tcase 1 :\n \t // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:77:30: VAR_ID\n \t {\n \t match(input,VAR_ID,FOLLOW_VAR_ID_in_head383); \n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt11 >= 1 ) break loop11;\n EarlyExitException eee =\n new EarlyExitException(11, input);\n throw eee;\n }\n cnt11++;\n } while (true);\n\n\n match(input, Token.UP, null); \n\n\n pushFollow(FOLLOW_atomic_in_head390);\n f=atomic();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return formula;\n }", "title": "" } ]
[ { "docid": "2f7912461560fa33d05a49b830064569", "score": "0.656111", "text": "public final FofFormula formula() throws RecognitionException {\n FofFormula formula = null;\n\n\n try {\n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:81:5: ( ^( AND ( formula )+ ) | ^( OR ( formula )+ ) | ^( EXISTS ^( VAR_LIST ( VAR_ID )+ ) formula ) | atomic | external )\n int alt16=5;\n switch ( input.LA(1) ) {\n case AND:\n {\n alt16=1;\n }\n break;\n case OR:\n {\n alt16=2;\n }\n break;\n case EXISTS:\n {\n alt16=3;\n }\n break;\n case EQUAL:\n case PSOA:\n case SUBCLASS:\n {\n alt16=4;\n }\n break;\n case EXTERNAL:\n {\n alt16=5;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 16, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt16) {\n case 1 :\n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:81:9: ^( AND ( formula )+ )\n {\n match(input,AND,FOLLOW_AND_in_formula415); \n\n match(input, Token.DOWN, null); \n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:81:15: ( formula )+\n int cnt13=0;\n loop13:\n do {\n int alt13=2;\n switch ( input.LA(1) ) {\n case AND:\n case EQUAL:\n case EXISTS:\n case EXTERNAL:\n case OR:\n case PSOA:\n case SUBCLASS:\n {\n alt13=1;\n }\n break;\n\n }\n\n switch (alt13) {\n \tcase 1 :\n \t // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:81:15: formula\n \t {\n \t pushFollow(FOLLOW_formula_in_formula417);\n \t formula();\n\n \t state._fsp--;\n\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt13 >= 1 ) break loop13;\n EarlyExitException eee =\n new EarlyExitException(13, input);\n throw eee;\n }\n cnt13++;\n } while (true);\n\n\n match(input, Token.UP, null); \n\n\n }\n break;\n case 2 :\n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:82:9: ^( OR ( formula )+ )\n {\n match(input,OR,FOLLOW_OR_in_formula430); \n\n match(input, Token.DOWN, null); \n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:82:14: ( formula )+\n int cnt14=0;\n loop14:\n do {\n int alt14=2;\n switch ( input.LA(1) ) {\n case AND:\n case EQUAL:\n case EXISTS:\n case EXTERNAL:\n case OR:\n case PSOA:\n case SUBCLASS:\n {\n alt14=1;\n }\n break;\n\n }\n\n switch (alt14) {\n \tcase 1 :\n \t // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:82:14: formula\n \t {\n \t pushFollow(FOLLOW_formula_in_formula432);\n \t formula();\n\n \t state._fsp--;\n\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt14 >= 1 ) break loop14;\n EarlyExitException eee =\n new EarlyExitException(14, input);\n throw eee;\n }\n cnt14++;\n } while (true);\n\n\n match(input, Token.UP, null); \n\n\n }\n break;\n case 3 :\n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:83:9: ^( EXISTS ^( VAR_LIST ( VAR_ID )+ ) formula )\n {\n match(input,EXISTS,FOLLOW_EXISTS_in_formula445); \n\n match(input, Token.DOWN, null); \n match(input,VAR_LIST,FOLLOW_VAR_LIST_in_formula448); \n\n match(input, Token.DOWN, null); \n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:83:29: ( VAR_ID )+\n int cnt15=0;\n loop15:\n do {\n int alt15=2;\n switch ( input.LA(1) ) {\n case VAR_ID:\n {\n alt15=1;\n }\n break;\n\n }\n\n switch (alt15) {\n \tcase 1 :\n \t // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:83:29: VAR_ID\n \t {\n \t match(input,VAR_ID,FOLLOW_VAR_ID_in_formula450); \n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt15 >= 1 ) break loop15;\n EarlyExitException eee =\n new EarlyExitException(15, input);\n throw eee;\n }\n cnt15++;\n } while (true);\n\n\n match(input, Token.UP, null); \n\n\n pushFollow(FOLLOW_formula_in_formula454);\n formula();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n }\n break;\n case 4 :\n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:84:9: atomic\n {\n pushFollow(FOLLOW_atomic_in_formula465);\n atomic();\n\n state._fsp--;\n\n\n }\n break;\n case 5 :\n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:85:9: external\n {\n pushFollow(FOLLOW_external_in_formula475);\n external();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return formula;\n }", "title": "" }, { "docid": "9b91ba410f046f0dcc8915960229e41b", "score": "0.6530166", "text": "public final FofFormula clause() throws RecognitionException {\n FofFormula formula = null;\n\n\n FofFormula h =null;\n\n FofFormula f =null;\n\n FofFormula atomicFormula =null;\n\n\n try {\n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:71:5: ( ^( IMPLICATION h= head f= formula ) |atomicFormula= atomic )\n int alt10=2;\n switch ( input.LA(1) ) {\n case IMPLICATION:\n {\n alt10=1;\n }\n break;\n case EQUAL:\n case PSOA:\n case SUBCLASS:\n {\n alt10=2;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 10, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt10) {\n case 1 :\n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:71:9: ^( IMPLICATION h= head f= formula )\n {\n match(input,IMPLICATION,FOLLOW_IMPLICATION_in_clause310); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_head_in_clause314);\n h=head();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_formula_in_clause318);\n f=formula();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n m_generator.getImplies(h, f); \n\n }\n break;\n case 2 :\n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:72:9: atomicFormula= atomic\n {\n pushFollow(FOLLOW_atomic_in_clause333);\n atomicFormula=atomic();\n\n state._fsp--;\n\n\n formula = atomicFormula; \n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return formula;\n }", "title": "" }, { "docid": "523a3367087b621b7cada67bc7f9ed94", "score": "0.57786304", "text": "public final FofFormula rule() throws RecognitionException {\n FofFormula formula = null;\n\n\n FofFormula f =null;\n\n\n try {\n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:66:5: ( ^( FORALL ^( VAR_LIST ( VAR_ID )+ ) clause ) |f= clause )\n int alt9=2;\n switch ( input.LA(1) ) {\n case FORALL:\n {\n alt9=1;\n }\n break;\n case EQUAL:\n case IMPLICATION:\n case PSOA:\n case SUBCLASS:\n {\n alt9=2;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 9, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt9) {\n case 1 :\n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:66:9: ^( FORALL ^( VAR_LIST ( VAR_ID )+ ) clause )\n {\n match(input,FORALL,FOLLOW_FORALL_in_rule263); \n\n match(input, Token.DOWN, null); \n match(input,VAR_LIST,FOLLOW_VAR_LIST_in_rule266); \n\n match(input, Token.DOWN, null); \n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:66:29: ( VAR_ID )+\n int cnt8=0;\n loop8:\n do {\n int alt8=2;\n switch ( input.LA(1) ) {\n case VAR_ID:\n {\n alt8=1;\n }\n break;\n\n }\n\n switch (alt8) {\n \tcase 1 :\n \t // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:66:29: VAR_ID\n \t {\n \t match(input,VAR_ID,FOLLOW_VAR_ID_in_rule268); \n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt8 >= 1 ) break loop8;\n EarlyExitException eee =\n new EarlyExitException(8, input);\n throw eee;\n }\n cnt8++;\n } while (true);\n\n\n match(input, Token.UP, null); \n\n\n pushFollow(FOLLOW_clause_in_rule272);\n clause();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n \n\n }\n break;\n case 2 :\n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:67:6: f= clause\n {\n pushFollow(FOLLOW_clause_in_rule284);\n f=clause();\n\n state._fsp--;\n\n\n formula = f; \n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return formula;\n }", "title": "" }, { "docid": "9053241285ecc5fccabb6aae557286ce", "score": "0.49756682", "text": "public interface ICNF extends IFormula {\n\n\t/**\n\t * A method to be used in conjunction with nextUnitClause\n\t * to simulate an \"iterator\" over the unit clauses.\n\t * \n\t * @return boolean\n\t * @see #nextUnitClause\n\t * @throws ContradictionFoundException if a null clause is\n\t * detected during the process (NOTE: it looks like it never happens.\n\t * We need to check this out).\n\t */\n\tboolean hasUnitClause() throws ContradictionFoundException;\n\n\t/**\n\t * Pop the next unit clause and remove it from the stack\n\t * of unit clauses.\n\t *\n\t * @return IClause\n\t */\n\tIClause nextUnitClause();\n\n\t/**\n\t * Propagates the satisfaction of a literal.\n\t * Clauses containing that literal are notified\n\t * being satisfied, while clauses containing the\n\t * opposite literal are reduced.\n\t * @param l the literal being satisfied. Note that the literal \n\t * IS NOT satisfied before the method is called, while it will\n\t * be satisfied after a call to this method. That method is \n\t * responsible for satisfying the literal (it does not makes sense\n\t * to do it before calling the method, and the code is clearer like that).\n\t * \n\t * @return false iff an empty clause is detected.\n\t * @see #unpropagateAssignment(ILiteral)\n\t * @see IClause#satisfy(ILiteral)\n\t * @see IClause#reduce(ILiteral)\n\t * @see ILiteral#satisfy()\n\t */\n\tboolean propagateAssignment(ILiteral l);\n\n\t/**\n\t * Unpropagate a literal satisfaction.\n\t * Clauses containing that literal or the opposite literal are updated,\n\t * \n\t * @param l a satisfied literal. After a call to that method, the literal must be unAssigned().\n\t * @see #propagateAssignment(ILiteral)\n\t * @see IClause#unassign(ILiteral)\n\t * @see IClause#restore(ILiteral)\n\t * @see ILiteral#unassign() \n\t */\n\tvoid unpropagateAssignment(ILiteral l);\n\n\t/**\n\t * To check if a formula is really satisfied.\n\t * Iterates on all clauses to check that they are all satisfied.\n\t * This code should just be used to check that a satisfiable assignment\n\t * is really found (costly operation).\n\t * \n\t * @return true if the formula does not contain any unsatisfied clause.\n\t */\n\tboolean isSatisfied();\n\n\t/**\n\t * To obtain the vocabulary of the formula.\n\t * \n\t * @return IVocabulary\n\t */\n\tIVocabulary getVocabulary();\n\n\t/**\n\t * To add a clause to the formula in construction mode.\n\t * \n\t * @param literals\n\t */\n\tvoid addClause(List literals);\n\n\t/**\n\t * Clean up the formula in order to build a new one.\n\t * Put the formula in creation mode.\n\t */\n\tvoid beginLoadFormula();\n\n\t/**\n\t * Notify the formula that the construction is finished.\n\t * Put the formula in search mode.\n\t */\n\tvoid endLoadFormula();\n\n\t/**\n\t * Returns true if a null clause appears in the formula.\n\t * @return boolean\n\t */\n\tboolean hasNullClause();\n\n\t\n\t/**\n\t * Returns the last null (empty) clause detected in the\n\t * formula.\n\t * @return IClause\n\t */\n IClause getLastNullClause(ILiteral lit);\n\n\t/**\n\t * access to the clauses\n\t * @return Iterator iterator on the set of active clauses\n\t */\n\tIterator activeClauseIterator();\n\t\n\t/*added by Jinchuan Chen 17, June, 2014\n\t *To get the full list of clauses \n\t * */\n\tIterator fullClauseIterator();\n\t\n\t/**\n\t * Formula size in terms of active clauses.\n\t * \n\t * will return 0 as long as endLoadFormula() hasn't been called\n\t * \n\t * @return int\n\t */\n\tint size();\n\n\t/**\n\t * display this formula in Dimacs format\n\t * @param out : output stream\n\t */\n\tvoid display(PrintWriter out);\n\n\t/**\n\t * provide information concerning the maximum variable id\n\t * and the expected number of clauses in the formula.\n\t * \n\t * @see IVocabulary#setUniverse(int)\n\t */\t\n\tvoid setUniverse(int nbvars, int nbclauses);\n\t\n\tIterator getNullClauses();\n\t\n\t/**\n\t * To add a clause in the formula during search.\n\t * \n\t * @param cl the clause to add in the formula.\n\t */\n\tvoid learn(IClause cl);\n\t\n\t/**\n\t * Flush all stacks to be able to reuse the formula\n\t * for a new search (usefull for restart strategies).\n\t */\n\tvoid flush();\n\t\n\t/**\n\t * To know the size of the bigger clause.\n\t * \n\t * @return int\n\t */\n\tint maxLengthClause();\n \n IClause createClause(List i);\n \n IClause createClause(ILiteral [] lits, int size);\n \n \n \n}", "title": "" }, { "docid": "b24d410b1cc816535082ae0ab3043e09", "score": "0.49161184", "text": "public static boolean isHornSAT(Formula f){\n //way 1\n /*for (Clause c : f.getClauses()) {\n if(!HornClause.isHornClause(c))\n return false;\n }*/\n //way 2\n for (Clause clause : f.getClauses()) {\n int posCount=0;\n for (Integer l : clause.getLiterals()) {\n if(l>0){//here we have found a positive literal\n posCount++;\n }\n }\n if(posCount>1)\n return false;//the clause has more than 1 positive literal \n }//end of clauses iteration\n return true;//all clauses have excactly 1 or 0 literals\n }", "title": "" }, { "docid": "3f1a27e6dff2857d3a8073dfe4c9dd40", "score": "0.4908595", "text": "public final FofFormula atom() throws RecognitionException {\n FofFormula formula = null;\n\n\n FofFormula f =null;\n\n\n try {\n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:95:5: (f= psoa )\n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:95:9: f= psoa\n {\n pushFollow(FOLLOW_psoa_in_atom547);\n f=psoa();\n\n state._fsp--;\n\n\n formula = f; \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return formula;\n }", "title": "" }, { "docid": "31443f4b3e39f034c4c8134eab37d90c", "score": "0.48667192", "text": "private Expr iff() throws QueryException {\n if(!consumeWS(IF, PAR1, IFPAR)) return null;\n check(PAR1);\n final Expr e = check(expr(), NOIF);\n check(PAR2);\n if(!consumeWS(THEN)) error(NOIF);\n final Expr thn = check(single(), NOIF);\n if(!consumeWS(ELSE)) error(NOIF);\n final Expr els = check(single(), NOIF);\n return new If(input(), e, thn, els);\n }", "title": "" }, { "docid": "571590ff7c34cbee3cd0585067d7595c", "score": "0.48318326", "text": "public Formula(ArrayList<Clause> clauses) {\n this.clauses = clauses;\n }", "title": "" }, { "docid": "6988247c4aa2759b5a69b2ebdebb6214", "score": "0.4722136", "text": "public static boolean Pl_Horn(CNFClause KB, Literal a){\n\n\t\tCNFClause clauses =new CNFClause();// a CNFClause that contains all the clauses of our Knowledge Base\n\t\tclauses.getSubclauses().addAll(KB.getSubclauses());\n\t\t//a Dictionary indexed by subclause that contains how many literals each subclause needs so that the literal that is not negated can be concluded\n\t\tHashtable<CNFSubClause,Integer> count = new Hashtable<CNFSubClause,Integer>();\n\t\t//a Dictionary indexed by the name of the literal that shows which literal where inferred (initially all false)\n\t\tHashtable<String,Boolean> inferred = new Hashtable<String,Boolean>();\n\t\t//a list with literal that are known to be true (facts)\n\t\tHashSet<Literal> agenda = new HashSet<Literal>();\n\n\t\tfor(int i=0; i<clauses.size(); i++){\n\n\t\t\tif(clauses.get(i).size()==1){//if sub clause size is 1 then its a fact\n\t\t\t\tagenda.addAll(clauses.get(i).getLiterals());//add the fact to the agenda\n\t\t\t\tLiteral fin=clauses.get(i).getLiteralsList().next();\n\t\t\t\t\n\t\t\t\tif(fin.getName().equals(a.getName())){\n\t\t\t\t\tSystem.out.println(\"Facts can always be concluded\");\n\t\t\t\t\tSystem.out.println(fin.getName()+\" is a fact\");\n\t\t\t\t\tSystem.out.println(\"**************************\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}else{//if not a fact\n\t\t\t\tint c=0;\n\t\t\t\tboolean exists=false;\n\t\t\t\tIterator<Literal> iter = clauses.get(i).getLiteralsList();//iterator for the literals of the subclause \"i\"\n\n\t\t\t\twhile(iter.hasNext()){//while there are more literals\n\t\t\t\t\tEnumeration<String> f=inferred.keys();//enumerator for the keys of the inferred dictionary\n\t\t\t\t\tLiteral l = iter.next();\n\t\t\t\t\tif(l.getNegation()){//if the literal is on the left side of the sentence(its negated) \n\t\t\t\t\t\tc++;\n\t\t\t\t\t}\n\t\t\t\t\tfor(int j=0; j<inferred.size(); j++){//for all the different literals\n\t\t\t\t\t\tif(f.nextElement().equals(l.getName())){//if that literal is already in the in dictionary\n\t\t\t\t\t\t\texists=true;\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\tif(!exists){//if the literal is not in the dictionary with the literals that need to be inferred\n\t\t\t\t\t\tinferred.put(l.getName(),false);//add it\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tcount.put(clauses.get(i),c);//add to the count the number of the negated literals of the subclause\n\t\t\t}\n\t\t}\n\n\t\twhile(!agenda.isEmpty()){\n\n\t\t\tIterator<Literal> agenda_iterator= agenda.iterator(); \n\n\t\t\twhile(agenda_iterator.hasNext()){\n\n\t\t\t\tLiteral agenda_literal = agenda_iterator.next();//get a literal from the agenda\n\t\t\t\tagenda_iterator.remove();//remove the literal of the agenda\n\n\t\t\t\tSystem.out.println(\"Poped : \"+agenda_literal.getName());\n\n\n\t\t\t\tif(!inferred.get(agenda_literal.getName())){//if its not inferred\n\n\t\t\t\t\tSystem.out.println(\"Conluding : \"+agenda_literal.getName());\n\t\t\t\t\tinferred.put(agenda_literal.getName(),true);//make its value in the dictionary true\n\n\n\n\t\t\t\t\tEnumeration<CNFSubClause> keys=count.keys();//enumerates the subclauses of the dictionary count\n\t\t\t\t\tfor(int i=0; i<count.size(); i++){ //for each <key,value> pair in count\n\n\t\t\t\t\t\tCNFSubClause sub_clause=keys.nextElement();//get a sublcause \n\t\t\t\t\t\tIterator<Literal> literal_iterator= sub_clause.getLiteralsList();//iterates through the literals of the subclause\n\t\t\t\t\t\tLiteral positive=new Literal(\"-1\",false);//literal for the not negated part of the subclause\n\n\t\t\t\t\t\twhile(literal_iterator.hasNext()){//while the subclause has more literals\n\n\t\t\t\t\t\t\tLiteral sub_clause_literal = literal_iterator.next();//get a literal\n\n\t\t\t\t\t\t\tif(sub_clause_literal.getNegation()){//if the literal is negated\n\n\t\t\t\t\t\t\t\tif(sub_clause_literal.getName().equals(agenda_literal.getName())){//if the literal that we took from the agenda exists in the subclause\n\t\t\t\t\t\t\t\t\tcount.put(sub_clause,count.get(sub_clause)-1);//reduce the number of literals needed to conclude the sentence\n\n\t\t\t\t\t\t\t\t\tif(!positive.getName().equals(\"-1\")){//if we have found the literal that is not negated\n\t\t\t\t\t\t\t\t\t\tif(count.get(sub_clause)==0){//if we can conclude the sentence \n\n\t\t\t\t\t\t\t\t\t\t\tif(positive.getName().equals(a.getName())){//if the non-negated literal of the sentence is the one we want to conclude\n\t\t\t\t\t\t\t\t\t\t\t\tprint_tree(count);\n\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"**************************\");\n\t\t\t\t\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse{//if its not the one we want to conclude\n\t\t\t\t\t\t\t\t\t\t\t\tif(!inferred.get(positive.getName())){//if its not inferred\n\t\t\t\t\t\t\t\t\t\t\t\t\tagenda.add(positive);//add it to the agenda\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\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}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}else{//if the literal is not negated (positive)\n\t\t\t\t\t\t\t\tpositive=sub_clause_literal;\n\t\t\t\t\t\t\t\tif(count.get(sub_clause)==0){//if we can conclude the sentence \n\n\t\t\t\t\t\t\t\t\tif(sub_clause_literal.getName().equals(a.getName())){//if the non-negated literal of the sentence is the one we want to conclude\n\t\t\t\t\t\t\t\t\t\tprint_tree(count);\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"**************************\");\n\t\t\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\tif(!inferred.get(positive.getName())){//if its not inferred\n\t\t\t\t\t\t\t\t\t\t\tagenda.add(positive);//add it to the agenda\n\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}\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tprint_tree(count);\n\t\t\t\t\tSystem.out.println(\"**************************\");\n\n\t\t\t\t}else{//if the literal has been inferred\n\t\t\t\t\tSystem.out.println(\"Already concluded : \"+agenda_literal.getName());\t\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"**************************\");\n\t\treturn false;\n\t}", "title": "" }, { "docid": "acfcaf3500dc8509412f76de7935b23c", "score": "0.4678918", "text": "void addClause(List literals);", "title": "" }, { "docid": "49f138ac4d87b5864d2eb7379d68ea57", "score": "0.46412787", "text": "public final Term term() throws RecognitionException {\n Term t = null;\n\n\n CommonTree VAR_ID1=null;\n Term c =null;\n\n FofFormula p =null;\n\n\n try {\n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:107:5: (c= constant | VAR_ID |p= psoa | external )\n int alt18=4;\n switch ( input.LA(1) ) {\n case LITERAL:\n case SHORTCONST:\n case TOP:\n {\n alt18=1;\n }\n break;\n case VAR_ID:\n {\n alt18=2;\n }\n break;\n case PSOA:\n {\n alt18=3;\n }\n break;\n case EXTERNAL:\n {\n alt18=4;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 18, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt18) {\n case 1 :\n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:107:9: c= constant\n {\n pushFollow(FOLLOW_constant_in_term628);\n c=constant();\n\n state._fsp--;\n\n\n t = c; \n\n }\n break;\n case 2 :\n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:108:9: VAR_ID\n {\n VAR_ID1=(CommonTree)match(input,VAR_ID,FOLLOW_VAR_ID_in_term640); \n\n t = m_generator.getVariable((VAR_ID1!=null?VAR_ID1.getText():null)); \n\n }\n break;\n case 3 :\n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:109:9: p= psoa\n {\n pushFollow(FOLLOW_psoa_in_term654);\n p=psoa();\n\n state._fsp--;\n\n\n }\n break;\n case 4 :\n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:110:9: external\n {\n pushFollow(FOLLOW_external_in_term664);\n external();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return t;\n }", "title": "" }, { "docid": "acac237f471a8fe6ffd737fe4f357dd9", "score": "0.4623049", "text": "public final FofFormula atomic() throws RecognitionException {\n FofFormula formula = null;\n\n\n FofFormula f =null;\n\n\n try {\n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:89:5: (f= atom | equal | subclass )\n int alt17=3;\n switch ( input.LA(1) ) {\n case PSOA:\n {\n alt17=1;\n }\n break;\n case EQUAL:\n {\n alt17=2;\n }\n break;\n case SUBCLASS:\n {\n alt17=3;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 17, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt17) {\n case 1 :\n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:89:9: f= atom\n {\n pushFollow(FOLLOW_atom_in_atomic500);\n f=atom();\n\n state._fsp--;\n\n\n formula = f; \n\n }\n break;\n case 2 :\n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:90:9: equal\n {\n pushFollow(FOLLOW_equal_in_atomic512);\n equal();\n\n state._fsp--;\n\n\n }\n break;\n case 3 :\n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:91:9: subclass\n {\n pushFollow(FOLLOW_subclass_in_atomic522);\n subclass();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return formula;\n }", "title": "" }, { "docid": "1740a2fa1023304cb57a667a1e4be59f", "score": "0.46203724", "text": "@Test\r\n public void testFormulaHasResult() throws Exception{\r\n assertEquals(\"true\",\r\n render(\"${formulaHasResult(var1)?c}\",\r\n avBuilder\r\n .addFormulaAv(1, \"2 + 2\")));\r\n \r\n assertEquals(\"false\",\r\n render(\"${formulaHasResult(var2)?c}\",\r\n avBuilder\r\n .addFormulaAv(3, \"[100]\")));\r\n }", "title": "" }, { "docid": "93db6d305d2b4213dcd0a76a323ea799", "score": "0.45916393", "text": "Clause createClause();", "title": "" }, { "docid": "93a5a97b0b00a42d772d850572cd745a", "score": "0.45492303", "text": "private boolean FuncHead(Record record){\r\n\t\t\r\n\t\tboolean success = skipErrors(nt.FuncHead);\r\n\t\t\r\n\t\tif (lookAhead.inRHS1(nt.FuncHead)){\r\n\t\t\t\r\n\t\t\tboolean b1 = Type(new Type());\r\n\t\t\tfunctionReturn.setType(lookBehind.getLexeme());\r\n\t\t\t\r\n\t\t\tboolean b2 = match(\"id\");\r\n\t\t\trecord.setName(lookBehind.getLexeme());\r\n\t\t\tfunctionName = lookBehind.getLexeme();\r\n\t\t\t\r\n\t\t\trecord.setStructure(\"function\");\r\n\t\t\t\r\n\t\t\tboolean b3 = match(\"openpar\");\r\n\t\t\tboolean b4 = FParams(record);\r\n\t\t\tboolean b5 = match(\"closepar\");\r\n\t\t\t\r\n\t\t\tif (b1 && b2 && b3 && b4 && b5)\r\n\t\t\t{\r\n\t\t\t\tparseInfo += \"*FuncHead -> Type id ( FParams )\" + \"\\r\\n\";\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tsuccess = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsuccess = false;\r\n\t\t}\r\n\t\treturn success;\r\n\t}", "title": "" }, { "docid": "5d0480e40c112f7fb410f3fad7f3d7b7", "score": "0.45261613", "text": "<R> R accept(FormulaVisitor<R> visitor);", "title": "" }, { "docid": "0e193ec82d6e59650028ea4c9be67ced", "score": "0.4517746", "text": "public Leaf evalF(Node[] args , ZEvaler evaler , Namespace nsp , Namespace gnsp)\n {\n\tif (args.length > 1) {\n\t System.out.println(\"Error: atom only takes one argument, \" + args.length + \" given\");\n\t System.exit(1);\n\t}\n\n\tLeaf arg0 = evaler.evalNode(args[0], nsp, gnsp);\n\n\tif ( arg0 == null ) {\n\t System.out.println(\"Error: atom received null argument\");\n\t System.exit(1);\n\t}\n\n\tif ( arg0.isAtomic() ) {\n\t return new ASTBool(\"T\");\n\t}\n\n\telse {\n\t return new ASTBool(\"NIL\");\n\t}\n }", "title": "" }, { "docid": "9c6d25c845c4b90dd9f48722b66d8097", "score": "0.45116675", "text": "public final ASTInterpreter.expr_return expr() throws RecognitionException {\n ASTInterpreter.expr_return retval = new ASTInterpreter.expr_return();\n retval.start = input.LT(1);\n \n CommonTree CONST_STR38=null;\n CommonTree CONST_INT39=null;\n CommonTree CONST_REAL40=null;\n CommonTree ID41=null;\n CommonTree ID42=null;\n CommonTree ID44=null;\n ASTInterpreter.expr_return a = null;\n \n ASTInterpreter.expr_return b = null;\n \n List<Integer> arraySubscript43 = null;\n \n List<Object> paramsList45 = null;\n \n \n try {\n // src/glossa/grammars/ASTInterpreter.g:754:2: ( ^( AND a= expr b= expr ) | ^( OR a= expr b= expr ) | ^( EQ a= expr b= expr ) | ^( NEQ a= expr b= expr ) | ^( LT a= expr b= expr ) | ^( LE a= expr b= expr ) | ^( GT a= expr b= expr ) | ^( GE a= expr b= expr ) | ^( PLUS a= expr b= expr ) | ^( MINUS a= expr b= expr ) | ^( TIMES a= expr b= expr ) | ^( DIA a= expr b= expr ) | ^( DIV a= expr b= expr ) | ^( MOD a= expr b= expr ) | ^( POW a= expr b= expr ) | ^( NEG a= expr ) | ^( NOT a= expr ) | CONST_TRUE | CONST_FALSE | CONST_STR | CONST_INT | CONST_REAL | ID | ^( ARRAY_ITEM ID arraySubscript[arr] ) | ^( FUNC_CALL ID paramsList ) )\n int alt22=25;\n switch ( input.LA(1) ) {\n case AND:\n {\n alt22=1;\n }\n break;\n case OR:\n {\n alt22=2;\n }\n break;\n case EQ:\n {\n alt22=3;\n }\n break;\n case NEQ:\n {\n alt22=4;\n }\n break;\n case LT:\n {\n alt22=5;\n }\n break;\n case LE:\n {\n alt22=6;\n }\n break;\n case GT:\n {\n alt22=7;\n }\n break;\n case GE:\n {\n alt22=8;\n }\n break;\n case PLUS:\n {\n alt22=9;\n }\n break;\n case MINUS:\n {\n alt22=10;\n }\n break;\n case TIMES:\n {\n alt22=11;\n }\n break;\n case DIA:\n {\n alt22=12;\n }\n break;\n case DIV:\n {\n alt22=13;\n }\n break;\n case MOD:\n {\n alt22=14;\n }\n break;\n case POW:\n {\n alt22=15;\n }\n break;\n case NEG:\n {\n alt22=16;\n }\n break;\n case NOT:\n {\n alt22=17;\n }\n break;\n case CONST_TRUE:\n {\n alt22=18;\n }\n break;\n case CONST_FALSE:\n {\n alt22=19;\n }\n break;\n case CONST_STR:\n {\n alt22=20;\n }\n break;\n case CONST_INT:\n {\n alt22=21;\n }\n break;\n case CONST_REAL:\n {\n alt22=22;\n }\n break;\n case ID:\n {\n alt22=23;\n }\n break;\n case ARRAY_ITEM:\n {\n alt22=24;\n }\n break;\n case FUNC_CALL:\n {\n alt22=25;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 22, 0, input);\n \n throw nvae;\n }\n \n switch (alt22) {\n case 1 :\n // src/glossa/grammars/ASTInterpreter.g:754:4: ^( AND a= expr b= expr )\n {\n match(input,AND,FOLLOW_AND_in_expr2713); \n \n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expr_in_expr2717);\n a=expr();\n \n state._fsp--;\n \n pushFollow(FOLLOW_expr_in_expr2723);\n b=expr();\n \n state._fsp--;\n \n \n match(input, Token.UP, null); \n retval.result = InterpreterUtils.and((a!=null?a.result:null), (b!=null?b.result:null)); retval.resultForParam = retval.result;\n \n }\n break;\n case 2 :\n // src/glossa/grammars/ASTInterpreter.g:755:4: ^( OR a= expr b= expr )\n {\n match(input,OR,FOLLOW_OR_in_expr2734); \n \n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expr_in_expr2738);\n a=expr();\n \n state._fsp--;\n \n pushFollow(FOLLOW_expr_in_expr2744);\n b=expr();\n \n state._fsp--;\n \n \n match(input, Token.UP, null); \n retval.result = InterpreterUtils.or((a!=null?a.result:null), (b!=null?b.result:null)); retval.resultForParam = retval.result;\n \n }\n break;\n case 3 :\n // src/glossa/grammars/ASTInterpreter.g:756:4: ^( EQ a= expr b= expr )\n {\n match(input,EQ,FOLLOW_EQ_in_expr2755); \n \n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expr_in_expr2759);\n a=expr();\n \n state._fsp--;\n \n pushFollow(FOLLOW_expr_in_expr2765);\n b=expr();\n \n state._fsp--;\n \n \n match(input, Token.UP, null); \n retval.result = InterpreterUtils.equals((a!=null?a.result:null), (b!=null?b.result:null)); retval.resultForParam = retval.result;\n \n }\n break;\n case 4 :\n // src/glossa/grammars/ASTInterpreter.g:757:4: ^( NEQ a= expr b= expr )\n {\n match(input,NEQ,FOLLOW_NEQ_in_expr2776); \n \n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expr_in_expr2780);\n a=expr();\n \n state._fsp--;\n \n pushFollow(FOLLOW_expr_in_expr2786);\n b=expr();\n \n state._fsp--;\n \n \n match(input, Token.UP, null); \n retval.result = InterpreterUtils.notEquals((a!=null?a.result:null), (b!=null?b.result:null)); retval.resultForParam = retval.result;\n \n }\n break;\n case 5 :\n // src/glossa/grammars/ASTInterpreter.g:758:4: ^( LT a= expr b= expr )\n {\n match(input,LT,FOLLOW_LT_in_expr2797); \n \n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expr_in_expr2801);\n a=expr();\n \n state._fsp--;\n \n pushFollow(FOLLOW_expr_in_expr2807);\n b=expr();\n \n state._fsp--;\n \n \n match(input, Token.UP, null); \n retval.result = InterpreterUtils.lowerThan((a!=null?a.result:null), (b!=null?b.result:null)); retval.resultForParam = retval.result;\n \n }\n break;\n case 6 :\n // src/glossa/grammars/ASTInterpreter.g:759:4: ^( LE a= expr b= expr )\n {\n match(input,LE,FOLLOW_LE_in_expr2818); \n \n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expr_in_expr2822);\n a=expr();\n \n state._fsp--;\n \n pushFollow(FOLLOW_expr_in_expr2828);\n b=expr();\n \n state._fsp--;\n \n \n match(input, Token.UP, null); \n retval.result = InterpreterUtils.lowerThanOrEqual((a!=null?a.result:null), (b!=null?b.result:null)); retval.resultForParam = retval.result;\n \n }\n break;\n case 7 :\n // src/glossa/grammars/ASTInterpreter.g:760:4: ^( GT a= expr b= expr )\n {\n match(input,GT,FOLLOW_GT_in_expr2839); \n \n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expr_in_expr2843);\n a=expr();\n \n state._fsp--;\n \n pushFollow(FOLLOW_expr_in_expr2849);\n b=expr();\n \n state._fsp--;\n \n \n match(input, Token.UP, null); \n retval.result = InterpreterUtils.greaterThan((a!=null?a.result:null), (b!=null?b.result:null)); retval.resultForParam = retval.result;\n \n }\n break;\n case 8 :\n // src/glossa/grammars/ASTInterpreter.g:761:4: ^( GE a= expr b= expr )\n {\n match(input,GE,FOLLOW_GE_in_expr2860); \n \n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expr_in_expr2864);\n a=expr();\n \n state._fsp--;\n \n pushFollow(FOLLOW_expr_in_expr2870);\n b=expr();\n \n state._fsp--;\n \n \n match(input, Token.UP, null); \n retval.result = InterpreterUtils.greaterThanOrEqual((a!=null?a.result:null), (b!=null?b.result:null)); retval.resultForParam = retval.result;\n \n }\n break;\n case 9 :\n // src/glossa/grammars/ASTInterpreter.g:762:4: ^( PLUS a= expr b= expr )\n {\n match(input,PLUS,FOLLOW_PLUS_in_expr2881); \n \n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expr_in_expr2885);\n a=expr();\n \n state._fsp--;\n \n pushFollow(FOLLOW_expr_in_expr2891);\n b=expr();\n \n state._fsp--;\n \n \n match(input, Token.UP, null); \n retval.result = InterpreterUtils.add((a!=null?a.result:null), (b!=null?b.result:null)); retval.resultForParam = retval.result;\n \n }\n break;\n case 10 :\n // src/glossa/grammars/ASTInterpreter.g:763:4: ^( MINUS a= expr b= expr )\n {\n match(input,MINUS,FOLLOW_MINUS_in_expr2902); \n \n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expr_in_expr2906);\n a=expr();\n \n state._fsp--;\n \n pushFollow(FOLLOW_expr_in_expr2912);\n b=expr();\n \n state._fsp--;\n \n \n match(input, Token.UP, null); \n retval.result = InterpreterUtils.subtract((a!=null?a.result:null), (b!=null?b.result:null)); retval.resultForParam = retval.result;\n \n }\n break;\n case 11 :\n // src/glossa/grammars/ASTInterpreter.g:764:4: ^( TIMES a= expr b= expr )\n {\n match(input,TIMES,FOLLOW_TIMES_in_expr2923); \n \n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expr_in_expr2927);\n a=expr();\n \n state._fsp--;\n \n pushFollow(FOLLOW_expr_in_expr2933);\n b=expr();\n \n state._fsp--;\n \n \n match(input, Token.UP, null); \n retval.result = InterpreterUtils.multiply((a!=null?a.result:null), (b!=null?b.result:null)); retval.resultForParam = retval.result;\n \n }\n break;\n case 12 :\n // src/glossa/grammars/ASTInterpreter.g:765:11: ^( DIA a= expr b= expr )\n {\n match(input,DIA,FOLLOW_DIA_in_expr2951); \n \n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expr_in_expr2955);\n a=expr();\n \n state._fsp--;\n \n pushFollow(FOLLOW_expr_in_expr2961);\n b=expr();\n \n state._fsp--;\n \n \n match(input, Token.UP, null); \n retval.result = InterpreterUtils.divide((a!=null?a.result:null), (b!=null?b.result:null)); retval.resultForParam = retval.result;\n \n }\n break;\n case 13 :\n // src/glossa/grammars/ASTInterpreter.g:766:11: ^( DIV a= expr b= expr )\n {\n match(input,DIV,FOLLOW_DIV_in_expr2979); \n \n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expr_in_expr2983);\n a=expr();\n \n state._fsp--;\n \n pushFollow(FOLLOW_expr_in_expr2989);\n b=expr();\n \n state._fsp--;\n \n \n match(input, Token.UP, null); \n retval.result = InterpreterUtils.intDivide((a!=null?a.result:null), (b!=null?b.result:null)); retval.resultForParam = retval.result;\n \n }\n break;\n case 14 :\n // src/glossa/grammars/ASTInterpreter.g:767:4: ^( MOD a= expr b= expr )\n {\n match(input,MOD,FOLLOW_MOD_in_expr3000); \n \n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expr_in_expr3004);\n a=expr();\n \n state._fsp--;\n \n pushFollow(FOLLOW_expr_in_expr3010);\n b=expr();\n \n state._fsp--;\n \n \n match(input, Token.UP, null); \n retval.result = InterpreterUtils.intMod((a!=null?a.result:null), (b!=null?b.result:null)); retval.resultForParam = retval.result;\n \n }\n break;\n case 15 :\n // src/glossa/grammars/ASTInterpreter.g:768:4: ^( POW a= expr b= expr )\n {\n match(input,POW,FOLLOW_POW_in_expr3021); \n \n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expr_in_expr3025);\n a=expr();\n \n state._fsp--;\n \n pushFollow(FOLLOW_expr_in_expr3031);\n b=expr();\n \n state._fsp--;\n \n \n match(input, Token.UP, null); \n retval.result = InterpreterUtils.pow((a!=null?a.result:null), (b!=null?b.result:null)); retval.resultForParam = retval.result;\n \n }\n break;\n case 16 :\n // src/glossa/grammars/ASTInterpreter.g:769:4: ^( NEG a= expr )\n {\n match(input,NEG,FOLLOW_NEG_in_expr3042); \n \n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expr_in_expr3046);\n a=expr();\n \n state._fsp--;\n \n \n match(input, Token.UP, null); \n retval.result = InterpreterUtils.negate((a!=null?a.result:null)); retval.resultForParam = retval.result;\n \n }\n break;\n case 17 :\n // src/glossa/grammars/ASTInterpreter.g:770:4: ^( NOT a= expr )\n {\n match(input,NOT,FOLLOW_NOT_in_expr3067); \n \n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expr_in_expr3071);\n a=expr();\n \n state._fsp--;\n \n \n match(input, Token.UP, null); \n retval.result = InterpreterUtils.not((a!=null?a.result:null)); retval.resultForParam = retval.result;\n \n }\n break;\n case 18 :\n // src/glossa/grammars/ASTInterpreter.g:771:4: CONST_TRUE\n {\n match(input,CONST_TRUE,FOLLOW_CONST_TRUE_in_expr3091); \n retval.result = Boolean.valueOf(true); retval.resultForParam = retval.result;\n \n }\n break;\n case 19 :\n // src/glossa/grammars/ASTInterpreter.g:772:4: CONST_FALSE\n {\n match(input,CONST_FALSE,FOLLOW_CONST_FALSE_in_expr3115); \n retval.result = Boolean.valueOf(false); retval.resultForParam = retval.result;\n \n }\n break;\n case 20 :\n // src/glossa/grammars/ASTInterpreter.g:773:4: CONST_STR\n {\n CONST_STR38=(CommonTree)match(input,CONST_STR,FOLLOW_CONST_STR_in_expr3138); \n retval.result = new String((CONST_STR38!=null?CONST_STR38.getText():null)); retval.resultForParam = retval.result;\n \n }\n break;\n case 21 :\n // src/glossa/grammars/ASTInterpreter.g:774:4: CONST_INT\n {\n CONST_INT39=(CommonTree)match(input,CONST_INT,FOLLOW_CONST_INT_in_expr3163); \n retval.result = new BigInteger((CONST_INT39!=null?CONST_INT39.getText():null)); retval.resultForParam = retval.result;\n \n }\n break;\n case 22 :\n // src/glossa/grammars/ASTInterpreter.g:775:4: CONST_REAL\n {\n CONST_REAL40=(CommonTree)match(input,CONST_REAL,FOLLOW_CONST_REAL_in_expr3188); \n retval.result = new BigDecimal((CONST_REAL40!=null?CONST_REAL40.getText():null), InterpreterUtils.getMathContext()); retval.resultForParam = retval.result;\n \n }\n break;\n case 23 :\n // src/glossa/grammars/ASTInterpreter.g:776:4: ID\n {\n ID41=(CommonTree)match(input,ID,FOLLOW_ID_in_expr3212); \n \n RuntimeSymbol s = (RuntimeSymbol)this.currentSymbolTable.referenceSymbol((ID41!=null?ID41.getText():null), new Point((ID41!=null?ID41.getLine():0), (ID41!=null?ID41.getCharPositionInLine():0)));\n if(s instanceof RuntimeSimpleSymbol){\n retval.result = ((RuntimeSimpleSymbol)s).getValue();\n }\n retval.resultForParam = s;\n \n \n }\n break;\n case 24 :\n // src/glossa/grammars/ASTInterpreter.g:783:4: ^( ARRAY_ITEM ID arraySubscript[arr] )\n {\n match(input,ARRAY_ITEM,FOLLOW_ARRAY_ITEM_in_expr3266); \n \n match(input, Token.DOWN, null); \n ID42=(CommonTree)match(input,ID,FOLLOW_ID_in_expr3288); \n \n RuntimeArray arr = (RuntimeArray)this.currentSymbolTable.referenceSymbol((ID42!=null?ID42.getText():null), new Point((ID42!=null?ID42.getLine():0), (ID42!=null?ID42.getCharPositionInLine():0)));\n \n pushFollow(FOLLOW_arraySubscript_in_expr3333);\n arraySubscript43=arraySubscript(arr);\n \n state._fsp--;\n \n \n retval.result = arr.get(arraySubscript43);\n retval.resultForParam = new RuntimeArrayItemWrapper(arr, arraySubscript43);\n \n \n match(input, Token.UP, null); \n \n }\n break;\n case 25 :\n // src/glossa/grammars/ASTInterpreter.g:794:17: ^( FUNC_CALL ID paramsList )\n {\n match(input,FUNC_CALL,FOLLOW_FUNC_CALL_in_expr3418); \n \n match(input, Token.DOWN, null); \n ID44=(CommonTree)match(input,ID,FOLLOW_ID_in_expr3420); \n pushFollow(FOLLOW_paramsList_in_expr3422);\n paramsList45=paramsList();\n \n state._fsp--;\n \n \n match(input, Token.UP, null); \n \n if(BuiltinFunctions.isBuiltinFunctionName((ID44!=null?ID44.getText():null))){\n retval.result = InterpreterUtils.execBuiltinFunction((ID44!=null?ID44.getText():null), paramsList45.get(0));\n }else{\n FunctionScope fs = scopeTable.getFunctionScope((ID44!=null?ID44.getText():null));\n if(fs!=null){\n FunctionSymbolTable fst = new FunctionSymbolTable(fs, paramsList45);\n this.stack.push(fst);\n this.currentSymbolTable = fst;\n notifyListeners(STACK_PUSHED, fst);\n \n int resumeAt = input.index();\n input.seek(fst.getIndex());\n function(true);\n \n this.stack.pop();\n this.currentSymbolTable = this.stack.peek();\n notifyListeners(STACK_POPPED);\n retval.result = fst.getReturnValue();\n input.seek(resumeAt);\n }else{\n throw new RuntimeException(String.format(RuntimeMessages.STR_RUNTIME_ERROR_CALL_TO_UNNKOWN_FUNCTION, (ID44!=null?ID44.getText():null)));\n }\n }\n retval.resultForParam = retval.result;\n \n \n }\n break;\n \n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return retval;\n }", "title": "" }, { "docid": "7ca7dafa2e4468fdace5b76dd6befc7a", "score": "0.45033485", "text": "ETExpression getElse();", "title": "" }, { "docid": "74e234825ee4e29e67011186f19b5e86", "score": "0.44650277", "text": "@Override\n\tpublic Set<IVariable> getHeadVariables(final IPosition p) {\n\t\tfinal Set<IVariable> vars = new HashSet<IVariable>();\n\n\t\tfor (final ILiteral l : getHead()) {\n\t\t\tint i = 0;\n\t\t\tfor (final ITerm t : l.getAtom().getTuple()) {\n\t\t\t\ti++;\n\t\t\t\tfinal IPosition cmp = new Position(l.getAtom().getPredicate().getPredicateSymbol(), i);\n\t\t\t\tif (cmp.equals(p) && (t instanceof IVariable)) {\n\t\t\t\t\tvars.add((IVariable) t);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn (vars);\n\t}", "title": "" }, { "docid": "631847df7cde693fbfcdc30a222ab323", "score": "0.4459582", "text": "@Override\n\t\tpublic Value linearizeExpr(List<Tree> args, Value.Reg target, DataScope targetScope, DataScope currentScope, Program program) throws CompileException {\n\n\t\t\tif(args.size() == 3) {\n\t\t\t\tTree cond = args.get(0);\n\t\t\t\tTree thenPart = args.get(1);\n\t\t\t\tTree elsePart = args.get(2);\n\n\t\t\t\tValue.Label trueLabel = new Value.Label(); // label for condition\n\t\t\t\tValue.Label falseLabel = new Value.Label(); // label for condition\n\t\t\t\tValue.Label thenAssignmentLabel = new Value.Label(); // label for condition\n\t\t\t\tValue.Label endLabel = new Value.Label();\n\n\t\t\t\tcond.linearizeBool(trueLabel, falseLabel, currentScope, program);\n\n\t\t\t\tprogram.addLabel(trueLabel);\n\n\t\t\t\t// FIXME Check the next lines!\n\t\t\t\t// FIXME Again, do it.\n\n\t\t\t\tValue thenValue = null;\n\t\t\t\tValue elseValue = null;\n\n\t\t\t\tif(target != null && target.type() != null) {\n\t\t\t\t\t// if we know the type, we can use it right away\n\t\t\t\t\tthenValue = elseValue = target;\n\t\t\t\t}\n\n\t\t\t\tthenValue = thenPart.linearizeExpr(target != null && target.type() != null ? target : null, null, currentScope.newScope(), program);\n\n\t\t\t\t__jump.addToProgram(Collections.singletonList(thenAssignmentLabel), null, program);\n\n\t\t\t\tprogram.addLabel(falseLabel);\n\n\t\t\t\telseValue = elsePart.linearizeExpr(target != null && target.type() != null ? target : null, null, currentScope.newScope(), program);\n\n\t\t\t\tif(target == null) {\n\t\t\t\t\ttarget = new Value.Reg(targetScope == null ? currentScope : targetScope, \"$$\");\n\t\t\t\t}\n\n\t\t\t\tif(target.type() == null) {\n\t\t\t\t\t// determine maximum type\n\t\t\t\t\tif(thenValue.type().canConvertTo(elseValue.type())) {\n\t\t\t\t\t\ttarget.initType(elseValue.type());\n\t\t\t\t\t} else if(elseValue.type().canConvertTo(thenValue.type())) {\n\t\t\t\t\t\ttarget.initType(thenValue.type());\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow new CompileException(\"if-expr with incompatible types\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif(elseValue != target) { // this also means that thenTarget != target\n\t\t\t\t\tOp.mov.addToProgram(Arrays.asList(elseValue, target), currentScope, program);\n\t\t\t\t\tOp.__jump.addToProgram(Collections.singletonList(endLabel), null, program);\n\t\t\t\t\t// no need to jump if the then-assignment does not need any assignment.\n\t\t\t\t}\n\n\t\t\t\tprogram.addLabel(thenAssignmentLabel);\n\n\t\t\t\tif(thenValue != target) { // and elseValue != target\n\t\t\t\t\tOp.mov.addToProgram(Arrays.asList(thenValue, target), currentScope, program);\n\t\t\t\t}\n\n\t\t\t\tprogram.addLabel(endLabel);\n\n\t\t\t\treturn target;\n\t\t\t} else {\n\t\t\t\tthrow new CompileException(\"ifOp as expression must have three arguments!\");\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "d2f9743046e0b6310b7f2de5a7cc32bb", "score": "0.44493082", "text": "public R visit(LHS n) {\n R _ret=null;\n n.f0.accept(this);\n return _ret;\n }", "title": "" }, { "docid": "5d15aafae902da473a15e0401b7d8220", "score": "0.44416422", "text": "final public SqlNode FromClause() throws ParseException {\n SqlNode e, e2, condition;\n boolean isNatural;\n SqlJoinOperator.JoinType joinType;\n List list;\n SqlParserPos pos;\n SqlParserPos joinTypePos;\n SqlParserPos naturalPos;\n e = TableRef();\n label_6:\n while (true) {\n if (jj_2_10(1)) {\n ;\n } else {\n break label_6;\n }\n if (jj_2_11(2)) {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case NATURAL:\n jj_consume_token(NATURAL);\n isNatural = true;\n break;\n default:\n jj_la1[31] = jj_gen;\n isNatural = false;\n }\n naturalPos = getPos();\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case JOIN:\n jj_consume_token(JOIN);\n joinType = SqlJoinOperator.JoinType.Inner;\n break;\n case INNER:\n jj_consume_token(INNER);\n jj_consume_token(JOIN);\n joinType = SqlJoinOperator.JoinType.Inner;\n break;\n case LEFT:\n jj_consume_token(LEFT);\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case OUTER:\n jj_consume_token(OUTER);\n break;\n default:\n jj_la1[32] = jj_gen;\n ;\n }\n jj_consume_token(JOIN);\n joinType = SqlJoinOperator.JoinType.Left;\n break;\n case RIGHT:\n jj_consume_token(RIGHT);\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case OUTER:\n jj_consume_token(OUTER);\n break;\n default:\n jj_la1[33] = jj_gen;\n ;\n }\n jj_consume_token(JOIN);\n joinType = SqlJoinOperator.JoinType.Right;\n break;\n case FULL:\n jj_consume_token(FULL);\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case OUTER:\n jj_consume_token(OUTER);\n break;\n default:\n jj_la1[34] = jj_gen;\n ;\n }\n jj_consume_token(JOIN);\n joinType = SqlJoinOperator.JoinType.Full;\n break;\n case CROSS:\n jj_consume_token(CROSS);\n jj_consume_token(JOIN);\n joinType = SqlJoinOperator.JoinType.Cross;\n break;\n default:\n jj_la1[35] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n joinTypePos = getPos();\n e2 = TableRef();\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case ON:\n jj_consume_token(ON);\n pos = getPos();\n condition = Expression(ExprContext.ACCEPT_SUBQUERY);\n SqlParserPos onPos = pos.plus(getPos());\n e = SqlStdOperatorTable.joinOperator.createCall(\n e,\n SqlLiteral.createBoolean(isNatural, naturalPos),\n SqlLiteral.createSymbol(joinType, joinTypePos),\n e2,\n SqlLiteral.createSymbol(\n SqlJoinOperator.ConditionType.On, onPos),\n condition,\n joinTypePos);\n break;\n case USING:\n jj_consume_token(USING);\n pos = getPos();\n jj_consume_token(LPAREN);\n list = SimpleIdentifierCommaList();\n jj_consume_token(RPAREN);\n SqlParserPos usingPos = pos.plus(getPos());\n e = SqlStdOperatorTable.joinOperator.createCall(\n e,\n SqlLiteral.createBoolean(isNatural, naturalPos),\n SqlLiteral.createSymbol(joinType, joinTypePos),\n e2,\n SqlLiteral.createSymbol(\n SqlJoinOperator.ConditionType.Using, usingPos),\n new SqlNodeList(list, usingPos),\n joinTypePos);\n break;\n default:\n jj_la1[36] = jj_gen;\n e = SqlStdOperatorTable.joinOperator.createCall(\n e,\n SqlLiteral.createBoolean(isNatural, naturalPos),\n SqlLiteral.createSymbol(joinType, joinTypePos),\n e2,\n SqlLiteral.createSymbol(\n SqlJoinOperator.ConditionType.None, joinTypePos),\n null,\n joinTypePos);\n }\n } else if (true) {\n jj_consume_token(COMMA);\n pos = getPos();\n e2 = TableRef();\n e = SqlStdOperatorTable.joinOperator.createCall(\n e,\n SqlLiteral.createBoolean(false, pos),\n SqlLiteral.createSymbol(SqlJoinOperator.JoinType.Comma,\n SqlParserPos.ZERO),\n e2,\n SqlLiteral.createSymbol(\n SqlJoinOperator.ConditionType.None, SqlParserPos.ZERO),\n null,\n pos);\n } else {\n jj_consume_token(-1);\n throw new ParseException();\n }\n }\n {if (true) return e;}\n throw new Error(\"Missing return statement in function\");\n }", "title": "" }, { "docid": "f9509b33cb55309d4fef0942349ad818", "score": "0.44406465", "text": "private boolean FuncBodyMember(Table table){\r\n\t\t\r\n\t\tboolean success = skipErrors(nt.FuncBodyMember);\r\n\t\t\r\n\t\tif (lookAhead.inRHS1(nt.FuncBodyMember)){\r\n\t\t\t//case: FuncBodyMember -> Statement2\r\n\t\t\tif (Statement2(table)){\r\n\t\t\t\tparseInfo += \"*FuncBodyMember -> Statement2\" + \"\\r\\n\";\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tsuccess = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//unsure if call or declaration\r\n\t\telse if (lookAhead.inRHS2(nt.FuncBodyMember)){\r\n\t\t\t//case: FuncBodyMember -> id FuncBodyMember2\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tRecord record = new Record();\r\n\t\t\tType funcBodyMember2 = new Type();\r\n\t\t\t\r\n\t\t\tboolean b1 = match(\"id\");\r\n\t\t\trecord.setName(lookBehind.getLexeme()); //assume call\r\n\t\t\tlineNum = lookBehind.getLine();\r\n\t\t\tfuncBodyMember2.setTo(getType(record, table, lineNum));\r\n\r\n\t\t\tboolean b2 = FuncBodyMember2(record, table, funcBodyMember2);\r\n\t\t\t\r\n\t\t\tif (b1 && b2) {\r\n\t\t\t\t\r\n\t\t\t\tparseInfo += \"*FuncBodyMember -> id FuncBodyMember2\" + \"\\r\\n\";\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tsuccess = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (lookAhead.inRHS3(nt.FuncBodyMember)){\r\n\t\t\t//case: FuncBodyMember -> float id ArraySizeList ; \r\n\t\t\t\r\n\t\t\tboolean b1 = match(\"float\");\r\n\t\t\tboolean b2 = match(\"id\");\r\n\t\t\tboolean b3 = ArraySizeList();\r\n\t\t\tboolean b4 = match(\"semi\");\r\n\t\t\t\r\n\t\t\tif (b1 && b2 && b3 && b4){\r\n\t\t\t\tparseInfo += \"*FuncBodyMember -> float id ArraySizeList ;\" + \"\\r\\n\";\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tsuccess = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (lookAhead.inRHS4(nt.FuncBodyMember)){\r\n\t\t\t//case: FuncBodyMember -> int id ArraySizeList ; \r\n\t\t\t\r\n\t\t\tboolean b1 = match(\"int\");\r\n\t\t\tboolean b2 = match(\"id\");\r\n\t\t\tboolean b3 = ArraySizeList();\r\n\t\t\tboolean b4 = match(\"semi\");\r\n\t\t\t\r\n\t\t\tif (b1 && b2 && b3 && b4){\r\n\t\t\t\tparseInfo += \"*FuncBodyMember -> int id ArraySizeList ;\" + \"\\r\\n\";\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tsuccess = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsuccess = false;\r\n\t\t}\r\n\t\treturn success;\r\n\t}", "title": "" }, { "docid": "944bb8769184de096ce332afe92024fb", "score": "0.44166324", "text": "@gw.internal.gosu.parser.ExtendedProperty\n public entity.APDClause getClause();", "title": "" }, { "docid": "316bcf6e2684160f4ee491cce4aa5b3d", "score": "0.44063523", "text": "public R visit(AndExpression n) {\n R _ret=null;\n if(itr == 0)\n {\n n.f0.accept(this);\n n.f1.accept(this);\n n.f2.accept(this);\n }\n else\n {\n l_stack.push(l_ind);\n index_stack.push(var_ind);\n var_ind++;\n l_ind += 2;\n System.out.print(\"\\nBEGIN \\nCJUMP NE PLUS \");\n n.f0.accept(this);\n n.f1.accept(this);\n n.f2.accept(this);\n System.out.print(\"2 L\" + l_stack.peek() + \" \\n \");//NOOP was there\n System.out.print(\"MOVE TEMP \" + index_stack.peek() + \" 0\\n JUMP L\" + (l_stack.peek()+1) + \"\\n \");\n System.out.print(\"L\" + l_stack.peek() + \"\\n MOVE TEMP \" + index_stack.peek() + \" 1\\n\");\n System.out.print(\"L\" + (l_stack.peek()+1) + \"\\n NOOP\\n\");\n System.out.print(\" RETURN\\n TEMP \" + index_stack.peek() + \"\\nEND\\n\");\n\n l_stack.pop();\n index_stack.pop();\n }\n\n\n return _ret;\n }", "title": "" }, { "docid": "e6225a7f34e58fc4beb76468ea57e278", "score": "0.4394935", "text": "private boolean ProgBody(Table table){\r\n\t\t\r\n\t\tboolean success = skipErrors(nt.ProgBody);\r\n\t\t\r\n\t\tif (lookAhead.inRHS1(nt.ProgBody)){\r\n\t\t\t\r\n\t\t\tRecord program = new Record();\r\n\t\t\t\r\n\t\t\tboolean b1 = match(\"program\");\r\n\t\t\tprogram.setName(\"program\");\r\n\t\t\tprogram.setStructure(\"function\");\r\n\t\t\tlineNum = lookBehind.getLine();\r\n\t\t\tTable programScope = table.find(program, true, lineNum).getLocal();\r\n\t\t\t\r\n\t\t\tboolean b2 = FuncBody(programScope);\r\n\t\t\tboolean b3 = match(\"semi\");\r\n\t\t\tboolean b4 = FuncDefList(table);\r\n\t\t\t\r\n\t\t\tif (b1 && b2 && b3 && b4)\r\n\t\t\t{\r\n\t\t\t\tparseInfo += \"ProgBody -> program FuncBody ; FuncDefList\" + \"\\r\\n\";\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tsuccess = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsuccess = false;\r\n\t\t}\r\n\t\treturn success;\r\n\t}", "title": "" }, { "docid": "bf495a5d2cbffefabb09c8166edb6f1d", "score": "0.43794772", "text": "@Override\n\tpublic Formula toFormula() {\n\t\treturn new AndFormula(super.toFormula(),getTseitinOutput());\n\t}", "title": "" }, { "docid": "ae948c5ca130f5d6f5d30cf25320648d", "score": "0.43641037", "text": "public Boolean expr_check(String var_declaration);", "title": "" }, { "docid": "681c1437f6bf0cd3f6b5f6209fdfa57d", "score": "0.43609324", "text": "public R visit(HavingClause n) {\n R _ret=null;\n n.f0.accept(this);\n n.f1.accept(this);\n n.f2.accept(this);\n n.f3.accept(this);\n return _ret;\n }", "title": "" }, { "docid": "17e539b8bd5d7c671c4495e8da707301", "score": "0.43583906", "text": "private Expr conditional() {\n Expr expr = logicOr();\n if (match(QUESTION)) {\n Expr thenBranch = expression();\n consume(COLON, \n \"Expect ':' after then branch of conditional expression.\");\n Expr elseBranch = conditional();\n return new Expr.Ternary(expr, thenBranch, elseBranch);\n }\n\n return expr;\n }", "title": "" }, { "docid": "fbe588322494fc8512136e70551656c7", "score": "0.43525973", "text": "ComplexExpression getElsebody();", "title": "" }, { "docid": "066b25db0535142a1171b4828e0b8dc3", "score": "0.43399933", "text": "private boolean FuncDef(Table table){\r\n\t\t\r\n\t\tboolean success = skipErrors(nt.FuncDef);\r\n\t\t\r\n\t\tif (lookAhead.inRHS1(nt.FuncDef)){\r\n\t\t\t\r\n\t\t\tRecord record = new Record();\r\n\t\t\t\r\n\t\t\tboolean b1 = FuncHead(record);\r\n\t\t\tlineNum = lookBehind.getLine();\r\n\t\t\tTable newScope = table.find(record, true, lineNum).getLocal();\r\n\t\t\t\r\n\t\t\tboolean b2 = FuncBody(newScope);\r\n\t\t\tboolean b3 = match(\"semi\");\r\n\t\t\t\r\n\t\t\tif (b1 && b2 && b3){\r\n\t\t\t\tparseInfo += \"*FuncDef -> FuncHead FuncBody ;\" + \"\\r\\n\";\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tsuccess = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsuccess = false;\r\n\t\t}\r\n\t\treturn success;\r\n\t}", "title": "" }, { "docid": "69e0215108a6bb172770bd715380e580", "score": "0.4317105", "text": "public SyntaxTree andExpr () throws java.io.IOException {\n SyntaxTree relExprTree, syntaxTree;\n syntaxTree = relExpr (); \t\t\t\t// RelExpr\n while (token . symbol () == TokenClass . AND) { \t// { &&\n getToken ();\n relExprTree = relExpr (); \t\t\t// RelExpr\n syntaxTree = new SyntaxTree (\"&&\", syntaxTree, relExprTree);\n } \t\t\t\t\t\t\t// }\n return syntaxTree;\n }", "title": "" }, { "docid": "498c821f671c19b1ce4353f939059167", "score": "0.43159997", "text": "public final AS3Parser.forCond_return forCond() throws RecognitionException {\r\n InOperator_stack.push(new InOperator_scope());\r\n\r\n AS3Parser.forCond_return retval = new AS3Parser.forCond_return();\r\n retval.start = input.LT(1);\r\n\r\n LinkedListTree root_0 = null;\r\n\r\n AS3Parser.expressionList_return expressionList205 = null;\r\n\r\n\r\n RewriteRuleSubtreeStream stream_expressionList=new RewriteRuleSubtreeStream(adaptor,\"rule expressionList\");\r\n\r\n \t((InOperator_scope)InOperator_stack.peek()).allowed = true;\r\n\r\n try { dbg.enterRule(getGrammarFileName(), \"forCond\");\r\n if ( getRuleLevel()==0 ) {dbg.commence();}\r\n incRuleLevel();\r\n dbg.location(627, 1);\r\n\r\n try {\r\n // /Users/eliseev/Projects/metaas-src/src/main/antlr/org/asdt/core/internal/antlr/AS3.g:632:2: ( ( expressionList )? -> ^( FOR_CONDITION ( expressionList )? ) )\r\n dbg.enterAlt(1);\r\n\r\n // /Users/eliseev/Projects/metaas-src/src/main/antlr/org/asdt/core/internal/antlr/AS3.g:632:4: ( expressionList )?\r\n {\r\n dbg.location(632,4);\r\n // /Users/eliseev/Projects/metaas-src/src/main/antlr/org/asdt/core/internal/antlr/AS3.g:632:4: ( expressionList )?\r\n int alt45=2;\r\n try { dbg.enterSubRule(45);\r\n try { dbg.enterDecision(45);\r\n\r\n try {\r\n isCyclicDecision = true;\r\n alt45 = dfa45.predict(input);\r\n }\r\n catch (NoViableAltException nvae) {\r\n dbg.recognitionException(nvae);\r\n throw nvae;\r\n }\r\n } finally {dbg.exitDecision(45);}\r\n\r\n switch (alt45) {\r\n case 1 :\r\n dbg.enterAlt(1);\r\n\r\n // /Users/eliseev/Projects/metaas-src/src/main/antlr/org/asdt/core/internal/antlr/AS3.g:632:4: expressionList\r\n {\r\n dbg.location(632,4);\r\n pushFollow(FOLLOW_expressionList_in_forCond2330);\r\n expressionList205=expressionList();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) stream_expressionList.add(expressionList205.getTree());\r\n\r\n }\r\n break;\r\n\r\n }\r\n } finally {dbg.exitSubRule(45);}\r\n\r\n\r\n\r\n // AST REWRITE\r\n // elements: expressionList\r\n // token labels: \r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n retval.tree = root_0;\r\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\r\n\r\n root_0 = (LinkedListTree)adaptor.nil();\r\n // 633:3: -> ^( FOR_CONDITION ( expressionList )? )\r\n {\r\n dbg.location(633,6);\r\n // /Users/eliseev/Projects/metaas-src/src/main/antlr/org/asdt/core/internal/antlr/AS3.g:633:6: ^( FOR_CONDITION ( expressionList )? )\r\n {\r\n LinkedListTree root_1 = (LinkedListTree)adaptor.nil();\r\n dbg.location(633,8);\r\n root_1 = (LinkedListTree)adaptor.becomeRoot((LinkedListTree)adaptor.create(FOR_CONDITION, \"FOR_CONDITION\"), root_1);\r\n\r\n dbg.location(633,22);\r\n // /Users/eliseev/Projects/metaas-src/src/main/antlr/org/asdt/core/internal/antlr/AS3.g:633:22: ( expressionList )?\r\n if ( stream_expressionList.hasNext() ) {\r\n dbg.location(633,22);\r\n adaptor.addChild(root_1, stream_expressionList.nextTree());\r\n\r\n }\r\n stream_expressionList.reset();\r\n\r\n adaptor.addChild(root_0, root_1);\r\n }\r\n\r\n }\r\n\r\n retval.tree = root_0;}\r\n }\r\n\r\n retval.stop = input.LT(-1);\r\n\r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = (LinkedListTree)adaptor.rulePostProcessing(root_0);\r\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\r\n }\r\n }\r\n finally {\r\n InOperator_stack.pop();\r\n\r\n }\r\n dbg.location(634, 2);\r\n\r\n }\r\n finally {\r\n dbg.exitRule(getGrammarFileName(), \"forCond\");\r\n decRuleLevel();\r\n if ( getRuleLevel()==0 ) {dbg.terminate();}\r\n }\r\n\r\n return retval;\r\n }", "title": "" }, { "docid": "9a76631318a96c201e2accde53859631", "score": "0.43159154", "text": "List<Clause> getClauses();", "title": "" }, { "docid": "431f1766bac10cc647c63378c3f38177", "score": "0.4304038", "text": "public final AS3Parser.forInClauseDecl_return forInClauseDecl() throws RecognitionException {\r\n InOperator_stack.push(new InOperator_scope());\r\n\r\n AS3Parser.forInClauseDecl_return retval = new AS3Parser.forInClauseDecl_return();\r\n retval.start = input.LT(1);\r\n\r\n LinkedListTree root_0 = null;\r\n\r\n AS3Parser.declaration_return declaration200 = null;\r\n\r\n AS3Parser.ident_return ident201 = null;\r\n\r\n\r\n\r\n\r\n \t((InOperator_scope)InOperator_stack.peek()).allowed = false;\r\n\r\n try { dbg.enterRule(getGrammarFileName(), \"forInClauseDecl\");\r\n if ( getRuleLevel()==0 ) {dbg.commence();}\r\n incRuleLevel();\r\n dbg.location(600, 1);\r\n\r\n try {\r\n // /Users/eliseev/Projects/metaas-src/src/main/antlr/org/asdt/core/internal/antlr/AS3.g:605:2: ( declaration | ident )\r\n int alt43=2;\r\n try { dbg.enterDecision(43);\r\n\r\n try {\r\n isCyclicDecision = true;\r\n alt43 = dfa43.predict(input);\r\n }\r\n catch (NoViableAltException nvae) {\r\n dbg.recognitionException(nvae);\r\n throw nvae;\r\n }\r\n } finally {dbg.exitDecision(43);}\r\n\r\n switch (alt43) {\r\n case 1 :\r\n dbg.enterAlt(1);\r\n\r\n // /Users/eliseev/Projects/metaas-src/src/main/antlr/org/asdt/core/internal/antlr/AS3.g:605:4: declaration\r\n {\r\n root_0 = (LinkedListTree)adaptor.nil();\r\n\r\n dbg.location(605,4);\r\n pushFollow(FOLLOW_declaration_in_forInClauseDecl2238);\r\n declaration200=declaration();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) adaptor.addChild(root_0, declaration200.getTree());\r\n\r\n }\r\n break;\r\n case 2 :\r\n dbg.enterAlt(2);\r\n\r\n // /Users/eliseev/Projects/metaas-src/src/main/antlr/org/asdt/core/internal/antlr/AS3.g:605:18: ident\r\n {\r\n root_0 = (LinkedListTree)adaptor.nil();\r\n\r\n dbg.location(605,18);\r\n pushFollow(FOLLOW_ident_in_forInClauseDecl2242);\r\n ident201=ident();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) adaptor.addChild(root_0, ident201.getTree());\r\n\r\n }\r\n break;\r\n\r\n }\r\n retval.stop = input.LT(-1);\r\n\r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = (LinkedListTree)adaptor.rulePostProcessing(root_0);\r\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\r\n }\r\n }\r\n finally {\r\n InOperator_stack.pop();\r\n\r\n }\r\n dbg.location(606, 2);\r\n\r\n }\r\n finally {\r\n dbg.exitRule(getGrammarFileName(), \"forInClauseDecl\");\r\n decRuleLevel();\r\n if ( getRuleLevel()==0 ) {dbg.terminate();}\r\n }\r\n\r\n return retval;\r\n }", "title": "" }, { "docid": "ada3c28376e889e1c0c080199f0279da", "score": "0.428804", "text": "public final void query() throws RecognitionException {\n FofFormula r =null;\n\n\n try {\n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:62:5: (r= rule )\n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:62:9: r= rule\n {\n pushFollow(FOLLOW_rule_in_query237);\n r=rule();\n\n state._fsp--;\n\n\n m_outStream.print(m_generator.getAnnotatedQuery(r)); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return ;\n }", "title": "" }, { "docid": "36a22c4e67634d63b00420561f2dba8c", "score": "0.4285143", "text": "public R visit(booleanTerm n) {\n R _ret=null;\n n.f0.accept(this);\n n.f1.accept(this);\n return _ret;\n }", "title": "" }, { "docid": "24643b788377b5d0572a06bb5891aec1", "score": "0.4279352", "text": "ETExpression getThen();", "title": "" }, { "docid": "8b8f550f481e6ef80b319e0f257eb2f4", "score": "0.42725602", "text": "org.w3.x2005.sparqlResults.HeadDocument.Head getHead();", "title": "" }, { "docid": "7b3a02120c00ebff9038b2e4ee6b8946", "score": "0.42654693", "text": "public void visit(AndExpression n) {\n\t++andCount;\n\tString falseLabel = \"false\" + andCount;\n\tString endLabel = \"end\" + andCount;\n n.f0.accept(this);\n String arg1 = synthTempVar;\n n.f1.accept(this);\n n.f2.accept(this);\n String arg2 = synthTempVar;\n String temp1 = newTempVar();\n String temp2 = newTempVar();\n String temp3 = newTempVar();\n vaporPrinter.print(temp1 + \" = Eq(\" + arg1 + \" 0)\");\n vaporPrinter.print(\"if \" + temp1 + \" goto :\" + falseLabel);\n vaporPrinter.print(temp2 + \" = Eq(\" + arg2 + \" 0)\");\n vaporPrinter.print(\"if \" + temp2 + \" goto :\" + falseLabel);\n vaporPrinter.print(temp3 + \" = 1\");\n vaporPrinter.print(\"goto :\" + endLabel);\n vaporPrinter.print(falseLabel + ':');\n vaporPrinter.print(temp3 + \" = 0\");\n vaporPrinter.print(endLabel + ':');\n\n //<AndExpression> = ST_Boolean\n inheritedType = SymbolType.ST_BOOLEAN;\n\n //String temp = newTempVar();\n //vaporPrinter.print(temp + \" = And(\" + arg1 + \" \" + arg2 + \")\");\n\n synthTempVar = temp3;\n }", "title": "" }, { "docid": "6946ec90c14c95d76004a9dac90616ed", "score": "0.4265017", "text": "@Override\n\tpublic void visit(ExistsExpression arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "3a4e84d08c30d6bf6ee3b6d83e9b3e39", "score": "0.42617112", "text": "@Override\n\t\tpublic void meet(StatementPattern node) {\n\t\t\tValue predicate = node.getPredicateVar().getValue();\n\n\t\t\tif (MATCHES.equals(predicate)) {\n\t\t\t\tmatchesPatterns.add(node);\n\t\t\t} else if (QUERY.equals(predicate)) {\n\t\t\t\tqueryPatterns.add(node);\n\t\t\t} else if (PROPERTY.equals(predicate)) {\n\t\t\t\tpropertyPatterns.add(node);\n\t\t\t} else if (SCORE.equals(predicate)) {\n\t\t\t\tscorePatterns.add(node);\n\t\t\t} else if (SNIPPET.equals(predicate)) {\n\t\t\t\tsnippetPatterns.add(node);\n\t\t\t} else if (TYPE.equals(predicate)) {\n\t\t\t\tValue object = node.getObjectVar().getValue();\n\t\t\t\tif (LUCENE_QUERY.equals(object)) {\n\t\t\t\t\ttypePatterns.add(node);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "5d4c9d546429cfd023c069e8643872bf", "score": "0.42510122", "text": "public R visit(cpp_grammar.Absyn.Fun p, A arg)\n {\n p.type_.accept(new TypeVisitor<R,A>(), arg);\n //p.ident_;\n for (Arg x: p.listarg_)\n { /* ... */ }\n for (Stm x: p.liststm_)\n { /* ... */ }\n return null;\n }", "title": "" }, { "docid": "6a5362af9e36302ecc887a2122d8ca6e", "score": "0.42463443", "text": "private boolean FuncBodyMemberList(Table table){\r\n\t\t\r\n\t\tboolean success = skipErrors(nt.FuncBodyMemberList);\r\n\t\t\r\n\t\tif (lookAhead.inRHS1(nt.FuncBodyMemberList)){\r\n\t\t\tif (FuncBodyMember(table) && FuncBodyMemberList(table))\r\n\t\t\t{\r\n\t\t\t\tparseInfo += \"*FuncBodyMemberList -> FuncBodyMember FuncBodyMemberList\" + \"\\r\\n\";\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tsuccess = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (lookAhead.inFollow(nt.FuncBodyMemberList)){\r\n\t\t\tparseInfo += \"*FuncBodyMemberList -> epsilon\" + \"\\r\\n\";\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsuccess = false;\r\n\t\t}\r\n\t\treturn success;\r\n\t}", "title": "" }, { "docid": "7f9faa12083e809a8b95e5f2c5606798", "score": "0.42308974", "text": "private static Environment solve(ImList<Clause> clauses, Environment env) {\n\t\tif (clauses.size() == 0){\n\t\t\treturn env;\n\t\t}\n\t\tint shortnum = 1000;\n\t\tClause shortest = null;\n\t\tIterator<Clause> iter = clauses.iterator();\n\t\twhile (iter.hasNext()){\n\t\t\tClause c = iter.next();\n\t\t\tint size = c.size();\n\t\t\tif (size == 0) \n\t\t\t\treturn null;\n\n\t\t\tif (size < shortnum){\n\t\t\t\tshortest = c;\n\t\t\t\tshortnum = size;\n\t\t\t}\n\t\t}\n\t\tif (shortnum == 1){\n\t\t\tenv = env.putTrue(shortest.chooseLiteral()); //choose literal picks the first literal\n\t\t\treturn (solve(substitute(clauses,shortest.chooseLiteral()), env));\n\t\t}\n\t\telse{\n\t\t\tLiteral l = shortest.chooseLiteral(); // setting to true\n\t\t\tenv = env.putTrue(l);\n\t\t\tEnvironment potential = solve(substitute(clauses, l),env);\n\t\t\tif (potential == null){\n\t\t\t\tenv = env.putFalse(l);\n\t\t\t\treturn solve(substitute(clauses,l.getNegation()),env);\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn potential;\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "20c5e18d0a7ba040d21d6635b456e81d", "score": "0.42133212", "text": "public final FofFormula psoa() throws RecognitionException {\n FofFormula formula = null;\n\n\n Term oid =null;\n\n Term type =null;\n\n List<Term> t =null;\n\n List<Term> s =null;\n\n\n\n \tSet<List<Term>> tuples = new HashSet<List<Term>>(4);\n \tSet<List<Term>> slots = new HashSet<List<Term>>(4);\n\n try {\n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:122:5: ( ^( PSOA (oid= term )? ^( INSTANCE type= term ) (t= tuple )* (s= slot )* ) )\n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:122:9: ^( PSOA (oid= term )? ^( INSTANCE type= term ) (t= tuple )* (s= slot )* )\n {\n match(input,PSOA,FOLLOW_PSOA_in_psoa720); \n\n match(input, Token.DOWN, null); \n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:122:19: (oid= term )?\n int alt19=2;\n switch ( input.LA(1) ) {\n case EXTERNAL:\n case LITERAL:\n case PSOA:\n case SHORTCONST:\n case TOP:\n case VAR_ID:\n {\n alt19=1;\n }\n break;\n }\n\n switch (alt19) {\n case 1 :\n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:122:19: oid= term\n {\n pushFollow(FOLLOW_term_in_psoa724);\n oid=term();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n\n match(input,INSTANCE,FOLLOW_INSTANCE_in_psoa728); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_term_in_psoa732);\n type=term();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:122:48: (t= tuple )*\n loop20:\n do {\n int alt20=2;\n switch ( input.LA(1) ) {\n case TUPLE:\n {\n alt20=1;\n }\n break;\n\n }\n\n switch (alt20) {\n \tcase 1 :\n \t // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:122:49: t= tuple\n \t {\n \t pushFollow(FOLLOW_tuple_in_psoa738);\n \t t=tuple();\n\n \t state._fsp--;\n\n\n \t tuples.add(t); \n\n \t }\n \t break;\n\n \tdefault :\n \t break loop20;\n }\n } while (true);\n\n\n // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:122:77: (s= slot )*\n loop21:\n do {\n int alt21=2;\n switch ( input.LA(1) ) {\n case SLOT:\n {\n alt21=1;\n }\n break;\n\n }\n\n switch (alt21) {\n \tcase 1 :\n \t // org/ruleml/psoa2tptp/translator/TPTPASOTranslatorWalker.g:122:78: s= slot\n \t {\n \t pushFollow(FOLLOW_slot_in_psoa747);\n \t s=slot();\n\n \t state._fsp--;\n\n\n \t slots.add(s); \n\n \t }\n \t break;\n\n \tdefault :\n \t break loop21;\n }\n } while (true);\n\n\n match(input, Token.UP, null); \n\n\n\n \t\tformula = m_generator.getPSOAFormula(oid, type, tuples, slots);\n \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return formula;\n }", "title": "" }, { "docid": "14868503c53c417b33f3d2bd1164e9ea", "score": "0.42073947", "text": "boolean getDefinitionsAndDependence(Procedure proc, Traversable trav, boolean new_one) {\n if(trav instanceof DeclarationStatement) {\n Declaration decl = ((DeclarationStatement) trav).getDeclaration();\n boolean set_decl_before = false;\n if(decl instanceof VariableDeclaration) {\n VariableDeclaration v_decl = (VariableDeclaration)decl;\n List<Symbol> decl_syms = v_decl.getDeclaredSymbols();\n List<IDExpression> decl_ids = v_decl.getDeclaredIDs();\n int total = v_decl.getNumDeclarators();\n Iterator<IDExpression> iter_id = decl_ids.iterator();\n Iterator<Symbol> decl_syms_iterator = decl_syms.iterator();\n \n \n for(int index=0; index<total; index++) {\n Symbol v_sym = decl_syms_iterator.next();\n VariableDeclarator v_declr = (VariableDeclarator)v_decl.getDeclarator(index);\n IDExpression v_id = iter_id.next();\n \n// if(v_sym==null || v_id==null) {\n// System.out.println(\"ERROR: \"+v_sym.getSymbolName());\n// }\n// else {\n// System.out.println(\"NO ERROR: \"+v_sym.getSymbolName());\n// }\n \n \n Initializer init = v_declr.getInitializer();\n \n if(init!=null) {\n //out.write(id_sym.getSymbolName() + \" \" + init.getClass().getName());\n Iterator<Traversable> init_value_iterator = init.getChildren().iterator();\n while(init_value_iterator.hasNext()) {\n \n Traversable tt = init_value_iterator.next();\n //out.write(tt.getClass().getName()+\" \");\n if(tt instanceof Expression) {\n Definitions.put(v_sym, (Expression)tt);\n definitions_id.put(v_id, (Expression)tt);\n// if( ! primitive.is_iterator_variable(v_id)) {\n if(!iterator_variables.contains(v_sym)) {\n definitions_expand.put(v_id, expand_expression((Expression)tt));\n }\n else {\n System.out.println(\"12-05-2021: \"+v_id.toString());\n }\n long local_dep = getDependenceVector((Expression)tt, dep_vector, proc);\n dep_vector.put(v_sym, local_dep);\n \n boolean loop_tran_check = true;\n \n if(tt instanceof FunctionCall) {\n local_dep = get_ids(v_sym, v_id, (FunctionCall)tt);\n if((local_dep == 0) || (local_dep&(local_dep-1))==0)\n loop_tran_check = false;\n }\n if(loop_tran_check) {\n if((local_dep & partition_idx)!=0) {\n VariableDeclarator temp_v_decl = new VariableDeclarator(PointerSpecifier.UNQUALIFIED, v_id.clone());\n NestedDeclarator temp_nest_declr = new NestedDeclarator(temp_v_decl);\n ArraySpecifier arr_spec = createLimitsArraySpecifier(local_dep&partition_idx);\n temp_nest_declr.addTrailingSpecifier(arr_spec);\n Expression size_expr = arr_spec.getDimension(0);\n for(int ind=1; ind<arr_spec.getNumDimensions(); ind++) {\n size_expr = new BinaryExpression(size_expr, BinaryOperator.MULTIPLY, arr_spec.getDimension(ind));\n }\n size_expr = new BinaryExpression(size_expr, BinaryOperator.MULTIPLY, new SizeofExpression(v_decl.getSpecifiers()));\n\n temp_nest_declr.setInitializer( new Initializer(new FunctionCall(new NameID(\"mem_alloc\"), size_expr)) );\n// v_declr.addTrailingSpecifier(createLimitsArraySpecifier(local_dep&partition_idx));\n ArrayAccess arr_acc = createDepArrayAccess(new UnaryExpression(UnaryOperator.DEREFERENCE, v_id.clone()), local_dep&partition_idx);\n Expression rhs = ((Expression) tt).clone();\n ExpressionStatement expr_stmt = createAssignExprStmt(arr_acc, AssignmentOperator.NORMAL, rhs);\n// v_declr.setInitializer(null);\n v_decl.setChild(index, temp_nest_declr);\n\n // System.out.println(\"New DECL\" + index + \": \" + temp_nest_declr);\n\n set_decl_before = true;\n //originalExp.add(v_id);\n //originalSym.add(v_sym);\n originalES.put(v_id, v_sym);\n //group_changed_stmts.add(expr_stmt);\n //if(group_changed_stmts.size()==1) {\n if(tt instanceof FunctionCall) {\n// add_to_statement(cur_stmt, new DeclarationStatement(td_decl), cur_comp_stmt, local_dep, new_one);\n// add_to_statement()\n }\n add_to_statement(cur_stmt, expr_stmt, cur_comp_stmt, local_dep, new_one);\n new_one = false;\n //}\n \n \n }\n }\n break;\n //return (Expression) tt;\n }\n \n \n }\n if(init_value_iterator.hasNext()) {\n System.out.println(\"getDefinitions(): May cause inconsistency\");\n }\n }\n else {\n Definitions.put(v_sym, null);\n definitions_id.put(v_id, null);\n dep_vector.put(v_sym, 0l);\n }\n }\n }\n return set_decl_before;\n }\n return false;\n }", "title": "" }, { "docid": "d5649f34e72537fbdf91aa85d5f04fe4", "score": "0.42055354", "text": "@Specialization\n public ProloGraalBoolean returnHead(ProloGraalBoolean head){\n return head;\n }", "title": "" }, { "docid": "af812f3c577fd5391fa3887a863bd8cf", "score": "0.4198701", "text": "FormulaFactory getFormulaFactory();", "title": "" }, { "docid": "a8c4d59c9b3e5af4f36d895373a0e5ba", "score": "0.41964868", "text": "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic Conjunction createEmptyFormula() {\r\n\t\treturn new Conjunction();\r\n\t}", "title": "" }, { "docid": "131b192e35df26b24b63fe46a1a91f34", "score": "0.41896272", "text": "public static HornSAT convertToHorn(Formula f){\n ArrayList<HornClause> hornClauses= new ArrayList<>();\n for (Clause clause : f.getClauses()) {\n HornClause horn= new HornClause(clause.getLiterals());\n hornClauses.add(horn);\n }\n HornSAT hornSatFormula= new HornSAT(f.getN(), f.getM(), hornClauses);\n return hornSatFormula;\n }", "title": "" }, { "docid": "4149227f81f37e36bcde9ea71d29fe4d", "score": "0.418528", "text": "public String toString() {\n int numClauses = 0;\n StringBuffer result = new StringBuffer();\n\n ClauseIterator it = new ClauseIterator(formula);\n while (it.hasNext()) {\n int clause = it.next();\n result.append(clauseToString(formula, clause));\n result.append(\"\\n\");\n numClauses++;\n }\n\n return \"p cnf \" + numVariables + \" \" + numClauses + \"\\n\" + result;\n }", "title": "" }, { "docid": "852c13eb69dedeebd9893220118ecfcc", "score": "0.41790748", "text": "public R visit(cpp_grammar.Absyn.Prog p, A arg)\n {\n for (Function x: p.listfunction_)\n { /* ... */ }\n return null;\n }", "title": "" }, { "docid": "7cb53ef1452f9a2fbf638e2aa4106379", "score": "0.4175522", "text": "private Table define(Node predicate){\n\t\tTable list = get(predicate);\n\t\tif (list == null){\n\t\t\tlist = new Table(predicate);\n\t\t\tput(predicate, list);\n\t\t}\n\t\treturn list;\n\t}", "title": "" }, { "docid": "df922b3f25487211ff7dab86c5f278e9", "score": "0.41752723", "text": "private boolean FuncDefList(Table table){\r\n\t\t\r\n\t\tboolean success = skipErrors(nt.FuncDefList);\r\n\t\t\r\n\t\tif (lookAhead.inRHS1(nt.FuncDefList)){\r\n\t\t\tif (FuncDef(table) && FuncDefList(table))\r\n\t\t\t{\r\n\t\t\t\tparseInfo += \"*FuncDefList -> FuncDef FuncDefList\" + \"\\r\\n\";\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tsuccess = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (lookAhead.inFollow(nt.FuncDefList)){\r\n\t\t\tparseInfo += \"*FuncDefList -> epsilon\" + \"\\r\\n\";\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsuccess = false;\r\n\t\t}\r\n\t\treturn success;\r\n\t}", "title": "" }, { "docid": "ee4cfd4d6167b92a19ffe4376e9aa9c6", "score": "0.41722646", "text": "@Override\n\tpublic void visit(ExistsExpression arg0) {\n\n\t}", "title": "" }, { "docid": "ee4cfd4d6167b92a19ffe4376e9aa9c6", "score": "0.41722646", "text": "@Override\n\tpublic void visit(ExistsExpression arg0) {\n\n\t}", "title": "" }, { "docid": "da354409c639a007e29791fbe8fb994d", "score": "0.41419494", "text": "public static String getPredicate(StatementPattern stmt) {\n\t\tString tuple;\n\t\tif (stmt.getPredicateVar().getValue()!=null)\n\t\t\ttuple = \" <\"+stmt.getPredicateVar().getValue().stringValue()+\"> \";\n\t\telse\n\t\t\ttuple =\" ?\"+stmt.getPredicateVar().getName(); \n\t\treturn tuple;\n\t}", "title": "" }, { "docid": "ea27f7ea2ca6795fb1ad5346f4786a49", "score": "0.4139185", "text": "@Override\n\tpublic void visit(Formal n) {\n\n\t}", "title": "" }, { "docid": "4e9b748a5ee0d192535f1badccc074df", "score": "0.41357133", "text": "private Token getFirstToken(ExprTerm node) {\n if (node instanceof SimpleTerm)\n return getFirstToken(((SimpleTerm)node).rvalue);\n else\n return getFirstToken(((ComplexTerm)node).expr); \n }", "title": "" }, { "docid": "1afeb492dc7ab5d64036abc0fd701f35", "score": "0.41340432", "text": "private Object procfuncstmt() {\n\t\tString pid;\n\t\tArrayList<Expr> exprlist = new ArrayList<Expr>();\n\t\t\n\t\tif(lexer.token != Symbol.IDPID)\n\t\t\t\terror.signal(\"Expecting a PROCEDURE or FUNCTION call\");\n\t\telse{\n\t\t\tpid = lexer.getStringValue();\n\t\t\tSubhead s = (Subhead)symbolTable.getInGlobal(pid);\n\t\t\tif(s != null){\n\t\t\t\tlexer.nextToken();\n\t\t\t\t\n\t\t\t\tif(lexer.token != Symbol.LEFTPAR)\n\t\t\t\t\terror.signal(\"Expecting a '('\");\n\t\t\t\telse{\n\t\t\t\t\tlexer.nextToken();\n\t\t\t\t\tif(lexer.token != Symbol.RIGHTPAR)\n\t\t\t\t\t\texprlist = exprlist();\n\t\t\t\t\tlexer.nextToken();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(s instanceof Procedure)\n\t\t\t\t\treturn new ProcedureCall(pid, exprlist);\n\t\t\t\telse{\n\t\t\t\t\tType type = ((Function)s).getType();\n\t\t\t\t\treturn new FunctionCall(pid, type, exprlist);\n\t\t\t\t}\n\t\t\t}else\n\t\t\t\terror.signal(pid+\" PROCEDURE or FUNCTION was not declared.\");\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "b02976bef5671d15a0afff62a5528851", "score": "0.41278234", "text": "@FunctionalInterface\npublic interface Expr {\n\n /**\n * Method to interpret Expr\n * @param context the context\n * @return the interpreted text\n */\n String interpret(Map<String, String> context);\n\n /**\n * Variable rule\n */\n static Expr variable(String name) {\n return context -> context.getOrDefault(name, \"\");\n }\n}", "title": "" }, { "docid": "6de1fcb040b6c37129dd5bff92af942c", "score": "0.412479", "text": "public IASTExpression getCondition();", "title": "" }, { "docid": "4527fe3ff014da7a11bed365f258fe18", "score": "0.41232914", "text": "myExpression getMyIfConstraint();", "title": "" }, { "docid": "b298f683d215d76512b2bb703c2aed04", "score": "0.4116112", "text": "private IfStmt ifstmt() {\n\t\tExpr expr;\n\t\tArrayList<Stmt> thenPart = new ArrayList<Stmt>();\n\t\tArrayList<Stmt> elsePart = new ArrayList<Stmt>();\n\t\tStmtList thenPartList, elsePartList;\n\n\t\tlexer.nextToken();\n\t\texpr = expr();\n\n\t\t// verifies if the expression is of boolean type\n\t\tif (expr.getType() != Type.booleanType)\n\t\t\terror.signal(\"Boolean type expected in if expression\");\n\n\t\t// iterates the token to the THEN part\n\t\tif (lexer.token != Symbol.THEN)\n\t\t\terror.signal(\"Expecting 'THEN'\");\n\t\tlexer.nextToken();\n\n\t\tthenPart = stmts();\n\n\t\t// iterates the token to the ELSE part (if exists)\n\t\tif (lexer.token == Symbol.ELSE) {\n\t\t\tlexer.nextToken();\n\t\t\telsePart = stmts();\n\t\t}\n\n\t\t// iterates to the ENDIF part\n\t\tif (lexer.token != Symbol.ENDIF)\n\t\t\terror.signal(\"Expecting 'ENDIF'\");\n\t\tlexer.nextToken();\n\n\t\tthenPartList = new StmtList(thenPart);\n\t\telsePartList = new StmtList(elsePart);\n\n\t\treturn new IfStmt(expr, thenPartList, elsePartList);\n\t}", "title": "" }, { "docid": "6aca86133153570d502fc4e9039eb5ad", "score": "0.41048756", "text": "public R visit(Procedure n, A argu) {\n R _ret=null;\n if(count==0)\n {\n stmt_counter=0;\n Fn temp_fn=new Fn();\n current_fn=temp_fn;\n fns.add(temp_fn);\n n.f0.accept(this, argu);\n temp_fn.fn_name=n.f0.f0.tokenImage;\n int x_fn_args=0;\n n.f1.accept(this, argu);\n n.f2.accept(this, argu);\n temp_fn.no_args=n.f2.f0.tokenImage.toString();\n n.f3.accept(this, argu);\n \n n.f4.accept(this, (A)temp_fn );\n for(int i=0;i<temp_fn.fn_statements.size()-1;i++)\n { if(temp_fn.fn_statements.get(i).target_label!=null)\n { \n if(temp_fn.fn_statements.get(i).is_uncond_jump==0)\n {temp_fn.fn_statements.get(i).succ.add(temp_fn.fn_statements.get(i+1));\n int line_idx=label_search(temp_fn.fn_statements.get(i).target_label);\n //System.out.println(line_idx);\n temp_fn.fn_statements.get(i).succ.add(temp_fn.fn_statements.get(line_idx-1));\n\n }\n else\n {//temp_fn.fn_statements.get(i).succ.add(temp_fn.fn_statements.get(i+1));\n int line_idx=label_search(temp_fn.fn_statements.get(i).target_label);\n temp_fn.fn_statements.get(i).succ.add(temp_fn.fn_statements.get(line_idx-1));\n // System.out.println(\"##########++++++++\");\n\n }\n }\n else\n {\n temp_fn.fn_statements.get(i).succ.add(temp_fn.fn_statements.get(i+1));\n }\n }\n\n\n //for(int i=0;i<temp_fn.fn_statements.size();i++)\n //{\n //for(int j=0;j<temp_fn.fn_statements.get(i).succ.size();j++)\n //{ System.out.println(Integer.toString(temp_fn.fn_statements.get(i).line_number)+\"-->\"+Integer.toString(temp_fn.fn_statements.get(i).succ.get(j).line_number));\n\n //}\n //}\n //System.out.println(label_location);\n\n }\n\n\n else if(count==1)\n {\n\n stmt_counter=0;\n Fn temp_fn=fns.get(fn_idx);\n current_fn=temp_fn;\n fn_idx++;\n current_fn.code+=n.f0.f0.tokenImage+\" [ \"+current_fn.no_args+\"][\"+current_fn.max_alloc+\"][\"+current_fn.max_call_args+\"] \";\n //fns.add(temp_fn);\n n.f0.accept(this, argu);\n //temp_fn.fn_name=n.f0.f0.tokenImage;\n //int x_fn_args=0;\n n.f1.accept(this, argu);\n n.f2.accept(this, argu);\n //temp_fn.no_args=n.f2.f0.tokenImage.toString();\n n.f3.accept(this, argu);\n \n n.f4.accept(this, (A)temp_fn );\n current_fn.code+=return_stat;\n return_stat=\"\";\n if(current_fn.spilt==1)\n current_fn.code+=\"//SPILLED\";\n else\n current_fn.code+=\"//NOTSPILLED\";\n\n \n\n\n \n // System.out.println(label_location);\n\n\n }\n\n\n\n\n\n\n\n return _ret;\n }", "title": "" }, { "docid": "e4ab4a493f72f59180608b2c28ef1855", "score": "0.41004443", "text": "@Override\n\t\tpublic void linearizeStmt(List<Tree> args, DataScope currentScope, Program program) throws CompileException {\n\n\t\t\tif(args.size() == 1) {\n\t\t\t\tTree cond = args.get(0);\n\n\t\t\t\tValue.Label trueLabel = new Value.Label();\n\t\t\t\tValue.Label falseLabel = new Value.Label();\n\n\t\t\t\tprogram.addLabel(trueLabel);\n\n\t\t\t\tcond.linearizeBool(trueLabel, falseLabel, currentScope, program);\n\n\t\t\t\tprogram.addLabel(falseLabel);\n\t\t\t} else if(args.size() == 2) {\n\t\t\t\tTree cond = args.get(0);\n\t\t\t\tTree body = args.get(1);\n\n\t\t\t\tValue.Label trueLabel = new Value.Label();\n\t\t\t\tValue.Label falseLabel = new Value.Label();\n\t\t\t\tValue.Label conditionLabel = new Value.Label();\n\n\t\t\t\t// first, jump to the condition.\n\t\t\t\t__jump.addToProgram(Collections.singletonList(conditionLabel), null, program);\n\n\t\t\t\t// but if it is true, we return here.\n\t\t\t\tprogram.addLabel(trueLabel);\n\n\t\t\t\tbody.linearizeStmt(currentScope, program);\n\n\t\t\t\t// now the condition\n\t\t\t\tprogram.addLabel(conditionLabel);\n\n\t\t\t\tcond.linearizeBool(trueLabel, falseLabel, currentScope, program);\n\n\t\t\t\tprogram.addLabel(falseLabel);\n\t\t\t} else {\n\t\t\t\tthrow new CompileException(\"whileOp must have one or two arguments!\");\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "516df5829221cf72294b096501722cb7", "score": "0.40995914", "text": "final public SqlNode WhereOpt() throws ParseException {\n SqlNode condition;\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case WHERE:\n jj_consume_token(WHERE);\n condition = Expression(ExprContext.ACCEPT_SUBQUERY);\n {if (true) return condition;}\n break;\n default:\n jj_la1[48] = jj_gen;\n {if (true) return null;}\n }\n throw new Error(\"Missing return statement in function\");\n }", "title": "" }, { "docid": "073c8d6953cff73b11eb42bc927a5bed", "score": "0.40944734", "text": "public final void mPp_primary_expression(Expression exprObj) throws RecognitionException {\r\n try {\r\n CommonToken Conditional_symbol1=null;\r\n\r\n // E:\\\\GitHub\\\\CesTa\\\\src\\\\org\\\\cesta\\\\grammars\\\\csharp\\\\CSharp4PreProcessor.g:132:3: ( ( TRUE )=> TRUE | ( FALSE )=> FALSE | Conditional_symbol | '(' Pp_expression[exprObj] ')' )\r\n int alt19=4;\r\n switch ( input.LA(1) ) {\r\n case 't':\r\n {\r\n int LA19_1 = input.LA(2);\r\n\r\n if ( (LA19_1=='r') ) {\r\n int LA19_5 = input.LA(3);\r\n\r\n if ( (LA19_5=='u') ) {\r\n int LA19_7 = input.LA(4);\r\n\r\n if ( (LA19_7=='e') ) {\r\n int LA19_9 = input.LA(5);\r\n\r\n if ( (synpred1_CSharp4PreProcessor()) ) {\r\n alt19=1;\r\n }\r\n else if ( (true) ) {\r\n alt19=3;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 19, 9, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else {\r\n alt19=3;\r\n }\r\n }\r\n else {\r\n alt19=3;\r\n }\r\n }\r\n else {\r\n alt19=3;\r\n }\r\n }\r\n break;\r\n case 'f':\r\n {\r\n int LA19_2 = input.LA(2);\r\n\r\n if ( (LA19_2=='a') ) {\r\n int LA19_6 = input.LA(3);\r\n\r\n if ( (LA19_6=='l') ) {\r\n int LA19_8 = input.LA(4);\r\n\r\n if ( (LA19_8=='s') ) {\r\n int LA19_10 = input.LA(5);\r\n\r\n if ( (LA19_10=='e') ) {\r\n int LA19_12 = input.LA(6);\r\n\r\n if ( (synpred2_CSharp4PreProcessor()) ) {\r\n alt19=2;\r\n }\r\n else if ( (true) ) {\r\n alt19=3;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 19, 12, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else {\r\n alt19=3;\r\n }\r\n }\r\n else {\r\n alt19=3;\r\n }\r\n }\r\n else {\r\n alt19=3;\r\n }\r\n }\r\n else {\r\n alt19=3;\r\n }\r\n }\r\n break;\r\n case 'A':\r\n case 'B':\r\n case 'C':\r\n case 'D':\r\n case 'E':\r\n case 'F':\r\n case 'G':\r\n case 'H':\r\n case 'I':\r\n case 'J':\r\n case 'K':\r\n case 'L':\r\n case 'M':\r\n case 'N':\r\n case 'O':\r\n case 'P':\r\n case 'Q':\r\n case 'R':\r\n case 'S':\r\n case 'T':\r\n case 'U':\r\n case 'V':\r\n case 'W':\r\n case 'X':\r\n case 'Y':\r\n case 'Z':\r\n case '_':\r\n case 'a':\r\n case 'b':\r\n case 'c':\r\n case 'd':\r\n case 'e':\r\n case 'g':\r\n case 'h':\r\n case 'i':\r\n case 'j':\r\n case 'k':\r\n case 'l':\r\n case 'm':\r\n case 'n':\r\n case 'o':\r\n case 'p':\r\n case 'q':\r\n case 'r':\r\n case 's':\r\n case 'u':\r\n case 'v':\r\n case 'w':\r\n case 'x':\r\n case 'y':\r\n case 'z':\r\n case '\\u00C0':\r\n case '\\u00C1':\r\n case '\\u00C2':\r\n case '\\u00C3':\r\n case '\\u00C4':\r\n case '\\u00C5':\r\n case '\\u00C6':\r\n case '\\u00C7':\r\n case '\\u00C8':\r\n case '\\u00C9':\r\n case '\\u00CA':\r\n case '\\u00CB':\r\n case '\\u00CC':\r\n case '\\u00CD':\r\n case '\\u00CE':\r\n case '\\u00CF':\r\n case '\\u00D0':\r\n case '\\u00D1':\r\n case '\\u00D2':\r\n case '\\u00D3':\r\n case '\\u00D4':\r\n case '\\u00D5':\r\n case '\\u00D6':\r\n case '\\u00D7':\r\n case '\\u00D8':\r\n case '\\u00D9':\r\n case '\\u00DA':\r\n case '\\u00DB':\r\n case '\\u00DC':\r\n case '\\u00DD':\r\n case '\\u00DE':\r\n case '\\u01BB':\r\n case '\\u01C0':\r\n case '\\u01C1':\r\n case '\\u01C2':\r\n case '\\u01C3':\r\n case '\\u01C5':\r\n case '\\u01C8':\r\n case '\\u01CB':\r\n case '\\u01F2':\r\n case '\\u0294':\r\n case '\\u02B0':\r\n case '\\u02B1':\r\n case '\\u02B2':\r\n case '\\u02B3':\r\n case '\\u02B4':\r\n case '\\u02B5':\r\n case '\\u02B6':\r\n case '\\u02B7':\r\n case '\\u02B8':\r\n case '\\u02B9':\r\n case '\\u02BA':\r\n case '\\u02BB':\r\n case '\\u02BC':\r\n case '\\u02BD':\r\n case '\\u02BE':\r\n case '\\u02BF':\r\n case '\\u02C0':\r\n case '\\u02C1':\r\n case '\\u02C2':\r\n case '\\u02C3':\r\n case '\\u02C4':\r\n case '\\u02C5':\r\n case '\\u02C6':\r\n case '\\u02C7':\r\n case '\\u02C8':\r\n case '\\u02C9':\r\n case '\\u02CA':\r\n case '\\u02CB':\r\n case '\\u02CC':\r\n case '\\u02CD':\r\n case '\\u02CE':\r\n case '\\u02CF':\r\n case '\\u02D0':\r\n case '\\u02D1':\r\n case '\\u02D2':\r\n case '\\u02D3':\r\n case '\\u02D4':\r\n case '\\u02D5':\r\n case '\\u02D6':\r\n case '\\u02D7':\r\n case '\\u02D8':\r\n case '\\u02D9':\r\n case '\\u02DA':\r\n case '\\u02DB':\r\n case '\\u02DC':\r\n case '\\u02DD':\r\n case '\\u02DE':\r\n case '\\u02DF':\r\n case '\\u02E0':\r\n case '\\u02E1':\r\n case '\\u02E2':\r\n case '\\u02E3':\r\n case '\\u02E4':\r\n case '\\u02E5':\r\n case '\\u02E6':\r\n case '\\u02E7':\r\n case '\\u02E8':\r\n case '\\u02E9':\r\n case '\\u02EA':\r\n case '\\u02EB':\r\n case '\\u02EC':\r\n case '\\u02ED':\r\n case '\\u02EE':\r\n case '\\u16EE':\r\n case '\\u16EF':\r\n case '\\u16F0':\r\n case '\\u2160':\r\n case '\\u2161':\r\n case '\\u2162':\r\n case '\\u2163':\r\n case '\\u2164':\r\n case '\\u2165':\r\n case '\\u2166':\r\n case '\\u2167':\r\n case '\\u2168':\r\n case '\\u2169':\r\n case '\\u216A':\r\n case '\\u216B':\r\n case '\\u216C':\r\n case '\\u216D':\r\n case '\\u216E':\r\n case '\\u216F':\r\n {\r\n alt19=3;\r\n }\r\n break;\r\n case '(':\r\n {\r\n alt19=4;\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 19, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n\r\n switch (alt19) {\r\n case 1 :\r\n // E:\\\\GitHub\\\\CesTa\\\\src\\\\org\\\\cesta\\\\grammars\\\\csharp\\\\CSharp4PreProcessor.g:132:5: ( TRUE )=> TRUE\r\n {\r\n gCSharp4Lexer.mTRUE(); if (state.failed) return ;\r\n\r\n\r\n if ( state.backtracking==0 ) {exprObj.set(true);}\r\n\r\n }\r\n break;\r\n case 2 :\r\n // E:\\\\GitHub\\\\CesTa\\\\src\\\\org\\\\cesta\\\\grammars\\\\csharp\\\\CSharp4PreProcessor.g:133:5: ( FALSE )=> FALSE\r\n {\r\n gCSharp4Lexer.mFALSE(); if (state.failed) return ;\r\n\r\n\r\n if ( state.backtracking==0 ) {exprObj.set(false);}\r\n\r\n }\r\n break;\r\n case 3 :\r\n // E:\\\\GitHub\\\\CesTa\\\\src\\\\org\\\\cesta\\\\grammars\\\\csharp\\\\CSharp4PreProcessor.g:134:5: Conditional_symbol\r\n {\r\n int Conditional_symbol1Start363 = getCharIndex();\r\n int Conditional_symbol1StartLine363 = getLine();\r\n int Conditional_symbol1StartCharPos363 = getCharPositionInLine();\r\n mConditional_symbol(); if (state.failed) return ;\r\n Conditional_symbol1 = new CommonToken(input, Token.INVALID_TOKEN_TYPE, Token.DEFAULT_CHANNEL, Conditional_symbol1Start363, getCharIndex()-1);\r\n Conditional_symbol1.setLine(Conditional_symbol1StartLine363);\r\n Conditional_symbol1.setCharPositionInLine(Conditional_symbol1StartCharPos363);\r\n\r\n\r\n if ( state.backtracking==0 ) {exprObj.set(isDefined((Conditional_symbol1!=null?Conditional_symbol1.getText():null))); }\r\n\r\n }\r\n break;\r\n case 4 :\r\n // E:\\\\GitHub\\\\CesTa\\\\src\\\\org\\\\cesta\\\\grammars\\\\csharp\\\\CSharp4PreProcessor.g:135:5: '(' Pp_expression[exprObj] ')'\r\n {\r\n match('('); if (state.failed) return ;\r\n\r\n mPp_expression(exprObj); if (state.failed) return ;\r\n\r\n\r\n match(')'); if (state.failed) return ;\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n }\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n }", "title": "" }, { "docid": "b8d7af6c1b465b6ac84177d031e7cc67", "score": "0.40907505", "text": "public R visit(FormalParameterList n) {\n R _ret=null;\n n.f0.accept(this);\n n.f1.accept(this);\n return _ret;\n }", "title": "" }, { "docid": "f3be7bf1d6806ebbb398228f18f20fe5", "score": "0.40869704", "text": "public void setClause(entity.APDClause value);", "title": "" }, { "docid": "05d8eccfebbdde02ac50f2fb4327e8d2", "score": "0.40835267", "text": "public R visit(cpp_grammar.Absyn.EStr p, A arg)\n {\n return null;\n }", "title": "" }, { "docid": "1e24eed45660d6dcacf1c8c0c6bc0596", "score": "0.40737894", "text": "SymbolicExpression valueOf(int pid, Variable variable);", "title": "" }, { "docid": "54490262ef62d0bbe5d6acf8f930864b", "score": "0.40670264", "text": "AstNode ternary() throws ParserException {\n var cond = prefix();\n int p = pos;\n\n if (consume(Token.Type.Question) == null)\n return cond;\n var a = expression();\n require(Token.Type.Colon);\n\n return new AstNode.If(p, cond, a, ternary());\n }", "title": "" }, { "docid": "b9f5fe27f6ae7999c3536691ae89d2cc", "score": "0.40559015", "text": "public final boolean caseExprListItem(Object target) throws RecognitionException {\n boolean success = false;\n \n ASTInterpreter.expr_return a = null;\n \n ASTInterpreter.expr_return b = null;\n \n \n try {\n // src/glossa/grammars/ASTInterpreter.g:689:2: (a= expr | ^( RANGE a= expr b= expr ) | ^( INF_RANGE LT a= expr ) | ^( INF_RANGE LE a= expr ) | ^( INF_RANGE GT a= expr ) | ^( INF_RANGE GE a= expr ) )\n int alt21=6;\n switch ( input.LA(1) ) {\n case NEG:\n case ARRAY_ITEM:\n case FUNC_CALL:\n case ID:\n case EQ:\n case LT:\n case LE:\n case GT:\n case GE:\n case OR:\n case AND:\n case NEQ:\n case PLUS:\n case MINUS:\n case TIMES:\n case DIA:\n case DIV:\n case MOD:\n case POW:\n case NOT:\n case CONST_TRUE:\n case CONST_FALSE:\n case CONST_STR:\n case CONST_INT:\n case CONST_REAL:\n {\n alt21=1;\n }\n break;\n case RANGE:\n {\n alt21=2;\n }\n break;\n case INF_RANGE:\n {\n int LA21_3 = input.LA(2);\n \n if ( (LA21_3==DOWN) ) {\n switch ( input.LA(3) ) {\n case LT:\n {\n alt21=3;\n }\n break;\n case LE:\n {\n alt21=4;\n }\n break;\n case GT:\n {\n alt21=5;\n }\n break;\n case GE:\n {\n alt21=6;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 21, 4, input);\n \n throw nvae;\n }\n \n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 21, 3, input);\n \n throw nvae;\n }\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 21, 0, input);\n \n throw nvae;\n }\n \n switch (alt21) {\n case 1 :\n // src/glossa/grammars/ASTInterpreter.g:689:4: a= expr\n {\n pushFollow(FOLLOW_expr_in_caseExprListItem2299);\n a=expr();\n \n state._fsp--;\n \n \n if(InterpreterUtils.equals(target, (a!=null?a.result:null))){\n success = true;\n }else{\n success = false;\n }\n \n \n }\n break;\n case 2 :\n // src/glossa/grammars/ASTInterpreter.g:696:10: ^( RANGE a= expr b= expr )\n {\n match(input,RANGE,FOLLOW_RANGE_in_caseExprListItem2326); \n \n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expr_in_caseExprListItem2330);\n a=expr();\n \n state._fsp--;\n \n pushFollow(FOLLOW_expr_in_caseExprListItem2334);\n b=expr();\n \n state._fsp--;\n \n \n match(input, Token.UP, null); \n \n if(InterpreterUtils.greaterThanOrEqual(target, (a!=null?a.result:null)) && InterpreterUtils.lowerThanOrEqual(target, (b!=null?b.result:null))){\n success = true;\n }else{\n success = false;\n }\n \n \n }\n break;\n case 3 :\n // src/glossa/grammars/ASTInterpreter.g:704:10: ^( INF_RANGE LT a= expr )\n {\n match(input,INF_RANGE,FOLLOW_INF_RANGE_in_caseExprListItem2385); \n \n match(input, Token.DOWN, null); \n match(input,LT,FOLLOW_LT_in_caseExprListItem2387); \n pushFollow(FOLLOW_expr_in_caseExprListItem2391);\n a=expr();\n \n state._fsp--;\n \n \n match(input, Token.UP, null); \n \n if(InterpreterUtils.lowerThan(target, (a!=null?a.result:null))){\n success = true;\n }else{\n success = false;\n }\n \n \n }\n break;\n case 4 :\n // src/glossa/grammars/ASTInterpreter.g:712:17: ^( INF_RANGE LE a= expr )\n {\n match(input,INF_RANGE,FOLLOW_INF_RANGE_in_caseExprListItem2449); \n \n match(input, Token.DOWN, null); \n match(input,LE,FOLLOW_LE_in_caseExprListItem2451); \n pushFollow(FOLLOW_expr_in_caseExprListItem2455);\n a=expr();\n \n state._fsp--;\n \n \n match(input, Token.UP, null); \n \n if(InterpreterUtils.lowerThanOrEqual(target, (a!=null?a.result:null))){\n success = true;\n }else{\n success = false;\n }\n \n \n }\n break;\n case 5 :\n // src/glossa/grammars/ASTInterpreter.g:720:17: ^( INF_RANGE GT a= expr )\n {\n match(input,INF_RANGE,FOLLOW_INF_RANGE_in_caseExprListItem2513); \n \n match(input, Token.DOWN, null); \n match(input,GT,FOLLOW_GT_in_caseExprListItem2515); \n pushFollow(FOLLOW_expr_in_caseExprListItem2519);\n a=expr();\n \n state._fsp--;\n \n \n match(input, Token.UP, null); \n \n if(InterpreterUtils.greaterThan(target, (a!=null?a.result:null))){\n success = true;\n }else{\n success = false;\n }\n \n \n }\n break;\n case 6 :\n // src/glossa/grammars/ASTInterpreter.g:728:17: ^( INF_RANGE GE a= expr )\n {\n match(input,INF_RANGE,FOLLOW_INF_RANGE_in_caseExprListItem2577); \n \n match(input, Token.DOWN, null); \n match(input,GE,FOLLOW_GE_in_caseExprListItem2579); \n pushFollow(FOLLOW_expr_in_caseExprListItem2583);\n a=expr();\n \n state._fsp--;\n \n \n match(input, Token.UP, null); \n \n if(InterpreterUtils.greaterThanOrEqual(target, (a!=null?a.result:null))){\n success = true;\n }else{\n success = false;\n }\n \n \n }\n break;\n \n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return success;\n }", "title": "" }, { "docid": "90f8887a8660383fb5bb16293b4c8e21", "score": "0.40508366", "text": "myExpression getMyThenConstraint();", "title": "" }, { "docid": "99a77e2be5c33f99df9899b170b20aaa", "score": "0.40460482", "text": "private void factor() {\n if(is(TK.LPAREN)){\n System.out.print(\" (\");//********** \n vec.addElement(\"(\");//*************************\n scan();\n expression();\n System.out.print(\" )\");//********** \n vec.addElement(\")\");//*************************\n mustbe(TK.RPAREN);\n }\n else if(is(TK.ID)){ \n newSym = new Symbol(tok.lineNumber, table.depth, tok.string);\n table.checkSym(newSym); //prints in the compare\n vec.addElement(\"x_\"+tok.string);//*************************\n scan();\n }\n else if(is(TK.NUM)){ \n System.out.print(\" \"+tok.string);//**********\n vec.addElement(tok.string);//*************************\n scan();\n \n }\n else{parse_error(\"factor\");}\n }", "title": "" }, { "docid": "d38cd8d01f06fa6953e2485a4e544dff", "score": "0.40454423", "text": "public static boolean checkAssignement(Formula f, boolean[] inputs){\n //System.out.println(\"Formula.checkAssignement\");\n if(f.getN()==inputs.length){\n ArrayList<Clause> clauseList= f.getClauses();\n for (Clause clause : clauseList) {//it depends\n if(!(f.getClauseValue(clause, inputs))){\n return false;//formula is not true\n }\n }\n return true;//formula has been proven by the input\n }\n else{\n System.out.println(\"The input does not match with the variable number!\");\n return false;\n }\n }", "title": "" }, { "docid": "5f81b0150e5d3c5df9dd55303744b8b8", "score": "0.404301", "text": "private void statement() {\n if (is(TK.ID)){ assignment();}\n else if(is(TK.PRINT)){ print(); }\n else if (is(TK.IF)){if_fn();}\n else if (is(TK.DO)){do_fn();}\n else if (is(TK.FA)){fa();} \n else parse_error(\"expected a statement\");\n }", "title": "" }, { "docid": "ad83045a220711ca61c8be5c492a46ba", "score": "0.40383235", "text": "public R visit(AndExpression n) {\n R _ret=null;\n n.f0.accept(this);\n n.f1.accept(this);\n n.f2.accept(this);\n return _ret;\n }", "title": "" }, { "docid": "b922f9461924a6ed1204b4401bc99dd6", "score": "0.40370232", "text": "public R visit(IfStatement n) {\n R _ret=null;\n n.f0.accept(this);\n n.f1.accept(this);\n n.f2.accept(this);\n n.f3.accept(this);\n n.f4.accept(this);\n n.f5.accept(this);\n n.f6.accept(this);\n return _ret;\n }", "title": "" }, { "docid": "276a5a08eb191295dceccd3c0ab37867", "score": "0.4036499", "text": "@Override\n\tpublic void initialize() throws Exception {\n\t\tstorage.initialize();\n\t\t// the fundamental truths of DL reasoning: \n\t\tint thing = storage.getID(BasicExpressionVisitor.OP_THING), nothing = storage.getID(BasicExpressionVisitor.OP_NOTHING); \n\t\tstorage.makePredicateAssertion(\"sco\",thing,thing);\n\t\tstorage.makePredicateAssertion(\"sco\",nothing,nothing);\n\t\tstorage.makePredicateAssertion(\"sco\",nothing,thing);\n\t\t//storage.makePredicateAssertion(\"subconjunctionof\",nothing,thing,nothing);\n\t\tstorage.makePredicateAssertion(\"subconjunctionof\",thing,nothing,nothing);\n\t\tstorage.makePredicateAssertion(\"nonempty\",thing);\n\t\tint botobjprop = storage.getID(BasicExpressionVisitor.OP_BOTTOM_OBJECT_PROPERTY), \n\t\t botdatprop = storage.getID(BasicExpressionVisitor.OP_BOTTOM_DATA_PROPERTY);\n\t\tstorage.makePredicateAssertion(\"spo\",botobjprop,botobjprop);\n\t\tstorage.makePredicateAssertion(\"disjoint\",botobjprop,botobjprop);\n\t\tstorage.makePredicateAssertion(\"dspo\",botdatprop,botdatprop);\n\t\tstorage.makePredicateAssertion(\"ddisjoint\",botdatprop,botdatprop);\n\t\t\n\t int toptype = storage.getID(Literals.TOP_DATATYPE), bottype = storage.getID(Literals.BOTTOM_DATATYPE);\n\t\tstorage.makePredicateAssertion(\"dsco\",toptype,toptype);\n\t\tstorage.makePredicateAssertion(\"dsco\",bottype,bottype);\n\t\tstorage.makePredicateAssertion(\"dsco\",bottype,toptype);\n\t\t//storage.makePredicateAssertion(\"dsubconjunctionof\",bottype,toptype,bottype);\n\t\tstorage.makePredicateAssertion(\"dsubconjunctionof\",toptype,bottype,bottype);\n\t\tstorage.makePredicateAssertion(\"dnonempty\",toptype);\n\t\tint owlReal = storage.getID(Literals.OWL_real);\n\t\tint owlRational = storage.getID(Literals.OWL_rational);\n\t\tint xsdDecimal = storage.getID(Literals.XSD_decimal);\n\t\tint xsdInteger = storage.getID(Literals.XSD_integer);\n\t\tint xsdNonNegativeInteger = storage.getID(Literals.XSD_nonNegativeInteger);\n\t\tint xsdNegativeInteger = storage.getID(Literals.XSD_negativeInteger);\n\t\tint xsdNonPositiveInteger = storage.getID(Literals.XSD_nonPositiveInteger);\n\t\tint xsdPositiveInteger = storage.getID(Literals.XSD_positiveInteger);\n\t\tint xsdLong = storage.getID(Literals.XSD_long);\n\t\tint xsdInt = storage.getID(Literals.XSD_int);\n\t\tint xsdShort = storage.getID(Literals.XSD_short);\n\t\tint xsdByte = storage.getID(Literals.XSD_byte);\n\t\tint xsdUnsignedLong = storage.getID(Literals.XSD_unsignedLong);\n\t\tint xsdUnsignedInt = storage.getID(Literals.XSD_unsignedInt);\n\t\tint xsdUnsignedShort = storage.getID(Literals.XSD_unsignedShort);\n\t\tint xsdUnsignedByte = storage.getID(Literals.XSD_unsignedByte);\n\t\tSimpleLiteral zero = Literals.makeSimpleLiteral(\"0\",Literals.XSD_byte);\n\t\tString zerokey = BasicExpressionVisitor.visitSimpleLiteral(zero, storage, BasicExpressionVisitor.Action.WRITEHEAD);\n\t\tint zeroid = storage.getID(zerokey);\n\t\t\n\t\tstorage.makePredicateAssertion(\"dsco\",owlRational,owlReal);\n\t\tstorage.makePredicateAssertion(\"dsco\",xsdDecimal,owlRational);\n\t\tstorage.makePredicateAssertion(\"dsco\",xsdInteger,xsdDecimal);\n\t\tstorage.makePredicateAssertion(\"dsco\",xsdNonNegativeInteger,xsdInteger);\n\t\tstorage.makePredicateAssertion(\"dsco\",xsdPositiveInteger,xsdNonNegativeInteger);\n\t\tstorage.makePredicateAssertion(\"dsco\",xsdNonPositiveInteger,xsdInteger);\n\t\tstorage.makePredicateAssertion(\"dsco\",xsdNegativeInteger,xsdNonPositiveInteger);\n\t\tstorage.makePredicateAssertion(\"dsco\",xsdLong,xsdInteger);\n\t\tstorage.makePredicateAssertion(\"dsco\",xsdInt,xsdLong);\n\t\tstorage.makePredicateAssertion(\"dsco\",xsdShort,xsdInt);\n\t\tstorage.makePredicateAssertion(\"dsco\",xsdByte,xsdShort);\n\t\tstorage.makePredicateAssertion(\"dsco\",xsdUnsignedLong,xsdNonNegativeInteger);\n\t\tstorage.makePredicateAssertion(\"dsco\",xsdUnsignedInt,xsdUnsignedLong);\n\t\tstorage.makePredicateAssertion(\"dsco\",xsdUnsignedShort,xsdUnsignedInt);\n\t\tstorage.makePredicateAssertion(\"dsco\",xsdUnsignedByte,xsdUnsignedShort);\n\t\tstorage.makePredicateAssertion(\"dsubconjunctionof\",xsdLong,xsdNonNegativeInteger,xsdUnsignedLong);\n\t\tstorage.makePredicateAssertion(\"dsubconjunctionof\",xsdInt,xsdUnsignedLong,xsdUnsignedInt);\n\t\tstorage.makePredicateAssertion(\"dsubconjunctionof\",xsdShort,xsdUnsignedInt,xsdUnsignedShort);\n\t\tstorage.makePredicateAssertion(\"dsubconjunctionof\",xsdByte,xsdUnsignedShort,xsdUnsignedByte);\n\t\tstorage.makePredicateAssertion(\"dsubconjunctionof\",xsdNonNegativeInteger,xsdNegativeInteger,bottype);\n\t\tstorage.makePredicateAssertion(\"dsubconjunctionof\",xsdNonPositiveInteger,xsdPositiveInteger,bottype);\n\t\tstorage.makePredicateAssertion(\"dsubconjunctionof\",xsdNonPositiveInteger,xsdNonNegativeInteger,zeroid);\n\t\t\n\t\tList<String> eltypes = Literals.getELDatatypeURIs();\n\t\tfor (int i=0; i<eltypes.size(); i++) {\n\t\t\tstorage.makePredicateAssertion(\"eltype\",storage.getID(eltypes.get(i)));\n\t\t}\n\t\tList<String> numerictypes = Literals.getNumericDatatypeURIs(), othertypes = Literals.getOtherDatatypeURIs();\n\t\tfor (int i=0; i<numerictypes.size(); i++) {\n\t\t\tint ntypeid = storage.getID(numerictypes.get(i));\n\t\t\tBasicExpressionVisitor.createDatarangeTautologies(ntypeid,storage);\n\t\t\tstorage.makePredicateAssertion(\"dnonempty\",ntypeid);\n\t\t\tfor (int j=0; j<othertypes.size(); j++) {\n\t\t\t\tint otypeid = storage.getID(othertypes.get(j));\n\t\t\t\tstorage.makePredicateAssertion(\"dsubconjunctionof\",ntypeid,otypeid,bottype);\n\t\t\t}\n\t\t}\n\t\tfor (int i=0; i<othertypes.size(); i++) {\n\t\t\tint otypeid1 = storage.getID(othertypes.get(i));\n\t\t\tBasicExpressionVisitor.createDatarangeTautologies(otypeid1,storage);\n\t\t\tstorage.makePredicateAssertion(\"dnonempty\",otypeid1);\n\t\t\tfor (int j=i+1; j<othertypes.size(); j++) {\n\t\t\t\tint otypeid2 = storage.getID(othertypes.get(j));\n\t\t\t\tstorage.makePredicateAssertion(\"dsubconjunctionof\",otypeid1,otypeid2,bottype);\n\t\t\t}\n\t\t}\n\t\tstorage.commit();\n\t}", "title": "" }, { "docid": "9f23fc568292771726eecda40c248be3", "score": "0.40353912", "text": "private QueryExpression parsePrimary() throws QuerySyntaxException {\n switch (token.kind) {\n case WORD: {\n String word = consume(TokenKind.WORD);\n if (token.kind == TokenKind.LPAREN) {\n QueryFunction function = functions.get(word);\n if (function == null) {\n throw syntaxError(token);\n }\n List<Argument> args = new ArrayList<>();\n TokenKind tokenKind = TokenKind.LPAREN;\n int argsSeen = 0;\n for (ArgumentType type : function.getArgumentTypes()) {\n if (token.kind == TokenKind.RPAREN && argsSeen >= function.getMandatoryArguments()) {\n break;\n }\n\n consume(tokenKind);\n tokenKind = TokenKind.COMMA;\n switch (type) {\n case EXPRESSION:\n args.add(Argument.of(parseExpression()));\n break;\n\n case WORD:\n args.add(Argument.of(consume(TokenKind.WORD)));\n break;\n\n case INTEGER:\n args.add(Argument.of(consumeIntLiteral()));\n break;\n\n default:\n throw new IllegalStateException();\n }\n\n argsSeen++;\n }\n\n consume(TokenKind.RPAREN);\n return new FunctionExpression(function, args);\n } else {\n return validateTargetLiteral(word);\n }\n }\n case LET: {\n consume(TokenKind.LET);\n String name = consume(TokenKind.WORD);\n consume(TokenKind.EQUALS);\n QueryExpression varExpr = parseExpression();\n consume(TokenKind.IN);\n QueryExpression bodyExpr = parseExpression();\n return new LetExpression(name, varExpr, bodyExpr);\n }\n case LPAREN: {\n consume(TokenKind.LPAREN);\n QueryExpression expr = parseExpression();\n consume(TokenKind.RPAREN);\n return expr;\n }\n case SET: {\n nextToken();\n consume(TokenKind.LPAREN);\n List<TargetLiteral> words = new ArrayList<>();\n while (token.kind == TokenKind.WORD) {\n words.add(validateTargetLiteral(consume(TokenKind.WORD)));\n }\n consume(TokenKind.RPAREN);\n return new SetExpression(words);\n }\n default:\n throw syntaxError(token);\n }\n }", "title": "" }, { "docid": "578adcea062107545cbde6c7dffd69dd", "score": "0.402954", "text": "abstract public NumberTerm and(NumberTerm t);", "title": "" }, { "docid": "d2ed89fc184fa8a044e2672a77ef5127", "score": "0.40234932", "text": "public void addRule(String rule){\n String[] splitRule = rule.split(\":-\");\n\n /* Retrieve rule predicate name.*/\n String[] rulePredicate = splitRule[0].split(\"\\\\(\");\n String predicate = rulePredicate[0];\n\n /* Retrieve rule probability. */\n int index = rule.lastIndexOf(\":\");\n String probability = rule.substring(index+1,rule.length()-1);\n Double prob = Double.parseDouble(probability);\n\n /* Retrieve rule head terms*/\n rulePredicate[1] = rulePredicate[1].substring(0,rulePredicate[1].length()-1);\n List<String> listOfTerms = new ArrayList<>();\n String[] addAtoms = rulePredicate[1].split(\",\");\n for (String y : addAtoms) {\n listOfTerms.add(y);\n }\n Expression headExpression = new Expression(predicate,listOfTerms,prob);\n\n /* Expression for rule body */\n String body = splitRule[1].substring(0,splitRule[1].lastIndexOf(\":\"));\n body = body.concat(\",\");\n String[] bodyExpressions = body.split(\"\\\\),\");\n ArrayList<Expression> bodyPredicates = new ArrayList<>();\n for (String y : bodyExpressions) {\n List<String> listOfBodyTerms = new ArrayList<>();\n /* Body Predicates. */\n String[] ruleBodyPredicate = y.split(\"\\\\(\");\n String bodyPredicate = ruleBodyPredicate[0];\n String[] bodyTerms = ruleBodyPredicate[1].split(\",\");\n for (String z : bodyTerms) {\n listOfBodyTerms.add(z);\n }\n Expression bodyExpression = new Expression(bodyPredicate,listOfBodyTerms,null);\n bodyPredicates.add(bodyExpression);\n }\n db.idb.addRule(headExpression,bodyPredicates);\n }", "title": "" }, { "docid": "ade96e246f88de77494a7e1ceddd6615", "score": "0.40224677", "text": "private Expr flwor() throws QueryException {\n final int s = ctx.vars.size();\n \n final ForLet[] fl = forLet();\n if(fl == null) return null;\n \n Expr where = null;\n if(consumeWS(WHERE)) {\n ap = qp;\n where = check(single(), NOWHERE);\n alter = NOWHERE;\n }\n \n Var[] group = null;\n if(ctx.xquery11 && consumeWS(GROUP)) {\n check(BY);\n ap = qp;\n do group = groupSpec(group); while(consumeWS2(COMMA));\n alter = GRPBY;\n }\n \n OrderBy[] order = null;\n final boolean stable = consumeWS(STABLE);\n if(stable) check(ORDER);\n \n if(stable || consumeWS(ORDER)) {\n check(BY);\n ap = qp;\n do order = orderSpec(order); while(consumeWS2(COMMA));\n if(order != null) order = Array.add(order, new OrderBy(input()));\n alter = ORDERBY;\n }\n \n if(!consumeWS(RETURN)) {\n if(alter != null) error();\n error(where == null ? FLWORWHERE : order == null ? FLWORORD : FLWORRET);\n }\n final Expr ret = check(single(), NORETURN);\n ctx.vars.reset(s);\n return ret == Empty.SEQ ? ret : order == null && group == null ?\n new FLWR(fl, where, ret, input()) : group == null ?\n new FLWOR(fl, where, new Order(input(), order), ret, input()) :\n new GFLWOR(fl, where, order == null ? null : new Order(input(), order),\n new Group(input(), group), ret, input());\n }", "title": "" }, { "docid": "b764c01630907758ad45f398e29a3cb1", "score": "0.40195116", "text": "public final eu.hyvar.feature.expression.HyConditionalFeatureReferenceExpression parse_eu_hyvar_feature_expression_HyConditionalFeatureReferenceExpression() throws RecognitionException {\n eu.hyvar.feature.expression.HyConditionalFeatureReferenceExpression element = null;\n\n int parse_eu_hyvar_feature_expression_HyConditionalFeatureReferenceExpression_StartIndex = input.index();\n\n Token a0=null;\n Token a1=null;\n Token a2=null;\n eu.hyvar.feature.expression.HyVersionRestriction a3_0 =null;\n\n\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 19) ) { return element; }\n\n // Hyconstraints.g:3884:4: (a0= '?' ( (a1= QUOTED_34_34 ) | (a2= IDENTIFIER_TOKEN ) ) (a3_0= parse_eu_hyvar_feature_expression_HyVersionRestriction ) )\n // Hyconstraints.g:3885:4: a0= '?' ( (a1= QUOTED_34_34 ) | (a2= IDENTIFIER_TOKEN ) ) (a3_0= parse_eu_hyvar_feature_expression_HyVersionRestriction )\n {\n a0=(Token)match(input,30,FOLLOW_30_in_parse_eu_hyvar_feature_expression_HyConditionalFeatureReferenceExpression3041); if (state.failed) return element;\n\n if ( state.backtracking==0 ) {\n if (element == null) {\n element = eu.hyvar.feature.expression.HyExpressionFactory.eINSTANCE.createHyConditionalFeatureReferenceExpression();\n startIncompleteElement(element);\n }\n collectHiddenTokens(element);\n retrieveLayoutInformation(element, eu.hyvar.feature.constraint.resource.hyconstraints.grammar.HyconstraintsGrammarInformationProvider.HYEXPRESSION_8_0_0_0, null, true);\n copyLocalizationInfos((CommonToken)a0, element);\n }\n\n if ( state.backtracking==0 ) {\n // expected elements (follow set)\n addExpectedElement(null, eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[745]);\n addExpectedElement(null, eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[746]);\n }\n\n // Hyconstraints.g:3900:0: ( (a1= QUOTED_34_34 ) | (a2= IDENTIFIER_TOKEN ) )\n int alt31=2;\n int LA31_0 = input.LA(1);\n\n if ( (LA31_0==QUOTED_34_34) ) {\n alt31=1;\n }\n else if ( (LA31_0==IDENTIFIER_TOKEN) ) {\n alt31=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return element;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 31, 0, input);\n\n throw nvae;\n\n }\n switch (alt31) {\n case 1 :\n // Hyconstraints.g:3901:0: (a1= QUOTED_34_34 )\n {\n // Hyconstraints.g:3901:4: (a1= QUOTED_34_34 )\n // Hyconstraints.g:3902:4: a1= QUOTED_34_34\n {\n a1=(Token)match(input,QUOTED_34_34,FOLLOW_QUOTED_34_34_in_parse_eu_hyvar_feature_expression_HyConditionalFeatureReferenceExpression3056); if (state.failed) return element;\n\n if ( state.backtracking==0 ) {\n if (terminateParsing) {\n throw new eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsTerminateParsingException();\n }\n if (element == null) {\n element = eu.hyvar.feature.expression.HyExpressionFactory.eINSTANCE.createHyConditionalFeatureReferenceExpression();\n startIncompleteElement(element);\n }\n if (a1 != null) {\n eu.hyvar.feature.constraint.resource.hyconstraints.IHyconstraintsTokenResolver tokenResolver = tokenResolverFactory.createTokenResolver(\"QUOTED_34_34\");\n tokenResolver.setOptions(getOptions());\n eu.hyvar.feature.constraint.resource.hyconstraints.IHyconstraintsTokenResolveResult result = getFreshTokenResolveResult();\n tokenResolver.resolve(a1.getText(), element.eClass().getEStructuralFeature(eu.hyvar.feature.expression.HyExpressionPackage.HY_CONDITIONAL_FEATURE_REFERENCE_EXPRESSION__FEATURE), result);\n Object resolvedObject = result.getResolvedToken();\n if (resolvedObject == null) {\n addErrorToResource(result.getErrorMessage(), ((CommonToken) a1).getLine(), ((CommonToken) a1).getCharPositionInLine(), ((CommonToken) a1).getStartIndex(), ((CommonToken) a1).getStopIndex());\n }\n String resolved = (String) resolvedObject;\n eu.hyvar.feature.HyFeature proxy = eu.hyvar.feature.HyFeatureFactory.eINSTANCE.createHyFeature();\n collectHiddenTokens(element);\n registerContextDependentProxy(new eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsContextDependentURIFragmentFactory<eu.hyvar.feature.expression.HyAbstractFeatureReferenceExpression, eu.hyvar.feature.HyFeature>(getReferenceResolverSwitch() == null ? null : getReferenceResolverSwitch().getHyAbstractFeatureReferenceExpressionFeatureReferenceResolver()), element, (EReference) element.eClass().getEStructuralFeature(eu.hyvar.feature.expression.HyExpressionPackage.HY_CONDITIONAL_FEATURE_REFERENCE_EXPRESSION__FEATURE), resolved, proxy);\n if (proxy != null) {\n Object value = proxy;\n element.eSet(element.eClass().getEStructuralFeature(eu.hyvar.feature.expression.HyExpressionPackage.HY_CONDITIONAL_FEATURE_REFERENCE_EXPRESSION__FEATURE), value);\n completedElement(value, false);\n }\n collectHiddenTokens(element);\n retrieveLayoutInformation(element, eu.hyvar.feature.constraint.resource.hyconstraints.grammar.HyconstraintsGrammarInformationProvider.HYEXPRESSION_8_0_0_1_0_0_0, proxy, true);\n copyLocalizationInfos((CommonToken) a1, element);\n copyLocalizationInfos((CommonToken) a1, proxy);\n }\n }\n\n }\n\n\n if ( state.backtracking==0 ) {\n // expected elements (follow set)\n addExpectedElement(eu.hyvar.feature.expression.HyExpressionPackage.eINSTANCE.getHyConditionalFeatureReferenceExpression(), eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[747]);\n addExpectedElement(eu.hyvar.feature.expression.HyExpressionPackage.eINSTANCE.getHyConditionalFeatureReferenceExpression(), eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[748]);\n }\n\n }\n break;\n case 2 :\n // Hyconstraints.g:3943:2: (a2= IDENTIFIER_TOKEN )\n {\n // Hyconstraints.g:3943:2: (a2= IDENTIFIER_TOKEN )\n // Hyconstraints.g:3944:4: a2= IDENTIFIER_TOKEN\n {\n a2=(Token)match(input,IDENTIFIER_TOKEN,FOLLOW_IDENTIFIER_TOKEN_in_parse_eu_hyvar_feature_expression_HyConditionalFeatureReferenceExpression3073); if (state.failed) return element;\n\n if ( state.backtracking==0 ) {\n if (terminateParsing) {\n throw new eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsTerminateParsingException();\n }\n if (element == null) {\n element = eu.hyvar.feature.expression.HyExpressionFactory.eINSTANCE.createHyConditionalFeatureReferenceExpression();\n startIncompleteElement(element);\n }\n if (a2 != null) {\n eu.hyvar.feature.constraint.resource.hyconstraints.IHyconstraintsTokenResolver tokenResolver = tokenResolverFactory.createTokenResolver(\"IDENTIFIER_TOKEN\");\n tokenResolver.setOptions(getOptions());\n eu.hyvar.feature.constraint.resource.hyconstraints.IHyconstraintsTokenResolveResult result = getFreshTokenResolveResult();\n tokenResolver.resolve(a2.getText(), element.eClass().getEStructuralFeature(eu.hyvar.feature.expression.HyExpressionPackage.HY_CONDITIONAL_FEATURE_REFERENCE_EXPRESSION__FEATURE), result);\n Object resolvedObject = result.getResolvedToken();\n if (resolvedObject == null) {\n addErrorToResource(result.getErrorMessage(), ((CommonToken) a2).getLine(), ((CommonToken) a2).getCharPositionInLine(), ((CommonToken) a2).getStartIndex(), ((CommonToken) a2).getStopIndex());\n }\n String resolved = (String) resolvedObject;\n eu.hyvar.feature.HyFeature proxy = eu.hyvar.feature.HyFeatureFactory.eINSTANCE.createHyFeature();\n collectHiddenTokens(element);\n registerContextDependentProxy(new eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsContextDependentURIFragmentFactory<eu.hyvar.feature.expression.HyAbstractFeatureReferenceExpression, eu.hyvar.feature.HyFeature>(getReferenceResolverSwitch() == null ? null : getReferenceResolverSwitch().getHyAbstractFeatureReferenceExpressionFeatureReferenceResolver()), element, (EReference) element.eClass().getEStructuralFeature(eu.hyvar.feature.expression.HyExpressionPackage.HY_CONDITIONAL_FEATURE_REFERENCE_EXPRESSION__FEATURE), resolved, proxy);\n if (proxy != null) {\n Object value = proxy;\n element.eSet(element.eClass().getEStructuralFeature(eu.hyvar.feature.expression.HyExpressionPackage.HY_CONDITIONAL_FEATURE_REFERENCE_EXPRESSION__FEATURE), value);\n completedElement(value, false);\n }\n collectHiddenTokens(element);\n retrieveLayoutInformation(element, eu.hyvar.feature.constraint.resource.hyconstraints.grammar.HyconstraintsGrammarInformationProvider.HYEXPRESSION_8_0_0_1_0_1_0, proxy, true);\n copyLocalizationInfos((CommonToken) a2, element);\n copyLocalizationInfos((CommonToken) a2, proxy);\n }\n }\n\n }\n\n\n if ( state.backtracking==0 ) {\n // expected elements (follow set)\n addExpectedElement(eu.hyvar.feature.expression.HyExpressionPackage.eINSTANCE.getHyConditionalFeatureReferenceExpression(), eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[749]);\n addExpectedElement(eu.hyvar.feature.expression.HyExpressionPackage.eINSTANCE.getHyConditionalFeatureReferenceExpression(), eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[750]);\n }\n\n }\n break;\n\n }\n\n\n if ( state.backtracking==0 ) {\n // expected elements (follow set)\n addExpectedElement(eu.hyvar.feature.expression.HyExpressionPackage.eINSTANCE.getHyConditionalFeatureReferenceExpression(), eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[751]);\n addExpectedElement(eu.hyvar.feature.expression.HyExpressionPackage.eINSTANCE.getHyConditionalFeatureReferenceExpression(), eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[752]);\n }\n\n // Hyconstraints.g:3991:6: (a3_0= parse_eu_hyvar_feature_expression_HyVersionRestriction )\n // Hyconstraints.g:3992:6: a3_0= parse_eu_hyvar_feature_expression_HyVersionRestriction\n {\n pushFollow(FOLLOW_parse_eu_hyvar_feature_expression_HyVersionRestriction_in_parse_eu_hyvar_feature_expression_HyConditionalFeatureReferenceExpression3093);\n a3_0=parse_eu_hyvar_feature_expression_HyVersionRestriction();\n\n state._fsp--;\n if (state.failed) return element;\n\n if ( state.backtracking==0 ) {\n if (terminateParsing) {\n throw new eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsTerminateParsingException();\n }\n if (element == null) {\n element = eu.hyvar.feature.expression.HyExpressionFactory.eINSTANCE.createHyConditionalFeatureReferenceExpression();\n startIncompleteElement(element);\n }\n if (a3_0 != null) {\n if (a3_0 != null) {\n Object value = a3_0;\n element.eSet(element.eClass().getEStructuralFeature(eu.hyvar.feature.expression.HyExpressionPackage.HY_CONDITIONAL_FEATURE_REFERENCE_EXPRESSION__VERSION_RESTRICTION), value);\n completedElement(value, true);\n }\n collectHiddenTokens(element);\n retrieveLayoutInformation(element, eu.hyvar.feature.constraint.resource.hyconstraints.grammar.HyconstraintsGrammarInformationProvider.HYEXPRESSION_8_0_0_2, a3_0, true);\n copyLocalizationInfos(a3_0, element);\n }\n }\n\n }\n\n\n if ( state.backtracking==0 ) {\n // expected elements (follow set)\n addExpectedElement(null, eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[753]);\n addExpectedElement(eu.hyvar.feature.constraint.HyConstraintPackage.eINSTANCE.getHyConstraintModel(), eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[754]);\n addExpectedElement(eu.hyvar.feature.constraint.HyConstraintPackage.eINSTANCE.getHyConstraintModel(), eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[755]);\n addExpectedElement(eu.hyvar.feature.constraint.HyConstraintPackage.eINSTANCE.getHyConstraintModel(), eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[756]);\n addExpectedElement(eu.hyvar.feature.constraint.HyConstraintPackage.eINSTANCE.getHyConstraintModel(), eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[757]);\n addExpectedElement(eu.hyvar.feature.constraint.HyConstraintPackage.eINSTANCE.getHyConstraintModel(), eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[758]);\n addExpectedElement(eu.hyvar.feature.constraint.HyConstraintPackage.eINSTANCE.getHyConstraintModel(), eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[759]);\n addExpectedElement(eu.hyvar.feature.constraint.HyConstraintPackage.eINSTANCE.getHyConstraintModel(), eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[760]);\n addExpectedElement(eu.hyvar.feature.constraint.HyConstraintPackage.eINSTANCE.getHyConstraintModel(), eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[761]);\n addExpectedElement(eu.hyvar.feature.constraint.HyConstraintPackage.eINSTANCE.getHyConstraintModel(), eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[762]);\n addExpectedElement(eu.hyvar.feature.constraint.HyConstraintPackage.eINSTANCE.getHyConstraintModel(), eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[763]);\n addExpectedElement(eu.hyvar.feature.constraint.HyConstraintPackage.eINSTANCE.getHyConstraintModel(), eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[764]);\n addExpectedElement(eu.hyvar.feature.constraint.HyConstraintPackage.eINSTANCE.getHyConstraintModel(), eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[765]);\n addExpectedElement(eu.hyvar.feature.constraint.HyConstraintPackage.eINSTANCE.getHyConstraintModel(), eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[766]);\n addExpectedElement(eu.hyvar.feature.constraint.HyConstraintPackage.eINSTANCE.getHyConstraintModel(), eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[767]);\n addExpectedElement(eu.hyvar.feature.constraint.HyConstraintPackage.eINSTANCE.getHyConstraintModel(), eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[768]);\n addExpectedElement(eu.hyvar.feature.constraint.HyConstraintPackage.eINSTANCE.getHyConstraintModel(), eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[769]);\n addExpectedElement(null, eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[770]);\n addExpectedElement(null, eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[771]);\n addExpectedElement(null, eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[772]);\n addExpectedElement(null, eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[773]);\n addExpectedElement(null, eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[774]);\n addExpectedElement(null, eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[775]);\n addExpectedElement(null, eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[776]);\n addExpectedElement(null, eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[777]);\n addExpectedElement(null, eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[778]);\n addExpectedElement(null, eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[779]);\n addExpectedElement(null, eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[780]);\n addExpectedElement(null, eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[781]);\n addExpectedElement(null, eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[782]);\n addExpectedElement(null, eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[783]);\n addExpectedElement(null, eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[784]);\n addExpectedElement(null, eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[785]);\n addExpectedElement(null, eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[786]);\n addExpectedElement(null, eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[787]);\n addExpectedElement(null, eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[788]);\n addExpectedElement(null, eu.hyvar.feature.constraint.resource.hyconstraints.mopp.HyconstraintsExpectationConstants.EXPECTATIONS[789]);\n }\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n if ( state.backtracking>0 ) { memoize(input, 19, parse_eu_hyvar_feature_expression_HyConditionalFeatureReferenceExpression_StartIndex); }\n\n }\n return element;\n }", "title": "" }, { "docid": "cc460e65d21fd48552a8c736aaa8119a", "score": "0.40155458", "text": "boolean hasTerm();", "title": "" }, { "docid": "ea24ff8fb97587bba2787334c000fdce", "score": "0.40143386", "text": "public AllSubstitution FOL_BC_OR(Predicate goal, AllSubstitution theta, int index)\n\t{\n\t\tString key = goal.fnName;\n\t\t\n\t\t//get all the sentence which has conclusion as goal.\n\t\tList<Sentence> sents = (KBObj.KB.get(key)==null)? null:KBObj.KB.get(key).sentences;\t\t\n\t\tif(sents!=null)\n\t\t{\n\t\t\t//Iterate through all the sentence which have conclusion as sentence.\n\t\t\t//for (Sentence sentence : sents) {\n\t\t\tfor(int i = index; i<sents.size(); i++)\n\t\t\t{\n\t\t\t\tSentence sentence = sents.get(i);\n\t\t\t\tAllSubstitution subst = UNIFY(sentence.rhs, goal, sentence);\n\t\t\t\t\n\t\t\t\tAllSubstitution thetaPrime = FOL_BC_AND(sentence.lhs, subst);\n\t\t\t\tif(thetaPrime!=null && thetaPrime.status)\n\t\t\t\t{\n\t\t\t\t\treturn thetaPrime;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tAllSubstitution t = new AllSubstitution();\n\t\tt.status = false;\n\t\treturn t;\n\t}", "title": "" }, { "docid": "42690f863232bf776728ce176e4b5740", "score": "0.40123534", "text": "public R visit(FormalParameterList n) {\n R _ret=null;\n n.f0.accept(this);\n n.f1.accept(this);\n return _ret;\n }", "title": "" }, { "docid": "bad30ceb02cc99ac8f44609b694a7ce5", "score": "0.40121013", "text": "@Override\n\tpublic void visit(AndExpression arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "e9afb17007b770781d9ac1bbb3e3dbe4", "score": "0.40114757", "text": "final public String UnaryExpression() throws ParseException {\n /*@bgen(jjtree) UnaryExpression */\n SimpleNode jjtn000 = new SimpleNode(JJTUNARYEXPRESSION);\n boolean jjtc000 = true;\n jjtree.openNodeScope(jjtn000);Token t;String type=\"\";\n try {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case LEFTPAREN_TKN:\n t = jj_consume_token(LEFTPAREN_TKN);\n termString+=t.image;\n type = AddExpression();\n t = jj_consume_token(RIGHTPAREN_TKN);\n termString+=t.image;\n break;\n case LEFTBRACKET_TKN:\n t = jj_consume_token(LEFTBRACKET_TKN);\n isLB=true;\n termString+=t.image;\n type = AddExpression();\n t = jj_consume_token(RIGHTBRACKET_TKN);\n //type=stSort.pop();\n termString+=t.image;\n isLB=false;\n break;\n case BOOLEAN_TKN:\n case INTEGER_TKN:\n case LONG_TKN:\n case STRING_TKN:\n case DATETIME_TKN:\n case DOUBLE_TKN:\n case FLOAT_TKN:\n case IDENTIFIER:\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case BOOLEAN_TKN:\n case INTEGER_TKN:\n case LONG_TKN:\n case STRING_TKN:\n case DATETIME_TKN:\n case DOUBLE_TKN:\n case FLOAT_TKN:\n t = BasicType();\n break;\n case IDENTIFIER:\n t = Identifier();\n break;\n default:\n jj_la1[50] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n termString+=t.image;\n //判断类型(类子名、操作名、变量名�?\n if(axUnit.isGlobalVar(t.image)) //全局变量\n {\n type=axUnit.getGlobalVarType(t.image);\n stSort.push(type);\n }\n else if(sortST.isSort(t.image)) //当前类子�?\n {\n type=t.image;\n stSort.push(type);\n }\n else if(isGEorLE.equals(\"LE\")) //�?��等式中的�?��变量\n {\n if(letEST.isLocalVar(t.image))\n {\n type=letEST.getLocalVarType(t.image);\n stSort.push(type);\n }\n else //为未知合法操作名或非�?\n {\n type=\"unknownOp!\";\n System.out.println(\"jjt952\"+t.image);\n if(sortST.checkOperType(t.image,specName,userName).equals(\"ConstOp\"))\n {\n type=sortST.getSortName();\n stSort.push(t.image);\n }\n else\n {\n currOper=t.image;\n stOper.push(t.image);\n }\n }\n }\n else //为未知合法操作名或非�?\n {\n type=\"unknownOp!\";\n if(sortST.checkOperType(t.image,specName,userName).equals(\"ConstOp\"))\n {\n type=sortST.getSortName();\n stSort.push(t.image);\n }\n else\n {\n currOper=t.image;\n stOper.push(t.image);\n }\n\n }\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case LEFTBRACKET_TKN:\n case LEFTPAREN_TKN:\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case LEFTPAREN_TKN:\n t = jj_consume_token(LEFTPAREN_TKN);\n termString+=t.image;\n paraTypeList=new ArrayList<String>();\n Parameter();\n //初始化参数类型数�?\n t = jj_consume_token(RIGHTPAREN_TKN);\n type=\"unknownOp!\";\n //currSort=stSort.peek();\n currOper=stOper.peek();\n //operOp=new operName();\n //operOp.setOperName(operOp);\n\n termString+=t.image;\n break;\n case LEFTBRACKET_TKN:\n t = jj_consume_token(LEFTBRACKET_TKN);\n termString+=t.image;\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case POSITIVEINT_TKN:\n case IDENTIFIER:\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case IDENTIFIER:\n t = Identifier();\n break;\n case POSITIVEINT_TKN:\n t = jj_consume_token(POSITIVEINT_TKN);\n break;\n default:\n jj_la1[51] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n break;\n default:\n jj_la1[52] = jj_gen;\n ;\n }\n t = jj_consume_token(RIGHTBRACKET_TKN);\n termString+=t.image;System.out.println(\"967\"+termString);\n break;\n default:\n jj_la1[53] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n break;\n default:\n jj_la1[54] = jj_gen;\n ;\n }\n break;\n case CSTRING_TKN:\n t = jj_consume_token(CSTRING_TKN);\n termString+=t.image;type=\"String\";\n break;\n case POSITIVEINT_TKN:\n t = jj_consume_token(POSITIVEINT_TKN);\n termString+=t.image;type=\"Integer\";\n break;\n case REAL_TKN:\n t = jj_consume_token(REAL_TKN);\n termString+=t.image;type=\"Real\";\n break;\n case NULL_TKN:\n t = jj_consume_token(NULL_TKN);\n termString+=t.image;type=\"Null\";\n break;\n case TRUE_TKN:\n case FALSE_TKN:\n BoolTerm();\n type=\"Bool\";\n break;\n default:\n jj_la1[55] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n jjtree.closeNodeScope(jjtn000, true);\n jjtc000 = false;\n {if (true) return type;}\n } catch (Throwable jjte000) {\n if (jjtc000) {\n jjtree.clearNodeScope(jjtn000);\n jjtc000 = false;\n } else {\n jjtree.popNode();\n }\n if (jjte000 instanceof RuntimeException) {\n {if (true) throw (RuntimeException)jjte000;}\n }\n if (jjte000 instanceof ParseException) {\n {if (true) throw (ParseException)jjte000;}\n }\n {if (true) throw (Error)jjte000;}\n } finally {\n if (jjtc000) {\n jjtree.closeNodeScope(jjtn000, true);\n }\n }\n throw new Error(\"Missing return statement in function\");\n }", "title": "" }, { "docid": "5d7a9e2a5624866fd98d79b67e7e013b", "score": "0.40080884", "text": "@Override\n public ProloGraalTerm<?> getHead(){\n return ((ProloGraalIsHeadNode)NodeUtil.findNodeChildren(this).get(0)).getValue();\n }", "title": "" }, { "docid": "fc8e707c64a00bbe94eeaee14f4df3aa", "score": "0.4003691", "text": "public R visit(IfStatement n) {\n R _ret=null;\n n.f0.accept(this);\n return _ret;\n }", "title": "" }, { "docid": "b72aa1e6bed7f1e4dcf801d981acac56", "score": "0.40010878", "text": "public CMLFormula getOrCreateFormula() {\r\n return CMLReactant.getOrCreateFormula(this);\r\n }", "title": "" }, { "docid": "20973c0886ab0d55349a40fb5ae7ab24", "score": "0.39999503", "text": "@Override\n public void enterStatement(JavaParser.StatementContext ctx) {\n if(ctx.getStart().getText().equals(\"if\")) {\n /*\n Select only variables without ! and length >3\n */\n String child = ctx.getChild(1).getText().replace(\"(\", \"\").replace(\")\", \"\");\n\n if(variables.contains(child) && child.length() > 3) {\n\n String field = \" { \\n\\t\\t\\t\\tSystem.out.println(\\\"\"+child+\" \"+ctx.getStart().getLine()+\"\\\");\\n\\t\\t\\t\\t\\b\";\n int ix = ctx.start.getTokenIndex();\n while(!(rewriter.getTokenStream().get(ix).getText().equals(\")\"))) {\n ix++;\n }\n rewriter.insertAfter(rewriter.getTokenStream().get(ix), field);\n rewriter.insertAfter(ctx.getStop(), \"\\n\\t\\t\\t}\");\n }\n\n }\n }", "title": "" }, { "docid": "461cb4e2143c091a88bcf2a5be6787b4", "score": "0.39913654", "text": "ConditionExp createConditionExp();", "title": "" }, { "docid": "07c79ac7aec3b859ff9bb58ca858b466", "score": "0.39903906", "text": "public R visit(IfthenStatement n) {\n R _ret=null;\n if(itr == 0)\n {\n n.f0.accept(this);\n n.f1.accept(this);\n n.f2.accept(this);\n n.f3.accept(this);\n n.f4.accept(this);\n }\n else\n {\n Flag1 = true;\n l_stack.push(l_ind);\n l_ind += 1;\n n.f0.accept(this);\n n.f1.accept(this);\n System.out.print(\"CJUMP \");\n n.f2.accept(this);\n n.f3.accept(this);\n System.out.print(\"L\" + (l_stack.peek()) + \"\\n \");\n n.f4.accept(this);\n System.out.print(\"L\" + (l_stack.peek()) + \" NOOP\\n \");\n l_stack.pop();\n }\n\n return _ret;\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "a4090c33f1bbe932ae2f837a7806d588", "score": "0.0", "text": "@Override\r\n\tpublic void abrirListaReportes() {\n\t\trep_reporte.dibujar();\r\n\t}", "title": "" } ]
[ { "docid": "05a606445504484958a1c21e14b7198e", "score": "0.69474965", "text": "@Override\r\n\tpublic void sapace() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8619203d4867f5c6d05eb9a5354405c0", "score": "0.6920049", "text": "@Override\n\t\tpublic void pintate() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8619203d4867f5c6d05eb9a5354405c0", "score": "0.6920049", "text": "@Override\n\t\tpublic void pintate() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.6676429", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65686274", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "118f2b8a20f48999973063ac332d07d3", "score": "0.6563993", "text": "@Override\r\n\t\t\tpublic void atras() {\n\r\n\t\t\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65278774", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "ffd8193c9cf73515d0f9301b9a7d8817", "score": "0.6485175", "text": "@Override\n\tpublic void morrer() {\n\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.6373858", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "6c2fa45ab362625ae567ee8a229630a4", "score": "0.622455", "text": "@Override\n\tprotected void interr() {\n\t}", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.6224095", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.6224095", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.6224095", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "27e4479db2c37a2e77fe796119b66d4b", "score": "0.61936283", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\r\n\t\t\t}", "title": "" }, { "docid": "0d3bf6f2ee77f787007ba6b4021b5721", "score": "0.6164056", "text": "protected void olha()\r\n\t{\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e3a701d0fdb1fef5e0afd9dc7c345fcb", "score": "0.61634105", "text": "@Override\n\tprotected void generateData() {\n\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "4e49f5db36ca664153e54380025b85d4", "score": "0.6095768", "text": "protected boolean method_21825() {\n }", "title": "" }, { "docid": "67e1a422c8d1e74f6601c8a6d1aaa237", "score": "0.6074471", "text": "@Override\n\tpublic void apagar() {\n\n\t}", "title": "" }, { "docid": "a613dcce17453a8e1eed3b984b6b35b1", "score": "0.6028443", "text": "@Override\n\tpublic void composant() {\n\t}", "title": "" }, { "docid": "6f653341cfc7d30c8418e4b72116f7e2", "score": "0.60278815", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "588ab475e29950e8a1944c4a28fe2189", "score": "0.6027122", "text": "public void mo7036d() {\n }", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6020569", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6020569", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "f2fe8a59406298fe7e97b543f2bf8186", "score": "0.60087883", "text": "@Override\r\n \tpublic void init() {\r\n \t}", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.5988416", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.59858125", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.59858125", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.59858125", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "0ecc2b05fa1b3fe069983a07eba7914d", "score": "0.5978686", "text": "private void inicialitzarTaulell() {\r\n\t\t//PENDENT IMPLEMENTAR\r\n\t}", "title": "" }, { "docid": "9fe3f6ccb967a8bcee9106fbbd56b684", "score": "0.5974211", "text": "@Override\r\n\tpublic void properties() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b044552fe4d8d8225d09361b41fbea3a", "score": "0.59513867", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "fcfbf321ff3e4c56b4e383ce15e49dbb", "score": "0.59429646", "text": "@Override\r\n\tpublic void obtersaida()\r\n\t{\n\t}", "title": "" }, { "docid": "482b1825ec60700f97ed42e420d69d99", "score": "0.59383935", "text": "@Override\n\tpublic void valide() {\n\t}", "title": "" }, { "docid": "b2775812be4cd009dca27a30c5ce78fa", "score": "0.59383595", "text": "@Override\n\tprotected void fouseChange() {\n\n\t}", "title": "" }, { "docid": "4b7e3f693781babf82ed11447db2a554", "score": "0.5929242", "text": "@Override\n\tpublic void concentrarse() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "41e50fb9a0b417818374927eb02c67f1", "score": "0.59280443", "text": "protected void mo5608a() {\n }", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.59228885", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.59228885", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.59228885", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "9a0f5a503f38cb7c40d13ecc89073bd8", "score": "0.58973867", "text": "@Override\r\n\tpublic void getDuriation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9781c90863e9dc9781fafcc4dc828136", "score": "0.58739185", "text": "public void mo7839l() {\n }", "title": "" }, { "docid": "9781c90863e9dc9781fafcc4dc828136", "score": "0.58739185", "text": "public void mo7839l() {\n }", "title": "" }, { "docid": "32d0d506f2de2532fe4789f006c84da0", "score": "0.5863205", "text": "@Override\n\tpublic void bicar() {\n\t\t\n\t}", "title": "" }, { "docid": "02699a98134693036160a045239bddba", "score": "0.58500654", "text": "@Override\r\n\tpublic void zwroc() {\n\r\n\t}", "title": "" }, { "docid": "46569800c9d73cd59bcbec066cdb5304", "score": "0.58491904", "text": "private void lidoInf() {\n\n\n }", "title": "" }, { "docid": "b8d886581a76c72e11ab317e6cb6e2a8", "score": "0.58308905", "text": "@Override\r\n public void rechercher() {\n }", "title": "" }, { "docid": "80b5722cdc9efe11a305e92ea813ac0f", "score": "0.5827698", "text": "@Override\r\n\tpublic void inter() {\n\t\t\r\n\t}", "title": "" }, { "docid": "947b4ee184fe32ab14b8c244b9461c7d", "score": "0.5807026", "text": "@Override\n\tpublic void vida() {\n\n\t}", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.58069414", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c86f446a8bd6af19f88cc011fdf2ffd4", "score": "0.5802792", "text": "public void asustar() {\n // TODO implement here\n \n }", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.58025044", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "c8f75a8f93bc20d4e8695ba99b470e1d", "score": "0.580217", "text": "public void mo1684e() {\n }", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5800657", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5800657", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5800657", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "19b30f4f881d8f7b600c7c12f1c30963", "score": "0.57979786", "text": "public void mo5203c() {\n }", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.57931334", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "bb30a482e2236eb664f8d8fc23724b59", "score": "0.57915", "text": "@Override\n\tprotected void initActb() {\n\t\t\n\t}", "title": "" }, { "docid": "7846476d210d55d45e5540a9c92b1ce3", "score": "0.57903147", "text": "@Override\n\tpublic void chocar() {\n\t\t\n\t}", "title": "" }, { "docid": "7846476d210d55d45e5540a9c92b1ce3", "score": "0.57903147", "text": "@Override\n\tpublic void chocar() {\n\t\t\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "0cc40600dd2e7cb9f56bd77995e01fc3", "score": "0.5780891", "text": "@Override\n\tpublic void Miow() {\n\t\t\n\t}", "title": "" }, { "docid": "a5600ed00582d8ca8d293829dcfd6c38", "score": "0.57797045", "text": "private void Syso() {\n\r\n\t}", "title": "" }, { "docid": "0a14b2c4ac9647e6bc7077e1e653d540", "score": "0.57781726", "text": "@Override\n \tprotected int getSize() {\n \t\treturn 0;\n \t}", "title": "" }, { "docid": "7d110d5ea1b4795727b052c3f897a146", "score": "0.5776224", "text": "public void ligar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "e022c47f335a39c6bdb94a0f49a4e940", "score": "0.5767807", "text": "@Override\r\n\tpublic void parar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "900d30c04323cde584c73c5ffa48d9cf", "score": "0.5757801", "text": "@Override\n\t\tpublic void visitEnd() {\n\n\t\t}", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "0adb5f1f1c75684eab047201533dcfe7", "score": "0.57495934", "text": "protected void mo5609b() {\n }", "title": "" }, { "docid": "c16c8d1ea4a8c8572e4aa91460503742", "score": "0.57494617", "text": "private void Initalization() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b938c58260ac0b899b5e73492c412a69", "score": "0.57377213", "text": "@Override\r\n\t\t\t\t\t\r\n\t\t\t\t\tpublic void leerMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "b938c58260ac0b899b5e73492c412a69", "score": "0.57377213", "text": "@Override\r\n\t\t\t\t\t\r\n\t\t\t\t\tpublic void leerMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "b938c58260ac0b899b5e73492c412a69", "score": "0.57377213", "text": "@Override\r\n\t\t\t\t\t\r\n\t\t\t\t\tpublic void leerMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "734b1972ec29b58535c294e3962d017d", "score": "0.5732932", "text": "@Override\n\tpublic void generar() {\n\t\t\n\t}", "title": "" }, { "docid": "4da4d5cf96c032296a894fc6e8d76283", "score": "0.5718805", "text": "@Override\n\tpublic void beCagey() {\n\t\t\n\t}", "title": "" }, { "docid": "a8f4d3149e0f7a43b23b53ce69363fd6", "score": "0.57184815", "text": "public void mo5202b() {\n }", "title": "" }, { "docid": "c2a6308317d4e5fc230ea7d2fb55fc1b", "score": "0.5715011", "text": "@Override\n\tpublic void update() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" } ]
414ccc37ec219a2ea46c7176ff5e3fc4
fetching package names from extras
[ { "docid": "e943ef9917fea30ee2263ca58a5b9158", "score": "0.0", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n Log.d(\"Display\",\"Inside on recieve on uninstall app\");\n String[] packageNames = intent.getStringArrayExtra(\"android.intent.extra.PACKAGES\");\n\n if(packageNames!=null){\n for(String packageName: packageNames){\n Log.d(\"Display\",\"Package is\"+packageName);\n if(packageName!=null && packageName.equals(\"com.example.technician.mulikamwizi\")){\n Log.d(\"Display\",\"We can stop uninstall\");\n // start your activity here and ask the user for com.example.sagar.mobile password\n }\n }\n }\n }", "title": "" } ]
[ { "docid": "f00b29279b4cea4ee8c5d8899f25a237", "score": "0.65266794", "text": "java.lang.String getPackageName();", "title": "" }, { "docid": "a8f2842f4c161e199895b0c8e8d8244d", "score": "0.65064347", "text": "String getPackages();", "title": "" }, { "docid": "785a1395e1102bb00418878c33f2a8c4", "score": "0.64585", "text": "PackageMetadata[] getPackages();", "title": "" }, { "docid": "97a5ad075390d15b568e0767bbf31ad1", "score": "0.62454844", "text": "String getSystemPackageName();", "title": "" }, { "docid": "57e2f626265f78fd7068367fb491552b", "score": "0.61803836", "text": "private String getPackageInfo() {\n StringBuilder sb = new StringBuilder(\n \"------------------------------Package information-----------------------------\");\n Map<String, String> info = new HashMap<String, String>();\n try {\n PackageManager pm = mContext.getPackageManager();\n PackageInfo pi = pm.getPackageInfo(mContext.getPackageName(),\n PackageManager.GET_ACTIVITIES);\n if (pi != null) {\n String versionName = pi.versionName == null ? \"null\" : pi.versionName;\n String versionCode = pi.versionCode + \"\";\n info.put(\"versionName\", versionName);\n info.put(\"versionCode\", versionCode);\n }\n\n } catch (NameNotFoundException e) {\n e.printStackTrace();\n }\n\n Field[] fields = Build.class.getDeclaredFields();\n for (Field field : fields) {\n try {\n field.setAccessible(true);\n info.put(field.getName(), field.get(\"\").toString());\n } catch (IllegalArgumentException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n }\n\n for (Map.Entry<String, String> entry : info.entrySet()) {\n String key = entry.getKey();\n String value = entry.getValue();\n sb.append(key + \"=\" + value + \"\\r\\n\");\n }\n\n return sb.toString();\n }", "title": "" }, { "docid": "b02a30e3b65ca5f0212dcd54bd274bf6", "score": "0.5986492", "text": "String getPackage();", "title": "" }, { "docid": "27bc2382d3facf6507d7926565f0fa90", "score": "0.59640163", "text": "public ArrayList<String> getPackage(){\n\t\treturn packageNames;\n\t}", "title": "" }, { "docid": "6f4f7b5f9bcaa265ed70b7081bc9e5e5", "score": "0.59305465", "text": "private List<ApplicationInfo> getPackagesInfo(Context context) {\n\t\tPackageManager pm = context.getApplicationContext().getPackageManager();\n\t\tList<ApplicationInfo> appList = pm.getInstalledApplications(PackageManager.GET_UNINSTALLED_PACKAGES);\n\t\treturn appList;\n\t}", "title": "" }, { "docid": "b5270dbbd5e8498e5dcaae913ebceddc", "score": "0.5925842", "text": "@NonNull\n public List<String> getFilterPackageNames() {\n List<String> packageNames = mBundle.getStringArrayList(PACKAGE_NAME_FIELD);\n if (packageNames == null) {\n return Collections.emptyList();\n }\n return Collections.unmodifiableList(packageNames);\n }", "title": "" }, { "docid": "75a5d271c8dd55ebdb87ee9bcc8a8c0a", "score": "0.5870696", "text": "public abstract @NotNull String getPackageName();", "title": "" }, { "docid": "48cdfe8366dd19c353b21437c0e7c58f", "score": "0.58070445", "text": "public static String[] getAllInstalledPackageNames(Context context, boolean with_system)\n {\n List<ApplicationInfo> packages = context.getPackageManager()\n .getInstalledApplications(0);\n if (packages == null)\n {\n return null;\n }\n\n List<String> result = new ArrayList<>();\n\n for (ApplicationInfo applicationInfo : packages)\n {\n //Skip over system apps.\n if ((applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) == 1 && !with_system)\n {\n continue;\n }\n\n result.add(applicationInfo.packageName);\n }\n \n Collections.sort(result);\n\n return result.toArray(new String[result.size()]);\n }", "title": "" }, { "docid": "43700dd1620fa55c30dfe1aec3368ba9", "score": "0.57814735", "text": "java.lang.String getPackageString();", "title": "" }, { "docid": "507ed9d9e2f65dc38de503cecda99731", "score": "0.5763592", "text": "public String getPackageName(Object modelElement);", "title": "" }, { "docid": "754f14da49fca14d3fde2f720b9444e5", "score": "0.5727323", "text": "public void testPackageName() {\n count++;\n Class cls = this.getClass();\n Package pkg = cls.getPackage();\n if (pkg == null) {\n fail(\"testPackageName(): Error: package is null for \" + cls + \" loaded by \" + \n cls.getClassLoader());\n return;\n }\n String packagename = cls.getPackage().getName();\n String expected = cls.getName();\n int last = expected.lastIndexOf(\".\");\n expected = expected.substring(0, last);\n if (!packagename.equals(expected)) {\n fail(\"testPackageName(): Error: Whoops: package name '\" + packagename + \" is not the expected '\" + expected + \"'\");\n } else {\n System.out.println(\"testPackageName() ok: \" + packagename);\n }\n String expect, got;\n expect = \"main-manifest.mf Implementation-Title\";\n got = pkg.getImplementationTitle();\n if (!got.equals(expect)) {\n fail(\"testPackageName(): Error in implementation title: expected '\" + expect + \"' got '\" + got + \"'\");\n }\n expect = \"main-manifest.mf Specification-Title\";\n got = pkg.getSpecificationTitle();\n if (!got.equals(expect)) {\n fail(\"testPackageName(): Error in specification title: expected '\" + expect + \"' got '\" + got + \"'\");\n }\n }", "title": "" }, { "docid": "41d68fa82eb9eb8e7dbec484aa87c80a", "score": "0.5715553", "text": "public String pkgName() ;", "title": "" }, { "docid": "e2cde61cc9c8a8ad873caaa4574cbca1", "score": "0.5668829", "text": "public String getSimplePackageName() {\n \t\treturn getValue(CommonMetaData.NAME);\n \t}", "title": "" }, { "docid": "98e776621f27235c54d1088e8f37f336", "score": "0.5636931", "text": "public java.lang.String getPackageName() { throw new RuntimeException(\"Stub!\"); }", "title": "" }, { "docid": "b8f15ef03923acedc7c5d1668c626080", "score": "0.5623301", "text": "public static String[] packageList(String pkg) {\n Vector<String> v = new Vector<String>();\n String pkgpath = pkg.replace('.', '/');\n for (int i = 0; i < classPath.length; ++i) {\n String path = classPath[i];\n String lPath = path.toLowerCase();\n if (lPath.endsWith(\".zip\") || lPath.endsWith(\".jar\")) {\n try {\n ZipFile zip = findJar(path);\n if (zip == null) {\n continue;\n }\n Enumeration e = zip.entries();\n while (e.hasMoreElements()) {\n ZipEntry ze = (ZipEntry) e.nextElement();\n String zpath = ze.getName();\n int plen = pkgpath.length();\n if (zpath.startsWith(pkgpath) && zpath.endsWith(\n \".class\")) {\n String fname = zpath.substring(plen,\n zpath.length() - 6);\n if (fname.lastIndexOf('/') != 0) {\n continue;\n }\n String c = pkg + '.' + fname.substring(1);\n v.addElement(c);\n }\n }\n }\n catch (IOException x) {\n System.err.println(x);\n }\n continue;\n }\n path = path + filesep + pkgpath + filesep;\n File file = new File(path);\n if (file.isDirectory() && file.exists()) {\n String[] s = file.list(classFilter);\n for (int j = 0; j < s.length; ++j) {\n String c = pkg + '.' + s[j].substring(0, s[j].length() - 6);\n v.addElement(c);\n }\n }\n }\n String[] a = new String[v.size()];\n v.copyInto(a);\n return a;\n }", "title": "" }, { "docid": "5974283af3e96557b643039c9bdc8680", "score": "0.5595966", "text": "private static List<String> m3358a(List<PackageInfo> list) {\n C5155g.m3807a(\"SimpleToken\", 3, \"getPackagesNames entered\");\n ArrayList arrayList = new ArrayList();\n for (PackageInfo packageInfo : list) {\n arrayList.add(packageInfo.packageName);\n }\n return arrayList;\n }", "title": "" }, { "docid": "0a5e9854c14a6dc0f3fcfabccde52ff5", "score": "0.55937606", "text": "@Override\n\tpublic String getPackageName() {\n\t\treturn packageName;\n\t}", "title": "" }, { "docid": "597e7f217e8db40d4beaa9fbe877c01b", "score": "0.5571157", "text": "public List getApplicationMeta() {\n\n packages = packageManager.getInstalledApplications(PackageManager.GET_META_DATA);\n\n return packages;\n }", "title": "" }, { "docid": "754b1d1e201a0b18db5b88234bd29b5f", "score": "0.5570866", "text": "public void collectDeviceInfo(Context ctx) { \n\t\ttry { \n\t\t\tPackageManager pm = ctx.getPackageManager(); \n\t\t\tPackageInfo pi = pm.getPackageInfo(ctx.getPackageName(), PackageManager.GET_ACTIVITIES); \n\t\t\tif (pi != null) { \n\t\t\t\tString versionName = pi.versionName == null ? \"null\" : pi.versionName; \n\t\t\t\tString versionCode = pi.versionCode + \"\"; \n\t\t\t\tinfos.put(\"versionName\", versionName); \n\t\t\t\tinfos.put(\"versionCode\", versionCode); \n\t\t\t} \n\t\t} catch (NameNotFoundException e) { \n\t\t\tLog.e(TAG, \"an error occured when collect package info\", e); \n\t\t} \n\t\tField[] fields = Build.class.getDeclaredFields(); \n\t\tfor (Field field : fields) { \n\t\t\ttry { \n\t\t\t\tfield.setAccessible(true); \n\t\t\t\tinfos.put(field.getName(), field.get(null).toString()); \n\t\t\t\tLog.d(TAG, field.getName() + \" : \" + field.get(null)); \n\t\t\t} catch (Exception e) { \n\t\t\t\tLog.e(TAG, \"an error occured when collect crash info\", e); \n\t\t\t} \n\t\t} \n\t}", "title": "" }, { "docid": "78627ba26a8dbdd07e5f5fa33922f5b9", "score": "0.55691206", "text": "private static String[] getBasePackages(JavaPlugin javaPlugin, String[] basePackages) {\n List<String> packageList = new ArrayList<>(Arrays.asList(basePackages));\n for (Annotation annotation : javaPlugin.getClass().getAnnotations()) {\n Module module = annotation.annotationType().getAnnotation(Module.class);\n if (module != null && annotation.annotationType().getPackage() != null) {\n javaPlugin.getLogger().info(String.format(\n \"Detected module in package: %s\", annotation.annotationType().getPackage().getName()));\n packageList.add(annotation.annotationType().getPackage().getName());\n }\n }\n return packageList.toArray(new String[0]);\n }", "title": "" }, { "docid": "a97e8a4073a313c8fb363d771c618959", "score": "0.55672276", "text": "PackageInfo getPluginPackageInfo();", "title": "" }, { "docid": "fd3980f0009bbb3b6a695c2738c3eeca", "score": "0.5562168", "text": "public String getPackages()\n {\n return this.packages;\n }", "title": "" }, { "docid": "00891062087fdeeb701fe05384589a52", "score": "0.55496097", "text": "public static String[] package_recognizer(String file_extension, String file_name)\r\n\t{\r\n\t\tString[] package_info_array = new String[4];\r\n\r\n\t\t// 1. Stores the information about base image\r\n\t\t// 2. Stores the information about the package install\r\n\t\t// Both in string expressions.\r\n\r\n\t\tif(file_extension.equals(\"py\"))\r\n\t\t{\r\n\t\t\tpackage_info_array[0] = \"python:3.6-alpine\";\r\n\r\n\t\t\tpackage_info_array[1] = \"pip install -r\";\r\n\r\n\t\t\tpackage_info_array[2] = \"python\";\r\n\r\n\t\t\tpackage_info_array[3] = file_name;\r\n\t\t}\r\n\t\telse if(file_extension.equals(\"go\"))\r\n\t\t{\r\n\t\t\tpackage_info_array[0] = \"golang:1.11.0-alpine3.8\";\r\n\r\n\t\t\tpackage_info_array[1] = \"go get -u\";\r\n\r\n\t\t\tpackage_info_array[2] = \"\";\r\n\r\n\t\t\tpackage_info_array[3] = \"\";\r\n\t\t}\r\n\t\telse if(file_extension.equals(\"rb\"))\r\n\t\t{\r\n\t\t\tpackage_info_array[0] = \"ruby:2.5-onbuild\";\r\n\r\n\t\t\tpackage_info_array[1] = \"bundle install\";\r\n\r\n\t\t\tpackage_info_array[2] = \"\";\r\n\r\n\t\t\tpackage_info_array[3] = file_name;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"NOT A SUPPORTED FILE TYPE !!!\");\r\n\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\treturn package_info_array;\r\n\r\n\t}", "title": "" }, { "docid": "2cb9bce20bb84e5027ecd94b890ad8ee", "score": "0.55442363", "text": "private void getAppsInfo() {\n ActivityManager am = (ActivityManager) this\n .getSystemService(ACTIVITY_SERVICE);\n List<RunningAppProcessInfo> l = am.getRunningAppProcesses();\n Iterator<RunningAppProcessInfo> i = l.iterator();\n PackageManager pm = this.getPackageManager();\n while (i.hasNext()) {\n ActivityManager.RunningAppProcessInfo info = (ActivityManager.RunningAppProcessInfo) (i\n .next());\n try {\n CharSequence c = pm.getApplicationLabel(pm.getApplicationInfo(\n info.processName, PackageManager.GET_META_DATA));\n String processName = info.processName;\n Log.d(\"Process\", \"Id: \" + info.pid + \" ProcessName: \"\n + info.processName + \" Label: \" + c.toString());\n } catch (Exception e) {\n Log.e(errorTag, e.toString());\n }\n }\n\n }", "title": "" }, { "docid": "b8223f063bbdecc90eff1958265c59f5", "score": "0.55327415", "text": "public void getAppInfo(CallbackContext callbackContext) throws JSONException {\n JSONObject j = new JSONObject();\n\n try {\n PackageInfo pInfo = this.cordova.getActivity().getPackageManager().getPackageInfo(this.cordova.getActivity().getPackageName(), 0);\n String version = pInfo.versionName;\n String name = pInfo.packageName;\n int versionCode = pInfo.versionCode;\n String platformVersion = String.valueOf(Build.VERSION.RELEASE);\n\n j.put(\"platform\", \"android\");\n j.put(\"platformVersion\", platformVersion);\n j.put(\"version\", versionCode);\n j.put(\"bundleName\", name);\n j.put(\"bundleVersion\", version);\n\n Log.d(TAG, \"Got package info. Version: \" + version + \", bundleName: \" + name + \", versionCode: \" + versionCode);\n final PluginResult result = new PluginResult(PluginResult.Status.OK, j);\n result.setKeepCallback(false);\n callbackContext.sendPluginResult(result);\n } catch(Exception ex) {\n Log.e(TAG, \"Unable to get package info\", ex);\n callbackContext.error(ex.toString());\n }\n }", "title": "" }, { "docid": "3a54e4ca9ae1346ce1bc3b6b99cb7a58", "score": "0.5524985", "text": "public String getPackageName(){\r \t\treturn \"Cartographer Package\";\r \t}", "title": "" }, { "docid": "4476000117161109ef7f2d519c5fc84f", "score": "0.5515422", "text": "public abstract String get32BitPackageName();", "title": "" }, { "docid": "f5a41a69a1907f3f72fb68c40e2b03a9", "score": "0.550244", "text": "public String getPackageName(){\n\t\treturn this.packageName;\n\t}", "title": "" }, { "docid": "fc2d174e6a5a4e8ba18af7700b97bbb2", "score": "0.54893476", "text": "private void getPackages(Configuration conf) {\n\n Configuration[] children = conf.getChildren(\"package\");\n int i = children.length;\n while (i-- > 0) {\n String packageName = children[i].getAttribute(\"name\", null);\n String prefix = children[i].getAttribute(\"prefix\", null);\n if (packageName != null && prefix != null) {\n this.library.addFunctions(new PackageFunctions(packageName, prefix));\n }\n }\n }", "title": "" }, { "docid": "dbb528691788b529663c921b97518a3e", "score": "0.5454038", "text": "public static List<PackageInfo> findExternalPackages(Context context) {\n Log.d(TAG, \"findExternalPackages()\");\n\n final List<PackageInfo> packageInfo = context.getPackageManager().getInstalledPackages(0);\n\n for (int i = 0, n = packageInfo.size() - 1; i <= n; --n) {\n final PackageInfo info = packageInfo.get(n);\n if (!isExternalCoinPackage(info)) {\n packageInfo.remove(n);\n }\n }\n\n return packageInfo;\n }", "title": "" }, { "docid": "99d91ef50acec9a32a22905c3daeaa23", "score": "0.5443022", "text": "String getMetaDataPackageSuffix();", "title": "" }, { "docid": "50e0bafb856f0d07eae3e0370d5b9ac8", "score": "0.54316306", "text": "public String[] getContents()\n {\n ArrayList<String> out = new ArrayList<>();\n for (String key : contents.keySet())\n {\n URI uri = contents.get(key);\n // If there is anything null, then skip it.\n if (uri == null)\n continue;\n Path p = JPypePackageManager.getPath(uri);\n\n // package are acceptable\n if (Files.isDirectory(p))\n out.add(key);\n\n // classes must be public\n else if (uri.toString().endsWith(\".class\"))\n {\n // Make sure it is public\n if (isPublic(p))\n out.add(key);\n }\n }\n return out.toArray(new String[out.size()]);\n }", "title": "" }, { "docid": "58ffab8b58c51b77c9143155b9df67be", "score": "0.54213434", "text": "String getBasePackage();", "title": "" }, { "docid": "252480c3fb37f5d933332dc117ef8515", "score": "0.54143584", "text": "public String getPackageName() {\n \t\tString simpleName = getSimplePackageName();\n \t\tif (simpleName.startsWith(\"python-\")) {\n \t\t\treturn simpleName;\n \t\t}\n \t\treturn \"python-\"+simpleName;\n \t}", "title": "" }, { "docid": "eb204b1e804894d500af78fb4a9fbd85", "score": "0.54133403", "text": "protected static String getPackageName(LinkedList<String> packageStack) {\n\t\treturn StringUtils.join(packageStack, '.');\n\t}", "title": "" }, { "docid": "6fbaf553354f74fc33d709d806f8309b", "score": "0.5403082", "text": "public static String getPackageName(Class<?> cls) {\n/* 296 */ if (cls == null) {\n/* 297 */ return \"\";\n/* */ }\n/* 299 */ return getPackageName(cls.getName());\n/* */ }", "title": "" }, { "docid": "9728cc522d9838f3d354729852bf96eb", "score": "0.5386507", "text": "@Override\n public List<Package> expoPackages() {\n return super.expoPackages();\n }", "title": "" }, { "docid": "60ef1c82f9f9f2cdec7aa408ed00c9b9", "score": "0.5383086", "text": "public String getPackageName() {\r\n return _package;\r\n }", "title": "" }, { "docid": "f111e697eec51e5c431d54f899c9cac8", "score": "0.5365139", "text": "protected Object getPackageName() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "141940699d1842bf9787133dc149a464", "score": "0.5357107", "text": "String getCurrentPackageName()\n {\n\tString packageName=\"\";\n\n\tif (activeScopes==null)\n\t return packageName;\n\n Enumeration e = activeScopes.elements();\n\twhile (e.hasMoreElements())\n\t{\n\t ScopedDef d = (ScopedDef) e.nextElement();\n\t if (d instanceof PackageDef)\n\t {\n\t packageName=d.getName();\n\t break;\n\t }\n\t}\n\n return packageName;\n }", "title": "" }, { "docid": "aab6c03922825ebe213fffba6fa6b463", "score": "0.5350259", "text": "private static ZipEntry[] getPackageEntries(ZipFile zip, String qualifiedName) {\n\t\tString pkg = qualifiedName.replace('.', '/').substring(0, qualifiedName.length() - 1);\n\t\tint slashCount = countSlashes(pkg);\n\t\tArrayList<ZipEntry> entries = new ArrayList<>();\n\t\tEnumeration<? extends ZipEntry> zipEntries = zip.entries();\n\t\twhile (zipEntries.hasMoreElements()) {\n\t\t\tZipEntry entry = zipEntries.nextElement();\n\t\t\tif (entry.getName().startsWith(pkg) \n\t\t\t\t\t&& !entry.isDirectory()\n\t\t\t\t\t&& slashCount == countSlashes(entry.getName())) {\n\t\t\t\tentries.add(entry);\n\t\t\t}\n\t\t}\n\t\treturn entries.toArray(new ZipEntry[entries.size()]);\n\t}", "title": "" }, { "docid": "38b244b0530c7b5a54aa2f3e00c9f26e", "score": "0.53333265", "text": "public String getPackageName() {\n\t\tint index = name.lastIndexOf(\".\");\n\t\tString packageName = name.substring(0, index);\n\t\treturn packageName;\n\t}", "title": "" }, { "docid": "1ba007cda3b94d57095f3035beda725c", "score": "0.53219134", "text": "public Map<String, String> getPackagesToDisplayNames()\n\t{\n\t\tMap<String, String> result = new HashMap<String, String>();\n\t\tfor (IPackageReader reader : packageReaders)\n\t\t{\n\t\t\tresult.put(reader.getPackageName(), reader.getPackageDisplayname());\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "21db40cfa64e95e3b50ece09a5449d31", "score": "0.53203326", "text": "private String getAppPkgName(int pid, int uid) {\n if (pid > 0) {\n return InnerUtils.getAwarePkgName(pid);\n }\n return InnerUtils.getPackageNameByUid(uid);\n }", "title": "" }, { "docid": "8e7ab9dfca3c6f0a7b4f9f74d044cdb1", "score": "0.5320034", "text": "@Override\n public String getPackageName() {\n return null;\n }", "title": "" }, { "docid": "4eab99768a89b89c15b29980a5118e2b", "score": "0.5317243", "text": "com.google.protobuf.ByteString\n getPackageNameBytes();", "title": "" }, { "docid": "a85c801fba59d8bd4ac22e9341542f21", "score": "0.53158575", "text": "public static List<AppInfo> getListOfInstalledApp(Context context) {\n PackageManager packageManager = context.getPackageManager();\n List<AppInfo> installedApps = new ArrayList();\n List<PackageInfo> apps = packageManager.getInstalledPackages(PackageManager.GET_META_DATA);\n if (apps != null && !apps.isEmpty()) {\n\n for (int i = 0; i < apps.size(); i++) {\n PackageInfo p = apps.get(i);\n ApplicationInfo appInfo = null;\n try {\n if (null != packageManager.getLaunchIntentForPackage(p.packageName)) {\n // appInfo = packageManager.getApplicationInfo(p.packageName, 0);\n AppInfo app = new AppInfo();\n app.setName(p.applicationInfo.loadLabel(packageManager).toString());\n app.setPackageName(p.packageName);\n app.setVersionName(p.versionName);\n app.setVersionCode(p.versionCode);\n app.setIcon(p.applicationInfo.loadIcon(packageManager));\n\n installedApps.add(app);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n\n return installedApps;\n }\n return null;\n }", "title": "" }, { "docid": "c9fc272bcadfa0a32a3d0973ed370337", "score": "0.53102595", "text": "public java.lang.String getPackageName()\r\n {\r\n return this._packageName;\r\n }", "title": "" }, { "docid": "3c7cee9b194aef9c401e68de38e06a68", "score": "0.5308645", "text": "private List<Node> findPackageNameInModules(String[] packageName, Node root) {\n\n List<Node> nodes = new LinkedList<>();\n if (root.getPackageName().equals(\"\")) {\n for (Node child : root.getChildren()) {\n if (!child.getPackageName().equals(\"\")) {\n if (child.getFilename().equals(packageName[0])) {\n nodes.addAll(gotThroughPackageTree(packageName, child));\n }\n } else {\n nodes.addAll(findPackageNameInModules(packageName, child));\n }\n }\n } else {\n nodes.addAll(gotThroughPackageTree(packageName, root));\n }\n return nodes;\n }", "title": "" }, { "docid": "a971ed6b3382a2a6e470f97a3663849b", "score": "0.5301847", "text": "public Hashtable getPackages() { return packages; }", "title": "" }, { "docid": "82120324c3445d4d9374b5b9cb7a91ff", "score": "0.5299368", "text": "private String[] rootPackageNames() {\n Package[] roots = namespace();\n Set<String> names = Sets.newHashSet();\n for (Package root : roots) {\n names.add(root.getName());\n }\n return names.toArray(new String[names.size()]);\n }", "title": "" }, { "docid": "a6425ae524fa6096f477657d8a58a08e", "score": "0.5287831", "text": "public abstract String[] getServiceBundleNames();", "title": "" }, { "docid": "e0dff7b4ff1278ec44da33e9f08b7d85", "score": "0.5285788", "text": "public static List<Info.ApkInfo> collectInstalledAppInfo(Context context) {\n List<Info.ApkInfo> apps = new ArrayList();\n\n int retrieveFlags = PackageManager.GET_DISABLED_COMPONENTS | PackageManager.GET_PERMISSIONS;\n List<PackageInfo> packageInfoList = context.getPackageManager()\n .getInstalledPackages(retrieveFlags);\n int size = packageInfoList.size();\n LogUtil.i(\"========================LLpp:最初获取的app数目是:\"+size);\n for (PackageInfo appInfo:packageInfoList) {\n String appName = appInfo.applicationInfo.loadLabel(context.getPackageManager()).toString();\n // LogUtil.i(\"========================LLpp:最初获取的app名字是appName:\"+appName);\n\n }\n\n// List<PackageInfo> packageInfoList = AppUtil\n// .getInstalledPackages(MyManager.getAppContext().getPackageManager());\n for (PackageInfo packageInfo : packageInfoList) {\n if (checkUninstallable(packageInfo.applicationInfo,context)) {\n Info.ApkInfo app = parse(packageInfo,context);\n apps.add(app);\n }\n }\n LogUtil.i(\"========================LLpp:过滤后app数目是:\"+apps.size());\n return apps;\n }", "title": "" }, { "docid": "4f88c8aa1a99d151e0631b0f3ada55d8", "score": "0.52763736", "text": "private static List<Bundle> getBundlesInClassSpace(Bundle bundle) {\r\n \tList<Bundle> bundles = new ArrayList<Bundle>(); \r\n \t\r\n\t\t// Get package admin service.\r\n ServiceReference ref = bundle.getBundleContext().getServiceReference(PackageAdmin.class.getName());\r\n if (ref == null) {\r\n System.out.println(\"PackageAdmin service is unavailable.\");\r\n return bundles;\r\n }\r\n try {\r\n PackageAdmin pa = (PackageAdmin) bundle.getBundleContext().getService(ref);\r\n if (pa == null) {\r\n System.out.println(\"PackageAdmin service is unavailable.\");\r\n return bundles;\r\n }\r\n \r\n Dictionary headers = bundle.getHeaders();\r\n String importPackage = (String) headers.get(\"Import-Package\");\r\n String requiredBundleHeader = (String) headers.get(\"Require-Bundle\");\r\n \r\n // Process the Import-Package header\r\n if (importPackage != null) {\r\n\t String[] importPackages = importPackage.split(\",\");\r\n\t for (String impPackage : importPackages) {\r\n\t \tString[] split = impPackage.split(\";\");\r\n\t \tString name = split[0].trim();\r\n\t \tif (name.matches(\"^[0-9].*\"))\r\n\t \t\tcontinue; //we split into a version range jump over it. \r\n\t\t\t\t\tExportedPackage[] exportedPackages = pa.getExportedPackages(name);\r\n\t \tif (exportedPackages != null) {\r\n\t\t \tfor (ExportedPackage exportedPackage : exportedPackages) {\r\n\t\t\t\t\t\t\tif (Arrays.asList(exportedPackage.getImportingBundles()).contains(bundle)) {\r\n\t\t\t\t\t\t\t\tBundle exportingBundle = exportedPackage.getExportingBundle();\r\n\t\t\t\t\t\t\t\t//skip System-Bundle\r\n\t\t\t\t\t\t\t\tif (exportingBundle.getBundleId() == 0)\r\n\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\tbundles.add(exportingBundle);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t \t}\r\n\t\t\t\t}\r\n }\r\n \r\n // Process the Require-Bundle header \r\n if (requiredBundleHeader != null) {\r\n \tString[] reqBundles = requiredBundleHeader.split(\",\");\r\n\t for (String reqBundle : reqBundles) {\r\n\t \tString[] split = reqBundle.split(\";\");\r\n\t \tString name = split[0].trim();\r\n\t \tif (name.matches(\"^[0-9].*\"))\r\n\t \t\tcontinue; //we split into a version range jump over it. \r\n\t\t\t\t\tRequiredBundle[] requiredBundles = pa.getRequiredBundles(name);\r\n\t\t\t\t\tif (requiredBundles != null) {\r\n\t\t \tfor (RequiredBundle requiredBundle : requiredBundles) {\r\n\t\t\t\t\t\t\tif (Arrays.asList(requiredBundle.getRequiringBundles()).contains(bundle)) {\r\n\t\t\t\t\t\t\t\tif (requiredBundle.getBundle().getBundleId() == 0)\r\n\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\tbundles.add(requiredBundle.getBundle());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t \t}\r\n\t\t\t\t}\r\n }\r\n \r\n }\r\n finally {\r\n \t\tbundle.getBundleContext().ungetService(ref);\r\n }\r\n return bundles;\r\n\t}", "title": "" }, { "docid": "b0adece9c25e0c2ff4131fd5128a00b2", "score": "0.5275765", "text": "public static List<DataInfo> getDataInfos(Context context){\n\t\t//obtain a package manager\n\t\tPackageManager pm = context.getPackageManager();\n\t\t\t\t\n\t\tList<PackageInfo> list = pm.getInstalledPackages(0);;\n\t\t\n\t\t//only store information we need to show on screen\n\t\tList<DataInfo> dataInfos = new ArrayList<DataInfo>();\n\t\tfor (PackageInfo packageInfo : list) {\n\t\t\tDataInfo dataInfo = new DataInfo();\n\t\t\t\n\t\t\tString packageName = packageInfo.packageName;\n\t\t\tDrawable icon = packageInfo.applicationInfo.loadIcon(pm);\n\t\t\tString appName = packageInfo.applicationInfo.loadLabel(pm).toString();\n\t\t\tint uid = packageInfo.applicationInfo.uid;\n\t\t\tlong tx = TrafficStats.getUidTxBytes(uid); //bytes upload\n\t\t\tlong rx = TrafficStats.getUidRxBytes(uid); //bytes download\n\t\t\t\n\t\t\tif (tx == 0 && rx == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tdataInfo.setPackageName(packageName);\n\t\t\tdataInfo.setProcessName(appName);\n\t\t\tdataInfo.setIcon(icon);\n\t\t\tdataInfo.setDownloadData(rx);\n\t\t\tdataInfo.setUploadData(tx);\n\t\t\t\n\t\t\tdataInfos.add(dataInfo);\n\t\t}\n\t\t\n\t\treturn dataInfos;\n\t}", "title": "" }, { "docid": "04479e53b2ec116705f7d468ad85e03d", "score": "0.52533203", "text": "public static java.lang.String getResourcePackageName(android.content.Context r5) {\n /*\n r0 = f1042b;\n if (r0 == 0) goto L_0x0007;\n L_0x0004:\n r0 = f1042b;\n L_0x0006:\n return r0;\n L_0x0007:\n r1 = r5.getResources();\t Catch:{ NotFoundException -> 0x004e, NullPointerException -> 0x005d, Exception -> 0x0066 }\n r0 = com.appboy.C0379R.string.resource_for_package_identification;\t Catch:{ Exception -> 0x0014, NotFoundException -> 0x004e, NullPointerException -> 0x005d }\n r0 = r1.getResourcePackageName(r0);\t Catch:{ Exception -> 0x0014, NotFoundException -> 0x004e, NullPointerException -> 0x005d }\n f1042b = r0;\t Catch:{ Exception -> 0x0014, NotFoundException -> 0x004e, NullPointerException -> 0x005d }\n goto L_0x0006;\n L_0x0014:\n r0 = move-exception;\n r0 = r5.getPackageManager();\t Catch:{ NotFoundException -> 0x004e, NullPointerException -> 0x005d, Exception -> 0x0066 }\n r2 = 0;\n r0 = r0.getInstalledPackages(r2);\t Catch:{ NotFoundException -> 0x004e, NullPointerException -> 0x005d, Exception -> 0x0066 }\n r2 = r0.iterator();\t Catch:{ NotFoundException -> 0x004e, NullPointerException -> 0x005d, Exception -> 0x0066 }\n L_0x0022:\n r0 = r2.hasNext();\t Catch:{ NotFoundException -> 0x004e, NullPointerException -> 0x005d, Exception -> 0x0066 }\n if (r0 == 0) goto L_0x0056;\n L_0x0028:\n r0 = r2.next();\t Catch:{ NotFoundException -> 0x004e, NullPointerException -> 0x005d, Exception -> 0x0066 }\n r0 = (android.content.pm.PackageInfo) r0;\t Catch:{ NotFoundException -> 0x004e, NullPointerException -> 0x005d, Exception -> 0x0066 }\n r3 = \"string/resource_for_package_identification\";\n r4 = 0;\n r0 = r0.packageName;\t Catch:{ NotFoundException -> 0x004e, NullPointerException -> 0x005d, Exception -> 0x0066 }\n r0 = r1.getIdentifier(r3, r4, r0);\t Catch:{ NotFoundException -> 0x004e, NullPointerException -> 0x005d, Exception -> 0x0066 }\n if (r0 == 0) goto L_0x0022;\n L_0x0039:\n r3 = r1.getResourceName(r0);\t Catch:{ Exception -> 0x004c, NotFoundException -> 0x004e, NullPointerException -> 0x005d }\n r4 = \"string/resource_for_package_identification\";\n r3 = r3.contains(r4);\t Catch:{ Exception -> 0x004c, NotFoundException -> 0x004e, NullPointerException -> 0x005d }\n if (r3 == 0) goto L_0x0022;\n L_0x0045:\n r0 = r1.getResourcePackageName(r0);\t Catch:{ Exception -> 0x004c, NotFoundException -> 0x004e, NullPointerException -> 0x005d }\n f1042b = r0;\t Catch:{ Exception -> 0x004c, NotFoundException -> 0x004e, NullPointerException -> 0x005d }\n goto L_0x0006;\n L_0x004c:\n r0 = move-exception;\n goto L_0x0022;\n L_0x004e:\n r0 = move-exception;\n r0 = f1041a;\n r1 = \"Could not find resource for package identification, returning Context#getPackageName().\";\n com.appboy.support.AppboyLogger.m666i(r0, r1);\n L_0x0056:\n r0 = r5.getPackageName();\n f1042b = r0;\n goto L_0x0006;\n L_0x005d:\n r0 = move-exception;\n r1 = f1041a;\n r2 = \"Got null pointer exception getting resource package name, returning Context#getPackageName().\";\n com.appboy.support.AppboyLogger.m665e(r1, r2, r0);\n goto L_0x0056;\n L_0x0066:\n r0 = move-exception;\n r1 = f1041a;\n r2 = \"General exception getting resource package name, returning Context#getPackageName().\";\n com.appboy.support.AppboyLogger.m665e(r1, r2, r0);\n goto L_0x0056;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.appboy.support.PackageUtils.getResourcePackageName(android.content.Context):java.lang.String\");\n }", "title": "" }, { "docid": "da8008b235625e6efb3d43123e1616af", "score": "0.52466583", "text": "private void getExtras() {\n\n Intent intent = getIntent();\n\n if (intent != null) {\n order = (POSOrder) intent.getSerializableExtra(DRAFT_ORDER);\n caller = intent.getStringExtra(CALLER_ACTIVITY);\n }\n }", "title": "" }, { "docid": "ddcc71e2dec9fa1df79e2214d55508cf", "score": "0.52400416", "text": "public String getCurrentPackageName() {\n Tracer.trace();\n return getAutomatorBridge().getQueryController().getCurrentPackageName();\n }", "title": "" }, { "docid": "76390379f72a73dfc4eb423c3e57d116", "score": "0.5235768", "text": "String getProviderPackageSuffix();", "title": "" }, { "docid": "9ce9a22ced8469b2dbe4ac84ffc767bd", "score": "0.5228225", "text": "public static String m16849a(Context context) {\n PackageInfo c = m16851c(context);\n if (c != null) {\n String str = c.packageName;\n if (str != null) {\n return str;\n }\n }\n return \"\";\n }", "title": "" }, { "docid": "1dcc9c86d3ca5f9fbb685f5735c681cb", "score": "0.5225145", "text": "java.lang.String getFixedPackage();", "title": "" }, { "docid": "2efd2d0fd189533a7e13c0de5e12b20f", "score": "0.5217576", "text": "public String getPackageName() {\n\t\treturn this.packageName;\n\t}", "title": "" }, { "docid": "6cc7922f647ac49af5f18ef4c51afd66", "score": "0.521608", "text": "public Collection<String> getPackageNames()\n\t{\n\t\treturn getWebObjectSpecifications().keySet();\n\t}", "title": "" }, { "docid": "16b07899f2630fe51e9124ecbfe144d3", "score": "0.5197454", "text": "private void getBundle() {\n Bundle bundle = this.getIntent().getExtras();\n singer = bundle.getString(\"singer\");\n song = bundle.getString(\"song\");\n languageMode = bundle.getInt(\"languageMode\");\n }", "title": "" }, { "docid": "403844aea7f487c6e39fdc752dd5ce24", "score": "0.5192842", "text": "java.lang.String getExtra();", "title": "" }, { "docid": "d982416bca2de0863d310458ca2a5355", "score": "0.5184455", "text": "public String getPackageName() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "dcdfeb631249f857f125fbc56d93062a", "score": "0.51828325", "text": "@NotNull\r\n String getPackage();", "title": "" }, { "docid": "e146b400c8b48c802c13ad5c5461f6f9", "score": "0.5182289", "text": "java.lang.String getAffectedPackage();", "title": "" }, { "docid": "efd090292fec12b8746f8abad8443585", "score": "0.5176892", "text": "public static String getPackageName(Object object, String valueIfNull) {\n/* 283 */ if (object == null) {\n/* 284 */ return valueIfNull;\n/* */ }\n/* 286 */ return getPackageName(object.getClass());\n/* */ }", "title": "" }, { "docid": "bae24820975ce93687ece979b161471d", "score": "0.5165979", "text": "@Override\n\t\tpublic String visitPackageDeclaration(JavaParser.PackageDeclarationContext ctx) {\n\t\t\tpackageName = ctx.qualifiedName().getText();\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "d241b9dccec177146ee00319e73dbf8f", "score": "0.51645297", "text": "public static String getPackageName(Class<?> c) {\n return c.getPackage().getName();\n }", "title": "" }, { "docid": "eb5de350c5ee5ba95fa6f9341f1ae5b1", "score": "0.516223", "text": "public String getPackageName(boolean modelName)\n {\n return this.getSuperManageableEntityAssociationEnd().getPackageName(modelName);\n }", "title": "" }, { "docid": "c15871beab19e976f53f1557d336259a", "score": "0.51501006", "text": "private String getCallingPkgName(int uid, Messenger replyMessenger) {\n ClientInfo clientInfo = (ClientInfo) WifiP2pServiceImpl.this.mClientInfoList.get(replyMessenger);\n if (clientInfo != null) {\n return clientInfo.mPackageName;\n }\n if (uid == 1000) {\n return WifiP2pServiceImpl.this.mContext.getOpPackageName();\n }\n return null;\n }", "title": "" }, { "docid": "dfd212e1cc08513bcc02892102932852", "score": "0.51477265", "text": "public final LoadedApk getPackageInfo(String packageName) {\n\n if (mPackage != null) {\n // sanity check\n if (!packageName.equals(mPackage.mPackageName))\n throw new RuntimeException(\"This should not happen: trying to get LoadedApk for \" + packageName\n + \"when default LoadedApk is for \" + mPackage.mPackageName);\n return mPackage;\n }\n\n ApplicationInfo ai = null;\n ai = getPackageManager().getApplicationInfo(packageName);\n\n if (ai != null) {\n return getPackageInfo(ai);\n }\n\n return null;\n }", "title": "" }, { "docid": "b6fecedf8861a2036ee0cde4ef1ae90b", "score": "0.51475817", "text": "public static ArrayList<String> getPackageNames(ArrayList<ApplicationPackage> Applications) {\n ArrayList<String> name = new ArrayList<String>();\n\n for (ApplicationPackage app : Applications) {\n\n name.add(app.packageName);\n }\n\n return name;\n }", "title": "" }, { "docid": "50cfd4fa5a285bfe835ed90e915c8e10", "score": "0.51366496", "text": "@NonNull\n public String getPackageName() {\n return mPackageName;\n }", "title": "" }, { "docid": "6f17f5c938436c8e4f6b74ec36db0373", "score": "0.51319915", "text": "void findPackages(char[] qualifiedName, ISearchRequestor requestor);", "title": "" }, { "docid": "9d447f6260a38c118f7872b9c47977f8", "score": "0.5131329", "text": "protected void find(String pckgname, boolean doSelectOnly)\n {\n pckgname = pckgname.replace('.','/');\n\n String name = new String(pckgname);\n if (!name.startsWith(\"/\")) {\n name = \"/\" + name;\n }\n\n // Get a File object for the package\n try\n {\n URL url = AppVersionInfo.class.getResource(name);\n m_outputDest.println (\"url is \" + url.getPath());\n m_outputDest.println (\"url name is \" + url.getFile());\n\n String filename = url.getFile();\n int exclLoc = filename.indexOf('!');\n if ( exclLoc > 0 )\n {\n filename = filename.substring(0, exclLoc);\n }\n m_outputDest.println (\"filename is \" + filename);\n\n File directory = new File(filename);\n m_outputDest.println (\"directory is \" + directory);\n\n JarFile jfile = new JarFile ( directory );\n\n m_outputDest.println ( \"===========================================\" );\n m_outputDest.println ( \"Manifest info for \" + jfile.getName() );\n dumpManifestInfo ( jfile.getManifest(), doSelectOnly );\n m_outputDest.println ( \"===========================================\" );\n }\n catch(Exception e)\n {\n e.printStackTrace(System.err);\n }\n }", "title": "" }, { "docid": "1e4ade4ec6c15701d313b24ec1478a62", "score": "0.51311415", "text": "public String getBundleLabelInfo(int dUid) {\n Log.d(TAG, \"getBundleLabelInfo() called.\");\n try {\n IDistributedPermissionManager service = getService();\n if (service != null) {\n return service.getBundleLabelInfo(dUid);\n }\n return BuildConfig.FLAVOR;\n } catch (RemoteException e) {\n Log.e(TAG, \"getBundleLabelInfo error \" + e.getMessage());\n return BuildConfig.FLAVOR;\n }\n }", "title": "" }, { "docid": "a32d2c12f6e1e33a72dcf758559f920a", "score": "0.51285017", "text": "public List<String> getPackageIdentifiers() {\n\t\tString[] splitIdentifiers = name.split(\"\\\\.\");\n\t\tList<String> packageIdentifiers = new ArrayList<String>();\n\t\tfor (int i = 0; i < splitIdentifiers.length - 1; i++) {\n\t\t\tpackageIdentifiers.add(splitIdentifiers[i]);\n\t\t}\n\n\t\treturn packageIdentifiers;\n\t}", "title": "" }, { "docid": "5bfe61ab9a058b70d7dae7b829f85d53", "score": "0.51227343", "text": "List<IBookManifest.IBookManifestItem> getItems();", "title": "" }, { "docid": "d87a50cf08fd2ea2f5260333ff9316f3", "score": "0.5120252", "text": "public String getPermissionUsagesInfo(String packageName, String[] permissions) {\n Log.d(TAG, \"getPermissionUsagesInfo() called.\");\n try {\n IDistributedPermissionManager service = getService();\n if (service != null) {\n return service.getPermissionUsagesInfo(packageName, permissions);\n }\n return BuildConfig.FLAVOR;\n } catch (RemoteException e) {\n Log.e(TAG, \"getPermissionUsagesInfo error \" + e.getMessage());\n return BuildConfig.FLAVOR;\n }\n }", "title": "" }, { "docid": "ce59aad3f4cbeb7a32566c8bf5f5d52c", "score": "0.5108349", "text": "public String getPackageName() {\n\t\treturn packageName;\n\t}", "title": "" }, { "docid": "7020079d0e6d9825757957f0b41b90d2", "score": "0.5104102", "text": "private String[] getInstalledModules() {\n try {\n final ModuleManagementData data[] = ModuleManagementData.selectInstalled(this);\n if (data != null && data.length != 0) {\n final String[] rt = new String[data.length];\n for (int i = 0; i < data.length; i++)\n rt[i] = data[i].adModuleId;\n return rt;\n } else\n return new String[0];\n } catch (final Exception e) {\n log4j.error(e.getMessage(), e);\n return (new String[0]);\n }\n }", "title": "" }, { "docid": "01f8852c8a62985ffc6a60cc272731a8", "score": "0.5089463", "text": "public String getPackageName()\n {\n return this.getSuperManageableEntityAssociationEnd().getPackageName();\n }", "title": "" }, { "docid": "dd0a35f600fd94422a02d76142833552", "score": "0.507689", "text": "private List<ApplicationInfo> getModel(List<ApplicationInfo> list) {\n\t\taList = new ArrayList<ApplockAppList>();\n\t\tList<ApplicationInfo> applist = new ArrayList<ApplicationInfo>();\n\t\tfor (ApplicationInfo info : list) {\n\t\t\ttry {\n\t\t\t\tif (packageManager.getLaunchIntentForPackage(info.packageName) != null) {\n\t\t\t\t\tapplist.add(info);\n\t\t\t\t\tString n = info.loadLabel(packageManager).toString();\n\t\t\t\t\tSystem.out.println(\"packagename:\" + n);\n\t\t\t\t\tint i = info.icon;\n\n\t\t\t\t\taList.add(get(n));\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\treturn applist;\n\t}", "title": "" }, { "docid": "d7ab0b1332be70f2772f20ae06ceec00", "score": "0.5065559", "text": "public static List<Class<?>> getClassesNew(String packageName)\n\t throws ClassNotFoundException {\n\n\tClassLoader classLoader = Thread.currentThread()\n\t\t.getContextClassLoader();\n\n\tArrayList<String> names = new ArrayList<String>();\n\t;\n\tfinal ArrayList<Class<?>> classes = new ArrayList<Class<?>>();\n\n\tString realPackageName = packageName;\n\tpackageName = packageName.replace(\".\", \"/\");\n\tURL packageURL = classLoader.getResource(packageName);\n\n\tif (packageURL.getProtocol().equals(\"jar\")) {\n\n\t // build jar file name, then loop through zipped entries\n\n\t String jarFileNameUndecoded = packageURL.getFile();\n\n\t try {\n\t\tJarURLConnection ju_connection = (JarURLConnection) packageURL\n\t\t\t.openConnection();\n\t\tJarFile jf = ju_connection.getJarFile();\n\n\t\tEnumeration<JarEntry> jarEntries = jf.entries();\n\t\twhile (jarEntries.hasMoreElements()) {\n\t\t String entryName = jarEntries.nextElement().getName();\n\n\t\t if (entryName.startsWith(packageName)) {\n\n\t\t\tif (entryName.endsWith(\".class\")\n\t\t\t\t&& !entryName.contains(\"$\")) {\n\n\t\t\t // Deal with situation where the class found might\n\t\t\t // be a further sub-package\n\t\t\t // e.g. for \"org.expeditee.action\"\n\t\t\t // there is:\n\t\t\t // org/expeditee/action/widgets/Chart.class\n\t\t\t // which would produce a value of 'entryName' as\n\t\t\t // widgets/Chart.class\n\n\t\t\t entryName = entryName.substring(0,\n\t\t\t\t entryName.length() - 6); // 6 = '.class'\n\t\t\t entryName = entryName.replace('/', '.');\n\n\t\t\t names.add(entryName);\n\t\t\t classes.add(Class.forName(entryName));\n\t\t\t}\n\t\t }\n\t\t}\n\t } catch (Exception e) {\n\t\tSystem.err.println(\"Failed to decode jar file: \"\n\t\t\t+ jarFileNameUndecoded);\n\t\te.printStackTrace();\n\t }\n\t} else if (packageURL.getProtocol().equals(\"bundleresource\")) {\n\t try {\n\t\tfinal URLConnection urlConnection = packageURL.openConnection();\n\t\tfinal Class<?> c = urlConnection.getClass();\n\t\tfinal java.lang.reflect.Method toInvoke = c.getMethod(\"getFileURL\");\n\t\tfinal URL fileURL = (URL)toInvoke.invoke(urlConnection);\n\t\tfinal File folder = new File(fileURL.getFile());\n\t\tfinal List<String> files = findFiles(folder);\n\t\tfor (final String s : files) {\n\t\t String entryName = realPackageName + s;\n\t\t if (entryName.endsWith(\".class\") && !entryName.contains(\"$\")) {\n\t\t\tentryName = entryName.substring(0, entryName.lastIndexOf('.'));\n\t\t\tentryName = entryName.replace('/', '.');\n\t\t\tnames.add(entryName);\n\t\t\ttry {\n\t\t\t final Class<?> tmpc = Class.forName(entryName);\n\t\t\t classes.add(tmpc);\n\t\t\t} catch (NoClassDefFoundError e) {\n\t\t\t System.err.println(\"Unable to instantiate class \" + entryName);\n\t\t\t System.err.println(e.getMessage());\n\t\t\t}\n\t\t }\n\t\t}\n\t } catch (final Exception e) {\n\t\tSystem.err.println(\"Failed to process file: \" + packageName);\n\t\te.printStackTrace();\n\t }\n\t} else {\n\t // loop through files in classpath\n\n\t String packageURLString = packageURL.toString();\n\t try {\n\t\tURI uri = new URI(packageURLString);\n\t\tFile folder = new File(uri.getPath());\n\n\t\tList<String> files = findFiles(folder);\n\t\tfor (String s : files) {\n\t\t String entryName = realPackageName + s;\n\n\t\t if (entryName.endsWith(\".class\")\n\t\t\t && !entryName.contains(\"$\")) {\n\t\t\tentryName = entryName.substring(0,\n\t\t\t\tentryName.lastIndexOf('.'));\n\t\t\tentryName = entryName.replace('/', '.');\n\n\t\t\tnames.add(entryName);\n\t\t\tclasses.add(Class.forName(entryName));\n\t\t }\n\t\t}\n\t } catch (Exception e) {\n\t\tSystem.err.println(\"Failed to process file: \"\n\t\t\t+ packageURLString);\n\t\te.printStackTrace();\n\t }\n\t}\n\n\treturn classes;\n }", "title": "" }, { "docid": "24ab2412747173dae275f2a1c12e3293", "score": "0.5051364", "text": "@Override\n\t\tprotected String doInBackground(String... params) {\n\t\t\tArrayList<String> stringArrayList = new ArrayList<String>();\n\t\t\tprocessMatcher = new HashMap<String, String>();\n\n\t\t\t// Package manager and loop to find all packages that have a\n\t\t\t// launchable Intent\n\t\t\tfinal PackageManager pm = getPackageManager();\n\t\t\tList<ApplicationInfo> packages = pm\n\t\t\t\t\t.getInstalledApplications(PackageManager.GET_META_DATA);\n\t\t\tfor (ApplicationInfo packageInfo : packages) {\n\t\t\t\tif (pm.getLaunchIntentForPackage(packageInfo.packageName) != null) {\n\n\t\t\t\t\t// Put the package name and app name in the processMatcher\n\t\t\t\t\t// hashmap\n\t\t\t\t\tprocessMatcher.put(pm.getApplicationLabel(packageInfo)\n\t\t\t\t\t\t\t.toString(), packageInfo.packageName);\n\t\t\t\t\t// Put the app name in the string array\n\t\t\t\t\tstringArrayList.add(pm.getApplicationLabel(packageInfo)\n\t\t\t\t\t\t\t.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Sort the app list and prep the list items var.\n\t\t\tCollections.sort(stringArrayList);\n\t\t\tlv_items = stringArrayList.toArray(new String[stringArrayList\n\t\t\t\t\t.size()]);\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "9c8530a48a9140ca930bbc2a7e14b6e6", "score": "0.5047041", "text": "public String getPackage() {\n //System.out.println(\"getPackage called\");\n File theDir = getDirectory();\n return theDir.getName();\n }", "title": "" }, { "docid": "2872956fa606f7d64935467580ec6b75", "score": "0.50453484", "text": "public boolean isInstalled(Context ctx) {\n\t\ttry{\n\t\t ctx.getPackageManager().getApplicationInfo(mPackage, 0);\n\t\t return true;\n\t\t} catch (PackageManager.NameNotFoundException e) {\n\t\t\tif (ACAS.DEBUG_MODE) {\n\t\t\t\tLog.d(TAG, \"Package name not found !\"+ mPackage);\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "6170f11f05ec768c5bb55a8ea6abf11c", "score": "0.5040716", "text": "public static MetaData loadMetaData(Context context, final String packageName)\n {\n final PackageManager pm = context.getPackageManager();\n\n // The following is a little more complicated than it should be. We can't\n // seem to load meta-data with queryIntentActivities(), but that's the only\n // way to find out the package's launcher Activity.\n final Intent intent = new Intent(Intent.ACTION_MAIN, null);\n intent.addCategory(Intent.CATEGORY_LAUNCHER);\n intent.setPackage(packageName);\n\n final List<ResolveInfo> activities = pm.queryIntentActivities(intent, 0);\n for (ResolveInfo res : activities) {\n try {\n final ComponentName component = new ComponentName(packageName, res.activityInfo.name);\n final ActivityInfo act = pm.getActivityInfo(component, PackageManager.GET_META_DATA);\n final MetaData data = loadMetaData(context, act);\n if (null != data) {\n return data;\n }\n } catch (PackageManager.NameNotFoundException ex) {\n Log.e(LTAG, \"Failed to read ActivityInfo for a Component we've already found.\");\n return null;\n }\n }\n\n // If we reached here, we didn't find any meta-data.\n Log.e(LTAG, \"No androdyne meta-data found in package '\" + packageName + \"'\");\n return null;\n }", "title": "" }, { "docid": "e926dc2effd29e3c4706954892c954bb", "score": "0.50294834", "text": "List<GenPackage> getSubGenPackages();", "title": "" }, { "docid": "c5f3f8b46140c8763150315fbb61ffcb", "score": "0.5028627", "text": "private void excludeImportedPackages() {\n Attributes attributes = moduleDef.getManifest().getMainAttributes();\n String exportedPkgsAttr = attributes.getValue(\"Import-Package\");\n if (exportedPkgsAttr==null) return;\n StringTokenizer st = new StringTokenizer(exportedPkgsAttr, \",\", false);\n Set<String> importedPkgs = new HashSet<String>();\n while (st.hasMoreTokens()) {\n String token = st.nextToken().trim();\n int idx = token.indexOf(';');\n String pkg = (idx == -1) ? token : token.substring(0, idx);\n // System.out.println(\"pkg = \" + pkg);\n importedPkgs.add(pkg);\n }\n for (String pkg : importedPkgs) {\n closure.addExcludedPackage(pkg);\n }\n }", "title": "" }, { "docid": "13686e4eb02893c48c8f7aa6e21ba576", "score": "0.50257075", "text": "public android.os.Bundle getExtras() {\n throw new java.lang.RuntimeException(\"Not Supported\");\n }", "title": "" }, { "docid": "a2f307780afa90ee1db0cca47399f13c", "score": "0.5023835", "text": "public android.os.Bundle getExtras() {\n throw new java.lang.RuntimeException(\"Not Supported\");\n }", "title": "" }, { "docid": "ead9deafba69f50b4e17fa1aedddc686", "score": "0.5011462", "text": "public Bundle getExtras() {\n return mExtras;\n }", "title": "" }, { "docid": "7767a7b8a9ff21c7eb80b8c4cb1045bc", "score": "0.4997182", "text": "public static String getPackageName(String className) {\n/* 312 */ if (StringUtils.isEmpty(className)) {\n/* 313 */ return \"\";\n/* */ }\n/* */ \n/* */ \n/* 317 */ while (className.charAt(0) == '[') {\n/* 318 */ className = className.substring(1);\n/* */ }\n/* */ \n/* 321 */ if (className.charAt(0) == 'L' && className.charAt(className.length() - 1) == ';') {\n/* 322 */ className = className.substring(1);\n/* */ }\n/* */ \n/* 325 */ int i = className.lastIndexOf('.');\n/* 326 */ if (i == -1) {\n/* 327 */ return \"\";\n/* */ }\n/* 329 */ return className.substring(0, i);\n/* */ }", "title": "" }, { "docid": "96806d7f8d15fa243a9b86e5a8c8dd55", "score": "0.49814415", "text": "public ArrayList<Package> getPackagesUsed() {\n return usedPackagingList;\n }", "title": "" } ]
90ad028804e0b2c8def7fb49d14be194
This class was generated by the JAXWS RI. JAXWS RI 2.2.61b01 Generated source version: 2.2
[ { "docid": "42103a24c2566909304d2c18d5dde0c0", "score": "0.0", "text": "@WebService(name = \"Transacciones\", targetNamespace = \"http://WS/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface Transacciones {\n\n\n /**\n * \n * @param montoretirar\n * @param idcliente1\n * @return\n * returns boolean\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"retirar\", targetNamespace = \"http://WS/\", className = \"ws.Retirar\")\n @ResponseWrapper(localName = \"retirarResponse\", targetNamespace = \"http://WS/\", className = \"ws.RetirarResponse\")\n @Action(input = \"http://WS/Transacciones/retirarRequest\", output = \"http://WS/Transacciones/retirarResponse\")\n public boolean retirar(\n @WebParam(name = \"idcliente1\", targetNamespace = \"\")\n int idcliente1,\n @WebParam(name = \"montoretirar\", targetNamespace = \"\")\n int montoretirar);\n\n /**\n * \n * @param montoabonar\n * @param idcliente2\n * @return\n * returns boolean\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"abonar\", targetNamespace = \"http://WS/\", className = \"ws.Abonar\")\n @ResponseWrapper(localName = \"abonarResponse\", targetNamespace = \"http://WS/\", className = \"ws.AbonarResponse\")\n @Action(input = \"http://WS/Transacciones/abonarRequest\", output = \"http://WS/Transacciones/abonarResponse\")\n public boolean abonar(\n @WebParam(name = \"idcliente2\", targetNamespace = \"\")\n int idcliente2,\n @WebParam(name = \"montoabonar\", targetNamespace = \"\")\n int montoabonar);\n\n}", "title": "" } ]
[ { "docid": "66f62bcfd1cf8fb1b5cc108470879e41", "score": "0.6715305", "text": "@WebService(targetNamespace = \"http://F09_WriteOffPaymentHistoryInquiryPOS/F09_RetrieveWriteOffPaymentHistorySI\", name = \"F09_RetrieveWriteOffPaymentHistorySI\")\n@XmlSeeAlso({ObjectFactory.class, th.net.cat.epis.ws.esblibs.cbos.ObjectFactory.class, th.net.cat.epis.ws.f09_writeoffpaymenthistoryinquirypos.ObjectFactory.class})\npublic interface F09RetrieveWriteOffPaymentHistorySI {\n\n @WebResult(name = \"retrieveWriteOffPaymentResponse\", targetNamespace = \"\")\n @RequestWrapper(localName = \"retrieveWriteOffPaymentInfo\", targetNamespace = \"http://F09_WriteOffPaymentHistoryInquiryPOS/F09_RetrieveWriteOffPaymentHistorySI\", className = \"th.net.cat.epis.ws.f09_writeoffpaymenthistoryinquirypos.f09_retrievewriteoffpaymenthistorysi.RetrieveWriteOffPaymentInfo\")\n @WebMethod\n @ResponseWrapper(localName = \"retrieveWriteOffPaymentInfoResponse\", targetNamespace = \"http://F09_WriteOffPaymentHistoryInquiryPOS/F09_RetrieveWriteOffPaymentHistorySI\", className = \"th.net.cat.epis.ws.f09_writeoffpaymenthistoryinquirypos.f09_retrievewriteoffpaymenthistorysi.RetrieveWriteOffPaymentInfoResponse\")\n public th.net.cat.epis.ws.f09_writeoffpaymenthistoryinquirypos.RetrieveWriteOffPaymentResponse retrieveWriteOffPaymentInfo(\n @WebParam(name = \"retrieveWriteOffPaymentRequest\", targetNamespace = \"\")\n th.net.cat.epis.ws.f09_writeoffpaymenthistoryinquirypos.RetrieveWriteOffPaymentRequest retrieveWriteOffPaymentRequest\n );\n}", "title": "" }, { "docid": "f5bfe2ab69afd613da08b717fa27bb93", "score": "0.66326815", "text": "@WebService(name = \"NotificationProducer\", targetNamespace = \"http://docs.oasis-open.org/wsn/bw-2\")\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\n@XmlSeeAlso({\r\n org.oasis_open.docs.wsrf.r_2.ObjectFactory.class,\r\n org.oasis_open.docs.wsn.b_2.ObjectFactory.class,\r\n org.oasis_open.docs.wsrf.bf_2.ObjectFactory.class,\r\n org.oasis_open.docs.wsn.t_1.ObjectFactory.class\r\n})\r\npublic interface NotificationProducer {\r\n\r\n\r\n /**\r\n * \r\n * @param subscribeRequest\r\n * @return\r\n * returns org.oasis_open.docs.wsn.b_2.SubscribeResponse\r\n * @throws UnrecognizedPolicyRequestFault\r\n * @throws SubscribeCreationFailedFault\r\n * @throws InvalidMessageContentExpressionFault\r\n * @throws InvalidFilterFault\r\n * @throws UnsupportedPolicyRequestFault\r\n * @throws NotifyMessageNotSupportedFault\r\n * @throws ResourceUnknownFault\r\n * @throws UnacceptableInitialTerminationTimeFault\r\n * @throws InvalidProducerPropertiesExpressionFault\r\n * @throws TopicNotSupportedFault\r\n * @throws InvalidTopicExpressionFault\r\n * @throws TopicExpressionDialectUnknownFault\r\n */\r\n @WebMethod(operationName = \"Subscribe\", action = \"http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest\")\r\n @WebResult(name = \"SubscribeResponse\", targetNamespace = \"http://docs.oasis-open.org/wsn/b-2\", partName = \"SubscribeResponse\")\r\n public SubscribeResponse subscribe(\r\n @WebParam(name = \"Subscribe\", targetNamespace = \"http://docs.oasis-open.org/wsn/b-2\", partName = \"SubscribeRequest\")\r\n Subscribe subscribeRequest)\r\n throws InvalidFilterFault, InvalidMessageContentExpressionFault, InvalidProducerPropertiesExpressionFault, InvalidTopicExpressionFault, NotifyMessageNotSupportedFault, ResourceUnknownFault, SubscribeCreationFailedFault, TopicExpressionDialectUnknownFault, TopicNotSupportedFault, UnacceptableInitialTerminationTimeFault, UnrecognizedPolicyRequestFault, UnsupportedPolicyRequestFault\r\n ;\r\n\r\n}", "title": "" }, { "docid": "2f3c30b63247130c81b658c01440877a", "score": "0.66164416", "text": "@WebService(targetNamespace = \"http://F13_RetrievePaymentHistory/F13_RetrievePaymentHistorySI\", name = \"F13_RetrievePaymentHistorySI\")\n@XmlSeeAlso({th.net.cat.epis.ws.esblibs.cbos.ObjectFactory.class, th.net.cat.epis.ws.f13_retrievepaymenthistory.ObjectFactory.class, th.net.cat.epis.ws.f13_retrievepaymenthistory.ObjectFactory.class})\npublic interface F13RetrievePaymentHistorySI {\n\n @WebResult(name = \"retrievePaymentHistoryResponse\", targetNamespace = \"\")\n @RequestWrapper(localName = \"retrievePaymentHistory\", targetNamespace = \"http://F13_RetrievePaymentHistory/F13_RetrievePaymentHistorySI\", className = \"th.net.cat.epis.ws.f13_retrievepaymenthistory.f13_retrievepaymenthistorysi.RetrievePaymentHistory\")\n @WebMethod\n @ResponseWrapper(localName = \"retrievePaymentHistoryResponse\", targetNamespace = \"http://F13_RetrievePaymentHistory/F13_RetrievePaymentHistorySI\", className = \"th.net.cat.epis.ws.f13_retrievepaymenthistory.f13_retrievepaymenthistorysi.RetrievePaymentHistoryResponse\")\n public th.net.cat.epis.ws.f13_retrievepaymenthistory.RetrievePaymentHistoryResponse retrievePaymentHistory(\n @WebParam(name = \"retrievePaymentHistoryRequest\", targetNamespace = \"\")\n th.net.cat.epis.ws.f13_retrievepaymenthistory.RetrievePaymentHistoryRequest retrievePaymentHistoryRequest\n );\n}", "title": "" }, { "docid": "ff5b02bf46b34d7b16a01cf46ef92db3", "score": "0.6533684", "text": "@WebService(name = \"UserManagementWs\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws:wsdl\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface UserManagementWs {\n\n\n /**\n * \n * @param returnCode\n * @param usrTtle\n * @param usrSts\n * @param unqId\n * @param usrFrstNm\n * @param usrLng\n * @param usrEmail\n * @param rlCrdnts\n * @param usrLstNm\n * @param cmmnNm\n * @param usrNm\n * @param usrPsswrd\n * @param usrFaxNm\n * @param usrPhnNmbr\n * @param returnDesc\n * @param usrMblNmbr\n */\n @WebMethod(operationName = \"AddUser\")\n @RequestWrapper(localName = \"AddUser\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", className = \"com.sentenial.ws.client.usermgmnt.UserType\")\n @ResponseWrapper(localName = \"AddUserResponse\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", className = \"com.sentenial.ws.client.usermgmnt.UserResponseType\")\n public void addUser(\n @WebParam(name = \"UsrNm\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.INOUT)\n Holder<String> usrNm,\n @WebParam(name = \"UnqId\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.INOUT)\n Holder<String> unqId,\n @WebParam(name = \"RlCrdnts\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.INOUT)\n Holder<List<RoleCoordinatesType>> rlCrdnts,\n @WebParam(name = \"UsrTtle\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.INOUT)\n Holder<UserTitleType> usrTtle,\n @WebParam(name = \"UsrFrstNm\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.INOUT)\n Holder<String> usrFrstNm,\n @WebParam(name = \"UsrLstNm\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.INOUT)\n Holder<String> usrLstNm,\n @WebParam(name = \"UsrPhnNmbr\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.INOUT)\n Holder<String> usrPhnNmbr,\n @WebParam(name = \"UsrMblNmbr\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.INOUT)\n Holder<String> usrMblNmbr,\n @WebParam(name = \"UsrEmail\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.INOUT)\n Holder<String> usrEmail,\n @WebParam(name = \"UsrFaxNm\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.INOUT)\n Holder<String> usrFaxNm,\n @WebParam(name = \"CmmnNm\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.INOUT)\n Holder<String> cmmnNm,\n @WebParam(name = \"UsrPsswrd\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.INOUT)\n Holder<String> usrPsswrd,\n @WebParam(name = \"UsrLng\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.INOUT)\n Holder<LanguageType> usrLng,\n @WebParam(name = \"UsrSts\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<StatusType> usrSts,\n @WebParam(name = \"returnCode\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<String> returnCode,\n @WebParam(name = \"returnDesc\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<String> returnDesc);\n\n /**\n * \n * @param returnCode\n * @param usrTtle\n * @param usrSts\n * @param unqId\n * @param usrFrstNm\n * @param usrLng\n * @param usrEmail\n * @param rlCrdnts\n * @param usrLstNm\n * @param cmmnNm\n * @param usrNm\n * @param usrPsswrd\n * @param usrFaxNm\n * @param usrPhnNmbr\n * @param returnDesc\n * @param usrMblNmbr\n */\n @WebMethod(operationName = \"EditUser\")\n @RequestWrapper(localName = \"EditUser\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", className = \"com.sentenial.ws.client.usermgmnt.UserType\")\n @ResponseWrapper(localName = \"EditUserResponse\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", className = \"com.sentenial.ws.client.usermgmnt.UserResponseType\")\n public void editUser(\n @WebParam(name = \"UsrNm\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.INOUT)\n Holder<String> usrNm,\n @WebParam(name = \"UnqId\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.INOUT)\n Holder<String> unqId,\n @WebParam(name = \"RlCrdnts\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.INOUT)\n Holder<List<RoleCoordinatesType>> rlCrdnts,\n @WebParam(name = \"UsrTtle\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.INOUT)\n Holder<UserTitleType> usrTtle,\n @WebParam(name = \"UsrFrstNm\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.INOUT)\n Holder<String> usrFrstNm,\n @WebParam(name = \"UsrLstNm\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.INOUT)\n Holder<String> usrLstNm,\n @WebParam(name = \"UsrPhnNmbr\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.INOUT)\n Holder<String> usrPhnNmbr,\n @WebParam(name = \"UsrMblNmbr\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.INOUT)\n Holder<String> usrMblNmbr,\n @WebParam(name = \"UsrEmail\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.INOUT)\n Holder<String> usrEmail,\n @WebParam(name = \"UsrFaxNm\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.INOUT)\n Holder<String> usrFaxNm,\n @WebParam(name = \"CmmnNm\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.INOUT)\n Holder<String> cmmnNm,\n @WebParam(name = \"UsrPsswrd\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.INOUT)\n Holder<String> usrPsswrd,\n @WebParam(name = \"UsrLng\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.INOUT)\n Holder<LanguageType> usrLng,\n @WebParam(name = \"UsrSts\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<StatusType> usrSts,\n @WebParam(name = \"returnCode\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<String> returnCode,\n @WebParam(name = \"returnDesc\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<String> returnDesc);\n\n /**\n * \n * @param returnCode\n * @param usrTtle\n * @param usrSts\n * @param unqId\n * @param usrFrstNm\n * @param usrLng\n * @param usrEmail\n * @param rlCrdnts\n * @param usrLstNm\n * @param cmmnNm\n * @param usrNm\n * @param usrPsswrd\n * @param usrFaxNm\n * @param usrPhnNmbr\n * @param returnDesc\n * @param usrMblNmbr\n */\n @WebMethod(operationName = \"ViewUser\")\n @RequestWrapper(localName = \"ViewUser\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", className = \"com.sentenial.ws.client.usermgmnt.UserIdType\")\n @ResponseWrapper(localName = \"ViewUserResponse\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", className = \"com.sentenial.ws.client.usermgmnt.UserResponseType\")\n public void viewUser(\n @WebParam(name = \"UsrNm\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.INOUT)\n Holder<String> usrNm,\n @WebParam(name = \"UnqId\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.INOUT)\n Holder<String> unqId,\n @WebParam(name = \"RlCrdnts\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.INOUT)\n Holder<List<RoleCoordinatesType>> rlCrdnts,\n @WebParam(name = \"UsrTtle\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<UserTitleType> usrTtle,\n @WebParam(name = \"UsrFrstNm\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<String> usrFrstNm,\n @WebParam(name = \"UsrLstNm\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<String> usrLstNm,\n @WebParam(name = \"UsrPhnNmbr\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<String> usrPhnNmbr,\n @WebParam(name = \"UsrMblNmbr\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<String> usrMblNmbr,\n @WebParam(name = \"UsrEmail\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<String> usrEmail,\n @WebParam(name = \"UsrFaxNm\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<String> usrFaxNm,\n @WebParam(name = \"CmmnNm\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<String> cmmnNm,\n @WebParam(name = \"UsrPsswrd\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<String> usrPsswrd,\n @WebParam(name = \"UsrLng\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<LanguageType> usrLng,\n @WebParam(name = \"UsrSts\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<StatusType> usrSts,\n @WebParam(name = \"returnCode\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<String> returnCode,\n @WebParam(name = \"returnDesc\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<String> returnDesc);\n\n /**\n * \n * @param returnCode\n * @param usrTtle\n * @param usrSts\n * @param unqId\n * @param usrFrstNm\n * @param usrLng\n * @param usrEmail\n * @param rlCrdnts\n * @param usrLstNm\n * @param cmmnNm\n * @param usrNm\n * @param usrPsswrd\n * @param usrFaxNm\n * @param usrPhnNmbr\n * @param returnDesc\n * @param usrMblNmbr\n */\n @WebMethod(operationName = \"ActivateUser\")\n @RequestWrapper(localName = \"ActivateUser\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", className = \"com.sentenial.ws.client.usermgmnt.UserIdType\")\n @ResponseWrapper(localName = \"ActivateUserResponse\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", className = \"com.sentenial.ws.client.usermgmnt.UserResponseType\")\n public void activateUser(\n @WebParam(name = \"UsrNm\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.INOUT)\n Holder<String> usrNm,\n @WebParam(name = \"UnqId\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.INOUT)\n Holder<String> unqId,\n @WebParam(name = \"RlCrdnts\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.INOUT)\n Holder<List<RoleCoordinatesType>> rlCrdnts,\n @WebParam(name = \"UsrTtle\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<UserTitleType> usrTtle,\n @WebParam(name = \"UsrFrstNm\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<String> usrFrstNm,\n @WebParam(name = \"UsrLstNm\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<String> usrLstNm,\n @WebParam(name = \"UsrPhnNmbr\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<String> usrPhnNmbr,\n @WebParam(name = \"UsrMblNmbr\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<String> usrMblNmbr,\n @WebParam(name = \"UsrEmail\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<String> usrEmail,\n @WebParam(name = \"UsrFaxNm\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<String> usrFaxNm,\n @WebParam(name = \"CmmnNm\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<String> cmmnNm,\n @WebParam(name = \"UsrPsswrd\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<String> usrPsswrd,\n @WebParam(name = \"UsrLng\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<LanguageType> usrLng,\n @WebParam(name = \"UsrSts\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<StatusType> usrSts,\n @WebParam(name = \"returnCode\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<String> returnCode,\n @WebParam(name = \"returnDesc\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<String> returnDesc);\n\n /**\n * \n * @param returnCode\n * @param usrTtle\n * @param usrSts\n * @param unqId\n * @param usrFrstNm\n * @param usrLng\n * @param usrEmail\n * @param rlCrdnts\n * @param usrLstNm\n * @param cmmnNm\n * @param usrNm\n * @param usrPsswrd\n * @param usrFaxNm\n * @param usrPhnNmbr\n * @param returnDesc\n * @param usrMblNmbr\n */\n @WebMethod(operationName = \"DeactivateUser\")\n @RequestWrapper(localName = \"DeactivateUser\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", className = \"com.sentenial.ws.client.usermgmnt.UserIdType\")\n @ResponseWrapper(localName = \"DeactivateUserResponse\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", className = \"com.sentenial.ws.client.usermgmnt.UserResponseType\")\n public void deactivateUser(\n @WebParam(name = \"UsrNm\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.INOUT)\n Holder<String> usrNm,\n @WebParam(name = \"UnqId\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.INOUT)\n Holder<String> unqId,\n @WebParam(name = \"RlCrdnts\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.INOUT)\n Holder<List<RoleCoordinatesType>> rlCrdnts,\n @WebParam(name = \"UsrTtle\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<UserTitleType> usrTtle,\n @WebParam(name = \"UsrFrstNm\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<String> usrFrstNm,\n @WebParam(name = \"UsrLstNm\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<String> usrLstNm,\n @WebParam(name = \"UsrPhnNmbr\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<String> usrPhnNmbr,\n @WebParam(name = \"UsrMblNmbr\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<String> usrMblNmbr,\n @WebParam(name = \"UsrEmail\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<String> usrEmail,\n @WebParam(name = \"UsrFaxNm\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<String> usrFaxNm,\n @WebParam(name = \"CmmnNm\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<String> cmmnNm,\n @WebParam(name = \"UsrPsswrd\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<String> usrPsswrd,\n @WebParam(name = \"UsrLng\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<LanguageType> usrLng,\n @WebParam(name = \"UsrSts\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<StatusType> usrSts,\n @WebParam(name = \"returnCode\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<String> returnCode,\n @WebParam(name = \"returnDesc\", targetNamespace = \"urn:com:sentenial:origix:ws:usermgmnt-ws\", mode = WebParam.Mode.OUT)\n Holder<String> returnDesc);\n\n}", "title": "" }, { "docid": "2ce955d12ffc1ca8021ed84b2f9f133d", "score": "0.6355543", "text": "@WebService(name = \"SAPGRC_AC_IDM_REQUESTSTATUSVi_Document\", targetNamespace = \"urn:SAPGRC_AC_IDM_REQUESTSTATUSWsd/SAPGRC_AC_IDM_REQUESTSTATUSVi/document\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface SAPGRCACIDMREQUESTSTATUSViDocument {\n\n\n /**\n * \n * @param requestId\n * @param language\n * @return\n * returns examples.webservices.simple_client.requeststatus.RequestStatusDTO\n * @throws GetStatusComVirsaAeCoreBOExceptionDoc\n */\n @WebMethod\n @WebResult(name = \"Response\", targetNamespace = \"urn:SAPGRC_AC_IDM_REQUESTSTATUSVi\")\n @RequestWrapper(localName = \"getStatus\", targetNamespace = \"urn:SAPGRC_AC_IDM_REQUESTSTATUSVi\", className = \"oracle.iam.connectors.sap.cup.ws.getstatus.GetStatus\")\n @ResponseWrapper(localName = \"getStatusResponse\", targetNamespace = \"urn:SAPGRC_AC_IDM_REQUESTSTATUSVi\", className = \"oracle.iam.connectors.sap.cup.ws.getstatus.GetStatusResponse\")\n public RequestStatusDTO getStatus(\n @WebParam(name = \"requestId\", targetNamespace = \"urn:SAPGRC_AC_IDM_REQUESTSTATUSVi\")\n String requestId,\n @WebParam(name = \"language\", targetNamespace = \"urn:SAPGRC_AC_IDM_REQUESTSTATUSVi\")\n String language)\n throws GetStatusComVirsaAeCoreBOExceptionDoc\n ;\n\n}", "title": "" }, { "docid": "96402a6e2f15813d30771e8c686def2c", "score": "0.62853247", "text": "@WebService(targetNamespace = \"http://www.apusic.com/esb/GetArtificialPersonByOrgCode\", name = \"GetArtificialPersonByOrgCodePortType\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface GetArtificialPersonByOrgCodePortType {\n\n @WebResult(name = \"result\", targetNamespace = \"http://www.apusic.com/esb/GetArtificialPersonByOrgCode\")\n @RequestWrapper(localName = \"GetArtificialPersonByOrgCode\", targetNamespace = \"http://www.apusic.com/esb/GetArtificialPersonByOrgCode\", className = \"com.jshx.qyjbxx.getartificialpersonbyorgcode.GetArtificialPersonByOrgCode\")\n @WebMethod(operationName = \"GetArtificialPersonByOrgCode\", action = \"http://www.apusic.com/esb/GetArtificialPersonByOrgCode/GetArtificialPersonByOrgCode\")\n @ResponseWrapper(localName = \"GetArtificialPersonByOrgCodeResponse\", targetNamespace = \"http://www.apusic.com/esb/GetArtificialPersonByOrgCode\", className = \"com.jshx.qyjbxx.getartificialpersonbyorgcode.GetArtificialPersonByOrgCodeResponse\")\n public java.lang.String getArtificialPersonByOrgCode(\n @WebParam(name = \"orgCode\", targetNamespace = \"http://www.apusic.com/esb/GetArtificialPersonByOrgCode\")\n java.lang.String orgCode\n );\n}", "title": "" }, { "docid": "514ea35d8e3c06f1b55243fc87f27034", "score": "0.6277192", "text": "@WebService(targetNamespace = \"http://ws.das.ubp.edu.ar/\", name = \"PaisesWS\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\npublic interface PaisesWS {\r\n\r\n @WebMethod(action = \"urn:GetPaises\")\r\n @RequestWrapper(localName = \"getPaises\", targetNamespace = \"http://ws.das.ubp.edu.ar/\", className = \"ar.edu.ubp.das.ws.GetPaises\")\r\n @ResponseWrapper(localName = \"getPaisesResponse\", targetNamespace = \"http://ws.das.ubp.edu.ar/\", className = \"ar.edu.ubp.das.ws.GetPaisesResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n public LinkedList<ar.edu.ubp.das.ws.PaisBean> getPaises() throws Exception_Exception;\r\n\r\n @WebMethod(action = \"urn:Test\")\r\n @RequestWrapper(localName = \"test\", targetNamespace = \"http://ws.das.ubp.edu.ar/\", className = \"ar.edu.ubp.das.ws.Test\")\r\n @ResponseWrapper(localName = \"testResponse\", targetNamespace = \"http://ws.das.ubp.edu.ar/\", className = \"ar.edu.ubp.das.ws.TestResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n public java.lang.String test();\r\n}", "title": "" }, { "docid": "56f35840ac2e1dca06848af096108a05", "score": "0.62416255", "text": "@WebService(name = \"ViajesWS\", targetNamespace = \"http://ws.travels.spacetravels.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ViajesWS {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<com.spacetravels.travels.ws.Viajes>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"obtenerTodosViajesOrigen\", targetNamespace = \"http://ws.travels.spacetravels.com/\", className = \"com.spacetravels.travels.ws.ObtenerTodosViajesOrigen\")\n @ResponseWrapper(localName = \"obtenerTodosViajesOrigenResponse\", targetNamespace = \"http://ws.travels.spacetravels.com/\", className = \"com.spacetravels.travels.ws.ObtenerTodosViajesOrigenResponse\")\n public List<Viajes> obtenerTodosViajesOrigen(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns com.spacetravels.travels.ws.Viajes\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"crearViaje\", targetNamespace = \"http://ws.travels.spacetravels.com/\", className = \"com.spacetravels.travels.ws.CrearViaje\")\n @ResponseWrapper(localName = \"crearViajeResponse\", targetNamespace = \"http://ws.travels.spacetravels.com/\", className = \"com.spacetravels.travels.ws.CrearViajeResponse\")\n public Viajes crearViaje(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n Viajes arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<com.spacetravels.travels.ws.Viajes>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"obtenerTodosViajesDestino\", targetNamespace = \"http://ws.travels.spacetravels.com/\", className = \"com.spacetravels.travels.ws.ObtenerTodosViajesDestino\")\n @ResponseWrapper(localName = \"obtenerTodosViajesDestinoResponse\", targetNamespace = \"http://ws.travels.spacetravels.com/\", className = \"com.spacetravels.travels.ws.ObtenerTodosViajesDestinoResponse\")\n public List<Viajes> obtenerTodosViajesDestino(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @return\n * returns java.util.List<com.spacetravels.travels.ws.Viajes>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"obtenerTodosViajes\", targetNamespace = \"http://ws.travels.spacetravels.com/\", className = \"com.spacetravels.travels.ws.ObtenerTodosViajes\")\n @ResponseWrapper(localName = \"obtenerTodosViajesResponse\", targetNamespace = \"http://ws.travels.spacetravels.com/\", className = \"com.spacetravels.travels.ws.ObtenerTodosViajesResponse\")\n public List<Viajes> obtenerTodosViajes();\n\n}", "title": "" }, { "docid": "97ae088ac219017d0dd61d45b6da72a3", "score": "0.6240041", "text": "public interface WSResourceProperties {\r\n\t\r\n\t/**\r\n\t * retrieves a property of a resource\r\n\t * @param targetNamespace the namespace of the property\r\n\t * @param name the name of the property\r\n\t * @return a SoapObject containing the property's values\r\n\t * @throws WSBaseFault if the property specified by targetNamespace and\r\n\t * name does not exist, or if the operation is not supported by the resource\r\n \t * @throws IOException if a connection error occurs\r\n\t * @throws XmlPullParserException if the response could not be parsed\r\n\t */\r\n\tpublic SoapObject getResourceProperty(String targetNamespace, String name) throws WSBaseFault, IOException, XmlPullParserException;\r\n\t\r\n\t/**\r\n\t * retrieves multiple resource properties at once\r\n\t * @param targetNamespaces a String[] containing the namespaces of the property\r\n\t * @param names a String[] containing the names of the property\r\n\t * @return a SoapObject containing the values of the specified properties\r\n\t * @throws WSBaseFault if one or more of the properties specified by targetNamespaces and\r\n\t * names do not exist, or if the operation is not supported by the resource\r\n \t * @throws IOException if a connection error occurs\r\n\t * @throws XmlPullParserException if the response could not be parsed\r\n\t */\r\n\tpublic SoapObject getMultipleResourceProperties(String targetNamespaces[], String[] names) throws WSBaseFault, IOException, XmlPullParserException;\r\n\t\r\n\t/**\r\n\t * retrieves the values of all resource properties\r\n\t * @return a SoapObject containing all properties of the resource\r\n\t * @throws WSBaseFault if the operation is not supported by the resource\r\n \t * @throws IOException if a connection error occurs\r\n\t * @throws XmlPullParserException if the response could not be parsed\r\n\t */\r\n\tpublic SoapObject getResourcePropertyDocument() throws WSBaseFault, IOException, XmlPullParserException;\r\n\t\r\n//\tpublic SoapObject queryResourceProperties(String dialect, String expression) throws WSBaseFault, IOException, XmlPullParserException;\r\n//\t\r\n//\tpublic SoapObject putResourcePropertyDocument(SoapObject document) throws WSBaseFault, IOException, XmlPullParserException;\r\n//\tpublic SoapObject insertResourceProperties(Object inserts) throws WSBaseFault, IOException, XmlPullParserException;\r\n//\tpublic SoapObject updateResourceProperties(Object updates) throws WSBaseFault, IOException, XmlPullParserException;\r\n//\tpublic SoapObject setResourceProperties(Object inserts, Object updates, SoapPrimitive[] deletes) throws WSBaseFault, IOException, XmlPullParserException;\r\n//\tpublic SoapObject deleteResourceProperties(SoapPrimitive[] deletes) throws WSBaseFault, IOException, XmlPullParserException;\r\n\t\r\n}", "title": "" }, { "docid": "7aabd8bcd5820f6d0e3031cb32ede8cf", "score": "0.6227402", "text": "@WebService(name = \"ImmWsImp\", targetNamespace = \"http://antel.com.uy/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ImmWsImp {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"sayHello\", targetNamespace = \"http://antel.com.uy/\", className = \"uy.com.antel.SayHello\")\n @ResponseWrapper(localName = \"sayHelloResponse\", targetNamespace = \"http://antel.com.uy/\", className = \"uy.com.antel.SayHelloResponse\")\n public String sayHello(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns uy.com.antel.SolicitudIMM\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSolicitud\", targetNamespace = \"http://antel.com.uy/\", className = \"uy.com.antel.GetSolicitud\")\n @ResponseWrapper(localName = \"getSolicitudResponse\", targetNamespace = \"http://antel.com.uy/\", className = \"uy.com.antel.GetSolicitudResponse\")\n public SolicitudIMM getSolicitud(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n SolicitudIMM arg0);\n\n}", "title": "" }, { "docid": "4523e5e3e9eea7e13f0c1963a0590510", "score": "0.6216958", "text": "@WebService(name = \"aponet_PortType\", targetNamespace = PepConfig.TARGET_NAMESPACE)\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n sk.gov.ekolky.estamp.fo10.nominal.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.aponet.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.assessment.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.cashdesk.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.infra.ObjectFactory.class,\n sk.gov.ekolky.estamp.xsd10.ObjectFactory.class,\n com.jump_soft.estamp.fo10.common.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.estamp.ObjectFactory.class\n})\npublic interface AponetPortType {\n\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.aponet.RefundReserveResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"refundReserveResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public RefundReserveResponse refundReserve(\n @WebParam(name = \"refundReserveRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n RefundReserveRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.aponet.RefundReserveUndoResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"refundReserveUndoResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public RefundReserveUndoResponse refundReserveUndo(\n @WebParam(name = \"refundReserveUndoRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n RefundReserveUndoRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.aponet.RegisterApplicationResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"registerApplicationResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public RegisterApplicationResponse registerApplication(\n @WebParam(name = \"registerApplicationRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n RegisterApplicationRequest parameters)\n throws BloxFaultMessage\n ;\n\n}", "title": "" }, { "docid": "49094db7de082fab133c241637ef3f25", "score": "0.6215449", "text": "@WebService(targetNamespace = \"http://mss.cmcc.com/OA_PageInquiryDepartmentInfoSrv\", name = \"OA_PageInquiryDepartmentInfoSrv\")\n@XmlSeeAlso({com.cmcc.mss.msgheader.ObjectFactory.class, ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface OAPageInquiryDepartmentInfoSrv {\n\n @WebMethod(action = \"process\")\n @WebResult(name = \"OA_PageInquiryDepartmentInfoSrvResponse\", targetNamespace = \"http://mss.cmcc.com/OA_PageInquiryDepartmentInfoSrv\", partName = \"payload\")\n public OAPageInquiryDepartmentInfoSrvResponse process(\n @WebParam(partName = \"payload\", name = \"OA_PageInquiryDepartmentInfoSrvRequest\", targetNamespace = \"http://mss.cmcc.com/OA_PageInquiryDepartmentInfoSrv\")\n OAPageInquiryDepartmentInfoSrvRequest payload\n );\n}", "title": "" }, { "docid": "ec31769fec06031f386aa894585d3514", "score": "0.62050253", "text": "@WebService(name = \"CalWS\", targetNamespace = \"http://cal.me.org/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface CalWS {\n\n\n /**\n * \n * @param i\n * @param j\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"add\", targetNamespace = \"http://cal.me.org/\", className = \"org.me.cal.Add\")\n @ResponseWrapper(localName = \"addResponse\", targetNamespace = \"http://cal.me.org/\", className = \"org.me.cal.AddResponse\")\n @Action(input = \"http://cal.me.org/CalWS/addRequest\", output = \"http://cal.me.org/CalWS/addResponse\")\n public int add(\n @WebParam(name = \"i\", targetNamespace = \"\")\n int i,\n @WebParam(name = \"j\", targetNamespace = \"\")\n int j);\n\n /**\n * \n * @param name\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"hello\", targetNamespace = \"http://cal.me.org/\", className = \"org.me.cal.Hello\")\n @ResponseWrapper(localName = \"helloResponse\", targetNamespace = \"http://cal.me.org/\", className = \"org.me.cal.HelloResponse\")\n @Action(input = \"http://cal.me.org/CalWS/helloRequest\", output = \"http://cal.me.org/CalWS/helloResponse\")\n public String hello(\n @WebParam(name = \"name\", targetNamespace = \"\")\n String name);\n\n}", "title": "" }, { "docid": "858a620cf40c8d70ce44eea9cb52e08a", "score": "0.6197809", "text": "@WebService(name = \"IServerProxieWS\", targetNamespace = \"http://service.server.sample.safe.pargo.mdcc.ufc.br/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface IServerProxieWS {\n\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"setServerProxie\", targetNamespace = \"http://service.server.sample.safe.pargo.mdcc.ufc.br/\", className = \"br.ufc.mdcc.pargo.backend.server.proxy.stubs.SetServerProxie\")\n @ResponseWrapper(localName = \"setServerProxieResponse\", targetNamespace = \"http://service.server.sample.safe.pargo.mdcc.ufc.br/\", className = \"br.ufc.mdcc.pargo.backend.server.proxy.stubs.SetServerProxieResponse\")\n @Action(input = \"http://service.server.sample.safe.pargo.mdcc.ufc.br/IServerProxieWS/setServerProxieRequest\", output = \"http://service.server.sample.safe.pargo.mdcc.ufc.br/IServerProxieWS/setServerProxieResponse\")\n public void setServerProxie(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n ServerComponentProxie arg0);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"sendMessage\", targetNamespace = \"http://service.server.sample.safe.pargo.mdcc.ufc.br/\", className = \"br.ufc.mdcc.pargo.backend.server.proxy.stubs.SendMessage\")\n @ResponseWrapper(localName = \"sendMessageResponse\", targetNamespace = \"http://service.server.sample.safe.pargo.mdcc.ufc.br/\", className = \"br.ufc.mdcc.pargo.backend.server.proxy.stubs.SendMessageResponse\")\n @Action(input = \"http://service.server.sample.safe.pargo.mdcc.ufc.br/IServerProxieWS/sendMessageRequest\", output = \"http://service.server.sample.safe.pargo.mdcc.ufc.br/IServerProxieWS/sendMessageResponse\")\n public void sendMessage(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n}", "title": "" }, { "docid": "59d3fff9556bdf16d611a6f8b225d243", "score": "0.61834157", "text": "@WebService(name = \"TemperaturePreferencesStore\", targetNamespace = \"http://webservices.arles.fr/\")\r\npublic interface TemperaturePreferencesStorePortPort {\r\n\r\n\r\n /**\r\n * \r\n * @param username\r\n * @param password\r\n * @return\r\n * returns double\r\n * @throws Exception_Exception\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"getPreference\", targetNamespace = \"http://webservices.arles.fr/\", className = \"atag.apps.mainApp.gen.client.GetPreference\")\r\n @ResponseWrapper(localName = \"getPreferenceResponse\", targetNamespace = \"http://webservices.arles.fr/\", className = \"atag.apps.mainApp.gen.client.GetPreferenceResponse\")\r\n public double getPreference(\r\n @WebParam(name = \"username\", targetNamespace = \"\")\r\n String username,\r\n @WebParam(name = \"password\", targetNamespace = \"\")\r\n String password)\r\n throws Exception_Exception\r\n ;\r\n\r\n}", "title": "" }, { "docid": "83a1d90af188092baefc25e40d02c2e9", "score": "0.61783874", "text": "@WebService(targetNamespace = \"http://soapui.cookbook.samples/contract/invoice\", name = \"InvoicePortType\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface InvoicePortType {\n\n @Oneway\n @RequestWrapper(localName = \"deleteInvoice\", targetNamespace = \"http://soapui.cookbook.samples/schema/invoice\", className = \"ws.invoice.v3.InvoiceRefType\")\n @WebMethod(action = \"http://soapui.cookbook.samples/deleteInvoiceRequest/request\")\n public void deleteInvoice(\n @WebParam(name = \"invoiceNo\", targetNamespace = \"http://soapui.cookbook.samples/schema/invoice\")\n java.lang.String invoiceNo\n );\n\n @WebResult(name = \"invoiceNo\", targetNamespace = \"http://soapui.cookbook.samples/schema/invoice\")\n @RequestWrapper(localName = \"createInvoice\", targetNamespace = \"http://soapui.cookbook.samples/schema/invoice\", className = \"ws.invoice.v3.InvoiceDocumentType\")\n @WebMethod(action = \"http://soapui.cookbook.samples/createInvoiceRequest/request\")\n @ResponseWrapper(localName = \"Acknowledgement\", targetNamespace = \"http://soapui.cookbook.samples/schema/invoice\", className = \"ws.invoice.v3.InvoiceRefType\")\n public java.lang.String createInvoice(\n @WebParam(name = \"id\", targetNamespace = \"http://soapui.cookbook.samples/schema/invoice\")\n java.lang.String id,\n @WebParam(name = \"customerRef\", targetNamespace = \"http://soapui.cookbook.samples/schema/invoice\")\n java.lang.String customerRef,\n @WebParam(name = \"amount\", targetNamespace = \"http://soapui.cookbook.samples/schema/invoice\")\n double amount,\n @WebParam(name = \"dueDate\", targetNamespace = \"http://soapui.cookbook.samples/schema/invoice\")\n javax.xml.datatype.XMLGregorianCalendar dueDate\n );\n\n @RequestWrapper(localName = \"retrieveInvoice\", targetNamespace = \"http://soapui.cookbook.samples/schema/invoice\", className = \"ws.invoice.v3.InvoiceRefType\")\n @WebMethod(action = \"http://soapui.cookbook.samples/retrieveInvoiceRequest/request\")\n @ResponseWrapper(localName = \"InvoiceDocument\", targetNamespace = \"http://soapui.cookbook.samples/schema/invoice\", className = \"ws.invoice.v3.InvoiceDocumentType\")\n public void retrieveInvoice(\n @WebParam(name = \"invoiceNo\", targetNamespace = \"http://soapui.cookbook.samples/schema/invoice\")\n java.lang.String invoiceNo,\n @WebParam(mode = WebParam.Mode.OUT, name = \"id\", targetNamespace = \"http://soapui.cookbook.samples/schema/invoice\")\n javax.xml.ws.Holder<java.lang.String> id,\n @WebParam(mode = WebParam.Mode.OUT, name = \"customerRef\", targetNamespace = \"http://soapui.cookbook.samples/schema/invoice\")\n javax.xml.ws.Holder<java.lang.String> customerRef,\n @WebParam(mode = WebParam.Mode.OUT, name = \"amount\", targetNamespace = \"http://soapui.cookbook.samples/schema/invoice\")\n javax.xml.ws.Holder<java.lang.Double> amount,\n @WebParam(mode = WebParam.Mode.OUT, name = \"dueDate\", targetNamespace = \"http://soapui.cookbook.samples/schema/invoice\")\n javax.xml.ws.Holder<javax.xml.datatype.XMLGregorianCalendar> dueDate\n );\n\n @WebResult(name = \"invoiceNo\", targetNamespace = \"http://soapui.cookbook.samples/schema/invoice\")\n @RequestWrapper(localName = \"updateInvoice\", targetNamespace = \"http://soapui.cookbook.samples/schema/invoice\", className = \"ws.invoice.v3.InvoiceDocumentType\")\n @WebMethod(action = \"http://soapui.cookbook.samples/updateInvoiceRequest/request\")\n @ResponseWrapper(localName = \"Acknowledgement\", targetNamespace = \"http://soapui.cookbook.samples/schema/invoice\", className = \"ws.invoice.v3.InvoiceRefType\")\n public java.lang.String updateInvoice(\n @WebParam(name = \"id\", targetNamespace = \"http://soapui.cookbook.samples/schema/invoice\")\n java.lang.String id,\n @WebParam(name = \"customerRef\", targetNamespace = \"http://soapui.cookbook.samples/schema/invoice\")\n java.lang.String customerRef,\n @WebParam(name = \"amount\", targetNamespace = \"http://soapui.cookbook.samples/schema/invoice\")\n double amount,\n @WebParam(name = \"dueDate\", targetNamespace = \"http://soapui.cookbook.samples/schema/invoice\")\n javax.xml.datatype.XMLGregorianCalendar dueDate\n );\n}", "title": "" }, { "docid": "d023c7e2729717ff69cf0d9bd5b75fe7", "score": "0.6168853", "text": "@WebService(name = \"IIVRPaymentDetailService\", targetNamespace = \"http://webservices.nes.accenture.com/\")\n@XmlSeeAlso({\n com.accenture.nes.dto.webservicedto.ivr.ObjectFactory.class,\n com.accenture.nes.webservices.ObjectFactory.class,\n com.accenture.nes.util.ObjectFactory.class,\n com.accenture.nes.webservicedto.ivr.ObjectFactory.class\n})\npublic interface IIVRPaymentDetailService {\n\n\n /**\n * \n * @param getPaymentStatusRequestDTO\n * @return\n * returns com.accenture.nes.webservicedto.ivr.GetPaymentStatusResponceDTO\n */\n @WebMethod(operationName = \"GetPaymentStatus\", action = \"GetPaymentStatus\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"GetPaymentStatus\", targetNamespace = \"http://webservices.nes.accenture.com/\", className = \"com.accenture.nes.webservices.GetPaymentStatus\")\n @ResponseWrapper(localName = \"GetPaymentStatusResponse\", targetNamespace = \"http://webservices.nes.accenture.com/\", className = \"com.accenture.nes.webservices.GetPaymentStatusResponse\")\n public GetPaymentStatusResponceDTO getPaymentStatus(\n @WebParam(name = \"getPaymentStatusRequestDTO\", targetNamespace = \"\")\n GetPaymentStatusRequestDTO getPaymentStatusRequestDTO);\n\n}", "title": "" }, { "docid": "50eb3402c4b36ddf03481b8ea1a2be15", "score": "0.615547", "text": "@WebService(targetNamespace = \"http://tempuri.org/\", name = \"OnlineMessagesServiceSoap\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface OnlineMessagesServiceSoap {\n\n /**\n * This methods allows clients to ping server application defined by input parameter messageHandlerApplication\n */\n @WebMethod(operationName = \"Ping\", action = \"http://tempuri.org/Ping\")\n @RequestWrapper(localName = \"Ping\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.Ping\")\n @ResponseWrapper(localName = \"PingResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.PingResponse\")\n @WebResult(name = \"PingResult\", targetNamespace = \"http://tempuri.org/\")\n public java.lang.String ping(\n @WebParam(name = \"messageHandlerApplication\", targetNamespace = \"http://tempuri.org/\")\n java.lang.String messageHandlerApplication\n );\n\n /**\n * This Method allows clients to request data from a predefined set of server applications.<br>Parameters :<br>&nbsp; messageHandlerApplication - name of application to invoke.<br>&nbsp; chain - id of chain requesting data.<br>&nbsp; branch - id of branch requesting data.<BR>&nbsp; messageData - request data.\n */\n @WebMethod(operationName = \"RequestData\", action = \"http://tempuri.org/RequestData\")\n @RequestWrapper(localName = \"RequestData\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.RequestData\")\n @ResponseWrapper(localName = \"RequestDataResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.RequestDataResponse\")\n @WebResult(name = \"RequestDataResult\", targetNamespace = \"http://tempuri.org/\")\n public java.lang.String requestData(\n @WebParam(name = \"messageHandlerApplication\", targetNamespace = \"http://tempuri.org/\")\n java.lang.String messageHandlerApplication,\n @WebParam(name = \"chain\", targetNamespace = \"http://tempuri.org/\")\n java.lang.String chain,\n @WebParam(name = \"branch\", targetNamespace = \"http://tempuri.org/\")\n java.lang.String branch,\n @WebParam(name = \"messageData\", targetNamespace = \"http://tempuri.org/\")\n java.lang.String messageData\n );\n}", "title": "" }, { "docid": "8d810fcfcb134f6d44ddeaedf35bc4c9", "score": "0.61385757", "text": "@WebService(targetNamespace = \"http://tempuri.org/\", name = \"ServiceSoap\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface ServiceSoap {\n\n @WebResult(name = \"HelloWorldResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"HelloWorld\", targetNamespace = \"http://tempuri.org/\", className = \"com.zebone.nhis.webservice.client.lis.HelloWorld\")\n @WebMethod(operationName = \"HelloWorld\", action = \"http://tempuri.org/HelloWorld\")\n @ResponseWrapper(localName = \"HelloWorldResponse\", targetNamespace = \"http://tempuri.org/\", className = \"com.zebone.nhis.webservice.client.lis.HelloWorldResponse\")\n public java.lang.String helloWorld();\n\n @WebResult(name = \"LisReportResResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"LisReportRes\", targetNamespace = \"http://tempuri.org/\", className = \"com.zebone.nhis.webservice.client.lis.LisReportRes\")\n @WebMethod(operationName = \"LisReportRes\", action = \"http://tempuri.org/LisReportRes\")\n @ResponseWrapper(localName = \"LisReportResResponse\", targetNamespace = \"http://tempuri.org/\", className = \"com.zebone.nhis.webservice.client.lis.LisReportResResponse\")\n public java.lang.String lisReportRes(\n @WebParam(name = \"str_pat_id\", targetNamespace = \"http://tempuri.org/\")\n java.lang.String strPatId\n );\n\n @WebResult(name = \"LisOrigFileListResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"LisOrigFileList\", targetNamespace = \"http://tempuri.org/\", className = \"com.zebone.nhis.webservice.client.lis.LisOrigFileList\")\n @WebMethod(operationName = \"LisOrigFileList\", action = \"http://tempuri.org/LisOrigFileList\")\n @ResponseWrapper(localName = \"LisOrigFileListResponse\", targetNamespace = \"http://tempuri.org/\", className = \"com.zebone.nhis.webservice.client.lis.LisOrigFileListResponse\")\n public java.lang.String lisOrigFileList(\n @WebParam(name = \"str_patient\", targetNamespace = \"http://tempuri.org/\")\n java.lang.String strPatient,\n @WebParam(name = \"str_times\", targetNamespace = \"http://tempuri.org/\")\n java.lang.String strTimes,\n @WebParam(name = \"str_visit_flag\", targetNamespace = \"http://tempuri.org/\")\n java.lang.String strVisitFlag\n );\n\n @WebResult(name = \"LisReportListResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"LisReportList\", targetNamespace = \"http://tempuri.org/\", className = \"com.zebone.nhis.webservice.client.lis.LisReportList\")\n @WebMethod(operationName = \"LisReportList\", action = \"http://tempuri.org/LisReportList\")\n @ResponseWrapper(localName = \"LisReportListResponse\", targetNamespace = \"http://tempuri.org/\", className = \"com.zebone.nhis.webservice.client.lis.LisReportListResponse\")\n public java.lang.String lisReportList(\n @WebParam(name = \"dt_sdate\", targetNamespace = \"http://tempuri.org/\")\n javax.xml.datatype.XMLGregorianCalendar dtSdate,\n @WebParam(name = \"dt_edate\", targetNamespace = \"http://tempuri.org/\")\n javax.xml.datatype.XMLGregorianCalendar dtEdate\n );\n}", "title": "" }, { "docid": "2498b3de57049631e249ae4214b3f0af", "score": "0.6119447", "text": "@WebService(name = \"MovieInformationSoap\", targetNamespace = \"http://www.ignyte.com/whatsshowing\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface MovieInformationSoap {\r\n\r\n\r\n /**\r\n * This method will retrieve a list of all theaters and the movies playing today.\r\n * \r\n * @param zipCode\r\n * @param radius\r\n * @return\r\n * returns com.ignyte.whatsshowing.ArrayOfTheater\r\n */\r\n @WebMethod(operationName = \"GetTheatersAndMovies\", action = \"http://www.ignyte.com/whatsshowing/GetTheatersAndMovies\")\r\n @WebResult(name = \"GetTheatersAndMoviesResult\", targetNamespace = \"http://www.ignyte.com/whatsshowing\")\r\n @RequestWrapper(localName = \"GetTheatersAndMovies\", targetNamespace = \"http://www.ignyte.com/whatsshowing\", className = \"com.ignyte.whatsshowing.GetTheatersAndMovies\")\r\n @ResponseWrapper(localName = \"GetTheatersAndMoviesResponse\", targetNamespace = \"http://www.ignyte.com/whatsshowing\", className = \"com.ignyte.whatsshowing.GetTheatersAndMoviesResponse\")\r\n public ArrayOfTheater getTheatersAndMovies(\r\n @WebParam(name = \"zipCode\", targetNamespace = \"http://www.ignyte.com/whatsshowing\")\r\n String zipCode,\r\n @WebParam(name = \"radius\", targetNamespace = \"http://www.ignyte.com/whatsshowing\")\r\n int radius);\r\n\r\n /**\r\n * This method will retrieve a list of all movies that are scheduled to be released in the future and their anticipated release dates.\r\n * \r\n * @param month\r\n * @param year\r\n * @return\r\n * returns com.ignyte.whatsshowing.ArrayOfUpcomingMovie\r\n */\r\n @WebMethod(operationName = \"GetUpcomingMovies\", action = \"http://www.ignyte.com/whatsshowing/GetUpcomingMovies\")\r\n @WebResult(name = \"GetUpcomingMoviesResult\", targetNamespace = \"http://www.ignyte.com/whatsshowing\")\r\n @RequestWrapper(localName = \"GetUpcomingMovies\", targetNamespace = \"http://www.ignyte.com/whatsshowing\", className = \"com.ignyte.whatsshowing.GetUpcomingMovies\")\r\n @ResponseWrapper(localName = \"GetUpcomingMoviesResponse\", targetNamespace = \"http://www.ignyte.com/whatsshowing\", className = \"com.ignyte.whatsshowing.GetUpcomingMoviesResponse\")\r\n public ArrayOfUpcomingMovie getUpcomingMovies(\r\n @WebParam(name = \"month\", targetNamespace = \"http://www.ignyte.com/whatsshowing\")\r\n int month,\r\n @WebParam(name = \"year\", targetNamespace = \"http://www.ignyte.com/whatsshowing\")\r\n int year);\r\n\r\n}", "title": "" }, { "docid": "590ba788bc719fbb86627a074077a3f3", "score": "0.60948026", "text": "@WebService(targetNamespace = \"http://www.colpensiones.gov.co/contracts/1.0/personas\", name = \"ContratoRegistroArchivosNuevo\")\n@XmlSeeAlso({ObjectFactory.class, com.microsoft.schemas._2003._10.serialization.ObjectFactory.class, co.gov.colpensiones.schemas._1_0.comun.errores.ObjectFactory.class, co.gov.colpensiones.schemas._1_0.comun.tramites.ObjectFactory.class, co.gov.colpensiones.schemas._1_0.comun.ObjectFactory.class, co.gov.colpensiones.schemas._1_0.personas.ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface ContratoRegistroArchivosNuevo {\n\n @WebResult(name = \"DocumentosTRDDTO\", targetNamespace = \"http://www.colpensiones.gov.co/contracts/1.0/personas\", partName = \"DocumentosTRDDTO\")\n @WebMethod(operationName = \"RegistrarArchivosNuevo\", action = \"http://www.colpensiones.gov.co/contracts/1.0/personas/ContratoRegistroArchivosNuevo/RegistrarArchivosNuevo\")\n public co.gov.colpensiones.schemas._1_0.personas.TipoDocumentosTRDDTO registrarArchivosNuevo(\n @WebParam(partName = \"InformacionRegistroNuevo\", name = \"InformacionRegistroNuevo\", targetNamespace = \"http://www.colpensiones.gov.co/contracts/1.0/personas\")\n co.gov.colpensiones.schemas._1_0.personas.TipoInformacionRegistroNuevo informacionRegistroNuevo\n );\n}", "title": "" }, { "docid": "242e5fbba8d43b0fa0fe74229d4037c2", "score": "0.6086089", "text": "@WebService(name = \"Endpoint\", targetNamespace = \"http://serviceref.samples.jaxws.ws.test.jboss.org/\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\npublic interface Endpoint {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public String echo(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0);\n\n}", "title": "" }, { "docid": "81f5122dac21dad5a92f1d8f65636b9f", "score": "0.6061854", "text": "@WebService\npublic interface PosWebService {\n\n /**\n * A chargeback of a performed payment\n */\n @WebMethod\n ChargebackResult chargeback(@WebParam(name = \"params\") ChargebackParameters params);\n\n /**\n * Returns the current status of an account\n */\n @WebMethod\n AccountStatusVO getAccountStatus(@WebParam(name = \"params\") GetAccountStatusParameters parameters);\n\n /**\n * Returns the initialization data for a POS device\n */\n @WebMethod\n PosInitializationData getInitializationData(@WebParam(name = \"params\") InitializationParameters parameters);\n\n /**\n * The POS owner performs a payment to another member\n */\n @WebMethod\n PaymentResult makePayment(@WebParam(name = \"params\") MakePaymentParameters params);\n\n /**\n * The POS owner receives a payment from another member\n */\n @WebMethod\n PaymentResult receivePayment(@WebParam(name = \"params\") ReceivePaymentParameters params);\n\n /**\n * Returns the account history of an account\n */\n @WebMethod\n AccountHistoryResultPage searchAccountHistory(@WebParam(name = \"params\") GetAccountHistoryParameters parameters);\n}", "title": "" }, { "docid": "a2d213bafbcf7c4a02d1213279c31704", "score": "0.6052469", "text": "@WebService(targetNamespace = \"http://www.Vectalis.com/\", name = \"B2T_DataModelSoap\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface B2TDataModelSoap {\n\n /**\n * Ping Main server\n */\n @WebMethod(operationName = \"Ping\", action = \"http://www.Vectalis.com/Ping\")\n @RequestWrapper(localName = \"Ping\", targetNamespace = \"http://www.Vectalis.com/\", className = \"com.vectalis.Ping\")\n @ResponseWrapper(localName = \"PingResponse\", targetNamespace = \"http://www.Vectalis.com/\", className = \"com.vectalis.PingResponse\")\n @WebResult(name = \"PingResult\", targetNamespace = \"http://www.Vectalis.com/\")\n public java.lang.String ping();\n\n /**\n * Retrieve all the quotes of your company since the last call - Broker Direct Access only\n */\n @WebMethod(operationName = \"GetAllMyEntityQuotesDirectAccessDelta\", action = \"http://www.Vectalis.com/GetAllMyEntityQuotesDirectAccessDelta\")\n @RequestWrapper(localName = \"GetAllMyEntityQuotesDirectAccessDelta\", targetNamespace = \"http://www.Vectalis.com/\", className = \"com.vectalis.GetAllMyEntityQuotesDirectAccessDelta\")\n @ResponseWrapper(localName = \"GetAllMyEntityQuotesDirectAccessDeltaResponse\", targetNamespace = \"http://www.Vectalis.com/\", className = \"com.vectalis.GetAllMyEntityQuotesDirectAccessDeltaResponse\")\n @WebResult(name = \"GetAllMyEntityQuotesDirectAccessDeltaResult\", targetNamespace = \"http://www.Vectalis.com/\")\n public java.lang.String getAllMyEntityQuotesDirectAccessDelta(\n @WebParam(name = \"xmlDocumentString\", targetNamespace = \"http://www.Vectalis.com/\")\n java.lang.String xmlDocumentString\n );\n\n /**\n * Retrieve all the quotes of your company - Broker Direct Access only\n */\n @WebMethod(operationName = \"GetAllMyEntityQuotesDirectAccess\", action = \"http://www.Vectalis.com/GetAllMyEntityQuotesDirectAccess\")\n @RequestWrapper(localName = \"GetAllMyEntityQuotesDirectAccess\", targetNamespace = \"http://www.Vectalis.com/\", className = \"com.vectalis.GetAllMyEntityQuotesDirectAccess\")\n @ResponseWrapper(localName = \"GetAllMyEntityQuotesDirectAccessResponse\", targetNamespace = \"http://www.Vectalis.com/\", className = \"com.vectalis.GetAllMyEntityQuotesDirectAccessResponse\")\n @WebResult(name = \"GetAllMyEntityQuotesDirectAccessResult\", targetNamespace = \"http://www.Vectalis.com/\")\n public java.lang.String getAllMyEntityQuotesDirectAccess(\n @WebParam(name = \"xmlDocumentString\", targetNamespace = \"http://www.Vectalis.com/\")\n java.lang.String xmlDocumentString\n );\n\n /**\n * Impact the data from the DataModel for DirectAccess (Login and Logout only)\n */\n @WebMethod(operationName = \"UpdateDirectAccess\", action = \"http://www.Vectalis.com/UpdateDirectAccess\")\n @RequestWrapper(localName = \"UpdateDirectAccess\", targetNamespace = \"http://www.Vectalis.com/\", className = \"com.vectalis.UpdateDirectAccess\")\n @ResponseWrapper(localName = \"UpdateDirectAccessResponse\", targetNamespace = \"http://www.Vectalis.com/\", className = \"com.vectalis.UpdateDirectAccessResponse\")\n @WebResult(name = \"UpdateDirectAccessResult\", targetNamespace = \"http://www.Vectalis.com/\")\n public java.lang.String updateDirectAccess(\n @WebParam(name = \"xmlDocumentString\", targetNamespace = \"http://www.Vectalis.com/\")\n java.lang.String xmlDocumentString\n );\n\n /**\n * Retrieve all the replies sent to your company - Sales and Broker DirectAccess Only\n */\n @WebMethod(operationName = \"GetAllMyRepliesDirectAccess\", action = \"http://www.Vectalis.com/GetAllMyRepliesDirectAccess\")\n @RequestWrapper(localName = \"GetAllMyRepliesDirectAccess\", targetNamespace = \"http://www.Vectalis.com/\", className = \"com.vectalis.GetAllMyRepliesDirectAccess\")\n @ResponseWrapper(localName = \"GetAllMyRepliesDirectAccessResponse\", targetNamespace = \"http://www.Vectalis.com/\", className = \"com.vectalis.GetAllMyRepliesDirectAccessResponse\")\n @WebResult(name = \"GetAllMyRepliesDirectAccessResult\", targetNamespace = \"http://www.Vectalis.com/\")\n public java.lang.String getAllMyRepliesDirectAccess(\n @WebParam(name = \"xmlDocumentString\", targetNamespace = \"http://www.Vectalis.com/\")\n java.lang.String xmlDocumentString\n );\n}", "title": "" }, { "docid": "2fa81b4b249472285218fb6d397a65e0", "score": "0.6047218", "text": "@WebService(targetNamespace = \"http://www.cxf.garage.jpl.com/Obsp/\", name = \"ObspInfo\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface ObspInfo {\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"service\", targetNamespace = \"http://www.cxf.garage.jpl.com/Obsp/\", className = \"com.jpl.garage.cxf.obsp.Service\")\n @WebMethod(action = \"http://www.cxf.garage.jpl.com/Obsp/service\")\n @ResponseWrapper(localName = \"serviceResponse\", targetNamespace = \"http://www.cxf.garage.jpl.com/Obsp/\", className = \"com.jpl.garage.cxf.obsp.ServiceResponse\")\n public java.lang.String service(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n java.lang.String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n java.lang.String arg1\n );\n}", "title": "" }, { "docid": "f2befebb131f0586c909e7cfca8e3501", "score": "0.60356534", "text": "@WebService(name = \"JobReportingWsSoap\", targetNamespace = \"http://hpcaas.it4i.cz/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface JobReportingWsSoap {\n\n\n /**\n * \n * @param sessionCode\n * @return\n * returns cz.it4i.hpcaas.jobreporting.ArrayOfAdaptorUserGroupExt\n */\n @WebMethod(operationName = \"ListAdaptorUserGroups\", action = \"http://hpcaas.it4i.cz/ListAdaptorUserGroups\")\n @WebResult(name = \"ListAdaptorUserGroupsResult\", targetNamespace = \"http://hpcaas.it4i.cz/\")\n @RequestWrapper(localName = \"ListAdaptorUserGroups\", targetNamespace = \"http://hpcaas.it4i.cz/\", className = \"cz.it4i.hpcaas.jobreporting.ListAdaptorUserGroups\")\n @ResponseWrapper(localName = \"ListAdaptorUserGroupsResponse\", targetNamespace = \"http://hpcaas.it4i.cz/\", className = \"cz.it4i.hpcaas.jobreporting.ListAdaptorUserGroupsResponse\")\n public ArrayOfAdaptorUserGroupExt listAdaptorUserGroups(\n @WebParam(name = \"sessionCode\", targetNamespace = \"http://hpcaas.it4i.cz/\")\n String sessionCode);\n\n /**\n * \n * @param sessionCode\n * @param startTime\n * @param endTime\n * @param userId\n * @return\n * returns cz.it4i.hpcaas.jobreporting.UserResourceUsageReportExt\n */\n @WebMethod(operationName = \"GetUserResourceUsageReport\", action = \"http://hpcaas.it4i.cz/GetUserResourceUsageReport\")\n @WebResult(name = \"GetUserResourceUsageReportResult\", targetNamespace = \"http://hpcaas.it4i.cz/\")\n @RequestWrapper(localName = \"GetUserResourceUsageReport\", targetNamespace = \"http://hpcaas.it4i.cz/\", className = \"cz.it4i.hpcaas.jobreporting.GetUserResourceUsageReport\")\n @ResponseWrapper(localName = \"GetUserResourceUsageReportResponse\", targetNamespace = \"http://hpcaas.it4i.cz/\", className = \"cz.it4i.hpcaas.jobreporting.GetUserResourceUsageReportResponse\")\n public UserResourceUsageReportExt getUserResourceUsageReport(\n @WebParam(name = \"userId\", targetNamespace = \"http://hpcaas.it4i.cz/\")\n long userId,\n @WebParam(name = \"startTime\", targetNamespace = \"http://hpcaas.it4i.cz/\")\n XMLGregorianCalendar startTime,\n @WebParam(name = \"endTime\", targetNamespace = \"http://hpcaas.it4i.cz/\")\n XMLGregorianCalendar endTime,\n @WebParam(name = \"sessionCode\", targetNamespace = \"http://hpcaas.it4i.cz/\")\n String sessionCode);\n\n /**\n * \n * @param sessionCode\n * @param groupId\n * @param startTime\n * @param endTime\n * @return\n * returns cz.it4i.hpcaas.jobreporting.UserGroupResourceUsageReportExt\n */\n @WebMethod(operationName = \"GetUserGroupResourceUsageReport\", action = \"http://hpcaas.it4i.cz/GetUserGroupResourceUsageReport\")\n @WebResult(name = \"GetUserGroupResourceUsageReportResult\", targetNamespace = \"http://hpcaas.it4i.cz/\")\n @RequestWrapper(localName = \"GetUserGroupResourceUsageReport\", targetNamespace = \"http://hpcaas.it4i.cz/\", className = \"cz.it4i.hpcaas.jobreporting.GetUserGroupResourceUsageReport\")\n @ResponseWrapper(localName = \"GetUserGroupResourceUsageReportResponse\", targetNamespace = \"http://hpcaas.it4i.cz/\", className = \"cz.it4i.hpcaas.jobreporting.GetUserGroupResourceUsageReportResponse\")\n public UserGroupResourceUsageReportExt getUserGroupResourceUsageReport(\n @WebParam(name = \"groupId\", targetNamespace = \"http://hpcaas.it4i.cz/\")\n long groupId,\n @WebParam(name = \"startTime\", targetNamespace = \"http://hpcaas.it4i.cz/\")\n XMLGregorianCalendar startTime,\n @WebParam(name = \"endTime\", targetNamespace = \"http://hpcaas.it4i.cz/\")\n XMLGregorianCalendar endTime,\n @WebParam(name = \"sessionCode\", targetNamespace = \"http://hpcaas.it4i.cz/\")\n String sessionCode);\n\n /**\n * \n * @param jobId\n * @param sessionCode\n * @return\n * returns cz.it4i.hpcaas.jobreporting.SubmittedJobInfoUsageReportExt\n */\n @WebMethod(operationName = \"GetResourceUsageReportForJob\", action = \"http://hpcaas.it4i.cz/GetResourceUsageReportForJob\")\n @WebResult(name = \"GetResourceUsageReportForJobResult\", targetNamespace = \"http://hpcaas.it4i.cz/\")\n @RequestWrapper(localName = \"GetResourceUsageReportForJob\", targetNamespace = \"http://hpcaas.it4i.cz/\", className = \"cz.it4i.hpcaas.jobreporting.GetResourceUsageReportForJob\")\n @ResponseWrapper(localName = \"GetResourceUsageReportForJobResponse\", targetNamespace = \"http://hpcaas.it4i.cz/\", className = \"cz.it4i.hpcaas.jobreporting.GetResourceUsageReportForJobResponse\")\n public SubmittedJobInfoUsageReportExt getResourceUsageReportForJob(\n @WebParam(name = \"jobId\", targetNamespace = \"http://hpcaas.it4i.cz/\")\n long jobId,\n @WebParam(name = \"sessionCode\", targetNamespace = \"http://hpcaas.it4i.cz/\")\n String sessionCode);\n\n}", "title": "" }, { "docid": "363377b8c4b12f787717faf317844a68", "score": "0.60353804", "text": "@WebService(name = \"XMXUTILBsktname\", targetNamespace = \"http://vistaevolution.va.gov\")\npublic interface XMXUTILBsktnameEndpoint {\n \n \n /**\n * <pre>\n * This API returns the name of a user's basket.\n * </pre>\n * \n * @param request -\n * \n * Domain Object that contains All Bsktname^XMXUTIL input\n * Parameters\n * \n * @return XMXUTILBsktnameResponse -\n * \n * Domain Object that contains Bsktname^XMXUTIL output data\n * \n * @throws VistaWebServiceFault\n */\n @WebMethod(action = \"XMXUTILBsktnameAction\", operationName = \"XMXUTILBsktname\")\n public XMXUTILBsktnameResponse bsktname (@WebParam(name = \"XMXUTILBsktnameRequest\") XMXUTILBsktnameRequest request)\n throws VistaWebServiceFault;\n \n}", "title": "" }, { "docid": "b1236c0448b60e0ab07fb3ba046adda3", "score": "0.601928", "text": "@WebService(targetNamespace = \"http://service.ws.sample/\", name = \"HelloService\")\n@XmlSeeAlso({ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface HelloService {\n\n @WebMethod(action = \"urn:SayHello\")\n @WebResult(name = \"hello\", targetNamespace = \"http://service.ws.sample/\", partName = \"parameters\")\n public Hello sayHello(\n @WebParam(partName = \"parameters\", name = \"name\", targetNamespace = \"http://service.ws.sample/\")\n Name parameters\n );\n}", "title": "" }, { "docid": "a4274e273f0057be0bbe8160d23aa2ee", "score": "0.60177517", "text": "@WebService(targetNamespace = \"http://www.smpte-ra.org/schemas/st2071/2014/service\", name = \"ServiceDirectory\")\n@XmlSeeAlso({org.smpte_ra.schemas.st2071._2014.query.ObjectFactory.class, org.smpte_ra.schemas.st2071._2014.mode.ObjectFactory.class, org.smpte_ra.schemas.st2071._2014.media.ObjectFactory.class, org.smpte_ra.schemas.st2071._2014.types.ObjectFactory.class, org.smpte_ra.schemas.st2071._2014.security.ObjectFactory.class, ObjectFactory.class, org.smpte_ra.schemas.st2071._2014.identity.ObjectFactory.class, org.smpte_ra.schemas.st2071._2014.device.ObjectFactory.class, org.smpte_ra.schemas.st2071._2014.event.ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface ServiceDirectory {\n\n @WebResult(name = \"lookupResponse\", targetNamespace = \"http://www.smpte-ra.org/schemas/st2071/2014/service\", partName = \"lookupResponse\")\n @Action(input = \"http://www.smpte-ra.org/wsdl/st2071/2014/service/ServiceDirectory/lookup\", output = \"http://www.smpte-ra.org/wsdl/st2071/2014/service/ServiceDirectory/lookupResponse\", fault = {})\n @WebMethod(action = \"http://www.smpte-ra.org/wsdl/st2071/2014/service/ServiceDirectory/lookup\")\n public ServiceInformationResponse lookup(\n @WebParam(partName = \"lookup\", name = \"lookup\", targetNamespace = \"http://www.smpte-ra.org/schemas/st2071/2014/service\")\n USNRequest lookup\n ) throws ServiceNotFoundFault, org.smpte_ra.schemas.st2071._2014.security.SecurityExceptionFault, ServiceExceptionFault;\n\n @WebResult(name = \"getNamespacesResponse\", targetNamespace = \"http://www.smpte-ra.org/schemas/st2071/2014/service\", partName = \"getNamespacesResponse\")\n @Action(input = \"http://www.smpte-ra.org/wsdl/st2071/2014/service/ServiceDirectory/Namespaces\", output = \"http://www.smpte-ra.org/wsdl/st2071/2014/service/ServiceDirectory/NamespacesResponse\")\n @WebMethod(action = \"http://www.smpte-ra.org/wsdl/st2071/2014/service/ServiceDirectory/Namespaces\")\n public GetNamespacesResponse getNamespaces(\n @WebParam(partName = \"getNamespaces\", name = \"getNamespaces\", targetNamespace = \"http://www.smpte-ra.org/schemas/st2071/2014/service\")\n GetNamespaces getNamespaces\n );\n\n @WebResult(name = \"searchResponse\", targetNamespace = \"http://www.smpte-ra.org/schemas/st2071/2014/service\", partName = \"searchResponse\")\n @Action(input = \"http://www.smpte-ra.org/wsdl/st2071/2014/service/ServiceDirectory/search\", output = \"http://www.smpte-ra.org/wsdl/st2071/2014/service/ServiceDirectory/searchResponse\", fault = {})\n @WebMethod(action = \"http://www.smpte-ra.org/wsdl/st2071/2014/service/ServiceDirectory/search\")\n public ServiceInformationsResponse search(\n @WebParam(partName = \"search\", name = \"search\", targetNamespace = \"http://www.smpte-ra.org/schemas/st2071/2014/service\")\n QueryRequest search\n ) throws ServiceExceptionFault, org.smpte_ra.schemas.st2071._2014.security.SecurityExceptionFault, org.smpte_ra.schemas.st2071._2014.query.InvalidQueryFault;\n}", "title": "" }, { "docid": "d9bf0960e9ad049c675a9f8077020667", "score": "0.5998087", "text": "@WebService(name = \"DataCollectorService\", targetNamespace = \"http://datacollector.eorg.aifb.kit.edu/\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface DataCollectorService {\r\n\r\n\r\n /**\r\n * \r\n * @param senderIdentifier\r\n * @param durationInMillis\r\n * @param testrunID\r\n */\r\n @WebMethod\r\n @RequestWrapper(localName = \"publishData\", targetNamespace = \"http://datacollector.eorg.aifb.kit.edu/\", className = \"edu.kit.aifb.eorg.datacollector.client.PublishData\")\r\n @ResponseWrapper(localName = \"publishDataResponse\", targetNamespace = \"http://datacollector.eorg.aifb.kit.edu/\", className = \"edu.kit.aifb.eorg.datacollector.client.PublishDataResponse\")\r\n public void publishData(\r\n @WebParam(name = \"senderIdentifier\", targetNamespace = \"\")\r\n String senderIdentifier,\r\n @WebParam(name = \"durationInMillis\", targetNamespace = \"\")\r\n long durationInMillis,\r\n @WebParam(name = \"testrunID\", targetNamespace = \"\")\r\n String testrunID);\r\n\r\n}", "title": "" }, { "docid": "ec67495dd42aead712ba865c55df5a3a", "score": "0.59970784", "text": "@WebService(name = \"FiskalizacijaPortType\", targetNamespace = \"http://www.apis-it.hr/fin/2012/services/FiskalizacijaService\")\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\n@XmlSeeAlso({\r\n hr.apis_it.fin._2012.types.f73.ObjectFactory.class,\r\n org.w3._2000._09.xmldsig.ObjectFactory.class\r\n})\r\npublic interface FiskalizacijaPortType {\r\n\r\n\r\n /**\r\n * \r\n * @param request\r\n * @return\r\n * returns hr.apis_it.fin._2012.types.f73.RacunOdgovor\r\n */\r\n @WebMethod(action = \"http://e-porezna.porezna-uprava.hr/fiskalizacija/2012/services/FiskalizacijaService/racuni\")\r\n @WebResult(name = \"RacunOdgovor\", targetNamespace = \"http://www.apis-it.hr/fin/2012/types/f73\", partName = \"response\")\r\n public RacunOdgovor racuni(\r\n @WebParam(name = \"RacunZahtjev\", targetNamespace = \"http://www.apis-it.hr/fin/2012/types/f73\", partName = \"request\")\r\n RacunZahtjev request);\r\n\r\n /**\r\n * \r\n * @param request\r\n * @return\r\n * returns hr.apis_it.fin._2012.types.f73.PoslovniProstorOdgovor\r\n */\r\n @WebMethod(action = \"http://e-porezna.porezna-uprava.hr/fiskalizacija/2012/services/FiskalizacijaService/poslovniProstor\")\r\n @WebResult(name = \"PoslovniProstorOdgovor\", targetNamespace = \"http://www.apis-it.hr/fin/2012/types/f73\", partName = \"response\")\r\n public PoslovniProstorOdgovor poslovniProstor(\r\n @WebParam(name = \"PoslovniProstorZahtjev\", targetNamespace = \"http://www.apis-it.hr/fin/2012/types/f73\", partName = \"request\")\r\n PoslovniProstorZahtjev request);\r\n\r\n /**\r\n * \r\n * @param request\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod(action = \"http://e-porezna.porezna-uprava.hr/fiskalizacija/2012/services/FiskalizacijaService/echo\")\r\n @WebResult(name = \"EchoResponse\", targetNamespace = \"http://www.apis-it.hr/fin/2012/types/f73\", partName = \"response\")\r\n public String echo(\r\n @WebParam(name = \"EchoRequest\", targetNamespace = \"http://www.apis-it.hr/fin/2012/types/f73\", partName = \"request\")\r\n String request);\r\n\r\n}", "title": "" }, { "docid": "59350f303789460aec4bd7eb3a2b1881", "score": "0.5988248", "text": "@WebService(name = \"wsfev1\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\")\n@XmlSeeAlso({\n fev1.dif.afip.gov.ar.ObjectFactory.class,\n ar.com.syntagma.esphora.conector.servicios.ObjectFactory.class\n})\npublic interface Wsfev1 {\n\n\n /**\n * \n * @param orden\n * @param cuit\n * @param periodo\n * @return\n * returns fev1.dif.afip.gov.ar.FECAEAGetResponse\n */\n @WebMethod(operationName = \"FECAEAConsultar\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"FECAEAConsultar\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FECAEAConsultar\")\n @ResponseWrapper(localName = \"FECAEAConsultarResponse\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FECAEAConsultarResponse\")\n public FECAEAGetResponse fecaeaConsultar(\n @WebParam(name = \"periodo\", targetNamespace = \"\")\n int periodo,\n @WebParam(name = \"orden\", targetNamespace = \"\")\n short orden,\n @WebParam(name = \"cuit\", targetNamespace = \"\")\n long cuit);\n\n /**\n * \n * @param cuit\n * @param feCAEARegInfReq\n * @return\n * returns fev1.dif.afip.gov.ar.FECAEAResponse\n */\n @WebMethod(operationName = \"FECAEARegInformativo\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"FECAEARegInformativo\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FECAEARegInformativo\")\n @ResponseWrapper(localName = \"FECAEARegInformativoResponse\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FECAEARegInformativoResponse\")\n public FECAEAResponse fecaeaRegInformativo(\n @WebParam(name = \"feCAEARegInfReq\", targetNamespace = \"\")\n FECAEARequest feCAEARegInfReq,\n @WebParam(name = \"cuit\", targetNamespace = \"\")\n long cuit);\n\n /**\n * \n * @param caea\n * @param cuit\n * @param ptoVta\n * @return\n * returns fev1.dif.afip.gov.ar.FECAEASinMovConsResponse\n */\n @WebMethod(operationName = \"FECAEASinMovimientoConsultar\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"FECAEASinMovimientoConsultar\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FECAEASinMovimientoConsultar\")\n @ResponseWrapper(localName = \"FECAEASinMovimientoConsultarResponse\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FECAEASinMovimientoConsultarResponse\")\n public FECAEASinMovConsResponse fecaeaSinMovimientoConsultar(\n @WebParam(name = \"caea\", targetNamespace = \"\")\n String caea,\n @WebParam(name = \"ptoVta\", targetNamespace = \"\")\n int ptoVta,\n @WebParam(name = \"cuit\", targetNamespace = \"\")\n long cuit);\n\n /**\n * \n * @param caea\n * @param cuit\n * @param ptoVta\n * @return\n * returns fev1.dif.afip.gov.ar.FECAEASinMovResponse\n */\n @WebMethod(operationName = \"FECAEASinMovimientoInformar\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"FECAEASinMovimientoInformar\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FECAEASinMovimientoInformar\")\n @ResponseWrapper(localName = \"FECAEASinMovimientoInformarResponse\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FECAEASinMovimientoInformarResponse\")\n public FECAEASinMovResponse fecaeaSinMovimientoInformar(\n @WebParam(name = \"caea\", targetNamespace = \"\")\n String caea,\n @WebParam(name = \"ptoVta\", targetNamespace = \"\")\n int ptoVta,\n @WebParam(name = \"cuit\", targetNamespace = \"\")\n long cuit);\n\n /**\n * \n * @param orden\n * @param cuit\n * @param periodo\n * @return\n * returns fev1.dif.afip.gov.ar.FECAEAGetResponse\n */\n @WebMethod(operationName = \"FECAEASolicitar\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"FECAEASolicitar\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FECAEASolicitar\")\n @ResponseWrapper(localName = \"FECAEASolicitarResponse\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FECAEASolicitarResponse\")\n public FECAEAGetResponse fecaeaSolicitar(\n @WebParam(name = \"periodo\", targetNamespace = \"\")\n int periodo,\n @WebParam(name = \"orden\", targetNamespace = \"\")\n short orden,\n @WebParam(name = \"cuit\", targetNamespace = \"\")\n long cuit);\n\n /**\n * \n * @param cuit\n * @param fer\n * @return\n * returns fev1.dif.afip.gov.ar.FECAEResponse\n */\n @WebMethod(operationName = \"FECAESolicitar\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"FECAESolicitar\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FECAESolicitar\")\n @ResponseWrapper(localName = \"FECAESolicitarResponse\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FECAESolicitarResponse\")\n public FECAEResponse fecaeSolicitar(\n @WebParam(name = \"fer\", targetNamespace = \"\")\n FECAERequest fer,\n @WebParam(name = \"cuit\", targetNamespace = \"\")\n long cuit);\n\n /**\n * \n * @param cuit\n * @param feCompConsultaReq\n * @return\n * returns fev1.dif.afip.gov.ar.FECompConsultaResponse\n */\n @WebMethod(operationName = \"FECompConsultar\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"FECompConsultar\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FECompConsultar\")\n @ResponseWrapper(localName = \"FECompConsultarResponse\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FECompConsultarResponse\")\n public FECompConsultaResponse feCompConsultar(\n @WebParam(name = \"FECompConsultaReq\", targetNamespace = \"\")\n FECompConsultaReq feCompConsultaReq,\n @WebParam(name = \"cuit\", targetNamespace = \"\")\n long cuit);\n\n /**\n * \n * @param caea\n * @param cuit\n * @param ptoVta\n * @return\n * returns fev1.dif.afip.gov.ar.FERegXReqResponse\n */\n @WebMethod(operationName = \"FECompTotXRequest\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"FECompTotXRequest\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FECompTotXRequest\")\n @ResponseWrapper(localName = \"FECompTotXRequestResponse\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FECompTotXRequestResponse\")\n public FERegXReqResponse feCompTotXRequest(\n @WebParam(name = \"caea\", targetNamespace = \"\")\n String caea,\n @WebParam(name = \"ptoVta\", targetNamespace = \"\")\n int ptoVta,\n @WebParam(name = \"cuit\", targetNamespace = \"\")\n long cuit);\n\n /**\n * \n * @param cuit\n * @param tipoComprobante\n * @param puntoVenta\n * @return\n * returns fev1.dif.afip.gov.ar.FERecuperaLastCbteResponse\n */\n @WebMethod(operationName = \"FECompUltimoAutorizado\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"FECompUltimoAutorizado\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FECompUltimoAutorizado\")\n @ResponseWrapper(localName = \"FECompUltimoAutorizadoResponse\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FECompUltimoAutorizadoResponse\")\n public FERecuperaLastCbteResponse feCompUltimoAutorizado(\n @WebParam(name = \"tipoComprobante\", targetNamespace = \"\")\n int tipoComprobante,\n @WebParam(name = \"puntoVenta\", targetNamespace = \"\")\n int puntoVenta,\n @WebParam(name = \"cuit\", targetNamespace = \"\")\n long cuit);\n\n /**\n * \n * @param cuit\n * @param monId\n * @return\n * returns fev1.dif.afip.gov.ar.FECotizacionResponse\n */\n @WebMethod(operationName = \"FEParamGetCotizacion\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"FEParamGetCotizacion\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FEParamGetCotizacion\")\n @ResponseWrapper(localName = \"FEParamGetCotizacionResponse\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FEParamGetCotizacionResponse\")\n public FECotizacionResponse feParamGetCotizacion(\n @WebParam(name = \"monId\", targetNamespace = \"\")\n String monId,\n @WebParam(name = \"cuit\", targetNamespace = \"\")\n long cuit);\n\n /**\n * \n * @param cuit\n * @return\n * returns fev1.dif.afip.gov.ar.FEPtoVentaResponse\n */\n @WebMethod(operationName = \"FEParamGetPtosVenta\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"FEParamGetPtosVenta\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FEParamGetPtosVenta\")\n @ResponseWrapper(localName = \"FEParamGetPtosVentaResponse\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FEParamGetPtosVentaResponse\")\n public FEPtoVentaResponse feParamGetPtosVenta(\n @WebParam(name = \"cuit\", targetNamespace = \"\")\n long cuit);\n\n /**\n * \n * @param cuit\n * @return\n * returns fev1.dif.afip.gov.ar.CbteTipoResponse\n */\n @WebMethod(operationName = \"FEParamGetTiposCbte\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"FEParamGetTiposCbte\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FEParamGetTiposCbte\")\n @ResponseWrapper(localName = \"FEParamGetTiposCbteResponse\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FEParamGetTiposCbteResponse\")\n public CbteTipoResponse feParamGetTiposCbte(\n @WebParam(name = \"cuit\", targetNamespace = \"\")\n long cuit);\n\n /**\n * \n * @param cuit\n * @return\n * returns fev1.dif.afip.gov.ar.ConceptoTipoResponse\n */\n @WebMethod(operationName = \"FEParamGetTiposConcepto\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"FEParamGetTiposConcepto\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FEParamGetTiposConcepto\")\n @ResponseWrapper(localName = \"FEParamGetTiposConceptoResponse\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FEParamGetTiposConceptoResponse\")\n public ConceptoTipoResponse feParamGetTiposConcepto(\n @WebParam(name = \"cuit\", targetNamespace = \"\")\n long cuit);\n\n /**\n * \n * @param cuit\n * @return\n * returns fev1.dif.afip.gov.ar.DocTipoResponse\n */\n @WebMethod(operationName = \"FEParamGetTiposDoc\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"FEParamGetTiposDoc\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FEParamGetTiposDoc\")\n @ResponseWrapper(localName = \"FEParamGetTiposDocResponse\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FEParamGetTiposDocResponse\")\n public DocTipoResponse feParamGetTiposDoc(\n @WebParam(name = \"cuit\", targetNamespace = \"\")\n long cuit);\n\n /**\n * \n * @param cuit\n * @return\n * returns fev1.dif.afip.gov.ar.IvaTipoResponse\n */\n @WebMethod(operationName = \"FEParamGetTiposIva\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"FEParamGetTiposIva\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FEParamGetTiposIva\")\n @ResponseWrapper(localName = \"FEParamGetTiposIvaResponse\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FEParamGetTiposIvaResponse\")\n public IvaTipoResponse feParamGetTiposIva(\n @WebParam(name = \"cuit\", targetNamespace = \"\")\n long cuit);\n\n /**\n * \n * @param cuit\n * @return\n * returns fev1.dif.afip.gov.ar.MonedaResponse\n */\n @WebMethod(operationName = \"FEParamGetTiposMonedas\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"FEParamGetTiposMonedas\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FEParamGetTiposMonedas\")\n @ResponseWrapper(localName = \"FEParamGetTiposMonedasResponse\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FEParamGetTiposMonedasResponse\")\n public MonedaResponse feParamGetTiposMonedas(\n @WebParam(name = \"cuit\", targetNamespace = \"\")\n long cuit);\n\n /**\n * \n * @param cuit\n * @return\n * returns fev1.dif.afip.gov.ar.OpcionalTipoResponse\n */\n @WebMethod(operationName = \"FEParamGetTiposOpcional\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"FEParamGetTiposOpcional\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FEParamGetTiposOpcional\")\n @ResponseWrapper(localName = \"FEParamGetTiposOpcionalResponse\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FEParamGetTiposOpcionalResponse\")\n public OpcionalTipoResponse feParamGetTiposOpcional(\n @WebParam(name = \"cuit\", targetNamespace = \"\")\n long cuit);\n\n /**\n * \n * @param cuit\n * @return\n * returns fev1.dif.afip.gov.ar.FETributoResponse\n */\n @WebMethod(operationName = \"FEParamGetTiposTributo\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"FEParamGetTiposTributo\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FEParamGetTiposTributo\")\n @ResponseWrapper(localName = \"FEParamGetTiposTributoResponse\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FEParamGetTiposTributoResponse\")\n public FETributoResponse feParamGetTiposTributo(\n @WebParam(name = \"cuit\", targetNamespace = \"\")\n long cuit);\n\n /**\n * \n * @param cuit\n * @return\n * returns fev1.dif.afip.gov.ar.DummyResponse\n */\n @WebMethod(operationName = \"FEV1Dummy\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"FEV1Dummy\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FEV1Dummy\")\n @ResponseWrapper(localName = \"FEV1DummyResponse\", targetNamespace = \"http://servicios.conector.esphora.syntagma.com.ar/\", className = \"ar.com.syntagma.esphora.conector.servicios.FEV1DummyResponse\")\n public DummyResponse fev1Dummy(\n @WebParam(name = \"cuit\", targetNamespace = \"\")\n long cuit);\n\n}", "title": "" }, { "docid": "a66c0540e60b44001edb93c218fcf41d", "score": "0.5984863", "text": "@WebService(targetNamespace = \"http://stock.com/\", name = \"Stock\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface Stock {\n\n @WebMethod(operationName = \"AnulacionDeReserva\", action = \"urn:AnulacionDeReserva\")\n @RequestWrapper(localName = \"AnulacionDeReserva\", targetNamespace = \"http://stock.com/\", className = \"com.client.stock.AnulacionDeReserva\")\n @ResponseWrapper(localName = \"AnulacionDeReservaResponse\", targetNamespace = \"http://stock.com/\", className = \"com.client.stock.AnulacionDeReservaResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public com.client.stock.ResultadoAnulacion anulacionDeReserva(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n long arg0\n );\n\n @WebMethod(operationName = \"ReservaDeProductos\", action = \"urn:ReservaDeProductos\")\n @RequestWrapper(localName = \"ReservaDeProductos\", targetNamespace = \"http://stock.com/\", className = \"com.client.stock.ReservaDeProductos\")\n @ResponseWrapper(localName = \"ReservaDeProductosResponse\", targetNamespace = \"http://stock.com/\", className = \"com.client.stock.ReservaDeProductosResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public com.client.stock.ResultadoPedido reservaDeProductos(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n java.util.List<com.client.stock.Pedido> arg0\n );\n}", "title": "" }, { "docid": "0e19efe9bc99266967a7b39117b26b24", "score": "0.59723353", "text": "@WebService(name = \"ModelWs\", targetNamespace = \"http://www.adidas.com/sef/ws/model\")\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\n@XmlSeeAlso({\r\n com.adidas.sef.ws.schema.modeldata.ObjectFactory.class,\r\n com.adidas.sef.ws.schema.modeldata.ObjectFactory.class\r\n})\r\npublic interface ModelWs {\r\n\r\n\r\n\r\n /**\r\n * \r\n * @param updateModelReqs\r\n * @return\r\n * returns com.adidas.sef.ws.schema.modeldata.UpdateModelResponse\r\n * @throws SystemExcellenceFaultMessage\r\n */\r\n @WebMethod(action = \"http://www.adidas.com/sef/ws/updateModels\")\r\n @WebResult(name = \"updateModelResponse\", targetNamespace = \"http://www.adidas.com/sef/ws/schema/modeldata\", partName = \"updateModelRes\")\r\n public UpdateModelResponse updateModels(\r\n @WebParam(name = \"updateModelRequests\", targetNamespace = \"http://www.adidas.com/sef/ws/schema/modeldata\", partName = \"updateModelReqs\")\r\n UpdateModelRequests updateModelReqs) throws SystemExcellenceFaultMessage\r\n ;\r\n \r\n ;\r\n\r\n \r\n\r\n}", "title": "" }, { "docid": "af790eaef4b886372a82368b5af0ce49", "score": "0.59702635", "text": "@WebService(name = \"PickupService\", targetNamespace = \"http://services.zeitarbeit.othr.de/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface PickupService {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<partner.zeitarbeit.Worker>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"pickUp\", targetNamespace = \"http://services.zeitarbeit.othr.de/\", className = \"partner.zeitarbeit.PickUp\")\n @ResponseWrapper(localName = \"pickUpResponse\", targetNamespace = \"http://services.zeitarbeit.othr.de/\", className = \"partner.zeitarbeit.PickUpResponse\")\n public List<Worker> pickUp(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n Order arg0);\n\n}", "title": "" }, { "docid": "159bd739452c51918a567ba97dcf83f8", "score": "0.59695613", "text": "@WebService(targetNamespace = \"http://auth.cxf.wokmws.thomsonreuters.com\", name = \"WOKMWSAuthenticate\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface WOKMWSAuthenticate {\n\n @RequestWrapper(localName = \"closeSession\", targetNamespace = \"http://auth.cxf.wokmws.thomsonreuters.com\", className = \"com.thomsonreuters.wokmws.cxf.auth.CloseSession\")\n @WebMethod\n @ResponseWrapper(localName = \"closeSessionResponse\", targetNamespace = \"http://auth.cxf.wokmws.thomsonreuters.com\", className = \"com.thomsonreuters.wokmws.cxf.auth.CloseSessionResponse\")\n public void closeSession() throws SessionException_Exception, QueryException_Exception, AuthenticationException_Exception, ESTIWSException_Exception, InternalServerException_Exception, InvalidInputException_Exception;\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"authenticate\", targetNamespace = \"http://auth.cxf.wokmws.thomsonreuters.com\", className = \"com.thomsonreuters.wokmws.cxf.auth.Authenticate\")\n @WebMethod\n @ResponseWrapper(localName = \"authenticateResponse\", targetNamespace = \"http://auth.cxf.wokmws.thomsonreuters.com\", className = \"com.thomsonreuters.wokmws.cxf.auth.AuthenticateResponse\")\n public java.lang.String authenticate() throws SessionException_Exception, QueryException_Exception, AuthenticationException_Exception, ESTIWSException_Exception, InternalServerException_Exception, InvalidInputException_Exception;\n}", "title": "" }, { "docid": "13725a2d3a5ac0974c5134065fe3a49a", "score": "0.5967592", "text": "@WebService(name = \"ReportService\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ReportService {\n\n\n /**\n * \n * @param userID\n * @param templateID\n * @param locale\n * @param password\n * @param reportAbsolutePath\n * @return\n * returns byte[]\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"getTemplateReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"getTemplate\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetTemplate\")\n @ResponseWrapper(localName = \"getTemplateResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetTemplateResponse\")\n public byte[] getTemplate(\n @WebParam(name = \"reportAbsolutePath\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String reportAbsolutePath,\n @WebParam(name = \"templateID\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String templateID,\n @WebParam(name = \"locale\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String locale,\n @WebParam(name = \"userID\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String userID,\n @WebParam(name = \"password\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String password)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param userID\n * @param templateFileName\n * @param folderAbsolutePathURL\n * @param templateData\n * @param xliffData\n * @param xliffFileName\n * @param updateFlag\n * @param password\n * @param reportName\n * @param dataModelURL\n * @return\n * returns java.lang.String\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"createReportReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"createReport\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.CreateReport\")\n @ResponseWrapper(localName = \"createReportResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.CreateReportResponse\")\n public String createReport(\n @WebParam(name = \"reportName\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String reportName,\n @WebParam(name = \"folderAbsolutePathURL\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String folderAbsolutePathURL,\n @WebParam(name = \"dataModelURL\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String dataModelURL,\n @WebParam(name = \"templateFileName\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String templateFileName,\n @WebParam(name = \"templateData\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n byte[] templateData,\n @WebParam(name = \"XLIFFFileName\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String xliffFileName,\n @WebParam(name = \"XLIFFData\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n byte[] xliffData,\n @WebParam(name = \"updateFlag\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n boolean updateFlag,\n @WebParam(name = \"userID\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String userID,\n @WebParam(name = \"password\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String password)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param bipSessionToken\n * @param reportAbsolutePath\n * @return\n * returns scm.bi12.ReportDefinition\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"getReportDefinitionInSessionReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"getReportDefinitionInSession\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetReportDefinitionInSession\")\n @ResponseWrapper(localName = \"getReportDefinitionInSessionResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetReportDefinitionInSessionResponse\")\n public ReportDefinition getReportDefinitionInSession(\n @WebParam(name = \"reportAbsolutePath\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String reportAbsolutePath,\n @WebParam(name = \"bipSessionToken\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String bipSessionToken)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param bipSessionToken\n * @param newReportDefn\n * @param reportAbsPath\n * @return\n * returns boolean\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"updateReportDefinitionInSessionReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"updateReportDefinitionInSession\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.UpdateReportDefinitionInSession\")\n @ResponseWrapper(localName = \"updateReportDefinitionInSessionResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.UpdateReportDefinitionInSessionResponse\")\n public boolean updateReportDefinitionInSession(\n @WebParam(name = \"reportAbsPath\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String reportAbsPath,\n @WebParam(name = \"newReportDefn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n ReportDefinition newReportDefn,\n @WebParam(name = \"bipSessionToken\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String bipSessionToken)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param bipSessionToken\n * @param objectPath\n * @return\n * returns boolean\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"removeObjectFromCacheInSessionReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"removeObjectFromCacheInSession\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.RemoveObjectFromCacheInSession\")\n @ResponseWrapper(localName = \"removeObjectFromCacheInSessionResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.RemoveObjectFromCacheInSessionResponse\")\n public boolean removeObjectFromCacheInSession(\n @WebParam(name = \"objectPath\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String objectPath,\n @WebParam(name = \"bipSessionToken\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String bipSessionToken)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param templateData\n * @param bipSessionToken\n * @param locale\n * @param reportAbsolutePath\n * @param templateName\n * @return\n * returns boolean\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"updateTemplateForReportInSessionReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"updateTemplateForReportInSession\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.UpdateTemplateForReportInSession\")\n @ResponseWrapper(localName = \"updateTemplateForReportInSessionResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.UpdateTemplateForReportInSessionResponse\")\n public boolean updateTemplateForReportInSession(\n @WebParam(name = \"reportAbsolutePath\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String reportAbsolutePath,\n @WebParam(name = \"templateName\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String templateName,\n @WebParam(name = \"locale\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String locale,\n @WebParam(name = \"templateData\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n byte[] templateData,\n @WebParam(name = \"bipSessionToken\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String bipSessionToken)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param userID\n * @param reportRequest\n * @param password\n * @return\n * returns scm.bi12.ParamNameValues\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"getReportParametersReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"getReportParameters\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetReportParameters\")\n @ResponseWrapper(localName = \"getReportParametersResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetReportParametersResponse\")\n public ParamNameValues getReportParameters(\n @WebParam(name = \"reportRequest\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n ReportRequest reportRequest,\n @WebParam(name = \"userID\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String userID,\n @WebParam(name = \"password\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String password)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param userID\n * @param reportRequest\n * @param password\n * @return\n * returns scm.bi12.ReportResponse\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"runReportReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"runReport\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.RunReport\")\n @ResponseWrapper(localName = \"runReportResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.RunReportResponse\")\n public ReportResponse runReport(\n @WebParam(name = \"reportRequest\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n ReportRequest reportRequest,\n @WebParam(name = \"userID\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String userID,\n @WebParam(name = \"password\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String password)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param userID\n * @param templateID\n * @param password\n * @param reportAbsolutePath\n * @return\n * returns java.util.List<java.lang.String>\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"getTemplateAvailableLocalesReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"getTemplateAvailableLocales\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetTemplateAvailableLocales\")\n @ResponseWrapper(localName = \"getTemplateAvailableLocalesResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetTemplateAvailableLocalesResponse\")\n public List<String> getTemplateAvailableLocales(\n @WebParam(name = \"reportAbsolutePath\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String reportAbsolutePath,\n @WebParam(name = \"templateID\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String templateID,\n @WebParam(name = \"userID\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String userID,\n @WebParam(name = \"password\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String password)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param reportRequest\n * @param bipSessionToken\n * @return\n * returns scm.bi12.ReportResponse\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"runReportInSessionReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"runReportInSession\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.RunReportInSession\")\n @ResponseWrapper(localName = \"runReportInSessionResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.RunReportInSessionResponse\")\n public ReportResponse runReportInSession(\n @WebParam(name = \"reportRequest\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n ReportRequest reportRequest,\n @WebParam(name = \"bipSessionToken\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String bipSessionToken)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param userID\n * @param reportRequest\n * @param password\n * @return\n * returns scm.bi12.ReportResponse\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"runDataModelReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"runDataModel\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.RunDataModel\")\n @ResponseWrapper(localName = \"runDataModelResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.RunDataModelResponse\")\n public ReportResponse runDataModel(\n @WebParam(name = \"reportRequest\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n ReportRequest reportRequest,\n @WebParam(name = \"userID\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String userID,\n @WebParam(name = \"password\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String password)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param reportRequest\n * @param bipSessionToken\n * @return\n * returns scm.bi12.ReportResponse\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"runDataModelInSessionReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"runDataModelInSession\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.RunDataModelInSession\")\n @ResponseWrapper(localName = \"runDataModelInSessionResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.RunDataModelInSessionResponse\")\n public ReportResponse runDataModelInSession(\n @WebParam(name = \"reportRequest\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n ReportRequest reportRequest,\n @WebParam(name = \"bipSessionToken\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String bipSessionToken)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param userID\n * @param password\n * @param reportAbsolutePath\n * @return\n * returns scm.bi12.ReportDefinition\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"getReportDefinitionReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"getReportDefinition\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetReportDefinition\")\n @ResponseWrapper(localName = \"getReportDefinitionResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetReportDefinitionResponse\")\n public ReportDefinition getReportDefinition(\n @WebParam(name = \"reportAbsolutePath\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String reportAbsolutePath,\n @WebParam(name = \"userID\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String userID,\n @WebParam(name = \"password\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String password)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param userID\n * @param password\n * @param reportAbsolutePath\n * @return\n * returns scm.bi12.MobileAppDefinition\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"getMobileAppDefinitionReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"getMobileAppDefinition\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetMobileAppDefinition\")\n @ResponseWrapper(localName = \"getMobileAppDefinitionResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetMobileAppDefinitionResponse\")\n public MobileAppDefinition getMobileAppDefinition(\n @WebParam(name = \"reportAbsolutePath\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String reportAbsolutePath,\n @WebParam(name = \"userID\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String userID,\n @WebParam(name = \"password\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String password)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param bipSessionToken\n * @param reportAbsolutePath\n * @return\n * returns scm.bi12.MobileAppDefinition\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"getMobileAppDefinitionInSessionReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"getMobileAppDefinitionInSession\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetMobileAppDefinitionInSession\")\n @ResponseWrapper(localName = \"getMobileAppDefinitionInSessionResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetMobileAppDefinitionInSessionResponse\")\n public MobileAppDefinition getMobileAppDefinitionInSession(\n @WebParam(name = \"reportAbsolutePath\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String reportAbsolutePath,\n @WebParam(name = \"bipSessionToken\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String bipSessionToken)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param userID\n * @param password\n * @param reportAbsolutePath\n * @return\n * returns byte[]\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"getReportSampleDataReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"getReportSampleData\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetReportSampleData\")\n @ResponseWrapper(localName = \"getReportSampleDataResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetReportSampleDataResponse\")\n public byte[] getReportSampleData(\n @WebParam(name = \"reportAbsolutePath\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String reportAbsolutePath,\n @WebParam(name = \"userID\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String userID,\n @WebParam(name = \"password\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String password)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param bipSessionToken\n * @param reportAbsolutePath\n * @return\n * returns byte[]\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"getReportSampleDataInSessionReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"getReportSampleDataInSession\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetReportSampleDataInSession\")\n @ResponseWrapper(localName = \"getReportSampleDataInSessionResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetReportSampleDataInSessionResponse\")\n public byte[] getReportSampleDataInSession(\n @WebParam(name = \"reportAbsolutePath\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String reportAbsolutePath,\n @WebParam(name = \"bipSessionToken\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String bipSessionToken)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param userID\n * @param locale\n * @param password\n * @param reportAbsolutePath\n * @return\n * returns byte[]\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"getXDOSchemaReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"getXDOSchema\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetXDOSchema\")\n @ResponseWrapper(localName = \"getXDOSchemaResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetXDOSchemaResponse\")\n public byte[] getXDOSchema(\n @WebParam(name = \"reportAbsolutePath\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String reportAbsolutePath,\n @WebParam(name = \"locale\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String locale,\n @WebParam(name = \"userID\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String userID,\n @WebParam(name = \"password\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String password)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param bipSessionToken\n * @param locale\n * @param reportAbsolutePath\n * @return\n * returns byte[]\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"getXDOSchemaInSessionReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"getXDOSchemaInSession\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetXDOSchemaInSession\")\n @ResponseWrapper(localName = \"getXDOSchemaInSessionResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetXDOSchemaInSessionResponse\")\n public byte[] getXDOSchemaInSession(\n @WebParam(name = \"reportAbsolutePath\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String reportAbsolutePath,\n @WebParam(name = \"locale\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String locale,\n @WebParam(name = \"bipSessionToken\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String bipSessionToken)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param templateID\n * @param bipSessionToken\n * @param reportAbsolutePath\n * @return\n * returns java.util.List<java.lang.String>\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"getTemplateAvailableLocalesInSessionReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"getTemplateAvailableLocalesInSession\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetTemplateAvailableLocalesInSession\")\n @ResponseWrapper(localName = \"getTemplateAvailableLocalesInSessionResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetTemplateAvailableLocalesInSessionResponse\")\n public List<String> getTemplateAvailableLocalesInSession(\n @WebParam(name = \"reportAbsolutePath\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String reportAbsolutePath,\n @WebParam(name = \"templateID\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String templateID,\n @WebParam(name = \"bipSessionToken\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String bipSessionToken)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param userID\n * @param templateID\n * @param password\n * @param reportAbsolutePath\n * @return\n * returns java.util.List<java.lang.String>\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"getTemplateAvailableXLIFFsReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"getTemplateAvailableXLIFFs\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetTemplateAvailableXLIFFs\")\n @ResponseWrapper(localName = \"getTemplateAvailableXLIFFsResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetTemplateAvailableXLIFFsResponse\")\n public List<String> getTemplateAvailableXLIFFs(\n @WebParam(name = \"reportAbsolutePath\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String reportAbsolutePath,\n @WebParam(name = \"templateID\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String templateID,\n @WebParam(name = \"userID\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String userID,\n @WebParam(name = \"password\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String password)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param templateID\n * @param bipSessionToken\n * @param reportAbsolutePath\n * @return\n * returns java.util.List<java.lang.String>\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"getTemplateAvailableXLIFFsInSessionReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"getTemplateAvailableXLIFFsInSession\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetTemplateAvailableXLIFFsInSession\")\n @ResponseWrapper(localName = \"getTemplateAvailableXLIFFsInSessionResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetTemplateAvailableXLIFFsInSessionResponse\")\n public List<String> getTemplateAvailableXLIFFsInSession(\n @WebParam(name = \"reportAbsolutePath\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String reportAbsolutePath,\n @WebParam(name = \"templateID\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String templateID,\n @WebParam(name = \"bipSessionToken\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String bipSessionToken)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param templateID\n * @param bipSessionToken\n * @param locale\n * @param reportAbsolutePath\n * @return\n * returns byte[]\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"getTemplateInSessionReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"getTemplateInSession\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetTemplateInSession\")\n @ResponseWrapper(localName = \"getTemplateInSessionResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetTemplateInSessionResponse\")\n public byte[] getTemplateInSession(\n @WebParam(name = \"reportAbsolutePath\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String reportAbsolutePath,\n @WebParam(name = \"templateID\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String templateID,\n @WebParam(name = \"locale\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String locale,\n @WebParam(name = \"bipSessionToken\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String bipSessionToken)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param reportRequest\n * @param bipSessionToken\n * @return\n * returns scm.bi12.ParamNameValues\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"getReportParametersInSessionReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"getReportParametersInSession\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetReportParametersInSession\")\n @ResponseWrapper(localName = \"getReportParametersInSessionResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetReportParametersInSessionResponse\")\n public ParamNameValues getReportParametersInSession(\n @WebParam(name = \"reportRequest\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n ReportRequest reportRequest,\n @WebParam(name = \"bipSessionToken\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String bipSessionToken)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param userID\n * @param templateID\n * @param password\n * @param reportAbsolutePath\n * @return\n * returns java.util.List<scm.bi12.ParamNameValue>\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"getTemplateParametersReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"getTemplateParameters\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetTemplateParameters\")\n @ResponseWrapper(localName = \"getTemplateParametersResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetTemplateParametersResponse\")\n public List<ParamNameValue> getTemplateParameters(\n @WebParam(name = \"reportAbsolutePath\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String reportAbsolutePath,\n @WebParam(name = \"templateID\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String templateID,\n @WebParam(name = \"userID\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String userID,\n @WebParam(name = \"password\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String password)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param templateID\n * @param bipSessionToken\n * @param reportAbsolutePath\n * @return\n * returns java.util.List<scm.bi12.ParamNameValue>\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"getTemplateParametersInSessionReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"getTemplateParametersInSession\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetTemplateParametersInSession\")\n @ResponseWrapper(localName = \"getTemplateParametersInSessionResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetTemplateParametersInSessionResponse\")\n public List<ParamNameValue> getTemplateParametersInSession(\n @WebParam(name = \"reportAbsolutePath\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String reportAbsolutePath,\n @WebParam(name = \"templateID\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String templateID,\n @WebParam(name = \"bipSessionToken\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String bipSessionToken)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param userID\n * @param connectionName\n * @param password\n * @return\n * returns java.util.List<java.lang.String>\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"getListOfSubjectAreaReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"getListOfSubjectArea\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetListOfSubjectArea\")\n @ResponseWrapper(localName = \"getListOfSubjectAreaResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetListOfSubjectAreaResponse\")\n public List<String> getListOfSubjectArea(\n @WebParam(name = \"userID\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String userID,\n @WebParam(name = \"password\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String password,\n @WebParam(name = \"connectionName\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String connectionName)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param bipSessionToken\n * @param connectionName\n * @return\n * returns java.util.List<java.lang.String>\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"getListOfSubjectAreaInSessionReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"getListOfSubjectAreaInSession\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetListOfSubjectAreaInSession\")\n @ResponseWrapper(localName = \"getListOfSubjectAreaInSessionResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.GetListOfSubjectAreaInSessionResponse\")\n public List<String> getListOfSubjectAreaInSession(\n @WebParam(name = \"bipSessionToken\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String bipSessionToken,\n @WebParam(name = \"connectionName\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String connectionName)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param templateFileName\n * @param folderAbsolutePathURL\n * @param templateData\n * @param xliffData\n * @param xliffFileName\n * @param bipSessionToken\n * @param updateFlag\n * @param reportName\n * @param dataModelURL\n * @return\n * returns java.lang.String\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"createReportInSessionReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"createReportInSession\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.CreateReportInSession\")\n @ResponseWrapper(localName = \"createReportInSessionResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.CreateReportInSessionResponse\")\n public String createReportInSession(\n @WebParam(name = \"reportName\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String reportName,\n @WebParam(name = \"folderAbsolutePathURL\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String folderAbsolutePathURL,\n @WebParam(name = \"dataModelURL\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String dataModelURL,\n @WebParam(name = \"templateFileName\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String templateFileName,\n @WebParam(name = \"templateData\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n byte[] templateData,\n @WebParam(name = \"XLIFFFileName\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String xliffFileName,\n @WebParam(name = \"XLIFFData\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n byte[] xliffData,\n @WebParam(name = \"updateFlag\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n boolean updateFlag,\n @WebParam(name = \"bipSessionToken\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String bipSessionToken)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param userID\n * @param newReportDefn\n * @param password\n * @param reportAbsPath\n * @return\n * returns boolean\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"updateReportDefinitionReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"updateReportDefinition\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.UpdateReportDefinition\")\n @ResponseWrapper(localName = \"updateReportDefinitionResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.UpdateReportDefinitionResponse\")\n public boolean updateReportDefinition(\n @WebParam(name = \"reportAbsPath\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String reportAbsPath,\n @WebParam(name = \"newReportDefn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n ReportDefinition newReportDefn,\n @WebParam(name = \"userID\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String userID,\n @WebParam(name = \"password\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String password)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param userID\n * @param objectPath\n * @param password\n * @return\n * returns boolean\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"removeObjectFromCacheReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"removeObjectFromCache\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.RemoveObjectFromCache\")\n @ResponseWrapper(localName = \"removeObjectFromCacheResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.RemoveObjectFromCacheResponse\")\n public boolean removeObjectFromCache(\n @WebParam(name = \"objectPath\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String objectPath,\n @WebParam(name = \"userID\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String userID,\n @WebParam(name = \"password\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String password)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param userID\n * @param password\n * @param newMobileAppDefn\n * @param reportAbsPath\n * @return\n * returns boolean\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"updateMobileAppDefinitionReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"updateMobileAppDefinition\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.UpdateMobileAppDefinition\")\n @ResponseWrapper(localName = \"updateMobileAppDefinitionResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.UpdateMobileAppDefinitionResponse\")\n public boolean updateMobileAppDefinition(\n @WebParam(name = \"reportAbsPath\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String reportAbsPath,\n @WebParam(name = \"newMobileAppDefn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n MobileAppDefinition newMobileAppDefn,\n @WebParam(name = \"userID\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String userID,\n @WebParam(name = \"password\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String password)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param bipSessionToken\n * @param newMobileAppDefn\n * @param reportAbsPath\n * @return\n * returns boolean\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"updateMobileAppDefinitionInSessionReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"updateMobileAppDefinitionInSession\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.UpdateMobileAppDefinitionInSession\")\n @ResponseWrapper(localName = \"updateMobileAppDefinitionInSessionResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.UpdateMobileAppDefinitionInSessionResponse\")\n public boolean updateMobileAppDefinitionInSession(\n @WebParam(name = \"reportAbsPath\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String reportAbsPath,\n @WebParam(name = \"newMobileAppDefn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n MobileAppDefinition newMobileAppDefn,\n @WebParam(name = \"bipSessionToken\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String bipSessionToken)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param userID\n * @param templateType\n * @param templateData\n * @param locale\n * @param password\n * @param reportAbsolutePath\n * @param templateName\n * @return\n * returns boolean\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"uploadTemplateForReportReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"uploadTemplateForReport\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.UploadTemplateForReport\")\n @ResponseWrapper(localName = \"uploadTemplateForReportResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.UploadTemplateForReportResponse\")\n public boolean uploadTemplateForReport(\n @WebParam(name = \"reportAbsolutePath\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String reportAbsolutePath,\n @WebParam(name = \"templateName\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String templateName,\n @WebParam(name = \"templateType\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String templateType,\n @WebParam(name = \"locale\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String locale,\n @WebParam(name = \"templateData\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n byte[] templateData,\n @WebParam(name = \"userID\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String userID,\n @WebParam(name = \"password\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String password)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param templateType\n * @param templateData\n * @param bipSessionToken\n * @param locale\n * @param reportAbsolutePath\n * @param templateName\n * @return\n * returns boolean\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"uploadTemplateForReportInSessionReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"uploadTemplateForReportInSession\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.UploadTemplateForReportInSession\")\n @ResponseWrapper(localName = \"uploadTemplateForReportInSessionResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.UploadTemplateForReportInSessionResponse\")\n public boolean uploadTemplateForReportInSession(\n @WebParam(name = \"reportAbsolutePath\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String reportAbsolutePath,\n @WebParam(name = \"templateName\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String templateName,\n @WebParam(name = \"templateType\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String templateType,\n @WebParam(name = \"locale\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String locale,\n @WebParam(name = \"templateData\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n byte[] templateData,\n @WebParam(name = \"bipSessionToken\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String bipSessionToken)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param userID\n * @param templateData\n * @param locale\n * @param password\n * @param reportAbsolutePath\n * @param templateName\n * @return\n * returns boolean\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"updateTemplateForReportReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"updateTemplateForReport\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.UpdateTemplateForReport\")\n @ResponseWrapper(localName = \"updateTemplateForReportResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.UpdateTemplateForReportResponse\")\n public boolean updateTemplateForReport(\n @WebParam(name = \"reportAbsolutePath\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String reportAbsolutePath,\n @WebParam(name = \"templateName\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String templateName,\n @WebParam(name = \"locale\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String locale,\n @WebParam(name = \"templateData\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n byte[] templateData,\n @WebParam(name = \"userID\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String userID,\n @WebParam(name = \"password\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String password)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param userID\n * @param templateFileName\n * @param password\n * @param reportAbsolutePath\n * @return\n * returns boolean\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"removeTemplateForReportReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"removeTemplateForReport\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.RemoveTemplateForReport\")\n @ResponseWrapper(localName = \"removeTemplateForReportResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.RemoveTemplateForReportResponse\")\n public boolean removeTemplateForReport(\n @WebParam(name = \"reportAbsolutePath\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String reportAbsolutePath,\n @WebParam(name = \"templateFileName\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String templateFileName,\n @WebParam(name = \"userID\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String userID,\n @WebParam(name = \"password\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String password)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param templateFileName\n * @param bipSessionToken\n * @param reportAbsolutePath\n * @return\n * returns boolean\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"removeTemplateForReportInSessionReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"removeTemplateForReportInSession\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.RemoveTemplateForReportInSession\")\n @ResponseWrapper(localName = \"removeTemplateForReportInSessionResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.RemoveTemplateForReportInSessionResponse\")\n public boolean removeTemplateForReportInSession(\n @WebParam(name = \"reportAbsolutePath\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String reportAbsolutePath,\n @WebParam(name = \"templateFileName\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String templateFileName,\n @WebParam(name = \"bipSessionToken\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String bipSessionToken)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param userID\n * @param xliffData\n * @param locale\n * @param layoutFileName\n * @param password\n * @param reportAbsolutePath\n * @return\n * returns boolean\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"uploadXLIFFForReportReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"uploadXLIFFForReport\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.UploadXLIFFForReport\")\n @ResponseWrapper(localName = \"uploadXLIFFForReportResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.UploadXLIFFForReportResponse\")\n public boolean uploadXLIFFForReport(\n @WebParam(name = \"reportAbsolutePath\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String reportAbsolutePath,\n @WebParam(name = \"xliffData\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n byte[] xliffData,\n @WebParam(name = \"layoutFileName\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String layoutFileName,\n @WebParam(name = \"locale\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String locale,\n @WebParam(name = \"userID\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String userID,\n @WebParam(name = \"password\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String password)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param xliffData\n * @param bipSessionToken\n * @param locale\n * @param layoutFileName\n * @param reportAbsolutePath\n * @return\n * returns boolean\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"updateXLIFFForReportInSessionReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"updateXLIFFForReportInSession\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.UpdateXLIFFForReportInSession\")\n @ResponseWrapper(localName = \"updateXLIFFForReportInSessionResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.UpdateXLIFFForReportInSessionResponse\")\n public boolean updateXLIFFForReportInSession(\n @WebParam(name = \"reportAbsolutePath\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String reportAbsolutePath,\n @WebParam(name = \"xliffData\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n byte[] xliffData,\n @WebParam(name = \"layoutFileName\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String layoutFileName,\n @WebParam(name = \"locale\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String locale,\n @WebParam(name = \"bipSessionToken\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String bipSessionToken)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param userID\n * @param xliffData\n * @param locale\n * @param layoutFileName\n * @param password\n * @param reportAbsolutePath\n * @return\n * returns boolean\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"updateXLIFFForReportReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"updateXLIFFForReport\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.UpdateXLIFFForReport\")\n @ResponseWrapper(localName = \"updateXLIFFForReportResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.UpdateXLIFFForReportResponse\")\n public boolean updateXLIFFForReport(\n @WebParam(name = \"reportAbsolutePath\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String reportAbsolutePath,\n @WebParam(name = \"xliffData\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n byte[] xliffData,\n @WebParam(name = \"layoutFileName\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String layoutFileName,\n @WebParam(name = \"locale\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String locale,\n @WebParam(name = \"userID\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String userID,\n @WebParam(name = \"password\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String password)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param xliffData\n * @param bipSessionToken\n * @param locale\n * @param layoutFileName\n * @param reportAbsolutePath\n * @return\n * returns boolean\n * @throws OperationFailedException_Exception\n * @throws InvalidParametersException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"uploadXLIFFForReportInSessionReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"uploadXLIFFForReportInSession\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.UploadXLIFFForReportInSession\")\n @ResponseWrapper(localName = \"uploadXLIFFForReportInSessionResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.UploadXLIFFForReportInSessionResponse\")\n public boolean uploadXLIFFForReportInSession(\n @WebParam(name = \"reportAbsolutePath\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String reportAbsolutePath,\n @WebParam(name = \"xliffData\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n byte[] xliffData,\n @WebParam(name = \"layoutFileName\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String layoutFileName,\n @WebParam(name = \"locale\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String locale,\n @WebParam(name = \"bipSessionToken\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String bipSessionToken)\n throws AccessDeniedException_Exception, InvalidParametersException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param reportRawDataChunk\n * @param userID\n * @param fileID\n * @param reportDataChunk\n * @param password\n * @return\n * returns java.lang.String\n * @throws OperationFailedException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"uploadReportDataChunkReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"uploadReportDataChunk\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.UploadReportDataChunk\")\n @ResponseWrapper(localName = \"uploadReportDataChunkResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.UploadReportDataChunkResponse\")\n public String uploadReportDataChunk(\n @WebParam(name = \"fileID\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String fileID,\n @WebParam(name = \"reportDataChunk\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n byte[] reportDataChunk,\n @WebParam(name = \"reportRawDataChunk\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String reportRawDataChunk,\n @WebParam(name = \"userID\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String userID,\n @WebParam(name = \"password\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String password)\n throws AccessDeniedException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param reportRawDataChunk\n * @param fileID\n * @param bipSessionToken\n * @param reportDataChunk\n * @return\n * returns java.lang.String\n * @throws OperationFailedException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"uploadReportDataChunkInSessionReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"uploadReportDataChunkInSession\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.UploadReportDataChunkInSession\")\n @ResponseWrapper(localName = \"uploadReportDataChunkInSessionResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.UploadReportDataChunkInSessionResponse\")\n public String uploadReportDataChunkInSession(\n @WebParam(name = \"fileID\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String fileID,\n @WebParam(name = \"reportDataChunk\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n byte[] reportDataChunk,\n @WebParam(name = \"reportRawDataChunk\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String reportRawDataChunk,\n @WebParam(name = \"bipSessionToken\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String bipSessionToken)\n throws AccessDeniedException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param userID\n * @param fileID\n * @param beginIdx\n * @param password\n * @param size\n * @return\n * returns scm.bi12.ReportDataChunk\n * @throws OperationFailedException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"downloadReportDataChunkReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"downloadReportDataChunk\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.DownloadReportDataChunk\")\n @ResponseWrapper(localName = \"downloadReportDataChunkResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.DownloadReportDataChunkResponse\")\n public ReportDataChunk downloadReportDataChunk(\n @WebParam(name = \"fileID\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String fileID,\n @WebParam(name = \"beginIdx\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n int beginIdx,\n @WebParam(name = \"size\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n int size,\n @WebParam(name = \"userID\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String userID,\n @WebParam(name = \"password\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String password)\n throws AccessDeniedException_Exception, OperationFailedException_Exception\n ;\n\n /**\n * \n * @param fileID\n * @param beginIdx\n * @param bipSessionToken\n * @param size\n * @return\n * returns scm.bi12.ReportDataChunk\n * @throws OperationFailedException_Exception\n * @throws AccessDeniedException_Exception\n */\n @WebMethod\n @WebResult(name = \"downloadReportDataChunkInSessionReturn\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n @RequestWrapper(localName = \"downloadReportDataChunkInSession\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.DownloadReportDataChunkInSession\")\n @ResponseWrapper(localName = \"downloadReportDataChunkInSessionResponse\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\", className = \"scm.bi12.DownloadReportDataChunkInSessionResponse\")\n public ReportDataChunk downloadReportDataChunkInSession(\n @WebParam(name = \"fileID\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String fileID,\n @WebParam(name = \"beginIdx\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n int beginIdx,\n @WebParam(name = \"size\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n int size,\n @WebParam(name = \"bipSessionToken\", targetNamespace = \"http://xmlns.oracle.com/oxp/service/v2\")\n String bipSessionToken)\n throws AccessDeniedException_Exception, OperationFailedException_Exception\n ;\n\n}", "title": "" }, { "docid": "31152c027b1b54bb1003d6590bf356c6", "score": "0.5967397", "text": "@WebService(name = \"DeFactoSF1Soap\", targetNamespace = \"http://reportingsales.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface DeFactoSF1Soap {\n\n\n /**\n * \n * @param zip\n * @param key\n * @return\n * returns com.reportingsales.DefactoZip2\n */\n @WebMethod(operationName = \"DeFactoSF1Part2ByZip\", action = \"http://reportingsales.com/DeFactoSF1Part2ByZip\")\n @WebResult(name = \"DeFactoSF1Part2ByZipResult\", targetNamespace = \"http://reportingsales.com/\")\n @RequestWrapper(localName = \"DeFactoSF1Part2ByZip\", targetNamespace = \"http://reportingsales.com/\", className = \"com.reportingsales.DeFactoSF1Part2ByZip\")\n @ResponseWrapper(localName = \"DeFactoSF1Part2ByZipResponse\", targetNamespace = \"http://reportingsales.com/\", className = \"com.reportingsales.DeFactoSF1Part2ByZipResponse\")\n public DefactoZip2 deFactoSF1Part2ByZip(\n @WebParam(name = \"zip\", targetNamespace = \"http://reportingsales.com/\")\n String zip,\n @WebParam(name = \"key\", targetNamespace = \"http://reportingsales.com/\")\n String key);\n\n /**\n * \n * @param zip\n * @param key\n * @return\n * returns com.reportingsales.BigZip\n */\n @WebMethod(operationName = \"DeFactoSF1Part1ByZip\", action = \"http://reportingsales.com/DeFactoSF1Part1ByZip\")\n @WebResult(name = \"DeFactoSF1Part1ByZipResult\", targetNamespace = \"http://reportingsales.com/\")\n @RequestWrapper(localName = \"DeFactoSF1Part1ByZip\", targetNamespace = \"http://reportingsales.com/\", className = \"com.reportingsales.DeFactoSF1Part1ByZip\")\n @ResponseWrapper(localName = \"DeFactoSF1Part1ByZipResponse\", targetNamespace = \"http://reportingsales.com/\", className = \"com.reportingsales.DeFactoSF1Part1ByZipResponse\")\n public BigZip deFactoSF1Part1ByZip(\n @WebParam(name = \"zip\", targetNamespace = \"http://reportingsales.com/\")\n String zip,\n @WebParam(name = \"key\", targetNamespace = \"http://reportingsales.com/\")\n String key);\n\n /**\n * \n * @param place\n * @param state\n * @param key\n * @return\n * returns com.reportingsales.BigName\n */\n @WebMethod(operationName = \"DeFactoSF1Part1ByNameState\", action = \"http://reportingsales.com/DeFactoSF1Part1ByNameState\")\n @WebResult(name = \"DeFactoSF1Part1ByNameStateResult\", targetNamespace = \"http://reportingsales.com/\")\n @RequestWrapper(localName = \"DeFactoSF1Part1ByNameState\", targetNamespace = \"http://reportingsales.com/\", className = \"com.reportingsales.DeFactoSF1Part1ByNameState\")\n @ResponseWrapper(localName = \"DeFactoSF1Part1ByNameStateResponse\", targetNamespace = \"http://reportingsales.com/\", className = \"com.reportingsales.DeFactoSF1Part1ByNameStateResponse\")\n public BigName deFactoSF1Part1ByNameState(\n @WebParam(name = \"place\", targetNamespace = \"http://reportingsales.com/\")\n String place,\n @WebParam(name = \"state\", targetNamespace = \"http://reportingsales.com/\")\n String state,\n @WebParam(name = \"key\", targetNamespace = \"http://reportingsales.com/\")\n String key);\n\n /**\n * \n * @param place\n * @param state\n * @param key\n * @return\n * returns com.reportingsales.ArrayOfDefactoName2\n */\n @WebMethod(operationName = \"DeFactoSF1Part2ByNameState\", action = \"http://reportingsales.com/DeFactoSF1Part2ByNameState\")\n @WebResult(name = \"DeFactoSF1Part2ByNameStateResult\", targetNamespace = \"http://reportingsales.com/\")\n @RequestWrapper(localName = \"DeFactoSF1Part2ByNameState\", targetNamespace = \"http://reportingsales.com/\", className = \"com.reportingsales.DeFactoSF1Part2ByNameState\")\n @ResponseWrapper(localName = \"DeFactoSF1Part2ByNameStateResponse\", targetNamespace = \"http://reportingsales.com/\", className = \"com.reportingsales.DeFactoSF1Part2ByNameStateResponse\")\n public ArrayOfDefactoName2 deFactoSF1Part2ByNameState(\n @WebParam(name = \"place\", targetNamespace = \"http://reportingsales.com/\")\n String place,\n @WebParam(name = \"state\", targetNamespace = \"http://reportingsales.com/\")\n String state,\n @WebParam(name = \"key\", targetNamespace = \"http://reportingsales.com/\")\n String key);\n\n}", "title": "" }, { "docid": "9b4559d4839bcb96b5ea8bdc5db18466", "score": "0.5965861", "text": "@WebService(targetNamespace = \"http://www.sample.project.com.au/services/admin/UpdateCurrency/v1\", name = \"UpdateCurrency\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface UpdateCurrency {\n\n @WebResult(name = \"updateCurrencyResponse\", targetNamespace = \"http://www.sample.project.com.au/services/admin/UpdateCurrency/UpdateCurrencyResponse/v1\", partName = \"response\")\n @WebMethod(operationName = \"UpdateCurrency\", action = \"http://www.sample.project.com.au/services/admin/UpdateCurrency/v1\")\n public au.com.project.sample.services.admin.updatecurrency.UpdateCurrencyResponse updateCurrency(\n @WebParam(partName = \"request\", name = \"updateCurrencyRequest\", targetNamespace = \"http://www.sample.project.com.au/services/admin/UpdateCurrency/UpdateCurrencyRequest/v1\")\n au.com.project.sample.services.admin.updatecurrency.UpdateCurrencyRequest request\n ) throws au.com.project.sample.common.message.BusinessFault, au.com.project.sample.common.message.TechnicalFault;\n}", "title": "" }, { "docid": "f9a6b1817e8d7473cfd684eead2cdd48", "score": "0.59657884", "text": "@WebService(name = \"PingPort\", targetNamespace = \"urn:tk.org:ws:common:ping\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface PingPort {\n\n\n /**\n * \n * @param soapHeader\n * @param pingRequestIn\n * @return\n * returns jaxws2.ping.PingResponse\n */\n @WebMethod\n @WebResult(name = \"pingResponse\", targetNamespace = \"urn:tk.org:ws:common:ping\", partName = \"pingResponse\")\n public PingResponse ping(\n @WebParam(name = \"PingInputArgs\", targetNamespace = \"urn:tk.org:ws:common:ping\", partName = \"PingRequestIn\")\n PingRequest pingRequestIn,\n @WebParam(name = \"AuthHeader\", targetNamespace = \"http://tk.org/header/AuthConfig_v10\", header = true, partName = \"SoapHeader\")\n AuthHeaderType soapHeader);\n\n}", "title": "" }, { "docid": "eebbdfe970417be356a71bbad949bab3", "score": "0.5965767", "text": "@WebService(name = \"WeatherServiceSoap\", targetNamespace = \"http://netpub.cstudies.ubc.ca/dotnet/webservices/WeatherService\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface WeatherServiceSoap {\n\n\n /**\n * returns several pieces of information as properties of a WeatherObject for the city you supply\n * \n * @param city\n * @return\n * returns ca.ubc.cstudies.netpub.dotnet.webservices.weatherservice.WeatherObject\n */\n @WebMethod(operationName = \"Weather\", action = \"http://netpub.cstudies.ubc.ca/dotnet/webservices/WeatherService/Weather\")\n @WebResult(name = \"WeatherResult\", targetNamespace = \"http://netpub.cstudies.ubc.ca/dotnet/webservices/WeatherService\")\n @RequestWrapper(localName = \"Weather\", targetNamespace = \"http://netpub.cstudies.ubc.ca/dotnet/webservices/WeatherService\", className = \"ca.ubc.cstudies.netpub.dotnet.webservices.weatherservice.Weather\")\n @ResponseWrapper(localName = \"WeatherResponse\", targetNamespace = \"http://netpub.cstudies.ubc.ca/dotnet/webservices/WeatherService\", className = \"ca.ubc.cstudies.netpub.dotnet.webservices.weatherservice.WeatherResponse\")\n public WeatherObject weather(\n @WebParam(name = \"City\", targetNamespace = \"http://netpub.cstudies.ubc.ca/dotnet/webservices/WeatherService\")\n String city);\n\n}", "title": "" }, { "docid": "094f36f2324d6278851e70292c0594a7", "score": "0.5964789", "text": "@WebService(targetNamespace = \"http://in28minutes.com/students\", name = \"StudentPort\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\npublic interface StudentPort {\r\n\r\n @WebMethod(operationName = \"GetStudentDetails\")\r\n @WebResult(name = \"GetStudentDetailsResponse\", targetNamespace = \"http://in28minutes.com/students\", partName = \"GetStudentDetailsResponse\")\r\n public GetStudentDetailsResponse getStudentDetails(\r\n\r\n @WebParam(partName = \"GetStudentDetailsRequest\", name = \"GetStudentDetailsRequest\", targetNamespace = \"http://in28minutes.com/students\")\r\n GetStudentDetailsRequest getStudentDetailsRequest\r\n );\r\n}", "title": "" }, { "docid": "94bccb402c22ed69160f919214b8eab9", "score": "0.59622943", "text": "@WebService\n@SOAPBinding(style = Style.RPC)\npublic interface HelloWorld {\n @WebMethod String getHelloWorldAsString(String name);\n @WebMethod void publishSchedule(String schedule);\n @WebMethod void updateJob(Job job);\n}", "title": "" }, { "docid": "97e6400e59ff6384fa2a883c1743507e", "score": "0.59596026", "text": "@WebService(targetNamespace = \"http://service.server.webservice.zdxh.cn/\", name = \"UserService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface UserService {\n\n @WebMethod\n @RequestWrapper(localName = \"addUser\", targetNamespace = \"http://service.server.webservice.zdxh.cn/\", className = \"cn.zdxh.webservice.client.client.AddUser\")\n @ResponseWrapper(localName = \"addUserResponse\", targetNamespace = \"http://service.server.webservice.zdxh.cn/\", className = \"cn.zdxh.webservice.client.client.AddUserResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String addUser(\n\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n User arg0\n );\n\n @WebMethod\n @RequestWrapper(localName = \"getUser\", targetNamespace = \"http://service.server.webservice.zdxh.cn/\", className = \"cn.zdxh.webservice.client.client.GetUser\")\n @ResponseWrapper(localName = \"getUserResponse\", targetNamespace = \"http://service.server.webservice.zdxh.cn/\", className = \"cn.zdxh.webservice.client.client.GetUserResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public User getUser(\n\n @WebParam(name = \"username\", targetNamespace = \"\")\n java.lang.String username\n );\n\n @WebMethod\n @RequestWrapper(localName = \"sayHello\", targetNamespace = \"http://service.server.webservice.zdxh.cn/\", className = \"cn.zdxh.webservice.client.client.SayHello\")\n @ResponseWrapper(localName = \"sayHelloResponse\", targetNamespace = \"http://service.server.webservice.zdxh.cn/\", className = \"cn.zdxh.webservice.client.client.SayHelloResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String sayHello(\n\n @WebParam(name = \"userName\", targetNamespace = \"\")\n java.lang.String userName\n );\n}", "title": "" }, { "docid": "fd83d815428162fa96efa2a915dfe417", "score": "0.5951973", "text": "@WebService(targetNamespace = \"http://www.pluralsight.com/service/Flights/\", name = \"Flights\")\n@XmlSeeAlso({com.pluralsight.schema.flight.ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface Flights {\n\n @WebMethod(operationName = \"ProcessFlightsCheck\", action = \"http://www.pluralsight.com/service/Flights/ProcessFlightsCheck\")\n @WebResult(name = \"flightCheckResponse\", targetNamespace = \"http://www.pluralsight.com/schema/Flight\", partName = \"flightCheckResponse\")\n public com.pluralsight.schema.flight.FlightCheckResponseType processFlightsCheck(\n @WebParam(partName = \"flightCheck\", name = \"flightCheck\", targetNamespace = \"http://www.pluralsight.com/schema/Flight\")\n com.pluralsight.schema.flight.FlightCheckType flightCheck\n );\n}", "title": "" }, { "docid": "c8b5081847cb9801d412eb4657f07314", "score": "0.59507364", "text": "@WebService(name = \"Hoteis\", targetNamespace = \"http://service.hotel.trip.soap.pos.ads.ifpb.edu.br/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface Hoteis {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns br.edu.ifpb.ads.pos.soap.trip.hotel.ws.HotelEmb\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"buscarHotelEmb\", targetNamespace = \"http://service.hotel.trip.soap.pos.ads.ifpb.edu.br/\", className = \"br.edu.ifpb.ads.pos.soap.trip.hotel.ws.BuscarHotelEmb\")\n @ResponseWrapper(localName = \"buscarHotelEmbResponse\", targetNamespace = \"http://service.hotel.trip.soap.pos.ads.ifpb.edu.br/\", className = \"br.edu.ifpb.ads.pos.soap.trip.hotel.ws.BuscarHotelEmbResponse\")\n public HotelEmb buscarHotelEmb(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @return\n * returns java.util.List<br.edu.ifpb.ads.pos.soap.trip.hotel.ws.HotelEmb>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"listarHoteisEmb\", targetNamespace = \"http://service.hotel.trip.soap.pos.ads.ifpb.edu.br/\", className = \"br.edu.ifpb.ads.pos.soap.trip.hotel.ws.ListarHoteisEmb\")\n @ResponseWrapper(localName = \"listarHoteisEmbResponse\", targetNamespace = \"http://service.hotel.trip.soap.pos.ads.ifpb.edu.br/\", className = \"br.edu.ifpb.ads.pos.soap.trip.hotel.ws.ListarHoteisEmbResponse\")\n public List<HotelEmb> listarHoteisEmb();\n\n /**\n * \n * @return\n * returns java.util.List<br.edu.ifpb.ads.pos.soap.trip.hotel.ws.Hotel>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"listarHoteis\", targetNamespace = \"http://service.hotel.trip.soap.pos.ads.ifpb.edu.br/\", className = \"br.edu.ifpb.ads.pos.soap.trip.hotel.ws.ListarHoteis\")\n @ResponseWrapper(localName = \"listarHoteisResponse\", targetNamespace = \"http://service.hotel.trip.soap.pos.ads.ifpb.edu.br/\", className = \"br.edu.ifpb.ads.pos.soap.trip.hotel.ws.ListarHoteisResponse\")\n public List<Hotel> listarHoteis();\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"salvarHotel\", targetNamespace = \"http://service.hotel.trip.soap.pos.ads.ifpb.edu.br/\", className = \"br.edu.ifpb.ads.pos.soap.trip.hotel.ws.SalvarHotel\")\n @ResponseWrapper(localName = \"salvarHotelResponse\", targetNamespace = \"http://service.hotel.trip.soap.pos.ads.ifpb.edu.br/\", className = \"br.edu.ifpb.ads.pos.soap.trip.hotel.ws.SalvarHotelResponse\")\n public void salvarHotel(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n Hotel arg0);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"atualizarHotel\", targetNamespace = \"http://service.hotel.trip.soap.pos.ads.ifpb.edu.br/\", className = \"br.edu.ifpb.ads.pos.soap.trip.hotel.ws.AtualizarHotel\")\n @ResponseWrapper(localName = \"atualizarHotelResponse\", targetNamespace = \"http://service.hotel.trip.soap.pos.ads.ifpb.edu.br/\", className = \"br.edu.ifpb.ads.pos.soap.trip.hotel.ws.AtualizarHotelResponse\")\n public void atualizarHotel(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n Hotel arg0);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"deletarHotel\", targetNamespace = \"http://service.hotel.trip.soap.pos.ads.ifpb.edu.br/\", className = \"br.edu.ifpb.ads.pos.soap.trip.hotel.ws.DeletarHotel\")\n @ResponseWrapper(localName = \"deletarHotelResponse\", targetNamespace = \"http://service.hotel.trip.soap.pos.ads.ifpb.edu.br/\", className = \"br.edu.ifpb.ads.pos.soap.trip.hotel.ws.DeletarHotelResponse\")\n public void deletarHotel(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n Hotel arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns br.edu.ifpb.ads.pos.soap.trip.hotel.ws.Hotel\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"buscarHotel\", targetNamespace = \"http://service.hotel.trip.soap.pos.ads.ifpb.edu.br/\", className = \"br.edu.ifpb.ads.pos.soap.trip.hotel.ws.BuscarHotel\")\n @ResponseWrapper(localName = \"buscarHotelResponse\", targetNamespace = \"http://service.hotel.trip.soap.pos.ads.ifpb.edu.br/\", className = \"br.edu.ifpb.ads.pos.soap.trip.hotel.ws.BuscarHotelResponse\")\n public Hotel buscarHotel(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n}", "title": "" }, { "docid": "75a8abc0be33070830ce6f56b8ae9c8a", "score": "0.5949122", "text": "@WebService(name = \"sample\", targetNamespace = \"http://example.tashneem.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface Sample {\n\n\n /**\n * \n * @param arg1\n * @param name\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"Register_Number\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"Register_Number\", targetNamespace = \"http://example.tashneem.com/\", className = \"com.tashneem.example.RegisterNumber\")\n @ResponseWrapper(localName = \"Register_NumberResponse\", targetNamespace = \"http://example.tashneem.com/\", className = \"com.tashneem.example.RegisterNumberResponse\")\n @Action(input = \"http://example.tashneem.com/sample/Register_NumberRequest\", output = \"http://example.tashneem.com/sample/Register_NumberResponse\")\n public String registerNumber(\n @WebParam(name = \"name\", targetNamespace = \"\")\n int name,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n int arg1);\n\n}", "title": "" }, { "docid": "69eb5beef06b1cd5ebf9c51211f1b870", "score": "0.59441334", "text": "@WebService(targetNamespace = \"http://jboss.org/fis/mock-soap-service\", name = \"CountriesPort\")\n@XmlSeeAlso({ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface CountriesPort {\n\n @WebMethod\n @WebResult(name = \"getCountryResponse\", targetNamespace = \"http://jboss.org/fis/mock-soap-service\", partName = \"getCountryResponse\")\n public GetCountryResponse getCountry(\n @WebParam(partName = \"getCountryRequest\", name = \"getCountryRequest\", targetNamespace = \"http://jboss.org/fis/mock-soap-service\")\n GetCountryRequest getCountryRequest\n );\n}", "title": "" }, { "docid": "a6e69dae5ba65f5a20759a87528a65ee", "score": "0.5940875", "text": "@WebService(targetNamespace = \"http://immd.upms.ws/v1\", name = \"RoleProfileExtWS\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface RoleProfileExtWS {\n\n @WebMethod\n @RequestWrapper(localName = \"enquireUserRole\", targetNamespace = \"http://immd.upms.ws/v1\", className = \"com.scw.upms.EnquireUserRole\")\n @ResponseWrapper(localName = \"enquireUserRoleResponse\", targetNamespace = \"http://immd.upms.ws/v1\", className = \"com.scw.upms.EnquireUserRoleResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.util.List<RoleDTO> enquireUserRole(\n @WebParam(name = \"userID\", targetNamespace = \"\")\n String userID\n ) throws ITIAppException_Exception, ITISysException_Exception;\n\n @WebMethod\n @RequestWrapper(localName = \"enquireTerminalRole\", targetNamespace = \"http://immd.upms.ws/v1\", className = \"com.scw.upms.EnquireTerminalRole\")\n @ResponseWrapper(localName = \"enquireTerminalRoleResponse\", targetNamespace = \"http://immd.upms.ws/v1\", className = \"com.scw.upms.EnquireTerminalRoleResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.util.List<RoleDTO> enquireTerminalRole(\n @WebParam(name = \"terminalID\", targetNamespace = \"\")\n String terminalID\n ) throws ITIAppException_Exception, ITISysException_Exception;\n\n @WebMethod\n @RequestWrapper(localName = \"enquireRoleProfile\", targetNamespace = \"http://immd.upms.ws/v1\", className = \"com.scw.upms.EnquireRoleProfile\")\n @ResponseWrapper(localName = \"enquireRoleProfileResponse\", targetNamespace = \"http://immd.upms.ws/v1\", className = \"com.scw.upms.EnquireRoleProfileResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.util.List<RoleDTO> enquireRoleProfile(\n @WebParam(name = \"roleList\", targetNamespace = \"\")\n java.util.List<String> roleList,\n @WebParam(name = \"systemID\", targetNamespace = \"\")\n String systemID\n ) throws ITIAppException_Exception, ITISysException_Exception;\n}", "title": "" }, { "docid": "ac17b3e4fc07998745e45ce60b0a3810", "score": "0.5940357", "text": "@WebService(targetNamespace = \"http://www.hoau.net/services/QuerySignInfoServices\", name = \"QuerySignInfoServices\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\npublic interface QuerySignInfoServices {\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @Action(input = \"http://www.hoau.net/services/QuerySignInfoServices/QuerySignInfoServices/queryWaybillRequest\", output = \"http://www.hoau.net/services/QuerySignInfoServices/QuerySignInfoServices/queryWaybillResponse\")\r\n @RequestWrapper(localName = \"queryWaybill\", targetNamespace = \"http://www.hoau.net/services/QuerySignInfoServices\", className = \"com.hoau.wechat.ws.waybill.QueryWaybill\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"queryWaybillResponse\", targetNamespace = \"http://www.hoau.net/services/QuerySignInfoServices\", className = \"com.hoau.wechat.ws.waybill.QueryWaybillResponse\")\r\n public com.hoau.wechat.ws.waybill.WaybillInfo queryWaybill(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n java.lang.String arg0,\r\n @WebParam(name = \"arg1\", targetNamespace = \"\")\r\n java.lang.String arg1\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @Action(input = \"http://www.hoau.net/services/QuerySignInfoServices/QuerySignInfoServices/querySignInfoServicesRequest\", output = \"http://www.hoau.net/services/QuerySignInfoServices/QuerySignInfoServices/querySignInfoServicesResponse\")\r\n @RequestWrapper(localName = \"querySignInfoServices\", targetNamespace = \"http://www.hoau.net/services/QuerySignInfoServices\", className = \"com.hoau.wechat.ws.waybill.QuerySignInfoServices_Type\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"querySignInfoServicesResponse\", targetNamespace = \"http://www.hoau.net/services/QuerySignInfoServices\", className = \"com.hoau.wechat.ws.waybill.QuerySignInfoServicesResponse\")\r\n public com.hoau.wechat.ws.waybill.SignInfoEntity querySignInfoServices(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n java.lang.String arg0\r\n );\r\n}", "title": "" }, { "docid": "f2683f19411d84e478a822f1a1ebc199", "score": "0.59397906", "text": "@WebService(name = \"JAXWS_WebServiceTesting_Server\", targetNamespace = \"http://ws_testing.net_api.java_api_testing/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface JAXWSWebServiceTestingServer {\n\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"setMyTransferObject\", targetNamespace = \"http://ws_testing.net_api.java_api_testing/\", className = \"java_api_testing.net_api.ws_testing.wsImpl.SetMyTransferObject\")\n @ResponseWrapper(localName = \"setMyTransferObjectResponse\", targetNamespace = \"http://ws_testing.net_api.java_api_testing/\", className = \"java_api_testing.net_api.ws_testing.wsImpl.SetMyTransferObjectResponse\")\n @Action(input = \"http://ws_testing.net_api.java_api_testing/JAXWS_WebServiceTesting_Server/setMyTransferObjectRequest\", output = \"http://ws_testing.net_api.java_api_testing/JAXWS_WebServiceTesting_Server/setMyTransferObjectResponse\")\n public void setMyTransferObject(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n MyTransferObject arg0);\n\n /**\n * \n * @return\n * returns java_api_testing.net_api.ws_testing.wsImpl.MyTransferObject\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getMyTransferObject\", targetNamespace = \"http://ws_testing.net_api.java_api_testing/\", className = \"java_api_testing.net_api.ws_testing.wsImpl.GetMyTransferObject\")\n @ResponseWrapper(localName = \"getMyTransferObjectResponse\", targetNamespace = \"http://ws_testing.net_api.java_api_testing/\", className = \"java_api_testing.net_api.ws_testing.wsImpl.GetMyTransferObjectResponse\")\n @Action(input = \"http://ws_testing.net_api.java_api_testing/JAXWS_WebServiceTesting_Server/getMyTransferObjectRequest\", output = \"http://ws_testing.net_api.java_api_testing/JAXWS_WebServiceTesting_Server/getMyTransferObjectResponse\")\n public MyTransferObject getMyTransferObject();\n\n}", "title": "" }, { "docid": "15e06764ac949788f420e6bdd48ab6ce", "score": "0.5939696", "text": "@WebService(targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\", name = \"SubmissionServicePortType\")\n@XmlSeeAlso({ObjectFactory.class, org.gs4tr.projectdirector.model.dto.ObjectFactory.class, org.w3._2005._05.xmlmime.ObjectFactory.class})\npublic interface SubmissionServicePortType {\n\n @WebMethod(action = \"urn:checkDownloadDeliverableCollateral\")\n @Action(input = \"urn:checkDownloadDeliverableCollateral\", output = \"urn:checkDownloadDeliverableCollateralResponse\")\n @RequestWrapper(localName = \"checkDownloadDeliverableCollateral\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\", className = \"org.gs4tr.projectdirector.ws.service.services.impl.CheckDownloadDeliverableCollateral\")\n @ResponseWrapper(localName = \"checkDownloadDeliverableCollateralResponse\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\", className = \"org.gs4tr.projectdirector.ws.service.services.impl.CheckDownloadDeliverableCollateralResponse\")\n @WebResult(name = \"return\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n public org.gs4tr.projectdirector.model.dto.DownloadCollateralResult checkDownloadDeliverableCollateral(\n @WebParam(name = \"uuid\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n java.lang.String uuid\n );\n\n @WebMethod(action = \"urn:addOwner\")\n @Action(input = \"urn:addOwner\", output = \"urn:addOwnerResponse\")\n @RequestWrapper(localName = \"addOwner\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\", className = \"org.gs4tr.projectdirector.ws.service.services.impl.AddOwner\")\n @ResponseWrapper(localName = \"addOwnerResponse\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\", className = \"org.gs4tr.projectdirector.ws.service.services.impl.AddOwnerResponse\")\n @WebResult(name = \"return\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n public java.lang.String addOwner(\n @WebParam(name = \"submissionTicket\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n java.lang.String submissionTicket,\n @WebParam(name = \"username\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n java.lang.String username\n );\n\n @WebMethod(action = \"urn:startSingleBatchSubmission\")\n @Action(input = \"urn:startSingleBatchSubmission\", output = \"urn:startSingleBatchSubmissionResponse\")\n @RequestWrapper(localName = \"startSingleBatchSubmission\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\", className = \"org.gs4tr.projectdirector.ws.service.services.impl.StartSingleBatchSubmission\")\n @ResponseWrapper(localName = \"startSingleBatchSubmissionResponse\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\", className = \"org.gs4tr.projectdirector.ws.service.services.impl.StartSingleBatchSubmissionResponse\")\n @WebResult(name = \"return\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n public java.lang.String startSingleBatchSubmission(\n @WebParam(name = \"submissionId\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n java.lang.String submissionId,\n @WebParam(name = \"submissionInfo\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n org.gs4tr.projectdirector.model.dto.SubmissionInfo submissionInfo\n );\n\n @WebMethod(action = \"urn:findCreatingSubmissionsByProjectShortCode\")\n @Action(input = \"urn:findCreatingSubmissionsByProjectShortCode\", output = \"urn:findCreatingSubmissionsByProjectShortCodeResponse\")\n @RequestWrapper(localName = \"findCreatingSubmissionsByProjectShortCode\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\", className = \"org.gs4tr.projectdirector.ws.service.services.impl.FindCreatingSubmissionsByProjectShortCode\")\n @ResponseWrapper(localName = \"findCreatingSubmissionsByProjectShortCodeResponse\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\", className = \"org.gs4tr.projectdirector.ws.service.services.impl.FindCreatingSubmissionsByProjectShortCodeResponse\")\n @WebResult(name = \"return\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n public java.util.List<org.gs4tr.projectdirector.model.dto.Submission> findCreatingSubmissionsByProjectShortCode(\n @WebParam(name = \"projectShortCode\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n java.lang.String projectShortCode\n );\n\n /**\n * Deprecated since 4.5.0\n */\n @WebMethod(action = \"urn:searchSubmissions\")\n @Action(input = \"urn:searchSubmissions\", output = \"urn:searchSubmissionsResponse\")\n @RequestWrapper(localName = \"searchSubmissions\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\", className = \"org.gs4tr.projectdirector.ws.service.services.impl.SearchSubmissions\")\n @ResponseWrapper(localName = \"searchSubmissionsResponse\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\", className = \"org.gs4tr.projectdirector.ws.service.services.impl.SearchSubmissionsResponse\")\n @WebResult(name = \"return\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n public org.gs4tr.projectdirector.model.dto.SubmissionSearchModelPagedList searchSubmissions(\n @WebParam(name = \"submissionSearchRequest\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n org.gs4tr.projectdirector.model.dto.SubmissionSearchRequest submissionSearchRequest,\n @WebParam(name = \"info\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n org.gs4tr.projectdirector.model.dto.PagedListInfo info\n );\n\n @WebMethod(action = \"urn:downloadDeliverableCollateralBySubmissionTicket\")\n @Action(input = \"urn:downloadDeliverableCollateralBySubmissionTicket\", output = \"urn:downloadDeliverableCollateralBySubmissionTicketResponse\")\n @RequestWrapper(localName = \"downloadDeliverableCollateralBySubmissionTicket\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\", className = \"org.gs4tr.projectdirector.ws.service.services.impl.DownloadDeliverableCollateralBySubmissionTicket\")\n @ResponseWrapper(localName = \"downloadDeliverableCollateralBySubmissionTicketResponse\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\", className = \"org.gs4tr.projectdirector.ws.service.services.impl.DownloadDeliverableCollateralBySubmissionTicketResponse\")\n @WebResult(name = \"return\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n public java.lang.String downloadDeliverableCollateralBySubmissionTicket(\n @WebParam(name = \"submissionTicket\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n java.lang.String submissionTicket\n );\n\n @WebMethod(action = \"urn:uploadReference\")\n @Action(input = \"urn:uploadReference\", output = \"urn:uploadReferenceResponse\")\n @RequestWrapper(localName = \"uploadReference\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\", className = \"org.gs4tr.projectdirector.ws.service.services.impl.UploadReference\")\n @ResponseWrapper(localName = \"uploadReferenceResponse\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\", className = \"org.gs4tr.projectdirector.ws.service.services.impl.UploadReferenceResponse\")\n @WebResult(name = \"return\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n public java.lang.String uploadReference(\n @WebParam(name = \"submissionId\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n java.lang.String submissionId,\n @WebParam(name = \"resourceInfo\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n org.gs4tr.projectdirector.model.dto.ResourceInfo resourceInfo,\n @WebParam(name = \"data\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n org.w3._2005._05.xmlmime.Base64Binary data\n );\n\n @WebMethod(action = \"urn:startSubmission\")\n @Action(input = \"urn:startSubmission\", output = \"urn:startSubmissionResponse\")\n @RequestWrapper(localName = \"startSubmission\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\", className = \"org.gs4tr.projectdirector.ws.service.services.impl.StartSubmission\")\n @ResponseWrapper(localName = \"startSubmissionResponse\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\", className = \"org.gs4tr.projectdirector.ws.service.services.impl.StartSubmissionResponse\")\n @WebResult(name = \"return\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n public java.lang.String startSubmission(\n @WebParam(name = \"submissionId\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n java.lang.String submissionId,\n @WebParam(name = \"submissionInfo\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n org.gs4tr.projectdirector.model.dto.SubmissionInfo submissionInfo\n );\n\n @WebMethod(action = \"urn:cancelSubmissionWithComment\")\n @Action(input = \"urn:cancelSubmissionWithComment\", output = \"urn:cancelSubmissionWithCommentResponse\")\n @RequestWrapper(localName = \"cancelSubmissionWithComment\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\", className = \"org.gs4tr.projectdirector.ws.service.services.impl.CancelSubmissionWithComment\")\n @ResponseWrapper(localName = \"cancelSubmissionWithCommentResponse\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\", className = \"org.gs4tr.projectdirector.ws.service.services.impl.CancelSubmissionWithCommentResponse\")\n @WebResult(name = \"return\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n public java.lang.String cancelSubmissionWithComment(\n @WebParam(name = \"submissionId\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n java.lang.String submissionId,\n @WebParam(name = \"comment\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n java.lang.String comment\n );\n\n @WebMethod(action = \"urn:addReferenceAsText\")\n @Action(input = \"urn:addReferenceAsText\", output = \"urn:addReferenceAsTextResponse\")\n @RequestWrapper(localName = \"addReferenceAsText\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\", className = \"org.gs4tr.projectdirector.ws.service.services.impl.AddReferenceAsText\")\n @ResponseWrapper(localName = \"addReferenceAsTextResponse\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\", className = \"org.gs4tr.projectdirector.ws.service.services.impl.AddReferenceAsTextResponse\")\n @WebResult(name = \"return\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n public java.lang.String addReferenceAsText(\n @WebParam(name = \"referenceText\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n java.lang.String referenceText,\n @WebParam(name = \"referenceDocumentName\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n java.lang.String referenceDocumentName,\n @WebParam(name = \"encoding\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n java.lang.String encoding,\n @WebParam(name = \"submissionTicket\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n java.lang.String submissionTicket\n );\n\n @WebMethod(action = \"urn:findByTicket\")\n @Action(input = \"urn:findByTicket\", output = \"urn:findByTicketResponse\")\n @RequestWrapper(localName = \"findByTicket\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\", className = \"org.gs4tr.projectdirector.ws.service.services.impl.FindSubmissionByTicket\")\n @ResponseWrapper(localName = \"findByTicketResponse\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\", className = \"org.gs4tr.projectdirector.ws.service.services.impl.FindSubmissionByTicketResponse\")\n @WebResult(name = \"return\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n public org.gs4tr.projectdirector.model.dto.Submission findByTicket(\n @WebParam(name = \"ticket\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n java.lang.String ticket\n );\n\n /**\n * Deprecated since 4.5.0\n */\n @WebMethod(action = \"urn:search\")\n @Action(input = \"urn:search\", output = \"urn:searchResponse\")\n @RequestWrapper(localName = \"search\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\", className = \"org.gs4tr.projectdirector.ws.service.services.impl.SearchSubmission\")\n @ResponseWrapper(localName = \"searchResponse\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\", className = \"org.gs4tr.projectdirector.ws.service.services.impl.SearchSubmissionResponse\")\n @WebResult(name = \"return\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n public org.gs4tr.projectdirector.model.dto.SubmissionPagedList search(\n @WebParam(name = \"command\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n org.gs4tr.projectdirector.model.dto.SubmissionSearchRequest command,\n @WebParam(name = \"info\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n org.gs4tr.projectdirector.model.dto.PagedListInfo info\n );\n\n @WebMethod(action = \"urn:addSubmitter\")\n @Action(input = \"urn:addSubmitter\", output = \"urn:addSubmitterResponse\")\n @RequestWrapper(localName = \"addSubmitter\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\", className = \"org.gs4tr.projectdirector.ws.service.services.impl.AddSubmitter\")\n @ResponseWrapper(localName = \"addSubmitterResponse\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\", className = \"org.gs4tr.projectdirector.ws.service.services.impl.AddSubmitterResponse\")\n @WebResult(name = \"return\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n public java.lang.String addSubmitter(\n @WebParam(name = \"submissionTicket\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n java.lang.String submissionTicket,\n @WebParam(name = \"username\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n java.lang.String username\n );\n\n @WebMethod(action = \"urn:cancelSubmission\")\n @Action(input = \"urn:cancelSubmission\", output = \"urn:cancelSubmissionResponse\")\n @RequestWrapper(localName = \"cancelSubmission\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\", className = \"org.gs4tr.projectdirector.ws.service.services.impl.CancelSubmission\")\n @ResponseWrapper(localName = \"cancelSubmissionResponse\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\", className = \"org.gs4tr.projectdirector.ws.service.services.impl.CancelSubmissionResponse\")\n @WebResult(name = \"return\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n public java.lang.String cancelSubmission(\n @WebParam(name = \"submissionId\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n java.lang.String submissionId\n );\n\n @WebMethod(action = \"urn:downloadDeliverableCollateralBySubmissionTicketAndTargetLanguages\")\n @Action(input = \"urn:downloadDeliverableCollateralBySubmissionTicketAndTargetLanguages\", output = \"urn:downloadDeliverableCollateralBySubmissionTicketAndTargetLanguagesResponse\")\n @RequestWrapper(localName = \"downloadDeliverableCollateralBySubmissionTicketAndTargetLanguages\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\", className = \"org.gs4tr.projectdirector.ws.service.services.impl.DownloadDeliverableCollateralBySubmissionTicketAndTargetLanguages\")\n @ResponseWrapper(localName = \"downloadDeliverableCollateralBySubmissionTicketAndTargetLanguagesResponse\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\", className = \"org.gs4tr.projectdirector.ws.service.services.impl.DownloadDeliverableCollateralBySubmissionTicketAndTargetLanguagesResponse\")\n @WebResult(name = \"return\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n public java.lang.String downloadDeliverableCollateralBySubmissionTicketAndTargetLanguages(\n @WebParam(name = \"submissionTicket\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n java.lang.String submissionTicket,\n @WebParam(name = \"targetLanguages\", targetNamespace = \"http://impl.services.service.ws.projectdirector.gs4tr.org\")\n java.util.List<java.lang.String> targetLanguages\n );\n}", "title": "" }, { "docid": "ec49929ced9472150fdd557fba64709f", "score": "0.59382", "text": "@WebService(name = \"SynergyEMailService\", targetNamespace = \"http://www.bank.synergy.com/email/\")\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface SynergyEMailService {\r\n\r\n\r\n /**\r\n * \r\n * @param pemailMessageInput\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod(action = \"http://www.bank.synergy.com/email/sendEMail\")\r\n @WebResult(name = \"emailResponse\", targetNamespace = \"http://www.bank.synergy.com/email/\", partName = \"remailMessageResponse\")\r\n public String sendEmail(\r\n @WebParam(name = \"eMailSenderVOInput\", targetNamespace = \"http://www.bank.synergy.com/email/\", partName = \"pemailMessageInput\")\r\n EMailSenderVO pemailMessageInput);\r\n\r\n}", "title": "" }, { "docid": "9d0a9a5422e66c4e899b8db192cf9505", "score": "0.5927307", "text": "public interface SoapMessage extends WebServiceMessage {\n\n /**\n * Returns the <code>SoapEnvelope</code> associated with this <code>SoapMessage</code>.\n */\n SoapEnvelope getEnvelope();\n\n /**\n * Get the SOAP Action for this messaage, or <code>null</code> if not present.\n *\n * @return the SOAP Action.\n */\n String getSoapAction();\n\n /**\n * Returns the <code>SoapBody</code> associated with this <code>SoapMessage</code>. This is a convenience method for\n * <code>getEnvelope().getBody()</code>.\n *\n * @see SoapEnvelope#getBody()\n */\n SoapBody getSoapBody();\n\n /**\n * Returns the <code>SoapHeader</code> associated with this <code>SoapMessage</code>. This is a convenience method\n * for <code>getEnvelope().getHeader()</code>.\n *\n * @see SoapEnvelope#getHeader()\n */\n SoapHeader getSoapHeader();\n\n /**\n * Returns the SOAP version of this message. This can be either SOAP 1.1 or SOAP 1.2.\n *\n * @return the SOAP version\n * @see SoapVersion#SOAP_11\n * @see SoapVersion#SOAP_12\n */\n SoapVersion getVersion();\n\n /**\n * Returns an <code>Iterator</code> over all <code>Attachment</code>s that are part of this\n * <code>SoapMessage</code>.\n *\n * @return an <code>Iterator</code> over all <code>Attachment</code>s\n * @see Attachment\n */\n Iterator getAttachments();\n\n /**\n * Add an attachment to the <code>SoapMessage</code>, taking the content from a <code>java.io.File</code>.\n * <p/>\n * The content type will be determined by the name of the given content file. Do not use this for temporary files\n * with arbitrary filenames (possibly ending in \".tmp\" or the like)!\n *\n * @param file the File resource to take the content from\n * @return the added attachment\n * @throws AttachmentException in case of errors\n * @see #addAttachment(InputStreamSource, String)\n */\n Attachment addAttachment(File file) throws AttachmentException;\n\n /**\n * Add an attachment to the <code>SoapMessage</code>, taking the content from an\n * <code>org.springframework.core.io.InputStreamResource</code>.\n * <p/>\n * Note that the <code>InputStream</code> returned by the source needs to be a <em>fresh one on each call</em>, as\n * underlying implementations can invoke <code>getInputStream()</code> multiple times.\n *\n * @param inputStreamSource the resource to take the content from (all of Spring's Resource implementations can be\n * passed in here)\n * @param contentType the content type to use for the element\n * @return the added attachment\n * @throws AttachmentException in case of errors\n * @see #addAttachment(java.io.File)\n * @see org.springframework.core.io.Resource\n */\n Attachment addAttachment(InputStreamSource inputStreamSource, String contentType);\n}", "title": "" }, { "docid": "94d511246ae9e4d1fa9efc0e09b43ba9", "score": "0.5920731", "text": "@WebService(name = \"ServicioGeneraPDFConsultaJuridica\", targetNamespace = \"http://servgenpdfconsultaj.ubi.com.co/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ServicioGeneraPDFConsultaJuridica {\n\n\n /**\n * \n * @param entrada\n * @return\n * returns co.com.ubi.servgenpdfconsultaj.SalidaServGenPDFConsultaJuridica\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"obtenerConsultaJuridica\", targetNamespace = \"http://servgenpdfconsultaj.ubi.com.co/\", className = \"co.com.ubi.servgenpdfconsultaj.ObtenerConsultaJuridica\")\n @ResponseWrapper(localName = \"obtenerConsultaJuridicaResponse\", targetNamespace = \"http://servgenpdfconsultaj.ubi.com.co/\", className = \"co.com.ubi.servgenpdfconsultaj.ObtenerConsultaJuridicaResponse\")\n @Action(input = \"http://servgenpdfconsultaj.ubi.com.co/ServicioGeneraPDFConsultaJuridica/obtenerConsultaJuridicaRequest\", output = \"http://servgenpdfconsultaj.ubi.com.co/ServicioGeneraPDFConsultaJuridica/obtenerConsultaJuridicaResponse\")\n public SalidaServGenPDFConsultaJuridica obtenerConsultaJuridica(\n @WebParam(name = \"entrada\", targetNamespace = \"\")\n EntradaServGenPDFConsultaJuridica entrada);\n\n}", "title": "" }, { "docid": "d5c442b8b423ee970402e8b31169de5e", "score": "0.58928674", "text": "@WebService\npublic interface InterfaceC_ToolSideService {\n\n// public String testAction(String name);\n\n public String invokeApplication(String WFMSName, String handle, String spaceInstId,String workItemId)\n throws Exception;\n\n public boolean terminateApp(String WFMSName, String handle, String spaceInstId,String workItemId)\n throws Exception;\n\n public String requestAppInfo(String WFMSName, String handle, String appName);\n}", "title": "" }, { "docid": "2b0fa27807ebcc623731df5029a93853", "score": "0.58873075", "text": "@WebService(name = \"codingService\", targetNamespace = \"urn:Vidal\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface CodingService {\n\n\n /**\n * \n * @param indicationGroupCleanParams\n * @param engine\n * @param cim10Codes\n * @param drugCodes\n * @param drugCursor\n * @param text\n * @return\n * returns com.whatever.CodingService.ArrayOfPostComplementItem\n */\n @WebMethod\n @WebResult(name = \"postComplementItemList\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"postComplementWithDrugCodes\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CodingService.PostComplementWithDrugCodes\")\n @ResponseWrapper(localName = \"postComplementWithDrugCodesResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CodingService.PostComplementWithDrugCodesResponse\")\n public ArrayOfPostComplementItem postComplementWithDrugCodes(\n @WebParam(name = \"text\", targetNamespace = \"urn:Vidal\")\n String text,\n @WebParam(name = \"cim10Codes\", targetNamespace = \"urn:Vidal\")\n ArrayOfString cim10Codes,\n @WebParam(name = \"drugCodes\", targetNamespace = \"urn:Vidal\")\n ArrayOfString drugCodes,\n @WebParam(name = \"engine\", targetNamespace = \"urn:Vidal\")\n SearchEngine engine,\n @WebParam(name = \"drugCursor\", targetNamespace = \"urn:Vidal\")\n PmsiCursors drugCursor,\n @WebParam(name = \"indicationGroupCleanParams\", targetNamespace = \"urn:Vidal\")\n IndicationGroupCleanParams indicationGroupCleanParams);\n\n /**\n * \n * @param prescriptionLines\n * @param indicationGroupCleanParams\n * @param engine\n * @param patient\n * @param drugCursor\n * @param text\n * @return\n * returns com.whatever.CodingService.ArrayOfPostComplementItem\n */\n @WebMethod\n @WebResult(name = \"postComplementItemList\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"postComplementWithDrugs\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CodingService.PostComplementWithDrugs\")\n @ResponseWrapper(localName = \"postComplementWithDrugsResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CodingService.PostComplementWithDrugsResponse\")\n public ArrayOfPostComplementItem postComplementWithDrugs(\n @WebParam(name = \"text\", targetNamespace = \"urn:Vidal\")\n String text,\n @WebParam(name = \"patient\", targetNamespace = \"urn:Vidal\")\n String patient,\n @WebParam(name = \"prescriptionLines\", targetNamespace = \"urn:Vidal\")\n ArrayOfString prescriptionLines,\n @WebParam(name = \"engine\", targetNamespace = \"urn:Vidal\")\n SearchEngine engine,\n @WebParam(name = \"drugCursor\", targetNamespace = \"urn:Vidal\")\n PmsiCursors drugCursor,\n @WebParam(name = \"indicationGroupCleanParams\", targetNamespace = \"urn:Vidal\")\n IndicationGroupCleanParams indicationGroupCleanParams);\n\n /**\n * \n * @param engine\n * @param cim10Codes\n * @param drugCodes\n * @param drugCursor\n * @param text\n * @return\n * returns com.whatever.CodingService.ArrayOfPostControlItem\n */\n @WebMethod\n @WebResult(name = \"postControlItemList\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"postControlWithDrugCodes\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CodingService.PostControlWithDrugCodes\")\n @ResponseWrapper(localName = \"postControlWithDrugCodesResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CodingService.PostControlWithDrugCodesResponse\")\n public ArrayOfPostControlItem postControlWithDrugCodes(\n @WebParam(name = \"text\", targetNamespace = \"urn:Vidal\")\n String text,\n @WebParam(name = \"cim10Codes\", targetNamespace = \"urn:Vidal\")\n ArrayOfString cim10Codes,\n @WebParam(name = \"drugCodes\", targetNamespace = \"urn:Vidal\")\n ArrayOfString drugCodes,\n @WebParam(name = \"engine\", targetNamespace = \"urn:Vidal\")\n SearchEngine engine,\n @WebParam(name = \"drugCursor\", targetNamespace = \"urn:Vidal\")\n PmsiCursors drugCursor);\n\n /**\n * \n * @param prescriptionLines\n * @param engine\n * @param patient\n * @param drugCursor\n * @param text\n * @return\n * returns com.whatever.CodingService.ArrayOfPostControlItem\n */\n @WebMethod\n @WebResult(name = \"postControlItemList\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"postControlWithDrugs\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CodingService.PostControlWithDrugs\")\n @ResponseWrapper(localName = \"postControlWithDrugsResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CodingService.PostControlWithDrugsResponse\")\n public ArrayOfPostControlItem postControlWithDrugs(\n @WebParam(name = \"text\", targetNamespace = \"urn:Vidal\")\n String text,\n @WebParam(name = \"patient\", targetNamespace = \"urn:Vidal\")\n String patient,\n @WebParam(name = \"prescriptionLines\", targetNamespace = \"urn:Vidal\")\n ArrayOfString prescriptionLines,\n @WebParam(name = \"engine\", targetNamespace = \"urn:Vidal\")\n SearchEngine engine,\n @WebParam(name = \"drugCursor\", targetNamespace = \"urn:Vidal\")\n PmsiCursors drugCursor);\n\n /**\n * \n * @param pageNumber\n * @param name\n * @param pageSize\n * @param aggregates\n * @return\n * returns com.whatever.CodingService.PagedResultGroupResultFull\n */\n @WebMethod\n @WebResult(name = \"pagedResultGroupResultFull\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"searchCodingGroupResultFullWithAggregates\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CodingService.SearchCodingGroupResultFullWithAggregates\")\n @ResponseWrapper(localName = \"searchCodingGroupResultFullWithAggregatesResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CodingService.SearchCodingGroupResultFullWithAggregatesResponse\")\n public PagedResultGroupResultFull searchCodingGroupResultFullWithAggregates(\n @WebParam(name = \"name\", targetNamespace = \"urn:Vidal\")\n String name,\n @WebParam(name = \"aggregates\", targetNamespace = \"urn:Vidal\")\n ArrayOfGroupResultAggregate aggregates,\n @WebParam(name = \"pageNumber\", targetNamespace = \"urn:Vidal\")\n Integer pageNumber,\n @WebParam(name = \"pageSize\", targetNamespace = \"urn:Vidal\")\n Integer pageSize);\n\n}", "title": "" }, { "docid": "f5cb5198e3a57dffd32b8e66f2c315ed", "score": "0.5886396", "text": "@WebService(name = \"RecibirMensaje\", targetNamespace = \"http://Mensaje/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface RecibirMensaje {\n\n\n /**\n * \n * @param name\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"operation\", targetNamespace = \"http://Mensaje/\", className = \"Mesaje.Operation\")\n @ResponseWrapper(localName = \"operationResponse\", targetNamespace = \"http://Mensaje/\", className = \"Mesaje.OperationResponse\")\n @Action(input = \"http://Mensaje/RecibirMensaje/operationRequest\", output = \"http://Mensaje/RecibirMensaje/operationResponse\")\n public String operation(\n @WebParam(name = \"name\", targetNamespace = \"\")\n String name);\n\n /**\n * \n * @param name\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"hello\", targetNamespace = \"http://Mensaje/\", className = \"Mesaje.Hello\")\n @ResponseWrapper(localName = \"helloResponse\", targetNamespace = \"http://Mensaje/\", className = \"Mesaje.HelloResponse\")\n @Action(input = \"http://Mensaje/RecibirMensaje/helloRequest\", output = \"http://Mensaje/RecibirMensaje/helloResponse\")\n public String hello(\n @WebParam(name = \"name\", targetNamespace = \"\")\n String name);\n\n /**\n * \n * @param operacion\n * @return\n * returns java.util.List<Mesaje.Venta>\n */\n @WebMethod(operationName = \"OperacionBD\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"OperacionBD\", targetNamespace = \"http://Mensaje/\", className = \"Mesaje.OperacionBD\")\n @ResponseWrapper(localName = \"OperacionBDResponse\", targetNamespace = \"http://Mensaje/\", className = \"Mesaje.OperacionBDResponse\")\n @Action(input = \"http://Mensaje/RecibirMensaje/OperacionBDRequest\", output = \"http://Mensaje/RecibirMensaje/OperacionBDResponse\")\n public List<Venta> operacionBD(\n @WebParam(name = \"Operacion\", targetNamespace = \"\")\n int operacion);\n\n}", "title": "" }, { "docid": "5f7731c4f92f041930a734739652aaa5", "score": "0.58861196", "text": "@WebService(targetNamespace = \"http://www.cvele.com/intersections/ws\", name = \"IntersectionsWS\")\n@XmlSeeAlso({com.cvele.intersections.ws.model.ObjectFactory.class, ObjectFactory.class})\npublic interface IntersectionsWS {\n\n @WebMethod\n @RequestWrapper(localName = \"createIntersection\", targetNamespace = \"http://www.cvele.com/intersections/ws\", className = \"com.cvele.intersections.ws.CreateIntersection\")\n @ResponseWrapper(localName = \"createIntersectionResponse\", targetNamespace = \"http://www.cvele.com/intersections/ws\", className = \"com.cvele.intersections.ws.CreateIntersectionResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public int createIntersection(\n @WebParam(name = \"intersection\", targetNamespace = \"\")\n com.cvele.intersections.ws.model.Intersection intersection\n );\n\n @WebMethod\n @RequestWrapper(localName = \"getIntersectionById\", targetNamespace = \"http://www.cvele.com/intersections/ws\", className = \"com.cvele.intersections.ws.GetIntersectionById\")\n @ResponseWrapper(localName = \"getIntersectionByIdResponse\", targetNamespace = \"http://www.cvele.com/intersections/ws\", className = \"com.cvele.intersections.ws.GetIntersectionByIdResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public com.cvele.intersections.ws.model.Intersection getIntersectionById(\n @WebParam(name = \"id\", targetNamespace = \"\")\n int id\n );\n\n @WebMethod\n @RequestWrapper(localName = \"getAllIntersections\", targetNamespace = \"http://www.cvele.com/intersections/ws\", className = \"com.cvele.intersections.ws.GetAllIntersections\")\n @ResponseWrapper(localName = \"getAllIntersectionsResponse\", targetNamespace = \"http://www.cvele.com/intersections/ws\", className = \"com.cvele.intersections.ws.GetAllIntersectionsResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.util.List<com.cvele.intersections.ws.model.Intersection> getAllIntersections();\n \n @WebMethod\n @RequestWrapper(localName = \"createMongoIntersection\", targetNamespace = \"http://www.cvele.com/intersections/ws\", className = \"com.cvele.intersections.ws.CreateMongoIntersection\")\n @ResponseWrapper(localName = \"createMongoIntersectionResponse\", targetNamespace = \"http://www.cvele.com/intersections/ws\", className = \"com.cvele.intersections.ws.CreateMongoIntersectionResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String createMongoIntersection(\n @WebParam(name = \"mongoIntersection\", targetNamespace = \"\")\n com.cvele.intersections.ws.model.IntersectionMongo mongoIntersection\n );\n}", "title": "" }, { "docid": "af47857eff3ccd9cd88cb2bd66276f7b", "score": "0.58853525", "text": "@WebService(name = \"pokemonInformation\", targetNamespace = \"http://soapService/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface PokemonInformation {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns soapservice.Pokemon\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPokemonInfo\", targetNamespace = \"http://soapService/\", className = \"soapservice.GetPokemonInfo\")\n @ResponseWrapper(localName = \"getPokemonInfoResponse\", targetNamespace = \"http://soapService/\", className = \"soapservice.GetPokemonInfoResponse\")\n @Action(input = \"http://soapService/pokemonInformation/getPokemonInfoRequest\", output = \"http://soapService/pokemonInformation/getPokemonInfoResponse\")\n public Pokemon getPokemonInfo(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n}", "title": "" }, { "docid": "edce0d93eb5f3b1b48c8893774da7424", "score": "0.5884867", "text": "@WebService(name = \"typesmixPort\", targetNamespace = \"http://cixs.test.legstar.com/typesmix\")\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\n@XmlSeeAlso({\r\n com.legstar.test.coxb.typesmix.ObjectFactory.class,\r\n com.legstar.test.cixs.typesmix.ObjectFactory.class\r\n})\r\npublic interface TypesmixPort {\r\n\r\n\r\n /**\r\n * \r\n * @param hostHeader\r\n * @param parameters\r\n * @return\r\n * returns com.legstar.test.cixs.typesmix.TypesmixResponse\r\n * @throws TypesmixFault\r\n */\r\n @WebMethod(action = \"urn:typesmix\")\r\n @WebResult(name = \"TypesmixResponse\", targetNamespace = \"http://cixs.test.legstar.com/typesmix\", partName = \"result\")\r\n public TypesmixResponse typesmix(\r\n @WebParam(name = \"TypesmixRequest\", targetNamespace = \"http://cixs.test.legstar.com/typesmix\", partName = \"parameters\")\r\n TypesmixRequest parameters,\r\n @WebParam(name = \"TypesmixHostHeader\", targetNamespace = \"http://cixs.test.legstar.com/typesmix\", header = true, partName = \"hostHeader\")\r\n TypesmixHostHeader hostHeader)\r\n throws TypesmixFault\r\n ;\r\n\r\n}", "title": "" }, { "docid": "6231b79d755d9329eb7f77f919206fbf", "score": "0.58831", "text": "@WebService(name = \"SendEmailPortType\", targetNamespace = \"http://j2ee.netbeans.org/wsdl/IMapReceiveSMTPSendBP/SendEmail\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\npublic interface SendEmailPortType {\n\n\n /**\n * \n * @param to\n * @param body\n * @param subject\n */\n @WebMethod(operationName = \"SendEmailOperation\")\n @Oneway\n public void sendEmailOperation(\n @WebParam(name = \"to\", partName = \"to\")\n String to,\n @WebParam(name = \"subject\", partName = \"subject\")\n String subject,\n @WebParam(name = \"body\", partName = \"body\")\n String body);\n\n}", "title": "" }, { "docid": "65de550a02826687bd33d180c349beb3", "score": "0.587999", "text": "@WebService(name = \"ProvisioningPortType_v1_0\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface OcpClientWebService {\n\n\n /**\n * 测试链接\n *\n * @param header 请求头部分\n * @param request 请求体部分\n * @return returns com.coldchain.project.ocpcl.webservice.EchoResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"Echo\")\n @WebResult(name = \"EchoResponse\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"response\")\n public EchoResponse echo(\n @WebParam(name = \"Header\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"header\")\n Header header,\n @WebParam(name = \"EchoRequest\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"request\")\n EchoRequest request)\n throws FaultMessage\n ;\n\n /**\n * 获取用户配置\n *\n * @param header 请求头部分\n * @param request 请求体部分\n * @return returns com.coldchain.project.ocpcl.webservice.GetUserProfileResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"GetUserProfile\")\n @WebResult(name = \"GetUserProfileResponse\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"response\")\n public GetUserProfileResponse getUserProfile(\n @WebParam(name = \"Header\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"header\")\n Header header,\n @WebParam(name = \"GetUserProfileRequest\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"request\")\n GetUserProfileRequest request)\n throws FaultMessage\n ;\n\n /**\n * @param header 请求头部分\n * @param request 请求体部分\n * @return returns com.coldchain.project.ocpcl.webservice.OperationResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"OperationPoll\")\n @WebResult(name = \"OperationResponse\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"response\")\n public OperationResponse operationPoll(\n @WebParam(name = \"Header\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"header\")\n Header header,\n @WebParam(name = \"OperationPollRequest\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"request\")\n OperationPollRequest request)\n throws FaultMessage\n ;\n\n /**\n * 激活设备\n *\n * @param header 请求头部分\n * @param request 请求体部分\n * @return returns com.coldchain.project.ocpcl.webservice.OperationResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"OperationActivate\")\n @WebResult(name = \"OperationResponse\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"response\")\n public OperationResponse operationActivate(\n @WebParam(name = \"Header\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"header\")\n Header header,\n @WebParam(name = \"ActivateRequest\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"request\")\n ActivateRequest request)\n throws FaultMessage\n ;\n\n /**\n * 更改设备\n *\n * @param header 请求头部分\n * @param request 请求体部分\n * @return returns com.coldchain.project.ocpcl.webservice.OperationResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"OperationChange\")\n @WebResult(name = \"OperationResponse\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"response\")\n public OperationResponse operationChange(\n @WebParam(name = \"Header\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"header\")\n Header header,\n @WebParam(name = \"ChangeRequest\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"request\")\n ChangeRequest request)\n throws FaultMessage\n ;\n\n /**\n * 停止设备\n *\n * @param header 请求头部分\n * @param request 请求体部分\n * @return returns com.coldchain.project.ocpcl.webservice.OperationResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"OperationSuspend\")\n @WebResult(name = \"OperationResponse\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"response\")\n public OperationResponse operationSuspend(\n @WebParam(name = \"Header\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"header\")\n Header header,\n @WebParam(name = \"SuspendRequest\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"request\")\n SuspendRequest request)\n throws FaultMessage\n ;\n\n /**\n * 恢复设备\n *\n * @param header 请求头部分\n * @param request 请求体部分\n * @return returns com.coldchain.project.ocpcl.webservice.OperationResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"OperationUnsuspend\")\n @WebResult(name = \"OperationResponse\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"response\")\n public OperationResponse operationUnsuspend(\n @WebParam(name = \"Header\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"header\")\n Header header,\n @WebParam(name = \"UnsuspendRequest\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"request\")\n UnsuspendRequest request)\n throws FaultMessage\n ;\n\n /**\n * @param header 请求头部分\n * @param request 请求体部分\n * @return returns com.coldchain.project.ocpcl.webservice.OperationResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"OperationBlock\")\n @WebResult(name = \"OperationResponse\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"response\")\n public OperationResponse operationBlock(\n @WebParam(name = \"Header\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"header\")\n Header header,\n @WebParam(name = \"BlockRequest\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"request\")\n BlockRequest request)\n throws FaultMessage\n ;\n\n /**\n * @param header 请求头部分\n * @param request 请求体部分\n * @return returns com.coldchain.project.ocpcl.webservice.OperationResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"OperationUnblock\")\n @WebResult(name = \"OperationResponse\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"response\")\n public OperationResponse operationUnblock(\n @WebParam(name = \"Header\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"header\")\n Header header,\n @WebParam(name = \"UnblockRequest\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"request\")\n UnblockRequest request)\n throws FaultMessage\n ;\n\n /**\n * 撤销设备\n *\n * @param header 请求头部分\n * @param request 请求体部分\n * @return returns com.coldchain.project.ocpcl.webservice.OperationResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"OperationDeactivate\")\n @WebResult(name = \"OperationResponse\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"response\")\n public OperationResponse operationDeactivate(\n @WebParam(name = \"Header\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"header\")\n Header header,\n @WebParam(name = \"DeactivateRequest\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"request\")\n DeactivateRequest request)\n throws FaultMessage\n ;\n\n /**\n * 替换设备\n *\n * @param header 请求头部分\n * @param request 请求体部分\n * @return returns com.coldchain.project.ocpcl.webservice.OperationResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"OperationSwap\")\n @WebResult(name = \"OperationResponse\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"response\")\n public OperationResponse operationSwap(\n @WebParam(name = \"Header\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"header\")\n Header header,\n @WebParam(name = \"SwapRequest\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"request\")\n SwapRequest request)\n throws FaultMessage\n ;\n\n /**\n * 设备列表\n *\n * @param header 请求头部分\n * @param request 请求体部分\n * @return returns com.coldchain.project.ocpcl.webservice.OperationResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"ListSubscribers\")\n @WebResult(name = \"OperationResponse\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"response\")\n public OperationResponse listSubscribers(\n @WebParam(name = \"Header\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"header\")\n Header header,\n @WebParam(name = \"ListSubscribersRequest\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"request\")\n ListSubscribersRequest request)\n throws FaultMessage\n ;\n\n /**\n * 企业列表\n *\n * @param header 请求头部分\n * @param request 请求体部分\n * @return returns com.coldchain.project.ocpcl.webservice.OperationResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"ListEnterprises\")\n @WebResult(name = \"OperationResponse\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"response\")\n public OperationResponse listEnterprises(\n @WebParam(name = \"Header\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"header\")\n Header header,\n @WebParam(name = \"ListEnterprisesRequest\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"request\")\n ListEnterprisesRequest request)\n throws FaultMessage\n ;\n\n /**\n * 组织列表\n *\n * @param header 请求头部分\n * @param request 请求体部分\n * @return returns com.coldchain.project.ocpcl.webservice.OperationResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"ListOrganizations\")\n @WebResult(name = \"OperationResponse\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"response\")\n public OperationResponse listOrganizations(\n @WebParam(name = \"Header\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"header\")\n Header header,\n @WebParam(name = \"ListOrganizationsRequest\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"request\")\n ListOrganizationsRequest request)\n throws FaultMessage\n ;\n\n /**\n * 账号列表\n *\n * @param header 请求头部分\n * @param request 请求体部分\n * @return returns com.coldchain.project.ocpcl.webservice.OperationResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"ListAccounts\")\n @WebResult(name = \"OperationResponse\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"response\")\n public OperationResponse listAccounts(\n @WebParam(name = \"Header\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"header\")\n Header header,\n @WebParam(name = \"ListAccountsRequest\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"request\")\n ListAccountsRequest request)\n throws FaultMessage\n ;\n\n /**\n * 子账号列表\n *\n * @param header 请求头部分\n * @param request 请求体部分\n * @return returns com.coldchain.project.ocpcl.webservice.OperationResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"ListSubaccounts\")\n @WebResult(name = \"OperationResponse\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"response\")\n public OperationResponse listSubaccounts(\n @WebParam(name = \"Header\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"header\")\n Header header,\n @WebParam(name = \"ListSubaccountsRequest\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"request\")\n ListSubaccountsRequest request)\n throws FaultMessage\n ;\n\n /**\n * 创建组织\n *\n * @param header 请求头部分\n * @param request 请求体部分\n * @return returns com.coldchain.project.ocpcl.webservice.OperationResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"CreateOrganization\")\n @WebResult(name = \"OperationResponse\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"response\")\n public OperationResponse createOrganization(\n @WebParam(name = \"Header\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"header\")\n Header header,\n @WebParam(name = \"CreateOrganizationRequest\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"request\")\n CreateOrganizationRequest request)\n throws FaultMessage\n ;\n\n /**\n * 创建账号\n *\n * @param header 请求头部分\n * @param request 请求体部分\n * @return returns com.coldchain.project.ocpcl.webservice.OperationResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"CreateAccount\")\n @WebResult(name = \"OperationResponse\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"response\")\n public OperationResponse createAccount(\n @WebParam(name = \"Header\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"header\")\n Header header,\n @WebParam(name = \"CreateAccountRequest\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"request\")\n CreateAccountRequest request)\n throws FaultMessage\n ;\n\n /**\n * 创建子账号\n *\n * @param header 请求头部分\n * @param request 请求体部分\n * @return returns com.coldchain.project.ocpcl.webservice.OperationResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"CreateSubaccount\")\n @WebResult(name = \"OperationResponse\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"response\")\n public OperationResponse createSubaccount(\n @WebParam(name = \"Header\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"header\")\n Header header,\n @WebParam(name = \"CreateSubaccountRequest\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"request\")\n CreateSubaccountRequest request)\n throws FaultMessage\n ;\n\n /**\n * 更新组织\n *\n * @param header 请求头部分\n * @param request 请求体部分\n * @return returns com.coldchain.project.ocpcl.webservice.OperationResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"UpdateOrganization\")\n @WebResult(name = \"OperationResponse\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"response\")\n public OperationResponse updateOrganization(\n @WebParam(name = \"Header\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"header\")\n Header header,\n @WebParam(name = \"UpdateOrganizationRequest\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"request\")\n UpdateOrganizationRequest request)\n throws FaultMessage\n ;\n\n /**\n * 更新账号\n *\n * @param header 请求头部分\n * @param request 请求体部分\n * @return returns com.coldchain.project.ocpcl.webservice.OperationResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"UpdateAccount\")\n @WebResult(name = \"OperationResponse\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"response\")\n public OperationResponse updateAccount(\n @WebParam(name = \"Header\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"header\")\n Header header,\n @WebParam(name = \"UpdateAccountRequest\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"request\")\n UpdateAccountRequest request)\n throws FaultMessage\n ;\n\n /**\n * 更新子账号\n *\n * @param header 请求头部分\n * @param request 请求体部分\n * @return returns com.coldchain.project.ocpcl.webservice.OperationResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"UpdateSubaccount\")\n @WebResult(name = \"OperationResponse\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"response\")\n public OperationResponse updateSubaccount(\n @WebParam(name = \"Header\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"header\")\n Header header,\n @WebParam(name = \"UpdateSubaccountRequest\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"request\")\n UpdateSubaccountRequest request)\n throws FaultMessage\n ;\n\n /**\n * 时区列表\n *\n * @param header 请求头部分\n * @param request 请求体部分\n * @return returns com.coldchain.project.ocpcl.webservice.OperationResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"ListZones\")\n @WebResult(name = \"OperationResponse\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"response\")\n public OperationResponse listZones(\n @WebParam(name = \"Header\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"header\")\n Header header,\n @WebParam(name = \"ListZonesRequest\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"request\")\n ListZonesRequest request)\n throws FaultMessage\n ;\n\n /**\n * 列表消息筛选器配置文件\n *\n * @param header 请求头部分\n * @param request 请求体部分\n * @return returns com.coldchain.project.ocpcl.webservice.OperationResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"ListMessageFilterProfiles\")\n @WebResult(name = \"OperationResponse\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"response\")\n public OperationResponse listMessageFilterProfiles(\n @WebParam(name = \"Header\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"header\")\n Header header,\n @WebParam(name = \"ListMessageFilterProfilesRequest\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"request\")\n ListMessageFilterProfilesRequest request)\n throws FaultMessage\n ;\n\n /**\n * 资产类型列表\n *\n * @param header 请求头部分\n * @param request 请求体部分\n * @return returns com.coldchain.project.ocpcl.webservice.OperationResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"ListAssetTypes\")\n @WebResult(name = \"OperationResponse\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"response\")\n public OperationResponse listAssetTypes(\n @WebParam(name = \"Header\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"header\")\n Header header,\n @WebParam(name = \"ListAssetTypesRequest\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"request\")\n ListAssetTypesRequest request)\n throws FaultMessage\n ;\n\n /**\n * 交货计划列表\n *\n * @param header 请求头部分\n * @param request 请求体部分\n * @return returns com.coldchain.project.ocpcl.webservice.OperationResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"ListDeliveryPlans\")\n @WebResult(name = \"OperationResponse\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"response\")\n public OperationResponse listDeliveryPlans(\n @WebParam(name = \"Header\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"header\")\n Header header,\n @WebParam(name = \"ListDeliveryPlansRequest\", targetNamespace = \"http://www.orbcomm.com/wsdl/OrbcommProvisioning-v1.0\", partName = \"request\")\n ListDeliveryPlansRequest request)\n throws FaultMessage\n ;\n\n}", "title": "" }, { "docid": "b1231b9645f0fae566e21c87e3581704", "score": "0.587865", "text": "@WebService(targetNamespace = \"http://service.test/\", name = \"CustomerService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface CustomerService {\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getUserByName\", targetNamespace = \"http://service.test/\", className = \"webserivce.client.GetUserByName\")\n @WebMethod\n @ResponseWrapper(localName = \"getUserByNameResponse\", targetNamespace = \"http://service.test/\", className = \"webserivce.client.GetUserByNameResponse\")\n public webserivce.client.User getUserByName(\n @WebParam(name = \"name\", targetNamespace = \"\")\n java.lang.String name\n ) throws NoSuchCustomerTypeException;\n}", "title": "" }, { "docid": "3ce95eaa1ef596b45390a32c2ab345f8", "score": "0.5878145", "text": "@WebService(targetNamespace = \"http://scatesttool.stockexceptiontestservice\", name = \"StockExceptionTest\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface StockExceptionTest {\n\n @WebMethod\n @RequestWrapper(localName = \"stockQuoteOffer\", targetNamespace = \"http://scatesttool.stockexceptiontestservice\", className = \"com.StockExceptionTest.StockQuoteOffer\")\n @ResponseWrapper(localName = \"stockQuoteOfferResponse\", targetNamespace = \"http://scatesttool.stockexceptiontestservice\", className = \"com.StockExceptionTest.StockQuoteOfferResponse\")\n @WebResult(name = \"stockQuoteOfferReturn\", targetNamespace = \"\")\n public com.StockExceptionTest.StockOffer stockQuoteOffer(\n @WebParam(name = \"input\", targetNamespace = \"\")\n com.StockExceptionTest.StockOffer input\n ) throws InvalidSymbolFault_Exception, MarketClosedFault_Exception;\n}", "title": "" }, { "docid": "5cd54053efa655f68607e1a3fd7cd947", "score": "0.5877662", "text": "@WebService(targetNamespace = \"http://org.jboss.ws/samples/retail/profile\", name = \"ProfileMgmt\")\n@XmlSeeAlso({ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface ProfileMgmt {\n\n @WebMethod\n @WebResult(name = \"getCustomerDiscountResponse\", targetNamespace = \"http://org.jboss.ws/samples/retail/profile\", partName = \"getCustomerDiscountResponse\")\n public DiscountResponse getCustomerDiscount(\n\n @WebParam(partName = \"getCustomerDiscount\", name = \"getCustomerDiscount\", targetNamespace = \"http://org.jboss.ws/samples/retail/profile\")\n DiscountRequest getCustomerDiscount\n );\n}", "title": "" }, { "docid": "02140dadc5ced19e58c40c62d6e6eaa3", "score": "0.58701843", "text": "@WebService(name = \"Listar\", targetNamespace = \"http://ws/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface Listar {\n\n\n /**\n * \n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"listarFicha\", targetNamespace = \"http://ws/\", className = \"ws_client.ListarFicha\")\n @ResponseWrapper(localName = \"listarFichaResponse\", targetNamespace = \"http://ws/\", className = \"ws_client.ListarFichaResponse\")\n @Action(input = \"http://ws/Listar/listarFichaRequest\", output = \"http://ws/Listar/listarFichaResponse\")\n public List<String> listarFicha();\n\n /**\n * \n * @return\n * returns java.util.List<ws_client.Usuario>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"listarUsuario\", targetNamespace = \"http://ws/\", className = \"ws_client.ListarUsuario\")\n @ResponseWrapper(localName = \"listarUsuarioResponse\", targetNamespace = \"http://ws/\", className = \"ws_client.ListarUsuarioResponse\")\n @Action(input = \"http://ws/Listar/listarUsuarioRequest\", output = \"http://ws/Listar/listarUsuarioResponse\")\n public List<Usuario> listarUsuario();\n\n /**\n * \n * @return\n * returns java.util.List<ws_client.Rol>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"listarRol\", targetNamespace = \"http://ws/\", className = \"ws_client.ListarRol\")\n @ResponseWrapper(localName = \"listarRolResponse\", targetNamespace = \"http://ws/\", className = \"ws_client.ListarRolResponse\")\n @Action(input = \"http://ws/Listar/listarRolRequest\", output = \"http://ws/Listar/listarRolResponse\")\n public List<Rol> listarRol();\n\n}", "title": "" }, { "docid": "57fbee8ed2cc83e42277d28c9a049e8c", "score": "0.5869966", "text": "@WebService\n@SOAPBinding(style = Style.RPC) \npublic interface PropertyInterface {\n\n\t/**\n\t * @return String representation of each of the properties and their price\n\t */\n\n\t@WebMethod String getPropertiesAndPrice();\n\n\t/**\n\t * @param propertyName String name of the property being referenced\n\t * @return String representation of the property's timetable for the week\n\t */\n\n\t@WebMethod String getPropertyTimetable(String propertyName);\n\n\t/**\n\t * @param propertyName String name of the property being referenced\n\t * @param day String day of the week\n\t * @param hour int hour in the day\n\t * @return boolean response\n\t */\n\n\t@WebMethod boolean checkPropertyAvailability(String propertyName, String day, int hour);\n\n\t/**\n\t * @param propertyName String name of the property being referenced\n\t * @param day String day of the week\n\t * @param hour int hour in the day\n\t * @param id String id of the request\n\t * @return boolean representing whether the request was successful\n\t * @throws InterruptedException\n\t */\n\n\t@WebMethod boolean makePropertyRequest(String propertyName, String day, int hour, String id) throws InterruptedException;\n\n\t/**\n\t * @param propertyName String name of the property being referenced\n\t * @param day String day of the week\n\t * @param hour int hour in the day\n\t * @param id String id of the request\n\t * @return boolean representing whether the request offer was successful\n\t * @throws InterruptedException\n\t */\n\n//\t@WebMethod boolean makePropertyOffer(String propertyName, String day, in hour, String id, String offer) throws InterruptedException;\n\n\t/**\n\t * @param propertyName String name of the property being referenced\n\t * @param day String day of the week\n\t * @param hour int hour in the day\n\t * @param id String id of the request\n\t * @return boolean representing whether the cancel was successful\n\t */\n\n\t@WebMethod boolean cancelPropertyRequest(String propertyName, String day, int hour, String id);\n}", "title": "" }, { "docid": "4a9bccdb5e4e5bd741d8d852d82653ec", "score": "0.5868427", "text": "@WebService\npublic interface SayHello {\n\n public String sayHello(String name);\n\n}", "title": "" }, { "docid": "ae57623cdde6ef1c2affae61a792b09a", "score": "0.58589745", "text": "@WebService(targetNamespace = \"http://tempuri.org/\", name = \"TunnelServiceSoap\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\npublic interface TunnelServiceSoap {\r\n\r\n @WebResult(name = \"sendSMSResult\", targetNamespace = \"http://tempuri.org/\")\r\n @RequestWrapper(localName = \"sendSMS\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.SendSMS\")\r\n @WebMethod(action = \"http://tempuri.org/sendSMS\")\r\n @ResponseWrapper(localName = \"sendSMSResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.SendSMSResponse\")\r\n public long sendSMS(\r\n @WebParam(name = \"header\", targetNamespace = \"http://tempuri.org/\")\r\n org.tempuri.InfoHeader header,\r\n @WebParam(name = \"sessionId\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String sessionId,\r\n @WebParam(name = \"sender\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String sender,\r\n @WebParam(name = \"smsContent\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String smsContent,\r\n @WebParam(name = \"receiverList\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String receiverList,\r\n @WebParam(name = \"productCode\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String productCode,\r\n @WebParam(name = \"pseudoFlag\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String pseudoFlag\r\n );\r\n}", "title": "" }, { "docid": "5b5947aea08513bfcd99abdf773fb44d", "score": "0.5856767", "text": "public SoapObject getResourcePropertyDocument() throws WSBaseFault, IOException, XmlPullParserException;", "title": "" }, { "docid": "eea2fac779ff2bbe6fb551ad152feacd", "score": "0.58562976", "text": "@WebService(targetNamespace = \"urn:edu.uga.cs.pcf:pcf-process:1.0\", name = \"EmergencyReactionWorkflow\")\n@XmlSeeAlso({ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface EmergencyReactionWorkflow {\n\n @WebResult(name = \"EmergencyReactionWorkflowResponse\", targetNamespace = \"urn:edu.uga.cs.pcf:pcf-process:1.0\", partName = \"payload\")\n @WebMethod(action = \"urn:edu.uga.cs.pcf:pcf-process:1.0/process\")\n public EmergencyReactionWorkflowResponse process(\n @WebParam(partName = \"payload\", name = \"EmergencyReactionWorkflowRequest\", targetNamespace = \"urn:edu.uga.cs.pcf:pcf-process:1.0\")\n EmergencyReactionWorkflowRequest payload\n );\n}", "title": "" }, { "docid": "81ee609283db6c656f28d400c6c30e3e", "score": "0.5843746", "text": "@WebService(name = \"AtendeCliente\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface AtendeCliente {\n\n\n /**\n *\n * @param senha\n * @param xml\n * @param cartaoPostagem\n * @param usuario\n * @param faixaEtiquetas\n * @param idPlpCliente\n * @return\n * returns java.lang.Long\n * @throws AutenticacaoException\n * @throws SigepClienteException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"fechaPlp\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.FechaPlp\")\n @ResponseWrapper(localName = \"fechaPlpResponse\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.FechaPlpResponse\")\n public Long fechaPlp(\n @WebParam(name = \"xml\", targetNamespace = \"\")\n String xml,\n @WebParam(name = \"idPlpCliente\", targetNamespace = \"\")\n Long idPlpCliente,\n @WebParam(name = \"cartaoPostagem\", targetNamespace = \"\")\n String cartaoPostagem,\n @WebParam(name = \"faixaEtiquetas\", targetNamespace = \"\")\n String faixaEtiquetas,\n @WebParam(name = \"usuario\", targetNamespace = \"\")\n String usuario,\n @WebParam(name = \"senha\", targetNamespace = \"\")\n String senha)\n throws AutenticacaoException, SigepClienteException\n ;\n\n /**\n *\n * @param idCartaoPostagem\n * @param senha\n * @param usuario\n * @param idContrato\n * @return\n * returns br.com.correios.webservice.postagem.ClienteERP\n * @throws AutenticacaoException\n * @throws SigepClienteException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"buscaCliente\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.BuscaCliente\")\n @ResponseWrapper(localName = \"buscaClienteResponse\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.BuscaClienteResponse\")\n public ClienteERP buscaCliente(\n @WebParam(name = \"idContrato\", targetNamespace = \"\")\n String idContrato,\n @WebParam(name = \"idCartaoPostagem\", targetNamespace = \"\")\n String idCartaoPostagem,\n @WebParam(name = \"usuario\", targetNamespace = \"\")\n String usuario,\n @WebParam(name = \"senha\", targetNamespace = \"\")\n String senha)\n throws AutenticacaoException, SigepClienteException\n ;\n\n /**\n *\n * @param senha\n * @param usuario\n * @param numeroEtiqueta\n * @param idPlp\n * @return\n * returns boolean\n * @throws AutenticacaoException\n * @throws SigepClienteException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"validaEtiquetaPLP\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.ValidaEtiquetaPLP\")\n @ResponseWrapper(localName = \"validaEtiquetaPLPResponse\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.ValidaEtiquetaPLPResponse\")\n public boolean validaEtiquetaPLP(\n @WebParam(name = \"numeroEtiqueta\", targetNamespace = \"\")\n String numeroEtiqueta,\n @WebParam(name = \"idPlp\", targetNamespace = \"\")\n Long idPlp,\n @WebParam(name = \"usuario\", targetNamespace = \"\")\n String usuario,\n @WebParam(name = \"senha\", targetNamespace = \"\")\n String senha)\n throws AutenticacaoException, SigepClienteException\n ;\n\n /**\n *\n * @param senha\n * @param codAdministrativo\n * @param cepOrigem\n * @param usuario\n * @param numeroServico\n * @param cepDestino\n * @return\n * returns boolean\n * @throws AutenticacaoException\n * @throws SigepClienteException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"verificaDisponibilidadeServico\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.VerificaDisponibilidadeServico\")\n @ResponseWrapper(localName = \"verificaDisponibilidadeServicoResponse\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.VerificaDisponibilidadeServicoResponse\")\n public boolean verificaDisponibilidadeServico(\n @WebParam(name = \"codAdministrativo\", targetNamespace = \"\")\n Integer codAdministrativo,\n @WebParam(name = \"numeroServico\", targetNamespace = \"\")\n String numeroServico,\n @WebParam(name = \"cepOrigem\", targetNamespace = \"\")\n String cepOrigem,\n @WebParam(name = \"cepDestino\", targetNamespace = \"\")\n String cepDestino,\n @WebParam(name = \"usuario\", targetNamespace = \"\")\n String usuario,\n @WebParam(name = \"senha\", targetNamespace = \"\")\n String senha)\n throws AutenticacaoException, SigepClienteException\n ;\n\n /**\n *\n * @param arg1\n * @param arg0\n * @return\n * returns br.com.correios.webservice.postagem.StatusPlp\n * @throws SigepClienteException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getStatusPLP\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.GetStatusPLP\")\n @ResponseWrapper(localName = \"getStatusPLPResponse\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.GetStatusPLPResponse\")\n public StatusPlp getStatusPLP(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n List<ObjetoPostal> arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1)\n throws SigepClienteException\n ;\n\n /**\n *\n * @param senha\n * @param tipoBloqueio\n * @param usuario\n * @param numeroEtiqueta\n * @param acao\n * @param idPlp\n * @return\n * returns java.lang.String\n * @throws AutenticacaoException\n * @throws SigepClienteException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"bloquearObjeto\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.BloquearObjeto\")\n @ResponseWrapper(localName = \"bloquearObjetoResponse\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.BloquearObjetoResponse\")\n public String bloquearObjeto(\n @WebParam(name = \"numeroEtiqueta\", targetNamespace = \"\")\n String numeroEtiqueta,\n @WebParam(name = \"idPlp\", targetNamespace = \"\")\n Long idPlp,\n @WebParam(name = \"tipoBloqueio\", targetNamespace = \"\")\n TipoBloqueio tipoBloqueio,\n @WebParam(name = \"acao\", targetNamespace = \"\")\n Acao acao,\n @WebParam(name = \"usuario\", targetNamespace = \"\")\n String usuario,\n @WebParam(name = \"senha\", targetNamespace = \"\")\n String senha)\n throws AutenticacaoException, SigepClienteException\n ;\n\n /**\n *\n * @param senha\n * @param idServico\n * @param qtdEtiquetas\n * @param usuario\n * @param tipoDestinatario\n * @param identificador\n * @return\n * returns java.lang.String\n * @throws AutenticacaoException\n * @throws SigepClienteException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"solicitaEtiquetas\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.SolicitaEtiquetas\")\n @ResponseWrapper(localName = \"solicitaEtiquetasResponse\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.SolicitaEtiquetasResponse\")\n public String solicitaEtiquetas(\n @WebParam(name = \"tipoDestinatario\", targetNamespace = \"\")\n String tipoDestinatario,\n @WebParam(name = \"identificador\", targetNamespace = \"\")\n String identificador,\n @WebParam(name = \"idServico\", targetNamespace = \"\")\n Long idServico,\n @WebParam(name = \"qtdEtiquetas\", targetNamespace = \"\")\n Integer qtdEtiquetas,\n @WebParam(name = \"usuario\", targetNamespace = \"\")\n String usuario,\n @WebParam(name = \"senha\", targetNamespace = \"\")\n String senha)\n throws AutenticacaoException, SigepClienteException\n ;\n\n /**\n *\n * @param senha\n * @param usuario\n * @return\n * returns java.lang.String\n * @throws AutenticacaoException\n * @throws SigepClienteException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"buscaPagamentoEntrega\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.BuscaPagamentoEntrega\")\n @ResponseWrapper(localName = \"buscaPagamentoEntregaResponse\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.BuscaPagamentoEntregaResponse\")\n public String buscaPagamentoEntrega(\n @WebParam(name = \"usuario\", targetNamespace = \"\")\n String usuario,\n @WebParam(name = \"senha\", targetNamespace = \"\")\n String senha)\n throws AutenticacaoException, SigepClienteException\n ;\n\n /**\n *\n * @param senha\n * @param etiquetas\n * @param usuario\n * @return\n * returns java.util.List<java.lang.Integer>\n * @throws AutenticacaoException\n * @throws SigepClienteException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"geraDigitoVerificadorEtiquetas\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.GeraDigitoVerificadorEtiquetas\")\n @ResponseWrapper(localName = \"geraDigitoVerificadorEtiquetasResponse\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.GeraDigitoVerificadorEtiquetasResponse\")\n public List<Integer> geraDigitoVerificadorEtiquetas(\n @WebParam(name = \"etiquetas\", targetNamespace = \"\")\n List<String> etiquetas,\n @WebParam(name = \"usuario\", targetNamespace = \"\")\n String usuario,\n @WebParam(name = \"senha\", targetNamespace = \"\")\n String senha)\n throws AutenticacaoException, SigepClienteException\n ;\n\n /**\n *\n * @param senha\n * @param usuario\n * @param numeroEtiqueta\n * @param idPlp\n * @return\n * returns java.lang.Boolean\n * @throws AutenticacaoException\n * @throws SigepClienteException\n * @throws Exception_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"cancelarObjeto\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.CancelarObjeto\")\n @ResponseWrapper(localName = \"cancelarObjetoResponse\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.CancelarObjetoResponse\")\n public Boolean cancelarObjeto(\n @WebParam(name = \"idPlp\", targetNamespace = \"\")\n Long idPlp,\n @WebParam(name = \"numeroEtiqueta\", targetNamespace = \"\")\n String numeroEtiqueta,\n @WebParam(name = \"usuario\", targetNamespace = \"\")\n String usuario,\n @WebParam(name = \"senha\", targetNamespace = \"\")\n String senha)\n throws AutenticacaoException, Exception_Exception, SigepClienteException\n ;\n\n /**\n *\n * @param listaEtiquetas\n * @param senha\n * @param xml\n * @param cartaoPostagem\n * @param usuario\n * @param idPlpCliente\n * @return\n * returns java.lang.Long\n * @throws AutenticacaoException\n * @throws SigepClienteException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"fechaPlpVariosServicos\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.FechaPlpVariosServicos\")\n @ResponseWrapper(localName = \"fechaPlpVariosServicosResponse\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.FechaPlpVariosServicosResponse\")\n public Long fechaPlpVariosServicos(\n @WebParam(name = \"xml\", targetNamespace = \"\")\n String xml,\n @WebParam(name = \"idPlpCliente\", targetNamespace = \"\")\n Long idPlpCliente,\n @WebParam(name = \"cartaoPostagem\", targetNamespace = \"\")\n String cartaoPostagem,\n @WebParam(name = \"listaEtiquetas\", targetNamespace = \"\")\n List<String> listaEtiquetas,\n @WebParam(name = \"usuario\", targetNamespace = \"\")\n String usuario,\n @WebParam(name = \"senha\", targetNamespace = \"\")\n String senha)\n throws AutenticacaoException, SigepClienteException\n ;\n\n /**\n *\n * @param senha\n * @param codAdministrativo\n * @param codigoServico\n * @param cepDestinatario\n * @param usuario\n * @param coleta\n * @return\n * returns java.lang.Boolean\n * @throws AutenticacaoException\n * @throws SigepClienteException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"validarPostagemReversa\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.ValidarPostagemReversa\")\n @ResponseWrapper(localName = \"validarPostagemReversaResponse\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.ValidarPostagemReversaResponse\")\n public Boolean validarPostagemReversa(\n @WebParam(name = \"codAdministrativo\", targetNamespace = \"\")\n Integer codAdministrativo,\n @WebParam(name = \"codigoServico\", targetNamespace = \"\")\n Integer codigoServico,\n @WebParam(name = \"cepDestinatario\", targetNamespace = \"\")\n String cepDestinatario,\n @WebParam(name = \"coleta\", targetNamespace = \"\")\n ColetaReversaTO coleta,\n @WebParam(name = \"usuario\", targetNamespace = \"\")\n String usuario,\n @WebParam(name = \"senha\", targetNamespace = \"\")\n String senha)\n throws AutenticacaoException, SigepClienteException\n ;\n\n /**\n *\n * @param cliente\n * @param unidadePostagem\n * @param senha\n * @param cartao\n * @param numero\n * @param servicosAdicionais\n * @param diretoria\n * @param usuario\n * @param servico\n * @return\n * returns boolean\n * @throws AutenticacaoException\n * @throws SigepClienteException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"validaPlp\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.ValidaPlp\")\n @ResponseWrapper(localName = \"validaPlpResponse\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.ValidaPlpResponse\")\n public boolean validaPlp(\n @WebParam(name = \"cliente\", targetNamespace = \"\")\n long cliente,\n @WebParam(name = \"numero\", targetNamespace = \"\")\n String numero,\n @WebParam(name = \"diretoria\", targetNamespace = \"\")\n long diretoria,\n @WebParam(name = \"cartao\", targetNamespace = \"\")\n String cartao,\n @WebParam(name = \"unidadePostagem\", targetNamespace = \"\")\n String unidadePostagem,\n @WebParam(name = \"servico\", targetNamespace = \"\")\n Long servico,\n @WebParam(name = \"servicosAdicionais\", targetNamespace = \"\")\n List<String> servicosAdicionais,\n @WebParam(name = \"usuario\", targetNamespace = \"\")\n String usuario,\n @WebParam(name = \"senha\", targetNamespace = \"\")\n String senha)\n throws AutenticacaoException, SigepClienteException\n ;\n\n /**\n *\n * @param senha\n * @param tipo\n * @param idPostagem\n * @param codAdministrativo\n * @param usuario\n * @return\n * returns br.com.correios.webservice.postagem.RetornoCancelamentoTO\n * @throws AutenticacaoException\n * @throws SigepClienteException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"cancelarPedidoScol\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.CancelarPedidoScol\")\n @ResponseWrapper(localName = \"cancelarPedidoScolResponse\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.CancelarPedidoScolResponse\")\n public RetornoCancelamentoTO cancelarPedidoScol(\n @WebParam(name = \"codAdministrativo\", targetNamespace = \"\")\n Integer codAdministrativo,\n @WebParam(name = \"idPostagem\", targetNamespace = \"\")\n String idPostagem,\n @WebParam(name = \"tipo\", targetNamespace = \"\")\n String tipo,\n @WebParam(name = \"usuario\", targetNamespace = \"\")\n String usuario,\n @WebParam(name = \"senha\", targetNamespace = \"\")\n String senha)\n throws AutenticacaoException, SigepClienteException\n ;\n\n /**\n *\n * @return\n * returns java.util.List<br.com.correios.webservice.postagem.EmbalagemLRSMaster>\n * @throws SigepClienteException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"obterEmbalagemLRS\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.ObterEmbalagemLRS\")\n @ResponseWrapper(localName = \"obterEmbalagemLRSResponse\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.ObterEmbalagemLRSResponse\")\n public List<EmbalagemLRSMaster> obterEmbalagemLRS()\n throws SigepClienteException\n ;\n\n /**\n *\n * @param senha\n * @param codAdministrativo\n * @param codigoServico\n * @param cepDestinatario\n * @param usuario\n * @param coleta\n * @return\n * returns java.lang.Boolean\n * @throws AutenticacaoException\n * @throws SigepClienteException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"validarPostagemSimultanea\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.ValidarPostagemSimultanea\")\n @ResponseWrapper(localName = \"validarPostagemSimultaneaResponse\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.ValidarPostagemSimultaneaResponse\")\n public Boolean validarPostagemSimultanea(\n @WebParam(name = \"codAdministrativo\", targetNamespace = \"\")\n Integer codAdministrativo,\n @WebParam(name = \"codigoServico\", targetNamespace = \"\")\n Integer codigoServico,\n @WebParam(name = \"cepDestinatario\", targetNamespace = \"\")\n String cepDestinatario,\n @WebParam(name = \"coleta\", targetNamespace = \"\")\n ColetaSimultaneaTO coleta,\n @WebParam(name = \"usuario\", targetNamespace = \"\")\n String usuario,\n @WebParam(name = \"senha\", targetNamespace = \"\")\n String senha)\n throws AutenticacaoException, SigepClienteException\n ;\n\n /**\n *\n * @param idCartaoPostagem\n * @param senha\n * @param usuario\n * @param idContrato\n * @return\n * returns java.util.List<br.com.correios.webservice.postagem.ServicoERP>\n * @throws AutenticacaoException\n * @throws SigepClienteException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"buscaServicos\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.BuscaServicos\")\n @ResponseWrapper(localName = \"buscaServicosResponse\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.BuscaServicosResponse\")\n public List<ServicoERP> buscaServicos(\n @WebParam(name = \"idContrato\", targetNamespace = \"\")\n String idContrato,\n @WebParam(name = \"idCartaoPostagem\", targetNamespace = \"\")\n String idCartaoPostagem,\n @WebParam(name = \"usuario\", targetNamespace = \"\")\n String usuario,\n @WebParam(name = \"senha\", targetNamespace = \"\")\n String senha)\n throws AutenticacaoException, SigepClienteException\n ;\n\n /**\n *\n * @param senha\n * @param codAdministrativo\n * @param xml\n * @param usuario\n * @return\n * returns java.lang.String\n * @throws AutenticacaoException\n * @throws SigepClienteException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"solicitarPostagemScol\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.SolicitarPostagemScol\")\n @ResponseWrapper(localName = \"solicitarPostagemScolResponse\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.SolicitarPostagemScolResponse\")\n public String solicitarPostagemScol(\n @WebParam(name = \"codAdministrativo\", targetNamespace = \"\")\n Integer codAdministrativo,\n @WebParam(name = \"xml\", targetNamespace = \"\")\n String xml,\n @WebParam(name = \"usuario\", targetNamespace = \"\")\n String usuario,\n @WebParam(name = \"senha\", targetNamespace = \"\")\n String senha)\n throws AutenticacaoException, SigepClienteException\n ;\n\n /**\n *\n * @param senha\n * @param numeroCartaoPostagem\n * @param usuario\n * @return\n * returns br.com.correios.webservice.postagem.StatusCartao\n * @throws AutenticacaoException\n * @throws SigepClienteException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getStatusCartaoPostagem\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.GetStatusCartaoPostagem\")\n @ResponseWrapper(localName = \"getStatusCartaoPostagemResponse\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.GetStatusCartaoPostagemResponse\")\n public StatusCartao getStatusCartaoPostagem(\n @WebParam(name = \"numeroCartaoPostagem\", targetNamespace = \"\")\n String numeroCartaoPostagem,\n @WebParam(name = \"usuario\", targetNamespace = \"\")\n String usuario,\n @WebParam(name = \"senha\", targetNamespace = \"\")\n String senha)\n throws AutenticacaoException, SigepClienteException\n ;\n\n /**\n *\n * @param idPlpMaster\n * @param senha\n * @param numEtiqueta\n * @param usuario\n * @return\n * returns java.lang.String\n * @throws AutenticacaoException\n * @throws SigepClienteException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"solicitaPLP\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.SolicitaPLP\")\n @ResponseWrapper(localName = \"solicitaPLPResponse\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.SolicitaPLPResponse\")\n public String solicitaPLP(\n @WebParam(name = \"idPlpMaster\", targetNamespace = \"\")\n Long idPlpMaster,\n @WebParam(name = \"numEtiqueta\", targetNamespace = \"\")\n String numEtiqueta,\n @WebParam(name = \"usuario\", targetNamespace = \"\")\n String usuario,\n @WebParam(name = \"senha\", targetNamespace = \"\")\n String senha)\n throws AutenticacaoException, SigepClienteException\n ;\n\n /**\n *\n * @param idPlpMaster\n * @param senha\n * @param usuario\n * @return\n * returns java.lang.String\n * @throws AutenticacaoException\n * @throws SigepClienteException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"solicitaXmlPlp\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.SolicitaXmlPlp\")\n @ResponseWrapper(localName = \"solicitaXmlPlpResponse\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.SolicitaXmlPlpResponse\")\n public String solicitaXmlPlp(\n @WebParam(name = \"idPlpMaster\", targetNamespace = \"\")\n Long idPlpMaster,\n @WebParam(name = \"usuario\", targetNamespace = \"\")\n String usuario,\n @WebParam(name = \"senha\", targetNamespace = \"\")\n String senha)\n throws AutenticacaoException, SigepClienteException\n ;\n\n /**\n *\n * @param senha\n * @param numero\n * @param diretoria\n * @param usuario\n * @return\n * returns br.com.correios.webservice.postagem.ContratoERP\n * @throws AutenticacaoException\n * @throws SigepClienteException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"buscaContrato\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.BuscaContrato\")\n @ResponseWrapper(localName = \"buscaContratoResponse\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.BuscaContratoResponse\")\n public ContratoERP buscaContrato(\n @WebParam(name = \"numero\", targetNamespace = \"\")\n String numero,\n @WebParam(name = \"diretoria\", targetNamespace = \"\")\n long diretoria,\n @WebParam(name = \"usuario\", targetNamespace = \"\")\n String usuario,\n @WebParam(name = \"senha\", targetNamespace = \"\")\n String senha)\n throws AutenticacaoException, SigepClienteException\n ;\n\n /**\n *\n * @param senhaSro\n * @param tipoConsulta\n * @param listaObjetos\n * @param usuarioSro\n * @param tipoResultado\n * @return\n * returns java.lang.String\n * @throws SigepClienteException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"consultaSRO\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.ConsultaSRO\")\n @ResponseWrapper(localName = \"consultaSROResponse\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.ConsultaSROResponse\")\n public String consultaSRO(\n @WebParam(name = \"listaObjetos\", targetNamespace = \"\")\n List<String> listaObjetos,\n @WebParam(name = \"tipoConsulta\", targetNamespace = \"\")\n String tipoConsulta,\n @WebParam(name = \"tipoResultado\", targetNamespace = \"\")\n String tipoResultado,\n @WebParam(name = \"usuarioSro\", targetNamespace = \"\")\n String usuarioSro,\n @WebParam(name = \"senhaSro\", targetNamespace = \"\")\n String senhaSro)\n throws SigepClienteException\n ;\n\n /**\n *\n * @param senha\n * @param cnpjCliente\n * @param usuario\n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n * @throws AutenticacaoException\n * @throws SigepClienteException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"obterClienteAtualizacao\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.ObterClienteAtualizacao\")\n @ResponseWrapper(localName = \"obterClienteAtualizacaoResponse\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.ObterClienteAtualizacaoResponse\")\n public XMLGregorianCalendar obterClienteAtualizacao(\n @WebParam(name = \"cnpjCliente\", targetNamespace = \"\")\n String cnpjCliente,\n @WebParam(name = \"usuario\", targetNamespace = \"\")\n String usuario,\n @WebParam(name = \"senha\", targetNamespace = \"\")\n String senha)\n throws AutenticacaoException, SigepClienteException\n ;\n\n /**\n *\n * @param senha\n * @param codAdministrativo\n * @param usuario\n * @return\n * returns java.lang.Boolean\n * @throws AutenticacaoException\n * @throws SigepClienteException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"integrarUsuarioScol\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.IntegrarUsuarioScol\")\n @ResponseWrapper(localName = \"integrarUsuarioScolResponse\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.IntegrarUsuarioScolResponse\")\n public Boolean integrarUsuarioScol(\n @WebParam(name = \"codAdministrativo\", targetNamespace = \"\")\n Integer codAdministrativo,\n @WebParam(name = \"usuario\", targetNamespace = \"\")\n String usuario,\n @WebParam(name = \"senha\", targetNamespace = \"\")\n String senha)\n throws AutenticacaoException, SigepClienteException\n ;\n\n /**\n *\n * @param cep\n * @return\n * returns br.com.correios.webservice.postagem.EnderecoERP\n * @throws SigepClienteException\n * @throws SQLException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"consultaCEP\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.ConsultaCEP\")\n @ResponseWrapper(localName = \"consultaCEPResponse\", targetNamespace = \"http://cliente.bean.master.sigep.bsb.correios.com.br/\", className = \"br.com.correios.webservice.postagem.ConsultaCEPResponse\")\n public EnderecoERP consultaCEP(\n @WebParam(name = \"cep\", targetNamespace = \"\")\n String cep)\n throws SQLException_Exception, SigepClienteException\n ;\n\n}", "title": "" }, { "docid": "bc854a0bca9242fa0ae4e685b10858fe", "score": "0.5840312", "text": "@WebService(name = \"ToystoreIF\", targetNamespace = \"http://com.serviceif.daragh/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ToystoreIF {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns boolean\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"update\", targetNamespace = \"http://com.serviceif.daragh/\", className = \"daragh.serviceif.com.Update\")\n @ResponseWrapper(localName = \"updateResponse\", targetNamespace = \"http://com.serviceif.daragh/\", className = \"daragh.serviceif.com.UpdateResponse\")\n @Action(input = \"http://com.serviceif.daragh/ToystoreIF/updateRequest\", output = \"http://com.serviceif.daragh/ToystoreIF/updateResponse\")\n public boolean update(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n List<String> arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns boolean\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"delete\", targetNamespace = \"http://com.serviceif.daragh/\", className = \"daragh.serviceif.com.Delete\")\n @ResponseWrapper(localName = \"deleteResponse\", targetNamespace = \"http://com.serviceif.daragh/\", className = \"daragh.serviceif.com.DeleteResponse\")\n @Action(input = \"http://com.serviceif.daragh/ToystoreIF/deleteRequest\", output = \"http://com.serviceif.daragh/ToystoreIF/deleteResponse\")\n public boolean delete(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @return\n * returns java.util.List<daragh.serviceif.com.StockItem>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"read\", targetNamespace = \"http://com.serviceif.daragh/\", className = \"daragh.serviceif.com.Read\")\n @ResponseWrapper(localName = \"readResponse\", targetNamespace = \"http://com.serviceif.daragh/\", className = \"daragh.serviceif.com.ReadResponse\")\n @Action(input = \"http://com.serviceif.daragh/ToystoreIF/readRequest\", output = \"http://com.serviceif.daragh/ToystoreIF/readResponse\")\n public List<StockItem> read();\n\n /**\n * \n * @param arg0\n * @return\n * returns boolean\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"create\", targetNamespace = \"http://com.serviceif.daragh/\", className = \"daragh.serviceif.com.Create\")\n @ResponseWrapper(localName = \"createResponse\", targetNamespace = \"http://com.serviceif.daragh/\", className = \"daragh.serviceif.com.CreateResponse\")\n @Action(input = \"http://com.serviceif.daragh/ToystoreIF/createRequest\", output = \"http://com.serviceif.daragh/ToystoreIF/createResponse\")\n public boolean create(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n List<String> arg0);\n\n}", "title": "" }, { "docid": "201ee72279855eb9962b40655c49567d", "score": "0.5826382", "text": "@WebService(name = \"Service1Soap\", targetNamespace = \"http://tempuri.org/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface Service1Soap {\n\n\n /**\n * \n * @param b\n * @param a\n * @return\n * returns int\n */\n @WebMethod(operationName = \"Addition\", action = \"http://tempuri.org/Addition\")\n @WebResult(name = \"AdditionResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"Addition\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.Addition\")\n @ResponseWrapper(localName = \"AdditionResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.AdditionResponse\")\n public int addition(\n @WebParam(name = \"a\", targetNamespace = \"http://tempuri.org/\")\n int a,\n @WebParam(name = \"b\", targetNamespace = \"http://tempuri.org/\")\n int b);\n\n /**\n * \n * @param b\n * @param a\n * @return\n * returns int\n */\n @WebMethod(operationName = \"Product\", action = \"http://tempuri.org/Product\")\n @WebResult(name = \"ProductResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"Product\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.Product\")\n @ResponseWrapper(localName = \"ProductResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.ProductResponse\")\n public int product(\n @WebParam(name = \"a\", targetNamespace = \"http://tempuri.org/\")\n int a,\n @WebParam(name = \"b\", targetNamespace = \"http://tempuri.org/\")\n int b);\n\n}", "title": "" }, { "docid": "97cec320bb059c54a250d820de681e5d", "score": "0.581669", "text": "@WebService(name = \"FPT50HandprintService\", targetNamespace = \"http://xckyservice.hisign.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface FPT50HandprintService {\n\n\n /**\n * \n * @param xckybh\n * @param userID\n * @param llHitResultdh\n * @param password\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"sendLLHitResult\", targetNamespace = \"http://xckyservice.hisign.com/\", className = \"nirvana.hall.webservice.survey.gz.client.SendLLHitResult\")\n @ResponseWrapper(localName = \"sendLLHitResultResponse\", targetNamespace = \"http://xckyservice.hisign.com/\", className = \"nirvana.hall.webservice.survey.gz.client.SendLLHitResultResponse\")\n public String sendLLHitResult(\n @WebParam(name = \"userID\", targetNamespace = \"\")\n String userID,\n @WebParam(name = \"password\", targetNamespace = \"\")\n String password,\n @WebParam(name = \"xckybh\", targetNamespace = \"\")\n String xckybh,\n @WebParam(name = \"LLHitResultdh\", targetNamespace = \"\")\n DataHandler llHitResultdh);\n\n /**\n * \n * @param xckybh\n * @param userID\n * @param ks\n * @param jssj\n * @param kssj\n * @param js\n * @param asjfsddXzqhdm\n * @param password\n * @param zzhwlx\n * @return\n * returns javax.activation.DataHandler\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getFingerPrintList\", targetNamespace = \"http://xckyservice.hisign.com/\", className = \"nirvana.hall.webservice.survey.gz.client.GetFingerPrintList\")\n @ResponseWrapper(localName = \"getFingerPrintListResponse\", targetNamespace = \"http://xckyservice.hisign.com/\", className = \"nirvana.hall.webservice.survey.gz.client.GetFingerPrintListResponse\")\n public DataHandler getFingerPrintList(\n @WebParam(name = \"userID\", targetNamespace = \"\")\n String userID,\n @WebParam(name = \"password\", targetNamespace = \"\")\n String password,\n @WebParam(name = \"asjfsdd_xzqhdm\", targetNamespace = \"\")\n String asjfsddXzqhdm,\n @WebParam(name = \"zzhwlx\", targetNamespace = \"\")\n String zzhwlx,\n @WebParam(name = \"xckybh\", targetNamespace = \"\")\n String xckybh,\n @WebParam(name = \"kssj\", targetNamespace = \"\")\n String kssj,\n @WebParam(name = \"jssj\", targetNamespace = \"\")\n String jssj,\n @WebParam(name = \"ks\", targetNamespace = \"\")\n int ks,\n @WebParam(name = \"js\", targetNamespace = \"\")\n int js);\n\n /**\n * \n * @param xckybh\n * @param userID\n * @param password\n * @param ltHitResultdh\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"sendLTHitResult\", targetNamespace = \"http://xckyservice.hisign.com/\", className = \"nirvana.hall.webservice.survey.gz.client.SendLTHitResult\")\n @ResponseWrapper(localName = \"sendLTHitResultResponse\", targetNamespace = \"http://xckyservice.hisign.com/\", className = \"nirvana.hall.webservice.survey.gz.client.SendLTHitResultResponse\")\n public String sendLTHitResult(\n @WebParam(name = \"userID\", targetNamespace = \"\")\n String userID,\n @WebParam(name = \"password\", targetNamespace = \"\")\n String password,\n @WebParam(name = \"xckybh\", targetNamespace = \"\")\n String xckybh,\n @WebParam(name = \"LTHitResultdh\", targetNamespace = \"\")\n DataHandler ltHitResultdh);\n\n /**\n * \n * @param xcwzbh\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"cs\", targetNamespace = \"http://xckyservice.hisign.com/\", className = \"nirvana.hall.webservice.survey.gz.client.Cs\")\n @ResponseWrapper(localName = \"csResponse\", targetNamespace = \"http://xckyservice.hisign.com/\", className = \"nirvana.hall.webservice.survey.gz.client.CsResponse\")\n public String cs(\n @WebParam(name = \"xcwzbh\", targetNamespace = \"\")\n String xcwzbh);\n\n /**\n * \n * @param xckybh\n * @param userID\n * @param password\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getReceptionNo\", targetNamespace = \"http://xckyservice.hisign.com/\", className = \"nirvana.hall.webservice.survey.gz.client.GetReceptionNo\")\n @ResponseWrapper(localName = \"getReceptionNoResponse\", targetNamespace = \"http://xckyservice.hisign.com/\", className = \"nirvana.hall.webservice.survey.gz.client.GetReceptionNoResponse\")\n public String getReceptionNo(\n @WebParam(name = \"userID\", targetNamespace = \"\")\n String userID,\n @WebParam(name = \"password\", targetNamespace = \"\")\n String password,\n @WebParam(name = \"xckybh\", targetNamespace = \"\")\n String xckybh);\n\n /**\n * \n * @param modiFingerPrint\n * @param xckybh\n * @param userID\n * @param password\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"sendModiFingerPrint\", targetNamespace = \"http://xckyservice.hisign.com/\", className = \"nirvana.hall.webservice.survey.gz.client.SendModiFingerPrint\")\n @ResponseWrapper(localName = \"sendModiFingerPrintResponse\", targetNamespace = \"http://xckyservice.hisign.com/\", className = \"nirvana.hall.webservice.survey.gz.client.SendModiFingerPrintResponse\")\n public String sendModiFingerPrint(\n @WebParam(name = \"userID\", targetNamespace = \"\")\n String userID,\n @WebParam(name = \"password\", targetNamespace = \"\")\n String password,\n @WebParam(name = \"xckybh\", targetNamespace = \"\")\n String xckybh,\n @WebParam(name = \"modiFingerPrint\", targetNamespace = \"\")\n DataHandler modiFingerPrint);\n\n /**\n * \n * @param xckybh\n * @param userID\n * @param password\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getCaseNo\", targetNamespace = \"http://xckyservice.hisign.com/\", className = \"nirvana.hall.webservice.survey.gz.client.GetCaseNo\")\n @ResponseWrapper(localName = \"getCaseNoResponse\", targetNamespace = \"http://xckyservice.hisign.com/\", className = \"nirvana.hall.webservice.survey.gz.client.GetCaseNoResponse\")\n public String getCaseNo(\n @WebParam(name = \"userID\", targetNamespace = \"\")\n String userID,\n @WebParam(name = \"password\", targetNamespace = \"\")\n String password,\n @WebParam(name = \"xckybh\", targetNamespace = \"\")\n String xckybh);\n\n /**\n * \n * @param userID\n * @param password\n * @param xcwzbh\n * @return\n * returns javax.activation.DataHandler\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getFingerPrint\", targetNamespace = \"http://xckyservice.hisign.com/\", className = \"nirvana.hall.webservice.survey.gz.client.GetFingerPrint\")\n @ResponseWrapper(localName = \"getFingerPrintResponse\", targetNamespace = \"http://xckyservice.hisign.com/\", className = \"nirvana.hall.webservice.survey.gz.client.GetFingerPrintResponse\")\n public DataHandler getFingerPrint(\n @WebParam(name = \"userID\", targetNamespace = \"\")\n String userID,\n @WebParam(name = \"password\", targetNamespace = \"\")\n String password,\n @WebParam(name = \"xcwzbh\", targetNamespace = \"\")\n String xcwzbh);\n\n /**\n * \n * @param userID\n * @param resultType\n * @param password\n * @param xcwzbh\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"sendFBUseCondition\", targetNamespace = \"http://xckyservice.hisign.com/\", className = \"nirvana.hall.webservice.survey.gz.client.SendFBUseCondition\")\n @ResponseWrapper(localName = \"sendFBUseConditionResponse\", targetNamespace = \"http://xckyservice.hisign.com/\", className = \"nirvana.hall.webservice.survey.gz.client.SendFBUseConditionResponse\")\n public String sendFBUseCondition(\n @WebParam(name = \"userID\", targetNamespace = \"\")\n String userID,\n @WebParam(name = \"password\", targetNamespace = \"\")\n String password,\n @WebParam(name = \"xcwzbh\", targetNamespace = \"\")\n String xcwzbh,\n @WebParam(name = \"resultType\", targetNamespace = \"\")\n String resultType);\n\n /**\n * \n * @param xckybh\n * @param userID\n * @param jssj\n * @param kssj\n * @param asjfsddXzqhdm\n * @param password\n * @param zzhwlx\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getFingerPrintCount\", targetNamespace = \"http://xckyservice.hisign.com/\", className = \"nirvana.hall.webservice.survey.gz.client.GetFingerPrintCount\")\n @ResponseWrapper(localName = \"getFingerPrintCountResponse\", targetNamespace = \"http://xckyservice.hisign.com/\", className = \"nirvana.hall.webservice.survey.gz.client.GetFingerPrintCountResponse\")\n public String getFingerPrintCount(\n @WebParam(name = \"userID\", targetNamespace = \"\")\n String userID,\n @WebParam(name = \"password\", targetNamespace = \"\")\n String password,\n @WebParam(name = \"asjfsdd_xzqhdm\", targetNamespace = \"\")\n String asjfsddXzqhdm,\n @WebParam(name = \"zzhwlx\", targetNamespace = \"\")\n String zzhwlx,\n @WebParam(name = \"xckybh\", targetNamespace = \"\")\n String xckybh,\n @WebParam(name = \"kssj\", targetNamespace = \"\")\n String kssj,\n @WebParam(name = \"jssj\", targetNamespace = \"\")\n String jssj);\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSystemDateTime\", targetNamespace = \"http://xckyservice.hisign.com/\", className = \"nirvana.hall.webservice.survey.gz.client.GetSystemDateTime\")\n @ResponseWrapper(localName = \"getSystemDateTimeResponse\", targetNamespace = \"http://xckyservice.hisign.com/\", className = \"nirvana.hall.webservice.survey.gz.client.GetSystemDateTimeResponse\")\n public String getSystemDateTime();\n\n}", "title": "" }, { "docid": "07590563acb5661d0a30d22a52d6f7ae", "score": "0.58144027", "text": "@WebService(targetNamespace = \"http://www.example.org/JdeAndLesLoseValidity/\", name = \"JdeAndLesLoseValidity\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface JdeAndLesLoseValidity {\n\n @WebResult(name = \"out\", targetNamespace = \"\")\n @RequestWrapper(localName = \"JdeAndLesLoseValidity\", targetNamespace = \"http://www.example.org/JdeAndLesLoseValidity/\", className = \"com.haier.stock.canceltidan.JdeAndLesLoseValidity_Type\")\n @WebMethod(operationName = \"JdeAndLesLoseValidity\", action = \"http://www.example.org/JdeAndLesLoseValidity/JdeAndLesLoseValidity\")\n @ResponseWrapper(localName = \"JdeAndLesLoseValidityResponse\", targetNamespace = \"http://www.example.org/JdeAndLesLoseValidity/\", className = \"com.haier.stock.canceltidan.JdeAndLesLoseValidityResponse\")\n public JdeAndLesLoseValidityResponse.Out jdeAndLesLoseValidity(\n @WebParam(name = \"in\", targetNamespace = \"\")\n JdeAndLesLoseValidity_Type.In in\n );\n}", "title": "" }, { "docid": "99e63459d8ec8cd9fffc8d524a4d55a9", "score": "0.58118594", "text": "@WebService(name = \"userbean\", targetNamespace = \"http://ejb/\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface Userbean {\r\n\r\n\r\n /**\r\n * \r\n * @param arg0\r\n */\r\n @WebMethod\r\n @RequestWrapper(localName = \"persist\", targetNamespace = \"http://ejb/\", className = \"ejb.Persist\")\r\n @ResponseWrapper(localName = \"persistResponse\", targetNamespace = \"http://ejb/\", className = \"ejb.PersistResponse\")\r\n @Action(input = \"http://ejb/userbean/persistRequest\", output = \"http://ejb/userbean/persistResponse\")\r\n public void persist(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n Object arg0);\r\n\r\n /**\r\n * \r\n * @param arg3\r\n * @param arg2\r\n * @param arg5\r\n * @param arg4\r\n * @param arg1\r\n * @param arg0\r\n * @param arg10\r\n * @param arg11\r\n * @param arg7\r\n * @param arg6\r\n * @param arg9\r\n * @param arg8\r\n */\r\n @WebMethod\r\n @RequestWrapper(localName = \"registration\", targetNamespace = \"http://ejb/\", className = \"ejb.Registration\")\r\n @ResponseWrapper(localName = \"registrationResponse\", targetNamespace = \"http://ejb/\", className = \"ejb.RegistrationResponse\")\r\n @Action(input = \"http://ejb/userbean/registrationRequest\", output = \"http://ejb/userbean/registrationResponse\")\r\n public void registration(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n String arg0,\r\n @WebParam(name = \"arg1\", targetNamespace = \"\")\r\n String arg1,\r\n @WebParam(name = \"arg2\", targetNamespace = \"\")\r\n String arg2,\r\n @WebParam(name = \"arg3\", targetNamespace = \"\")\r\n String arg3,\r\n @WebParam(name = \"arg4\", targetNamespace = \"\")\r\n String arg4,\r\n @WebParam(name = \"arg5\", targetNamespace = \"\")\r\n String arg5,\r\n @WebParam(name = \"arg6\", targetNamespace = \"\")\r\n String arg6,\r\n @WebParam(name = \"arg7\", targetNamespace = \"\")\r\n int arg7,\r\n @WebParam(name = \"arg8\", targetNamespace = \"\")\r\n int arg8,\r\n @WebParam(name = \"arg9\", targetNamespace = \"\")\r\n int arg9,\r\n @WebParam(name = \"arg10\", targetNamespace = \"\")\r\n String arg10,\r\n @WebParam(name = \"arg11\", targetNamespace = \"\")\r\n String arg11);\r\n\r\n /**\r\n * \r\n * @param arg3\r\n * @param arg2\r\n * @param arg5\r\n * @param arg4\r\n * @param arg1\r\n * @param arg0\r\n * @param arg7\r\n * @param arg6\r\n * @param arg9\r\n * @param arg8\r\n */\r\n @WebMethod\r\n @RequestWrapper(localName = \"maintainProfile\", targetNamespace = \"http://ejb/\", className = \"ejb.MaintainProfile\")\r\n @ResponseWrapper(localName = \"maintainProfileResponse\", targetNamespace = \"http://ejb/\", className = \"ejb.MaintainProfileResponse\")\r\n @Action(input = \"http://ejb/userbean/maintainProfileRequest\", output = \"http://ejb/userbean/maintainProfileResponse\")\r\n public void maintainProfile(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n String arg0,\r\n @WebParam(name = \"arg1\", targetNamespace = \"\")\r\n String arg1,\r\n @WebParam(name = \"arg2\", targetNamespace = \"\")\r\n String arg2,\r\n @WebParam(name = \"arg3\", targetNamespace = \"\")\r\n String arg3,\r\n @WebParam(name = \"arg4\", targetNamespace = \"\")\r\n String arg4,\r\n @WebParam(name = \"arg5\", targetNamespace = \"\")\r\n String arg5,\r\n @WebParam(name = \"arg6\", targetNamespace = \"\")\r\n int arg6,\r\n @WebParam(name = \"arg7\", targetNamespace = \"\")\r\n int arg7,\r\n @WebParam(name = \"arg8\", targetNamespace = \"\")\r\n int arg8,\r\n @WebParam(name = \"arg9\", targetNamespace = \"\")\r\n String arg9);\r\n\r\n /**\r\n * \r\n * @param arg0\r\n * @return\r\n * returns java.util.List<ejb.UserTable>\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"showUserDetails\", targetNamespace = \"http://ejb/\", className = \"ejb.ShowUserDetails\")\r\n @ResponseWrapper(localName = \"showUserDetailsResponse\", targetNamespace = \"http://ejb/\", className = \"ejb.ShowUserDetailsResponse\")\r\n @Action(input = \"http://ejb/userbean/showUserDetailsRequest\", output = \"http://ejb/userbean/showUserDetailsResponse\")\r\n public List<UserTable> showUserDetails(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n String arg0);\r\n\r\n /**\r\n * \r\n * @param arg2\r\n * @param arg1\r\n * @param arg0\r\n */\r\n @WebMethod\r\n @RequestWrapper(localName = \"addDetailsForAd\", targetNamespace = \"http://ejb/\", className = \"ejb.AddDetailsForAd\")\r\n @ResponseWrapper(localName = \"addDetailsForAdResponse\", targetNamespace = \"http://ejb/\", className = \"ejb.AddDetailsForAdResponse\")\r\n @Action(input = \"http://ejb/userbean/addDetailsForAdRequest\", output = \"http://ejb/userbean/addDetailsForAdResponse\")\r\n public void addDetailsForAd(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n int arg0,\r\n @WebParam(name = \"arg1\", targetNamespace = \"\")\r\n String arg1,\r\n @WebParam(name = \"arg2\", targetNamespace = \"\")\r\n String arg2);\r\n\r\n /**\r\n * \r\n * @param arg3\r\n * @param arg2\r\n * @param arg1\r\n * @param arg0\r\n */\r\n @WebMethod\r\n @RequestWrapper(localName = \"editAdDetails\", targetNamespace = \"http://ejb/\", className = \"ejb.EditAdDetails\")\r\n @ResponseWrapper(localName = \"editAdDetailsResponse\", targetNamespace = \"http://ejb/\", className = \"ejb.EditAdDetailsResponse\")\r\n @Action(input = \"http://ejb/userbean/editAdDetailsRequest\", output = \"http://ejb/userbean/editAdDetailsResponse\")\r\n public void editAdDetails(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n int arg0,\r\n @WebParam(name = \"arg1\", targetNamespace = \"\")\r\n String arg1,\r\n @WebParam(name = \"arg2\", targetNamespace = \"\")\r\n String arg2,\r\n @WebParam(name = \"arg3\", targetNamespace = \"\")\r\n String arg3);\r\n\r\n /**\r\n * \r\n * @param arg1\r\n * @param arg0\r\n */\r\n @WebMethod\r\n @RequestWrapper(localName = \"addImageForAd\", targetNamespace = \"http://ejb/\", className = \"ejb.AddImageForAd\")\r\n @ResponseWrapper(localName = \"addImageForAdResponse\", targetNamespace = \"http://ejb/\", className = \"ejb.AddImageForAdResponse\")\r\n @Action(input = \"http://ejb/userbean/addImageForAdRequest\", output = \"http://ejb/userbean/addImageForAdResponse\")\r\n public void addImageForAd(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n int arg0,\r\n @WebParam(name = \"arg1\", targetNamespace = \"\")\r\n String arg1);\r\n\r\n /**\r\n * \r\n * @param arg2\r\n * @param arg1\r\n * @param arg0\r\n */\r\n @WebMethod\r\n @RequestWrapper(localName = \"editImageOfAd\", targetNamespace = \"http://ejb/\", className = \"ejb.EditImageOfAd\")\r\n @ResponseWrapper(localName = \"editImageOfAdResponse\", targetNamespace = \"http://ejb/\", className = \"ejb.EditImageOfAdResponse\")\r\n @Action(input = \"http://ejb/userbean/editImageOfAdRequest\", output = \"http://ejb/userbean/editImageOfAdResponse\")\r\n public void editImageOfAd(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n int arg0,\r\n @WebParam(name = \"arg1\", targetNamespace = \"\")\r\n int arg1,\r\n @WebParam(name = \"arg2\", targetNamespace = \"\")\r\n String arg2);\r\n\r\n /**\r\n * \r\n * @param arg0\r\n */\r\n @WebMethod\r\n @RequestWrapper(localName = \"removeImageofAd\", targetNamespace = \"http://ejb/\", className = \"ejb.RemoveImageofAd\")\r\n @ResponseWrapper(localName = \"removeImageofAdResponse\", targetNamespace = \"http://ejb/\", className = \"ejb.RemoveImageofAdResponse\")\r\n @Action(input = \"http://ejb/userbean/removeImageofAdRequest\", output = \"http://ejb/userbean/removeImageofAdResponse\")\r\n public void removeImageofAd(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n int arg0);\r\n\r\n /**\r\n * \r\n * @param arg3\r\n * @param arg2\r\n * @param arg1\r\n * @param arg0\r\n */\r\n @WebMethod\r\n @RequestWrapper(localName = \"addNewUserChat\", targetNamespace = \"http://ejb/\", className = \"ejb.AddNewUserChat\")\r\n @ResponseWrapper(localName = \"addNewUserChatResponse\", targetNamespace = \"http://ejb/\", className = \"ejb.AddNewUserChatResponse\")\r\n @Action(input = \"http://ejb/userbean/addNewUserChatRequest\", output = \"http://ejb/userbean/addNewUserChatResponse\")\r\n public void addNewUserChat(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n String arg0,\r\n @WebParam(name = \"arg1\", targetNamespace = \"\")\r\n String arg1,\r\n @WebParam(name = \"arg2\", targetNamespace = \"\")\r\n String arg2,\r\n @WebParam(name = \"arg3\", targetNamespace = \"\")\r\n String arg3);\r\n\r\n /**\r\n * \r\n * @param arg0\r\n * @return\r\n * returns java.util.List<ejb.UserChat>\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"showUserChat\", targetNamespace = \"http://ejb/\", className = \"ejb.ShowUserChat\")\r\n @ResponseWrapper(localName = \"showUserChatResponse\", targetNamespace = \"http://ejb/\", className = \"ejb.ShowUserChatResponse\")\r\n @Action(input = \"http://ejb/userbean/showUserChatRequest\", output = \"http://ejb/userbean/showUserChatResponse\")\r\n public List<UserChat> showUserChat(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n String arg0);\r\n\r\n /**\r\n * \r\n * @param arg0\r\n */\r\n @WebMethod\r\n @RequestWrapper(localName = \"removeUserChat\", targetNamespace = \"http://ejb/\", className = \"ejb.RemoveUserChat\")\r\n @ResponseWrapper(localName = \"removeUserChatResponse\", targetNamespace = \"http://ejb/\", className = \"ejb.RemoveUserChatResponse\")\r\n @Action(input = \"http://ejb/userbean/removeUserChatRequest\", output = \"http://ejb/userbean/removeUserChatResponse\")\r\n public void removeUserChat(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n String arg0);\r\n\r\n /**\r\n * \r\n * @param arg3\r\n * @param arg2\r\n * @param arg5\r\n * @param arg4\r\n * @param arg1\r\n * @param arg0\r\n * @param arg10\r\n * @param arg11\r\n * @param arg7\r\n * @param arg6\r\n * @param arg9\r\n * @param arg8\r\n */\r\n @WebMethod\r\n @RequestWrapper(localName = \"addAuctionDetail\", targetNamespace = \"http://ejb/\", className = \"ejb.AddAuctionDetail\")\r\n @ResponseWrapper(localName = \"addAuctionDetailResponse\", targetNamespace = \"http://ejb/\", className = \"ejb.AddAuctionDetailResponse\")\r\n @Action(input = \"http://ejb/userbean/addAuctionDetailRequest\", output = \"http://ejb/userbean/addAuctionDetailResponse\")\r\n public void addAuctionDetail(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n String arg0,\r\n @WebParam(name = \"arg1\", targetNamespace = \"\")\r\n String arg1,\r\n @WebParam(name = \"arg2\", targetNamespace = \"\")\r\n String arg2,\r\n @WebParam(name = \"arg3\", targetNamespace = \"\")\r\n int arg3,\r\n @WebParam(name = \"arg4\", targetNamespace = \"\")\r\n String arg4,\r\n @WebParam(name = \"arg5\", targetNamespace = \"\")\r\n String arg5,\r\n @WebParam(name = \"arg6\", targetNamespace = \"\")\r\n int arg6,\r\n @WebParam(name = \"arg7\", targetNamespace = \"\")\r\n String arg7,\r\n @WebParam(name = \"arg8\", targetNamespace = \"\")\r\n String arg8,\r\n @WebParam(name = \"arg9\", targetNamespace = \"\")\r\n String arg9,\r\n @WebParam(name = \"arg10\", targetNamespace = \"\")\r\n String arg10,\r\n @WebParam(name = \"arg11\", targetNamespace = \"\")\r\n String arg11);\r\n\r\n /**\r\n * \r\n * @param arg3\r\n * @param arg2\r\n * @param arg5\r\n * @param arg4\r\n * @param arg1\r\n * @param arg0\r\n * @param arg7\r\n * @param arg6\r\n * @param arg8\r\n */\r\n @WebMethod\r\n @RequestWrapper(localName = \"editAutionDetail\", targetNamespace = \"http://ejb/\", className = \"ejb.EditAutionDetail\")\r\n @ResponseWrapper(localName = \"editAutionDetailResponse\", targetNamespace = \"http://ejb/\", className = \"ejb.EditAutionDetailResponse\")\r\n @Action(input = \"http://ejb/userbean/editAutionDetailRequest\", output = \"http://ejb/userbean/editAutionDetailResponse\")\r\n public void editAutionDetail(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n int arg0,\r\n @WebParam(name = \"arg1\", targetNamespace = \"\")\r\n String arg1,\r\n @WebParam(name = \"arg2\", targetNamespace = \"\")\r\n String arg2,\r\n @WebParam(name = \"arg3\", targetNamespace = \"\")\r\n String arg3,\r\n @WebParam(name = \"arg4\", targetNamespace = \"\")\r\n int arg4,\r\n @WebParam(name = \"arg5\", targetNamespace = \"\")\r\n String arg5,\r\n @WebParam(name = \"arg6\", targetNamespace = \"\")\r\n String arg6,\r\n @WebParam(name = \"arg7\", targetNamespace = \"\")\r\n int arg7,\r\n @WebParam(name = \"arg8\", targetNamespace = \"\")\r\n String arg8);\r\n\r\n /**\r\n * \r\n * @param arg1\r\n * @param arg0\r\n */\r\n @WebMethod\r\n @RequestWrapper(localName = \"addAuctionImage\", targetNamespace = \"http://ejb/\", className = \"ejb.AddAuctionImage\")\r\n @ResponseWrapper(localName = \"addAuctionImageResponse\", targetNamespace = \"http://ejb/\", className = \"ejb.AddAuctionImageResponse\")\r\n @Action(input = \"http://ejb/userbean/addAuctionImageRequest\", output = \"http://ejb/userbean/addAuctionImageResponse\")\r\n public void addAuctionImage(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n String arg0,\r\n @WebParam(name = \"arg1\", targetNamespace = \"\")\r\n int arg1);\r\n\r\n /**\r\n * \r\n * @param arg3\r\n * @param arg2\r\n * @param arg1\r\n * @param arg0\r\n */\r\n @WebMethod\r\n @RequestWrapper(localName = \"addBidActivity\", targetNamespace = \"http://ejb/\", className = \"ejb.AddBidActivity\")\r\n @ResponseWrapper(localName = \"addBidActivityResponse\", targetNamespace = \"http://ejb/\", className = \"ejb.AddBidActivityResponse\")\r\n @Action(input = \"http://ejb/userbean/addBidActivityRequest\", output = \"http://ejb/userbean/addBidActivityResponse\")\r\n public void addBidActivity(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n String arg0,\r\n @WebParam(name = \"arg1\", targetNamespace = \"\")\r\n int arg1,\r\n @WebParam(name = \"arg2\", targetNamespace = \"\")\r\n int arg2,\r\n @WebParam(name = \"arg3\", targetNamespace = \"\")\r\n String arg3);\r\n\r\n /**\r\n * \r\n * @param arg3\r\n * @param arg2\r\n * @param arg4\r\n * @param arg1\r\n * @param arg0\r\n */\r\n @WebMethod\r\n @RequestWrapper(localName = \"addNewAd\", targetNamespace = \"http://ejb/\", className = \"ejb.AddNewAd\")\r\n @ResponseWrapper(localName = \"addNewAdResponse\", targetNamespace = \"http://ejb/\", className = \"ejb.AddNewAdResponse\")\r\n @Action(input = \"http://ejb/userbean/addNewAdRequest\", output = \"http://ejb/userbean/addNewAdResponse\")\r\n public void addNewAd(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n String arg0,\r\n @WebParam(name = \"arg1\", targetNamespace = \"\")\r\n int arg1,\r\n @WebParam(name = \"arg2\", targetNamespace = \"\")\r\n String arg2,\r\n @WebParam(name = \"arg3\", targetNamespace = \"\")\r\n int arg3,\r\n @WebParam(name = \"arg4\", targetNamespace = \"\")\r\n String arg4);\r\n\r\n /**\r\n * \r\n * @param arg2\r\n * @param arg1\r\n * @param arg0\r\n */\r\n @WebMethod\r\n @RequestWrapper(localName = \"removeAd\", targetNamespace = \"http://ejb/\", className = \"ejb.RemoveAd\")\r\n @ResponseWrapper(localName = \"removeAdResponse\", targetNamespace = \"http://ejb/\", className = \"ejb.RemoveAdResponse\")\r\n @Action(input = \"http://ejb/userbean/removeAdRequest\", output = \"http://ejb/userbean/removeAdResponse\")\r\n public void removeAd(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n int arg0,\r\n @WebParam(name = \"arg1\", targetNamespace = \"\")\r\n String arg1,\r\n @WebParam(name = \"arg2\", targetNamespace = \"\")\r\n int arg2);\r\n\r\n /**\r\n * \r\n * @param arg3\r\n * @param arg2\r\n * @param arg4\r\n * @param arg1\r\n * @param arg0\r\n */\r\n @WebMethod\r\n @RequestWrapper(localName = \"editAd\", targetNamespace = \"http://ejb/\", className = \"ejb.EditAd\")\r\n @ResponseWrapper(localName = \"editAdResponse\", targetNamespace = \"http://ejb/\", className = \"ejb.EditAdResponse\")\r\n @Action(input = \"http://ejb/userbean/editAdRequest\", output = \"http://ejb/userbean/editAdResponse\")\r\n public void editAd(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n int arg0,\r\n @WebParam(name = \"arg1\", targetNamespace = \"\")\r\n String arg1,\r\n @WebParam(name = \"arg2\", targetNamespace = \"\")\r\n int arg2,\r\n @WebParam(name = \"arg3\", targetNamespace = \"\")\r\n String arg3,\r\n @WebParam(name = \"arg4\", targetNamespace = \"\")\r\n int arg4);\r\n\r\n /**\r\n * \r\n * @param arg0\r\n */\r\n @WebMethod\r\n @RequestWrapper(localName = \"removeAutionDetail\", targetNamespace = \"http://ejb/\", className = \"ejb.RemoveAutionDetail\")\r\n @ResponseWrapper(localName = \"removeAutionDetailResponse\", targetNamespace = \"http://ejb/\", className = \"ejb.RemoveAutionDetailResponse\")\r\n @Action(input = \"http://ejb/userbean/removeAutionDetailRequest\", output = \"http://ejb/userbean/removeAutionDetailResponse\")\r\n public void removeAutionDetail(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n int arg0);\r\n\r\n /**\r\n * \r\n * @param arg0\r\n */\r\n @WebMethod\r\n @RequestWrapper(localName = \"removeAutionImage\", targetNamespace = \"http://ejb/\", className = \"ejb.RemoveAutionImage\")\r\n @ResponseWrapper(localName = \"removeAutionImageResponse\", targetNamespace = \"http://ejb/\", className = \"ejb.RemoveAutionImageResponse\")\r\n @Action(input = \"http://ejb/userbean/removeAutionImageRequest\", output = \"http://ejb/userbean/removeAutionImageResponse\")\r\n public void removeAutionImage(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n int arg0);\r\n\r\n /**\r\n * \r\n * @param arg0\r\n */\r\n @WebMethod\r\n @RequestWrapper(localName = \"removeBidActivity\", targetNamespace = \"http://ejb/\", className = \"ejb.RemoveBidActivity\")\r\n @ResponseWrapper(localName = \"removeBidActivityResponse\", targetNamespace = \"http://ejb/\", className = \"ejb.RemoveBidActivityResponse\")\r\n @Action(input = \"http://ejb/userbean/removeBidActivityRequest\", output = \"http://ejb/userbean/removeBidActivityResponse\")\r\n public void removeBidActivity(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n int arg0);\r\n\r\n}", "title": "" }, { "docid": "b1d274e7a9dfba99f0a78c6f85798c73", "score": "0.5810753", "text": "SoapEnvelope getEnvelope();", "title": "" }, { "docid": "3ca04481ed7489336ab5b91a5b3208be", "score": "0.5808821", "text": "@WebService(name = \"SurveyService\", targetNamespace = \"http://survey.me.org/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface SurveyService {\n\n\n /**\n * \n * @param troubleBreathing\n * @param persistentChestPain\n * @param fever\n * @param shortnessOfBreath\n * @param cough\n * @param bluishLipsOrFace\n * @param confusion\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"survey\", targetNamespace = \"http://survey.me.org/\", className = \"org.me.survey.Survey\")\n @ResponseWrapper(localName = \"surveyResponse\", targetNamespace = \"http://survey.me.org/\", className = \"org.me.survey.SurveyResponse\")\n @Action(input = \"http://survey.me.org/SurveyService/surveyRequest\", output = \"http://survey.me.org/SurveyService/surveyResponse\")\n public String survey(\n @WebParam(name = \"fever\", targetNamespace = \"\")\n boolean fever,\n @WebParam(name = \"cough\", targetNamespace = \"\")\n boolean cough,\n @WebParam(name = \"shortnessOfBreath\", targetNamespace = \"\")\n boolean shortnessOfBreath,\n @WebParam(name = \"troubleBreathing\", targetNamespace = \"\")\n boolean troubleBreathing,\n @WebParam(name = \"persistentChestPain\", targetNamespace = \"\")\n boolean persistentChestPain,\n @WebParam(name = \"bluishLipsOrFace\", targetNamespace = \"\")\n boolean bluishLipsOrFace,\n @WebParam(name = \"confusion\", targetNamespace = \"\")\n boolean confusion);\n\n}", "title": "" }, { "docid": "91d00a592cede3529a6c5a2b20a00c8a", "score": "0.58065456", "text": "@WebService(name = \"OuvrageManagerImpl\", targetNamespace = \"http://service.ocproject.org/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface OuvrageManagerImpl {\n\n\n /**\n * \n * @return\n * returns java.util.List<generated.ouvrage.Ouvrage>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"checkEmprunts\", targetNamespace = \"http://service.ocproject.org/\", className = \"generated.ouvrage.CheckEmprunts\")\n @ResponseWrapper(localName = \"checkEmpruntsResponse\", targetNamespace = \"http://service.ocproject.org/\", className = \"generated.ouvrage.CheckEmpruntsResponse\")\n @Action(input = \"http://service.ocproject.org/OuvrageManagerImpl/checkEmpruntsRequest\", output = \"http://service.ocproject.org/OuvrageManagerImpl/checkEmpruntsResponse\")\n public List<Ouvrage> checkEmprunts();\n\n /**\n * \n * @param arg3\n * @param arg2\n * @param arg4\n * @param arg1\n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"prolonger\", targetNamespace = \"http://service.ocproject.org/\", className = \"generated.ouvrage.Prolonger\")\n @ResponseWrapper(localName = \"prolongerResponse\", targetNamespace = \"http://service.ocproject.org/\", className = \"generated.ouvrage.ProlongerResponse\")\n @Action(input = \"http://service.ocproject.org/OuvrageManagerImpl/prolongerRequest\", output = \"http://service.ocproject.org/OuvrageManagerImpl/prolongerResponse\")\n public String prolonger(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n int arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n int arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n String arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n String arg4);\n\n /**\n * \n * @param arg0\n * @return\n * returns generated.ouvrage.Ouvrage\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"readInfoUser\", targetNamespace = \"http://service.ocproject.org/\", className = \"generated.ouvrage.ReadInfoUser\")\n @ResponseWrapper(localName = \"readInfoUserResponse\", targetNamespace = \"http://service.ocproject.org/\", className = \"generated.ouvrage.ReadInfoUserResponse\")\n @Action(input = \"http://service.ocproject.org/OuvrageManagerImpl/readInfoUserRequest\", output = \"http://service.ocproject.org/OuvrageManagerImpl/readInfoUserResponse\")\n public Ouvrage readInfoUser(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns generated.ouvrage.Ouvrage\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"readInfoLivre\", targetNamespace = \"http://service.ocproject.org/\", className = \"generated.ouvrage.ReadInfoLivre\")\n @ResponseWrapper(localName = \"readInfoLivreResponse\", targetNamespace = \"http://service.ocproject.org/\", className = \"generated.ouvrage.ReadInfoLivreResponse\")\n @Action(input = \"http://service.ocproject.org/OuvrageManagerImpl/readInfoLivreRequest\", output = \"http://service.ocproject.org/OuvrageManagerImpl/readInfoLivreResponse\")\n public Ouvrage readInfoLivre(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"rendre\", targetNamespace = \"http://service.ocproject.org/\", className = \"generated.ouvrage.Rendre\")\n @ResponseWrapper(localName = \"rendreResponse\", targetNamespace = \"http://service.ocproject.org/\", className = \"generated.ouvrage.RendreResponse\")\n @Action(input = \"http://service.ocproject.org/OuvrageManagerImpl/rendreRequest\", output = \"http://service.ocproject.org/OuvrageManagerImpl/rendreResponse\")\n public int rendre(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n int arg1);\n\n /**\n * \n * @param arg3\n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns generated.ouvrage.Ouvrage\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"emprunterOuvrage\", targetNamespace = \"http://service.ocproject.org/\", className = \"generated.ouvrage.EmprunterOuvrage\")\n @ResponseWrapper(localName = \"emprunterOuvrageResponse\", targetNamespace = \"http://service.ocproject.org/\", className = \"generated.ouvrage.EmprunterOuvrageResponse\")\n @Action(input = \"http://service.ocproject.org/OuvrageManagerImpl/emprunterOuvrageRequest\", output = \"http://service.ocproject.org/OuvrageManagerImpl/emprunterOuvrageResponse\")\n public Ouvrage emprunterOuvrage(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n int arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n String arg3);\n\n}", "title": "" }, { "docid": "b390fc69d43e2819c4f223d68d66c0ed", "score": "0.5804919", "text": "@WebService(wsdlLocation=\"https://dummy-crm-crm-ext.oracle.com/foundationParties/PersonService?Wsdl\",\r\n targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/\",\r\n name=\"PersonService\")\r\n@XmlSeeAlso(\r\n { sdo.commonj.java.ObjectFactory.class, sdo.commonj.ObjectFactory.class, com.oracle.xmlns.apps.cdm.foundation.parties.flex.person.ObjectFactory.class, com.oracle.xmlns.apps.cdm.foundation.parties.contactpointservice.ObjectFactory.class, com.oracle.xmlns.apps.cdm.foundation.parties.flex.relationship.ObjectFactory.class, com.oracle.xmlns.apps.cdm.foundation.parties.flex.contactpoint.ObjectFactory.class, com.oracle.xmlns.apps.cdm.foundation.parties.flex.partysite.ObjectFactory.class, com.oracle.xmlns.oracleas.schema.oracle_fault_11_0.ObjectFactory.class, com.oracle.xmlns.adf.svc.types.ObjectFactory.class, com.oracle.xmlns.apps.cdm.foundation.parties.personservice.ObjectFactory.class, com.oracle.xmlns.apps.cdm.foundation.parties.flex.orgcontact.ObjectFactory.class, com.oracle.xmlns.apps.cdm.foundation.parties.partyservice.ObjectFactory.class, com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.ObjectFactory.class, com.oracle.xmlns.apps.cdm.foundation.parties.relationshipservice.ObjectFactory.class, sdo.commonj.xml.ObjectFactory.class, com.oracle.xmlns.apps.cdm.foundation.parties.flex.sourcesystemref.ObjectFactory.class, com.oracle.xmlns.adf.svc.errors.ObjectFactory.class })\r\npublic interface PersonService\r\n{\r\n @WebMethod(action=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/getPerson\")\r\n @Action(input=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/getPerson\", fault =\r\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/PersonService/getPerson/Fault/ServiceException\",\r\n className=oracle.demo.pts.fusionproxy.person.ServiceException.class) },\r\n output=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/PersonService/getPersonResponse\")\r\n @ResponseWrapper(localName=\"getPersonResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.GetPersonResponse\")\r\n @RequestWrapper(localName=\"getPerson\", targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.GetPerson\")\r\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"result\")\r\n public com.oracle.xmlns.apps.cdm.foundation.parties.personservice.Person getPerson(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"partyId\")\r\n long partyId)\r\n throws oracle.demo.pts.fusionproxy.person.ServiceException;\r\n\r\n @WebMethod(action=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/createPerson\")\r\n @Action(input=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/createPerson\", fault =\r\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/PersonService/createPerson/Fault/ServiceException\",\r\n className=oracle.demo.pts.fusionproxy.person.ServiceException.class) },\r\n output=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/PersonService/createPersonResponse\")\r\n @ResponseWrapper(localName=\"createPersonResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.CreatePersonResponse\")\r\n @RequestWrapper(localName=\"createPerson\", targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.CreatePerson\")\r\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"result\")\r\n public com.oracle.xmlns.apps.cdm.foundation.parties.personservice.PersonResult createPerson(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"personParty\")\r\n com.oracle.xmlns.apps.cdm.foundation.parties.personservice.Person personParty)\r\n throws oracle.demo.pts.fusionproxy.person.ServiceException;\r\n\r\n @WebMethod(action=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/updatePerson\")\r\n @Action(input=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/updatePerson\", fault =\r\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/PersonService/updatePerson/Fault/ServiceException\",\r\n className=oracle.demo.pts.fusionproxy.person.ServiceException.class) },\r\n output=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/PersonService/updatePersonResponse\")\r\n @ResponseWrapper(localName=\"updatePersonResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.UpdatePersonResponse\")\r\n @RequestWrapper(localName=\"updatePerson\", targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.UpdatePerson\")\r\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"result\")\r\n public com.oracle.xmlns.apps.cdm.foundation.parties.personservice.PersonResult updatePerson(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"personParty\")\r\n com.oracle.xmlns.apps.cdm.foundation.parties.personservice.Person personParty)\r\n throws oracle.demo.pts.fusionproxy.person.ServiceException;\r\n\r\n @WebMethod(action=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/mergePerson\")\r\n @Action(input=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/mergePerson\", fault =\r\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/PersonService/mergePerson/Fault/ServiceException\",\r\n className=oracle.demo.pts.fusionproxy.person.ServiceException.class) },\r\n output=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/PersonService/mergePersonResponse\")\r\n @ResponseWrapper(localName=\"mergePersonResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.MergePersonResponse\")\r\n @RequestWrapper(localName=\"mergePerson\", targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.MergePerson\")\r\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"result\")\r\n public com.oracle.xmlns.apps.cdm.foundation.parties.personservice.PersonResult mergePerson(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"personParty\")\r\n com.oracle.xmlns.apps.cdm.foundation.parties.personservice.Person personParty)\r\n throws oracle.demo.pts.fusionproxy.person.ServiceException;\r\n\r\n @WebMethod(action=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/getPersonByOriginalSystemReference\")\r\n @Action(input=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/getPersonByOriginalSystemReference\", fault =\r\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/PersonService/getPersonByOriginalSystemReference/Fault/ServiceException\",\r\n className=oracle.demo.pts.fusionproxy.person.ServiceException.class) },\r\n output=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/PersonService/getPersonByOriginalSystemReferenceResponse\")\r\n @ResponseWrapper(localName=\"getPersonByOriginalSystemReferenceResponse\",\r\n targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.GetPersonByOriginalSystemReferenceResponse\")\r\n @RequestWrapper(localName=\"getPersonByOriginalSystemReference\",\r\n targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.GetPersonByOriginalSystemReference\")\r\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"result\")\r\n public com.oracle.xmlns.apps.cdm.foundation.parties.personservice.PersonResult getPersonByOriginalSystemReference(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"findCriteria\")\r\n com.oracle.xmlns.adf.svc.types.FindCriteria findCriteria,\r\n @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"bindOrigSystem\")\r\n String bindOrigSystem, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"bindOrigSystemReference\")\r\n String bindOrigSystemReference, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"findControl\")\r\n com.oracle.xmlns.adf.svc.types.FindControl findControl)\r\n throws oracle.demo.pts.fusionproxy.person.ServiceException;\r\n\r\n @WebMethod(action=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/getPersonsFilteredByPartyUsageCode\")\r\n @Action(input=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/getPersonsFilteredByPartyUsageCode\", fault =\r\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/PersonService/getPersonsFilteredByPartyUsageCode/Fault/ServiceException\",\r\n className=oracle.demo.pts.fusionproxy.person.ServiceException.class) },\r\n output=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/PersonService/getPersonsFilteredByPartyUsageCodeResponse\")\r\n @ResponseWrapper(localName=\"getPersonsFilteredByPartyUsageCodeResponse\",\r\n targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.GetPersonsFilteredByPartyUsageCodeResponse\")\r\n @RequestWrapper(localName=\"getPersonsFilteredByPartyUsageCode\",\r\n targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.GetPersonsFilteredByPartyUsageCode\")\r\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"result\")\r\n public com.oracle.xmlns.apps.cdm.foundation.parties.personservice.PersonResult getPersonsFilteredByPartyUsageCode(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"findCriteria\")\r\n com.oracle.xmlns.adf.svc.types.FindCriteria findCriteria,\r\n @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"bindPartyUsageCode\")\r\n String bindPartyUsageCode, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"bindEffectiveDate\")\r\n XMLGregorianCalendar bindEffectiveDate, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"findControl\")\r\n com.oracle.xmlns.adf.svc.types.FindControl findControl)\r\n throws oracle.demo.pts.fusionproxy.person.ServiceException;\r\n\r\n @WebMethod(action=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/getPersonsFilteredByPartyUsageFilterRuleCode\")\r\n @Action(input=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/getPersonsFilteredByPartyUsageFilterRuleCode\", fault =\r\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/PersonService/getPersonsFilteredByPartyUsageFilterRuleCode/Fault/ServiceException\",\r\n className=oracle.demo.pts.fusionproxy.person.ServiceException.class) },\r\n output=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/PersonService/getPersonsFilteredByPartyUsageFilterRuleCodeResponse\")\r\n @ResponseWrapper(localName=\"getPersonsFilteredByPartyUsageFilterRuleCodeResponse\",\r\n targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.GetPersonsFilteredByPartyUsageFilterRuleCodeResponse\")\r\n @RequestWrapper(localName=\"getPersonsFilteredByPartyUsageFilterRuleCode\",\r\n targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.GetPersonsFilteredByPartyUsageFilterRuleCode\")\r\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"result\")\r\n public com.oracle.xmlns.apps.cdm.foundation.parties.personservice.PersonResult getPersonsFilteredByPartyUsageFilterRuleCode(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"findCriteria\")\r\n com.oracle.xmlns.adf.svc.types.FindCriteria findCriteria,\r\n @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"bindPartyUsageFrCode\")\r\n String bindPartyUsageFrCode, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"bindEffectiveDate\")\r\n XMLGregorianCalendar bindEffectiveDate, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"findControl\")\r\n com.oracle.xmlns.adf.svc.types.FindControl findControl)\r\n throws oracle.demo.pts.fusionproxy.person.ServiceException;\r\n\r\n @WebMethod(action=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/deletePerson\")\r\n @Action(input=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/deletePerson\", fault =\r\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/PersonService/deletePerson/Fault/ServiceException\",\r\n className=oracle.demo.pts.fusionproxy.person.ServiceException.class) },\r\n output=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/PersonService/deletePersonResponse\")\r\n @ResponseWrapper(localName=\"deletePersonResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.DeletePersonResponse\")\r\n @RequestWrapper(localName=\"deletePerson\", targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.DeletePerson\")\r\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"result\")\r\n public com.oracle.xmlns.adf.svc.types.MethodResult deletePerson(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"personParty\")\r\n com.oracle.xmlns.apps.cdm.foundation.parties.personservice.Person personParty)\r\n throws oracle.demo.pts.fusionproxy.person.ServiceException;\r\n\r\n @WebMethod(action=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/processCSPerson\")\r\n @Action(input=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/processCSPerson\", fault =\r\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/PersonService/processCSPerson/Fault/ServiceException\",\r\n className=oracle.demo.pts.fusionproxy.person.ServiceException.class) },\r\n output=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/PersonService/processCSPersonResponse\")\r\n @ResponseWrapper(localName=\"processCSPersonResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.ProcessCSPersonResponse\")\r\n @RequestWrapper(localName=\"processCSPerson\", targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.ProcessCSPerson\")\r\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"result\")\r\n public com.oracle.xmlns.adf.svc.types.ProcessData processCSPerson(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"processData\")\r\n com.oracle.xmlns.adf.svc.types.ProcessData processData,\r\n @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"processControl\")\r\n com.oracle.xmlns.adf.svc.types.ProcessControl processControl)\r\n throws oracle.demo.pts.fusionproxy.person.ServiceException;\r\n\r\n @WebMethod(action=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/getPersonByOriginalSystemReferenceAsync\")\r\n @Action(input=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/getPersonByOriginalSystemReferenceAsync\")\r\n @RequestWrapper(localName=\"getPersonByOriginalSystemReferenceAsync\",\r\n targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.GetPersonByOriginalSystemReferenceAsync\")\r\n @Oneway\r\n public void getPersonByOriginalSystemReferenceAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"findCriteria\")\r\n com.oracle.xmlns.adf.svc.types.FindCriteria findCriteria,\r\n @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"bindOrigSystem\")\r\n String bindOrigSystem, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"bindOrigSystemReference\")\r\n String bindOrigSystemReference, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"findControl\")\r\n com.oracle.xmlns.adf.svc.types.FindControl findControl);\r\n\r\n @WebMethod(action=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/mergePersonAsync\")\r\n @Action(input=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/mergePersonAsync\")\r\n @RequestWrapper(localName=\"mergePersonAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.MergePersonAsync\")\r\n @Oneway\r\n public void mergePersonAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"personParty\")\r\n com.oracle.xmlns.apps.cdm.foundation.parties.personservice.Person personParty);\r\n\r\n @WebMethod(action=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/deletePersonAsync\")\r\n @Action(input=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/deletePersonAsync\")\r\n @RequestWrapper(localName=\"deletePersonAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.DeletePersonAsync\")\r\n @Oneway\r\n public void deletePersonAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"personParty\")\r\n com.oracle.xmlns.apps.cdm.foundation.parties.personservice.Person personParty);\r\n\r\n @WebMethod(action=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/processCSPersonAsync\")\r\n @Action(input=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/processCSPersonAsync\")\r\n @RequestWrapper(localName=\"processCSPersonAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.ProcessCSPersonAsync\")\r\n @Oneway\r\n public void processCSPersonAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"processData\")\r\n com.oracle.xmlns.adf.svc.types.ProcessData processData,\r\n @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"processControl\")\r\n com.oracle.xmlns.adf.svc.types.ProcessControl processControl);\r\n\r\n @WebMethod(action=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/getPersonsFilteredByPartyUsageCodeAsync\")\r\n @Action(input=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/getPersonsFilteredByPartyUsageCodeAsync\")\r\n @RequestWrapper(localName=\"getPersonsFilteredByPartyUsageCodeAsync\",\r\n targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.GetPersonsFilteredByPartyUsageCodeAsync\")\r\n @Oneway\r\n public void getPersonsFilteredByPartyUsageCodeAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"findCriteria\")\r\n com.oracle.xmlns.adf.svc.types.FindCriteria findCriteria,\r\n @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"bindPartyUsageCode\")\r\n String bindPartyUsageCode, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"bindEffectiveDate\")\r\n XMLGregorianCalendar bindEffectiveDate, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"findControl\")\r\n com.oracle.xmlns.adf.svc.types.FindControl findControl);\r\n\r\n @WebMethod(action=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/createPersonAsync\")\r\n @Action(input=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/createPersonAsync\")\r\n @RequestWrapper(localName=\"createPersonAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.CreatePersonAsync\")\r\n @Oneway\r\n public void createPersonAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"personParty\")\r\n com.oracle.xmlns.apps.cdm.foundation.parties.personservice.Person personParty);\r\n\r\n @WebMethod(action=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/updatePersonAsync\")\r\n @Action(input=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/updatePersonAsync\")\r\n @RequestWrapper(localName=\"updatePersonAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.UpdatePersonAsync\")\r\n @Oneway\r\n public void updatePersonAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"personParty\")\r\n com.oracle.xmlns.apps.cdm.foundation.parties.personservice.Person personParty);\r\n\r\n @WebMethod(action=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/getPersonAsync\")\r\n @Action(input=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/getPersonAsync\")\r\n @RequestWrapper(localName=\"getPersonAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.GetPersonAsync\")\r\n @Oneway\r\n public void getPersonAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"partyId\")\r\n long partyId);\r\n\r\n @WebMethod(action=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/getPersonsFilteredByPartyUsageFilterRuleCodeAsync\")\r\n @Action(input=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/getPersonsFilteredByPartyUsageFilterRuleCodeAsync\")\r\n @RequestWrapper(localName=\"getPersonsFilteredByPartyUsageFilterRuleCodeAsync\",\r\n targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.GetPersonsFilteredByPartyUsageFilterRuleCodeAsync\")\r\n @Oneway\r\n public void getPersonsFilteredByPartyUsageFilterRuleCodeAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"findCriteria\")\r\n com.oracle.xmlns.adf.svc.types.FindCriteria findCriteria,\r\n @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"bindPartyUsageFrCode\")\r\n String bindPartyUsageFrCode, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"bindEffectiveDate\")\r\n XMLGregorianCalendar bindEffectiveDate, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"findControl\")\r\n com.oracle.xmlns.adf.svc.types.FindControl findControl);\r\n\r\n @WebMethod(action=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/findPerson\")\r\n @Action(input=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/findPerson\", fault =\r\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/PersonService/findPerson/Fault/ServiceException\",\r\n className=oracle.demo.pts.fusionproxy.person.ServiceException.class) },\r\n output=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/PersonService/findPersonResponse\")\r\n @ResponseWrapper(localName=\"findPersonResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.FindPersonResponse\")\r\n @RequestWrapper(localName=\"findPerson\", targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.FindPerson\")\r\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"result\")\r\n public com.oracle.xmlns.apps.cdm.foundation.parties.personservice.PersonResult findPerson(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"findCriteria\")\r\n com.oracle.xmlns.adf.svc.types.FindCriteria findCriteria,\r\n @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"findControl\")\r\n com.oracle.xmlns.adf.svc.types.FindControl findControl)\r\n throws oracle.demo.pts.fusionproxy.person.ServiceException;\r\n\r\n @WebMethod(action=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/processPerson\")\r\n @Action(input=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/processPerson\", fault =\r\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/PersonService/processPerson/Fault/ServiceException\",\r\n className=oracle.demo.pts.fusionproxy.person.ServiceException.class) },\r\n output=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/PersonService/processPersonResponse\")\r\n @ResponseWrapper(localName=\"processPersonResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.ProcessPersonResponse\")\r\n @RequestWrapper(localName=\"processPerson\", targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.ProcessPerson\")\r\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"result\")\r\n public com.oracle.xmlns.apps.cdm.foundation.parties.personservice.PersonResult processPerson(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"changeOperation\")\r\n String changeOperation, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"personParty\")\r\n List<com.oracle.xmlns.apps.cdm.foundation.parties.personservice.Person> personParty,\r\n @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"processControl\")\r\n com.oracle.xmlns.adf.svc.types.ProcessControl processControl)\r\n throws oracle.demo.pts.fusionproxy.person.ServiceException;\r\n\r\n @WebMethod(action=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/processPersonAsync\")\r\n @Action(input=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/processPersonAsync\")\r\n @RequestWrapper(localName=\"processPersonAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.ProcessPersonAsync\")\r\n @Oneway\r\n public void processPersonAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"changeOperation\")\r\n String changeOperation, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"personParty\")\r\n List<com.oracle.xmlns.apps.cdm.foundation.parties.personservice.Person> personParty,\r\n @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"processControl\")\r\n com.oracle.xmlns.adf.svc.types.ProcessControl processControl);\r\n\r\n @WebMethod(action=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/findPersonAsync\")\r\n @Action(input=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/findPersonAsync\")\r\n @RequestWrapper(localName=\"findPersonAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.FindPersonAsync\")\r\n @Oneway\r\n public void findPersonAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"findCriteria\")\r\n com.oracle.xmlns.adf.svc.types.FindCriteria findCriteria,\r\n @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"findControl\")\r\n com.oracle.xmlns.adf.svc.types.FindControl findControl);\r\n\r\n @WebMethod(action=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/getPersonProfile\")\r\n @Action(input=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/getPersonProfile\", fault =\r\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/PersonService/getPersonProfile/Fault/ServiceException\",\r\n className=oracle.demo.pts.fusionproxy.person.ServiceException.class) },\r\n output=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/PersonService/getPersonProfileResponse\")\r\n @ResponseWrapper(localName=\"getPersonProfileResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.GetPersonProfileResponse\")\r\n @RequestWrapper(localName=\"getPersonProfile\", targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.GetPersonProfile\")\r\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"result\")\r\n public com.oracle.xmlns.apps.cdm.foundation.parties.personservice.PersonProfile getPersonProfile(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"PartyId\")\r\n long partyId)\r\n throws oracle.demo.pts.fusionproxy.person.ServiceException;\r\n\r\n @WebMethod(action=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/getPersonProfileAsync\")\r\n @Action(input=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/getPersonProfileAsync\")\r\n @RequestWrapper(localName=\"getPersonProfileAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.GetPersonProfileAsync\")\r\n @Oneway\r\n public void getPersonProfileAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"PartyId\")\r\n long partyId);\r\n\r\n @WebMethod(action=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/updatePersonProfile\")\r\n @Action(input=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/updatePersonProfile\", fault =\r\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/PersonService/updatePersonProfile/Fault/ServiceException\",\r\n className=oracle.demo.pts.fusionproxy.person.ServiceException.class) },\r\n output=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/PersonService/updatePersonProfileResponse\")\r\n @ResponseWrapper(localName=\"updatePersonProfileResponse\",\r\n targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.UpdatePersonProfileResponse\")\r\n @RequestWrapper(localName=\"updatePersonProfile\", targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.UpdatePersonProfile\")\r\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"result\")\r\n public com.oracle.xmlns.apps.cdm.foundation.parties.personservice.PersonProfile updatePersonProfile(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"personDVO\")\r\n com.oracle.xmlns.apps.cdm.foundation.parties.personservice.PersonProfile personDVO)\r\n throws oracle.demo.pts.fusionproxy.person.ServiceException;\r\n\r\n @WebMethod(action=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/mergePersonProfile\")\r\n @Action(input=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/mergePersonProfile\", fault =\r\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/PersonService/mergePersonProfile/Fault/ServiceException\",\r\n className=oracle.demo.pts.fusionproxy.person.ServiceException.class) },\r\n output=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/PersonService/mergePersonProfileResponse\")\r\n @ResponseWrapper(localName=\"mergePersonProfileResponse\",\r\n targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.MergePersonProfileResponse\")\r\n @RequestWrapper(localName=\"mergePersonProfile\", targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.MergePersonProfile\")\r\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"result\")\r\n public com.oracle.xmlns.apps.cdm.foundation.parties.personservice.PersonProfile mergePersonProfile(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"personDVO\")\r\n com.oracle.xmlns.apps.cdm.foundation.parties.personservice.PersonProfile personDVO)\r\n throws oracle.demo.pts.fusionproxy.person.ServiceException;\r\n\r\n @WebMethod(action=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/updatePersonProfileAsync\")\r\n @Action(input=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/updatePersonProfileAsync\")\r\n @RequestWrapper(localName=\"updatePersonProfileAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.UpdatePersonProfileAsync\")\r\n @Oneway\r\n public void updatePersonProfileAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"personDVO\")\r\n com.oracle.xmlns.apps.cdm.foundation.parties.personservice.PersonProfile personDVO);\r\n\r\n @WebMethod(action=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/mergePersonProfileAsync\")\r\n @Action(input=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/mergePersonProfileAsync\")\r\n @RequestWrapper(localName=\"mergePersonProfileAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.MergePersonProfileAsync\")\r\n @Oneway\r\n public void mergePersonProfileAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"personDVO\")\r\n com.oracle.xmlns.apps.cdm.foundation.parties.personservice.PersonProfile personDVO);\r\n\r\n @WebMethod(action=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/findPersonProfile\")\r\n @Action(input=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/findPersonProfile\", fault =\r\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/PersonService/findPersonProfile/Fault/ServiceException\",\r\n className=oracle.demo.pts.fusionproxy.person.ServiceException.class) },\r\n output=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/PersonService/findPersonProfileResponse\")\r\n @ResponseWrapper(localName=\"findPersonProfileResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.FindPersonProfileResponse\")\r\n @RequestWrapper(localName=\"findPersonProfile\", targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.FindPersonProfile\")\r\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"result\")\r\n public List<com.oracle.xmlns.apps.cdm.foundation.parties.personservice.PersonProfile> findPersonProfile(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"findCriteria\")\r\n com.oracle.xmlns.adf.svc.types.FindCriteria findCriteria,\r\n @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"findControl\")\r\n com.oracle.xmlns.adf.svc.types.FindControl findControl)\r\n throws oracle.demo.pts.fusionproxy.person.ServiceException;\r\n\r\n @WebMethod(action=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/findPersonProfileAsync\")\r\n @Action(input=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/findPersonProfileAsync\")\r\n @RequestWrapper(localName=\"findPersonProfileAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n className=\"com.oracle.xmlns.apps.cdm.foundation.parties.personservice.applicationmodule.types.FindPersonProfileAsync\")\r\n @Oneway\r\n public void findPersonProfileAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"findCriteria\")\r\n com.oracle.xmlns.adf.svc.types.FindCriteria findCriteria,\r\n @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/\",\r\n name=\"findControl\")\r\n com.oracle.xmlns.adf.svc.types.FindControl findControl);\r\n}", "title": "" }, { "docid": "7ddb069e7e89a93c8905c8147c27a28c", "score": "0.5795359", "text": "@WebService(targetNamespace = \"http://authentication.webservices.edu_sharing.org\", name = \"Authentication\")\n@XmlSeeAlso({org.edu_sharing.webservices.types.ObjectFactory.class, ObjectFactory.class})\npublic interface Authentication {\n\n @WebMethod\n @RequestWrapper(localName = \"authenticateByCAS\", targetNamespace = \"http://authentication.webservices.edu_sharing.org\", className = \"org.edu_sharing.webservices.authentication.AuthenticateByCAS\")\n @ResponseWrapper(localName = \"authenticateByCASResponse\", targetNamespace = \"http://authentication.webservices.edu_sharing.org\", className = \"org.edu_sharing.webservices.authentication.AuthenticateByCASResponse\")\n @WebResult(name = \"authenticateByCASReturn\", targetNamespace = \"http://authentication.webservices.edu_sharing.org\")\n public org.edu_sharing.webservices.authentication.AuthenticationResult authenticateByCAS(\n @WebParam(name = \"username\", targetNamespace = \"http://authentication.webservices.edu_sharing.org\")\n java.lang.String username,\n @WebParam(name = \"proxyTicket\", targetNamespace = \"http://authentication.webservices.edu_sharing.org\")\n java.lang.String proxyTicket\n ) throws AuthenticationException_Exception;\n\n @WebMethod\n @RequestWrapper(localName = \"authenticate\", targetNamespace = \"http://authentication.webservices.edu_sharing.org\", className = \"org.edu_sharing.webservices.authentication.Authenticate\")\n @ResponseWrapper(localName = \"authenticateResponse\", targetNamespace = \"http://authentication.webservices.edu_sharing.org\", className = \"org.edu_sharing.webservices.authentication.AuthenticateResponse\")\n @WebResult(name = \"authenticateReturn\", targetNamespace = \"http://authentication.webservices.edu_sharing.org\")\n public org.edu_sharing.webservices.authentication.AuthenticationResult authenticate(\n @WebParam(name = \"username\", targetNamespace = \"http://authentication.webservices.edu_sharing.org\")\n java.lang.String username,\n @WebParam(name = \"password\", targetNamespace = \"http://authentication.webservices.edu_sharing.org\")\n java.lang.String password\n ) throws AuthenticationException_Exception;\n\n @WebMethod\n @RequestWrapper(localName = \"authenticateByTrustedApp\", targetNamespace = \"http://authentication.webservices.edu_sharing.org\", className = \"org.edu_sharing.webservices.authentication.AuthenticateByTrustedApp\")\n @ResponseWrapper(localName = \"authenticateByTrustedAppResponse\", targetNamespace = \"http://authentication.webservices.edu_sharing.org\", className = \"org.edu_sharing.webservices.authentication.AuthenticateByTrustedAppResponse\")\n @WebResult(name = \"authenticateByTrustedAppReturn\", targetNamespace = \"http://authentication.webservices.edu_sharing.org\")\n public org.edu_sharing.webservices.authentication.AuthenticationResult authenticateByTrustedApp(\n @WebParam(name = \"applicationId\", targetNamespace = \"http://authentication.webservices.edu_sharing.org\")\n java.lang.String applicationId,\n @WebParam(name = \"ticket\", targetNamespace = \"http://authentication.webservices.edu_sharing.org\")\n java.lang.String ticket,\n @WebParam(name = \"ssoData\", targetNamespace = \"http://authentication.webservices.edu_sharing.org\")\n java.util.List<org.edu_sharing.webservices.types.KeyValue> ssoData\n ) throws AuthenticationException_Exception;\n\n @WebMethod\n @RequestWrapper(localName = \"authenticateByApp\", targetNamespace = \"http://authentication.webservices.edu_sharing.org\", className = \"org.edu_sharing.webservices.authentication.AuthenticateByApp\")\n @ResponseWrapper(localName = \"authenticateByAppResponse\", targetNamespace = \"http://authentication.webservices.edu_sharing.org\", className = \"org.edu_sharing.webservices.authentication.AuthenticateByAppResponse\")\n @WebResult(name = \"authenticateByAppReturn\", targetNamespace = \"http://authentication.webservices.edu_sharing.org\")\n public org.edu_sharing.webservices.authentication.AuthenticationResult authenticateByApp(\n @WebParam(name = \"applicationId\", targetNamespace = \"http://authentication.webservices.edu_sharing.org\")\n java.lang.String applicationId,\n @WebParam(name = \"username\", targetNamespace = \"http://authentication.webservices.edu_sharing.org\")\n java.lang.String username,\n @WebParam(name = \"email\", targetNamespace = \"http://authentication.webservices.edu_sharing.org\")\n java.lang.String email,\n @WebParam(name = \"ticket\", targetNamespace = \"http://authentication.webservices.edu_sharing.org\")\n java.lang.String ticket,\n @WebParam(name = \"createUser\", targetNamespace = \"http://authentication.webservices.edu_sharing.org\")\n boolean createUser\n ) throws AuthenticationException_Exception;\n\n @WebMethod\n @RequestWrapper(localName = \"checkTicket\", targetNamespace = \"http://authentication.webservices.edu_sharing.org\", className = \"org.edu_sharing.webservices.authentication.CheckTicket\")\n @ResponseWrapper(localName = \"checkTicketResponse\", targetNamespace = \"http://authentication.webservices.edu_sharing.org\", className = \"org.edu_sharing.webservices.authentication.CheckTicketResponse\")\n @WebResult(name = \"checkTicketReturn\", targetNamespace = \"http://authentication.webservices.edu_sharing.org\")\n public boolean checkTicket(\n @WebParam(name = \"username\", targetNamespace = \"http://authentication.webservices.edu_sharing.org\")\n java.lang.String username,\n @WebParam(name = \"ticket\", targetNamespace = \"http://authentication.webservices.edu_sharing.org\")\n java.lang.String ticket\n ) throws AuthenticationException_Exception;\n}", "title": "" }, { "docid": "fd73ae3f0c1e7b9bf0cc78cf4a1b4644", "score": "0.5794587", "text": "@WebService(name = \"VoteFinder\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface VoteFinder {\n\n\n /**\n * \n * @param sessionId\n * @param branch\n * @return\n * returns gov.ga.legis.votes.ArrayOfVoteListing\n */\n @WebMethod(operationName = \"GetVotes\", action = \"http://www.legis.ga.gov/2009/01/01/services/VoteFinder/GetVotes\")\n @WebResult(name = \"GetVotesResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetVotes\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.votes.GetVotes\")\n @ResponseWrapper(localName = \"GetVotesResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.votes.GetVotesResponse\")\n public ArrayOfVoteListing getVotes(\n @WebParam(name = \"Branch\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Branch branch,\n @WebParam(name = \"SessionId\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer sessionId);\n\n /**\n * \n * @param legislationId\n * @return\n * returns gov.ga.legis.votes.ArrayOfVoteListing\n */\n @WebMethod(operationName = \"GetVotesForLegislation\", action = \"http://www.legis.ga.gov/2009/01/01/services/VoteFinder/GetVotesForLegislation\")\n @WebResult(name = \"GetVotesForLegislationResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetVotesForLegislation\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.votes.GetVotesForLegislation\")\n @ResponseWrapper(localName = \"GetVotesForLegislationResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.votes.GetVotesForLegislationResponse\")\n public ArrayOfVoteListing getVotesForLegislation(\n @WebParam(name = \"LegislationId\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer legislationId);\n\n /**\n * \n * @param voteId\n * @return\n * returns gov.ga.legis.votes.Vote\n * @throws VoteFinderGetVoteRollCallNotPublishedFaultFaultFaultMessage\n */\n @WebMethod(operationName = \"GetVote\", action = \"http://www.legis.ga.gov/2009/01/01/services/VoteFinder/GetVote\")\n @WebResult(name = \"GetVoteResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetVote\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.votes.GetVote\")\n @ResponseWrapper(localName = \"GetVoteResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.votes.GetVoteResponse\")\n public Vote getVote(\n @WebParam(name = \"VoteId\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer voteId)\n throws VoteFinderGetVoteRollCallNotPublishedFaultFaultFaultMessage\n ;\n\n}", "title": "" }, { "docid": "f57f6b9a3b67a137b5260b2d9938a2f0", "score": "0.5788613", "text": "@WebService(name = \"TrackPortType\", targetNamespace = \"http://www.ups.com/WSDL/XOLTWS/Track/v2.0\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n com.ups.xmlschema.xoltws.upss.v1.ObjectFactory.class,\n com.ups.xmlschema.xoltws.common.v1.ObjectFactory.class,\n com.ups.xmlschema.xoltws.error.v1.ObjectFactory.class,\n com.ups.xmlschema.xoltws.track.v2.ObjectFactory.class\n})\npublic interface TrackPortType {\n\n\n /**\n * \n * @param upsSecurity\n * @param body\n * @return\n * returns jakarta.xml.ws.Response<com.ups.xmlschema.xoltws.track.v2.TrackResponse>\n */\n @WebMethod(operationName = \"ProcessTrack\", action = \"http://onlinetools.ups.com/webservices/TrackBinding/v2.0\")\n public Response<TrackResponse> processTrackAsync(\n @WebParam(name = \"TrackRequest\", targetNamespace = \"http://www.ups.com/XMLSchema/XOLTWS/Track/v2.0\", partName = \"Body\")\n TrackRequest body,\n @WebParam(name = \"UPSSecurity\", targetNamespace = \"http://www.ups.com/XMLSchema/XOLTWS/UPSS/v1.0\", header = true, partName = \"UPSSecurity\")\n UPSSecurity upsSecurity);\n\n /**\n * \n * @param upsSecurity\n * @param body\n * @param asyncHandler\n * @return\n * returns java.util.concurrent.Future<? extends java.lang.Object>\n */\n @WebMethod(operationName = \"ProcessTrack\", action = \"http://onlinetools.ups.com/webservices/TrackBinding/v2.0\")\n public Future<?> processTrackAsync(\n @WebParam(name = \"TrackRequest\", targetNamespace = \"http://www.ups.com/XMLSchema/XOLTWS/Track/v2.0\", partName = \"Body\")\n TrackRequest body,\n @WebParam(name = \"UPSSecurity\", targetNamespace = \"http://www.ups.com/XMLSchema/XOLTWS/UPSS/v1.0\", header = true, partName = \"UPSSecurity\")\n UPSSecurity upsSecurity,\n @WebParam(name = \"ProcessTrackResponse\", targetNamespace = \"\", partName = \"asyncHandler\")\n AsyncHandler<TrackResponse> asyncHandler);\n\n /**\n * \n * @param upsSecurity\n * @param body\n * @return\n * returns com.ups.xmlschema.xoltws.track.v2.TrackResponse\n * @throws TrackErrorMessage\n */\n @WebMethod(operationName = \"ProcessTrack\", action = \"http://onlinetools.ups.com/webservices/TrackBinding/v2.0\")\n @WebResult(name = \"TrackResponse\", targetNamespace = \"http://www.ups.com/XMLSchema/XOLTWS/Track/v2.0\", partName = \"Body\")\n public TrackResponse processTrack(\n @WebParam(name = \"TrackRequest\", targetNamespace = \"http://www.ups.com/XMLSchema/XOLTWS/Track/v2.0\", partName = \"Body\")\n TrackRequest body,\n @WebParam(name = \"UPSSecurity\", targetNamespace = \"http://www.ups.com/XMLSchema/XOLTWS/UPSS/v1.0\", header = true, partName = \"UPSSecurity\")\n UPSSecurity upsSecurity)\n throws TrackErrorMessage\n ;\n\n}", "title": "" }, { "docid": "297d4f622a0db148425b8c0f34fc6cfe", "score": "0.57815486", "text": "@WebService(targetNamespace = \"http://test.com/\", name = \"CalService\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\npublic interface CalService {\r\n\r\n @WebMethod(action = \"urn:Sub\")\r\n @RequestWrapper(localName = \"sub\", targetNamespace = \"http://test.com/\", className = \"com.test.Sub\")\r\n @ResponseWrapper(localName = \"subResponse\", targetNamespace = \"http://test.com/\", className = \"com.test.SubResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n public int sub(\r\n\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n int arg0,\r\n @WebParam(name = \"arg1\", targetNamespace = \"\")\r\n int arg1\r\n );\r\n\r\n @WebMethod(action = \"urn:Add\")\r\n @RequestWrapper(localName = \"add\", targetNamespace = \"http://test.com/\", className = \"com.test.Add\")\r\n @ResponseWrapper(localName = \"addResponse\", targetNamespace = \"http://test.com/\", className = \"com.test.AddResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n public int add(\r\n\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n int arg0,\r\n @WebParam(name = \"arg1\", targetNamespace = \"\")\r\n int arg1\r\n );\r\n}", "title": "" }, { "docid": "bcb3a85ea94d19b43ec4a4ed8799f5ea", "score": "0.57798165", "text": "@WebService(targetNamespace = \"http://www.example.org/customer/\", name = \"CustomerPortType\")\n@XmlSeeAlso({ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface CustomerPortType {\n\n @WebMethod(action = \"http://www.example.org/customer/lookupCustomer\")\n @WebResult(name = \"lookupCustomerResponse\", targetNamespace = \"http://www.example.org/customer/\", partName = \"out\")\n public LookupCustomerResponseType lookupCustomer(\n @WebParam(partName = \"in\", name = \"lookupCustomerRequest\", targetNamespace = \"http://www.example.org/customer/\")\n LookupCustomerRequestType in\n );\n}", "title": "" }, { "docid": "5e16e51161cc2f1895bddbf50462e137", "score": "0.57735735", "text": "@WebService(name = \"CustomerInterface\", targetNamespace = \"http://soap.nitish.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface CustomerInterface {\n\n\n /**\n * \n * @return\n * returns java.util.List<com.nitish.client.Customer>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"loadCustomer\", targetNamespace = \"http://soap.nitish.com/\", className = \"com.nitish.client.LoadCustomer\")\n @ResponseWrapper(localName = \"loadCustomerResponse\", targetNamespace = \"http://soap.nitish.com/\", className = \"com.nitish.client.LoadCustomerResponse\")\n @Action(input = \"http://soap.nitish.com/CustomerInterface/loadCustomerRequest\", output = \"http://soap.nitish.com/CustomerInterface/loadCustomerResponse\")\n public List<Customer> loadCustomer();\n\n /**\n * \n * @param arg0\n * @return\n * returns boolean\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteCustomer\", targetNamespace = \"http://soap.nitish.com/\", className = \"com.nitish.client.DeleteCustomer\")\n @ResponseWrapper(localName = \"deleteCustomerResponse\", targetNamespace = \"http://soap.nitish.com/\", className = \"com.nitish.client.DeleteCustomerResponse\")\n @Action(input = \"http://soap.nitish.com/CustomerInterface/deleteCustomerRequest\", output = \"http://soap.nitish.com/CustomerInterface/deleteCustomerResponse\")\n public boolean deleteCustomer(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns boolean\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updateCustomer\", targetNamespace = \"http://soap.nitish.com/\", className = \"com.nitish.client.UpdateCustomer\")\n @ResponseWrapper(localName = \"updateCustomerResponse\", targetNamespace = \"http://soap.nitish.com/\", className = \"com.nitish.client.UpdateCustomerResponse\")\n @Action(input = \"http://soap.nitish.com/CustomerInterface/updateCustomerRequest\", output = \"http://soap.nitish.com/CustomerInterface/updateCustomerResponse\")\n public boolean updateCustomer(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n Customer arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns boolean\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"addCustomer\", targetNamespace = \"http://soap.nitish.com/\", className = \"com.nitish.client.AddCustomer\")\n @ResponseWrapper(localName = \"addCustomerResponse\", targetNamespace = \"http://soap.nitish.com/\", className = \"com.nitish.client.AddCustomerResponse\")\n @Action(input = \"http://soap.nitish.com/CustomerInterface/addCustomerRequest\", output = \"http://soap.nitish.com/CustomerInterface/addCustomerResponse\")\n public boolean addCustomer(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n Customer arg0);\n\n}", "title": "" }, { "docid": "0bd2a0ab384375d9cbb94f39d73656ac", "score": "0.5769042", "text": "@WebService\npublic interface PizzaService {\n\n @WebMethod\n @SOAPBinding(style = SOAPBinding.Style.RPC)\n public List<Pizza> getAllPizzas();\n}", "title": "" }, { "docid": "475c368e936fd32baf997fc661a9249c", "score": "0.57617193", "text": "@WebService(name = \"Michael\", targetNamespace = \"http://web/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface Michael {\n\n\n /**\n * \n * @param gX\n * @param gY\n * @param gZ\n * @param xml\n * @param apX\n * @param ld\n * @param apZ\n * @param apY\n * @param pl1M\n * @param apPt\n * @param n\n * @param conc\n * @return\n * returns java.lang.Double\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"calculate\", targetNamespace = \"http://web/\", className = \"wsdl.Calculate\")\n @ResponseWrapper(localName = \"calculateResponse\", targetNamespace = \"http://web/\", className = \"wsdl.CalculateResponse\")\n @Action(input = \"http://web/Michael/calculateRequest\", output = \"http://web/Michael/calculateResponse\")\n public Double calculate(\n @WebParam(name = \"g_x\", targetNamespace = \"\")\n Integer gX,\n @WebParam(name = \"g_y\", targetNamespace = \"\")\n Integer gY,\n @WebParam(name = \"g_z\", targetNamespace = \"\")\n Integer gZ,\n @WebParam(name = \"ap_x\", targetNamespace = \"\")\n Integer apX,\n @WebParam(name = \"ap_y\", targetNamespace = \"\")\n Integer apY,\n @WebParam(name = \"ap_z\", targetNamespace = \"\")\n Integer apZ,\n @WebParam(name = \"ap_pt\", targetNamespace = \"\")\n Integer apPt,\n @WebParam(name = \"n\", targetNamespace = \"\")\n Double n,\n @WebParam(name = \"PL_1m\", targetNamespace = \"\")\n Double pl1M,\n @WebParam(name = \"ld\", targetNamespace = \"\")\n Double ld,\n @WebParam(name = \"conc\", targetNamespace = \"\")\n Double conc,\n @WebParam(name = \"xml\", targetNamespace = \"\")\n String xml);\n\n}", "title": "" }, { "docid": "6fcb18ce65f61742d81b304bc4e8206e", "score": "0.5759542", "text": "@WebService(name = \"BuildingServicewsEndpoint\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n@XmlSeeAlso({\n ObjectFactoryBuilding.class\n})\npublic interface BuildingServicewsEndpoint {\n\n\n /**\n * \n * @param buildingDto\n * @return\n * returns java.util.List<org.sepro.parameterweb.serviceapi.BuildingDto>\n */\n @WebMethod\n @WebResult(targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n @RequestWrapper(localName = \"searchBuildingServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.SearchBuildingServicews\")\n @ResponseWrapper(localName = \"searchBuildingServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.SearchBuildingServicewsResponse\")\n public List<BuildingDto> searchBuildingServicews(\n @WebParam(name = \"buildingDto\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n BuildingDto buildingDto);\n\n /**\n * \n * @param buildingDto\n * @return\n * returns org.sepro.parameterweb.serviceapi.BuildingDto\n */\n @WebMethod\n @WebResult(targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n @RequestWrapper(localName = \"createBuildingServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.CreateBuildingServicews\")\n @ResponseWrapper(localName = \"createBuildingServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.CreateBuildingServicewsResponse\")\n public BuildingDto createBuildingServicews(\n @WebParam(name = \"buildingDto\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n BuildingDto buildingDto);\n\n /**\n * \n * @return\n * returns java.util.List<org.sepro.parameterweb.serviceapi.BuildingDto>\n */\n @WebMethod\n @WebResult(targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n @RequestWrapper(localName = \"getAllBuildingServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.GetAllBuildingServicews\")\n @ResponseWrapper(localName = \"getAllBuildingServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.GetAllBuildingServicewsResponse\")\n public List<BuildingDto> getAllBuildingServicews();\n\n /**\n * \n * @param buildingDto\n * @return\n * returns org.sepro.parameterweb.serviceapi.BuildingDto\n */\n @WebMethod\n @WebResult(targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n @RequestWrapper(localName = \"updateBuildingServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.UpdateBuildingServicews\")\n @ResponseWrapper(localName = \"updateBuildingServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.UpdateBuildingServicewsResponse\")\n public BuildingDto updateBuildingServicews(\n @WebParam(name = \"buildingDto\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n BuildingDto buildingDto);\n\n /**\n * \n * @param buildingDto\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteBuildingServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.DeleteBuildingServicews\")\n @ResponseWrapper(localName = \"deleteBuildingServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.DeleteBuildingServicewsResponse\")\n public void deleteBuildingServicews(\n @WebParam(name = \"buildingDto\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n BuildingDto buildingDto);\n\n /**\n * \n * @param pageSize\n * @param page\n * @return\n * returns java.util.List<org.sepro.parameterweb.serviceapi.BuildingDto>\n */\n @WebMethod\n @WebResult(targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n @RequestWrapper(localName = \"getPageAllBuildingServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.GetPageAllBuildingServicews\")\n @ResponseWrapper(localName = \"getPageAllBuildingServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.GetPageAllBuildingServicewsResponse\")\n public List<BuildingDto> getPageAllBuildingServicews(\n @WebParam(name = \"page\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n int page,\n @WebParam(name = \"pageSize\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n int pageSize);\n\n /**\n * \n * @param pageSize\n * @param page\n * @param buildingDto\n * @return\n * returns java.util.List<org.sepro.parameterweb.serviceapi.BuildingDto>\n */\n @WebMethod\n @WebResult(targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n @RequestWrapper(localName = \"searchPageBuildingServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.SearchPageBuildingServicews\")\n @ResponseWrapper(localName = \"searchPageBuildingServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.SearchPageBuildingServicewsResponse\")\n public List<BuildingDto> searchPageBuildingServicews(\n @WebParam(name = \"buildingDto\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n BuildingDto buildingDto,\n @WebParam(name = \"page\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n int page,\n @WebParam(name = \"pageSize\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n int pageSize);\n\n}", "title": "" }, { "docid": "dee665efa61bd73c76482ca3686163eb", "score": "0.5753853", "text": "@WebService(targetNamespace = \"http://www.daenet.de/webservices/CurrencyServer\", name = \"CurrencyServerWebServiceHttpGet\")\n@XmlSeeAlso({ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface CurrencyServerWebServiceHttpGet {\n\n @WebResult(name = \"double\", targetNamespace = \"http://www.daenet.de/webservices/CurrencyServer\", partName = \"Body\")\n @WebMethod\n public double getDollarValue(\n @WebParam(partName = \"provider\", name = \"provider\", targetNamespace = \"\")\n java.lang.String provider,\n @WebParam(partName = \"currency\", name = \"currency\", targetNamespace = \"\")\n java.lang.String currency\n );\n\n @WebResult(name = \"string\", targetNamespace = \"http://www.daenet.de/webservices/CurrencyServer\", partName = \"Body\")\n @WebMethod\n public java.lang.String getProviderTimestamp(\n @WebParam(partName = \"providerId\", name = \"providerId\", targetNamespace = \"\")\n java.lang.String providerId,\n @WebParam(partName = \"provider\", name = \"provider\", targetNamespace = \"\")\n java.lang.String provider\n );\n\n @WebResult(name = \"string\", targetNamespace = \"http://www.daenet.de/webservices/CurrencyServer\", partName = \"Body\")\n @WebMethod\n public java.lang.String getProviderList();\n\n @WebResult(name = \"DataSet\", targetNamespace = \"http://www.daenet.de/webservices/CurrencyServer\", partName = \"Body\")\n @WebMethod\n public DataSet getDataSet(\n @WebParam(partName = \"provider\", name = \"provider\", targetNamespace = \"\")\n java.lang.String provider\n );\n\n @WebResult(name = \"string\", targetNamespace = \"http://www.daenet.de/webservices/CurrencyServer\", partName = \"Body\")\n @WebMethod\n public java.lang.String getXmlStream(\n @WebParam(partName = \"provider\", name = \"provider\", targetNamespace = \"\")\n java.lang.String provider\n );\n\n @WebResult(name = \"double\", targetNamespace = \"http://www.daenet.de/webservices/CurrencyServer\", partName = \"Body\")\n @WebMethod\n public double getCurrencyValue(\n @WebParam(partName = \"provider\", name = \"provider\", targetNamespace = \"\")\n java.lang.String provider,\n @WebParam(partName = \"srcCurrency\", name = \"srcCurrency\", targetNamespace = \"\")\n java.lang.String srcCurrency,\n @WebParam(partName = \"dstCurrency\", name = \"dstCurrency\", targetNamespace = \"\")\n java.lang.String dstCurrency\n );\n\n @WebResult(name = \"string\", targetNamespace = \"http://www.daenet.de/webservices/CurrencyServer\", partName = \"Body\")\n @WebMethod\n public java.lang.String getProviderDescription(\n @WebParam(partName = \"provider\", name = \"provider\", targetNamespace = \"\")\n java.lang.String provider\n );\n}", "title": "" }, { "docid": "abf07d8549180a236a331135b0ba2bb6", "score": "0.57521486", "text": "@WebService(name = \"iserviceportal\", targetNamespace = \"http://192.168.0.106:8080/jaxws\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface Iserviceportal {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns puc.pf.portal.service.Excecao\n */\n @WebMethod(action = \"http://192.168.0.106:8080/jaxws/consultarExcecao\")\n @WebResult(name = \"ExcecaoCapturada\", targetNamespace = \"http://192.168.0.106:8080/jaxws/dominio/excecao\")\n @RequestWrapper(localName = \"consultarExcecao\", targetNamespace = \"http://192.168.0.106:8080/jaxws\", className = \"puc.pf.portal.service.ConsultarExcecao\")\n @ResponseWrapper(localName = \"consultarExcecaoResponse\", targetNamespace = \"http://192.168.0.106:8080/jaxws\", className = \"puc.pf.portal.service.ConsultarExcecaoResponse\")\n public Excecao consultarExcecao(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n Long arg0);\n\n /**\n * \n * @return\n * returns java.util.List<puc.pf.portal.service.Excecao>\n */\n @WebMethod(action = \"http://192.168.0.106:8080/jaxws/consultarListaExcecao\")\n @WebResult(name = \"ListaExcecaoCapturada\", targetNamespace = \"http://192.168.0.106:8080/jaxws/dominio/excecao\")\n @RequestWrapper(localName = \"consultarListaExcecao\", targetNamespace = \"http://192.168.0.106:8080/jaxws\", className = \"puc.pf.portal.service.ConsultarListaExcecao\")\n @ResponseWrapper(localName = \"consultarListaExcecaoResponse\", targetNamespace = \"http://192.168.0.106:8080/jaxws\", className = \"puc.pf.portal.service.ConsultarListaExcecaoResponse\")\n public List<Excecao> consultarListaExcecao();\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<puc.pf.portal.service.Excecao>\n */\n @WebMethod(action = \"http://192.168.0.106:8080/jaxws/consultarListaExcecaoMaiorId\")\n @WebResult(name = \"ListaExcecaoCapturadaMaiorId\", targetNamespace = \"http://192.168.0.106:8080/jaxws/dominio/excecao\")\n @RequestWrapper(localName = \"consultarListaExcecaoMaiorId\", targetNamespace = \"http://192.168.0.106:8080/jaxws\", className = \"puc.pf.portal.service.ConsultarListaExcecaoMaiorId\")\n @ResponseWrapper(localName = \"consultarListaExcecaoMaiorIdResponse\", targetNamespace = \"http://192.168.0.106:8080/jaxws\", className = \"puc.pf.portal.service.ConsultarListaExcecaoMaiorIdResponse\")\n public List<Excecao> consultarListaExcecaoMaiorId(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n Long arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns puc.pf.portal.service.Funcionario\n */\n @WebMethod(action = \"http://192.168.0.106:8080/jaxws/consultarFuncionario\")\n @WebResult(name = \"Funcionario\", targetNamespace = \"http://192.168.0.106:8080/jaxws/dominio/funcionario\")\n @RequestWrapper(localName = \"consultarFuncionario\", targetNamespace = \"http://192.168.0.106:8080/jaxws\", className = \"puc.pf.portal.service.ConsultarFuncionario\")\n @ResponseWrapper(localName = \"consultarFuncionarioResponse\", targetNamespace = \"http://192.168.0.106:8080/jaxws\", className = \"puc.pf.portal.service.ConsultarFuncionarioResponse\")\n public Funcionario consultarFuncionario(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n Long arg0);\n\n /**\n * \n * @return\n * returns java.util.List<puc.pf.portal.service.Funcionario>\n */\n @WebMethod(action = \"http://192.168.0.106:8080/jaxws/consultarListaFuncionario\")\n @WebResult(name = \"ListaFuncionario\", targetNamespace = \"http://192.168.0.106:8080/jaxws/dominio/funcionario\")\n @RequestWrapper(localName = \"consultarListaFuncionario\", targetNamespace = \"http://192.168.0.106:8080/jaxws\", className = \"puc.pf.portal.service.ConsultarListaFuncionario\")\n @ResponseWrapper(localName = \"consultarListaFuncionarioResponse\", targetNamespace = \"http://192.168.0.106:8080/jaxws\", className = \"puc.pf.portal.service.ConsultarListaFuncionarioResponse\")\n public List<Funcionario> consultarListaFuncionario();\n\n}", "title": "" }, { "docid": "45a5062f0dceaacf6329887da726086a", "score": "0.5748517", "text": "@WebService(targetNamespace = \"http://www.pawmot.com/MtomUpload_1_0/\", name = \"mtomUploadPortType\")\n@XmlSeeAlso({ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@Generated(value = \"org.apache.cxf.tools.wsdlto.WSDLToJava\", date = \"2017-05-20T17:09:21.263+02:00\", comments = \"Apache CXF 3.1.11\")\npublic interface MtomUploadPortType {\n\n @WebMethod(action = \"http://www.pawmot.com/MtomUpload_1_0/mtomUpload\")\n @WebResult(name = \"mtomUploadResponse\", targetNamespace = \"http://www.pawmot.com/MtomUpload_1_0/\", partName = \"response\")\n @Generated(value = \"org.apache.cxf.tools.wsdlto.WSDLToJava\", date = \"2017-05-20T17:09:21.263+02:00\")\n public MtomUploadResponseType mtomUpload(\n @WebParam(partName = \"request\", name = \"mtomUploadRequest\", targetNamespace = \"http://www.pawmot.com/MtomUpload_1_0/\")\n MtomUploadRequestType request\n ) throws FaultMsg;\n}", "title": "" }, { "docid": "06dd941adb5d6e26a9fa403b0967a605", "score": "0.5719684", "text": "@WebService(name = \"accountManagementApi\", targetNamespace = \"http://www.jeecourse.com/account/v1\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface AccountManagementApi {\n\n\n /**\n * \n * @param createAccountRequest\n * @return\n * returns com.jeecourse.account.ws.v1.beans.AccountRsp\n * @throws WsException_Exception\n */\n @WebMethod\n @WebResult(name = \"createAccountResponse\", targetNamespace = \"http://www.jeecourse.com/account/v1\", partName = \"createAccountResponse\")\n public AccountRsp createAccount(\n @WebParam(name = \"createAccountRequest\", targetNamespace = \"http://www.jeecourse.com/account/v1\", partName = \"createAccountRequest\")\n AccountReq createAccountRequest)\n throws WsException_Exception\n ;\n\n /**\n * \n * @param getAccountRequest\n * @return\n * returns com.jeecourse.account.ws.v1.beans.AccountRsp\n * @throws WsException_Exception\n */\n @WebMethod\n @WebResult(name = \"getAccountResponse\", targetNamespace = \"http://www.jeecourse.com/account/v1\", partName = \"getAccountResponse\")\n public AccountRsp getAccount(\n @WebParam(name = \"getAccountRequest\", targetNamespace = \"http://www.jeecourse.com/account/v1\", partName = \"getAccountRequest\")\n long getAccountRequest)\n throws WsException_Exception\n ;\n\n /**\n * \n * @param getAccountsRequest\n * @return\n * returns com.jeecourse.account.ws.v1.beans.Accounts\n * @throws WsException_Exception\n */\n @WebMethod\n @WebResult(name = \"getAccountsResponse\", targetNamespace = \"http://www.jeecourse.com/account/v1\", partName = \"getAccountsResponse\")\n public Accounts getAccounts(\n @WebParam(name = \"getAccountsRequest\", targetNamespace = \"http://www.jeecourse.com/account/v1\", partName = \"getAccountsRequest\")\n PaginationInfo getAccountsRequest)\n throws WsException_Exception\n ;\n\n /**\n * \n * @param updateAccountRequest\n * @return\n * returns com.jeecourse.account.ws.v1.beans.Empty\n * @throws WsException_Exception\n */\n @WebMethod\n @WebResult(name = \"updateAccountResponse\", targetNamespace = \"http://www.jeecourse.com/account/v1\", partName = \"updateAccountResponse\")\n public Empty updateAccount(\n @WebParam(name = \"updateAccountRequest\", targetNamespace = \"http://www.jeecourse.com/account/v1\", partName = \"updateAccountRequest\")\n AccountReq updateAccountRequest)\n throws WsException_Exception\n ;\n\n /**\n * \n * @param deleteAccountRequest\n * @return\n * returns com.jeecourse.account.ws.v1.beans.Empty\n * @throws WsException_Exception\n */\n @WebMethod\n @WebResult(name = \"deleteAccountResponse\", targetNamespace = \"http://www.jeecourse.com/account/v1\", partName = \"deleteAccountResponse\")\n public Empty deleteAccount(\n @WebParam(name = \"deleteAccountRequest\", targetNamespace = \"http://www.jeecourse.com/account/v1\", partName = \"deleteAccountRequest\")\n long deleteAccountRequest)\n throws WsException_Exception\n ;\n\n}", "title": "" }, { "docid": "60b9af490990307453efcda836d6422a", "score": "0.57121277", "text": "@WebService(name = \"ListagemLivros\", targetNamespace = \"http://servicos.estoque.knight.com/\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface ListagemLivros {\r\n\r\n\r\n /**\r\n * \r\n * @param arg1\r\n * @param arg0\r\n * @return\r\n * returns java.util.List<com.knight.estoque.servicos.Livro>\r\n */\r\n @WebMethod\r\n @WebResult(name = \"livro\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"listarLivrosPaginacao\", targetNamespace = \"http://servicos.estoque.knight.com/\", className = \"com.knight.estoque.servicos.ListarLivrosPaginacao\")\r\n @ResponseWrapper(localName = \"livrosPaginados\", targetNamespace = \"http://servicos.estoque.knight.com/\", className = \"com.knight.estoque.servicos.LivrosPaginados\")\r\n @Action(input = \"http://servicos.estoque.knight.com/ListagemLivros/listarLivrosPaginacaoRequest\", output = \"http://servicos.estoque.knight.com/ListagemLivros/listarLivrosPaginacaoResponse\")\r\n public List<Livro> listarLivrosPaginacao(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n Integer arg0,\r\n @WebParam(name = \"arg1\", targetNamespace = \"\")\r\n Integer arg1);\r\n\r\n /**\r\n * \r\n * @return\r\n * returns java.util.List<com.knight.estoque.servicos.Livro>\r\n */\r\n @WebMethod\r\n @WebResult(name = \"livro\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"listarLivros\", targetNamespace = \"http://servicos.estoque.knight.com/\", className = \"com.knight.estoque.servicos.ListarLivros\")\r\n @ResponseWrapper(localName = \"listarLivrosResponse\", targetNamespace = \"http://servicos.estoque.knight.com/\", className = \"com.knight.estoque.servicos.ListarLivrosResponse\")\r\n @Action(input = \"http://servicos.estoque.knight.com/ListagemLivros/listarLivrosRequest\", output = \"http://servicos.estoque.knight.com/ListagemLivros/listarLivrosResponse\")\r\n public List<Livro> listarLivros();\r\n\r\n /**\r\n * \r\n * @param usuario\r\n * @param parameters\r\n * @return\r\n * returns com.knight.estoque.servicos.CriarLivroResponse\r\n * @throws UsuarioNaoAutorizadoException_Exception\r\n */\r\n @WebMethod\r\n @WebResult(name = \"criarLivroResponse\", targetNamespace = \"http://servicos.estoque.knight.com/\", partName = \"result\")\r\n @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\n @Action(input = \"http://servicos.estoque.knight.com/ListagemLivros/criarLivroRequest\", output = \"http://servicos.estoque.knight.com/ListagemLivros/criarLivroResponse\", fault = {\r\n @FaultAction(className = UsuarioNaoAutorizadoException_Exception.class, value = \"http://servicos.estoque.knight.com/ListagemLivros/criarLivro/Fault/UsuarioNaoAutorizadoException\")\r\n })\r\n public CriarLivroResponse criarLivro(\r\n @WebParam(name = \"criarLivro\", targetNamespace = \"http://servicos.estoque.knight.com/\", partName = \"parameters\")\r\n CriarLivro parameters,\r\n @WebParam(name = \"usuario\", targetNamespace = \"http://servicos.estoque.knight.com/\", header = true, partName = \"usuario\")\r\n Usuario usuario)\r\n throws UsuarioNaoAutorizadoException_Exception\r\n ;\r\n\r\n}", "title": "" }, { "docid": "308e799bfbcc9e4522d36083ee24f82b", "score": "0.5710638", "text": "@WebService(name = \"MRIModelFittingService\", targetNamespace = \"www.abi.auckland.ac.nz/CCF\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface MRIModelFittingService {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns byte[]\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getDicom\", targetNamespace = \"www.abi.auckland.ac.nz/CCF\", className = \"nz.ac.auckland.abi.mrimodelfitting.wsclient.GetDicom\")\n @ResponseWrapper(localName = \"getDicomResponse\", targetNamespace = \"www.abi.auckland.ac.nz/CCF\", className = \"nz.ac.auckland.abi.mrimodelfitting.wsclient.GetDicomResponse\")\n public byte[] getDicom(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"submit\", targetNamespace = \"www.abi.auckland.ac.nz/CCF\", className = \"nz.ac.auckland.abi.mrimodelfitting.wsclient.Submit\")\n @ResponseWrapper(localName = \"submitResponse\", targetNamespace = \"www.abi.auckland.ac.nz/CCF\", className = \"nz.ac.auckland.abi.mrimodelfitting.wsclient.SubmitResponse\")\n public String submit(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n byte[] arg1);\n\n /**\n * \n * @param arg0\n * @return\n * returns double\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getCompletion\", targetNamespace = \"www.abi.auckland.ac.nz/CCF\", className = \"nz.ac.auckland.abi.mrimodelfitting.wsclient.GetCompletion\")\n @ResponseWrapper(localName = \"getCompletionResponse\", targetNamespace = \"www.abi.auckland.ac.nz/CCF\", className = \"nz.ac.auckland.abi.mrimodelfitting.wsclient.GetCompletionResponse\")\n public double getCompletion(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"cleanUp\", targetNamespace = \"www.abi.auckland.ac.nz/CCF\", className = \"nz.ac.auckland.abi.mrimodelfitting.wsclient.CleanUp\")\n @ResponseWrapper(localName = \"cleanUpResponse\", targetNamespace = \"www.abi.auckland.ac.nz/CCF\", className = \"nz.ac.auckland.abi.mrimodelfitting.wsclient.CleanUpResponse\")\n public void cleanUp(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n}", "title": "" }, { "docid": "cd86e9b57de79322bc4f26b8229603f8", "score": "0.57085073", "text": "@WebService(name = \"commonNameGroupService\", targetNamespace = \"urn:Vidal\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface CommonNameGroupService {\n\n\n /**\n * \n * @param pageNumber\n * @param name\n * @param pageSize\n * @param aggregates\n * @return\n * returns com.whatever.CommonNameGroupService.PagedResultCommonNameGroupFull\n */\n @WebMethod\n @WebResult(name = \"pagedResultCommonNameGroupFull\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getAllCommonNameGroupFulls\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CommonNameGroupService.GetAllCommonNameGroupFulls\")\n @ResponseWrapper(localName = \"getAllCommonNameGroupFullsResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CommonNameGroupService.GetAllCommonNameGroupFullsResponse\")\n public PagedResultCommonNameGroupFull getAllCommonNameGroupFulls(\n @WebParam(name = \"name\", targetNamespace = \"urn:Vidal\")\n String name,\n @WebParam(name = \"aggregates\", targetNamespace = \"urn:Vidal\")\n ArrayOfAggregate aggregates,\n @WebParam(name = \"pageSize\", targetNamespace = \"urn:Vidal\")\n Integer pageSize,\n @WebParam(name = \"pageNumber\", targetNamespace = \"urn:Vidal\")\n Integer pageNumber);\n\n /**\n * \n * @param commonNameGroupIds\n * @param aggregates\n * @return\n * returns com.whatever.CommonNameGroupService.ArrayOfCommonNameGroupFull\n */\n @WebMethod\n @WebResult(name = \"commonNameGroupFullList\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getCommonNameGroupFullByIds\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CommonNameGroupService.GetCommonNameGroupFullByIds\")\n @ResponseWrapper(localName = \"getCommonNameGroupFullByIdsResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CommonNameGroupService.GetCommonNameGroupFullByIdsResponse\")\n public ArrayOfCommonNameGroupFull getCommonNameGroupFullByIds(\n @WebParam(name = \"commonNameGroupIds\", targetNamespace = \"urn:Vidal\")\n ArrayOfInt commonNameGroupIds,\n @WebParam(name = \"aggregates\", targetNamespace = \"urn:Vidal\")\n ArrayOfAggregate aggregates);\n\n /**\n * \n * @param commonNameGroupId\n * @return\n * returns com.whatever.CommonNameGroupService.GalenicForm\n */\n @WebMethod\n @WebResult(name = \"galenicForm\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getGalenicForm\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CommonNameGroupService.GetGalenicForm\")\n @ResponseWrapper(localName = \"getGalenicFormResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CommonNameGroupService.GetGalenicFormResponse\")\n public GalenicForm getGalenicForm(\n @WebParam(name = \"commonNameGroupId\", targetNamespace = \"urn:Vidal\")\n Integer commonNameGroupId);\n\n /**\n * \n * @param commonNameGroupId\n * @return\n * returns com.whatever.CommonNameGroupService.ArrayOfConvertibleUnit\n */\n @WebMethod\n @WebResult(name = \"convertibleUnitList\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getUnits\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CommonNameGroupService.GetUnits\")\n @ResponseWrapper(localName = \"getUnitsResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CommonNameGroupService.GetUnitsResponse\")\n public ArrayOfConvertibleUnit getUnits(\n @WebParam(name = \"commonNameGroupId\", targetNamespace = \"urn:Vidal\")\n int commonNameGroupId);\n\n /**\n * \n * @param moleculeIds\n * @return\n * returns com.whatever.CommonNameGroupService.ArrayOfCommonNameGroup\n */\n @WebMethod\n @WebResult(name = \"commonNameGroupList\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"searchByActivePrincipleIds\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CommonNameGroupService.SearchByActivePrincipleIds\")\n @ResponseWrapper(localName = \"searchByActivePrincipleIdsResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CommonNameGroupService.SearchByActivePrincipleIdsResponse\")\n public ArrayOfCommonNameGroup searchByActivePrincipleIds(\n @WebParam(name = \"moleculeIds\", targetNamespace = \"urn:Vidal\")\n ArrayOfInt moleculeIds);\n\n /**\n * \n * @param pageNumber\n * @param pageSize\n * @param aldId\n * @return\n * returns com.whatever.CommonNameGroupService.PagedResultCommonNameGroup\n */\n @WebMethod\n @WebResult(name = \"pagedResultCommonNameGroupByAld\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"searchByAldId\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CommonNameGroupService.SearchByAldId\")\n @ResponseWrapper(localName = \"searchByAldIdResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CommonNameGroupService.SearchByAldIdResponse\")\n public PagedResultCommonNameGroup searchByAldId(\n @WebParam(name = \"aldId\", targetNamespace = \"urn:Vidal\")\n Integer aldId,\n @WebParam(name = \"pageNumber\", targetNamespace = \"urn:Vidal\")\n Integer pageNumber,\n @WebParam(name = \"pageSize\", targetNamespace = \"urn:Vidal\")\n Integer pageSize);\n\n /**\n * \n * @param atcIds\n * @return\n * returns com.whatever.CommonNameGroupService.ArrayOfCommonNameGroup\n */\n @WebMethod\n @WebResult(name = \"commonNameGroupList\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"searchByAtcIds\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CommonNameGroupService.SearchByAtcIds\")\n @ResponseWrapper(localName = \"searchByAtcIdsResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CommonNameGroupService.SearchByAtcIdsResponse\")\n public ArrayOfCommonNameGroup searchByAtcIds(\n @WebParam(name = \"atcIds\", targetNamespace = \"urn:Vidal\")\n ArrayOfInt atcIds);\n\n /**\n * \n * @param commonNameGroupId\n * @return\n * returns com.whatever.CommonNameGroupService.CommonNameGroup\n */\n @WebMethod\n @WebResult(name = \"commonNameGroup\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"searchById\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CommonNameGroupService.SearchById\")\n @ResponseWrapper(localName = \"searchByIdResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CommonNameGroupService.SearchByIdResponse\")\n public CommonNameGroup searchById(\n @WebParam(name = \"commonNameGroupId\", targetNamespace = \"urn:Vidal\")\n Integer commonNameGroupId);\n\n /**\n * \n * @param commonNameGroupIds\n * @return\n * returns com.whatever.CommonNameGroupService.ArrayOfCommonNameGroup\n */\n @WebMethod\n @WebResult(name = \"commonNameGroupList\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"searchByIds\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CommonNameGroupService.SearchByIds\")\n @ResponseWrapper(localName = \"searchByIdsResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CommonNameGroupService.SearchByIdsResponse\")\n public ArrayOfCommonNameGroup searchByIds(\n @WebParam(name = \"commonNameGroupIds\", targetNamespace = \"urn:Vidal\")\n ArrayOfInt commonNameGroupIds);\n\n /**\n * \n * @param indicationLESCode\n * @param pageNumber\n * @param pageSize\n * @return\n * returns com.whatever.CommonNameGroupService.PagedResultCommonNameGroup\n */\n @WebMethod\n @WebResult(name = \"pagedResultCommonNameGroupByIndicationLESCode\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"searchByIndicationLESCode\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CommonNameGroupService.SearchByIndicationLESCode\")\n @ResponseWrapper(localName = \"searchByIndicationLESCodeResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CommonNameGroupService.SearchByIndicationLESCodeResponse\")\n public PagedResultCommonNameGroup searchByIndicationLESCode(\n @WebParam(name = \"indicationLESCode\", targetNamespace = \"urn:Vidal\")\n String indicationLESCode,\n @WebParam(name = \"pageNumber\", targetNamespace = \"urn:Vidal\")\n Integer pageNumber,\n @WebParam(name = \"pageSize\", targetNamespace = \"urn:Vidal\")\n Integer pageSize);\n\n /**\n * \n * @param pageNumber\n * @param pageSize\n * @param operatorType\n * @param indicators\n * @return\n * returns com.whatever.CommonNameGroupService.PagedResultCommonNameGroup\n */\n @WebMethod\n @WebResult(name = \"pagedResultCommonNameGroupByIndicators\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"searchByIndicatorIds\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CommonNameGroupService.SearchByIndicatorIds\")\n @ResponseWrapper(localName = \"searchByIndicatorIdsResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CommonNameGroupService.SearchByIndicatorIdsResponse\")\n public PagedResultCommonNameGroup searchByIndicatorIds(\n @WebParam(name = \"indicators\", targetNamespace = \"urn:Vidal\")\n ArrayOfInt indicators,\n @WebParam(name = \"operatorType\", targetNamespace = \"urn:Vidal\")\n SetOperatorType operatorType,\n @WebParam(name = \"pageNumber\", targetNamespace = \"urn:Vidal\")\n Integer pageNumber,\n @WebParam(name = \"pageSize\", targetNamespace = \"urn:Vidal\")\n Integer pageSize);\n\n /**\n * \n * @param medicaBaseCodes\n * @return\n * returns com.whatever.CommonNameGroupService.ArrayOfCommonNameGroup\n */\n @WebMethod\n @WebResult(name = \"commonNameGroupList\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"searchByMedicaBaseCodes\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CommonNameGroupService.SearchByMedicaBaseCodes\")\n @ResponseWrapper(localName = \"searchByMedicaBaseCodesResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CommonNameGroupService.SearchByMedicaBaseCodesResponse\")\n public ArrayOfCommonNameGroup searchByMedicaBaseCodes(\n @WebParam(name = \"medicaBaseCodes\", targetNamespace = \"urn:Vidal\")\n ArrayOfString medicaBaseCodes);\n\n /**\n * \n * @param name\n * @return\n * returns com.whatever.CommonNameGroupService.ArrayOfCommonNameGroup\n */\n @WebMethod\n @WebResult(name = \"commonNameGroupList\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"searchByName\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CommonNameGroupService.SearchByName\")\n @ResponseWrapper(localName = \"searchByNameResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CommonNameGroupService.SearchByNameResponse\")\n public ArrayOfCommonNameGroup searchByName(\n @WebParam(name = \"name\", targetNamespace = \"urn:Vidal\")\n String name);\n\n /**\n * \n * @param pageNumber\n * @param otherIndicationCode\n * @param pageSize\n * @return\n * returns com.whatever.CommonNameGroupService.PagedResultCommonNameGroup\n */\n @WebMethod\n @WebResult(name = \"pagedResultCommonNameGroupByOtherIndicationCode\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"searchByOtherIndicationCode\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CommonNameGroupService.SearchByOtherIndicationCode\")\n @ResponseWrapper(localName = \"searchByOtherIndicationCodeResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CommonNameGroupService.SearchByOtherIndicationCodeResponse\")\n public PagedResultCommonNameGroup searchByOtherIndicationCode(\n @WebParam(name = \"otherIndicationCode\", targetNamespace = \"urn:Vidal\")\n String otherIndicationCode,\n @WebParam(name = \"pageNumber\", targetNamespace = \"urn:Vidal\")\n Integer pageNumber,\n @WebParam(name = \"pageSize\", targetNamespace = \"urn:Vidal\")\n Integer pageSize);\n\n /**\n * \n * @param packId\n * @return\n * returns com.whatever.CommonNameGroupService.CommonNameGroup\n */\n @WebMethod\n @WebResult(name = \"commonNameGroup\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"searchByPackId\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CommonNameGroupService.SearchByPackId\")\n @ResponseWrapper(localName = \"searchByPackIdResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CommonNameGroupService.SearchByPackIdResponse\")\n public CommonNameGroup searchByPackId(\n @WebParam(name = \"packId\", targetNamespace = \"urn:Vidal\")\n Integer packId);\n\n /**\n * \n * @param productId\n * @return\n * returns com.whatever.CommonNameGroupService.CommonNameGroup\n */\n @WebMethod\n @WebResult(name = \"commonNameGroup\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"searchByProductId\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CommonNameGroupService.SearchByProductId\")\n @ResponseWrapper(localName = \"searchByProductIdResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CommonNameGroupService.SearchByProductIdResponse\")\n public CommonNameGroup searchByProductId(\n @WebParam(name = \"productId\", targetNamespace = \"urn:Vidal\")\n Integer productId);\n\n /**\n * \n * @param ucdId\n * @return\n * returns com.whatever.CommonNameGroupService.ArrayOfCommonNameGroup\n */\n @WebMethod\n @WebResult(name = \"commonNameGroupList\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"searchByUcdId\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CommonNameGroupService.SearchByUcdId\")\n @ResponseWrapper(localName = \"searchByUcdIdResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CommonNameGroupService.SearchByUcdIdResponse\")\n public ArrayOfCommonNameGroup searchByUcdId(\n @WebParam(name = \"ucdId\", targetNamespace = \"urn:Vidal\")\n Integer ucdId);\n\n /**\n * \n * @param commonNameGroupIds\n * @return\n * returns com.whatever.CommonNameGroupService.ArrayOfCommonNameGroupIndicators\n */\n @WebMethod\n @WebResult(name = \"commonNameGroupIndicatorsList\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"searchCommonNameGroupIndicatorsByCommonNameGroupIds\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CommonNameGroupService.SearchCommonNameGroupIndicatorsByCommonNameGroupIds\")\n @ResponseWrapper(localName = \"searchCommonNameGroupIndicatorsByCommonNameGroupIdsResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.CommonNameGroupService.SearchCommonNameGroupIndicatorsByCommonNameGroupIdsResponse\")\n public ArrayOfCommonNameGroupIndicators searchCommonNameGroupIndicatorsByCommonNameGroupIds(\n @WebParam(name = \"commonNameGroupIds\", targetNamespace = \"urn:Vidal\")\n ArrayOfInt commonNameGroupIds);\n\n}", "title": "" }, { "docid": "2ecfca63cc4ffedbef6934a34e76ef5f", "score": "0.57024837", "text": "@WebService(targetNamespace = \"http://webservice.fjzl.wondersgroup.com/\", name = \"ZhuanzhenInterface\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface ZhuanzhenInterface {\n\n @WebMethod\n @RequestWrapper(localName = \"inpatientApply\", targetNamespace = \"http://webservice.fjzl.wondersgroup.com/\", className = \"com.boco.common.soapClient.InpatientApply\")\n @ResponseWrapper(localName = \"inpatientApplyResponse\", targetNamespace = \"http://webservice.fjzl.wondersgroup.com/\", className = \"com.boco.common.soapClient.InpatientApplyResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String inpatientApply(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n java.lang.String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n java.lang.String arg1\n );\n\n @WebMethod\n @RequestWrapper(localName = \"outpatientDetail\", targetNamespace = \"http://webservice.fjzl.wondersgroup.com/\", className = \"com.boco.common.soapClient.OutpatientDetail\")\n @ResponseWrapper(localName = \"outpatientDetailResponse\", targetNamespace = \"http://webservice.fjzl.wondersgroup.com/\", className = \"com.boco.common.soapClient.OutpatientDetailResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String outpatientDetail(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n java.lang.String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n java.lang.String arg1\n );\n\n @WebMethod\n @RequestWrapper(localName = \"inpatientAction\", targetNamespace = \"http://webservice.fjzl.wondersgroup.com/\", className = \"com.boco.common.soapClient.InpatientAction\")\n @ResponseWrapper(localName = \"inpatientActionResponse\", targetNamespace = \"http://webservice.fjzl.wondersgroup.com/\", className = \"com.boco.common.soapClient.InpatientActionResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String inpatientAction(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n java.lang.String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n java.lang.String arg1\n );\n\n @WebMethod\n @RequestWrapper(localName = \"inpatientDetail\", targetNamespace = \"http://webservice.fjzl.wondersgroup.com/\", className = \"com.boco.common.soapClient.InpatientDetail\")\n @ResponseWrapper(localName = \"inpatientDetailResponse\", targetNamespace = \"http://webservice.fjzl.wondersgroup.com/\", className = \"com.boco.common.soapClient.InpatientDetailResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String inpatientDetail(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n java.lang.String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n java.lang.String arg1\n );\n\n @WebMethod\n @RequestWrapper(localName = \"outpatientApply\", targetNamespace = \"http://webservice.fjzl.wondersgroup.com/\", className = \"com.boco.common.soapClient.OutpatientApply\")\n @ResponseWrapper(localName = \"outpatientApplyResponse\", targetNamespace = \"http://webservice.fjzl.wondersgroup.com/\", className = \"com.boco.common.soapClient.OutpatientApplyResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String outpatientApply(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n java.lang.String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n java.lang.String arg1\n );\n\n @WebMethod\n @RequestWrapper(localName = \"outpatientAction\", targetNamespace = \"http://webservice.fjzl.wondersgroup.com/\", className = \"com.boco.common.soapClient.OutpatientAction\")\n @ResponseWrapper(localName = \"outpatientActionResponse\", targetNamespace = \"http://webservice.fjzl.wondersgroup.com/\", className = \"com.boco.common.soapClient.OutpatientActionResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String outpatientAction(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n java.lang.String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n java.lang.String arg1\n );\n\n @WebMethod\n @RequestWrapper(localName = \"inpatientList\", targetNamespace = \"http://webservice.fjzl.wondersgroup.com/\", className = \"com.boco.common.soapClient.InpatientList\")\n @ResponseWrapper(localName = \"inpatientListResponse\", targetNamespace = \"http://webservice.fjzl.wondersgroup.com/\", className = \"com.boco.common.soapClient.InpatientListResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String inpatientList(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n java.lang.String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n java.lang.String arg1\n );\n\n @WebMethod\n @RequestWrapper(localName = \"outpatientList\", targetNamespace = \"http://webservice.fjzl.wondersgroup.com/\", className = \"com.boco.common.soapClient.OutpatientList\")\n @ResponseWrapper(localName = \"outpatientListResponse\", targetNamespace = \"http://webservice.fjzl.wondersgroup.com/\", className = \"com.boco.common.soapClient.OutpatientListResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String outpatientList(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n java.lang.String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n java.lang.String arg1\n );\n}", "title": "" }, { "docid": "872bba99cd21cd77c1b87cbb70818429", "score": "0.569842", "text": "@WebService\npublic interface OrderService {\n\n\tpublic Set<OrderRepresentation> getOrders();\n\tpublic OrderRepresentation getOrder(String orderId);\n\n}", "title": "" }, { "docid": "3b18d89f1010c725392b1c533063318e", "score": "0.56947136", "text": "@WebService(targetNamespace = \"http://ws.shop.best.company.my/\", name = \"AccountManagementWebService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface AccountManagementWebService {\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getAccount\", targetNamespace = \"http://ws.shop.best.company.my/\", className = \"my.company.best.shop.client.GetAccount\")\n @WebMethod\n @ResponseWrapper(localName = \"getAccountResponse\", targetNamespace = \"http://ws.shop.best.company.my/\", className = \"my.company.best.shop.client.GetAccountResponse\")\n public my.company.best.shop.client.AccountDTO getAccount(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n java.lang.String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n java.lang.String arg1\n );\n}", "title": "" } ]
d8922b486367a1449286fae4b10acbc2
ReverseArcMakesCycle IsArc checks whether the arc from iAttributeTail to iAttributeHead already exists
[ { "docid": "346900d769a8a00ccc46b2a869470483", "score": "0.62125015", "text": "protected boolean isArc(BayesNet bayesNet, int iAttributeHead, int iAttributeTail) {\n for (int iParent = 0; iParent < bayesNet.getParentSet(iAttributeHead).getNrOfParents(); iParent++) {\n if (bayesNet.getParentSet(iAttributeHead).getParent(iParent) == iAttributeTail) {\n return true;\n }\n }\n\n return false;\n }", "title": "" } ]
[ { "docid": "5ae9b1dcaa2299281ddf658585337b4b", "score": "0.7611707", "text": "protected boolean reverseArcMakesSense(\n BayesNet bayesNet,\n Instances instances,\n int iAttributeHead,\n int iAttributeTail) {\n \n if (iAttributeHead == iAttributeTail) {\n return false;\n }\n\n // sanity check: arc should be in parent set already\n if (!isArc(bayesNet, iAttributeHead, iAttributeTail)) {\n return false;\n }\n\n // sanity check: arc should not introduce a cycle\n int nNodes = instances.numAttributes();\n boolean[] bDone = new boolean[nNodes];\n\n for (int iNode = 0; iNode < nNodes; iNode++) {\n bDone[iNode] = false;\n }\n\n // check for cycles\n\t\tbayesNet.getParentSet(iAttributeTail).addParent(iAttributeHead, instances);\n\n for (int iNode = 0; iNode < nNodes; iNode++) {\n\n // find a node for which all parents are 'done'\n boolean bFound = false;\n\n for (int iNode2 = 0; !bFound && iNode2 < nNodes; iNode2++) {\n if (!bDone[iNode2]) {\n \tParentSet parentSet = bayesNet.getParentSet(iNode2);\n boolean bHasNoParents = true;\n for (int iParent = 0; iParent < parentSet.getNrOfParents(); iParent++) {\n if (!bDone[parentSet.getParent(iParent)]) {\n \t\n // this one has a parent which is not 'done' UNLESS it is the arc to be reversed\n if (!(iNode2 == iAttributeHead && parentSet.getParent(iParent) == iAttributeTail)) {\n bHasNoParents = false;\n }\n }\n }\n\n if (bHasNoParents) {\n bDone[iNode2] = true;\n bFound = true;\n }\n }\n }\n\n if (!bFound) {\n bayesNet.getParentSet(iAttributeTail).deleteLastParent(instances);\n return false;\n }\n }\n\n bayesNet.getParentSet(iAttributeTail).deleteLastParent(instances);\n return true;\n }", "title": "" }, { "docid": "7e54c00542147b0092c60b31dfe40091", "score": "0.66515523", "text": "protected boolean reverseArc() {\n \n Node util; \n Node candidate; \n Node dest; \n NodeList parents; \n NodeList candidateChildren; \n Link link; \n int i,j; \n \n // we obtain the utility node \n \n util = diag.getValueNode(); \n parents = diag.parents(util); \n \n for (i=0; i < parents.size(); i++) {\n \n candidate = parents.elementAt(i); \n \n if (candidate.getKindOfNode() == candidate.CHANCE) {\n // We look for a node: \n // - parent of the utility node \n // - is not parent of a decision nodo\n // - parent of another chance node \n // - only one path between these two nodes \n \n candidateChildren = diag.children(candidate);\n if (candidate.hasDirectDecisionChild() == false && \n candidate.isUtilityParent() == true && \n candidateChildren.size() > 1) {\n\n\t // Consider the childrens of the candidate. \n\t // Revert the arc if there is only one \n\t // path between them \n\t\n\t for (j=0; j < candidateChildren.size(); j++) {\n\t \n\t dest = candidateChildren.elementAt(j); \n\n // Act if is a chance node\n\n if (dest.getKindOfNode() == Node.CHANCE) {\n\n\t link = diag.getLink(candidate,dest); \n\t \n\t // Now we see if there is another link between them \n\n if (candidate.moreThanAPath(dest) == false) {\n\n\t // We modify the relations of the nodes \n\t \n\t modifyLinks(candidate,dest); \n\t \n\t // Return true \n\t \n\t return(true); \n }\n }\n\t } \n } \n } \n } \n return(false); \n}", "title": "" }, { "docid": "ddbb4d36ced7fcec69119c82851aa30a", "score": "0.6132394", "text": "protected boolean addArcMakesSense(\n BayesNet bayesNet,\n Instances instances,\n int iAttributeHead,\n int iAttributeTail) {\n if (iAttributeHead == iAttributeTail) {\n return false;\n }\n\n // sanity check: arc should not be in parent set already\n if (isArc(bayesNet, iAttributeHead, iAttributeTail)) {\n return false;\n }\n\n // sanity check: arc should not introduce a cycle\n int nNodes = instances.numAttributes();\n boolean[] bDone = new boolean[nNodes];\n\n for (int iNode = 0; iNode < nNodes; iNode++) {\n bDone[iNode] = false;\n }\n\n // check for cycles\n bayesNet.getParentSet(iAttributeHead).addParent(iAttributeTail, instances);\n\n for (int iNode = 0; iNode < nNodes; iNode++) {\n\n // find a node for which all parents are 'done'\n boolean bFound = false;\n\n for (int iNode2 = 0; !bFound && iNode2 < nNodes; iNode2++) {\n if (!bDone[iNode2]) {\n boolean bHasNoParents = true;\n\n for (int iParent = 0; iParent < bayesNet.getParentSet(iNode2).getNrOfParents(); iParent++) {\n if (!bDone[bayesNet.getParentSet(iNode2).getParent(iParent)]) {\n bHasNoParents = false;\n }\n }\n\n if (bHasNoParents) {\n bDone[iNode2] = true;\n bFound = true;\n }\n }\n }\n\n if (!bFound) {\n bayesNet.getParentSet(iAttributeHead).deleteLastParent(instances);\n\n return false;\n }\n }\n\n bayesNet.getParentSet(iAttributeHead).deleteLastParent(instances);\n\n return true;\n }", "title": "" }, { "docid": "cd9bd1a77d3fa66f499d31e6dfb7ed01", "score": "0.56339777", "text": "@Override\n\tpublic void update(IAttribute iattr) {\n\n\t\tif ( iattr instanceof IArc ){\n\t\t\tIArc attr = (IArc) iattr;\n\t\t\tthis.setAxisRatio(attr.getAxisRatio());\n\t\t\tthis.setStartAngle(attr.getStartAngle());\n\t\t\tthis.setEndAngle(attr.getEndAngle());\n\t\t\tthis.setColors(attr.getColors() );\n\t\t\tthis.setLineWidth(attr.getLineWidth());\t \n\t\t\tthis.setSizeScale(attr.getSizeScale());\n\t\t}\n\t \t\t\n\t}", "title": "" }, { "docid": "fb96d7284e1495e64eb55a1877ce0b75", "score": "0.54384845", "text": "public boolean continueloopArc(Arc arc) {\r\n\r\n if (arc.getCenterX() >= 350) {\r\n arc.setCenterX(arc.getCenterX() - 1);\r\n return true;\r\n\r\n } else if (arc.getCenterX() < 350 && arc.getCenterX() > 295) {\r\n arc.setLength(arc.getLength() - 3);\r\n arc.setCenterX(arc.getCenterX() - 1);\r\n return true;\r\n\r\n } else if (arc.getCenterX() == 295 && arcControl <= 6) {\r\n arc.setLength(arc.getLength() - 5);\r\n arcControl++;\r\n return true;\r\n\r\n }\r\n pane.getChildren().remove(arc);\r\n return true;\r\n }", "title": "" }, { "docid": "04594a1e72cdc86a486fceaeb070f2f6", "score": "0.5403805", "text": "private Arc getOtherEndOfArc(Arc arc, Vertex end){\n Arc result = arc.target.first;\n while (result.target != end){\n result = result.next;\n }\n\n return result;\n }", "title": "" }, { "docid": "29e474376fea299b73e70ee5b60ff72a", "score": "0.53836745", "text": "public Iterator<UndirectedArc> getUndirectedArcs();", "title": "" }, { "docid": "e7011c931349295550533b45088d2489", "score": "0.536172", "text": "public QualitativeArcReversal(IDiagram id) {\n\n super(id.qualitativeCopy());\n orderOfElimination=new Vector();\n\n // After this operation the diag is complete, without any\n // change, so could be used again\n}", "title": "" }, { "docid": "73d62fd97d8da927ccc8d6a5c988aa48", "score": "0.5288513", "text": "public void removeArc(DirectedArc arc);", "title": "" }, { "docid": "231ebb0fc76e2f3704edad5b5e9f889e", "score": "0.525492", "text": "public void removeArc(UndirectedArc arc);", "title": "" }, { "docid": "c53de3664d02ed5b251c0e6e5095749a", "score": "0.52386564", "text": "public Iterator<DirectedArc> getDirectedArcs();", "title": "" }, { "docid": "987194e20e7b8e078664cf1b136da034", "score": "0.5219948", "text": "public boolean contains(CircleArc2D arc) {\n return curves.contains(arc) || curves.contains(arc.reverse());\n }", "title": "" }, { "docid": "4c8839d24d1a59fe075d86cbeca266d0", "score": "0.51751065", "text": "private boolean sequentialNodeHasAtLeastOneOptionalArc(PerformanceTreeNode node) {\n\t\tif (node instanceof SequentialNode) {\n\t\t\tSequentialNode seqNode = (SequentialNode)node;\n\t\t\tArrayList<String> outgoingArcIDs = (ArrayList<String>)seqNode.getOutgoingArcIDs();\n\t\t\tIterator<String> i = outgoingArcIDs.iterator();\n\t\t\tint optionalArcCount = 0;\n\t\t\twhile (i.hasNext()) {\n\t\t\t\tPerformanceTreeArc arc = QueryManager.getData().getArc(i.next());\n\t\t\t\tif (!arc.isRequired()) \n\t\t\t\t\toptionalArcCount++;\n\t\t\t}\n\t\t\tif (optionalArcCount > 1) \n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\telse return false;\n\t}", "title": "" }, { "docid": "a1e2d126ed0aec69db0d2ae0850736b0", "score": "0.5143137", "text": "public boolean removeEdge(Arc a) {\n\t\tif (this.hasVirtuallyRemoved(a) || !edges.remove(a)) // true if a == null\n\t\t\treturn false;\n\n\t\tif (a.isDirected()) {\n\t\t\tgetOutputs(a.getInput()).remove(a);\n\t\t\tgetInputs(a.getOutput()).remove(a);\n\t\t} else {\n\t\t\tgetUndirectedNeighours(a.getInput()).remove(a);\n\t\t\tgetUndirectedNeighours(a.getOutput()).remove(a);\n\t\t}\n\t\treturn true;\n\n\t}", "title": "" }, { "docid": "405b8494e16923416023f6e381c17dc6", "score": "0.5106504", "text": "public boolean ac3(){\n\t\t\n\t/*\tqueue = new LinkedList();\n\t\tfor( int i = 0 ; i< 81; i++)\n\t\tfor (Integer j: neighbour[i])\n\t\tqueue.add(new Arcs(i,j));\n\t\t*/\n\t\twhile(!queue.isEmpty()){\n\t\t\t\n\t\t\tArcs arc = queue.remove();\n\t\t\tint xi = arc.node1;\n\t\t\tint xj = arc.node2;\n\t\t\t\n\t\t\tif(revise(arc)){\n\t\t\t\tif(cell[xi].size()==0)\n\t\t\t\t\treturn false;\n\t\t\t//System.out.println(xi + \" \" + xj);\n\t\t\t//\tHashSet<Integer> temp = (HashSet<Integer>) neighbour[xi].clone();\n\t\t\t//\ttemp.remove(xj);\t\t\t\n\t\t\t\t\n\t\t\t\tfor (Integer xk : neighbour[xi]) {\n\t\t\t\t\t//if(!(neighbour[xj].contains(xk)))\n\t\t\t\t\tif(xk!=xj)\n\t\t\t\t\tqueue.add(new Arcs(xk,xi));\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "c97a3981c3197673a1d5c6f375f2e719", "score": "0.50968665", "text": "public boolean addArc ( int i, int j) {\n \n boolean check = false;\n \n //if arc doesn't exist, create arc || using -1 to match with arrays starting from 0\n if (!existsArc (i-1, j-1)) {\n \n setArc (i-1, j-1, true);\n check = true;\n }\n \n return check;\n }", "title": "" }, { "docid": "359b3630e8a334cb40cf168fce786778", "score": "0.50474626", "text": "private boolean isHoldoverArc(Edge edge){\n \tif (edge==null)\n \t\tthrow new AssertionError(Localization.getInstance (\n\t\t\t).getString (\"ds.graph.EdgeIsNullException\"));\n \tif (edge.start() == null)\n \t\tthrow new AssertionError(Localization.getInstance (\n\t\t\t).getString (\"ds.graph.StartNodeIsNullException\"));\n \tif (edge.end() == null)\n \t\tthrow new AssertionError(Localization.getInstance (\n\t\t\t).getString (\"ds.graph.EndNodeIsNullException\"));\n \treturn (originalID.get(edge.start()) == originalID.get(edge.end()));\n }", "title": "" }, { "docid": "94ffcfbfe191311e238941dba4dc447e", "score": "0.5037483", "text": "public boolean isCycle(){\n return order==null;\n }", "title": "" }, { "docid": "8a872059497d7f8e81104e1e7a688fa7", "score": "0.5017494", "text": "public void removeArc(Knot.Arc arc)\n {\n // not implemented\n }", "title": "" }, { "docid": "e44924926ea1f20c871d692297cc9df0", "score": "0.49694407", "text": "public boolean reverseAccrualIt()\n\t{\n\t\tlog.info(\"reverseAccrualIt - \" + toString());\n\t\treturn false;\n\t}", "title": "" }, { "docid": "567209673bb65bdd9452110550887a4c", "score": "0.49426174", "text": "protected void reverse() {\n\t\tstartAngle *= -1;\n\t}", "title": "" }, { "docid": "519e706e432bcc3cfed895b71a7c83c4", "score": "0.4915937", "text": "public boolean nodeHasDirectedArcs(GraphNode node);", "title": "" }, { "docid": "80efb2537737900471488f9a4b4f2dc9", "score": "0.47982728", "text": "public boolean isShowArcOnly(){\n\t\treturn drawArcOnly;\n\t}", "title": "" }, { "docid": "80efb2537737900471488f9a4b4f2dc9", "score": "0.47982728", "text": "public boolean isShowArcOnly(){\n\t\treturn drawArcOnly;\n\t}", "title": "" }, { "docid": "32f7765b95c5a650b16c03ac1109e24d", "score": "0.4758447", "text": "@Override\n\tpublic boolean reverseAccrualIt() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "e4c9f8479069e2fc380dc6790ae68e46", "score": "0.4740019", "text": "public boolean hasCycle() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "411fb743a6bca226f1e0dd5507a3940f", "score": "0.47225356", "text": "public boolean existsArc ( int i, int j) {\n \n boolean check = true;\n \n //if arc doesn't exist, send back false\n if (!getArc (i, j))\n check = false;\n \n return check;\n \n }", "title": "" }, { "docid": "2c50b2dc6b06d5cb318f366e6b5605f7", "score": "0.4717545", "text": "public boolean nodeHasArcs(GraphNode node);", "title": "" }, { "docid": "cdb342e673506e80d6a4e063112a0167", "score": "0.4709189", "text": "public T caseArc(Arc object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "95a83a019258a9d45036f98d2b39fe88", "score": "0.46621147", "text": "public boolean isOnReverseStrand();", "title": "" }, { "docid": "b13fc0d07a48fa29c1fb3fb98b4ae63c", "score": "0.46353474", "text": "private boolean sequentialNodeCase() {\n\t\tPerformanceTreeNode node = (PerformanceTreeNode)selected;\n\t\tif (node.getIncomingArc() != null) {\n\t\t\tPerformanceTreeArc incomingArc = node.getIncomingArc();\n\t\t\tPerformanceTreeNode parentNode = incomingArc.getSource();\n\t\t\tif (!incomingArc.isRequired() && \n\t\t\t\tparentNode instanceof SequentialNode &&\n\t\t\t\tsequentialNodeHasAtLeastOneOptionalArc(parentNode)) {\n\t\t\t\tnode.delete();\n\t\t\t\tincomingArc.delete();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "63981c1546432243cb0ee01113323f82", "score": "0.46238014", "text": "public static Constraint arc_channeling(IDirectedGraphVar g, BoolVar isArc, int from, int to){\n\t\treturn new Constraint(\"arcChanneling\",\n\t\t\t\tnew PropArcBoolChannel(isArc,from,to,g));\n\t}", "title": "" }, { "docid": "0528ff29c7c228310909ce64283646a9", "score": "0.45843163", "text": "public void createArcsFromTable()\n\t{\n\t\t\n\t\tfor(int i = 0; i < tableModel.getRowCount(); i++)\n\t\t{\n\t\t\tGraphNode n1 = tableNodeMap.get(tableModel.getColumnObjects().get(i));\n\t\t\tfor(int j = 0; j < tableModel.getColumnCount() - 1; j++)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tGraphNode n2 = tableNodeMap.get(tableModel.getColumnObjects().get(j));\n\t\t\t\tObject o = tableModel.getValueAt(i, j+1); // j+1 because squaretable model is out of sync\n\t\t\t\tif(o instanceof Boolean)\n\t\t\t\t{\n\t\t\t\t\tif(((Boolean)o).booleanValue() == true)\n\t\t\t\t\t{\n\t\t\t new DefaultDirectedArc(n1, n2); //addDiArc(n1, n2);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(o instanceof Integer)\n\t\t\t\t{\n\t\t\t\t\tif(((Integer)o).intValue() == 1)\n\t\t\t\t\t{\t\n\t\t\t new DefaultDirectedArc(n1, n2); //addDiArc(n1, n2);\n\t\t\t }\n\t\t\t\t\telse if(((Integer)o).intValue() == 2)\n\t\t\t\t\t{\n\t\t new DefaultUndirectedArc(n1, n2);\t\t\t\t//\t\taddBiArc(n1, n2);\n \t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if(o != null)\n\t\t\t\t{\n \t\t\t\tDirectedArc temp = new DefaultDirectedArc(n1, n2);\n\t\t\t\t\ttemp.setUserObject(o);\t\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "2b5c3fa60cc1a4914f8ea35cde08332a", "score": "0.4556617", "text": "@Override\n\tpublic DrawableElement copy() {\n \t\t\n\n\t\t/*\n\t\t * create a new Line object and initially set its attributes to this one's\n\t\t */\n\t\tArc newArc = new Arc();\n\t\tnewArc.update( this );\n\t\t\n\t\t/*\n\t\t * new Coordinates points are created and set, so we don't just set \n\t\t * references\n\t\t */\n\t\tArrayList<Coordinate> ptsCopy = new ArrayList<Coordinate>();\n\t\tfor (int i=0; i < this.getPoints().size(); i++) {\n\t\t\tptsCopy.add(new Coordinate(this.getPoints().get(i)));\n\t\t}\n\t\tnewArc.setPoints(ptsCopy);\n\t\t\n\t\t/*\n\t\t * new colors are created and set, so we don't just set \n\t\t * references\n\t\t */\n\t\tColor[] colorCopy = new Color[ this.getColors().length ];\n\t\tfor (int i = 0; i < this.getColors().length; i++) {\n\t\t\tcolorCopy[ i ] = new Color(this.getColors()[ i ].getRed(),\n\t\t\t\t\t this.getColors()[ i ].getGreen(),\n\t\t\t\t\t this.getColors()[ i ].getBlue() );\n\t\t}\n\t\t\n\t\tnewArc.setColors( colorCopy) ;\n\t\t\n\t\t/*\n\t\t * new Strings are created for Type and LinePattern\n\t\t */\n\t\tnewArc.setPgenCategory( new String( this.getPgenCategory() ) );\n\t\tnewArc.setPgenType( new String( this.getPgenType() ) );\n\t\t\n\t\tnewArc.setParent(this.getParent());\n\t\treturn newArc;\n\n\t}", "title": "" }, { "docid": "0055a7576212b172b2b119e4865b5298", "score": "0.45527372", "text": "public void setReverseDrawingAnimation(boolean shouldReverseAnimation) {\n this.reverseDrawingAnimation = shouldReverseAnimation;\n }", "title": "" }, { "docid": "32fbafb73100387728f01331566c26f3", "score": "0.45487034", "text": "public void removeDirectedArcs(Integer input, Integer output) {\n\t\tremoveArcs(input, output, true);\n\t}", "title": "" }, { "docid": "45c063829d19f16d5342e0d10ea76e94", "score": "0.45272958", "text": "public boolean hasNegativeCycle() {\n return cycle != null;\n }", "title": "" }, { "docid": "1bb6978f8a79f0d4f0835f18e4c22bf0", "score": "0.4492007", "text": "public boolean isAlternating();", "title": "" }, { "docid": "a41c7890c627f53a2aa9b2d0a606dd47", "score": "0.44896814", "text": "public void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle) {\n/* 527 */ Arc2D arc = new Arc2D.Float(x, y, width, height, startAngle, arcAngle, 2);\n/* 528 */ fill(arc);\n/* */ }", "title": "" }, { "docid": "eb26cb61ed384776914a30d9425c6526", "score": "0.4483929", "text": "public static Arc cloneArc(Arc a){\n Arc newA = new Arc(a.center, a.radius);\n a.vrts.forEach(v -> newA.vrts.add(new Point(v)));\n newA.setNormal(a.normal);\n newA.setEndPoints(newA.vrts.get(0), newA.vrts.get(newA.vrts.size() - 1), false);\n newA.baseSubdivision = a.baseSubdivision;\n return newA;\n }", "title": "" }, { "docid": "83692031fb6306e4e660be85cb0d5791", "score": "0.44812775", "text": "public void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle) {\n/* 484 */ Arc2D arc = new Arc2D.Float(x, y, width, height, startAngle, arcAngle, 0);\n/* 485 */ draw(arc);\n/* */ }", "title": "" }, { "docid": "2e4367fcd413df0fbd4ee9c0add23e49", "score": "0.44777364", "text": "public boolean hasMateOnReverseStrand();", "title": "" }, { "docid": "812c979294429a444c3f3888285beb92", "score": "0.44731456", "text": "public void renderArc( PVector l, String cmd, int dir, int c, float o, float w ){\n PShape a;\n\n float cx = parseNumber(cmd, \"I\", 0.0f)+l.x;\n float cy = parseNumber(cmd, \"J\", 0.0f)+l.y;\n float x = parseNumber(cmd, \"X\", l.x);\n float y = parseNumber(cmd, \"Y\", l.y);\n float dx2 = l.x - cx;\n float dy2 = l.y - cy;\n float dx1 = x - cx;\n float dy1 = y - cy;\n\n float r = sqrt( pow(dx1,2) + pow(dy1,2) );\n\n float SA = TWO_PI - atan2(dy1, dx1);\n float EA = TWO_PI - atan2(dy2, dx2);\n\n if( dir == 3 && SA > EA){\n EA += TWO_PI;\n } else if( dir == 2 && EA > SA){\n SA += TWO_PI;\n }\n\n noFill();\n stroke(c,o);\n strokeWeight(w);\n\n if( dir == 2){\n a = createShape(ARC, cx*scalar, cy*scalar, r*2*scalar, r*2*scalar, EA, SA);\n } else {\n a = createShape(ARC, cx*scalar, cy*scalar, r*2*scalar, r*2*scalar, SA, EA);\n }\n preview.addChild(a);\n l.x = x;\n l.y = y;\n}", "title": "" }, { "docid": "290848d4a3e94742052ddd4dffcc8efa", "score": "0.44618124", "text": "public PerformanceTreeArc addArc(final PerformanceTreeArc arcInput)\n\t{\n\t\tboolean unique = true;\n\t\tif (arcInput != null)\n\t\t{\n\t\t\tif (arcInput.getId() != null && arcInput.getId().length() > 0)\n\t\t\t{\n\t\t\t\t// arc already has an ID assigned to it\n for(PerformanceTreeArc treeArc : this.treeArcs)\n {\n if(arcInput.getId().equals(treeArc.getId()))\n {\n // check if an arc with the same id already exists\n unique = false;\n }\n }\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// ID hasn't been assigned yet, since the arc has just been\n\t\t\t\t// created, so do it now\n\t\t\t\tthis.arcCounter += 1;\n\t\t\t\tarcInput.setId(\"Arc \" + this.arcCounter);\n\t\t\t}\n\n\t\t\tif (QueryManager.getMode() == QueryConstants.LOADING)\n\t\t\t{\n\t\t\t\t// we're loading in an arc, so need to increment the counter\n\t\t\t\tthis.arcCounter++;\n\t\t\t}\n\n\t\t\tif (unique)\n\t\t\t{\n\t\t\t\tthis.treeArcs.add(arcInput);\n\t\t\t\tsetChanged();\n\t\t\t\tnotifyObservers(arcInput);\n\t\t\t\treturn arcInput;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "5f4a6e9fb8155d9fd82c9214a78ad322", "score": "0.44610566", "text": "void addArc(float x, float y, float w, float h,\n float start, float stop,\n boolean fill, boolean stroke, int arcMode) {\n float hr = w / 2f;\n float vr = h / 2f;\n\n float centerX = x + hr;\n float centerY = y + vr;\n\n int startLUT = (int) (0.5f + (start / TWO_PI) * SINCOS_LENGTH);\n int stopLUT = (int) (0.5f + (stop / TWO_PI) * SINCOS_LENGTH);\n\n // get length before wrapping indexes so (startLUT <= stopLUT);\n int length = PApplet.constrain(stopLUT - startLUT, 0, SINCOS_LENGTH);\n\n boolean fullCircle = length == SINCOS_LENGTH;\n\n if (fullCircle && arcMode == CHORD) {\n // get rid of overlapping vertices,\n // solves problem with closing edge in P3D\n length -= 1;\n stopLUT -= 1;\n }\n\n { // wrap indexes so they are safe to use in LUT\n startLUT %= SINCOS_LENGTH;\n if (startLUT < 0) startLUT += SINCOS_LENGTH;\n\n stopLUT %= SINCOS_LENGTH;\n if (stopLUT < 0) stopLUT += SINCOS_LENGTH;\n }\n\n int idx0;\n if (arcMode == CHORD || arcMode == OPEN) {\n // move center to the middle of flat side\n // to properly display arcs smaller than PI\n float relX = (COS_LUT[startLUT] + COS_LUT[stopLUT]) * 0.5f * hr;\n float relY = (SIN_LUT[startLUT] + SIN_LUT[stopLUT]) * 0.5f * vr;\n idx0 = addVertex(centerX + relX, centerY + relY, VERTEX, true);\n } else {\n idx0 = addVertex(centerX, centerY, VERTEX, true);\n }\n\n int inc;\n { // initializes inc the same way ellipse does\n float sx1 = pg.screenX(x, y);\n float sy1 = pg.screenY(x, y);\n float sx2 = pg.screenX(x + w, y + h);\n float sy2 = pg.screenY(x + w, y + h);\n\n int accuracy =\n PApplet.min(MAX_POINT_ACCURACY, PApplet.max(MIN_POINT_ACCURACY,\n (int) (TWO_PI * PApplet.dist(sx1, sy1, sx2, sy2) /\n POINT_ACCURACY_FACTOR)));\n inc = PApplet.max(1, SINCOS_LENGTH / accuracy);\n }\n\n int idx = idx0;\n int pidx;\n\n int i = -inc;\n int ii;\n\n // i: (0 -> length) inclusive\n // ii: (startLUT -> stopLUT) inclusive, going CW (left-handed),\n // wrapping around end of LUT\n do {\n i += inc;\n i = PApplet.min(i, length); // clamp so last vertex won't go over\n\n ii = startLUT + i; // ii from 0 to (2 * SINCOS_LENGTH - 1)\n if (ii >= SINCOS_LENGTH) ii -= SINCOS_LENGTH;\n\n pidx = idx;\n idx = addVertex(centerX + COS_LUT[ii] * hr,\n centerY + SIN_LUT[ii] * vr,\n VERTEX, i == 0 && !fill);\n\n if (stroke) {\n if (arcMode == CHORD || arcMode == PIE) {\n addEdge(pidx, idx, i == 0, false);\n } else if (0 < i) {\n // when drawing full circle, the edge is closed later\n addEdge(pidx, idx, i == PApplet.min(inc, length),\n i == length && !fullCircle);\n }\n }\n } while (i < length);\n\n // keeping last vertex as idx and second last vertex as pidx\n\n if (stroke) {\n if (arcMode == CHORD || arcMode == PIE) {\n addEdge(idx, idx0, false, false);\n closeEdge(idx, idx0);\n } else if (fullCircle) {\n closeEdge(pidx, idx);\n }\n }\n }", "title": "" }, { "docid": "3333bb594f825c099666550f63f6fa75", "score": "0.444271", "text": "protected BinaryConstraint arc(int var, int futureVar) {\n //If constraint exists for (xi, xj), return it\n if (constraints.containsKey(var) && constraints.get(var).containsKey(futureVar)) {\n return constraints.get(var).get(futureVar);\n } else if (constraints.containsKey(futureVar) && constraints.get(futureVar).containsKey(var)) {\n //Otherwise find equivalent constraint, modify it accordingly and return it\n BinaryConstraint constraint = constraints.get(futureVar).get(var);\n constraint.reverse();\n return constraint;\n } else {\n //No constraint between xi and xj\n return null;\n }\n }", "title": "" }, { "docid": "bdc949adc3f7d23e5ff46c40e6bc1ec1", "score": "0.44404212", "text": "public boolean isIsAcyclic() {\n return this.isAcyclic;\n }", "title": "" }, { "docid": "ab2fcd380280c6ae3df52e7fbe14d4e8", "score": "0.44212633", "text": "private void computeTransitionAngle(ArrayList<Transition> transitions) {\n State hostState = aggregateTransition.getTransitionStart();\n \n // Get all LineTransitions that involve the ArcTransitions state\n ArrayList<Transition> lineTransitions = Transition.getLineTransitionsByState(\n hostState, transitions);\n\n // Get a list of all Transition-PaintingPoints on the states circle\n ArrayList<Point> circlePoints = getStateCirclePoints(lineTransitions);\n \n // Compute all the circlePoints angles in relation to the states center\n // and sorts them.\n ArrayList<Double> circlePointsAngles = circlePointAngles(circlePoints);\n \n // find the best spot for the Arc to be painted.\n this.arcAngle = middleOfBiggestGap(circlePointsAngles);\n }", "title": "" }, { "docid": "0d34eea20014a5b74c7a680e2aacfb4c", "score": "0.4390294", "text": "private boolean isReverseChain(final int x, final int y, final int dx, final int dy) {\r\n\t\t// values for tracking our current move in the chain test\r\n\t\tint newx = x + dx;\r\n\t\tint newy = y + dy;\r\n\t\t\r\n\t\t// we know the first piece is an opposing piece so keep iterating until we hit\r\n\t\t// one of our pieces, empty cell, or an invalid space.\r\n\t\tfor(; getPiece(newx, newy) == opposing; newx += dx, newy += dy);\r\n\t\t\r\n\t\t// if we have an invalid cell or an empty cell then return false, otherwise\r\n\t\t// return true\r\n\t\tif(getPiece(newx, newy) == 0 || getPiece(newx, newy) == -1 || getPiece(newx, newy) == opposing)\r\n\t\t\treturn false;\r\n\t\telse\r\n\t\t\treturn true;\r\n\t}", "title": "" }, { "docid": "9550494e76693dd39cfbe4759ffeaa79", "score": "0.4366129", "text": "public boolean isPathUnobstructed(Casilla finalTile, Casilla initialTile) {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "f123ab614cb5d259f4af1376bfa4d139", "score": "0.4363003", "text": "public final EObject ruleAttribute() throws RecognitionException {\n EObject current = null;\n\n Token lv_reversed_1_0=null;\n Token lv_wildcard_4_0=null;\n EObject lv_cardinality_0_0 = null;\n\n Enumerator lv_op_2_0 = null;\n\n EObject lv_conceptRef_3_0 = null;\n\n EObject lv_value_5_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalEclParser.g:1060:2: ( ( ( (lv_cardinality_0_0= ruleCardinality ) )? ( (lv_reversed_1_0= RULE_REVERSE ) )? ( (lv_op_2_0= ruleAttributeOperator ) )? ( ( (lv_conceptRef_3_0= ruleConceptReference ) ) | ( (lv_wildcard_4_0= Asterisk ) ) ) ( (lv_value_5_0= ruleAttributeValue ) ) ) )\n // InternalEclParser.g:1061:2: ( ( (lv_cardinality_0_0= ruleCardinality ) )? ( (lv_reversed_1_0= RULE_REVERSE ) )? ( (lv_op_2_0= ruleAttributeOperator ) )? ( ( (lv_conceptRef_3_0= ruleConceptReference ) ) | ( (lv_wildcard_4_0= Asterisk ) ) ) ( (lv_value_5_0= ruleAttributeValue ) ) )\n {\n // InternalEclParser.g:1061:2: ( ( (lv_cardinality_0_0= ruleCardinality ) )? ( (lv_reversed_1_0= RULE_REVERSE ) )? ( (lv_op_2_0= ruleAttributeOperator ) )? ( ( (lv_conceptRef_3_0= ruleConceptReference ) ) | ( (lv_wildcard_4_0= Asterisk ) ) ) ( (lv_value_5_0= ruleAttributeValue ) ) )\n // InternalEclParser.g:1062:3: ( (lv_cardinality_0_0= ruleCardinality ) )? ( (lv_reversed_1_0= RULE_REVERSE ) )? ( (lv_op_2_0= ruleAttributeOperator ) )? ( ( (lv_conceptRef_3_0= ruleConceptReference ) ) | ( (lv_wildcard_4_0= Asterisk ) ) ) ( (lv_value_5_0= ruleAttributeValue ) )\n {\n // InternalEclParser.g:1062:3: ( (lv_cardinality_0_0= ruleCardinality ) )?\n int alt12=2;\n int LA12_0 = input.LA(1);\n\n if ( (LA12_0==LeftSquareBracket) ) {\n alt12=1;\n }\n switch (alt12) {\n case 1 :\n // InternalEclParser.g:1063:4: (lv_cardinality_0_0= ruleCardinality )\n {\n // InternalEclParser.g:1063:4: (lv_cardinality_0_0= ruleCardinality )\n // InternalEclParser.g:1064:5: lv_cardinality_0_0= ruleCardinality\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getAttributeAccess().getCardinalityCardinalityParserRuleCall_0_0());\n \t\t\t\t\n }\n pushFollow(FollowSets000.FOLLOW_10);\n lv_cardinality_0_0=ruleCardinality();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getAttributeRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"cardinality\",\n \t\t\t\t\t\tlv_cardinality_0_0,\n \t\t\t\t\t\t\"org.akitta.snomed.ecl.Ecl.Cardinality\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n // InternalEclParser.g:1081:3: ( (lv_reversed_1_0= RULE_REVERSE ) )?\n int alt13=2;\n int LA13_0 = input.LA(1);\n\n if ( (LA13_0==RULE_REVERSE) ) {\n alt13=1;\n }\n switch (alt13) {\n case 1 :\n // InternalEclParser.g:1082:4: (lv_reversed_1_0= RULE_REVERSE )\n {\n // InternalEclParser.g:1082:4: (lv_reversed_1_0= RULE_REVERSE )\n // InternalEclParser.g:1083:5: lv_reversed_1_0= RULE_REVERSE\n {\n lv_reversed_1_0=(Token)match(input,RULE_REVERSE,FollowSets000.FOLLOW_11); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewLeafNode(lv_reversed_1_0, grammarAccess.getAttributeAccess().getReversedREVERSETerminalRuleCall_1_0());\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getAttributeRule());\n \t\t\t\t\t}\n \t\t\t\t\tsetWithLastConsumed(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"reversed\",\n \t\t\t\t\t\ttrue,\n \t\t\t\t\t\t\"org.akitta.snomed.ecl.Ecl.REVERSE\");\n \t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n // InternalEclParser.g:1099:3: ( (lv_op_2_0= ruleAttributeOperator ) )?\n int alt14=2;\n int LA14_0 = input.LA(1);\n\n if ( (LA14_0==LessThanSignLessThanSign||LA14_0==LessThanSign) ) {\n alt14=1;\n }\n switch (alt14) {\n case 1 :\n // InternalEclParser.g:1100:4: (lv_op_2_0= ruleAttributeOperator )\n {\n // InternalEclParser.g:1100:4: (lv_op_2_0= ruleAttributeOperator )\n // InternalEclParser.g:1101:5: lv_op_2_0= ruleAttributeOperator\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getAttributeAccess().getOpAttributeOperatorEnumRuleCall_2_0());\n \t\t\t\t\n }\n pushFollow(FollowSets000.FOLLOW_12);\n lv_op_2_0=ruleAttributeOperator();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getAttributeRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"op\",\n \t\t\t\t\t\tlv_op_2_0,\n \t\t\t\t\t\t\"org.akitta.snomed.ecl.Ecl.AttributeOperator\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n // InternalEclParser.g:1118:3: ( ( (lv_conceptRef_3_0= ruleConceptReference ) ) | ( (lv_wildcard_4_0= Asterisk ) ) )\n int alt15=2;\n int LA15_0 = input.LA(1);\n\n if ( (LA15_0==RULE_INT) ) {\n alt15=1;\n }\n else if ( (LA15_0==Asterisk) ) {\n alt15=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 15, 0, input);\n\n throw nvae;\n }\n switch (alt15) {\n case 1 :\n // InternalEclParser.g:1119:4: ( (lv_conceptRef_3_0= ruleConceptReference ) )\n {\n // InternalEclParser.g:1119:4: ( (lv_conceptRef_3_0= ruleConceptReference ) )\n // InternalEclParser.g:1120:5: (lv_conceptRef_3_0= ruleConceptReference )\n {\n // InternalEclParser.g:1120:5: (lv_conceptRef_3_0= ruleConceptReference )\n // InternalEclParser.g:1121:6: lv_conceptRef_3_0= ruleConceptReference\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getAttributeAccess().getConceptRefConceptReferenceParserRuleCall_3_0_0());\n \t\t\t\t\t\n }\n pushFollow(FollowSets000.FOLLOW_13);\n lv_conceptRef_3_0=ruleConceptReference();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getAttributeRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"conceptRef\",\n \t\t\t\t\t\t\tlv_conceptRef_3_0,\n \t\t\t\t\t\t\t\"org.akitta.snomed.ecl.Ecl.ConceptReference\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalEclParser.g:1139:4: ( (lv_wildcard_4_0= Asterisk ) )\n {\n // InternalEclParser.g:1139:4: ( (lv_wildcard_4_0= Asterisk ) )\n // InternalEclParser.g:1140:5: (lv_wildcard_4_0= Asterisk )\n {\n // InternalEclParser.g:1140:5: (lv_wildcard_4_0= Asterisk )\n // InternalEclParser.g:1141:6: lv_wildcard_4_0= Asterisk\n {\n lv_wildcard_4_0=(Token)match(input,Asterisk,FollowSets000.FOLLOW_13); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(lv_wildcard_4_0, grammarAccess.getAttributeAccess().getWildcardAsteriskKeyword_3_1_0());\n \t\t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getAttributeRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tsetWithLastConsumed(current, \"wildcard\", true, \"*\");\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n\n }\n\n // InternalEclParser.g:1154:3: ( (lv_value_5_0= ruleAttributeValue ) )\n // InternalEclParser.g:1155:4: (lv_value_5_0= ruleAttributeValue )\n {\n // InternalEclParser.g:1155:4: (lv_value_5_0= ruleAttributeValue )\n // InternalEclParser.g:1156:5: lv_value_5_0= ruleAttributeValue\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getAttributeAccess().getValueAttributeValueParserRuleCall_4_0());\n \t\t\t\t\n }\n pushFollow(FollowSets000.FOLLOW_2);\n lv_value_5_0=ruleAttributeValue();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getAttributeRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"value\",\n \t\t\t\t\t\tlv_value_5_0,\n \t\t\t\t\t\t\"org.akitta.snomed.ecl.Ecl.AttributeValue\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "ed0978b6fa90092e8c4e954f22409856", "score": "0.43627462", "text": "public static boolean arcTransitionClicked(Point mousePosition, Point arcCenter, double arcAngle) {\n Vector2D mouse = new Vector2D(mousePosition.x, - mousePosition.y);\n Vector2D arc = new Vector2D(arcCenter.x, - arcCenter.y);\n \n double distance = Vector2D.distance(mouse, arc);\n double stateRadius = Config.STATE_DIAMETER / 2;\n \n // The angle of the mouse in relation to the Arcs Center\n double mouseAngle = Vector2D.computeAngle(mouse.x - arc.x, mouse.y - arc.y);\n double reverseArcAngle = arcAngle + Math.PI; // ReverseArcAngle is between PI and 3 * PI\n \n // Ensure that the angles are periodically as close as possible for easy comparison\n if (reverseArcAngle - mouseAngle > Math.PI)\n mouseAngle += 2 * Math.PI;\n \n return distance > stateRadius - clickTolerance && distance < stateRadius + clickTolerance &&\n Math.toDegrees(Math.abs(mouseAngle - reverseArcAngle)) > 45.0d;\n }", "title": "" }, { "docid": "d1de13d589a63ce251d5e36fdeaf5fc2", "score": "0.43621504", "text": "public void updateArc(final PerformanceTreeArc updatedArc)\n\t{\n\t\tString updatedArcID = updatedArc.getId();\n\t\tif (getArc(updatedArcID) != null)\n\t\t{\n\t\t\t// an arc with our updated arc's ID already exists in the arcsArray\n\t\t\tPerformanceTreeArc existingArc = getArc(updatedArcID);\n\t\t\t// update arc\n\t\t\tthis.treeArcs.remove(existingArc);\n\t\t\tthis.treeArcs.add(updatedArc);\n\t\t\tsetChanged();\n\t\t\tnotifyObservers(updatedArc);\n\t\t}\n\t}", "title": "" }, { "docid": "01de95caa47861a7f0a6e6f61bb602fe", "score": "0.435799", "text": "public boolean isReversal();", "title": "" }, { "docid": "f642eb7132eb37b889657e2edb7a287e", "score": "0.43538156", "text": "public void setShowArcOnly(boolean arcOnly){\n\t\tif(drawArcOnly != arcOnly){\n\t\t\tdrawArcOnly = arcOnly;\n\t\t\tbufferInvalid = true;\n\t\t}\n\t}", "title": "" }, { "docid": "f642eb7132eb37b889657e2edb7a287e", "score": "0.43538156", "text": "public void setShowArcOnly(boolean arcOnly){\n\t\tif(drawArcOnly != arcOnly){\n\t\t\tdrawArcOnly = arcOnly;\n\t\t\tbufferInvalid = true;\n\t\t}\n\t}", "title": "" }, { "docid": "5b52d216e36d552db06874b07b13afe8", "score": "0.43115702", "text": "public boolean isOverArcOnly(){\n\t\treturn mouseOverArcOnly;\n\t}", "title": "" }, { "docid": "5b52d216e36d552db06874b07b13afe8", "score": "0.43115702", "text": "public boolean isOverArcOnly(){\n\t\treturn mouseOverArcOnly;\n\t}", "title": "" }, { "docid": "095529119365157e90964d72faf6b513", "score": "0.43011755", "text": "public void addBiArc(GraphNode node1, GraphNode node2);", "title": "" }, { "docid": "c20471f249efdb373ae55f0d84a8aa42", "score": "0.42962766", "text": "boolean toNextAttribute();", "title": "" }, { "docid": "d3608d2f6715ccba9cfb494f6745aeac", "score": "0.42826483", "text": "public boolean hasCycle(){\n\t\tresetParentList();\n\t\tHashMap<Integer, Integer> backVertexMap = new HashMap<Integer,Integer>();\n\t\treturn hasCycle(0, backVertexMap);\n\t}", "title": "" }, { "docid": "098e12ebd0063d662db3d1b338c524b4", "score": "0.42709428", "text": "protected void arcImpl(float x1, float y1, float w, float h,\n float start, float stop) {\n float hr = w / 2f;\n float vr = h / 2f;\n \n float centerX = x1 + hr;\n float centerY = y1 + vr;\n \n if (fill) {\n // shut off stroke for a minute\n boolean savedStroke = stroke;\n stroke = false;\n \n int startLUT = (int) (0.5f + (start / TWO_PI) * SINCOS_LENGTH);\n int stopLUT = (int) (0.5f + (stop / TWO_PI) * SINCOS_LENGTH);\n \n beginShape(TRIANGLE_FAN);\n vertex(centerX, centerY);\n int increment = 1; // what's a good algorithm? stopLUT - startLUT;\n for (int i = startLUT; i < stopLUT; i += increment) {\n int ii = i % SINCOS_LENGTH;\n vertex(centerX + cosLUT[ii] * hr,\n centerY + sinLUT[ii] * vr);\n }\n // draw last point explicitly for accuracy\n vertex(centerX + cosLUT[stopLUT % SINCOS_LENGTH] * hr,\n centerY + sinLUT[stopLUT % SINCOS_LENGTH] * vr);\n endShape();\n \n stroke = savedStroke;\n }\n \n if (stroke) {\n // Almost identical to above, but this uses a LINE_STRIP\n // and doesn't include the first (center) vertex.\n \n boolean savedFill = fill;\n fill = false;\n \n int startLUT = (int) (0.5f + (start / TWO_PI) * SINCOS_LENGTH);\n int stopLUT = (int) (0.5f + (stop / TWO_PI) * SINCOS_LENGTH);\n \n beginShape(LINE_STRIP);\n int increment = 1; // what's a good algorithm? stopLUT - startLUT;\n for (int i = startLUT; i < stopLUT; i += increment) {\n int ii = i % SINCOS_LENGTH;\n vertex(centerX + cosLUT[ii] * hr,\n centerY + sinLUT[ii] * vr);\n }\n // draw last point explicitly for accuracy\n vertex(centerX + cosLUT[stopLUT % SINCOS_LENGTH] * hr,\n centerY + sinLUT[stopLUT % SINCOS_LENGTH] * vr);\n endShape();\n \n fill = savedFill;\n }\n }", "title": "" }, { "docid": "933f63778ab9648a328158c7ab23047f", "score": "0.42587978", "text": "private void removeArcs(Integer n1, Integer n2, boolean directed) {\n\t\tif (n1 == null || n2 == null)\n\t\t\treturn;\n\n\t\tIterator<Arc> it;\n\t\tif (directed)\n\t\t\tit = getOutputArcsIterator(n1);\n\t\telse\n\t\t\tit = getUndirectedNeighbourEdgesIterator(n1);\n\t\tif (it == null || !this.contains(n2)) // is null if !this.contain(n1)\n\t\t\treturn;\n\n\t\twhile (it.hasNext()) {\n\t\t\tArc a = it.next();\n\t\t\tif ((directed && a.getOutput().equals(n2))\n\t\t\t\t\t|| (!directed && n2.equals(this.getNeighbourNode(n1, a))))\n\t\t\t\tremoveEdge(a);\n\t\t}\n\t}", "title": "" }, { "docid": "59442eabec09c15c5992f581901ae39b", "score": "0.4250119", "text": "private boolean reSyncTail(){\n if(tail != null){\n tail.sync();\n if(tail.getField(\"next\") != null){\n while(tail.getField(\"next\") != null){\n tail = (JRef) tail.getField(\"next\");\n tail.sync();\n }\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "34ad91565be74070ed15af0a153047d2", "score": "0.4231617", "text": "public ArrayList<Arc> getOutputArcs(Integer n) {\n\t\tArrayList<Arc> col = new ArrayList<Arc>();\n\t\tif (fillWithOutputArcs(n, col))\n\t\t\treturn col;\n\t\telse\n\t\t\treturn null;\n\t}", "title": "" }, { "docid": "216fba5c86741dad0b6bfc42e66a2faa", "score": "0.42280054", "text": "public static final boolean isArchived(int attr) {\n return (attr & Archive) != 0;\n }", "title": "" }, { "docid": "91f93372835c39ae96bd204f2ecf750f", "score": "0.42021734", "text": "@DISPID(1062)\n @PropPut\n void orientAngle(\n ms.html.ISVGAnimatedAngle rhs);", "title": "" }, { "docid": "81c1987bbcce2750ef65563f7ec4c660", "score": "0.4198428", "text": "private void computeArc() {\n State hostState = aggregateTransition.getTransitionStart();\n int radius = Config.STATE_DIAMETER / 2;\n \n // distance from the hostStates middle to the Arcs middle. Make it slightly bigger\n // with 0.5 so that the Arc never enters the states circle, but still has\n // no white space between them too.\n double distance = Math.sqrt(radius * radius + radius * radius) + 0.5d;\n \n // compute the upper left corner of the arcs bounding rectangle\n this.arcX = hostState.x + (int)Math.round(Math.cos(arcAngle) * distance) - radius;\n // Cartesian to Swings coordinate system\n this.arcY = hostState.y - (int)Math.round(Math.sin(arcAngle) * distance) - radius;\n \n // Arcs startAngle in degrees\n this.arcStartAngle = (int)Math.round(Math.toDegrees(arcAngle)) - 135;\n }", "title": "" }, { "docid": "725d4075606d1a6b9d0202e511b24979", "score": "0.41956457", "text": "public AdjSetKnot.Arc[] getOutArcs()\n \t{\n \t\treturn this.outArcs;\n \t}", "title": "" }, { "docid": "4f8ebe14017d6fe844be7d5bcdbc9d6b", "score": "0.41862568", "text": "private boolean formsCycle(Edge edge, int leaders[])\r\n {\r\n\r\n return leaders[edge.startVertex] == leaders[edge.endVertex];\r\n }", "title": "" }, { "docid": "1c7675560e545a9a80f07001f7186147", "score": "0.41856414", "text": "public boolean arcExists(GraphNode node1, GraphNode node2);", "title": "" }, { "docid": "492905df60c559774b83de9555bf513c", "score": "0.4184165", "text": "public void addDiArc(GraphNode source, GraphNode sink);", "title": "" }, { "docid": "b9fee759dc274baf7cd2c9d03558eb39", "score": "0.41824156", "text": "public boolean findCycle(Edge m ){\n\t\t int u = this.getNodeId(m.node1);\n\t\t int v = this.getNodeId(m.node2);\n\t\t \n\t while (route[u] > 0){\n\t u = route[u];\n\t }\n\t while (route[v] > 0){\n\t v = route[v];\n\t }\n\t if (u != v) {\n\t route[u] = v;\n\t return true;\n\t }\n\t return false;\n\t\t}", "title": "" }, { "docid": "0a450aa7bbcd934b12a0d7c06fa61a4a", "score": "0.41790894", "text": "private AngleHull.ArcCollector<Arc> createArcCollector(Use use) {\n return (Point z, double r, Angle beta, Angle rho) -> {\n final Arc jfxArc = new Arc();\n jfxArc.setCenterX(z.getX());\n jfxArc.setCenterY(z.getY());\n jfxArc.setRadiusX(r - use.radiusOffset());\n jfxArc.setRadiusY(r - use.radiusOffset());\n jfxArc.setStartAngle(-rho.deg());\n jfxArc.setLength(-beta.deg());\n jfxArc.setType(OPEN);\n jfxArc.setStrokeType(StrokeType.CENTERED);\n jfxArc.setStroke(use.stroke());\n jfxArc.setFill(use.fill());\n jfxArc.setStrokeWidth(use.strokeWidth());\n return jfxArc;\n };\n }", "title": "" }, { "docid": "350b65f33576daa8b68d8030a7a0ee31", "score": "0.41650775", "text": "public boolean isReversed() {\n \t\treturn fReverse;\n \t}", "title": "" }, { "docid": "a66e7bb1dcf8549ca3d6a675f888c7b7", "score": "0.4159084", "text": "public static UBezier3D arcApproximation() {\n\t\tUBezier3D bez=null;\n\t\t\n\t\treturn bez;\n\t}", "title": "" }, { "docid": "fe8ba5dead578c8f214199030e1b6c14", "score": "0.4149598", "text": "public PerformanceTreeArc getArc(final String arcID)\n\t{\n\t\tPerformanceTreeArc returnArc = null;\n\t\tIterator<PerformanceTreeArc> it = this.treeArcs.iterator();\n\t\twhile (it.hasNext())\n\t\t{\n\t\t\tPerformanceTreeArc arrayArc = it.next();\n\t\t\tString arrayArcID = arrayArc.getId();\n\t\t\tif (arcID.equalsIgnoreCase(arrayArcID))\n\t\t\t\treturnArc = arrayArc;\n\t\t}\n\n\t\treturn returnArc;\n\t}", "title": "" }, { "docid": "8f4faa1db928592fa57ee0b98088cafd", "score": "0.41464108", "text": "protected static Optional<CircleArc2D> directionlessFind(Iterable<CircleArc2D> boundary, Point2D mark) {\n for(CircleArc2D arc: boundary) {\n if(arc.firstPoint().almostEquals(mark, Shape2D.ACCURACY) || arc.lastPoint().almostEquals(mark, Shape2D.ACCURACY)) {\n return Optional.of(arc);\n }\n }\n return Optional.empty();\n }", "title": "" }, { "docid": "9e0163e9d92558a11af88b47ca1b0ccf", "score": "0.41460755", "text": "public boolean getIsCyclic(OWLObject c) {\n\t\tOWLAnnotationProperty lap = getAnnotationProperty(OboFormatTag.TAG_IS_CYCLIC.getTag()); \n\n\t\tString val = getAnnotationValue(c, lap);\n\n\t\treturn val == null ? false: Boolean.valueOf(val);\n\t}", "title": "" }, { "docid": "86176e1efbff8f118e2cc0f4ae1a0924", "score": "0.41459915", "text": "public boolean computeAngleOffset()\n {\n if (mFinished)\n {\n return false;\n }\n long systemClock = AnimationUtils.currentAnimationTimeMillis();\n long timePassed = systemClock - mStartTime;\n if (timePassed < mDuration)\n {\n\n float sc = (float) timePassed / mDuration;\n mCurrAngle = mStartAngle + Math.round(mDeltaAngle * sc);\n mCurrDeg = direction == 0 ? (Math.round(360 * sc)) : (Math.round(-360 * sc));\n return true;\n }\n else\n {\n mCurrAngle = mStartAngle + mDeltaAngle;\n mCurrDeg = direction == 0 ? 360 : -360;\n mFinished = true;\n return false;\n }\n }", "title": "" }, { "docid": "b75cc08bd586d5626c1a94146bd3a31a", "score": "0.413332", "text": "void noteArc(myPoint ctr, float alphaSt, float alphaEnd, float rad, float thickness, int[] noteClr){\n\t\tnoFill();\n\t\tsetStroke(noteClr);\n\t\tstrokeWeight(thickness);\n\t\tarc((float)ctr.x, (float)ctr.y, rad, rad, alphaSt - this.HALF_PI, alphaEnd- this.HALF_PI);\n\t}", "title": "" }, { "docid": "f3600c5f92954143500f2fd3c1f8b719", "score": "0.41272482", "text": "public CrossTheLineArc() {\n\t\tsuper();\n\t\tthis.highGear = false;\n\t\tcenterProfile = new SrxMotionProfile(centerPoints.length, centerPoints);\n\t}", "title": "" }, { "docid": "8198151d1fefab93dce36676fe9a98d7", "score": "0.4124638", "text": "public static Arc[] makeNewArc(SphericalPatch sp, SphericalPatch neighbor, Point e1, Point e2, Point mid, Point midProbe, boolean circular){\n if (!sp.neighbours.contains(neighbor)){\n sp.neighbours.add(neighbor);\n }\n //Vector neighborToAtom = Point.subtractPoints(sp.sphere.center, neighbor.sphere.center);\n //Vector atomToNeighbor = Vector.scaleVector(neighborToAtom, -1);\n //Vector atomToEnd = Point.subtractPoints(e1, sp.sphere.center);\n //Vector projection = atomToEnd.projectionOnto(atomToNeighbor);\n neighborToAtom.changeVector(sp.sphere.center, neighbor.sphere.center);\n atomToNeighbor.changeVector(neighborToAtom).multiply(-1);\n atomToEnd.changeVector(e1, sp.sphere.center);\n //projection.changeVector(atomToNeighbor).multiply(atomToEnd.dotProduct(atomToNeighbor));\n projection = atomToEnd.projectionOnto(atomToNeighbor);\n Point arcCenter = Point.translatePoint(sp.sphere.center, projection);\n double loopRadius = Math.sqrt(sp.sphere.radius * sp.sphere.radius - projection.dotProduct(projection));\n neighborToAtom.makeUnit();\n Point end1 = e1;\n Point end2 = e2;\n if (circular){\n Vector atToE1 = Point.subtractPoints(e1, sp.sphere.center);\n Vector atToMid = Point.subtractPoints(mid, sp.sphere.center);\n Vector midway = Vector.getNormalVector(atToE1, atToMid).makeUnit().multiply(loopRadius);\n Point trueMid1 = Point.translatePoint(arcCenter, midway);\n Point trueMid2 = Point.translatePoint(arcCenter, midway.multiply(-1));\n Point midProbe1 = Point.translatePoint(trueMid1, Point.subtractPoints(trueMid1, sp.sphere.center).makeUnit().multiply(SesConfig.probeRadius));\n Point midProbe2 = Point.translatePoint(trueMid2, Point.subtractPoints(trueMid2, sp.sphere.center).makeUnit().multiply(SesConfig.probeRadius));\n Arc[] loops = new Arc[2];\n loops[0] = makeNewArc(sp, neighbor, e1, mid, trueMid1, midProbe1,false)[0];\n loops[1] = makeNewArc(sp, neighbor, mid, e1, trueMid2, midProbe2, false)[0];\n return loops;\n }\n //Vector e1ToMid = Point.subtractPoints(mid, e1);\n //Vector e1ToE2 = Point.subtractPoints(e2, e1);\n //Vector u1 = Point.subtractPoints(e1, arcCenter).makeUnit();\n //Vector u2 = Point.subtractPoints(mid, arcCenter).makeUnit();\n //Vector n = Vector.getNormalVector(u1, u2).makeUnit();\n u1.changeVector(e1, arcCenter).makeUnit();\n u2.changeVector(mid, arcCenter).makeUnit();\n n.assignNormalVectorOf(u1, u2).makeUnit();\n //e1ToMid.makeUnit();\n //e1ToE2.makeUnit();\n //Vector normal = Vector.getNormalVector(e1ToMid, e1ToE2);\n //normal.makeUnit();\n //Point triMid = Point.getMidPoint(e1, mid, e2);\n\n //Vector e1ToCenter = Point.subtractPoints(sp.sphere.center, arcCenter).makeUnit();\n if (n.dotProduct(neighborToAtom) < 0){\n end1 = e2;\n end2 = e1;\n }\n /*if (Point.subtractPoints(end1, mid).sqrtMagnitude() + Point.subtractPoints(end2, mid).sqrtMagnitude() < 0.001){\n System.err.println(\"possible short loop, atom1 id: \" + sp.id + \" atom2Id: \" + neighbor.id);\n }*/\n Arc[] arc = new Arc[1];\n arc[0] = new Arc(arcCenter, loopRadius);\n Arc a = arc[0];\n //a.normal = Vector.scaleVector(neighborToAtom, 1).makeUnit();\n a.setNormal(neighborToAtom);\n a.normal.makeUnit();\n a.end1 = end1;\n a.end2 = end2;\n a.setEndPoints(a.end1, a.end2, false);\n a.endEdge1 = new Edge(0, 1);\n a.endEdge1.p1 = end1;\n a.endEdge1.p2 = mid;\n a.endEdge2 = new Edge(1, 2);\n a.endEdge2.p1 = mid;\n a.endEdge2.p2 = end2;\n a.mid = mid;\n\n a.endEdge1.next = a.endEdge2;\n a.endEdge2.prev = a.endEdge1;\n\n //a.toEnd1 = Point.subtractPoints(end1, sp.sphere.center).makeUnit();\n //a.toEnd2 = Point.subtractPoints(end2, sp.sphere.center).makeUnit();\n\n a.vrts.add(end1);\n //a.vrts.add(mid);\n a.vrts.add(end2);\n //end1.isShared = end2.isShared = mid.isShared = true;\n a.owner = sp;\n sp.arcs.add(a);\n a.midProbe = midProbe;\n return arc;\n }", "title": "" }, { "docid": "e60705f14a99cf68d15d4d4a806440c6", "score": "0.41198367", "text": "public int getNbArc() {\n\t\treturn nombreArc;\n\t}", "title": "" }, { "docid": "bd023ea81c81b7241b83df2df919b2c2", "score": "0.41165724", "text": "@Override\n public boolean isTable(long arc) {\n\n switch((int)arc) {\n default:\n break;\n }\n return false;\n }", "title": "" }, { "docid": "78c779ee53a8ba2a39e8ca172def7eb7", "score": "0.41114023", "text": "public static void main(String args[]) throws ParseException, IOException { \n\n QualitativeArcReversal eval; \n Graph ancestralGraph;\n FileInputStream networkFile,networkFile1; \n NodeList variables=new NodeList();\n NodeList variablesInDiagNew;\n NodeList phase;\n Vector relevant,order;\n boolean evaluable;\n IDiagram diag,diagNew,qualitativeID;\n Crono crono=new Crono();\n int i,j;\n\n crono.start();\n diag=(IDiagram)Network.read(args[0],false);\n crono.viewTime();\n\n diagNew=diag.qualitativeCopy();\n qualitativeID=diag.qualitativeCopy();\n\n System.out.println(\"Segundos para copia de red: \");\n crono.viewTime();\n \n eval = new QualitativeArcReversal(diag); \n \n // initial chekout about the node. \n \n evaluable = eval.initialConditions(); \n System.out.print(\"Evaluable : \" + evaluable + \"\\n\\n\"); \n crono.viewTime();\n \n // If the diagram is suitable to be evaluated, then do it.\n \n if (evaluable == true) \n {\n eval.diag.eliminateRedundancy();\n eval.evaluateDiagram(); \n eval.decisionTables.print();\n order=eval.getOrderOfElimination();\n\n // Display the information\n\n for(i=0; i < order.size(); i++) {\n\n // Recorrido de las variables\n\n System.out.println(\"FASE = \"+i);\n System.out.println(\".......................................\");\n System.out.println(\"Eliminacion : \"+order.elementAt(i));\n System.out.println(\".......................................\");\n }\n \n\n // Build a NodeList with all the variables in decisionTables\n\n for(i=0; i < eval.decisionTables.size(); i++) {\n variables.merge((eval.decisionTables.elementAt(i)).getVariables()); \n }\n\n // Get a NodeList with the variable, but in diagnew\n\n variablesInDiagNew=diagNew.insertVariablesIn(variables);\n \n // In it, get all the parents of the nodes in variables\n\n ancestralGraph=diagNew.ancestral(variablesInDiagNew);\n System.out.println(\"Para obtener el grafo ancestral.....\");\n crono.viewTime();\n\n // Recorrido de las variables\n\n // Now, get the order\n\n eval=new QualitativeArcReversal(diagNew);\n order=eval.diag.giveInstantiationOrder(ancestralGraph);\n System.out.println(\"Para obtener el orden de instanciacion.....\");\n crono.viewTime();\n\n // Display the information\n\n for(i=0; i < order.size(); i++) {\n\n // Recorrido de las variables\n\n System.out.println(\"FASE = \"+i);\n System.out.println(\"........................................\");\n System.out.println(\"Instanciacion : \"+order.elementAt(i));\n System.out.println(\"........................................\");\n }\n\n // Check the orden\n\n System.out.println(\"Order OK = \"+eval.diag.checkInstantiationOrder(order));\n }\n\n // Tiempo total\n\n crono.stop();\n}", "title": "" }, { "docid": "f343eac3d6d56b7cbd67a94da740d14d", "score": "0.41051498", "text": "public int[][] getArcs() {\n int[][] copy = new int[this.arcs.length][];\n\n for(int i=0; i<copy.length;i++) {\n int[] copy2 = new int[this.arcs[i].length];\n System.arraycopy(this.arcs[i], 0, copy2, 0, this.arcs[i].length);\n copy[i] = copy2;\n }\n\n return copy;\n }", "title": "" }, { "docid": "4c7ae1f2a6f7e41571a0f5ec4052c385", "score": "0.41030523", "text": "public HelixFollower reverse() {\n reverse = true;\n return this;\n }", "title": "" }, { "docid": "f79c1eb8204329440d4e2b533116223c", "score": "0.40920892", "text": "@Override\n public boolean isReadable(long arc) {\n\n switch((int)arc) {\n case 9:\n case 8:\n case 7:\n case 6:\n case 15:\n case 5:\n case 14:\n case 13:\n case 4:\n case 3:\n case 12:\n case 2:\n case 11:\n case 10:\n case 1:\n return true;\n default:\n break;\n }\n return false;\n }", "title": "" }, { "docid": "6a12ca258d201754d7a82ccc57e8bacc", "score": "0.40874466", "text": "public static Triplet getArcTriplet (Sommet s1,Sommet s2) {\r\n\t\tfor (Triplet t : s1.adjacent)\r\n\t\t\tif(t.getPremier() == s2)\r\n\t\t\t\treturn t;\r\n\t\tTriplet T = new Triplet(s1,false , 9999, 9999);\r\n\t\treturn T;\r\n\t}", "title": "" }, { "docid": "e42494fbab266e068d9b7acb35a7ad50", "score": "0.40828827", "text": "@Test\n public void testGetArcs() {\n System.out.println(\"getArcs\");\n\n Node node1 = new Node(1, new Point(10, 30));\n Node node2 = new Node(2, new Point(10, 20));\n Arc arc1 = new Arc(\"hollywood\", 12, 31, node1, node2);\n Arc arc2 = new Arc(\"doowylloh\", 12, 31, node2, node1);\n LinkedList<Arc> expResult = new LinkedList<>();\n expResult.add(arc1);\n expResult.add(arc2);\n Path instance = new Path(expResult);\n List<Arc> result = instance.getArcs();\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "b39e32519269a13f7e1b4955ebe62e41", "score": "0.40768334", "text": "public void addCycle(ArrayList<CutCircle> cycle) {\n for(int i=1; i<cycle.size(); i++) {\n nextClockwise.put(cycle.get(i-1), cycle.get(i));\n nextCounterClockwise.put(cycle.get(i), cycle.get(i-1));\n }\n nextClockwise.put(cycle.get(cycle.size()-1),cycle.get(0));\n nextCounterClockwise.put(cycle.get(0),cycle.get(cycle.size()-1));\n }", "title": "" }, { "docid": "02797b12ba0e7bbdff32967fe0a3085c", "score": "0.40765443", "text": "public boolean isClockwise() {\n return clockwise;\n }", "title": "" }, { "docid": "3de5f15fa3d58603950c908f9eea0ae2", "score": "0.4069928", "text": "public synchronized void forceOut() {forceOut(reverse);}", "title": "" }, { "docid": "2b4b946edf83d14a742e95fee43659aa", "score": "0.40612462", "text": "public boolean isMappingReverseReference() {\n return isProperty(\"isMappingReverseReference\", false, getFreeGenDefinitionMap());\r\n }", "title": "" }, { "docid": "fb156169a5dcefa4cff84ff436f5426b", "score": "0.4048956", "text": "boolean hasCycle(Node head) {\n if (head == null) {\n return false; //NO CYCLE\n }\n\n //Two pointers\n Node fast = head.next; // in while loop there is a control whether they are on same element or not, therefore we moved it to one element further.\n Node slow = head;\n\n while (fast != null && fast.next != null) {\n if (fast == slow) {\n return true;\n }\n fast = fast.next.next; //2 jumps -> fast.next would be null therefore, we are adding this case to the condition. fast.next != null\n slow = slow.next; // 1 jump\n }\n return false;\n }", "title": "" }, { "docid": "e2fdf99ae35cc31155cc23fb3a683e6f", "score": "0.40448192", "text": "public PerformanceTreeArc[] getArcs()\n\t{\n\t\tPerformanceTreeArc[] returnArray = new PerformanceTreeArc[this.treeArcs.size()];\n\n\t\tfor (int i = 0; i < this.treeArcs.size(); i++)\n\t\t\treturnArray[i] = this.treeArcs.get(i);\n\n\t\treturn returnArray;\n\t}", "title": "" }, { "docid": "abea6b8d1363567f7da1208efbaaf9e2", "score": "0.40385473", "text": "public boolean isStraight() {\n\n\t\tboolean nextCard = true;\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tif (c[i].getRank() + 1 != c[i + 1].getRank()) {\n\t\t\t\tnextCard = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn nextCard || isTheWheel();\n\t}", "title": "" }, { "docid": "1681fc0b454f392c69885d8d74bfb093", "score": "0.40363058", "text": "public void makeCircular();", "title": "" }, { "docid": "f1a0f881c7fcbc438bbbf9e9803faa59", "score": "0.4023701", "text": "private void fillCircularity() {\r\n\t\tfor (int i = 0; i < nComponents; i++)\r\n\t\t\tproperties.get(i).calcCircularity();\r\n\t}", "title": "" } ]
e7aa9e4c9b7b2f24e92df6b490ea2cc8
Initialize access to message log of SAP PI / PO messaging API
[ { "docid": "383ecb45bfa99ac4a792e7c5f1175531", "score": "0.5203379", "text": "public MessageLogHelper(String location) {\n\t\tthis.location = location;\n\t\t\n\t\ttry {\n\t\t\tthis.messageLog = APIAccessFactory.getAPIAccess().getMessageLogger(this.location);\n\t\t} catch (MessagingException e) {\n\t\t\tthis.messageLog = null;\n\t\t\tSystem.out.println(\"MSGLOG: MessageLogger not available for standalone testing, using stdout instead.\");\n\t\t\tSystem.out.flush();\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "e7709b3e7238dd560f6f0eb299535fe4", "score": "0.6088482", "text": "private void initializeSA() {\r\n\t\t// Initialize the SA Message with message header\r\n\t\tsa = new SAMessage();\r\n\t\tsa.setUpdateService(updateService);\r\n\t\tsa.setIpAddress(hardwareDetails.getIpAddress());\r\n\t\tsa.setLruType(hardwareDetails.getDeviceType());\r\n\t\tsa.setLruInstance(updateService.getLruInstance());\r\n\t\tsa.setTotalSteps(totalSteps);\r\n\t}", "title": "" }, { "docid": "fe3712a9283be1df53c014677ca3c206", "score": "0.6053593", "text": "private DiffToolLogMessages()\n\t{\n\t}", "title": "" }, { "docid": "e7d5c27e2f7df86e515445eb985a248a", "score": "0.5999151", "text": "private ManagerMessage() {\n initFields();\n }", "title": "" }, { "docid": "474cafcc07ac5734177d6f3c3e28836f", "score": "0.5982179", "text": "public static void initCalvinLogMgr() {\n\t\tlogMgr = new CalvinLogMgr(); \n\t}", "title": "" }, { "docid": "8d16f91743acf8c9bb46322da7ef7e60", "score": "0.58774143", "text": "public void init() {\n LOG.info(\"AAAShiroProvider Session Initiated\");\n }", "title": "" }, { "docid": "c13ce8d1e69b3cbed7b5fc7cdcbef5eb", "score": "0.58366877", "text": "private void init() {\n log.debug(\"Initializing LoggerService properties...\");\n logToDb = APIConfig.getInstance().getConfiguration()\n .getBoolean(APIConfig.LOGGER_LOGTODB, false);\n persistExceptions = APIConfig.getInstance().getConfiguration()\n .getBoolean(APIConfig.LOGGER_PERSIST_EXCEPTIONS, false);\n logLevel = APIConfig.getInstance().getConfiguration().getString(\n APIConfig.LOGGER_LEVEL, APIConfig.LOGGER_LEVEL_DEFAULT);\n isInited = true;\n }", "title": "" }, { "docid": "d2dd0847c3c1b83cc4c44402959b439c", "score": "0.5835406", "text": "protected void aInit()\n {\n \taSeq = 0;\n \tcurrentMessage = new Message(\"\");\n \t\n \ttimeoutCount = 0;\n \toriginalTransmitted = 0;\n \tretransmissions = 0;\n \tcorruptedAcks = 0;\n \tsuccessfulAcks = 0;\n \tinTransit = false;\n }", "title": "" }, { "docid": "28070fb7ba9e428fda4e54c46d6cd020", "score": "0.5829473", "text": "public TollboothLogger(){\n\t\tlogMessageQueue = new LinkedList<LogMessage>();\n\t}", "title": "" }, { "docid": "889b23270f66a71ed19b9d3bc25ca996", "score": "0.5799855", "text": "public LogMessage() {\n this.logMessage = \"\";\n }", "title": "" }, { "docid": "970015841d5bef35de5242e4c5814178", "score": "0.57690805", "text": "public void initializeLogging() {\n // Using Log, front-end to the logging chain, emulates android.util.log method signatures.\n // Wraps Android's native log framework\n LogWrapper logWrapper = new LogWrapper();\n Log.setLogNode(logWrapper);\n\n Log.i(TAG, \"Ready\");\n }", "title": "" }, { "docid": "b2916e7b324529c743359a519df86fa9", "score": "0.57501084", "text": "@Override\n public void initializeLogging() {\n // Wraps Android's native log framework.\n LogWrapper logWrapper = new LogWrapper();\n // Using Log, front-end to the logging chain, emulates android.util.log method signatures.\n Log.setLogNode(logWrapper);\n\n // Filter strips out everything except the message text.\n MessageOnlyLogFilter msgFilter = new MessageOnlyLogFilter();\n logWrapper.setNext(msgFilter);\n\n // On screen logging via a fragment with a TextView.\n LogFragment logFragment = (LogFragment) getSupportFragmentManager()\n .findFragmentById(R.id.log_fragment);\n msgFilter.setNext(logFragment.getLogView());\n\n Log.i(TAG, \"Ready\");\n }", "title": "" }, { "docid": "556cf427f052259a5f5a7705eba3c53b", "score": "0.57133126", "text": "public void initializeLogging() {\n // Using Log, front-end to the logging chain, emulates android.util.log method signatures.\n // Wraps Android's native log framework.\n LogWrapper logWrapper = new LogWrapper();\n // Using Log, front-end to the logging chain, emulates android.util.log.method signatures.\n Log.setLogNode(logWrapper);\n\n // Filter strips out everything except the message text.\n LogFilter logFilter = new LogFilter();\n logWrapper.setNext(logFilter);\n\n // On screen logging via a fragment with a TextView.\n LogFragment logFragment = (LogFragment) getFragmentManager()\n .findFragmentById(R.id.log_fragment);\n logFilter.setNext(logFragment.getLogView());\n\n Log.i(TAG, \"Ready\");\n }", "title": "" }, { "docid": "636c32003a4126fea4212f0238b62c6e", "score": "0.5687831", "text": "private ServerMessage() {\n initFields();\n }", "title": "" }, { "docid": "1c2e8e69dbad7f456d8fd7a9ddd27220", "score": "0.56816494", "text": "private void initMessagePool() {\n \t\tthis.messagePool.registerMessage(FLAG_MESSAGE_CLIENT_CONNECTION_ESTABLISH, ShipUpdateClientMessage.class);\n \t\tthis.messagePool.registerMessage(FLAG_MESSAGE_CLIENT_CONNECTION_CLOSE, ShipUpdateClientMessage.class);\n \t\tthis.messagePool.registerMessage(FLAG_MESSAGE_CLIENT_NEW_BULLET, NewBulletClientMessage.class);\n \t\tthis.messagePool.registerMessage(FLAG_MESSAGE_CLIENT_SHIP_UPDATE, ShipUpdateClientMessage.class);\n \t\tthis.messagePool.registerMessage(FLAG_MESSAGE_CLIENT_COLLISION, CollisionClientMessage.class);\n \t\tthis.messagePool.registerMessage(FLAG_MESSAGE_CLIENT_DONE, DoneClientMessage.class);\n \t}", "title": "" }, { "docid": "c939dbc918669ff0bb4dbc198e5cf250", "score": "0.5678359", "text": "public void initialize() throws IllegalActionException {\n\t\tsuper.initialize();\n\t\t_p = new Params(); // private class to store all actor parameters\n\t\t_mappedLog = new MappedLog(); // for checkpoint file\n\t\tboolean _xmlFormat = _p.strLogFormat.trim().equalsIgnoreCase(\"xml\");\n\t\t_sharedLog = new SharedLog(_xmlFormat); // for log and error log files\n\n\t}", "title": "" }, { "docid": "faf3725b9ebfb34f75f228eab69be816", "score": "0.5640357", "text": "public void initializeComp() throws Exception {\n \n //Implementing Program Logic 1\n\n //Implementing Program Logic 2\n g_GWProperties = FCApplicationGlobals.getProps();\n //--------------------------------------------------------------------\n // Comment ends\n g_GWMsgSchemaNotify = new GWMsgSchemaNotify();\n\n //--------------------------------------------------------------------\n\n g_GWJMSQueueService = new GWJMSQueueService();\n\n NOTIFY_MDB_JMS_QUEUE_ICF = \n g_GWProperties.getProperty(IFCConstants.NOTIFY_MDB_JMS_QUEUE_ICF);\n NOTIFY_MDB_JMS_QUEUE_PROVIDER_URL = \n g_GWProperties.getProperty(IFCConstants.NOTIFY_MDB_JMS_QUEUE_PROVIDER_URL);\n\n NOTIFY_MDB_JMS_QUEUE_SECURITY_PRINCIPAL = \n g_GWProperties.getProperty(IFCConstants.NOTIFY_MDB_JMS_QUEUE_SECURITY_PRINCIPAL);\n NOTIFY_MDB_JMS_QUEUE_SECURITY_CREDENTIALS = \n g_GWProperties.getProperty(IFCConstants.NOTIFY_MDB_JMS_QUEUE_SECURITY_CREDENTIALS);\n\n if (NOTIFY_MDB_JMS_QUEUE_SECURITY_PRINCIPAL != null) {\n if (NOTIFY_MDB_JMS_QUEUE_SECURITY_CREDENTIALS != null) {\n NOTIFY_MDB_JMS_QUEUE_SECURITY_CREDENTIALS = \n GWGenUtils.decrypt(NOTIFY_MDB_JMS_QUEUE_SECURITY_PRINCIPAL, \n NOTIFY_MDB_JMS_QUEUE_SECURITY_CREDENTIALS).trim();\n } else {\n throw new Exception(\"NOTIFY_MDB_JMS_QUEUE_SECURITY_CREDENTIALS \" + \n \"should also be provided if NOTIFY_MDB_JMS_QUEUE_SECURITY_PRINCIPAL \" + \n \"is provided.\");\n }\n }\n\n NOTIFY_MDB_JMS_QCF = g_GWProperties.getProperty(IFCConstants.NOTIFY_MDB_JMS_QCF);\n NOTIFY_MDB_JMS_QUEUE_NAME = g_GWProperties.getProperty(IFCConstants.NOTIFY_MDB_JMS_QUEUE_NAME);\n NOTIFY_MDB_JMS_Q_ACKNOWLEDGE = g_GWProperties.getProperty(IFCConstants.NOTIFY_MDB_JMS_Q_ACKNOWLEDGE);\n NOTIFY_MDB_JMS_Q_TRANSACTION = g_GWProperties.getProperty(IFCConstants.NOTIFY_MDB_JMS_Q_TRANSACTION);\n NOTIFY_MDB_JMS_Q_DELIVERY_OPT = new Integer(g_GWProperties.getProperty(IFCConstants.NOTIFY_MDB_JMS_Q_DELIVERY_OPT).trim()).intValue();\n NOTIFY_MDB_JMS_Q_TIME_TO_LIVE = new Integer(g_GWProperties.getProperty(IFCConstants.NOTIFY_MDB_JMS_Q_TIME_TO_LIVE).trim()).intValue();\n NOTIFY_MDB_JMS_Q_PRIORITY = new Integer(g_GWProperties.getProperty(IFCConstants.NOTIFY_MDB_JMS_Q_PRIORITY).trim()).intValue();\n\n NOTIFY_MDB_JMS_DLQ_CF = g_GWProperties.getProperty(IFCConstants.NOTIFY_MDB_JMS_DLQ_CF);\n NOTIFY_MDB_JMS_DLQ = g_GWProperties.getProperty(IFCConstants.NOTIFY_MDB_JMS_DLQ);\n\n if (NOTIFY_MDB_JMS_DLQ_CF == null) {\n NOTIFY_MDB_JMS_DLQ_CF = NOTIFY_MDB_JMS_QCF;\n }\n\n //--------------------------------------------------------------------\n\n NOTIFY_DESTINATION = g_GWProperties.getProperty(IFCConstants.NOTIFY_DESTINATION);\n\n if ((IFCConstants.NOTIFY_TOPIC).equals(NOTIFY_DESTINATION)) {\n g_GWJMSTopicService = new GWJMSTopicService();\n\n NOTIFY_MDB_JMS_DEST_TOPIC_ICF = g_GWProperties.getProperty(IFCConstants.NOTIFY_MDB_JMS_DEST_TOPIC_ICF);\n NOTIFY_MDB_JMS_DEST_TOPIC_PROVIDER_URL = g_GWProperties.getProperty(IFCConstants.NOTIFY_MDB_JMS_DEST_TOPIC_PROVIDER_URL);\n\n NOTIFY_MDB_JMS_DEST_TOPIC_SECURITY_PRINCIPAL = g_GWProperties.getProperty(IFCConstants.NOTIFY_MDB_JMS_DEST_TOPIC_SECURITY_PRINCIPAL);\n NOTIFY_MDB_JMS_DEST_TOPIC_SECURITY_CREDENTIALS = g_GWProperties.getProperty(IFCConstants.NOTIFY_MDB_JMS_DEST_TOPIC_SECURITY_CREDENTIALS);\n\n if (NOTIFY_MDB_JMS_DEST_TOPIC_SECURITY_PRINCIPAL != null) {\n if (NOTIFY_MDB_JMS_DEST_TOPIC_SECURITY_CREDENTIALS != null) {\n NOTIFY_MDB_JMS_DEST_TOPIC_SECURITY_CREDENTIALS = \n GWGenUtils.decrypt(NOTIFY_MDB_JMS_DEST_TOPIC_SECURITY_PRINCIPAL, \n NOTIFY_MDB_JMS_DEST_TOPIC_SECURITY_CREDENTIALS).trim();\n } else {\n throw new Exception(\"NOTIFY_MDB_JMS_DEST_TOPIC_SECURITY_CREDENTIALS \" + \n \"should also be provided if NOTIFY_MDB_JMS_DEST_TOPIC_SECURITY_PRINCIPAL \" + \n \"is provided.\");\n }\n }\n\n NOTIFY_MDB_JMS_DEST_TCF = g_GWProperties.getProperty(IFCConstants.NOTIFY_MDB_JMS_DEST_TCF);\n NOTIFY_MDB_JMS_DEST_TOPIC_NAME = g_GWProperties.getProperty(IFCConstants.NOTIFY_MDB_JMS_DEST_TOPIC_NAME);\n } else if ((IFCConstants.NOTIFY_QUEUE).equals(NOTIFY_DESTINATION)) {\n\n NOTIFY_MDB_JMS_DEST_Q_ICF = g_GWProperties.getProperty(IFCConstants.NOTIFY_MDB_JMS_DEST_Q_ICF);\n NOTIFY_MDB_JMS_DEST_Q_PROVIDER_URL = g_GWProperties.getProperty(IFCConstants.NOTIFY_MDB_JMS_DEST_Q_PROVIDER_URL);\n\n NOTIFY_MDB_JMS_DEST_Q_SECURITY_PRINCIPAL = g_GWProperties.getProperty(IFCConstants.NOTIFY_MDB_JMS_DEST_Q_SECURITY_PRINCIPAL);\n NOTIFY_MDB_JMS_DEST_Q_SECURITY_CREDENTIALS = g_GWProperties.getProperty(IFCConstants.NOTIFY_MDB_JMS_DEST_Q_SECURITY_CREDENTIALS);\n\n if (NOTIFY_MDB_JMS_DEST_TOPIC_SECURITY_PRINCIPAL != null) {\n if (NOTIFY_MDB_JMS_DEST_Q_SECURITY_CREDENTIALS != null) {\n NOTIFY_MDB_JMS_DEST_Q_SECURITY_CREDENTIALS = \n GWGenUtils.decrypt(NOTIFY_MDB_JMS_DEST_Q_SECURITY_PRINCIPAL, \n NOTIFY_MDB_JMS_DEST_Q_SECURITY_CREDENTIALS).trim();\n } else {\n throw new Exception(\"NOTIFY_MDB_JMS_DEST_Q_SECURITY_CREDENTIALS \" + \n \"should also be provided if NOTIFY_MDB_JMS_DEST_Q_SECURITY_PRINCIPAL \" + \n \"is provided.\");\n }\n }\n\n NOTIFY_MDB_JMS_DEST_Q_QCF = g_GWProperties.getProperty(IFCConstants.NOTIFY_MDB_JMS_DEST_Q_QCF);\n NOTIFY_MDB_JMS_DEST_QUEUE_NAME = g_GWProperties.getProperty(IFCConstants.NOTIFY_MDB_JMS_DEST_QUEUE_NAME);\n NOTIFY_MDB_JMS_DEST_Q_ACKNOWLEDGE = g_GWProperties.getProperty(IFCConstants.NOTIFY_MDB_JMS_DEST_Q_ACKNOWLEDGE);\n NOTIFY_MDB_JMS_DEST_Q_TRANSACTION = g_GWProperties.getProperty(IFCConstants.NOTIFY_MDB_JMS_DEST_Q_TRANSACTION);\n NOTIFY_MDB_JMS_DEST_Q_DELIVERY_OPT = new Integer(g_GWProperties.getProperty(IFCConstants.NOTIFY_MDB_JMS_DEST_Q_DELIVERY_OPT)).intValue();\n NOTIFY_MDB_JMS_DEST_Q_TIME_TO_LIVE = new Integer(g_GWProperties.getProperty(IFCConstants.NOTIFY_MDB_JMS_DEST_Q_TIME_TO_LIVE)).intValue();\n NOTIFY_MDB_JMS_DEST_Q_PRIORITY = new Integer(g_GWProperties.getProperty(IFCConstants.NOTIFY_MDB_JMS_DEST_Q_PRIORITY)).intValue();\n \n DEFFERED_MDB_JMS_DEST_Q_ICF = g_GWProperties.getProperty(IFCConstants.DEFFERED_MDB_JMS_DEST_Q_ICF);\n DEFFERED_MDB_JMS_DEST_Q_PROVIDER_URL = g_GWProperties.getProperty(IFCConstants.DEFFERED_MDB_JMS_DEST_Q_PROVIDER_URL);\n\n DEFFERED_MDB_JMS_DEST_Q_SECURITY_PRINCIPAL = g_GWProperties.getProperty(IFCConstants.DEFFERED_MDB_JMS_DEST_Q_SECURITY_PRINCIPAL);\n DEFFERED_MDB_JMS_DEST_Q_SECURITY_CREDENTIALS = g_GWProperties.getProperty(IFCConstants.DEFFERED_MDB_JMS_DEST_Q_SECURITY_CREDENTIALS);\n\n if (NOTIFY_MDB_JMS_DEST_TOPIC_SECURITY_PRINCIPAL != null) {\n if (DEFFERED_MDB_JMS_DEST_Q_SECURITY_CREDENTIALS != null) {\n DEFFERED_MDB_JMS_DEST_Q_SECURITY_CREDENTIALS = \n GWGenUtils.decrypt(DEFFERED_MDB_JMS_DEST_Q_SECURITY_PRINCIPAL, \n DEFFERED_MDB_JMS_DEST_Q_SECURITY_CREDENTIALS).trim();\n } else {\n throw new Exception(\"DEFFERED_MDB_JMS_DEST_Q_SECURITY_CREDENTIALS \" + \n \"should also be provided if DEFFERED_MDB_JMS_DEST_Q_SECURITY_PRINCIPAL \" + \n \"is provided.\");\n }\n }\n\n DEFFERED_MDB_JMS_DEST_Q_QCF = g_GWProperties.getProperty(IFCConstants.DEFFERED_MDB_JMS_DEST_Q_QCF);\n DEFFERED_MDB_JMS_DEST_QUEUE_NAME = g_GWProperties.getProperty(IFCConstants.DEFFERED_MDB_JMS_DEST_QUEUE_NAME);\n DEFFERED_MDB_JMS_DEST_Q_ACKNOWLEDGE = g_GWProperties.getProperty(IFCConstants.DEFFERED_MDB_JMS_DEST_Q_ACKNOWLEDGE);\n DEFFERED_MDB_JMS_DEST_Q_TRANSACTION = g_GWProperties.getProperty(IFCConstants.DEFFERED_MDB_JMS_DEST_Q_TRANSACTION);\n DEFFERED_MDB_JMS_DEST_Q_DELIVERY_OPT = new Integer(g_GWProperties.getProperty(IFCConstants.DEFFERED_MDB_JMS_DEST_Q_DELIVERY_OPT)).intValue();\n DEFFERED_MDB_JMS_DEST_Q_TIME_TO_LIVE = new Integer(g_GWProperties.getProperty(IFCConstants.DEFFERED_MDB_JMS_DEST_Q_TIME_TO_LIVE)).intValue();\n DEFFERED_MDB_JMS_DEST_Q_PRIORITY = new Integer(g_GWProperties.getProperty(IFCConstants.DEFFERED_MDB_JMS_DEST_Q_PRIORITY)).intValue();\n }\n //String loggerPath = g_GWProperties.getProperty(IFCConstants.LOGGER_PATH);//COMMENTED BY BALAJI\n //g_GWLoggerProp = new GWLoggerProperties(loggerPath); //COMMENTED BY BALAJI\n g_GWLoggerProp = FCApplicationGlobals.getProps();//log propertes is read from gw properties path\n\n\n }", "title": "" }, { "docid": "fe903ad0e4f7baa874bf0f15b52ae68e", "score": "0.56292224", "text": "protected void initialize() {\n\t\tif (RobotMap.logFile != null) {\n\t\t\tRobotMap.logFile.writeEventFRC(\"Init\" + getName(),\n\t\t\t\t\tRobotMap.timer.getFPGATimestamp());\n\t\t}\n\t}", "title": "" }, { "docid": "97253b60dd971093eff3ddf074d08f19", "score": "0.56033826", "text": "@Override\r\n\tpublic void init(MessagingTarget messagingTarget) throws Exception {\r\n\r\n\t}", "title": "" }, { "docid": "426c0bab7de0f5575f92138a972dc92f", "score": "0.56033254", "text": "public abstract void parseMsgInit();", "title": "" }, { "docid": "af6a3d8b3c2412c106df536713054a9a", "score": "0.5603034", "text": "@Override\n\tprotected void init() throws SiDCException, Exception {\n\t\tLogAction.getInstance().debug(\"Request:\" + this.enity);\n\t\tLogAction.getInstance().setUserId(this.enity.getRoomno());\n\t\tLogAction.getInstance().setContent(this.enity.getKeycode());\n\t}", "title": "" }, { "docid": "256c27e1c86653e4f777d2cda2f9c2cc", "score": "0.55804193", "text": "public CommunicationLayer() {\n messageInboxes = new HashMap<>();\n }", "title": "" }, { "docid": "fad85038970e65eca2c7e0c9d8bd5c31", "score": "0.5576205", "text": "public static void init()\n {\n Debug = Bot.getConfiguration().GetConfig(\"log\", false);\n }", "title": "" }, { "docid": "58d2ca1c03de6b45c06626fb0c2c0f06", "score": "0.5572781", "text": "private AgentMessage() {\n initFields();\n }", "title": "" }, { "docid": "804a5d4feb8ca7adeb397c7dd52e4f5b", "score": "0.55530536", "text": "public ProMsgReceived () {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "f368aad42875363b95b4bbfe9e780609", "score": "0.55335283", "text": "@Override\n public final void init() throws JBIException {\n getLogger().fine(\"ProviderEndpoint: init called\");\n doInit(); //1. initialize the endpiont resources\n addMessageExchangeListener(); //2. register message exchange linster.\n }", "title": "" }, { "docid": "5f037c1f165811191bc92b313749e235", "score": "0.55312824", "text": "private Msg() {\n initFields();\n }", "title": "" }, { "docid": "a451643d0a57390fd76600531361aba9", "score": "0.55309486", "text": "private LimeReceivedMessageStat() {}", "title": "" }, { "docid": "42d8d690702d5b2c72be2a2fdb360273", "score": "0.55078626", "text": "@Start\n\tpublic void init() throws ObjectStoreException, JSONException, IOException {\n\t\tif (config.getIsMQ()) {\n\t\t\tJsonLoggerWithMQConfig amqConf = (JsonLoggerWithMQConfig) config;\n\t\t\tamq = new AnypointMQHelper(amqConf.getClientAppId(), amqConf.getClientSecret(), amqConf.getMqEndpoint(), amqConf.getDestination(), registry, muleContext);\n\t\t}\n\t}", "title": "" }, { "docid": "8c18a6852c55c6300a476dbda07d8f45", "score": "0.5501185", "text": "public InitializationHandler( MessageCenter message_center )\n {\n this.message_center = message_center;\n\n histogram_ok = false;\n dq_ok = false;\n instrument_ok = false;\n loading_file = false;\n udpLoadStarted = false;\n\n socket_evl = null;\n current_port = -1;\n // load messages \n message_center.addReceiver( this, Commands.LOAD_FILE );\n message_center.addReceiver( this, Commands.LOAD_UDP_EVENTS);\n\n // control messages\n message_center.addReceiver( this, Commands.PAUSE_UDP);\n message_center.addReceiver( this, Commands.CLEAR_UDP);\n message_center.addReceiver( this, Commands.CONTINUE_UDP);\n message_center.addReceiver( this, Commands.EXIT_APPLICATION);\n\n // status messages\n message_center.addReceiver( this, Commands.LOAD_FAILED );\n message_center.addReceiver( this, Commands.LOAD_FILE_DONE );\n message_center.addReceiver( this, Commands.INIT_HISTOGRAM_DONE );\n message_center.addReceiver( this, Commands.INIT_DQ_DONE );\n message_center.addReceiver( this, Commands.INIT_NEW_INSTRUMENT_DONE);\n }", "title": "" }, { "docid": "57f090c3e8ee82437160f8653da1ccc3", "score": "0.54985744", "text": "public void teleopInit() {\r\n\t}", "title": "" }, { "docid": "da7424a47ca16dde28d5b9f5171e5140", "score": "0.5469543", "text": "public SysLoginLogRecord() {\n super(SysLoginLog.SYS_LOGIN_LOG);\n }", "title": "" }, { "docid": "7055b573c2711448a7d0aaaefddc6d34", "score": "0.54644156", "text": "private void initializeLogger() {\n Logger logger = GMSLogDomain.getLogger(GMSLogDomain.GMS_LOGGER);\n logger.setUseParentHandlers(false);\n logger.setLevel(logLevel);\n logger.addHandler(new MonitorLogHandler(monitor));\n }", "title": "" }, { "docid": "affd4f675199603cf9bcddf8a3b9334c", "score": "0.54407144", "text": "private void init() {\n\t\t\r\n\t\tconn = ProducerConnection.getConnection();\r\n\t\tconsola += \"<BR>==> CONEXION ESTABLECIDA: \" + conn.toString();\r\n\t\t\r\n\t\ttry{\r\n\t\t\t// Create a Session\r\n\t\t\tsession = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);\r\n\r\n // Create the destination (Topic or Queue)\r\n Destination destination = session.createQueue(\"TEST.MECCANO\");\r\n\r\n // Create a MessageProducer from the Session to the Topic or Queue\r\n producer = session.createProducer(destination);\r\n producer.setDeliveryMode(DeliveryMode.NON_PERSISTENT);\r\n\t\t\r\n\t\t }\r\n\t catch (Exception e) {\r\n System.out.println(\"Init Caught: \" + e);\r\n e.printStackTrace();\r\n \r\n }\r\n\t}", "title": "" }, { "docid": "7435aa0419fc44fbea8057f2c543d9c3", "score": "0.5435626", "text": "@Override\n\tprotected void init() throws SiDCException, Exception {\n\t\tLogAction.getInstance().debug(\"Request:\" + entity);\n\t}", "title": "" }, { "docid": "d55780a9be567c2bfa6fcbaba8aa8f42", "score": "0.54158354", "text": "public Log() {\n super();\n }", "title": "" }, { "docid": "fb910f246813dce9d04253befe6ca71d", "score": "0.5410921", "text": "@Override\n public void initializeLogging() {\n super.initializeLogging();\n mLogFragment.initializeLogging();\n }", "title": "" }, { "docid": "945a799007b4dd6a0c399d09918c5c8a", "score": "0.5386589", "text": "public SgaroleImplMsgBundle()\n {\n }", "title": "" }, { "docid": "c37be246115b25caec66f3fada014620", "score": "0.5378747", "text": "public LogList() { // Public constructor\r\n }", "title": "" }, { "docid": "fd838bbaf77085a9bffe167a55cbf23e", "score": "0.537155", "text": "public FMLogEvents(XLog log) {\n\t\teventLog = log;\n\t\tlogInfo = XLogInfoFactory.createLogInfo(log);\n\t\t//logEvents = logInfo.\n\n\t}", "title": "" }, { "docid": "35e0dee964c7cbcc86c5c8b76b7acf90", "score": "0.5370298", "text": "private CSReadMessage() {}", "title": "" }, { "docid": "f7302f3d45122b0f508cbc4c2240a52b", "score": "0.53507745", "text": "@Override\n public void teleopInit() {\n }", "title": "" }, { "docid": "f7302f3d45122b0f508cbc4c2240a52b", "score": "0.53507745", "text": "@Override\n public void teleopInit() {\n }", "title": "" }, { "docid": "1de93aaeaf5b73d24e695820cdd50908", "score": "0.53492296", "text": "public APPIfeLogExample() {\n oredCriteria = new ArrayList<Criteria>();\n offset = 0;\n limit = Integer.MAX_VALUE;\n }", "title": "" }, { "docid": "8d4938e0fb864a4e8c24a04e4432a63c", "score": "0.5341463", "text": "public InfoLog() {\n\t\tsuper(TYPE);\n\t}", "title": "" }, { "docid": "c054ddc9ac819db35d1a74c45f58ed03", "score": "0.5323811", "text": "public static void init() {\r\n// com.orhanobut.logger.Logger.addLogAdapter(new AndroidLogAdapter());\r\n// com.orhanobut.logger.Logger.addLogAdapter(new DiskLogAdapter());\r\n\r\n Calendar curDay = Calendar.getInstance();\r\n curDay.set(Calendar.HOUR_OF_DAY, 0);\r\n curDay.set(Calendar.MINUTE, 0);\r\n curDay.set(Calendar.SECOND, 0);\r\n curDay.set(Calendar.MILLISECOND, 0);\r\n\r\n// logFileName = DateUtil.getFormatDate(DateUtil.DATA_FORMAT_yyyy_MM_dd_hh_mm_ss_UNDERLINE, curDay.getTimeInMillis());\r\n// logFileName += Constant.JAVA_HOOK_AGENT_LOG_FILE_SUFFIX;\r\n logFileCreateDate = Calendar.getInstance();\r\n\r\n writerThread = new WriterThread();\r\n writerThread.start();\r\n\r\n // timer to check if write log to new log file\r\n// startCheckTimer();\r\n\r\n }", "title": "" }, { "docid": "e3603b0d455b19afc7caf6888ba3e4c2", "score": "0.5316828", "text": "private TypicalLogs() {}", "title": "" }, { "docid": "e42dacf0a7f1cd7c8699937a4fd02224", "score": "0.53137106", "text": "public CommMessage() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "82c5d5b1760e2d843cec896f86a55830", "score": "0.5313671", "text": "private LogKernel() {}", "title": "" }, { "docid": "d84a0863c29760e10e5635ffd4eabd28", "score": "0.52985734", "text": "public APSLogger() {\n }", "title": "" }, { "docid": "9199d546d5416b8b5dda41e4f1d0e15d", "score": "0.52977175", "text": "public TeleportServerMessage() {\n\t}", "title": "" }, { "docid": "768436a40fe35a1fc5e8f3c6300180a5", "score": "0.5283606", "text": "@Override\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tsuper.handleMessage(msg);\n\t\t\t\tnew InitData().execute();\n\t\t\t}", "title": "" }, { "docid": "839626a75fc3129499a45bb5370f4153", "score": "0.5279977", "text": "private static void init() \n\t{\n\t\tjava.util.logging.Logger logger = java.util.logging.Logger.getLogger(GlobalScreen.class.getPackage().getName());\n\t\tlogger.setLevel(Level.WARNING);\n\n\t\t// Don't forget to disable the parent handlers.\n\t\tlogger.setUseParentHandlers(false);\n\t}", "title": "" }, { "docid": "8a240622b7c53d2a230a6c4d43e08efc", "score": "0.5261224", "text": "private void init() {\n\t\tString pin = readProp(\"PIN_PASSWORD\");\n\t\tif (pin != null) {\n\t\t\tpinCode(Integer.valueOf(pin).intValue());\n\t\t}\n\t\t// received SMS should go to MT memory, set preferred storage\n\t\tsendAT(\"AT+CPMS=\\\"MT\\\"\", \"OK\");\n\n\t\tint i = 1;\n\t\twhile (sendAT(\"AT+CMGD=\" + i, \"OK\")) {\n\t\t\ti++;\n\t\t}\n\n\t\t// init for SMS URC\n\t\t// AT+CNMI=[<mode>][, <mt>][, <bm>][, <ds>][, <bfr>]\n\t\tsendAT(\"AT+CNMI=3,1,0,2,1\", \"OK\");\n\t\t// init for text mode sms\n\t\tsendAT(\"AT+CMGF=1\", \"OK\");\n\t\t// TODO enable OTAP\n\t}", "title": "" }, { "docid": "921899123e11f045962bec9f74dd436d", "score": "0.5255885", "text": "private void initXVSMConnection() {\n core = DefaultMzsCore.newInstance();\n capi = new Capi(core);\n nm = new NotificationManager(core);\n\t}", "title": "" }, { "docid": "a11ed45a24d40ec673433ff1af9d461e", "score": "0.5249797", "text": "private static void initLog(String[] args) {\n \r\n if (jawbLogger != null)\r\n return;\r\n \r\n jawbLogger = new JawbLogger(args);\r\n \r\n }", "title": "" }, { "docid": "c2f0a8cff58c274e284606932b013114", "score": "0.5247971", "text": "private MasterLogManager() {\n }", "title": "" }, { "docid": "451676ab742c253ffb92b32dc3c50b3b", "score": "0.5247392", "text": "public SaleLog() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "892ed7bbe87004fce84f88435b4f9488", "score": "0.52454144", "text": "private HistoryEventMsg() {\n\t}", "title": "" }, { "docid": "9b75474832c1e542d4f27c8525540404", "score": "0.5238704", "text": "public MessageHelper() {\r\n }", "title": "" }, { "docid": "ccc2d4f87cf9a7688d348ea0e6c3004d", "score": "0.52306926", "text": "public void teleopInit(){\n }", "title": "" }, { "docid": "ccc2d4f87cf9a7688d348ea0e6c3004d", "score": "0.52306926", "text": "public void teleopInit(){\n }", "title": "" }, { "docid": "e63f6598ff7ff36bfd01f96fba10685e", "score": "0.5224681", "text": "public void initialize() {\n AuthenticationItem auth = new AuthenticationItem();\n auth.setClientId(clientId);\n auth.setSystemId(4);\n //hardcoded\n\n packetContext.setAuthenticationItem(auth);\n\n try {\n //Prepare the SyncClientManager\n SyncClientManager clientManager = new SyncClientManager();\n clientManager.addClient(connection, auth.getClientId());\n packetContext.setClientManager(clientManager);\n } catch (SQLException e) {\n e.printStackTrace(System.out);\n }\n\n //Disable sync client server mapping if the sync reader is preparing a package for the server\n if (recipient == SyncPackage.SYNC_SERVER) {\n packetContext.setDisableSyncMap(true);\n }\n\n //Prepare the objectMap: The allowable objects that can be processed for the\n //given systemId\n HashMap objectMap = this.getObjectMap(connection, auth);\n packetContext.setObjectMap(objectMap);\n }", "title": "" }, { "docid": "3f9779963efc58da1181cf320167300e", "score": "0.5222662", "text": "@PostConstruct\n public void init() {\n try {\n this.clientSrv = MetierFactory.getClientService();\n this.setLogins(this.clientSrv.getLogins());\n System.out.println(\"-------------------------INIT OK---------------------------\");\n } catch (Exception ex) {\n // do nothing for this moment\n System.err.println(\"BOBO\");\n }\n }", "title": "" }, { "docid": "d57d8ecc3ac3ae9fa810b35e2c8f1b2d", "score": "0.52206403", "text": "private void initLogger() {\r\n logger = Logger.getLogger(\"StorageHandler\");\r\n initFileHandler();\r\n logger.addHandler(fileHandler);\r\n fileHandler.setLevel(Level.ALL);\r\n logger.setLevel(Level.ALL);\r\n logger.config(\"Logger initialised.\");\r\n logger.info(\"Logger name: \" + logger.getName());\r\n }", "title": "" }, { "docid": "51d86d252020c3d5901ff002bd4d7ee7", "score": "0.521515", "text": "private void init() {\n\t\tnodata=(TextView) findViewById(R.id.nodataTxt);\r\n\t\tlistView = (ListView) findViewById(R.id.listview);\r\n\t\tadapter = new CreditAdapter(this);\r\n\t\tlistView.setAdapter(adapter);\r\n\t\tRequestWrapper wrapper = new RequestWrapper();\r\n\t\twrapper.setIdentity(MyApplication.identity);\r\n\t\tsendData(wrapper, NetworkAction.centerF_user_integral);\r\n\t}", "title": "" }, { "docid": "01de5fbdee7e6e036ae69e12aeb2202e", "score": "0.52081865", "text": "private void initProFlowInfo() {\n }", "title": "" }, { "docid": "e19ed733a98dbf30873b4766ea5ad2b1", "score": "0.5198326", "text": "private void populateLog() {\n\n logAdapter = new LogListAdapter();\n logListView.setAdapter(logAdapter);\n }", "title": "" }, { "docid": "d7d2bd5f203cfda9e9b0f497ab915da4", "score": "0.51978797", "text": "private void initializeLogging(View v) {\n // Wraps Android's native log framework.\n LogWrapper logWrapper = new LogWrapper();\n // Using Log, front-end to the logging chain, emulates android.util.log method signatures.\n Log.setLogNode(logWrapper);\n // Filter strips out everything except the message text.\n MessageOnlyLogFilter msgFilter = new MessageOnlyLogFilter();\n logWrapper.setNext(msgFilter);\n // On screen logging via a customized TextView.\n LogView logView = (LogView) v.findViewById(R.id.sample_logview);\n logView.setBackgroundColor(Color.WHITE);\n msgFilter.setNext(logView);\n Log.i(TAG, \"Ready\");\n }", "title": "" }, { "docid": "683f8e741c193ed95437b5fdbc0a7941", "score": "0.51968074", "text": "@PostConstruct\n\tpublic void init() {\n\t\tLOGGER.info(\"[AzureChatServiceBus][init] start\");\n\t\tString excpMsg = null;\n\t\ttry {\n\n\t\t\texcpMsg = AzureChatUtils\n\t\t\t\t\t.getProperty(AzureChatConstants.EXCEP_MSG_STARTUP_SERVICE_BUS);\n\t\t\tLOGGER.debug(\"Service Bus initialization started.\");\n\t\t\tgetServicebus();\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.error(\"Exception occurred while creating azure service bus object from the existing configuration. Exception Message : \"\n\t\t\t\t\t+ e.getMessage());\n\t\t\tazureChatStartupUtils.populateStartupErrors(new AzureChatException(\n\t\t\t\t\tAzureChatConstants.EXCEP_CODE_SYSTEM_EXCEPTION,\n\t\t\t\t\tAzureChatConstants.EXCEP_TYPE_SYSTYEM_EXCEPTION, excpMsg\n\t\t\t\t\t\t\t+ e.getMessage()));\n\t\t}\n\t\ttry {\n\t\t\texcpMsg = AzureChatUtils\n\t\t\t\t\t.getProperty(AzureChatConstants.EXCEP_MSG_STARTUP_SERVICE_QUEUE);\n\t\t\tLOGGER.debug(\"creating Service Bus queue.\");\n\t\t\tcreateQueue();\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.error(\"Exception occurred while creating azure service bus queue. Exception Message :\"\n\t\t\t\t\t+ e.getMessage());\n\t\t\tazureChatStartupUtils.populateStartupErrors(new AzureChatException(\n\t\t\t\t\tAzureChatConstants.EXCEP_CODE_SYSTEM_EXCEPTION,\n\t\t\t\t\tAzureChatConstants.EXCEP_TYPE_SYSTYEM_EXCEPTION, excpMsg\n\t\t\t\t\t\t\t+ e.getMessage()));\n\t\t}\n\t\tLOGGER.info(\"[AzureChatServiceBus][init] end\");\n\t}", "title": "" }, { "docid": "9d0cd6feb36d758ed175b4052e1f6d76", "score": "0.51856595", "text": "@Override\n public void initialize() {\n // timer stuff\n robotTimer.reset();\n robotTimer.start();\n\n attempts = 0;\n values = new double[LoggerRelations.values().length];\n\n Date timeInMillis = new Date(System.currentTimeMillis());\n String logTimeStamp = fileFormatter.format(timeInMillis);\n\n logFileLocation = LOG_FILE_PATH + \"SyncLog-\" + logTimeStamp + \".csv\";\n }", "title": "" }, { "docid": "7de4e5bf68086dfc8d1f7b2676d74ea7", "score": "0.5185093", "text": "public void onMessage(Message message) {\r\n\r\n\t\tlogger.info(\"=========================SQU-OTO Bean SU Start=========================\");\r\n\t\tString indata = null;\r\n\t\tHashMap<String, String> headerMap = null;\r\n\t\tHashMap<String, String> propertyMap = new HashMap<String, String>();\r\n\t\tObject sendMessage = null;\r\n\t\tObject pojo = null;\r\n\t\ttry {\r\n\t\t\tif (message instanceof TextMessage) {\r\n\r\n\t\t\t\tlogger.info(\"IndigoMessage Header Used Process ...\");\r\n\t\t\t\tindata = getMessage(message);\r\n\t\t\t\theaderMap = XPathUtils.getHashMapFromXml(indata, \"/root/sndheader\");\r\n\t\t\t\tlogger.debug(\"[SQU-OTO] HeaderMap :\" + headerMap);\r\n\t\t\t\tlogger.debug(\"Received Message: \" + indata);\r\n\t\t\t\tsendMessage = indata;\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\tpojo = this.jmsTemplate.getMessageConverter().fromMessage(message);\r\n\t\t\t\tlogger.info(\"Template Message ..\");\r\n\t\t\t\tlogger.info(\"Property Used Process ...\");\r\n\r\n\t\t\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\t\tEnumeration<Object> propertyKey = message.getPropertyNames();\r\n\r\n\t\t\t\twhile (propertyKey.hasMoreElements()) {\r\n\t\t\t\t\tString key = propertyKey.nextElement().toString();\r\n\t\t\t\t\tpropertyMap.put(key, message.getStringProperty(key));\r\n\t\t\t\t}\r\n\r\n\t\t\t\tsendMessage = pojo;\r\n\t\t\t\theaderMap = propertyMap;\r\n\t\t\t}\r\n\r\n\t\t\tlogger.debug(this.getClass().getSimpleName() + \" Message Header \" + headerMap);\r\n\r\n\t\t\tif ((headerMap != null) && (headerMap.size() > 0)) {\r\n\t\t\t\tString if_id = headerMap.get(\"if_id\");\r\n\r\n\t\t\t\tList<Map<String, Object>> routeList = getRouteData().getRouteMap().get(if_id);\r\n\r\n\t\t\t\tif(routeList == null) {\r\n\t\t\t\t\t//doSendMessage(dlqName, propertyMap, sendMessage);\r\n\t\t\t\t \tString api_queue = headerMap.get(\"api_queue\");\r\n\t\t\t\t \tif(api_queue != null){\r\n\t\t\t\t \t propertyMap.put(\"log_stat\", \"F\");\r\n\t\t\t\t \t propertyMap.put(\"err_msg\", \"Routing Error\");\r\n\t\t\t\t \t doSendMessage(api_queue, propertyMap, sendMessage);\r\n\t\t\t\t \t}\r\n\r\n\t\t\t\t \t//버릴거면 오류 내고 끝내고\r\n\t\t\t\t \tif(getRouteData().isDiscardMessage()){\r\n\t\t\t\t \t\tthrow new Exception(\"Route_Info 정보를 확인 하세요 \" + if_id + \" 에 해당하는 Dest_id가 없습니다.\");\r\n\t\t\t\t \t}else{\r\n\t\t\t\t \t//안버릴거면 리다이렉트 큐로 전송\r\n\t\t\t\t \t\tdoSendMessage(getRouteData().getFailRedirectQueue(), propertyMap, sendMessage);\r\n\t\t\t\t \t\treturn;\r\n\t\t\t\t \t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\t/**\r\n\t\t\t\t\t * 로그 기록\r\n\t\t\t\t\t * headerMap 프로퍼티 재전송 메시지 검사해서 재전송이면 업데이트를 진행\r\n\t\t\t\t\t */\r\n\t\t\t\t\tif(propertyMap.containsKey(IndigoHeaderJMSPropertyConstants.ESB_POLL_TYPE)){\r\n\t\t\t\t\t\tString poolType = propertyMap.get(IndigoHeaderJMSPropertyConstants.ESB_POLL_TYPE);\r\n\t\t\t\t\t\tif(poolType.equals(IndigoHeaderJMSPropertyConstants.ESB_NORMAL) || poolType.equals(IndigoHeaderJMSPropertyConstants.ESB_REMOTE) ){\r\n\t\t\t\t\t\t\tinsertMasterLog(headerMap, routeList.size()<=1);\r\n\t\t\t\t\t\t}else if(poolType.equals(IndigoHeaderJMSPropertyConstants.ESB_RESEND)){\r\n\t\t\t\t\t\t\tupdateMasterLog(headerMap, routeList.size()<=1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tinsertMasterLog(headerMap, routeList.size()<=1);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(insertTpLog && propertyMap.get(IndigoHeaderJMSPropertyConstants.ESB_IF_TYPE).equals(\"TP\")){\r\n\t\t\t\t\t insertTPlog(headerMap, pojo);\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception ex) {\r\n\t\t\t\t\tlogger.error(\"Message Master Insert Fail : \" + ex);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t/**\r\n\t\t\t\t * 개별 재전송 구현 2014-10-17 clupine\r\n\t\t\t\t */\r\n\t\t\t\tSet<String> resendSet = null;\r\n\t\t\t\tif(propertyMap.containsKey(IndigoHeaderJMSPropertyConstants.ESB_RESEND_DEST_ID)){\r\n\t\t\t\t\tString destIds = propertyMap.get(IndigoHeaderJMSPropertyConstants.ESB_RESEND_DEST_ID);\r\n\t\t\t\t\tString[] destsArr = destIds.split(\",\");\r\n\t\t\t\t\tresendSet = new HashSet<String>(Arrays.asList(destsArr));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tfor (Map<String, Object> routData : routeList) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(resendSet != null && !resendSet.contains(routData.get(\"DEST_ID\"))){\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\trouteProcess(headerMap, propertyMap, sendMessage, if_id,routData);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tthrow new Exception(\"XML Header Null Error :/root/sndheader Header doesn't exist in this message\");\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception ex) {\r\n\t\t\tif ((ex instanceof SQLException))\r\n\t\t\t\tgetNextSqlException((SQLException) ex);\r\n\t\t\tlogger.error(\"[SQU-OTO] :\" + ex.getMessage(), ex);\r\n\r\n\t\t\ttry {\r\n\t\t\t\tif (!(ex instanceof SQLException)) {\r\n\t\t\t\t\tList<HashMap<String, String>> errBodyList = new ArrayList<HashMap<String, String>>();\r\n\t\t\t\t\tsetErrorData(errBodyList, ex, 0, null);\r\n\t\t\t\t\theaderMap.put(\"err_cnt\", headerMap.get(\"count\"));\r\n\t\t\t\t\tinsertCVTResultLog(headerMap, XmlUtils.makeXmlMessage(headerMap, errBodyList));\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception subEx) {\r\n\t\t\t\tif ((subEx instanceof SQLException))\r\n\t\t\t\t\tgetNextSqlException((SQLException) subEx);\r\n\t\t\t\tlogger.error(subEx.getMessage(), subEx);\r\n\t\t\t}\r\n\t\t}\r\n\t\tlogger.info(\"=========================SQU-OTO Bean END=========================\");\r\n\t}", "title": "" }, { "docid": "03a6f97743764343b3f20810983f41ca", "score": "0.51816815", "text": "protected void apInit() throws Exception {\n\t\treloadTypes();\r\n\t\tappendPpi( IChannelDriver.class, this );\r\n\t}", "title": "" }, { "docid": "244e9845de456341dbd7d3c9329d081b", "score": "0.5178891", "text": "void initiate()\n\t{\n\t\tStreamMsg m = new StreamMsg();\n\t\tm.type = MsgType.initiate;\n\t\tm.sourceNodeId = NIobj.id; \n\t\tsend(m);\n\t}", "title": "" }, { "docid": "de470076bd1a17388810338ac657e8bf", "score": "0.5177393", "text": "private DevLogDBContract(){}", "title": "" }, { "docid": "9c288bd6a06954340f47728d5f352553", "score": "0.5176433", "text": "public interface MessageDALService {\n\n // constants\n static final String DATA_EXPORT_NOTIFICATION = \"data export notification\";\n static final String PL_DOWNLOAD_NOTIFICATION = \"penalty letters download notification\";\n static final String FORGOT_LOGIN_USERNAME = \"forgot login username\";\n static final String FORGOT_LOGIN_PASSWORD = \"forgot login password\";\n static final String SUBMISSION_NOTIFICATION = \"submission notification\";\n static final String SUBMISSION_RECEIPT = \"submission receipt\";\n static final String SUBMISSION_REMINDER = \"submission reminder\";\n static final String TRANSMISSION_FAILURE = \"transmission failure\";\n static final String TRANSMISSION_RECEIPT = \"transmission receipt\";\n static final String TRASMISSION_MISSING_STATE = \"missing state exception\";\n static final String TRANSMISSION_MISSING_REPORTING_PERIOD = \"missing reporting period exception\";\n static final String TRANSMISSION_PROCESSING_ERROR = \"unknown exception\";\n static final String TRANSMISSION_WRONG_EXTENSION = \"xml extension error\";\n public static final String TRANSMISSION_FILE_FORMAT = \"Common message for File Format errors\";\n public static final String TRANSMISSION_IMPROPER_FORMAT = \"Improper Formatted Value - stops submission\";\n public static final String TRANSMISSION_FILE_FMT_RP_MISSING = \"File Format - Report period missing\";\n public static final String UNSUCCESSFUL_TRANSMISSION_SYSADMIN = \"Unsuccessful transmission, but successfully processed - sysadmin\";\n public static final String UNSUCCESSFUL_TRANSMISSION_STATE = \"Unsuccessful transmission, but successfully processed - State\";\n public static final String UNSUCCESSFUL_TRANSMISSION_STOP_PROCESSING_SYSADMIN = \"Unsuccessful Transmission, processing stopped - Sysadmin\";\n public static final String UNSUCCESSFUL_TRANSMISSION_STOP_PROCESSING_STATE = \"Unsuccessful Transmission, processing stopped - State\";\n public static final String UNSUCCESSFUL_TRANSMISSION_FILE_TYPE_ERROR = \"Unsuccessful Transmission, processing stopped - Incorrect file type\";\n public static final String USER_ADDED = \"User added\";\n public static final String USER_DELETED = \"User deleted\";\n public static final String OVERWRITE_COHORTSET_AGE19 = \"Cohort Update Age 19\";\n public static final String OVERWRITE_COHORTSET_AGE21 = \"Cohort Update Age 21\";\n public static final String REIMPORTINFO_COHORTSET_AGE19 = \"Cohort Update Reimport Age 19\";\n public static final String REIMPORTINFO_COHORTSET_AGE21 = \"Cohort Update Reimport Age 21\";\n public static final String SAMPLING_REQUEST_APPROVED = \"Sampling Request Approved\";\n public static final String SAMPLING_REQUEST_SUBMITTED = \"Sampling Request Submitted\";\n public static final String SAMPLING_DRAWN = \"Sampling Import Success\";\n public static final String SAMPLING_REIMPORT_DRAWN = \"Sampling Reimport Success\";\n public static final String SAMPLING_FILE_FORMAT_ERROR = \"Sampling file format error\";\n public static final String SAMPLING_FILE_RECORDS_ERROR = \"Sampling file records error\";\n\n /**\n * Create system message.\n *\n * @param type a type of message as String\n * @param namedParams parameters in the message as Map\n * @return Message object to send out\n */\n Message createSystemMessage(String type, Map<String, Object> namedParams);\n\n /**\n * Prepare system message.\n *\n * @param msg as a Message object\n * @return Message object to send out\n */\n Message prepareSystemMessage(Message msg);\n\n /**\n * Prepare system message.\n *\n * @param search as a Message object\n * @return Message object to send out\n */\n MessageSearch search(MessageSearch search);\n\n /**\n * Send out email notification to a list of email addresses\n *\n * @param systemMsg as a Message object\n * @param emailAddresses as a List of String\n */\n void sendEmailNotification(Message systemMsg, List<String> emailAddresses);\n\n /**\n * Send system message to a list of NYTD users\n *\n * @param msg as a Message object\n * @param recipient as a List of SiteUser\n */\n void sendSystemMessage(Message msg, SiteUser recipient);\n\n /**\n * Send system message to a list of NYTD users\n *\n * @param msg as a Message object\n * @param recipients as a List of SiteUser\n */\n void sendSystemMessage(Message msg, List<SiteUser> recipients);\n\n /**\n *\n */\n void sendRequiredSystemMessage(Message msg, List<SiteUser> recipients);\n /**\n * Send out message to a list of NYTD users\n *\n * @param msg as a Message object\n * @param recipients as a List of SiteUser\n * @return Message sent\n */\n Message sendMessage(Message msg, List<SiteUser> recipients);\n\n /**\n * Get message by message id\n *\n * @param messageId as Long\n * @return Message object\n */\n Optional<Message> getMessage(Long messageId);\n\n}", "title": "" }, { "docid": "d236381bb14009beb5833af6e372731e", "score": "0.5173873", "text": "protected void initialize() {\n logger.info(\"AutoLineUpWithCargoshipCommand start\");\n \n }", "title": "" }, { "docid": "0e1031557675ed2fc0885b34468e3178", "score": "0.51692116", "text": "public static void init() {\r\n\t\tGameLog.isInitialized = true;\r\n\t\tGameLog.waitingLogs = new ConcurrentSkipListMap<Long, LogObject>();\r\n\t\tGameLog.timer = new Timer();\r\n//\t\tGameLog.timer.schedule(new TimerTask() {\r\n//\t\t\t@Override\r\n//\t\t\tpublic void run() {\r\n//\t\t\t\tfor (long elementTime : GameLog.waitingLogs.keySet()) {\r\n//\t\t\t\t\tlong currentTime = System.currentTimeMillis();\r\n//\t\t\t\t\tif (currentTime - elementTime > 300) {\r\n//\t\t\t\t\t\tGameLog.log(GameLog.waitingLogs.remove(elementTime));\r\n//\t\t\t\t\t}\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n//\t\t}, 0, 2000);\r\n\t\tGameLog.loadLogFile();\r\n\t\tif (guiPossible)\r\n\t\t\tGameLog.textPane = new GameLogTextPane();\r\n\t\telse\r\n\t\t\treturn;\r\n\t\tGameLog.log(MsgType.INIT, \"Log\", msgColor);\r\n\t\tGameLog.appendToPrepText(0, \"Game Log\\n\", msgColor);\r\n\t\tif (prepText == null)\r\n\t\t\tGameLog.prepText = new TreeMap<Integer, Pair<String, Color>>();\r\n\t}", "title": "" }, { "docid": "fe9f830bf28f9313b4038207a8ab02d3", "score": "0.5165949", "text": "@MessageLogger(projectCode = \"OVERLORD\")\npublic interface SubsystemLogger extends BasicLogger {\n\n /**\n * A logger with a category of the package name.\n */\n public SubsystemLogger ROOT_LOGGER = Logger.getMessageLogger(SubsystemLogger.class, \"org.overlord.commons.eap.extensions.config\"); //$NON-NLS-1$\n\n /**\n * Logs a debug message with details of the current configuration.\n *\n *@param name The configuration name\n * @param propertyMap \n */\n @LogMessage(level = Level.DEBUG)\n @Message(id = 2000, value = \"Processing configuration name: %1$s, properties: %2$s\")\n public void configurationInformation(final String name, final Map<String, String> propertyMap);\n\n /**\n * Info message documenting the start of the extension.\n */\n @LogMessage(level = Level.INFO)\n @Message(id = 2001, value = \"Activating Overlord Configuration Extension\")\n public void activatingExtension();\n\n /**\n * Logs a debug message with details of the configuration being removed.\n *\n *@param name The configuration name\n */\n @LogMessage(level = Level.DEBUG)\n @Message(id = 2002, value = \"Removing configuration %s\")\n public void removingConfiguration(final String name);\n}", "title": "" }, { "docid": "785b83d2660d800819a2150241e0f645", "score": "0.5164624", "text": "private void initStandardLogfile () {\t\t\n\t\ttry {\n\t\t\tif ( this instanceof LocalNode )\n\t\t\t\taddObserver( new NodeStreamLogger(\"log/l2p_local_\" + ((LocalNode) this).getNodeId() + \".log\"));\n\t\t\telse if ( this instanceof PastryNodeImpl )\n\t\t\t\taddObserver ( new NodeStreamLogger () );\n\t\t\telse\n\t\t\t\taddObserver ( new NodeStreamLogger ( \"log/l2p_node.log\"));\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.err.println ( \"Error opening standard node log: \" + e + \"\\n\\n\\n\");\n\t\t\taddObserver ( new NodeStreamLogger ( System.out));\n\t\t}\n\t}", "title": "" }, { "docid": "7f9daeed7e677388f676067c5506bf8d", "score": "0.51571196", "text": "public L_XMLMsg() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "title": "" }, { "docid": "b1aa83e3ec77ee5071190cc049e15dc9", "score": "0.5156452", "text": "protected void endpointInit() {\n\t}", "title": "" }, { "docid": "d1d0d7c50d2925dc4274b1e67d848f2f", "score": "0.51534975", "text": "public void init() {\r\n\t\tif (log == null) {\r\n\t\t\t// JUnitの場合、logのインスタンスが生成できないため\r\n\t\t\tlog = Logger.getLogger(this.getClass().getName());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "318feddbc191e53a4dffd9733547fce4", "score": "0.5144246", "text": "private MessageHandler() {\r\n\r\n\t\tformat = new SimpleDateFormat(\"HH mm ss\");\r\n\t}", "title": "" }, { "docid": "be4d8d197b7c973376686289cf683ffe", "score": "0.5143196", "text": "public void init()\n {\n CougaarMessageTransportService cougaarMessageTransport = new CougaarMessageTransportService(_mts);\n try {\n MessageReceiver messageReceiver = cougaarMessageTransport.newMessageReceiver();\n CougaarLocator myLocator = new CougaarLocator(_agentId + \"PolicyAdminServletComponent\");\n messageReceiver.bindToLocalLocator(myLocator);\n \n String domainName = System.getProperty(\"org.cougaar.safe.domainName\");\n if (domainName == null) {\n throw new NullPointerException(\"System property org.cougaar.safe.domainName is not set\");\n } \n MessageSender messageSender = cougaarMessageTransport.newMessageSender();\n CougaarLocator dmLocator = new CougaarLocator(domainName);\n messageSender.bindToRemoteLocator(dmLocator);\n _bridgeClass = new PolicyAdminBridge(messageSender,\n messageReceiver);\n }\n catch (Exception xcp) {\n xcp.printStackTrace();\n } \n }", "title": "" }, { "docid": "cea0c16d28e76a4d422054cbb9485079", "score": "0.51377124", "text": "public void init()\n\t{\n\t\tsuper.init();\n\t\tM_log.info(\"init()\");\n\t}", "title": "" }, { "docid": "8c1ac03d9f4dc81f79738f7328fb2e25", "score": "0.51373935", "text": "public Logger() {\n queue = new LinkedList<>();\n map = new HashMap<>();\n }", "title": "" }, { "docid": "0a318767e419cc72dfed8489d40a2eb2", "score": "0.51358896", "text": "public static void initialiseLogging() {\n\t\tfinal LogConfigurator logConfigurator = new LogConfigurator();\n\n\t\tlogConfigurator.setFileName(Environment.getExternalStorageDirectory()\n\t\t\t\t+ \"/evotingcircle.log\");\n\t\tlogConfigurator.setRootLevel(AndroidApplication.LEVEL);\n\t\t// max 3 rotated log files\n\t\tlogConfigurator.setMaxBackupSize(3);\n\t\t// Max 500ko per file\n\t\tlogConfigurator.setMaxFileSize(500000);\n\t\tlogConfigurator.configure();\n\t}", "title": "" }, { "docid": "8c541dbe64b499804d4741128ad92675", "score": "0.5135101", "text": "public Logger() {\n this.stream = new HashMap<String, Integer>();\n }", "title": "" }, { "docid": "0bb771eb8c200dddcef6ff797955c16f", "score": "0.5131043", "text": "public MessageBrokerImpl()\n {\n this.messageThreads = new HashMap<String, MessageThread>();\n }", "title": "" }, { "docid": "1ca262425bc5745677c9a53d6a9f1b71", "score": "0.5129886", "text": "void setInitialMessage(String message);", "title": "" }, { "docid": "8a00b2bc75a5ff0b7b593fc2c8555e39", "score": "0.512934", "text": "public Message(MessageType start_View, int view_number,\n\t\t\tArrayList<Message> log, int op_number, int commited_number) {\n\t\tthis.type = start_View;\n\t\tthis.view_number = view_number;\n\t\tthis.log = log;\n\t\tthis.operation_number = op_number;\n\t\tthis.commit_Number = commited_number;\n\t}", "title": "" }, { "docid": "1eed5123aacd11416b125d520d18d7a3", "score": "0.5126557", "text": "MessageHeader() {\r\n\t}", "title": "" }, { "docid": "ad32c7bf962a8ae47089b2c4ef101fa3", "score": "0.51207095", "text": "public void init() {\r\n\t\tlog.info(\"init()\");\r\n\t\tobjParametro = new ParametroSistemaSie();\r\n\t\tlog.info(\"despues de inicializar \");\t\t\r\n\t}", "title": "" }, { "docid": "474ce238c969ffc750bfad8dfbbded90", "score": "0.51147515", "text": "public Fbalancelog() {\n\t}", "title": "" }, { "docid": "a26f684498bb12576279642479717d87", "score": "0.5109359", "text": "@Override\n public void onRecordStarted(String msg) {\n }", "title": "" }, { "docid": "eda3e552ba86d4c8b18f1875c90426ea", "score": "0.51063347", "text": "public MessageImmulite2000() {\n }", "title": "" }, { "docid": "b4a4b2189d49fb9ce96e5bda2332c4c1", "score": "0.51054066", "text": "@Override\n\tpublic void init() {\n\t\tif(usingLoginCredentials){\n\t\t\t// create connection factory\n\t\t\tconnectionFactory = new ActiveMQConnectionFactory(this.username, this.password, this.brokerUrl);\n\t\t\tconnectionFactory.setUseAsyncSend(true);\n\n\n\t\t} else{// connect with no login credintials\n\t\t\t// create connection factory\n\t\t\tconnectionFactory = new ActiveMQConnectionFactory(this.brokerUrl);\n\t\t}\n\n\t\tpcf = new PooledConnectionFactory(connectionFactory);\n\n\n\t}", "title": "" }, { "docid": "dfcb151458620920a0a12193cbb54f31", "score": "0.51042336", "text": "public CommandFetchLogData() {\n super(COMMAND);\n this.paramsAppendNext = null;\n }", "title": "" }, { "docid": "cb0c1745048aa19b14761c26e44b3c9e", "score": "0.5104212", "text": "@Override\n\tpublic void autonomousInit() {\n\t\tgameData = DriverStation.getInstance().getGameSpecificMessage();\n\t}", "title": "" }, { "docid": "d4f2aafda349fdbf2f9133e78d58fae2", "score": "0.5090561", "text": "@Override\r\n\tpublic void initialize() {\n\t\tinitializeSenderPart();\r\n\t\tinitializeReceiverPart();\r\n\t\tinitializeSendMessagePart();\r\n\t\tinitializeReceiveMessagePart();\r\n\t\tregisterActionListener();\r\n\t}", "title": "" } ]
2822cecfc24b9b8557964ff3ed0b81b1
repeated .appmonitoring.FrameData.RequestData requestedData = 2;
[ { "docid": "2383a7a2f29fdbc6d532660f5f898a1f", "score": "0.4751112", "text": "public java.util.List<ca.etsmtl.octets.appmonitoring.DataPacketProto.FrameData.RequestData> getRequestedDataList() {\n if (requestedDataBuilder_ == null) {\n return java.util.Collections.unmodifiableList(requestedData_);\n } else {\n return requestedDataBuilder_.getMessageList();\n }\n }", "title": "" } ]
[ { "docid": "9851d3bce64618a547403c8cd0a15e7b", "score": "0.673208", "text": "ca.etsmtl.octets.appmonitoring.DataPacketProto.FrameData.RequestData getRequestedData(int index);", "title": "" }, { "docid": "1030db44ce04e460312f010ad0ead13c", "score": "0.6375608", "text": "ca.etsmtl.octets.appmonitoring.DataPacketProto.FrameData.Value getData();", "title": "" }, { "docid": "49ec7c98dd237697214919966e891605", "score": "0.61927164", "text": "ca.etsmtl.octets.appmonitoring.DataPacketProto.FrameData.ValueOrBuilder getDataOrBuilder();", "title": "" }, { "docid": "9f1ad8ca9f7d840e69baf3e9cf7fef81", "score": "0.5985959", "text": "java.util.List<ca.etsmtl.octets.appmonitoring.DataPacketProto.FrameData.RequestData> \n getRequestedDataList();", "title": "" }, { "docid": "996f463c2010ea174bd2462c46a45466", "score": "0.58631986", "text": "ca.etsmtl.octets.appmonitoring.DataPacketProto.FrameData.Type getType();", "title": "" }, { "docid": "b44ecd539b751c90ff5ea26cbffa86cd", "score": "0.57724196", "text": "public SingleRequestDetailsFrame() {\n \n }", "title": "" }, { "docid": "8c6def990c6504765a22df9947c5d5fa", "score": "0.57139254", "text": "public ca.etsmtl.octets.appmonitoring.DataPacketProto.FrameData.RequestData.Builder addRequestedDataBuilder() {\n return getRequestedDataFieldBuilder().addBuilder(\n ca.etsmtl.octets.appmonitoring.DataPacketProto.FrameData.RequestData.getDefaultInstance());\n }", "title": "" }, { "docid": "1c45a1532bdd1c5c9242c665c6bcda66", "score": "0.57091105", "text": "private void processFrameData(String frame) {\n Gson gson = new Gson();\n FrameData frameData = gson.fromJson(frame, FrameData.class);\n frameData.roundLatency = System.currentTimeMillis() - frameData.getFrameSendTime();\n Intent intent = new Intent(\"udp\");\n intent.putExtra(\"latency\", gson.toJson(frameData));\n LocalBroadcastManager.getInstance(this).sendBroadcast(intent);\n }", "title": "" }, { "docid": "5d67ef6820fffa908f2d11268196d764", "score": "0.569694", "text": "java.util.List<? extends ca.etsmtl.octets.appmonitoring.DataPacketProto.FrameData.RequestDataOrBuilder> \n getRequestedDataOrBuilderList();", "title": "" }, { "docid": "6b1b88adaf08382c25bd9ff49fcf64c3", "score": "0.5618455", "text": "ca.etsmtl.octets.appmonitoring.DataPacketProto.FrameData.RequestDataOrBuilder getRequestedDataOrBuilder(\n int index);", "title": "" }, { "docid": "a284d27b5fc3fd3eac0a777e1d9cfecd", "score": "0.5612946", "text": "public abstract void receiveData(Request req);", "title": "" }, { "docid": "f6c0fbd590d556a7c11751e3ba2dc3b3", "score": "0.5595199", "text": "public static interface ReqData {\n }", "title": "" }, { "docid": "4151db870d044e68523113ef6b672e2a", "score": "0.5583637", "text": "ca.etsmtl.octets.appmonitoring.DataPacketProto.FrameData.TypeOrBuilder getTypeOrBuilder();", "title": "" }, { "docid": "431d86b2d332171593a345e56aee705e", "score": "0.5552309", "text": "net.iGap.proto.ProtoRequest.Request getRequest();", "title": "" }, { "docid": "5746d27763aca5ae966fca74d8630bb9", "score": "0.5458853", "text": "public static void main(String args[]) throws InterruptedException {\n\n Request request = Request.newGet();\n\n // specify URI of target endpoint\n request.setURI(url);//URI\n request.setObserve();\n int count = 0;\n\n while (true) {//For observer, I use while(true)\n request.send();\n Response response = request.waitForResponse(2000);\n if (null != response) {\n String responseString = response.toString();//GET DATA\n System.out.println(responseString);\n if (responseString.startsWith(\"NON\")) {\n String[] values = responseString.split(\"\\\"\");;\n String[] values2 = values[1].split(\",\");\n // response received, output a pretty-print\n System.out.println(response);\n Data battvalue = new Data(values2[0], values2[1], values2[2]); //Alınan veriler Data nesnesi olarak tutuluyor.\n Data bandvalue = new Data(values2[3], values2[4], values2[5]); //Alınan veriler Data nesnesi olarak tutuluyor.\n // Data battvalue= new Data(values2[6], values2[7], values2[8]); //Alınan veriler Data nesnesi olarak tutuluyor.\n // Data bandvalue= new Data(values2[9], values2[10], values2[11]); //Alınan veriler Data nesnesi olarak tutuluyor.\n //Document document = Little.convertDocument(d);\n //System.out.println(document);\n //ProvenanceProducer.provenanceToKafka(document);\n // DataProducer.sendKafkaFromSensors(cpuvalue,memvalue,battvalue,bandvalue); //Alınan veriler kafkaya gönderiliyor.\n DataProducer.sendKafkaFromSensors(battvalue, bandvalue);\n } else {\n System.out.println(\"No response received.\");\n }\n\n }\n }\n\n }", "title": "" }, { "docid": "d7d5f6f052fdb8dd6f18e4f8d871308e", "score": "0.54081994", "text": "@Test\n public void testReqRes() throws Exception {\n CompositeByteBuf compositeByteBuf = compositeMetadataWithRouting(routingServiceMethod);\n byte[] jsonData = objectMapper.writeValueAsBytes(1);\n System.out.println(\"jsonData=\" + String.valueOf(jsonData));\n rsocket.requestResponse(DefaultPayload.create(Unpooled.wrappedBuffer(jsonData), compositeByteBuf))\n .subscribe(payload -> {\n System.out.println(payload.getDataUtf8());\n });\n// Thread.sleep(2000);\n }", "title": "" }, { "docid": "51e2aef358a47dea887a7e0b802c8dad", "score": "0.53319407", "text": "public java.util.List<? extends ca.etsmtl.octets.appmonitoring.DataPacketProto.FrameData.RequestDataOrBuilder> \n getRequestedDataOrBuilderList() {\n return requestedData_;\n }", "title": "" }, { "docid": "591b57f6f54b04fdfd8cc7e72349d774", "score": "0.53286743", "text": "private void viewPendingRequests() {\n\n\t}", "title": "" }, { "docid": "9c0b1487e6a645e85ee0b82b83c7b440", "score": "0.5283554", "text": "io.kubernetes.client.proto.Runtime.RawExtension getData();", "title": "" }, { "docid": "c7b8118b0e683785ba5a53cfe42c72f8", "score": "0.5275801", "text": "net.iGap.proto.ProtoResponse.Response getResponse();", "title": "" }, { "docid": "cfa57d07f8c02e27d48386a64994ba75", "score": "0.52667063", "text": "public ca.etsmtl.octets.appmonitoring.DataPacketProto.FrameData.RequestDataOrBuilder getRequestedDataOrBuilder(\n int index) {\n return requestedData_.get(index);\n }", "title": "" }, { "docid": "babfad7b8010b12958dbf36c23b54225", "score": "0.52570945", "text": "public Builder addRequestedData(ca.etsmtl.octets.appmonitoring.DataPacketProto.FrameData.RequestData value) {\n if (requestedDataBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRequestedDataIsMutable();\n requestedData_.add(value);\n onChanged();\n } else {\n requestedDataBuilder_.addMessage(value);\n }\n return this;\n }", "title": "" }, { "docid": "1639d869896bcf2360ce8dbc2f7ecbf2", "score": "0.52483857", "text": "wirepas.proto.gateway_api.OtapMessage.ProcessScratchpadReq getProcessScratchpadReq();", "title": "" }, { "docid": "196031c8ada10d417068aca6ae59038b", "score": "0.5207198", "text": "com.cong.api.grpc.RoundRPC getData();", "title": "" }, { "docid": "6cc177c55e24748a55fee9a48dfd197b", "score": "0.5202167", "text": "public ca.etsmtl.octets.appmonitoring.DataPacketProto.FrameData.RequestDataOrBuilder getRequestedDataOrBuilder(\n int index) {\n if (requestedDataBuilder_ == null) {\n return requestedData_.get(index); } else {\n return requestedDataBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "9cbcd352a418102f3996f27c39cf99cc", "score": "0.5185075", "text": "public java.util.List<ca.etsmtl.octets.appmonitoring.DataPacketProto.FrameData.RequestData> getRequestedDataList() {\n return requestedData_;\n }", "title": "" }, { "docid": "9f927fc39877c2175a5c3870ab6c8927", "score": "0.51757586", "text": "public void setRequestData (P data) {\n this.requestData = data;\n }", "title": "" }, { "docid": "8d2438419599b87870721ca784c7c9c9", "score": "0.51516145", "text": "public interface BtpSap_DataReq\nextends BtpSapTypes\n{\n \n /** BTP-Data.request.\n * \n * <p>\n * From ETSI EN 302 636-5-1, V1.2.1 (2014-08), ANNEX A (INFORMATIVE).\n * \n * <p>\n * The BTP-Data.request primitive is used by the ITS Facilities protocol entity to request sending a BTP-PDU.\n * Upon reception of the BTP-Data.request primitive,\n * the BTP protocol delivers the BTP-SDU to the GeoNetworking protocol entity via the GN-SAP.\n * \n * @param btpType The BTP type, BTP-A or BTP-B.\n * @param btpSrcPort The BTP source port (optional), {@code btpSrcPort == null || 0 <= btpSrcPort <= 65535}.\n * @param btpDstPort The BTP destination port, {@code btpDstPort != null && 0 <= btpDstPort <= 65535}.\n * @param btpDstPortInfo The BTP destination port info (optional),\n * {@code btpDstPortInfo == null || 0 <= btpDstPortInfo <= 65535}.\n * @param gnTransportType The Geonetworking transport type, non-null.\n * @param gnDstAddress The Geonetworking destination address, non-null for GeoUnicast, GeoBroadcast and GeoAnycast,\n * null for SHB and TSB.\n * @param gnCommProfile The Geonetworking communications profile (optional, may be null).\n * @param gnSecProfile The Geonetworking security profile (optional, may be null).\n * @param gnMaxLifetime_ms The maximum tolerable time in milliseconds a GeoNetworking packet can be buffered\n * until it reaches its destination (optional, may be null).\n * (Note that ETSI specifies this with seconds resolution,\n * whereas the GN standard allows ms resolution.)\n * @param gnRepInterval_ms The duration in milliseconds between two consecutive transmissions\n * of the same GeoNetworking packet during the repetition time (optional, may be null).\n * @param gnMaxRepTime_ms The time in milliseconds a GeoNetworking packet is repeated (optional, may be null).\n * (Note that ETSI specifies this with seconds resolution,\n * whereas the GN standard allows ms resolution.)\n * @param gnMaxHopLimit The number of hops a packet is allowed to have in the network,\n * i.e. how often the packet is allowed to be forwarded, non-negative.\n * @param gnTrafficClass The traffic class for the message, non-null.\n * @param offset The offset into the {@code data} buffer at which the message contents start.\n * @param length The number of bytes from the {@code data} buffer to send (non-negative).\n * @param data The bytes to be sent as payload (starting at index {@code offset} and upto {@code length} bytes).\n * \n */\n void btpSapRequest\n (\n BtpType btpType,\n Integer btpSrcPort,\n int btpDstPort,\n Integer btpDstPortInfo,\n GnTransportType gnTransportType,\n GnDestination gnDstAddress,\n GnCommunicationsProfile gnCommProfile,\n GnSecurityProfile gnSecProfile,\n Integer gnMaxLifetime_ms,\n Integer gnRepInterval_ms,\n Integer gnMaxRepTime_ms,\n int gnMaxHopLimit,\n GnTrafficClass gnTrafficClass,\n int offset,\n int length,\n byte data[]\n ) throws IllegalArgumentException, IOException;\n \n}", "title": "" }, { "docid": "fa9abd023c998675d304c660a27905a1", "score": "0.5124216", "text": "public void processRequests() {\n\r\n\t}", "title": "" }, { "docid": "3fa4c7d2f5518959483ac46be498b50b", "score": "0.51240194", "text": "@Test\n public void testGetData() {\n result.addFrame(newFrame(ESV.INF));\n assertEquals(new EOJ(\"0ef001\"), result.getData(0).getEOJ());\n assertEquals(EPC.x80, result.getData(0).getEPC());\n assertEquals(subnet.getLocalNode(), result.getData(0).getNode());\n assertEquals(new Data(new byte[]{0x30}), result.getData(0).getActualData());\n assertEquals(result.getFrame(0).getTimestamp(), result.getData(0).getTimestamp());\n \n result.addFrame(newFrame2(ESV.INF));\n assertEquals(new EOJ(\"0ef001\"), result.getData(1).getEOJ());\n assertEquals(EPC.x80, result.getData(1).getEPC());\n assertEquals(subnet.getLocalNode(), result.getData(1).getNode());\n assertEquals(new Data(new byte[]{0x31}), result.getData(1).getActualData());\n assertEquals(result.getFrame(1).getTimestamp(), result.getData(1).getTimestamp());\n \n assertEquals(new EOJ(\"0ef001\"), result.getData(1).getEOJ());\n assertEquals(EPC.x81, result.getData(2).getEPC());\n assertEquals(subnet.getLocalNode(), result.getData(2).getNode());\n assertEquals(new Data(new byte[]{0x40}), result.getData(2).getActualData());\n assertEquals(result.getFrame(1).getTimestamp(), result.getData(2).getTimestamp());\n }", "title": "" }, { "docid": "c8497eb6a8d56798ed124a1a66769c2f", "score": "0.5122236", "text": "io.kubernetes.client.proto.Runtime.RawExtensionOrBuilder getDataOrBuilder();", "title": "" }, { "docid": "ab2fd50b14fba7ecd70ead2572d8c38c", "score": "0.5118843", "text": "public ca.etsmtl.octets.appmonitoring.DataPacketProto.FrameData.RequestData getRequestedData(int index) {\n return requestedData_.get(index);\n }", "title": "" }, { "docid": "366ac5a2b3e76ed56585f624f1552acf", "score": "0.5114455", "text": "public ca.etsmtl.octets.appmonitoring.DataPacketProto.FrameData.RequestData getRequestedData(int index) {\n if (requestedDataBuilder_ == null) {\n return requestedData_.get(index);\n } else {\n return requestedDataBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "18afb3f4260d14a8b635603c2887d07c", "score": "0.51061517", "text": "void updateRequestData(Long requestId, Map<String, Object> data);", "title": "" }, { "docid": "1eb2620530e1a94e4616b41a5d978f21", "score": "0.5091056", "text": "public void testPendingRequests() {\n\n }", "title": "" }, { "docid": "330477094eb982e44b0c3b6aadcf1f33", "score": "0.5082576", "text": "public java.util.List<? extends ca.etsmtl.octets.appmonitoring.DataPacketProto.FrameData.RequestDataOrBuilder> \n getRequestedDataOrBuilderList() {\n if (requestedDataBuilder_ != null) {\n return requestedDataBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(requestedData_);\n }\n }", "title": "" }, { "docid": "86cef2808ba24035a59f1f4804ff0368", "score": "0.50654083", "text": "wirepas.proto.gateway_api.OtapMessage.GetScratchpadStatusReq getGetScratchpadStatusReq();", "title": "" }, { "docid": "4b0141e3fcae381e68b89455d8bb7eab", "score": "0.5064648", "text": "public Builder setRequestedData(\n int index, ca.etsmtl.octets.appmonitoring.DataPacketProto.FrameData.RequestData value) {\n if (requestedDataBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRequestedDataIsMutable();\n requestedData_.set(index, value);\n onChanged();\n } else {\n requestedDataBuilder_.setMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "69d43041f7dbe6458c5f4fde755deb41", "score": "0.50450355", "text": "wirepas.proto.gateway_api.DataMessage.SendPacketReq getSendPacketReq();", "title": "" }, { "docid": "b5ee4f0180443ac8fa11044ce479e116", "score": "0.50258464", "text": "com.google.protobuf.Any getResponse(int index);", "title": "" }, { "docid": "34b128795f62b235400a21e2f3ae9b0e", "score": "0.49959198", "text": "int getRequestedDataCount();", "title": "" }, { "docid": "fa5ee3fbc7ee69bbc022780ec29788a1", "score": "0.4991868", "text": "public abstract void updateViewDataDuringReplyPulse(int i2);", "title": "" }, { "docid": "d4e1f026fc3bfaab980a578cb187cdda", "score": "0.49836898", "text": "com.google.protobuf.ByteString getRequest();", "title": "" }, { "docid": "320760414a79505b3711f46210bc67d3", "score": "0.49759427", "text": "public interface JCreditControlRequest extends AppRequestEvent {\r\n \r\n\tpublic static final String _SHORT_NAME = \"CCR\";\r\n\tpublic static final String _LONG_NAME = \"Credit-Control-Request\";\r\n\t\r\n\tpublic static final int code = 272;\r\n\t\r\n\tboolean isRequestedActionAVPPresent();\r\n\t\r\n\tint getRequestedActionAVPValue();\r\n\t\r\n\tboolean isRequestTypeAVPPresent();\r\n\t\r\n\tint getRequestTypeAVPValue();\r\n}", "title": "" }, { "docid": "8e585951628cc46e4be3a3fa9eaa8726", "score": "0.49688154", "text": "public Builder addRequestedData(\n int index, ca.etsmtl.octets.appmonitoring.DataPacketProto.FrameData.RequestData value) {\n if (requestedDataBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRequestedDataIsMutable();\n requestedData_.add(index, value);\n onChanged();\n } else {\n requestedDataBuilder_.addMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "319a8003b77bf8ef35f373e9fe2a6d18", "score": "0.49590933", "text": "wirepas.proto.gateway_api.OtapMessage.UploadScratchpadReq getUploadScratchpadReq();", "title": "" }, { "docid": "dc89e606df407e82f614dcfb66d5fc54", "score": "0.49503365", "text": "public interface Frame {\n /**\n * Build a signal frame from current object\n *\n * @return Return the signal frame in form of array bytes\n */\n byte[] buildFrame();\n}", "title": "" }, { "docid": "67ae3ea9890e1b1f54c51ee0188647c0", "score": "0.49475187", "text": "@Override\n public void sendNewData(){\n }", "title": "" }, { "docid": "514d8726b0463523192078e2282ec8bf", "score": "0.4944049", "text": "public ca.etsmtl.octets.appmonitoring.DataPacketProto.FrameData.RequestData.Builder addRequestedDataBuilder(\n int index) {\n return getRequestedDataFieldBuilder().addBuilder(\n index, ca.etsmtl.octets.appmonitoring.DataPacketProto.FrameData.RequestData.getDefaultInstance());\n }", "title": "" }, { "docid": "1660e3dd38e539d7eae514d46ef0b4a6", "score": "0.49210334", "text": "public void setPayload(byte[] data) { \n\t\tpayload = data; }", "title": "" }, { "docid": "32bcd56eb362e61ef9f3771e5634fcff", "score": "0.4920804", "text": "byte[] readDataBlock(byte[] data) throws Exception\n {\n if (data.length == 0)\n {\n return new byte[0];\n }\n reOpen();\n byte[] reply = readDLMSPacket(data);\n ByteArrayOutputStream allData = new ByteArrayOutputStream();\n java.util.Set<RequestTypes> moredata = dlms.getDataFromPacket(reply, allData);\n int maxProgress = dlms.getMaxProgressStatus(allData); \n int lastProgress = 0;\n float progress;\n while (!moredata.isEmpty())\n {\n while (moredata.contains(RequestTypes.FRAME))\n { \n data = dlms.receiverReady(RequestTypes.FRAME);\n reply = readDLMSPacket(data);\n //Show progress.\n if (maxProgress != 1)\n {\n progress = dlms.getCurrentProgressStatus(allData);\n progress = progress / maxProgress * 80;\n if (lastProgress != (int) progress)\n {\n if (Trace)\n {\n for(int pos = lastProgress; pos < (int) progress; ++pos)\n {\n System.out.print(\"-\");\n }\n }\n lastProgress = (int) progress;\n }\n } \n if (!dlms.getDataFromPacket(reply, allData).contains(RequestTypes.FRAME))\n {\n moredata.remove(RequestTypes.FRAME); \n break;\n }\n }\n reOpen();\n if (moredata.contains(RequestTypes.DATABLOCK))\n { \n //Send Receiver Ready.\n data = dlms.receiverReady(RequestTypes.DATABLOCK);\n reply = readDLMSPacket(data);\n moredata = dlms.getDataFromPacket(reply, allData);\n //Show progress.\n if (maxProgress != 1)\n {\n progress = dlms.getCurrentProgressStatus(allData);\n if (Trace)\n {\n progress = progress / maxProgress * 80;\n if (lastProgress != (int) progress)\n {\n for(int pos = lastProgress; pos < (int) progress; ++pos)\n {\n System.out.print(\"+\");\n }\n lastProgress = (int) progress;\n }\n }\n }\n }\n }\n if (maxProgress > 1)\n {\n if (Trace)\n {\n Utils.dirctLogcat(\"\");\n }\n }\n return allData.toByteArray();\n }", "title": "" }, { "docid": "e7b941ae3e504812c306c724fdcaf58e", "score": "0.49094468", "text": "@Test\n public void testAddFrame_Frame() {\n assertEquals(0, result.countFrames());\n result.addFrame(newFrame(ESV.INF));\n checkFrameDataMap();\n assertEquals(1, result.countFrames());\n result.addFrame(newFrame(ESV.INFC));\n checkFrameDataMap();\n assertEquals(2, result.countFrames());\n result.addFrame(newSimpleFrame());\n checkFrameDataMap();\n assertEquals(2, result.countFrames());\n \n Frame frame = newFrame(ESV.Get);\n result.addFrame(frame);\n result.addFrame(frame);\n assertEquals(4, result.countFrames());\n }", "title": "" }, { "docid": "2a9343462684651a3df61afe05469be9", "score": "0.49073228", "text": "byte[] \n frame(byte[] message);", "title": "" }, { "docid": "0b1e229f0dbbd8e9daa0a655357ee120", "score": "0.49048847", "text": "@Override\n\tpublic void getData() {\n\t\t\n\t}", "title": "" }, { "docid": "dac68d0a2c1a67dcb82d09a546ce65f2", "score": "0.48903784", "text": "int numberFrames() throws OperationFailedException;", "title": "" }, { "docid": "4e10083bb13fd127ea1f56351b113150", "score": "0.48862505", "text": "public void processMainResponse(SciiResponse response)\r\n {\n \r\n }", "title": "" }, { "docid": "4d86350e07b41a37f1e7ff899271db35", "score": "0.4879492", "text": "@Ignore\r\n\t@Test\r\n\tpublic void testApRequest()\r\n\t{\n\t\tserv.approveRequest(1, 282, 0);\r\n\t\tserv.getRequest(1);\r\n\t\tassertEquals(serv.getRequest(1).getStatus(),0);//DENY\r\n\t\tserv.approveRequest(1, 282, 1);\r\n\t\tassertEquals(serv.getRequest(1).getStatus(),1);\r\n\t}", "title": "" }, { "docid": "18efef161d55f13d90284ccda6fe1aaf", "score": "0.48689657", "text": "public void startOfData() {\n }", "title": "" }, { "docid": "f077510c3f90fc20b8497fddc89a0c1b", "score": "0.48665702", "text": "private void initializeData() {\n Map<String, RequestConstraint> constraints = new HashMap<String, RequestConstraint>();\n constraints.put(\"officeid\", new RequestConstraint(officeId));\n Calendar time = TimeUtil.newCalendar();\n constraints.put(\"issueTime\",\n new RequestConstraint(TimeUtil.formatDate(time),\n ConstraintType.LESS_THAN_EQUALS));\n\n long t0 = System.currentTimeMillis();\n List<AbstractWarningRecord> warnings = requestRecords(constraints);\n System.out.println(\"Time to request CurrentWarnings records: \"\n + (System.currentTimeMillis() - t0) + \"ms\");\n processRecords(warnings);\n }", "title": "" }, { "docid": "f712b5b01ee70bc2aedc2ae5d1dcc650", "score": "0.48660412", "text": "com.google.protobuf.ByteString getFrmPayload();", "title": "" }, { "docid": "80ed429afde56cab0c14e0d31a104ec8", "score": "0.48535204", "text": "public ca.etsmtl.octets.appmonitoring.DataPacketProto.FrameData.ValueOrBuilder getDataOrBuilder() {\n return data_;\n }", "title": "" }, { "docid": "4ff73bc9e15785f7dcf7264a55a726c9", "score": "0.48505995", "text": "wirepas.proto.gateway_api.OtapMessage.ProcessScratchpadResp getProcessScratchpadResp();", "title": "" }, { "docid": "84e938a179a89ab96851863f0cfa1581", "score": "0.48470798", "text": "private void sendData(){\n }", "title": "" }, { "docid": "15e9cd20f81ccc88cda6e6975c9a6135", "score": "0.4846445", "text": "void getFrames() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter the number of frames to be sent:\");\n\t\tframe = new int[scan.nextInt()];\n\t\tfor(int i=0 ; i<frame.length ; i++) {\n\t\t\tframe[i] = i;\n\t\t}\n\t\tgetWindowSize();\n\t}", "title": "" }, { "docid": "4bd6c7f8dee0592473b5b14154445987", "score": "0.48457116", "text": "void notifyResponse(ZCLFrame frame, Exception e);", "title": "" }, { "docid": "a4d3e61909132d87a8d0de6d2055204d", "score": "0.48367107", "text": "public void onDataReceived(UrlRequest request, ByteBuffer byteBuffer);", "title": "" }, { "docid": "a2c803c984b787219c78f94447f58bf2", "score": "0.4834972", "text": "public ca.etsmtl.octets.appmonitoring.DataPacketProto.FrameData.Value getData() {\n return data_;\n }", "title": "" }, { "docid": "87f0af147673b63311df369d538fe62b", "score": "0.48288506", "text": "private void setPayload(com.google.protobuf.ByteString value) {\n value.getClass();\n bitField0_ |= 0x00000004;\n payload_ = value;\n }", "title": "" }, { "docid": "51cfe9c6d73c523ceee195a8b9c53891", "score": "0.48286685", "text": "public UssdApiRequest() {\n Mobile = \"\";\n SessionId = \"\";\n Type = \"Initiation\";\n Message = \"\";\n Operator = \"\";\n Sequence = 0;\n //ClientState = \"\";\n ServiceCode = \"\";\n }", "title": "" }, { "docid": "f7a27cbe33b66a1dff5a403b3dba1102", "score": "0.48279226", "text": "@Override\r\n public void getData() {\n\r\n }", "title": "" }, { "docid": "bf9d5affb4e79838c8b6a8a7384a6072", "score": "0.4805091", "text": "public void testAcceptedRequests() {\n\n }", "title": "" }, { "docid": "69813a245e9047e26fc58d514a73d655", "score": "0.47973105", "text": "@Override\n public void onReceiveResponse() {\n\n }", "title": "" }, { "docid": "fc931e5bd9802395898c86c5bc30d781", "score": "0.47962794", "text": "public P getRequestData() {\n return this.requestData;\n }", "title": "" }, { "docid": "a58240afa06c2895477f6ccf68830b11", "score": "0.4782099", "text": "public abstract String getResponsePayload();", "title": "" }, { "docid": "2c3ce52eb00f14770e473d729cce2510", "score": "0.4781831", "text": "IVHB reqReg();", "title": "" }, { "docid": "657d4d1bf10ba13032ac9b904c758f30", "score": "0.4780037", "text": "private GmDispatchCardRequest() {\n initFields();\n }", "title": "" }, { "docid": "d2125261bacaa928dad77ab1abc804c4", "score": "0.4771842", "text": "public void measurementDataSent(){\n System.out.println(\"SEND CALLBACK FIRE\");\n }", "title": "" }, { "docid": "f20ba4769ccb3348d567280583d00dcc", "score": "0.47630864", "text": "private void setRequest(net.iGap.proto.ProtoRequest.Request value) {\n if (value == null) {\n throw new NullPointerException();\n }\n request_ = value;\n \n }", "title": "" }, { "docid": "2c511bcb8d0d822097dc00f30525e78c", "score": "0.47616065", "text": "final void a(com.tencent.mm.plugin.appbrand.g.d r17) {\n /*\n r16 = this;\n r13 = 0;\n r12 = 0;\n r11 = 0;\n r0 = r17;\n r14 = r0.dMt;\n r0 = r17;\n r15 = r0.dMu;\n r0 = r17;\n r2 = r0.dMv;\n if (r2 == 0) goto L_0x0038;\n L_0x0011:\n r0 = r17;\n r3 = r0.mUrl;\n r2 = com.tencent.mm.plugin.appbrand.g.i.b(r2, r3);\n if (r2 != 0) goto L_0x0038;\n L_0x001b:\n r2 = \"fail\";\n r3 = \"url not in domain list\";\n r14.aL(r2, r3);\n r2 = \"MicroMsg.AppBrandNetworkRequest\";\n r3 = \"not in domain url %s\";\n r4 = 1;\n r4 = new java.lang.Object[r4];\n r5 = 0;\n r0 = r17;\n r6 = r0.mUrl;\n r4[r5] = r6;\n com.tencent.mm.sdk.platformtools.v.i(r2, r3, r4);\n L_0x0037:\n return;\n L_0x0038:\n r3 = com.tencent.mm.plugin.report.service.g.iuh;\n r4 = 435; // 0x1b3 float:6.1E-43 double:2.15E-321;\n r6 = 0;\n r8 = 1;\n r10 = 0;\n r3.a(r4, r6, r8, r10);\n r2 = \"MicroMsg.AppBrandNetworkRequest\";\n r3 = \"prepare to send https request url is %s method is %s\";\n r4 = 2;\n r4 = new java.lang.Object[r4];\n r5 = 0;\n r0 = r17;\n r6 = r0.mUrl;\n r4[r5] = r6;\n r5 = 1;\n r0 = r17;\n r6 = r0.dMs;\n r4[r5] = r6;\n com.tencent.mm.sdk.platformtools.v.i(r2, r3, r4);\n r2 = new java.net.URL;\t Catch:{ UnsupportedEncodingException -> 0x0588, SSLHandshakeException -> 0x0355, FileNotFoundException -> 0x03b6, SocketTimeoutException -> 0x0417, Exception -> 0x048f }\n r0 = r17;\n r3 = r0.mUrl;\t Catch:{ UnsupportedEncodingException -> 0x0588, SSLHandshakeException -> 0x0355, FileNotFoundException -> 0x03b6, SocketTimeoutException -> 0x0417, Exception -> 0x048f }\n r2.<init>(r3);\t Catch:{ UnsupportedEncodingException -> 0x0588, SSLHandshakeException -> 0x0355, FileNotFoundException -> 0x03b6, SocketTimeoutException -> 0x0417, Exception -> 0x048f }\n r2 = r2.openConnection();\t Catch:{ UnsupportedEncodingException -> 0x0588, SSLHandshakeException -> 0x0355, FileNotFoundException -> 0x03b6, SocketTimeoutException -> 0x0417, Exception -> 0x048f }\n r2 = (java.net.HttpURLConnection) r2;\t Catch:{ UnsupportedEncodingException -> 0x0588, SSLHandshakeException -> 0x0355, FileNotFoundException -> 0x03b6, SocketTimeoutException -> 0x0417, Exception -> 0x048f }\n if (r2 == 0) goto L_0x0593;\n L_0x006f:\n r0 = r17;\n r3 = r0.dMq;\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r2.setConnectTimeout(r3);\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r0 = r17;\n r3 = r0.dMq;\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r2.setReadTimeout(r3);\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r3 = \"charset\";\n r4 = \"utf-8\";\n r2.setRequestProperty(r3, r4);\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r3 = 0;\n r2.setInstanceFollowRedirects(r3);\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r0 = r17;\n r3 = r0.dMs;\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r2.setRequestMethod(r3);\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r3 = 1;\n r2.setUseCaches(r3);\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n if (r15 == 0) goto L_0x0143;\n L_0x0097:\n r3 = \"MicroMsg.AppBrandNetworkRequest\";\n r4 = \"url %s : set header \";\n r5 = 1;\n r5 = new java.lang.Object[r5];\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r6 = 0;\n r0 = r17;\n r7 = r0.mUrl;\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r5[r6] = r7;\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n com.tencent.mm.sdk.platformtools.v.i(r3, r4, r5);\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r3 = r15.entrySet();\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r6 = r3.iterator();\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n L_0x00b2:\n r3 = r6.hasNext();\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n if (r3 == 0) goto L_0x0143;\n L_0x00b8:\n r3 = r6.next();\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r0 = r3;\n r0 = (java.util.Map.Entry) r0;\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r5 = r0;\n r3 = r5.getKey();\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r3 = (java.lang.String) r3;\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r4 = r5.getValue();\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r4 = (java.lang.String) r4;\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r2.setRequestProperty(r3, r4);\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r3 = \"MicroMsg.AppBrandNetworkRequest\";\n r4 = \"url %s : key:%s ,value %s \";\n r7 = 3;\n r7 = new java.lang.Object[r7];\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r8 = 0;\n r0 = r17;\n r9 = r0.mUrl;\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r7[r8] = r9;\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r8 = 1;\n r9 = r5.getKey();\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r7[r8] = r9;\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r8 = 2;\n r5 = r5.getValue();\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r7[r8] = r5;\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n com.tencent.mm.sdk.platformtools.v.i(r3, r4, r7);\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n goto L_0x00b2;\n L_0x00f1:\n r3 = move-exception;\n L_0x00f2:\n r3 = com.tencent.mm.plugin.report.service.g.iuh;\t Catch:{ all -> 0x053d }\n r4 = 435; // 0x1b3 float:6.1E-43 double:2.15E-321;\n r6 = 1;\n r8 = 1;\n r10 = 0;\n r3.a(r4, r6, r8, r10);\t Catch:{ all -> 0x053d }\n r3 = \"MicroMsg.AppBrandNetworkRequest\";\n r4 = \"UnsupportedEncodingException: url %s\";\n r5 = 1;\n r5 = new java.lang.Object[r5];\t Catch:{ all -> 0x053d }\n r6 = 0;\n r0 = r17;\n r7 = r0.mUrl;\t Catch:{ all -> 0x053d }\n r5[r6] = r7;\t Catch:{ all -> 0x053d }\n com.tencent.mm.sdk.platformtools.v.e(r3, r4, r5);\t Catch:{ all -> 0x053d }\n r3 = \"fail\";\n r4 = \"UTF-8 decode error\";\n r14.aL(r3, r4);\t Catch:{ all -> 0x053d }\n r0 = r17;\n r3 = r0.mUrl;\n r0 = r16;\n r0.nM(r3);\n if (r2 == 0) goto L_0x0128;\n L_0x0125:\n r2.disconnect();\n L_0x0128:\n if (r12 == 0) goto L_0x012d;\n L_0x012a:\n r12.close();\t Catch:{ IOException -> 0x0346 }\n L_0x012d:\n if (r11 == 0) goto L_0x0037;\n L_0x012f:\n r11.close();\t Catch:{ IOException -> 0x0134 }\n goto L_0x0037;\n L_0x0134:\n r2 = move-exception;\n r3 = \"MicroMsg.AppBrandNetworkRequest\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\n com.tencent.mm.sdk.platformtools.v.a(r3, r2, r4, r5);\n goto L_0x0037;\n L_0x0143:\n r3 = \"User-Agent\";\n r4 = com.tencent.mm.sdk.platformtools.aa.getContext();\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r5 = \"\";\n r4 = com.tencent.mm.pluginsdk.ui.tools.s.aW(r4, r5);\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r2.setRequestProperty(r3, r4);\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r0 = r17;\n r3 = r0.dMs;\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r3 = nL(r3);\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n if (r3 == 0) goto L_0x0590;\n L_0x015e:\n r3 = \"MicroMsg.AppBrandNetworkRequest\";\n r4 = \"set post or put\";\n com.tencent.mm.sdk.platformtools.v.i(r3, r4);\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r3 = \"Content-Length\";\n r0 = r17;\n r4 = r0.dMr;\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r4 = r4.length;\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r4 = java.lang.Integer.toString(r4);\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r2.setRequestProperty(r3, r4);\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r3 = 1;\n r2.setDoOutput(r3);\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r3 = new java.io.DataOutputStream;\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r4 = r2.getOutputStream();\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r3.<init>(r4);\t Catch:{ UnsupportedEncodingException -> 0x00f1, SSLHandshakeException -> 0x057c, FileNotFoundException -> 0x0570, SocketTimeoutException -> 0x055e, Exception -> 0x054c }\n r0 = r17;\n r4 = r0.dMr;\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r3.write(r4);\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r3.flush();\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r3.close();\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n L_0x0190:\n r4 = r2.getResponseCode();\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r6 = java.lang.Integer.toString(r4);\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r5 = \"MicroMsg.AppBrandNetworkRequest\";\n r7 = \"responseCode = %d, url = %s\";\n r8 = 2;\n r8 = new java.lang.Object[r8];\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r9 = 0;\n r10 = java.lang.Integer.valueOf(r4);\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r8[r9] = r10;\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r9 = 1;\n r0 = r17;\n r10 = r0.mUrl;\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r8[r9] = r10;\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n com.tencent.mm.sdk.platformtools.v.i(r5, r7, r8);\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r5 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r4 == r5) goto L_0x028d;\n L_0x01b6:\n r5 = \"MicroMsg.AppBrandNetworkRequest\";\n r7 = \"url is %s, failed code: %d\";\n r8 = 2;\n r8 = new java.lang.Object[r8];\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r9 = 0;\n r0 = r17;\n r10 = r0.mUrl;\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r8[r9] = r10;\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r9 = 1;\n r10 = java.lang.Integer.valueOf(r4);\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r8[r9] = r10;\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n com.tencent.mm.sdk.platformtools.v.e(r5, r7, r8);\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r4 = com.tencent.mm.plugin.appbrand.g.i.hg(r4);\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n if (r4 == 0) goto L_0x028d;\n L_0x01d6:\n r4 = com.tencent.mm.plugin.appbrand.g.i.b(r2);\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r0 = r17;\n r5 = r0.dMw;\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r7 = android.text.TextUtils.isEmpty(r4);\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n if (r7 != 0) goto L_0x028d;\n L_0x01e4:\n if (r5 > 0) goto L_0x0228;\n L_0x01e6:\n r4 = \"MicroMsg.AppBrandNetworkRequest\";\n r5 = \"reach the max redirect count(%d)\";\n r7 = 1;\n r7 = new java.lang.Object[r7];\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r8 = 0;\n r9 = 15;\n r9 = java.lang.Integer.valueOf(r9);\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r7[r8] = r9;\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n com.tencent.mm.sdk.platformtools.v.w(r4, r5, r7);\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r4 = \"ok\";\n r5 = \"reach the max redirect count 15\";\n r14.v(r4, r5, r6);\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r0 = r17;\n r4 = r0.mUrl;\n r0 = r16;\n r0.nM(r4);\n if (r2 == 0) goto L_0x0212;\n L_0x020f:\n r2.disconnect();\n L_0x0212:\n if (r3 == 0) goto L_0x0037;\n L_0x0214:\n r3.close();\t Catch:{ IOException -> 0x0219 }\n goto L_0x0037;\n L_0x0219:\n r2 = move-exception;\n r3 = \"MicroMsg.AppBrandNetworkRequest\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\n com.tencent.mm.sdk.platformtools.v.a(r3, r2, r4, r5);\n goto L_0x0037;\n L_0x0228:\n r6 = \"MicroMsg.AppBrandNetworkRequest\";\n r7 = \"redirect(%d) URL(%s) to URL(%s)\";\n r8 = 3;\n r8 = new java.lang.Object[r8];\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r9 = 0;\n r10 = java.lang.Integer.valueOf(r5);\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r8[r9] = r10;\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r9 = 1;\n r0 = r17;\n r10 = r0.mUrl;\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r8[r9] = r10;\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r9 = 2;\n r8[r9] = r4;\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n com.tencent.mm.sdk.platformtools.v.i(r6, r7, r8);\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r0 = r17;\n r0.mUrl = r4;\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r4 = r5 + -1;\n r0 = r17;\n r0.dMw = r4;\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r4 = \"MicroMsg.AppBrandNetworkRequest\";\n r5 = \"now redirect count = %d\";\n r6 = 1;\n r6 = new java.lang.Object[r6];\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r7 = 0;\n r0 = r17;\n r8 = r0.dMw;\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r8 = java.lang.Integer.valueOf(r8);\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r6[r7] = r8;\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n com.tencent.mm.sdk.platformtools.v.i(r4, r5, r6);\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r16.a(r17);\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r0 = r17;\n r4 = r0.mUrl;\n r0 = r16;\n r0.nM(r4);\n if (r2 == 0) goto L_0x0277;\n L_0x0274:\n r2.disconnect();\n L_0x0277:\n if (r3 == 0) goto L_0x0037;\n L_0x0279:\n r3.close();\t Catch:{ IOException -> 0x027e }\n goto L_0x0037;\n L_0x027e:\n r2 = move-exception;\n r3 = \"MicroMsg.AppBrandNetworkRequest\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\n com.tencent.mm.sdk.platformtools.v.a(r3, r2, r4, r5);\n goto L_0x0037;\n L_0x028d:\n r5 = \"\";\n r7 = new java.io.ByteArrayOutputStream;\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r7.<init>();\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r4 = r2.getInputStream();\t Catch:{ Exception -> 0x02b0, UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, all -> 0x0541 }\n L_0x0299:\n if (r4 == 0) goto L_0x0309;\n L_0x029b:\n r5 = 1024; // 0x400 float:1.435E-42 double:5.06E-321;\n r5 = new byte[r5];\t Catch:{ UnsupportedEncodingException -> 0x02ab, SSLHandshakeException -> 0x0583, FileNotFoundException -> 0x0577, SocketTimeoutException -> 0x0569, Exception -> 0x0557, all -> 0x0546 }\n L_0x029f:\n r8 = r4.read(r5);\t Catch:{ UnsupportedEncodingException -> 0x02ab, SSLHandshakeException -> 0x0583, FileNotFoundException -> 0x0577, SocketTimeoutException -> 0x0569, Exception -> 0x0557, all -> 0x0546 }\n r9 = -1;\n if (r8 == r9) goto L_0x02df;\n L_0x02a6:\n r9 = 0;\n r7.write(r5, r9, r8);\t Catch:{ UnsupportedEncodingException -> 0x02ab, SSLHandshakeException -> 0x0583, FileNotFoundException -> 0x0577, SocketTimeoutException -> 0x0569, Exception -> 0x0557, all -> 0x0546 }\n goto L_0x029f;\n L_0x02ab:\n r5 = move-exception;\n r11 = r3;\n r12 = r4;\n goto L_0x00f2;\n L_0x02b0:\n r4 = move-exception;\n r8 = \"MicroMsg.AppBrandNetworkRequest\";\n r9 = \"read input stream failed : %s\";\n r10 = 1;\n r10 = new java.lang.Object[r10];\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r11 = 0;\n r4 = r4.toString();\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r10[r11] = r4;\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n com.tencent.mm.sdk.platformtools.v.e(r8, r9, r10);\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r4 = r2.getErrorStream();\t Catch:{ Exception -> 0x02c9, UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, all -> 0x0541 }\n goto L_0x0299;\n L_0x02c9:\n r4 = move-exception;\n r8 = \"MicroMsg.AppBrandNetworkRequest\";\n r9 = \"read err stream failed : %s\";\n r10 = 1;\n r10 = new java.lang.Object[r10];\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r11 = 0;\n r4 = r4.toString();\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r10[r11] = r4;\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n com.tencent.mm.sdk.platformtools.v.e(r8, r9, r10);\t Catch:{ UnsupportedEncodingException -> 0x058c, SSLHandshakeException -> 0x057f, FileNotFoundException -> 0x0573, SocketTimeoutException -> 0x0563, Exception -> 0x0551, all -> 0x0541 }\n r4 = r12;\n goto L_0x0299;\n L_0x02df:\n r7.flush();\t Catch:{ UnsupportedEncodingException -> 0x02ab, SSLHandshakeException -> 0x0583, FileNotFoundException -> 0x0577, SocketTimeoutException -> 0x0569, Exception -> 0x0557, all -> 0x0546 }\n r4.close();\t Catch:{ UnsupportedEncodingException -> 0x02ab, SSLHandshakeException -> 0x0583, FileNotFoundException -> 0x0577, SocketTimeoutException -> 0x0569, Exception -> 0x0557, all -> 0x0546 }\n r5 = \"UTF-8\";\n r5 = r7.toString(r5);\t Catch:{ UnsupportedEncodingException -> 0x02ab, SSLHandshakeException -> 0x0583, FileNotFoundException -> 0x0577, SocketTimeoutException -> 0x0569, Exception -> 0x0557, all -> 0x0546 }\n r8 = \"MicroMsg.AppBrandNetworkRequest\";\n r9 = \"url %s : buffer string %s\";\n r10 = 2;\n r10 = new java.lang.Object[r10];\t Catch:{ UnsupportedEncodingException -> 0x02ab, SSLHandshakeException -> 0x0583, FileNotFoundException -> 0x0577, SocketTimeoutException -> 0x0569, Exception -> 0x0557, all -> 0x0546 }\n r11 = 0;\n r0 = r17;\n r12 = r0.mUrl;\t Catch:{ UnsupportedEncodingException -> 0x02ab, SSLHandshakeException -> 0x0583, FileNotFoundException -> 0x0577, SocketTimeoutException -> 0x0569, Exception -> 0x0557, all -> 0x0546 }\n r10[r11] = r12;\t Catch:{ UnsupportedEncodingException -> 0x02ab, SSLHandshakeException -> 0x0583, FileNotFoundException -> 0x0577, SocketTimeoutException -> 0x0569, Exception -> 0x0557, all -> 0x0546 }\n r11 = 1;\n r12 = \"UTF-8\";\n r7 = r7.toString(r12);\t Catch:{ UnsupportedEncodingException -> 0x02ab, SSLHandshakeException -> 0x0583, FileNotFoundException -> 0x0577, SocketTimeoutException -> 0x0569, Exception -> 0x0557, all -> 0x0546 }\n r10[r11] = r7;\t Catch:{ UnsupportedEncodingException -> 0x02ab, SSLHandshakeException -> 0x0583, FileNotFoundException -> 0x0577, SocketTimeoutException -> 0x0569, Exception -> 0x0557, all -> 0x0546 }\n com.tencent.mm.sdk.platformtools.v.v(r8, r9, r10);\t Catch:{ UnsupportedEncodingException -> 0x02ab, SSLHandshakeException -> 0x0583, FileNotFoundException -> 0x0577, SocketTimeoutException -> 0x0569, Exception -> 0x0557, all -> 0x0546 }\n L_0x0309:\n r7 = \"ok\";\n r14.v(r7, r5, r6);\t Catch:{ UnsupportedEncodingException -> 0x02ab, SSLHandshakeException -> 0x0583, FileNotFoundException -> 0x0577, SocketTimeoutException -> 0x0569, Exception -> 0x0557, all -> 0x0546 }\n L_0x030f:\n r0 = r17;\n r5 = r0.mUrl;\n r0 = r16;\n r0.nM(r5);\n if (r2 == 0) goto L_0x031d;\n L_0x031a:\n r2.disconnect();\n L_0x031d:\n if (r4 == 0) goto L_0x0322;\n L_0x031f:\n r4.close();\t Catch:{ IOException -> 0x0338 }\n L_0x0322:\n if (r3 == 0) goto L_0x0037;\n L_0x0324:\n r3.close();\t Catch:{ IOException -> 0x0329 }\n goto L_0x0037;\n L_0x0329:\n r2 = move-exception;\n r3 = \"MicroMsg.AppBrandNetworkRequest\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\n com.tencent.mm.sdk.platformtools.v.a(r3, r2, r4, r5);\n goto L_0x0037;\n L_0x0338:\n r2 = move-exception;\n r4 = \"MicroMsg.AppBrandNetworkRequest\";\n r5 = \"\";\n r6 = 0;\n r6 = new java.lang.Object[r6];\n com.tencent.mm.sdk.platformtools.v.a(r4, r2, r5, r6);\n goto L_0x0322;\n L_0x0346:\n r2 = move-exception;\n r3 = \"MicroMsg.AppBrandNetworkRequest\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\n com.tencent.mm.sdk.platformtools.v.a(r3, r2, r4, r5);\n goto L_0x012d;\n L_0x0355:\n r2 = move-exception;\n r2 = r13;\n L_0x0357:\n r3 = com.tencent.mm.plugin.report.service.g.iuh;\t Catch:{ all -> 0x053d }\n r4 = 435; // 0x1b3 float:6.1E-43 double:2.15E-321;\n r6 = 2;\n r8 = 1;\n r10 = 0;\n r3.a(r4, r6, r8, r10);\t Catch:{ all -> 0x053d }\n r3 = \"MicroMsg.AppBrandNetworkRequest\";\n r4 = \"SSLHandshakeException: url %s\";\n r5 = 1;\n r5 = new java.lang.Object[r5];\t Catch:{ all -> 0x053d }\n r6 = 0;\n r0 = r17;\n r7 = r0.mUrl;\t Catch:{ all -> 0x053d }\n r5[r6] = r7;\t Catch:{ all -> 0x053d }\n com.tencent.mm.sdk.platformtools.v.e(r3, r4, r5);\t Catch:{ all -> 0x053d }\n r3 = \"fail\";\n r4 = \"ssl hand shake error\";\n r14.aL(r3, r4);\t Catch:{ all -> 0x053d }\n r0 = r17;\n r3 = r0.mUrl;\n r0 = r16;\n r0.nM(r3);\n if (r2 == 0) goto L_0x038d;\n L_0x038a:\n r2.disconnect();\n L_0x038d:\n if (r12 == 0) goto L_0x0392;\n L_0x038f:\n r12.close();\t Catch:{ IOException -> 0x03a8 }\n L_0x0392:\n if (r11 == 0) goto L_0x0037;\n L_0x0394:\n r11.close();\t Catch:{ IOException -> 0x0399 }\n goto L_0x0037;\n L_0x0399:\n r2 = move-exception;\n r3 = \"MicroMsg.AppBrandNetworkRequest\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\n com.tencent.mm.sdk.platformtools.v.a(r3, r2, r4, r5);\n goto L_0x0037;\n L_0x03a8:\n r2 = move-exception;\n r3 = \"MicroMsg.AppBrandNetworkRequest\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\n com.tencent.mm.sdk.platformtools.v.a(r3, r2, r4, r5);\n goto L_0x0392;\n L_0x03b6:\n r2 = move-exception;\n r2 = r13;\n L_0x03b8:\n r3 = com.tencent.mm.plugin.report.service.g.iuh;\t Catch:{ all -> 0x053d }\n r4 = 435; // 0x1b3 float:6.1E-43 double:2.15E-321;\n r6 = 3;\n r8 = 1;\n r10 = 0;\n r3.a(r4, r6, r8, r10);\t Catch:{ all -> 0x053d }\n r3 = \"MicroMsg.AppBrandNetworkRequest\";\n r4 = \"FileNotFoundException: url %s\";\n r5 = 1;\n r5 = new java.lang.Object[r5];\t Catch:{ all -> 0x053d }\n r6 = 0;\n r0 = r17;\n r7 = r0.mUrl;\t Catch:{ all -> 0x053d }\n r5[r6] = r7;\t Catch:{ all -> 0x053d }\n com.tencent.mm.sdk.platformtools.v.e(r3, r4, r5);\t Catch:{ all -> 0x053d }\n r3 = \"fail\";\n r4 = \"file not exist error\";\n r14.aL(r3, r4);\t Catch:{ all -> 0x053d }\n r0 = r17;\n r3 = r0.mUrl;\n r0 = r16;\n r0.nM(r3);\n if (r2 == 0) goto L_0x03ee;\n L_0x03eb:\n r2.disconnect();\n L_0x03ee:\n if (r12 == 0) goto L_0x03f3;\n L_0x03f0:\n r12.close();\t Catch:{ IOException -> 0x0409 }\n L_0x03f3:\n if (r11 == 0) goto L_0x0037;\n L_0x03f5:\n r11.close();\t Catch:{ IOException -> 0x03fa }\n goto L_0x0037;\n L_0x03fa:\n r2 = move-exception;\n r3 = \"MicroMsg.AppBrandNetworkRequest\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\n com.tencent.mm.sdk.platformtools.v.a(r3, r2, r4, r5);\n goto L_0x0037;\n L_0x0409:\n r2 = move-exception;\n r3 = \"MicroMsg.AppBrandNetworkRequest\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\n com.tencent.mm.sdk.platformtools.v.a(r3, r2, r4, r5);\n goto L_0x03f3;\n L_0x0417:\n r2 = move-exception;\n L_0x0418:\n r3 = com.tencent.mm.plugin.report.service.g.iuh;\t Catch:{ all -> 0x0507 }\n r4 = 435; // 0x1b3 float:6.1E-43 double:2.15E-321;\n r6 = 4;\n r8 = 1;\n r10 = 0;\n r3.a(r4, r6, r8, r10);\t Catch:{ all -> 0x0507 }\n r3 = \"MicroMsg.AppBrandNetworkRequest\";\n r4 = \"url is %s, failed reason: %s\";\n r5 = 2;\n r5 = new java.lang.Object[r5];\t Catch:{ all -> 0x0507 }\n r6 = 0;\n r0 = r17;\n r7 = r0.mUrl;\t Catch:{ all -> 0x0507 }\n r5[r6] = r7;\t Catch:{ all -> 0x0507 }\n r6 = 1;\n r7 = r2.toString();\t Catch:{ all -> 0x0507 }\n r5[r6] = r7;\t Catch:{ all -> 0x0507 }\n com.tencent.mm.sdk.platformtools.v.e(r3, r4, r5);\t Catch:{ all -> 0x0507 }\n r3 = \"fail\";\n r4 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0507 }\n r5 = \"send request fail:\";\n r4.<init>(r5);\t Catch:{ all -> 0x0507 }\n r2 = r2.getMessage();\t Catch:{ all -> 0x0507 }\n r2 = r4.append(r2);\t Catch:{ all -> 0x0507 }\n r2 = r2.toString();\t Catch:{ all -> 0x0507 }\n r14.aL(r3, r2);\t Catch:{ all -> 0x0507 }\n r0 = r17;\n r2 = r0.mUrl;\n r0 = r16;\n r0.nM(r2);\n if (r13 == 0) goto L_0x0466;\n L_0x0463:\n r13.disconnect();\n L_0x0466:\n if (r12 == 0) goto L_0x046b;\n L_0x0468:\n r12.close();\t Catch:{ IOException -> 0x0481 }\n L_0x046b:\n if (r11 == 0) goto L_0x0037;\n L_0x046d:\n r11.close();\t Catch:{ IOException -> 0x0472 }\n goto L_0x0037;\n L_0x0472:\n r2 = move-exception;\n r3 = \"MicroMsg.AppBrandNetworkRequest\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\n com.tencent.mm.sdk.platformtools.v.a(r3, r2, r4, r5);\n goto L_0x0037;\n L_0x0481:\n r2 = move-exception;\n r3 = \"MicroMsg.AppBrandNetworkRequest\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\n com.tencent.mm.sdk.platformtools.v.a(r3, r2, r4, r5);\n goto L_0x046b;\n L_0x048f:\n r2 = move-exception;\n L_0x0490:\n r3 = com.tencent.mm.plugin.report.service.g.iuh;\t Catch:{ all -> 0x0507 }\n r4 = 435; // 0x1b3 float:6.1E-43 double:2.15E-321;\n r6 = 5;\n r8 = 1;\n r10 = 0;\n r3.a(r4, r6, r8, r10);\t Catch:{ all -> 0x0507 }\n r3 = \"MicroMsg.AppBrandNetworkRequest\";\n r4 = \"url is %s,failed reason: %s\";\n r5 = 2;\n r5 = new java.lang.Object[r5];\t Catch:{ all -> 0x0507 }\n r6 = 0;\n r0 = r17;\n r7 = r0.mUrl;\t Catch:{ all -> 0x0507 }\n r5[r6] = r7;\t Catch:{ all -> 0x0507 }\n r6 = 1;\n r7 = r2.toString();\t Catch:{ all -> 0x0507 }\n r5[r6] = r7;\t Catch:{ all -> 0x0507 }\n com.tencent.mm.sdk.platformtools.v.e(r3, r4, r5);\t Catch:{ all -> 0x0507 }\n r3 = \"fail\";\n r4 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0507 }\n r5 = \"send request fail:\";\n r4.<init>(r5);\t Catch:{ all -> 0x0507 }\n r2 = r2.getMessage();\t Catch:{ all -> 0x0507 }\n r2 = r4.append(r2);\t Catch:{ all -> 0x0507 }\n r2 = r2.toString();\t Catch:{ all -> 0x0507 }\n r14.aL(r3, r2);\t Catch:{ all -> 0x0507 }\n r0 = r17;\n r2 = r0.mUrl;\n r0 = r16;\n r0.nM(r2);\n if (r13 == 0) goto L_0x04de;\n L_0x04db:\n r13.disconnect();\n L_0x04de:\n if (r12 == 0) goto L_0x04e3;\n L_0x04e0:\n r12.close();\t Catch:{ IOException -> 0x04f9 }\n L_0x04e3:\n if (r11 == 0) goto L_0x0037;\n L_0x04e5:\n r11.close();\t Catch:{ IOException -> 0x04ea }\n goto L_0x0037;\n L_0x04ea:\n r2 = move-exception;\n r3 = \"MicroMsg.AppBrandNetworkRequest\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\n com.tencent.mm.sdk.platformtools.v.a(r3, r2, r4, r5);\n goto L_0x0037;\n L_0x04f9:\n r2 = move-exception;\n r3 = \"MicroMsg.AppBrandNetworkRequest\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\n com.tencent.mm.sdk.platformtools.v.a(r3, r2, r4, r5);\n goto L_0x04e3;\n L_0x0507:\n r2 = move-exception;\n L_0x0508:\n r0 = r17;\n r3 = r0.mUrl;\n r0 = r16;\n r0.nM(r3);\n if (r13 == 0) goto L_0x0516;\n L_0x0513:\n r13.disconnect();\n L_0x0516:\n if (r12 == 0) goto L_0x051b;\n L_0x0518:\n r12.close();\t Catch:{ IOException -> 0x0521 }\n L_0x051b:\n if (r11 == 0) goto L_0x0520;\n L_0x051d:\n r11.close();\t Catch:{ IOException -> 0x052f }\n L_0x0520:\n throw r2;\n L_0x0521:\n r3 = move-exception;\n r4 = \"MicroMsg.AppBrandNetworkRequest\";\n r5 = \"\";\n r6 = 0;\n r6 = new java.lang.Object[r6];\n com.tencent.mm.sdk.platformtools.v.a(r4, r3, r5, r6);\n goto L_0x051b;\n L_0x052f:\n r3 = move-exception;\n r4 = \"MicroMsg.AppBrandNetworkRequest\";\n r5 = \"\";\n r6 = 0;\n r6 = new java.lang.Object[r6];\n com.tencent.mm.sdk.platformtools.v.a(r4, r3, r5, r6);\n goto L_0x0520;\n L_0x053d:\n r3 = move-exception;\n r13 = r2;\n r2 = r3;\n goto L_0x0508;\n L_0x0541:\n r4 = move-exception;\n r11 = r3;\n r13 = r2;\n r2 = r4;\n goto L_0x0508;\n L_0x0546:\n r5 = move-exception;\n r11 = r3;\n r12 = r4;\n r13 = r2;\n r2 = r5;\n goto L_0x0508;\n L_0x054c:\n r3 = move-exception;\n r13 = r2;\n r2 = r3;\n goto L_0x0490;\n L_0x0551:\n r4 = move-exception;\n r11 = r3;\n r13 = r2;\n r2 = r4;\n goto L_0x0490;\n L_0x0557:\n r5 = move-exception;\n r11 = r3;\n r12 = r4;\n r13 = r2;\n r2 = r5;\n goto L_0x0490;\n L_0x055e:\n r3 = move-exception;\n r13 = r2;\n r2 = r3;\n goto L_0x0418;\n L_0x0563:\n r4 = move-exception;\n r11 = r3;\n r13 = r2;\n r2 = r4;\n goto L_0x0418;\n L_0x0569:\n r5 = move-exception;\n r11 = r3;\n r12 = r4;\n r13 = r2;\n r2 = r5;\n goto L_0x0418;\n L_0x0570:\n r3 = move-exception;\n goto L_0x03b8;\n L_0x0573:\n r4 = move-exception;\n r11 = r3;\n goto L_0x03b8;\n L_0x0577:\n r5 = move-exception;\n r11 = r3;\n r12 = r4;\n goto L_0x03b8;\n L_0x057c:\n r3 = move-exception;\n goto L_0x0357;\n L_0x057f:\n r4 = move-exception;\n r11 = r3;\n goto L_0x0357;\n L_0x0583:\n r5 = move-exception;\n r11 = r3;\n r12 = r4;\n goto L_0x0357;\n L_0x0588:\n r2 = move-exception;\n r2 = r13;\n goto L_0x00f2;\n L_0x058c:\n r4 = move-exception;\n r11 = r3;\n goto L_0x00f2;\n L_0x0590:\n r3 = r11;\n goto L_0x0190;\n L_0x0593:\n r3 = r11;\n r4 = r12;\n goto L_0x030f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.mm.plugin.appbrand.g.c.a(com.tencent.mm.plugin.appbrand.g.d):void\");\n }", "title": "" }, { "docid": "1b5041606fb8d306a10cb8e017413bbc", "score": "0.47606125", "text": "public SCMPInspectCall(IRequester req) {\r\n\t\tsuper(req);\r\n\t}", "title": "" }, { "docid": "0e8b39817f3768140f0267ab78e2d531", "score": "0.47598514", "text": "void frameRecieved(L2Handler h, L2Frame f);", "title": "" }, { "docid": "ddfa62fa5703b4170baf10da962a6a51", "score": "0.47517955", "text": "@Override\n public void updateTelemetry() {\n }", "title": "" }, { "docid": "0d61e996ba02a35971589a63f2078e56", "score": "0.4750696", "text": "private static void generatSomeRequestForClientApp(JCreationApplication app) {\n \n Random r = new Random();\n \n for (int i = 0; i < 100; i++) {\n \n if (r.nextInt(100) % 2 == 0) {\n app.doSomething(new Op.Multiply(r.nextInt(100), r.nextInt(100)));\n } else {\n app.doSomething(new Op.Divide(r.nextInt(10000), r.nextInt(99) + 1));\n }\n\n try {\n Thread.sleep(200);\n } catch (InterruptedException e) {\n }\n }\n }", "title": "" }, { "docid": "93f03c05ece9c4243741a66731085038", "score": "0.47502926", "text": "private void apiHitForParticularOfferDelay() {\n Map<String, String> pairs = new HashMap<>();\n pairs.put(METHOD_PARAM, SPENT_MORE_THAN_TEN_METHOD);\n pairs.put(USERID_PARAM, sharePrefs.getUserId());\n pairs.put(SESSION_KEY_PARAM, sharePrefs.getSessionKey());\n pairs.put(OFF_ID_PARAM, offId);\n\n RestInteraction interaction = new RestInteraction(this);\n interaction.setCallBack(new IAsyncResponse() {\n @Override\n public void onRestInteractionResponse(String response) {\n try {\n JSONObject object = new JSONObject(response);\n if (object.getString(SUCCESS_PARAM).equalsIgnoreCase(ONE_RESP)) {\n Log.d(\"10 SEC\",\"RICEVUTO\");\n } else {\n Utility.showAlertDialog(OfferPage.this, object.getString(MESSAGE_KEY));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onRestInteractionError(String message) {\n Utility.showAlertDialog(OfferPage.this, message);\n }\n });\n interaction.makeServiceRequest(AppUrls.COMMON_URL, pairs, TAG, \"hit\");\n }", "title": "" }, { "docid": "0fb02d1533c610e98581fe14af787588", "score": "0.47383046", "text": "synchronized void putFrameData(byte[] frameData) {\r\n mYuvFrameData.put(0, 0, frameData);\r\n invalidate();\r\n }", "title": "" }, { "docid": "9a52082044482b2fa03622e914d73c4f", "score": "0.47368154", "text": "public int receiveAllocationRequest(Flow flowRequest);", "title": "" }, { "docid": "e91715710a54c19970ec517870119758", "score": "0.473348", "text": "private GmDispatchCardResponse() {\n initFields();\n }", "title": "" }, { "docid": "1b91621d349badd6640d46bf3aba749c", "score": "0.47267014", "text": "byte[] buildFrame();", "title": "" }, { "docid": "ac5a7fa454fc18844c283463bef5c01a", "score": "0.47240442", "text": "br.ufc.great.protoc.LabMonitorProtos.SensorOrBuilder getDataOrBuilder(int index);", "title": "" }, { "docid": "53246cc57281f9df30567fec58f4a858", "score": "0.47174802", "text": "wirepas.proto.gateway_api.DataMessage.SendPacketReqOrBuilder getSendPacketReqOrBuilder();", "title": "" }, { "docid": "679c86f642b260ec6c3d9aab9229ef3c", "score": "0.47153425", "text": "public DataInspector() {\n\tstarted = false;\n\tbuff = new char[500];\n\t}", "title": "" }, { "docid": "f8c55691f12e51bd5687970eeb98d66d", "score": "0.47152528", "text": "public void testAcceptedRequest() {\n\n }", "title": "" }, { "docid": "82751803e3d344bd96a87249fc9ebdf2", "score": "0.47125795", "text": "@Test\n public void testGetFrame_ResultData() {\n Frame frame1 = newFrame(ESV.INF);\n Frame frame2 = newFrame2(ESV.INFC);\n \n result.addFrame(frame1);\n result.addFrame(frame2);\n \n assertEquals(3, result.countData());\n \n ResultData resultData1 = result.getData(0);\n assertEquals(frame1, result.getFrame(resultData1).getActualFrame());\n \n ResultData resultData2 = result.getData(1);\n assertEquals(frame2, result.getFrame(resultData2).getActualFrame());\n \n ResultData resultData3 = result.getData(2);\n assertEquals(frame2, result.getFrame(resultData3).getActualFrame());\n }", "title": "" }, { "docid": "c2f3c9784c7fbc43add92dc4f2fdfd9a", "score": "0.47082722", "text": "public double getFrame(){\r\n return frame;\r\n }", "title": "" }, { "docid": "55a0a0751495ab32b70520d24bc06bce", "score": "0.47052896", "text": "public void onResponse(java.lang.String r6, java.lang.String r7, int r8, byte[] r9, com.taobao.accs.base.TaoBaseService.ExtraInfo r10) {\n /*\n r5 = this;\n r10 = 0\n java.lang.String r0 = \"AgooDeviceCmd\"\n boolean r0 = r0.equals(r6) // Catch:{ Throwable -> 0x0133 }\n if (r0 == 0) goto L_0x0123\n java.util.Map<java.lang.String, com.taobao.agoo.ICallback> r0 = r5.f79131a // Catch:{ Throwable -> 0x0133 }\n java.lang.Object r0 = r0.get(r7) // Catch:{ Throwable -> 0x0133 }\n com.taobao.agoo.ICallback r0 = (com.taobao.agoo.ICallback) r0 // Catch:{ Throwable -> 0x0133 }\n r1 = 200(0xc8, float:2.8E-43)\n if (r8 != r1) goto L_0x0118\n java.lang.String r8 = new java.lang.String // Catch:{ Throwable -> 0x0133 }\n java.lang.String r1 = \"utf-8\"\n r8.<init>(r9, r1) // Catch:{ Throwable -> 0x0133 }\n java.lang.String r9 = \"RequestListener\"\n java.lang.String r1 = \"RequestListener onResponse\"\n r2 = 6\n java.lang.Object[] r2 = new java.lang.Object[r2] // Catch:{ Throwable -> 0x0133 }\n java.lang.String r3 = \"dataId\"\n r2[r10] = r3 // Catch:{ Throwable -> 0x0133 }\n r3 = 1\n r2[r3] = r7 // Catch:{ Throwable -> 0x0133 }\n r3 = 2\n java.lang.String r4 = \"listener\"\n r2[r3] = r4 // Catch:{ Throwable -> 0x0133 }\n r3 = 3\n r2[r3] = r0 // Catch:{ Throwable -> 0x0133 }\n r3 = 4\n java.lang.String r4 = \"json\"\n r2[r3] = r4 // Catch:{ Throwable -> 0x0133 }\n r3 = 5\n r2[r3] = r8 // Catch:{ Throwable -> 0x0133 }\n com.taobao.accs.utl.ALog.i(r9, r1, r2) // Catch:{ Throwable -> 0x0133 }\n org.json.JSONObject r9 = new org.json.JSONObject // Catch:{ Throwable -> 0x0133 }\n r9.<init>(r8) // Catch:{ Throwable -> 0x0133 }\n java.lang.String r8 = \"resultCode\"\n r1 = 0\n java.lang.String r8 = com.taobao.accs.utl.d.a(r9, r8, r1) // Catch:{ Throwable -> 0x0133 }\n java.lang.String r2 = \"cmd\"\n java.lang.String r2 = com.taobao.accs.utl.d.a(r9, r2, r1) // Catch:{ Throwable -> 0x0133 }\n java.lang.String r3 = \"success\"\n boolean r3 = r3.equals(r8) // Catch:{ Throwable -> 0x0133 }\n if (r3 != 0) goto L_0x0070\n if (r0 == 0) goto L_0x0062\n java.lang.String r8 = java.lang.String.valueOf(r8) // Catch:{ Throwable -> 0x0133 }\n java.lang.String r9 = \"agoo server error\"\n r0.onFailure(r8, r9) // Catch:{ Throwable -> 0x0133 }\n L_0x0062:\n java.lang.String r8 = \"AgooDeviceCmd\"\n boolean r6 = r8.equals(r6)\n if (r6 == 0) goto L_0x006f\n java.util.Map<java.lang.String, com.taobao.agoo.ICallback> r6 = r5.f79131a\n r6.remove(r7)\n L_0x006f:\n return\n L_0x0070:\n java.lang.String r8 = \"register\"\n boolean r8 = r8.equals(r2) // Catch:{ Throwable -> 0x0133 }\n if (r8 == 0) goto L_0x00c2\n java.lang.String r8 = \"deviceId\"\n java.lang.String r8 = com.taobao.accs.utl.d.a(r9, r8, r1) // Catch:{ Throwable -> 0x0133 }\n boolean r9 = android.text.TextUtils.isEmpty(r8) // Catch:{ Throwable -> 0x0133 }\n if (r9 == 0) goto L_0x008e\n if (r0 == 0) goto L_0x00b4\n java.lang.String r8 = \"\"\n java.lang.String r9 = \"agoo server error deviceid null\"\n r0.onFailure(r8, r9) // Catch:{ Throwable -> 0x0133 }\n goto L_0x00b4\n L_0x008e:\n android.content.Context r9 = com.taobao.accs.client.GlobalClientInfo.getContext() // Catch:{ Throwable -> 0x0133 }\n org.android.agoo.common.Config.a((android.content.Context) r9, (java.lang.String) r8) // Catch:{ Throwable -> 0x0133 }\n com.taobao.agoo.a.a r9 = f79130b // Catch:{ Throwable -> 0x0133 }\n android.content.Context r1 = com.taobao.accs.client.GlobalClientInfo.getContext() // Catch:{ Throwable -> 0x0133 }\n java.lang.String r1 = r1.getPackageName() // Catch:{ Throwable -> 0x0133 }\n r9.a(r1) // Catch:{ Throwable -> 0x0133 }\n boolean r9 = r0 instanceof com.taobao.agoo.IRegister // Catch:{ Throwable -> 0x0133 }\n if (r9 == 0) goto L_0x00b4\n java.lang.String r9 = \"Agoo_AppStore\"\n android.content.Context r1 = com.taobao.accs.client.GlobalClientInfo.getContext() // Catch:{ Throwable -> 0x0133 }\n com.taobao.accs.utl.UtilityImpl.b((java.lang.String) r9, (android.content.Context) r1) // Catch:{ Throwable -> 0x0133 }\n com.taobao.agoo.IRegister r0 = (com.taobao.agoo.IRegister) r0 // Catch:{ Throwable -> 0x0133 }\n r0.onSuccess(r8) // Catch:{ Throwable -> 0x0133 }\n L_0x00b4:\n java.lang.String r8 = \"AgooDeviceCmd\"\n boolean r6 = r8.equals(r6)\n if (r6 == 0) goto L_0x00c1\n java.util.Map<java.lang.String, com.taobao.agoo.ICallback> r6 = r5.f79131a\n r6.remove(r7)\n L_0x00c1:\n return\n L_0x00c2:\n java.lang.String r8 = \"setAlias\"\n boolean r8 = r8.equals(r2) // Catch:{ Throwable -> 0x0133 }\n if (r8 == 0) goto L_0x00db\n r5.a(r9, r0) // Catch:{ Throwable -> 0x0133 }\n java.lang.String r8 = \"AgooDeviceCmd\"\n boolean r6 = r8.equals(r6)\n if (r6 == 0) goto L_0x00da\n java.util.Map<java.lang.String, com.taobao.agoo.ICallback> r6 = r5.f79131a\n r6.remove(r7)\n L_0x00da:\n return\n L_0x00db:\n java.lang.String r8 = \"removeAlias\"\n boolean r8 = r8.equals(r2) // Catch:{ Throwable -> 0x0133 }\n if (r8 == 0) goto L_0x0102\n android.content.Context r8 = com.taobao.accs.client.GlobalClientInfo.getContext() // Catch:{ Throwable -> 0x0133 }\n org.android.agoo.common.Config.b((android.content.Context) r8, (java.lang.String) r1) // Catch:{ Throwable -> 0x0133 }\n if (r0 == 0) goto L_0x00ef\n r0.onSuccess() // Catch:{ Throwable -> 0x0133 }\n L_0x00ef:\n com.taobao.agoo.a.a r8 = f79130b // Catch:{ Throwable -> 0x0133 }\n r8.a() // Catch:{ Throwable -> 0x0133 }\n java.lang.String r8 = \"AgooDeviceCmd\"\n boolean r6 = r8.equals(r6)\n if (r6 == 0) goto L_0x0101\n java.util.Map<java.lang.String, com.taobao.agoo.ICallback> r6 = r5.f79131a\n r6.remove(r7)\n L_0x0101:\n return\n L_0x0102:\n java.lang.String r8 = \"enablePush\"\n boolean r8 = r8.equals(r2) // Catch:{ Throwable -> 0x0133 }\n if (r8 != 0) goto L_0x0112\n java.lang.String r8 = \"disablePush\"\n boolean r8 = r8.equals(r2) // Catch:{ Throwable -> 0x0133 }\n if (r8 == 0) goto L_0x0123\n L_0x0112:\n if (r0 == 0) goto L_0x0123\n r0.onSuccess() // Catch:{ Throwable -> 0x0133 }\n goto L_0x0123\n L_0x0118:\n if (r0 == 0) goto L_0x0123\n java.lang.String r8 = java.lang.String.valueOf(r8) // Catch:{ Throwable -> 0x0133 }\n java.lang.String r9 = \"accs channel error\"\n r0.onFailure(r8, r9) // Catch:{ Throwable -> 0x0133 }\n L_0x0123:\n java.lang.String r8 = \"AgooDeviceCmd\"\n boolean r6 = r8.equals(r6)\n if (r6 == 0) goto L_0x0146\n L_0x012b:\n java.util.Map<java.lang.String, com.taobao.agoo.ICallback> r6 = r5.f79131a\n r6.remove(r7)\n return\n L_0x0131:\n r8 = move-exception\n goto L_0x0147\n L_0x0133:\n r8 = move-exception\n java.lang.String r9 = \"RequestListener\"\n java.lang.String r0 = \"onResponse\"\n java.lang.Object[] r10 = new java.lang.Object[r10] // Catch:{ all -> 0x0131 }\n com.taobao.accs.utl.ALog.e(r9, r0, r8, r10) // Catch:{ all -> 0x0131 }\n java.lang.String r8 = \"AgooDeviceCmd\"\n boolean r6 = r8.equals(r6)\n if (r6 == 0) goto L_0x0146\n goto L_0x012b\n L_0x0146:\n return\n L_0x0147:\n java.lang.String r9 = \"AgooDeviceCmd\"\n boolean r6 = r9.equals(r6)\n if (r6 == 0) goto L_0x0154\n java.util.Map<java.lang.String, com.taobao.agoo.ICallback> r6 = r5.f79131a\n r6.remove(r7)\n L_0x0154:\n throw r8\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.taobao.agoo.a.b.onResponse(java.lang.String, java.lang.String, int, byte[], com.taobao.accs.base.TaoBaseService$ExtraInfo):void\");\n }", "title": "" }, { "docid": "570f207a303c891636d019f905939142", "score": "0.47008222", "text": "@Override\r\n\tpublic void recvReqPairSignal(ClientSignal signal) {\n\t\t\r\n\t}", "title": "" }, { "docid": "ec3f629322496e5ebae365cce5c26609", "score": "0.46970612", "text": "private void requestData() {\n\n\t\trequestTreeRoot();\n\t\trequestRuleList();\n\t\trequestPersonnelList();\n\t\trequestDocumentList();\n\t\t\n\t}", "title": "" }, { "docid": "e74d520bf4be83fdbc3b0404d19a3e21", "score": "0.4688883", "text": "com.google.protobuf.ByteString getPayload();", "title": "" }, { "docid": "e74d520bf4be83fdbc3b0404d19a3e21", "score": "0.4688883", "text": "com.google.protobuf.ByteString getPayload();", "title": "" }, { "docid": "001fd925c43be3d116f97c0f66099ca9", "score": "0.46879092", "text": "void getData();", "title": "" } ]
8e340628213e376242f7e101cbec1421
checks if the player hits the borders on the left and right and move to the other side of the scene
[ { "docid": "c3c38c56558d895c4a72b3c6c7e117cd", "score": "0.0", "text": "int borders(int max, int min){\n if (this.p.x >= max)\n return min;\n else if (this.p.x <= min)\n return max;\n else return this.p.x;\n }", "title": "" } ]
[ { "docid": "e13952a2b719ff483cb687eda3188b08", "score": "0.70844734", "text": "private void checkPlayerLocation() {\n if (player.y > 1000) {\r\n player.y = 0;\r\n level++;\r\n nextLevel();\r\n }\r\n if (player.x > 1200) {//if player goes off right screen put them back at left side\r\n player.x = -2;\r\n }\r\n if (player.x < 0) {//if player goes off left side of screen bring them back on right side\r\n player.x = WIDTH - player.width;\r\n }\r\n }", "title": "" }, { "docid": "b2b05d98423d8ec031b3dc5517338778", "score": "0.6606419", "text": "public void moveLeft() {\n double x = this.rect.getUpperLeft().getX();\n double y = this.rect.getUpperLeft().getY();\n //check is the paddle is out of the screen\n if (x - this.speed >= this.startEdge) {\n this.rect.setUpperLeft(x - this.speed, y);\n }\n }", "title": "" }, { "docid": "70ea4e03e7ff77a06053994567b66f80", "score": "0.65762424", "text": "public void move() {\n if(keyRight) {\n if (playerX < 600) {\n playerX += 10;\n }\n }\n if(keyLeft) {\n if(playerX > 0) {\n playerX -= 10;\n }\n }\n }", "title": "" }, { "docid": "d8d1013d7c207ce7e7d77224f98cd014", "score": "0.64871746", "text": "public void move() {\n\t\tif (x + xa > 0 && x + xa < game.getWidth()- WIDTH)\n\t\t\tx = x + xa;\n\t}", "title": "" }, { "docid": "48a0e791b946c2631a2038f532745dd7", "score": "0.6483183", "text": "public void moveRight() {\n double x = this.rect.getUpperLeft().getX();\n double y = this.rect.getUpperLeft().getY();\n //check is the paddle is out of the screen\n if (x + this.speed + this.rect.getWidth() <= this.endEdge) {\n this.rect.setUpperLeft(x + this.speed, y);\n }\n }", "title": "" }, { "docid": "58127aabb3772398b0b817c4fae65079", "score": "0.6377471", "text": "protected void moveToCollideWithTiles() {\n\t\tRectangle[] sideBounds = new Rectangle[4];\n\t\tsideBounds[0] = new Rectangle(bounds.point.plus(bounds.size.x - 1, 0), new Vector(1, bounds.size.y));\n\t\tsideBounds[1] = new Rectangle(bounds.point.plus(0, bounds.size.y - 1), new Vector(bounds.size.x, 1));\n\t\tsideBounds[2] = new Rectangle(bounds.point, new Vector(1, bounds.size.y));\n\t\tsideBounds[3] = new Rectangle(bounds.point, new Vector(bounds.size.x, 1));\n\n\t\tVector newVelocity = new Vector(velocity);\n\t\t\n\t\tfor (int i = 0; i < 4; i++)\n\t\t\tcolliding[i] = false;\n\t\t\n\t\t// Check collisions to the left\n\t\tif (room.isCollidingWithTile(position.plus(velocity.x, 0), sideBounds[2], CollisionType.allSolid) &&\n\t\t\t\tvelocity.x < 0) {\n\t\t\tcolliding[2] = true;\n\t\t\t// Reduce velocity to prevent collision\n\t\t\tfor (int i = 0; i >= (int)velocity.x ; i--) {\n\t\t\t\tif (!room.isCollidingWithTile(position.plus(velocity.x - i, 0), sideBounds[2], CollisionType.allSolid)) {\n\t\t\t\t\tnewVelocity.x = velocity.x - i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if (i == (int)velocity.x) {\n\t\t\t\t\tnewVelocity.x = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Check collisions to the top\n\t\tif (room.isCollidingWithTile(position.plus(0, velocity.y), sideBounds[3], CollisionType.allSolid) &&\n\t\t\t\tvelocity.y < 0) {\n\t\t\tcolliding[3] = true;\n\t\t\t// Reduce velocity to prevent collision\n\t\t\tfor (int i = 0; i >= (int)velocity.y ; i--) {\n\t\t\t\tif (!room.isCollidingWithTile(position.plus(0, velocity.y - i), sideBounds[3], CollisionType.allSolid)) {\n\t\t\t\t\tnewVelocity.y = velocity.y - i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if (i == (int)velocity.y) {\n\t\t\t\t\tnewVelocity.y = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Check collisions to the right\n\t\tif (room.isCollidingWithTile(position.plus(velocity.x, 0), sideBounds[0], CollisionType.allSolid) &&\n\t\t\t\tvelocity.x > 0) {\n\t\t\tcolliding[0] = true;\n\t\t\t// Reduce velocity to prevent collision\n\t\t\tfor (int i = 0; i <= (int)velocity.x ; i++) {\n\t\t\t\tif (!room.isCollidingWithTile(position.plus(velocity.x - i, 0), sideBounds[0], CollisionType.allSolid)) {\n\t\t\t\t\tnewVelocity.x = velocity.x - i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if (i == (int)velocity.x) {\n\t\t\t\t\tnewVelocity.x = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Check collisions to the bottom\n\t\tif (room.isCollidingWithTile(position.plus(0, velocity.y), sideBounds[1], CollisionType.allSolid) &&\n\t\t\t\tvelocity.y > 0) {\n\t\t\tcolliding[1] = true;\n\t\t\t// Reduce velocity to prevent collision\n\t\t\tfor (int i = 0; i <= (int)velocity.y ; i++) {\n\t\t\t\tif (!room.isCollidingWithTile(position.plus(0, velocity.y - i), sideBounds[1], CollisionType.allSolid)) {\n\t\t\t\t\tnewVelocity.y = velocity.y - i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if (i == (int)velocity.y) {\n\t\t\t\t\tnewVelocity.y = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tvelocity = newVelocity;\n\t}", "title": "" }, { "docid": "36fa99792a5166ef04fb4c9a6aa0f3b1", "score": "0.63543886", "text": "public void detectMoveLeft() {\n\t\tif(matrix2d.isActive) {\n\t\t\t// check is hit the begin of colum\n\t\t\t\tif(matrix2d.activeY - 1 >= 0) {\n\t\t\t\t\t// check xem candy va candy ben trai no co dang falling hay ko\n\t\t\t\t\tif(matrix2d.MT[matrix2d.activeX][matrix2d.activeY].typeCandy != 10 && matrix2d.MT[matrix2d.activeX][matrix2d.activeY - 1].typeCandy != 10)\n\t\t\t\t\t\t// if the mouse hit the left candy\n\t\t\t\t\t\tif(posY > matrix2d.MT[matrix2d.activeX][matrix2d.activeY - 1].x && posY < (matrix2d.MT[matrix2d.activeX][matrix2d.activeY - 1].x + 80)\n\t\t\t\t\t\t\t&& posX > matrix2d.MT[matrix2d.activeX][matrix2d.activeY - 1].y && posX < matrix2d.MT[matrix2d.activeX][matrix2d.activeY - 1].y + 80 ) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t//play sound\n\t\t\t\t\t\tsoundSwap.myPlaySound();\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t//de-active\n\t\t\t\t\t\tmatrix2d.isActive = false;\n\t\t\t\t\t\tmatrix2d.MT[matrix2d.activeX][matrix2d.activeY].isActived = false;\n\t\t\t\t\t\t\n\t\t\t\t\t\t// swap candy\n\t\t\t\t\t\tsaveType = matrix2d.MT[matrix2d.activeX][matrix2d.activeY].typeCandy;\n\t\t\t\t\t\tmatrix2d.MT[matrix2d.activeX][matrix2d.activeY].typeCandy = matrix2d.MT[matrix2d.activeX][matrix2d.activeY - 1].typeCandy;\n\t\t\t\t\t\tmatrix2d.MT[matrix2d.activeX][matrix2d.activeY - 1].typeCandy = saveType;\n\t\t\t\t\t\t\n\t\t\t\t\t\tmatrix2d.MT[matrix2d.activeX][matrix2d.activeY].y -= 80;\n\t\t\t\t\t\tmatrix2d.MT[matrix2d.activeX][matrix2d.activeY - 1].y += 80;\n\t\t\t\t\t\t\n\t\t\t\t\t\tmatrix2d.notDetectLeft = true;\n\t\t\t\t\t\t\n\t\t\t\t\t\tstateInGame = 1;\n\t\t\t\t\t\tSystem.out.println(\"after swap: \");\n\t\t\t\t\t\tmatrix2d.showMatrix2D();\n\t\t\t\t\t}\n\t\t\t\t\n\t\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "88c5047a53c3f143060d2e8db79b418c", "score": "0.6328323", "text": "private void move()\r\n {\n if(isRight == true)\r\n {\r\n displacement.setX(20);\r\n }else\r\n {\r\n displacement.setX(-20);\r\n }\r\n }", "title": "" }, { "docid": "846f4e76a757fbe355336e196548d185", "score": "0.63085294", "text": "public void positionOnSidePlatform() {\n\t\tif (left) {\n\t\t\tposition.x = collidingPlatformX.position.x\n\t\t\t\t\t+ collidingPlatformX.bounds.width;\n\t\t} else if (right) {\n\t\t\tposition.x = collidingPlatformX.position.x - bounds.width;\n\t\t}\n\t}", "title": "" }, { "docid": "afbe5719d34f5cac4116f204aae0269a", "score": "0.62994", "text": "public void moveLeft(){\n if (Greenfoot.isKeyDown(\"left\")){\n move(-5);\n }\n }", "title": "" }, { "docid": "a4b345d45be879f4abc21685e51df3cd", "score": "0.628997", "text": "public void detectMoveRight() {\n\t\tif(matrix2d.isActive) {\n\t\t\t// check is hit the end of colum\n\t\t\tif(matrix2d.activeY + 1 <= CongfigGame.lengthColum - 1) {\n\t\t\t\t// check xem candy va candy ben phai no co dang falling hay ko\n\t\t\t\tif(matrix2d.MT[matrix2d.activeX][matrix2d.activeY].typeCandy != 10 && matrix2d.MT[matrix2d.activeX][matrix2d.activeY + 1].typeCandy != 10)\n\t\t\t\t\t// if mouse hit the right candy\n\t\t\t\t\tif(posY > matrix2d.MT[matrix2d.activeX ][matrix2d.activeY + 1].x && posY < (matrix2d.MT[matrix2d.activeX][matrix2d.activeY + 1].x + 80)\n\t\t\t\t\t\t\t&& posX > matrix2d.MT[matrix2d.activeX][matrix2d.activeY + 1].y && posX < matrix2d.MT[matrix2d.activeX][matrix2d.activeY + 1].y + 80 ) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t//play sound\n\t\t\t\t\t\tsoundSwap.myPlaySound();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//de-active \n\t\t\t\t\t\tmatrix2d.isActive = false;\n\t\t\t\t\t\tmatrix2d.MT[matrix2d.activeX][matrix2d.activeY].isActived = false;\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t// swap candy\n\t\t\t\t\t\tsaveType = matrix2d.MT[matrix2d.activeX][matrix2d.activeY].typeCandy;\n\t\t\t\t\t\tmatrix2d.MT[matrix2d.activeX][matrix2d.activeY].typeCandy = matrix2d.MT[matrix2d.activeX][matrix2d.activeY + 1].typeCandy;\n\t\t\t\t\t\tmatrix2d.MT[matrix2d.activeX][matrix2d.activeY + 1].typeCandy = saveType;\n\t\t\t\t\t\t\n\t\t\t\t\t\tmatrix2d.MT[matrix2d.activeX][matrix2d.activeY].y += 80;\n\t\t\t\t\t\tmatrix2d.MT[matrix2d.activeX][matrix2d.activeY + 1].y -= 80;\n\t\t\t\t\t\t\n\t\t\t\t\t\tmatrix2d.notDetectRight = true;\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t//matrix2d.MT[matrix2d.activeX][matrix2d.activeY].isRight = true;\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t// move to detect candy\n\t\t\t\t\t\tstateInGame = 1;\n\t\t\t\t\t\t\n\t\t\t\t\t\t// console \n\t\t\t\t\t\tSystem.out.println(\"after swap: \");\n\t\t\t\t\t\tmatrix2d.showMatrix2D();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "6378eb279778968c89221839d4868a28", "score": "0.6283462", "text": "public void move()\r\n {\r\n if(Greenfoot.isKeyDown(\"left\"))\r\n {\r\n faceRight=false;\r\n if(velY==0)changeImageMove();\r\n }\r\n \r\n if(Greenfoot.isKeyDown(\"right\"))\r\n {\r\n faceRight=true;\r\n if(velY==0)changeImageMove();\r\n }\r\n \r\n }", "title": "" }, { "docid": "a3e94a02794dc0d4259bddca347af28f", "score": "0.62498266", "text": "public void moveRight() {\r\n if ((this.getCollisionRectangle().getUpperLeft().getX()\r\n + this.getCollisionRectangle().getWidth())\r\n < GameLevel.WINDOW_WIDTH - GameLevel.BORDER_BLOCK_WIDTH) {\r\n this.setVelocity(new Velocity(this.speed * this.dt, 0));\r\n Point newLocation = this.velocity.applyToPoint(this.getCollisionRectangle().getUpperLeft());\r\n this.getCollisionRectangle().setUpperLeft(newLocation);\r\n } else {\r\n this.getCollisionRectangle().setUpperLeft(new Point(\r\n GameLevel.WINDOW_WIDTH - GameLevel.BORDER_BLOCK_WIDTH\r\n - this.getCollisionRectangle().getWidth(),\r\n this.getCollisionRectangle().getUpperLeft().getY()));\r\n }\r\n }", "title": "" }, { "docid": "db4677bf898810340b1b688ef430bd6b", "score": "0.6246117", "text": "private void handleAreaTransition() {\n if(player.getY() > WORLD_HEIGHT) {\n player.setPosition(player.getX(),0);\n playerRow--;\n currentArea = world[playerRow][playerCol];\n mapRenderer.setMap(currentArea.getMap());\n }\n //goes off the bottom of the screen\n else if(player.getY() < 0) {\n player.setPosition(player.getX(),WORLD_HEIGHT - player.HEIGHT);\n playerRow++;\n currentArea = world[playerRow][playerCol];\n mapRenderer.setMap(currentArea.getMap());\n }\n //goes off the right of the screen\n else if(player.getX() > WORLD_WIDTH) {\n player.setPosition(0, player.getY());\n playerCol++;\n currentArea = world[playerRow][playerCol];\n mapRenderer.setMap(currentArea.getMap());\n }\n //goes off the left of the screen\n else if(player.getX() < 0) {\n player.setPosition(WORLD_WIDTH - player.WIDTH, player.getY());\n playerCol--;\n currentArea = world[playerRow][playerCol];\n mapRenderer.setMap(currentArea.getMap());\n }\n }", "title": "" }, { "docid": "62a3e4910829461917ce92d6f37c0dd5", "score": "0.6228866", "text": "public void moveLeft() {\n rectangle.setUpperLeft(new Point(rectangle.getUpperLeft().getX() - paddleSpeed\n , rectangle.getUpperLeft().getY()));\n // case when the paddle reach the boarder\n if (rectangle.getUpperLeft().getX() <= boarderLeft) {\n rectangle.setUpperLeft(new Point(boarderLeft , rectangle.getUpperLeft().getY()));\n }\n }", "title": "" }, { "docid": "334c9560b4c2ba0c7e468ab39d18ee70", "score": "0.6228809", "text": "private void moveObstacles(){\n if (obstacles[0].x > 0 - obstacles[0].w) {\n obstacles[0].moveLt(speed);\n }\n\n // if the upper obstacle is halfway across OR\n // the lower obstacle is already on screen, move the lower obstacle.\n if (obstacles[0].x < 550 || obstacles[1].x<1000) {\n obstacles[1].moveLt(speed);\n }\n\n\n }", "title": "" }, { "docid": "3afe64a5fb839df7dd6e3947a8499629", "score": "0.6222676", "text": "public void move() {\n\t\tswitch (go) {\n\t\tcase UP:\n\t\t\tif (coordY - deplacement < 0) {\n\t\t\t\tcoordY = Modele.maxY - length_box;\n\t\t\t} else {\n\t\t\t\tcoordY -= deplacement;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase DOWN:\n\t\t\tif (coordY + deplacement + length_box > Modele.maxY) {\n\t\t\t\tcoordY = 0;\n\t\t\t} else {\n\t\t\t\tcoordY += deplacement;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase LEFT:\n\t\t\tif (coordX - deplacement < 0) {\n\t\t\t\tcoordX = Modele.maxX - length_box - 122;\n\t\t\t} else {\n\t\t\t\tcoordX -= deplacement;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase RIGHT:\n\t\t\tif (coordX + deplacement + length_box > Modele.maxX - 122) {\n\t\t\t\tcoordX = 0;\n\t\t\t} else {\n\t\t\t\tcoordX += deplacement;\n\t\t\t}\n\t\t\tbreak;\n\t\tdefault:\n\t\t}\n\t}", "title": "" }, { "docid": "c1482284d62486bdb8eb006854cfabd7", "score": "0.62031144", "text": "protected void turnAround() {\n goingRight = !goingRight;\n }", "title": "" }, { "docid": "a7048c4150e0046f1c201ae30cef1a74", "score": "0.6192561", "text": "private void moveAlongWall(Side side, double lower_limit, double upper_limit) {\n double distance = rangeSensors.getLeftDistance(100);\n if(Side.right.equals(side)) { // right side wall\n distance = rangeSensors.getRightDistance(100);\n }\n\n\n\n\n\n\n }", "title": "" }, { "docid": "8b718bcb9ac4c6d5abfc404ac8f3c631", "score": "0.6189469", "text": "@Override\n public boolean onTouch(View v, MotionEvent event) {\n newX = findNearestGridX(event.getX());\n newY = findNearestGridY(event.getY());\n\n playerDestinationX = convertGridToIntX(newX);\n playerDestinationY = convertGridToIntY(newY);\n\n switch (event.getAction()) {\n case MotionEvent.ACTION_DOWN: {\n\n\n differenceIntX = playerDestinationX - playerPositionX;\n differenceIntY = playerDestinationY - playerPositionY;\n\n while (!(differenceIntX == 0 && differenceIntY == 0)) {\n // If further away in X value than Y from destination move in X dimension\n // XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n if (abs(differenceIntX) >= abs(differenceIntY)) {\n // Move left condition\n // LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL\n if (playerDestinationX < playerPositionX) {\n if(currentMap.checkIfPortalSquare(nextLeft, playerPositionY) != null && !currentMap.checkIfPortalSquare(nextLeft, playerPositionY).isEmpty()){\n if(currentMap.checkIfPortalSquare(nextLeft, playerPositionY).equals(\"exit\")){\n openLevelSelectionScreen();\n }\n }\n if(currentMap.checkSquareBlocked((nextLeft), playerPositionY) == true) {\n stopMovement();\n }\n if(currentMap.checkSquareBlocked((nextLeft), playerPositionY) == false) {\n renderer.moveLeft();\n playerPositionX--;\n setNextPositions();\n updateJourneyDifference();\n }\n }\n // LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL\n // Move right condition\n // RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR\n if (playerDestinationX > playerPositionX) {\n // Check if next square is blocked\n if(currentMap.checkSquareBlocked((nextRight), playerPositionY) == true) {\n stopMovement();\n }\n if(currentMap.checkSquareBlocked((nextRight), playerPositionY) == false) {\n renderer.moveRight();\n playerPositionX++;\n setNextPositions();\n updateJourneyDifference();\n }\n }\n // RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR\n }\n // XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n // Below is concerned with movement in Y\n // YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY\n if (abs(differenceIntX) < abs(differenceIntY)) {\n // Move up condition\n // UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU\n if (playerDestinationY < playerPositionY) {\n if(currentMap.checkSquareBlocked(playerPositionX, nextUp) == true) {\n stopMovement();\n }\n if(currentMap.checkSquareBlocked(playerPositionX, nextUp) == false) {\n renderer.moveUp();\n playerPositionY--;\n setNextPositions();\n updateJourneyDifference();\n }\n }\n // UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU\n // Move down condition\n // DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD\n if (playerDestinationY > playerPositionY) {\n if(currentMap.checkSquareBlocked(playerPositionX, nextDown) == true) {\n stopMovement();\n }\n if(currentMap.checkSquareBlocked(playerPositionX, nextDown) == false) {\n renderer.moveDown();\n playerPositionY++;\n setNextPositions();\n updateJourneyDifference();\n }\n }\n // DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD\n }\n // YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY\n }\n\n checkIfExitSquare();\n checkIfActionSquare();\n checkIfStairs();\n\n\n break;\n\n\n }\n case MotionEvent.ACTION_MOVE: {\n break;\n }\n case MotionEvent.ACTION_UP: {\n break;\n }\n\n }\n return false;\n }", "title": "" }, { "docid": "fe07a6572d36a3eaeecdac767b0cd8f6", "score": "0.6174896", "text": "private void moveEverythingToTheRight() {\n\t\tplayer.setTranslateX(player.getTranslateX() + player.getSpeed());\n\t\tstageView.setTranslateX(stageView.getTranslateX() + player.getSpeed());\n\t\tbackgroundView.setTranslateX(backgroundView.getTranslateX() + player.getSpeed()/3);\n\t\t\n\t\tfor(int i = 0; i < objectList.size(); i++) {\n\t\t\tNode object = objectList.get(i);\n\t\t\tobject.setTranslateX(object.getTranslateX() + player.getSpeed());\n\t\t}\n\t}", "title": "" }, { "docid": "92345b32cca3186981875a0d02b5b0af", "score": "0.6157069", "text": "public void moveLeft() {\r\n if (this.getCollisionRectangle().getUpperLeft().getX() > GameLevel.BORDER_BLOCK_WIDTH) {\r\n this.setVelocity(new Velocity(-(this.speed * this.dt), 0));\r\n Point newLocation = this.velocity.applyToPoint(this.getCollisionRectangle().getUpperLeft());\r\n this.getCollisionRectangle().setUpperLeft(newLocation);\r\n } else {\r\n this.getCollisionRectangle().setUpperLeft(new Point(\r\n 0 + GameLevel.BORDER_BLOCK_WIDTH,\r\n this.getCollisionRectangle().getUpperLeft().getY()));\r\n }\r\n }", "title": "" }, { "docid": "35973ed8b32445d175aa4b51e06f6362", "score": "0.6150546", "text": "public boolean collision(Player player)\n\t{\n\t\tboolean ans = false;\n\t\tif (!this.name.equals(\"Player\"))\n\t\t{\n\t\t\tdouble left = player.x;\n\t\t\tdouble right = player.x + player.width;\n\t\t\n\t\t\tif ((left <= (this.x + this.width) && (right >= this.x)) \n\t\t\t\t&& (player.y > this.y) && (player.y < this.y + this.height) )\n\t\t\t{\n\t\t\t\t// hit the bottom, stay under instead of flipping to the side\n\t\t\t\tif (player.y + player.height >= this.y + this.height && player.jumping)\n\t\t\t\t{\n\t\t\t//\t\tSystem.out.println(\"AAAAAAA\");\n\t\t\t\t\tplayer.y = this.y + this.height;\n\t\t\t\t\tans = true;\n\t\t\t\t}\n\t\t\t\tif (player.y + player.height < this.y + this.height)\n\t\t\t\t{\n\t\t\t\tboolean closerToLeft = player.x <= this.x + this.width/2;\n\t\t\t\tif (closerToLeft)\n\t\t\t\t\tplayer.x = this.x - player.width - 1;\n\t\t\t\telse\n\t\t\t\t\tplayer.x = this.x + this.width;\n\t\t\t\tans = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (ans)\n\t\t\tthis.touch(player);\n\t\t\n\t\treturn ans;\n\t}", "title": "" }, { "docid": "fc4ed3d7ceaa9080385a02690657e7c2", "score": "0.6148851", "text": "private void checkCorners(final Player player) \r\n {\r\n //get the current column and row\r\n int x = (int)player.getX(), y = (int)player.getY();\r\n \r\n //get the difference from the location and actual position\r\n double cx = player.getX() - x, cy = player.getY() - y;\r\n double rcx = 1 - cx, rcy = 1 - cy;\r\n \r\n //distance\r\n double d;\r\n\r\n if ((d = Math.sqrt(cx * cx + cy * cy)) < WALL_D) \r\n {\r\n //hit north west corner\r\n player.setX(player.getX() + ((WALL_D / d - 1) * cx));\r\n player.setY(player.getY() + ((WALL_D / d - 1) * cy));\r\n }\r\n else if ((d = Math.sqrt(rcx * rcx + cy * cy)) < WALL_D) \r\n {\r\n //hit north east corner\r\n player.setX(player.getX() - ((WALL_D / d - 1) * rcx));\r\n player.setY(player.getY() + ((WALL_D / d - 1) * cy));\r\n }\r\n else if ((d = Math.sqrt(cx * cx + rcy * rcy)) < WALL_D)\r\n {\r\n //south west corner\r\n player.setX(player.getX() + ((WALL_D / d - 1) * cx));\r\n player.setY(player.getY() - ((WALL_D / d - 1) * rcy));\r\n }\r\n else if ((d = Math.sqrt(rcx * rcx + rcy * rcy)) < WALL_D)\r\n {\r\n //south east corner\r\n player.setX(player.getX() - ((WALL_D / d - 1) * rcx));\r\n player.setY(player.getY() - ((WALL_D / d - 1) * rcy));\r\n }\r\n }", "title": "" }, { "docid": "0ac762a5bb96496146f5f4d6f841b32f", "score": "0.61317337", "text": "public void moveRight() {\n\t\n\tif(this.getXpos() < 640)\n\t\n\tthis.setXpos(this.getXpos() + 20);\n\t\n}", "title": "" }, { "docid": "363f9c6595999ee22708dc3378d24793", "score": "0.61315644", "text": "private void moveEverythingToTheLeft() {\n\t\tplayer.setTranslateX(player.getTranslateX() - player.getSpeed());\n\t\tstageView.setTranslateX(stageView.getTranslateX() - player.getSpeed());\n\t\tbackgroundView.setTranslateX(backgroundView.getTranslateX() - player.getSpeed()/3);\n\t\t\n\t\tfor(int i = 0; i < objectList.size(); i++) {\n\t\t\tNode object = objectList.get(i);\n\t\t\tobject.setTranslateX(object.getTranslateX() - player.getSpeed());\n\t\t}\n\t}", "title": "" }, { "docid": "fea67807fffaad07d4126d327f83b8d1", "score": "0.6107427", "text": "public void move(){\n if (!hasReachedGoal()){\n Position p = getCurrentPosition();\n\n\n if (!rightWall(p)){\n turnRight();\n moveRobot(p);\n }\n else if (freeFront(p))\n moveRobot(p);\n else if (leftWall(p)){\n turn();\n moveRobot(p);\n }\n else{\n turnLeft();\n moveRobot(p);\n }\n }\n }", "title": "" }, { "docid": "9aabb9e7c922268fc639c4dd6ee82725", "score": "0.6104702", "text": "@Override\n public boolean isLevelWin() {//confronta la posizione del centro dell'astronave con quella del centro della milkyway\n return(Model.getInstance().getSpaceshipXPosition() == Model.getInstance().getMilkyWayXPosition() & Model.getInstance().getSpaceshipYPosition() == Model.getInstance().getMilkyWayYPosition());\n }", "title": "" }, { "docid": "495724e3fcfe1a4bd821d07e595ead32", "score": "0.610277", "text": "public void move(ArrowDirection nextMove) {\n int xKord = playerPosition[0];\n int yKord = playerPosition[1];\n switch (nextMove) {\n case Up: {\n yKord--;\n break;\n }\n case Down: {\n yKord++;\n break;\n }\n case Right: {\n xKord++;\n break;\n }\n case Left: {\n xKord--;\n break;\n }\n }\n if (xKord >= 0 && yKord >= 0 && xKord < height && yKord < length) {\n if (gameField[yKord][xKord]) {\n playerPosition[0] = xKord;\n playerPosition[1] = yKord;\n } else {//if the player hits an wall\n sound.lose();\n }\n } else {//if the player is at the edge of the game field\n sound.lose();\n }\n }", "title": "" }, { "docid": "8c915d8fe70265edfa30cc44c949b41a", "score": "0.6066893", "text": "protected void adjustToSideOfTiles() {\n\t\tVector newVelocity = new Vector(velocity);\n\t\t\n\t\t// Adjust to the side of the left tile\n\t\tif (colliding[2]) {\n\t\t\tRectangle[] adjustBounds = new Rectangle[4];\n\t\t\tadjustBounds[0] = new Rectangle(bounds.point.plus(-1, 2), new Vector(1, 1));\n\t\t\tadjustBounds[1] = new Rectangle(bounds.point.plus(-1, bounds.size.y - 1), new Vector(1, 1));\n\t\t\tadjustBounds[2] = new Rectangle(bounds.point.plus(-1, bounds.size.y - 2), new Vector(1, 1));\n\t\t\tadjustBounds[3] = new Rectangle(bounds.point.plus(-1, 0), new Vector(1, 1));\n\t\t\tif (room.isCollidingWithTile(position, adjustBounds[0], CollisionType.allNonSolid) &&\n\t\t\t\troom.isCollidingWithTile(position, adjustBounds[1], CollisionType.allSolid)) {\n\t\t\t\t// Adjust up\n\t\t\t\tnewVelocity.y = -1;\n\t\t\t}\n\t\t\telse if (room.isCollidingWithTile(position, adjustBounds[2], CollisionType.allNonSolid) &&\n\t\t\t\t\t room.isCollidingWithTile(position, adjustBounds[3], CollisionType.allSolid)) {\n\t\t\t\t// Adjust down\n\t\t\t\tnewVelocity.y = 1;\n\t\t\t}\n\t\t}\n\t\t// Adjust to the side of the top tile\n\t\tif (colliding[3]) {\n\t\t\tRectangle[] adjustBounds = new Rectangle[4];\n\t\t\tadjustBounds[0] = new Rectangle(bounds.point.plus(1, -1), new Vector(1, 1));\n\t\t\tadjustBounds[1] = new Rectangle(bounds.point.plus(bounds.size.x - 1, -1), new Vector(1, 1));\n\t\t\tadjustBounds[2] = new Rectangle(bounds.point.plus(bounds.size.x - 2, -1), new Vector(1, 1));\n\t\t\tadjustBounds[3] = new Rectangle(bounds.point.plus(0, -1), new Vector(1, 1));\n\t\t\tif (room.isCollidingWithTile(position, adjustBounds[0], CollisionType.allNonSolid) &&\n\t\t\t\troom.isCollidingWithTile(position, adjustBounds[1], CollisionType.allSolid)) {\n\t\t\t\t// Adjust left\n\t\t\t\tnewVelocity.x = -1;\n\t\t\t}\n\t\t\telse if (room.isCollidingWithTile(position, adjustBounds[2], CollisionType.allNonSolid) &&\n\t\t\t\t\t room.isCollidingWithTile(position, adjustBounds[3], CollisionType.allSolid)) {\n\t\t\t\t// Adjust right\n\t\t\t\tnewVelocity.x = 1;\n\t\t\t}\n\t\t}\n\t\t// Adjust to the side of the right tile\n\t\tif (colliding[0]) {\n\t\t\tRectangle[] adjustBounds = new Rectangle[4];\n\t\t\tadjustBounds[0] = new Rectangle(bounds.point.plus(bounds.size.x, 2), new Vector(1, 1));\n\t\t\tadjustBounds[1] = new Rectangle(bounds.point.plus(bounds.size.x, bounds.size.y - 1), new Vector(1, 1));\n\t\t\tadjustBounds[2] = new Rectangle(bounds.point.plus(bounds.size.x, bounds.size.y - 2), new Vector(1, 1));\n\t\t\tadjustBounds[3] = new Rectangle(bounds.point.plus(bounds.size.x, 0), new Vector(1, 1));\n\t\t\tif (room.isCollidingWithTile(position, adjustBounds[0], CollisionType.allNonSolid) &&\n\t\t\t\troom.isCollidingWithTile(position, adjustBounds[1], CollisionType.allSolid)) {\n\t\t\t\t// Adjust up\n\t\t\t\tnewVelocity.y = -1;\n\t\t\t}\n\t\t\telse if (room.isCollidingWithTile(position, adjustBounds[2], CollisionType.allNonSolid) &&\n\t\t\t\t\t room.isCollidingWithTile(position, adjustBounds[3], CollisionType.allSolid)) {\n\t\t\t\t// Adjust down\n\t\t\t\tnewVelocity.y = 1;\n\t\t\t}\n\t\t}\n\t\t// Adjust to the side of the bottom tile\n\t\tif (colliding[1]) {\n\t\t\tRectangle[] adjustBounds = new Rectangle[4];\n\t\t\tadjustBounds[0] = new Rectangle(bounds.point.plus(1, bounds.size.y), new Vector(1, 1));\n\t\t\tadjustBounds[1] = new Rectangle(bounds.point.plus(bounds.size.x - 1, bounds.size.y), new Vector(1, 1));\n\t\t\tadjustBounds[2] = new Rectangle(bounds.point.plus(bounds.size.x - 2, bounds.size.y), new Vector(1, 1));\n\t\t\tadjustBounds[3] = new Rectangle(bounds.point.plus(0, bounds.size.y), new Vector(1, 1));\n\t\t\tif (room.isCollidingWithTile(position, adjustBounds[0], CollisionType.allNonSolid) &&\n\t\t\t\troom.isCollidingWithTile(position, adjustBounds[1], CollisionType.allSolid)) {\n\t\t\t\t// Adjust left\n\t\t\t\tnewVelocity.x = -1;\n\t\t\t}\n\t\t\telse if (room.isCollidingWithTile(position, adjustBounds[2], CollisionType.allNonSolid) &&\n\t\t\t\t\t room.isCollidingWithTile(position, adjustBounds[3], CollisionType.allSolid)) {\n\t\t\t\t// Adjust right\n\t\t\t\tnewVelocity.x = 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\tvelocity = newVelocity;\n\t}", "title": "" }, { "docid": "3b58cfe2d2f18ba9e70b69af4678cc3d", "score": "0.6063227", "text": "public void moveRight() {\n double epsilon = 0.02;\n if (this.paddle.getUpperLeft().getX() + this.paddle.getWidth() + this.paddleMoveOfDt > this.toX - epsilon) {\n this.paddle = new Rectangle(new Point(this.toX - this.paddle.getWidth() - epsilon,\n this.paddle.getUpperLeft().getY()),\n (int) this.paddle.getWidth(), (int) this.paddle.getHeight());\n } else {\n this.paddle = new Rectangle(new Point(this.paddle.getUpperLeft().getX() + this.paddleMoveOfDt,\n this.paddle.getUpperLeft().getY()),\n (int) this.paddle.getWidth(), (int) this.paddle.getHeight());\n }\n }", "title": "" }, { "docid": "9d5c24facb5183eeb47bae7a58b7b10c", "score": "0.6059226", "text": "public void move()\n {\n ///Daca nu exista coliziune la coordonata la care urmeaza sa se miste creatura pe axa x, apelam moveX()\n if(!checkEntityCollisions(xMove, 0f))\n {\n moveX();\n }\n ///Daca nu exista coliziune la coordonata la care urmeaza sa se miste creatura pe axa y, apelam moveY()\n if(!checkEntityCollisions(0f, yMove))\n {\n moveY();\n }\n }", "title": "" }, { "docid": "4baef2123a56e0251d3f5051652f012e", "score": "0.6050957", "text": "private boolean atWorldEdge()\n {\n if(getX() < 10 || getX() > getWorld().getWidth() - 10)\n return true;\n if(getY() < 10 || getY() > getWorld().getHeight() - 10)\n return true;\n else\n return false;\n }", "title": "" }, { "docid": "c2db56b39da35a6354d53dbc3bf43f2d", "score": "0.60457474", "text": "@Override\n public void update(){\n //stop player from leaving the screen\n if(x <= 0) {\n x=0;\n }\n\n if(x >= (Data.SCREEN_WIDTH- player.getWidth())) {\n x = Data.SCREEN_WIDTH- player.getWidth();\n\n\n\n } x = x - (mSensorX);\n\n //fill infos in collision Rect\n collision.left = (int)x + (player.getWidth()/4);;\n collision.top = (int)y+ (player.getHeight()/4);\n collision.right = (int)x + (player.getWidth()/4*3);\n collision.bottom = (int)y + (player.getHeight()/4*3);\n\n }", "title": "" }, { "docid": "52bafcedf50c94615add39902562f52c", "score": "0.60398996", "text": "public void moveX() {\r\n\t\t//Moving right\r\n\t\tif(xMove > 0) {\r\n\t\t\t\r\n\t\t\t//identifies that the player is facing right\r\n\t\t\tright = true;\r\n\t\t\t\r\n\t\t\t/*Temp objects to hold what tile position would be if moved.. x, y upper, and y lower\r\n\t\t\t * For example, starts as x coordinate then divide by tile width to determine Tile number/coordinate\r\n\t\t\t * of tile we're trying to move in to\r\n\t\t\t */\r\n\t\t\t\r\n\t\t\t/*X coordinate of creature, + where you want to move to, + x bound offset, \r\n\t\t\t * + bounds width since moving right and checking right side\r\n\t\t\t */\r\n\r\n\t\t\tint tx = (int) (x + xMove + bounds.x + bounds.width) / Tile.TILEWIDTH;\r\n\t\t\t\r\n\t\t\t//Y coordinate of creature, + y bound offset, and that's it since checking upper bound \r\n\t\t\tint tyu = (int) (y + bounds.y)/ Tile.TILEHEIGHT;\r\n\t\t\t\r\n\t\t\t//same as above but now add half height to check middle bound \r\n\t\t\tint tym = (int) (y + bounds.y + bounds.height/2)/ Tile.TILEHEIGHT;\r\n\t\t\t\r\n\t\t\t//Same as above but now add bound height to check lower bound\r\n\t\t\tint tyl = (int) (y + bounds.y + bounds.height)/ Tile.TILEHEIGHT;\r\n\t\t\t\r\n\t\t\t/*Check the tile upper right is moving in to, and lower right is moving in to\r\n\t\t\t * If both tiles are NOT solid (thus ! in front of collision method), then go ahead and move!\r\n\t\t\t */\r\n\t\t\tif(!collisionWithTile(tx, tyu) && !collisionWithTile(tx, tym) && !collisionWithTile(tx, tyl) ) {\r\n\t\t\t\tx += xMove;\r\n\t\t\t} else {\r\n\t\t\t\t//move player as close to the tile as possible without being inside of it\r\n\t\t\t\t//Note: We add a 1-pixel gap which allows the player to \"slide\" and not get stuck along the boundaries\r\n\t\t\t\tx = tx * Tile.TILEWIDTH - bounds.x - bounds.width - 1;\r\n\t\t\t\tcollisionRight = true;\r\n\t\t\t}\r\n\t\t//Moving left\r\n\t\t}else if(xMove < 0) {\r\n\r\n\t\t\t//identifies that the player is facing right\r\n\t\t\tright = false;\r\n\t\t\t\r\n\t\t\t//Same as above, except moving left, so don't need to add bounds width\r\n\t\t\tint tx = (int) (x + xMove + bounds.x) / Tile.TILEWIDTH;\r\n\t\t\t\r\n\t\t\t//Same y upper/middle/lower bounds\r\n\t\t\tint tyu = (int) (y + bounds.y)/ Tile.TILEHEIGHT;\r\n\t\t\tint tym = (int) (y + bounds.y + bounds.height/2)/ Tile.TILEHEIGHT;\r\n\t\t\tint tyl = (int) (y + bounds.y + bounds.height)/ Tile.TILEHEIGHT;\r\n\t\t\t\r\n\t\t\t//Same check\r\n\t\t\tif(!collisionWithTile(tx, tyu) && !collisionWithTile(tx, tym) && !collisionWithTile(tx, tyl) ) {\r\n\t\t\t\tx += xMove;\r\n\t\t\t} else {\r\n\t\t\t\t//move player as close to the tile as possible without being inside of it\r\n\t\t\t\t//Note: We weirdly don't have to add a 1-pixel gap for \"sliding\" to not get stuck along the boundaries. Don't ask me why...\r\n\t\t\t\tx = tx * Tile.TILEWIDTH + Tile.TILEWIDTH - bounds.x;\r\n\t\t\t\tcollisionLeft = true;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5a1bf5738a29a3adb0151be99b411b18", "score": "0.60144806", "text": "public void checkWalls()\n {\n if (getX() == 0 || getX() == getWorld().getWidth()-1) {\n deltaX = -deltaX;\n }\n if (getY() == 0) {\n deltaY = -deltaY;\n }\n }", "title": "" }, { "docid": "c1ca8977eb1a5440410ddc225f78283e", "score": "0.60086197", "text": "@Override\n public void handle(long now) { //\n boolean collidingwithPlatform = false;\n Collidable.typeOfCollision x;\n // we need to make sure that we don't leave the area that we can see\n if (moving) {\n if (myPlayerView.getPlayer().getVelocity().getX() > 0) { //here we check if our Camera doesn't go too far\n if (myPlayerView.getPlayer().getX() <= 300.0 || cameraView.getMinX() >= 1229) {\n myPlayerView.setVelocityView(new Point2D(1, myPlayerView.getVelocityView().getY())); //ustawiamy ruch w lewo\n cameraViewVelocity = new Point2D(0.0, cameraViewVelocity.getY());\n } else {\n myPlayerView.setVelocityView(new Point2D(0, myPlayerView.getVelocityView().getY()));\n cameraViewVelocity = new Point2D(1.0, cameraViewVelocity.getY());\n }\n if(myPlayerView.getPlayer().getX()+myPlayerView.getPlayer().getWidth()>=1844){ // we have to check that we don't go too far\n myPlayerView.getPlayer().setVelocity(0,myPlayerView.getPlayer().getVelocity().getY());\n myPlayerView.setVelocityView(new Point2D(0, myPlayerView.getVelocityView().getY())); //ustawiamy ruch w lewo\n cameraViewVelocity = new Point2D(0.0, cameraViewVelocity.getY());\n }\n }\n else if(myPlayerView.getPlayer().getVelocity().getX()<0){\n if (myPlayerView.getPlayer().getX() >= 1529.0 || cameraView.getMinX()+cameraViewSize.getX() <= 615) {\n myPlayerView.setVelocityView(new Point2D(-1, myPlayerView.getVelocityView().getY())); //ustawiamy ruch w lewo\n cameraViewVelocity = new Point2D(0.0, cameraViewVelocity.getY());\n } else {\n myPlayerView.setVelocityView(new Point2D(0, myPlayerView.getVelocityView().getY()));\n cameraViewVelocity = new Point2D(-1.0, cameraViewVelocity.getY());\n }\n if(myPlayerView.getPlayer().getX()<=0){ // we have to check that we don't go too far\n myPlayerView.getPlayer().setVelocity(0,myPlayerView.getPlayer().getVelocity().getY());\n myPlayerView.setVelocityView(new Point2D(0, myPlayerView.getVelocityView().getY())); //ustawiamy ruch w lewo\n cameraViewVelocity = new Point2D(0.0, cameraViewVelocity.getY());\n }\n }\n }\n for (PlatformView platform : platformViews) { //if he didnt just start jumping check if he is colliding with platform\n platform.update(cameraViewVelocity.getX());\n if (myPlayerView.getPlayer().getJumpingFrameIndex() != 1 && myPlayerView.getPlayer().getJumpingFrameIndex() != 2) {//we do this avoid colliding with your own platform\n if (!collidingwithPlatform && (x = myPlayerView.getPlayer().isColliding(platform.getPlatform())) == UP) {\n if (myPlayerView.getPlayer().isInAir()) {\n myPlayerView.getPlayer().setVelocity(myPlayerView.getPlayer().getVelocity().getX(), 0); //jezeli spada na platforme to\n myPlayerView.setVelocityView(new Point2D(myPlayerView.getVelocityView().getX(), 0));\n }\n // }\n myPlayerView.getPlayer().setJumping(false);\n myPlayerView.getPlayer().setInAir(false);\n myPlayerView.getPlayer().setJumpingFrameIndex(0); //he ain't jumping anymore\n collidingwithPlatform = true;\n }\n }\n }\n for (int i = 0; i < enemies.size(); ++i) {\n enemies.get(i).update(cameraViewVelocity.getX(),myPlayerView.getPlayer()); //we're updating their position on our view\n if ((x = myPlayerView.getPlayer().isColliding(enemies.get(i).getEnemy())) == UP) {\n myPane.getChildren().remove(enemies.get(i).getViewOfMyEnemy());\n enemies.remove(i);\n } else if (x == SIDE) {\n SceneManager.getInstance().changeScene(SceneManager.currScene.Lose);\n }\n }\n if((myPlayerView.getyView()+myPlayerView.getPlayer().getHeight())>=600) SceneManager.getInstance().changeScene(SceneManager.currScene.Lose); //if we fall under our map we lose\n flagView.update(cameraViewVelocity.getX()); //we update our flag\n if (((x = myPlayerView.getPlayer().isColliding(flagView.getFlag())) != NO) && enemies.isEmpty()) {\n //we check whether we passed the last available number or not\n int newNumberOfAvaialableLevels = whichLevel == SaveManager.getInstance().getSave(whichSave).getHowManyLevelsAvailable() ? whichLevel + 1 : SaveManager.getInstance().getSave(whichSave).getHowManyLevelsAvailable();\n SaveManager.getInstance().getSave(whichSave).saveData(SaveManager.getInstance().getSave(whichSave).getNameOfOurUser(), newNumberOfAvaialableLevels); //here we save that we passed this level\n SceneManager.getInstance().changeScene(SceneManager.currScene.Win);\n\n }\n //\n if (!collidingwithPlatform) {\n myPlayerView.getPlayer().setVelocity(myPlayerView.getPlayer().getVelocity().getX(), myPlayerView.getPlayer().getVelocity().getY() + 0.2); //pseudograwitacja\n myPlayerView.setVelocityView(new Point2D(myPlayerView.getVelocityView().getX(), myPlayerView.getVelocityView().getY() + 0.2));\n myPlayerView.getPlayer().setInAir(true);\n }\n myPlayerView.update(collidingwithPlatform, moving);\n cameraView = new Rectangle2D(cameraView.getMinX() + cameraViewVelocity.getX(), cameraView.getMinY(), cameraView.getWidth(), cameraView.getHeight());\n background.setViewport(cameraView);\n if((myPlayerView.getyView()+myPlayerView.getPlayer().getHeight())>=600) SceneManager.getInstance().changeScene(SceneManager.currScene.Lose); //if we fall under our map we lose\n if (SceneManager.getInstance().getStage().getScene().getClass() != GameScene.class) collisionTimer.stop(); //we need to turn off our scene if we're doing something else\n //we don't want to have 100 scenes opened at the same time\n\n }", "title": "" }, { "docid": "8b9f02128c0753647319d8a4eb7571e2", "score": "0.60020494", "text": "public void move() {\n if (goingRight) {\n if (col < FishTank.maxCol) {\n col = col + 1;\n } else {\n turnAround();\n }\n } else {\n if (col > FishTank.charWidth) {\n col -= 1;\n } else {\n turnAround();\n }\n }\n\n // Figure out whether I blow a bubble.\n doub = Math.random();\n if (doub < 0.1) {\n blowBubble();\n }\n\n // Figure out whether I turn around.\n doub = Math.random();\n if (doub < 0.1) {\n turnAround();\n } \n }", "title": "" }, { "docid": "eb9727e9ac07b6a54833d2e197020461", "score": "0.59902626", "text": "public void moveRight() {\n rectangle.setUpperLeft(new Point(rectangle.getUpperLeft().getX() + paddleSpeed\n , rectangle.getUpperLeft().getY()));\n // case when the paddle reach the boarder\n if (rectangle.getUpperRight().getX() >= boarderRight) {\n double distance = rectangle.getUpperRight().getX() - rectangle.getUpperLeft().getX();\n rectangle.setUpperLeft(new Point(boarderRight - distance , rectangle.getUpperLeft().getY()));\n }\n }", "title": "" }, { "docid": "ae4448860c84bd3cf2cc18b53c94b449", "score": "0.5986236", "text": "private boolean manageCollisionWithGamePanelSides()\n {\n boolean thereIsCollision = false;\n if (!Tools.isFloatBetween((float)this.theBall.getBallBox().getBox().getX(), 0, Game.DEFAULT_MAP_WIDTH)\n || !Tools.isFloatBetween((float)this.theBall.getBallBox().getBox().getX() + Ball.DEFAULT_SIZE, 0,\n Game.DEFAULT_MAP_WIDTH))\n {\n this.theBall.getTrajectory().reverseBCoefficient();\n thereIsCollision = true;\n }\n else if (this.theBall.getBallBox().getBox().getY() <= 0)\n {\n this.theBall.getTrajectory().reverseACoefficient();\n thereIsCollision = true;\n }\n return thereIsCollision;\n }", "title": "" }, { "docid": "17686daa23702cface011c2e16fdbbf2", "score": "0.5975777", "text": "public void Movement() {\n if (mode == 1) {\n for (int i = 0; i<Players.size (); i++) {\n boolean flag = inRange(x, y, Players.get(i).x, Players.get(i).y, 200, 200); \n if (flag) {\n float distance = sqrt(sq(Players.get(i).x - x) + sq(Players.get(i).y - y));\n x += (Player1.xvel * -1) + (Players.get(i).x - x)/(distance*speed);\n y += (Player1.yvel * -1) + (Players.get(i).y - y)/(distance*speed);\n } else {\n float distance = sqrt(sq(base.x - x) + sq(base.y - y));\n x += (Player1.xvel * -1) + (base.x - x)/(distance*speed);\n y += (Player1.yvel * -1) + (base.y - y)/(distance*speed);\n //(player2.xvel + player1.xvel) / 2\n }\n }\n }\n if (mode == 2) {\n x += (Player1.xvel * -1);\n y += (Player1.yvel * -1);\n }\n }", "title": "" }, { "docid": "00ec8463e93d0a892f29604ee096ee8d", "score": "0.59677774", "text": "public void left()\r\n {\r\n for ( int i = 0; i < grids; i++ )\r\n {\r\n border = 0;\r\n for ( int j = 0; j < grids; j++ )\r\n {\r\n if ( board[i][j].getValue() != 0 )\r\n {\r\n if ( border <= j )\r\n {\r\n horizontalMove( i, j, \"left\" );\r\n }\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "a348aa8be0600153c902ce4b1909607b", "score": "0.5966839", "text": "public void moveLeft() {\n\t\n\tif(this.getXpos() > 20)\n\t\n\tthis.setXpos(this.getXpos() - 20);\n\t\n}", "title": "" }, { "docid": "b3df3e7fe6c90829b6fe29ee8e080106", "score": "0.5961376", "text": "public void movePlayer(int x, int y){\n\n int pX = player.getPosition().getX();\n int pY = player.getPosition().getY();\n\n // move to position is empty (Space.class)\n if(levelObjects[pY+y][pX+x].getClass().equals(Space.class)){\n switchObjects(pX,pY, pX+x,pY+y);\n player.setPosition(new Vector(pX+x,pY+y));\n }else if(levelObjects[pY+y][pX+x].getClass().equals(Box.class)){\n if(levelObjects[pY+y*2][pX+x*2].getClass().equals(Space.class)){\n // box can be moved\n // save last position for undo\n moves.add(new State(cloneLevel()));\n switchObjects(pX+x,pY+y,pX+2*x, pY+2*y); // move box\n switchObjects(pX,pY, pX+x,pY+y); // move player\n player.setPosition(new Vector(pX+x,pY+y));\n if(levelDone()){\n parent.render();\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Level erfolgreich!\");\n alert.setHeaderText(null);\n alert.setContentText(\"Sie haben das Level Erfolgreich abgeschlossen!\");\n alert.showAndWait();\n // start next Level if possible\n parent.startNextLevel();\n }\n }\n }\n\n }", "title": "" }, { "docid": "5fb6f916f0b4a5c01e2447c13f19385c", "score": "0.5952913", "text": "public void right()\r\n {\r\n for ( int i = 0; i < grids; i++ )\r\n {\r\n border = ( grids - 1 );\r\n for ( int j = ( grids - 1 ); j >= 0; j-- )\r\n {\r\n if ( board[i][j].getValue() != 0 )\r\n {\r\n if ( border >= j )\r\n {\r\n horizontalMove( i, j, \"right\" );\r\n }\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "6a6957d2774d25e78bfa64865cb36726", "score": "0.594813", "text": "protected void moveToCollideWithEntities() {\n\t\tRectangle[] sideBounds = new Rectangle[4];\n\t\tsideBounds[0] = new Rectangle(bounds.point.plus(bounds.size.x - 1, 0), new Vector(1, bounds.size.y));\n\t\tsideBounds[1] = new Rectangle(bounds.point.plus(0, bounds.size.y - 1), new Vector(bounds.size.x, 1));\n\t\tsideBounds[2] = new Rectangle(bounds.point, new Vector(1, bounds.size.y));\n\t\tsideBounds[3] = new Rectangle(bounds.point, new Vector(bounds.size.x, 1));\n\t\t\n\t\tVector newVelocity = new Vector(velocity);\n\t\t\n\t\tEntity[] entityList = room.getEntityCollisions(position.plus(velocity), bounds, CollisionType.allSolid);\n\t\t\n\t\t// Respond to all currently colliding entities\n\t\tfor (Entity entity : entityList) {\n\t\t\t// Check collisions to the left\n\t\t\tif (room.isCollidingWithEntity(position.plus(velocity.x, 0), sideBounds[2], entity) &&\n\t\t\t\tvelocity.x - entity.velocity.x < 0) {\n\t\t\t\t// Reduce velocity to prevent collision\n\t\t\t\tfor (int i = 0; i >= (int)(velocity.x - entity.velocity.x); i--) {\n\t\t\t\t\tif (!room.isCollidingWithEntity(position.plus(velocity.x - i, 0), sideBounds[2], entity)) {\n\t\t\t\t\t\tnewVelocity.x = velocity.x - i;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse if (i == (int)(velocity.x - entity.velocity.x)) {\n\t\t\t\t\t\tnewVelocity.x = entity.velocity.x;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Check collisions to the top\n\t\t\tif (room.isCollidingWithEntity(position.plus(0, velocity.y), sideBounds[3], entity) &&\n\t\t\t\tvelocity.y - entity.velocity.y < 0) {\n\t\t\t\t// Reduce velocity to prevent collision\n\t\t\t\tfor (int i = 0; i >= (int)(velocity.y - entity.velocity.y); i--) {\n\t\t\t\t\tif (!room.isCollidingWithEntity(position.plus(0, velocity.y - i), sideBounds[3], entity)) {\n\t\t\t\t\t\tnewVelocity.y = velocity.y - i;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse if (i == (int)(velocity.y - entity.velocity.y)) {\n\t\t\t\t\t\tnewVelocity.y = entity.velocity.y;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Check collisions to the right\n\t\t\tif (room.isCollidingWithEntity(position.plus(velocity.x, 0), sideBounds[0], entity) &&\n\t\t\t\tvelocity.x - entity.velocity.x > 0) {\n\t\t\t\t// Reduce velocity to prevent collision\n\t\t\t\tfor (int i = 0; i <= (int)(velocity.x - entity.velocity.x); i++) {\n\t\t\t\t\tif (!room.isCollidingWithEntity(position.plus(velocity.x - i, 0), sideBounds[0], entity)) {\n\t\t\t\t\t\tnewVelocity.x = velocity.x - i;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse if (i == (int)(velocity.x - entity.velocity.x)) {\n\t\t\t\t\t\tnewVelocity.x = entity.velocity.x;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Check collisions to the bottom\n\t\t\tif (room.isCollidingWithEntity(position.plus(0, velocity.y), sideBounds[1], entity) &&\n\t\t\t\tvelocity.y - entity.velocity.y > 0) {\n\t\t\t\t// Reduce velocity to prevent collision\n\t\t\t\tfor (int i = 0; i <= (int)(velocity.y - entity.velocity.y); i++) {\n\t\t\t\t\tif (!room.isCollidingWithEntity(position.plus(0, velocity.y - i), sideBounds[1], entity)) {\n\t\t\t\t\t\tnewVelocity.y = velocity.y - i;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse if (i == (int)(velocity.y - entity.velocity.y)) {\n\t\t\t\t\t\tnewVelocity.y = entity.velocity.y;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tvelocity = newVelocity;\n\t}", "title": "" }, { "docid": "1c6d3823e72dce2b9c489a507b286210", "score": "0.594631", "text": "public void mover(){\n \n if (x >= 460 && Juego.derecha){ //validacion para que llegue al limite de la pantalla derecho\n Juego.derecha = false;\n } \n if(x <= 0 && Juego.izquierda){ //validacion para que llegue al limite de la pantalla izquierdo\n Juego.izquierda = false;\n }\n if (y >= 410 && Juego.abajo){ //validacion para que llegue al limite de la pantalla abajo\n Juego.abajo = false;\n }\n \n if (y <= 200 && Juego.arriba){ //validacion para que llegue al limite de la pantalla arriba\n Juego.arriba = false;\n }\n \n if (Juego.derecha){ \n x+=velocidad; //validacion para que mueva hacia la derecha\n }\n \n if (Juego.izquierda){\n x-=velocidad; //validacion para que mueva hacia la izquierda\n }\n \n if (Juego.arriba) {\n y-=velocidad; //validacion para que mueva hacia arriba\n }\n \n if (Juego.abajo) {\n y+=velocidad; //validacion para que mueva hacia abajo\n }\n \n }", "title": "" }, { "docid": "28ee2c6532ae0ea039d421a619ead4fe", "score": "0.5926085", "text": "public void SteerRight() {\n if (this.xPosition + this.width < Gdx.graphics.getWidth() - bankWidth) {\n this.xPosition = Math.min(this.xPosition + this.MANEUVERABILITY * this.currentSpeed, Gdx.graphics.getWidth() - bankWidth - this.width);\n this.currentSpeed *= 0.985f;\n } else {\n this.xPosition = Gdx.graphics.getWidth() - bankWidth - this.width;\n }\n }", "title": "" }, { "docid": "de3cae0b25ebd8b58365fd91ff9756a4", "score": "0.59114885", "text": "public void checkLooking(){\n\t\tif(mx>0) Left=false;\n\t\telse if(mx<0) Left=true;\n\t\telse{\n\t\t\tif(block!=null){\n\t\t\t\tif(x+width/2<block.getX()+block.getX()+width/2) Left=false;\n\t\t\t\telse{\n\t\t\t\t\tLeft = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "da320f821645de5c65383b391f63dd85", "score": "0.5907552", "text": "@FXML\r\n void clickOnRectangle(MouseEvent event) {\r\n x = ((int) event.getSceneX() - 54) / 100;\r\n y = ((int) event.getSceneY() - 58) / 100;\r\n\r\n if (x == 3)\r\n x--;\r\n if (y == 3)\r\n y--;\r\n\r\n if (field[x][y].getText().equals(\"\") && block(player) == false && block(opponent) == false) {\r\n field[x][y].setText(player);\r\n winTheGame();\r\n System.out.println(lookForAWinner(field));\r\n }\r\n\r\n\r\n }", "title": "" }, { "docid": "6390054e6babd3023d86acfe43c832a6", "score": "0.5904013", "text": "public void moveRight(){\n if (Greenfoot.isKeyDown(\"right\")){\n move(5);\n }\n }", "title": "" }, { "docid": "71f059a51924dd32010bcbf138f4d570", "score": "0.58873105", "text": "public void act() \r\n {\r\n int y = getY();\r\n int x = getX();\r\n\r\n if (Frog.score == 4){\r\n \r\n //MOVEMENT\r\n //up arrow moves frog up\r\n if(Greenfoot.isKeyDown(\"UP\"))y-=2;\r\n \r\n //down arrow moves frog down\r\n if(Greenfoot.isKeyDown(\"DOWN\"))y+=2;\r\n \r\n //left arrow moves frog left\r\n if(Greenfoot.isKeyDown(\"LEFT\"))x-=2;\r\n \r\n //right arrow moves frog right\r\n if(Greenfoot.isKeyDown(\"RIGHT\"))x+=2;\r\n \r\n \r\n setLocation(x, y);\r\n\r\n \r\n //if frog is touching the log it will move the frog to the middle and match the speed so the player doesnt have to hold the left or right keys to stay on the log\r\n Actor Log = getOneIntersectingObject(Log.class);\r\n if (getOneObjectAtOffset(0,0, Log.class) instanceof Log && (!Greenfoot.isKeyDown(\"UP\") && !Greenfoot.isKeyDown(\"DOWN\") && !Greenfoot.isKeyDown(\"LEFT\") && !Greenfoot.isKeyDown(\"RIGHT\")) ){\r\n setLocation(Log.getX(), Log.getY());\r\n }\r\n \r\n //if frog is touching the log it will move the frog to the middle and match the speed so the player doesnt have to hold the left or right keys to stay on the log\r\n Actor Log2 = getOneIntersectingObject(Log2.class);\r\n if (getOneObjectAtOffset(0,0, Log2.class) instanceof Log2 && (!Greenfoot.isKeyDown(\"UP\") && !Greenfoot.isKeyDown(\"DOWN\") && !Greenfoot.isKeyDown(\"LEFT\") && !Greenfoot.isKeyDown(\"RIGHT\")) ){\r\n setLocation(Log2.getX(), Log2.getY());\r\n }\r\n \r\n //if frog is touching the fish it will move the frog to the middle and match the speed so the player doesnt have to hold the left or right keys to stay on the fish\r\n Actor Fish = getOneIntersectingObject(Fish.class);\r\n if (getOneObjectAtOffset(0,0, Fish.class) instanceof Fish && (!Greenfoot.isKeyDown(\"UP\") && !Greenfoot.isKeyDown(\"DOWN\") && !Greenfoot.isKeyDown(\"LEFT\") && !Greenfoot.isKeyDown(\"RIGHT\")) ){\r\n setLocation(Fish.getX(), Fish.getY());\r\n } \r\n\r\n \r\n //LOGS FISH AND CARS\r\n //if the frog hits a car then it loses a life and starts from beginning again\r\n if (isTouching(Vehicles.class)){\r\n Frog.lives = Frog.lives -1;\r\n Greenfoot.playSound(\"Lost.wav\");\r\n Greenfoot.delay(30);\r\n setLocation(260, 485);\r\n }\r\n \r\n //if the frog is in the water and not touching the logs and not touching fish, they lose a life and have to start from begining again\r\n if ((y < 240 && y > 55) && (!isTouching(Logs.class))){\r\n Frog.lives = Frog.lives -1;\r\n Greenfoot.playSound(\"Lost.wav\");\r\n Greenfoot.delay(30);\r\n setLocation(260, 485);\r\n }\r\n\r\n \r\n \r\n //GAME OVER\r\n //When player runs out of lives game over screen will be displayed\r\n if (Frog.lives == 0){\r\n Greenfoot.playSound(\"GG.wav\");\r\n Greenfoot.setWorld(new GameOver());\r\n }\r\n\r\n \r\n //LILYPADS AND LAND, coordinates are all connected therefore all land is safe \r\n //left lilypad\r\n //make it here and you save the frog\r\n if ((y < 50 && y >= 0) && (x < 100 && x > 0)){\r\n Frog.score = Frog.score + 1;\r\n Greenfoot.playSound(\"Nice.wav\");\r\n setLocation(260, 485);\r\n Greenfoot.delay(50);//pause helps user to realize they have saved the frog and get ready for new frog at bottom of screen\r\n }\r\n \r\n //second from left lilypad\r\n //make it here and you save the frog\r\n if ((y < 50 && y > 0) && (x < 200 && x > 100)){\r\n //addObject(frog,260,485);\r\n Frog.score = Frog.score + 1;\r\n Greenfoot.playSound(\"Nice.wav\");\r\n setLocation(260, 485);\r\n Greenfoot.delay(50);//pause helps user to realize they have saved the frog and get ready for new frog at bottom of screen\r\n }\r\n \r\n //middle lilypad\r\n //make it here and you save the frog\r\n if ((y < 50 && y > 0) && (x < 300 && x > 200)){\r\n //addObject(frog,260,485);\r\n Frog.score = Frog.score + 1;\r\n Greenfoot.playSound(\"Nice.wav\");\r\n setLocation(260, 485);\r\n Greenfoot.delay(50);//pause helps user to realize they have saved the frog and get ready for new frog at bottom of screen\r\n }\r\n \r\n //second to the right lilypad\r\n //make it here and you save the frog\r\n if ((y < 50 && y > 0) && (x < 400 && x > 300)){\r\n //addObject(frog,260,485);\r\n Frog.score = Frog.score + 1;\r\n Greenfoot.playSound(\"Nice.wav\");\r\n setLocation(260, 485);\r\n Greenfoot.delay(50);//pause helps user to realize they have saved the frog and get ready for new frog at bottom of screen\r\n }\r\n \r\n //far right lilypad section\r\n //make it here and you save the frog\r\n if ((y < 50 && y > 0) && (x < 500 && x > 400)){\r\n //addObject(frog,260,485);\r\n Frog.score = Frog.score + 1;\r\n Greenfoot.playSound(\"Nice.wav\");\r\n setLocation(260, 485);\r\n Greenfoot.delay(50);//pause helps user to realize they have saved the frog and get ready for new frog at bottom of screen\r\n }\r\n \r\n \r\n // BEAT GAME\r\n //if players score is 5 rhey win the game, display the congrats screen\r\n if (Frog.score == 5){\r\n Greenfoot.setWorld(new BeatGame());\r\n }\r\n }\r\n }", "title": "" }, { "docid": "dbcd9c21ca2f9a536f71f17f20853882", "score": "0.5887123", "text": "private void left()\n {\n for(int x=this.currentEnemiesLine; x<this.nextLineAfterEnemies; x++)\n {\n for(int y = 0; y<13; y++)\n {\n this.grid[x][y]=this.grid[x][y+1];\n }\n this.grid[x][13]=CONSTANT_EMPTY;\n }\n }", "title": "" }, { "docid": "adb6fc2bb3e97a0433e54e671fa50956", "score": "0.5883033", "text": "public void move() {\n y+=yvel;\n xfirstback-=xvel;\n xsecondback-=xvel;\n }", "title": "" }, { "docid": "89c6f30f06ce744be32764beca15cc3c", "score": "0.58788306", "text": "public boolean clickedOn(int x, int y) {\n stageReference.toBack(); // move the minimap to the back, so that the eneties on the minimap can be seen\n if (x < width && y > Gdx.graphics.getHeight() - height) {\n moveMap(x, Gdx.graphics.getHeight() - y);\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "dc239d289d12e0ed74b9c6a405cd1190", "score": "0.58474314", "text": "@Test\n public void winGameHorizontal() {\n // O _ _\n ttt.place(0, 0);\n ttt.place(1, 0);\n ttt.place(0, 1);\n ttt.place(2, 0);\n ttt.place(0, 2);\n\n assertNotEquals(ttt.getWinner(), State.BLANK);\n }", "title": "" }, { "docid": "54f486a88d6904d7e5be6d3aaa9286f9", "score": "0.58427155", "text": "public void moveLeft() {\n double epsilon = 0.02;\n if (this.paddle.getUpperLeft().getX() - this.paddleMoveOfDt < this.fromX + epsilon) {\n this.paddle = new Rectangle(new Point(this.fromX + epsilon, this.paddle.getUpperLeft().getY()),\n (int) this.paddle.getWidth(), (int) this.paddle.getHeight());\n } else {\n this.paddle = new Rectangle(new Point(this.paddle.getUpperLeft().getX() - this.paddleMoveOfDt,\n this.paddle.getUpperLeft().getY()),\n (int) this.paddle.getWidth(), (int) this.paddle.getHeight());\n }\n }", "title": "" }, { "docid": "bbc95898b4bd31f919c18afba0f0c06b", "score": "0.5838949", "text": "private void ensureMoving() {\n\t\tif (left) {\n\t\t\tmoveLeft();\n\t\t} else if (right) {\n\t\t\tmoveRight();\n\t\t}\n\n\t\t// Go from attack animation to jumping\n\t\tif (state == STATE.JUMPING) {\n\t\t\tsetAnimation(aniJumping);\n\t\t}\n\t}", "title": "" }, { "docid": "12924fef168ad8a15f472dd79410781f", "score": "0.5824004", "text": "public void act() \n {\n move(4);\n if(Greenfoot.isKeyDown(\"left\")){\n turn(-5);\n }\n \n if(Greenfoot.isKeyDown(\"right\")){\n turn(5);\n }\n \n eatCherry();\n}", "title": "" }, { "docid": "54df0f5c0e4a86d4a25c4fc1a8216727", "score": "0.5819074", "text": "@Override\n public boolean fling(float velocityX, float velocityY, int button) {\n if (!gameOverOverlay.isVisible()) {\n if (Math.abs(velocityX) > Math.abs(velocityY)) {\n if (velocityX > 10.0f) {\n playersSnake.setDirection(SnakeDirection.RH);\n } else if (velocityX < -10.0f) {\n playersSnake.setDirection(SnakeDirection.LH);\n }\n } else {\n if (velocityY > 10.0f) {\n playersSnake.setDirection(SnakeDirection.DN);\n } else if (velocityY < -10.0f) {\n playersSnake.setDirection(SnakeDirection.UP);\n }\n }\n } else {\n\n }\n return false;\n }", "title": "" }, { "docid": "811fcc0a64799229db8e988a71374c37", "score": "0.58104336", "text": "private void centerFromRight()\n {\n for(int x=this.currentEnemiesLine; x<this.nextLineAfterEnemies; x++)\n {\n for(int y = 1; y<14; y++)\n {\n this.grid[x][y]=this.grid[x][y+1];\n }\n this.grid[x][14]=CONSTANT_EMPTY;\n }\n }", "title": "" }, { "docid": "ddbb26d769f351fc8e122e99a5df3ee8", "score": "0.58091736", "text": "public void moveLeft(){\n pos.x -= vel.x;\n }", "title": "" }, { "docid": "1aacac3062b2f1e9b127920505324dae", "score": "0.57988924", "text": "private void moveToMidpoint() \n\t{\n\t\tturnAround();\n\t\tmove();\n\t}", "title": "" }, { "docid": "64c91b2038513b413beab1dad093433f", "score": "0.5798684", "text": "public void checkSideCollision(Rect rleft, Rect rright,\n\t\t\tRect leftfoot, Rect rightfoot) {\n\t\tif (type != 5 && type != 2 && type != 0) {\n\t\t\tif (Rect.intersects(r, rleft)) {\n\t\t\t\tmaincharacter.setCenterX(tileX + 102);\n\n\t\t\t\tmaincharacter.setSpeedX(0);\n\n\t\t\t} else if (Rect.intersects(leftfoot, r)) {\n\t\t\t\tmaincharacter.setCenterX(tileX + 85);\n\t\t\t\tmaincharacter.setSpeedX(0);\n\t\t\t}\n\n\t\t\tif (Rect.intersects(rright, r)) {\n\t\t\t\tmaincharacter.setCenterX(tileX - 62);\n\n\t\t\t\tmaincharacter.setSpeedX(0);\n\t\t\t}\n\n\t\t\telse if (Rect.intersects(rightfoot, r)) {\n\t\t\t\tmaincharacter.setCenterX(tileX - 45);\n\t\t\t\tmaincharacter.setSpeedX(0);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ed06892bf68d91dda3a28f34dbfab447", "score": "0.57947016", "text": "@Test\n public void testBoundsMovementLeft() {\n Board board = getLevel0Board();\n mapBoardTiles = board.getTileArray();\n board.getChip().setCol(0);\n board.getChip().setRow(0);\n boolean isValid = context.executeMovements(board, board.getChip(), \"a\");\n assertFalse(isValid);\n\n }", "title": "" }, { "docid": "e3fb4eeb612307acd579c04eb494763b", "score": "0.5776134", "text": "public void moveServo(){\n if(objectFound) {\n Log.i(TAG, \"Object found true, moving right......\");\n valueMove = valueMoveRight;\n connect(address);\n }else{\n Log.i(TAG, \"Object found false, left\");\n valueMove = valueMoveLeft;\n connect(address);\n }\n }", "title": "" }, { "docid": "ab9c211d473efa64389dca842df68dcd", "score": "0.5770206", "text": "public void checkKeypress()\n {\n if (Greenfoot.isKeyDown(\"a\")) \n {\n if (facingScreenRight) {\n facingScreenRight = false;\n getImage().mirrorHorizontally();\n }\n move(-3);\n }\n if (Greenfoot.isKeyDown(\"d\")) \n {\n if (!facingScreenRight) {\n facingScreenRight = true;\n getImage().mirrorHorizontally();\n }\n move(3);\n }\n if (Greenfoot.isKeyDown(\"w\"))\n {\n setLocation(getX(), getY()-3);\n }\n if (Greenfoot.isKeyDown(\"s\"))\n {\n setLocation(getX(), getY()+3);\n } \n }", "title": "" }, { "docid": "5b351132c27a95ecaa9ee97cdf32aef1", "score": "0.5766745", "text": "private boolean moveAirplane(){\n\n\n //Delete the position in the screen _grid\n _grid[_aiplanePos[0]][_aiplanePos[1]] = ' ';\n _grid[_aiplanePos[0] - 1][_aiplanePos[1]] = ' ';\n _colorGrid[_aiplanePos[0]][_aiplanePos[1]] = \"00\";\n _colorGrid[_aiplanePos[0] - 1][_aiplanePos[1]] = \"00\";\n\n\n //Check collision\n if(_grid[_aiplanePos[0] + 1][_aiplanePos[1]] != ' '){\n //Call gameOver\n crash();\n return true;\n }\n else {\n /*Update the position of the airplane in the X and Y axis.\n Also check if the player has reach the landing area*/\n _aiplanePos[0] += 1;\n if (_aiplanePos[0] > RIGHT_LIMIT) {\n _aiplanePos[0] = LEFT_LIMIT;\n _aiplanePos[1] += 1;\n if (_aiplanePos[1] > BOTTOM_LIMIT) {\n _currentPlayState = PlaySubStates.LANDING;\n return true;\n }\n }\n\n //Move airplane in the _grid\n _grid[_aiplanePos[0]][_aiplanePos[1]] = FRONT_CHAR;\n _grid[_aiplanePos[0] - 1][_aiplanePos[1]] = BACK_CHAR;\n _colorGrid[_aiplanePos[0]][_aiplanePos[1]] = \"01\";\n _colorGrid[_aiplanePos[0] - 1][_aiplanePos[1]] = \"01\";\n\n }\n return false;\n }", "title": "" }, { "docid": "f14c8dea5ffbb80460c5e5eb63376a50", "score": "0.5762866", "text": "public void Movement() {\n float distance = sqrt(sq(Player1.x - x) + sq(Player1.y - y));\n x += (Player1.xvel * -1) +(Player1.x - x)/(distance*speed);\n y += (Player1.yvel * -1) +(Player1.y - y)/(distance*speed);\n }", "title": "" }, { "docid": "1f5dfa9a09f5aae4207d1ac548fc7215", "score": "0.5761317", "text": "@Override\n public void actionPerformed(ActionEvent e) {\n if (running) {\n this.move();\n this.worm.move();\n this.checkApple();\n this.checkCollisions();\n }\n this.repaint();\n }", "title": "" }, { "docid": "eee379cae005a0f9c128fcd045affeaa", "score": "0.5760189", "text": "public void moveLeft(){\n moveHorizontal(-20);\n }", "title": "" }, { "docid": "23dc73bf8f93c575222ab8825c8ed38f", "score": "0.5759568", "text": "public void left()\n {\n view.eraseShape(game1.currentshape,game1.shapewindow);\n game1.leftSquareMatrix();\n view.drawShape(game1.currentshape,game1.shapewindow,game1.xPos,game1.yPos);\n }", "title": "" }, { "docid": "fd5260e7ef710db31ff633d477a62990", "score": "0.5749191", "text": "public void adToLeft(){\n if(!over.isTouchDown() && over.isColliding(x,y) && x<canvas.getWidth()*0.25) {\n ads.remove(over);\n over=ads.get(ads.size()-1);\n\n clicked=true;\n }\n\n }", "title": "" }, { "docid": "f236d12a22495e9becee947a025e339b", "score": "0.5744297", "text": "private boolean moveLaneLeft() {\n if (m_vScreenPos.x > m_vLeft.x) { //Check if on left lane\n //Check if on center lane\n if (m_vScreenPos.x <= m_vCenter.x) { m_fScreenTargetX = m_vLeft.x; } //Move to the left lane\n //On the Right Lane\n else { m_fScreenTargetX = m_vCenter.x; }\n m_bLaneMoveLeft = true; //Set move direction\n return true; //Can move\n }\n return false; //Cannot move\n }", "title": "" }, { "docid": "451e1122fa6470e97ac919859745bd93", "score": "0.5737164", "text": "@Override\n\tpublic void collideEW(Renderable r) {\n\t\tif(getVelocity().getVelocityX() < 0) { // LEFT\n\t\t\tsetLocation(QuickRectangle.location(r.getLocation().getX() + r.getLocation().getWidth(), getLocation().getY(),\n\t\t\t\t\tgetLocation().getWidth(), getLocation().getHeight()));\n\t\t}\n\t\telse { // RIGHT\n\t\t\tsetLocation(QuickRectangle.location(r.getLocation().getX() - getLocation().getWidth(), getLocation().getY(),\n\t\t\t\t\tgetLocation().getWidth(), getLocation().getHeight()));\n\t\t}\n\t\tupdateCollision();\n\t\tgetVelocity().setVelocityX(0);\n\t}", "title": "" }, { "docid": "dd8d57914ebb10733e141a1ec6fa18ee", "score": "0.5734846", "text": "public void move(){\n\t\tif(currentXPixel+moveX*20<EditorSetter.offsetX || currentXPixel+moveX*20>EditorSetter.arrayLenghtX*20+EditorSetter.offsetX-20 || currentYPixel+moveY*20<EditorSetter.offsetY-20 || currentYPixel+moveY*20>EditorSetter.arrayLenghtY*20+EditorSetter.offsetY-20){\n\t\t\treturn;\n\t\t}\n\t\tcurrentXPixel=currentXPixel+moveX*20;\n\t\tcurrentYPixel=currentYPixel+moveY*20;\n\t}", "title": "" }, { "docid": "7ec88a312aa8b5c310bcd3480bd2da1b", "score": "0.57305866", "text": "void doHorizontalViolentMovement();", "title": "" }, { "docid": "90418a19397cf512bdfd99ceac52213f", "score": "0.5730057", "text": "@Override\n public void act (int playerX, int playerY)\n {\n if(sprite_direction.equals(\"left\") && super.getX() == 0)\n super.setX(8);\n else if(sprite_direction.equals(\"right\") && super.getX() == 8)\n super.setX(0);\n else if(sprite_direction.equals(\"right\")) \n super.setX(super.getX() + 1);\n else if(sprite_direction.equals(\"left\"))\n super.setX(super.getX() - 1);\n \n }", "title": "" }, { "docid": "5a5e9a9d3615dedc17b4eecb4cdba3ac", "score": "0.57297015", "text": "public void act() \n {\n move(1);\n if(isAtEdge()){\n turn(90);\n }\n }", "title": "" }, { "docid": "11d2f892303466cab9ef6fc2ace859ed", "score": "0.57291585", "text": "public static void P2kingMove(pieces P2)\r\n {\r\n System.out.println(\"Where would you like to move? (UpL, DownL, UpR, DownR)\");\r\n String choice = user.nextLine();\r\n //Upper and lower boundaries restrictions\r\n if ((P2.getX() == 0 && choice.equals(\"UpL\")) || (P2.getX() == 0 && choice.equals(\"UpR\")) || (P2.getX() == 7 && choice.equals(\"DownL\")) || (P2.getX() == 7 && choice.equals(\"DownR\")))\r\n {\r\n System.out.println(\"You can't move there.\");\r\n }\r\n if (P2.getX() >= 2 || P2.getX() <= 5)\r\n {\r\n //left boundary\r\n if ((P2.getY() == 0 && choice.equals(\"UpL\")) || (P2.getY() == 0 && choice.equals(\"DownL\")))\r\n {\r\n System.out.println(\"You can only move right.\");\r\n }\r\n else if (P2.getY() == 0 && choice.equals(\"UpR\"))\r\n {\r\n //kill\r\n if ((choice.equals(\"UpR\") && (board[P2.getX()-1][P2.getY()+1] == P1One || board[P2.getX()-1][P2.getY()+1] == P1Two || board[P2.getX()-1][P2.getY()+1] == P1Three || board[P2.getX()-1][P2.getY()+1] == P1Four || board[P2.getX()-1][P2.getY()+1] == P1Five || board[P2.getX()-1][P2.getY()+1] == P1Six || board[P2.getX()-1][P2.getY()+1] == P1Seven || board[P2.getX()-1][P2.getY()+1] == P1Eight || board[P2.getX()-1][P2.getY()+1] == P1Nine || board[P2.getX()-1][P2.getY()+1] == P1Ten || board[P2.getX()-1][P2.getY()+1] == P1Eleven || board[P2.getX()-1][P2.getY()+1] == P1Twelve) && board[P2.getX()-2][P2.getY()+2] == placeholder))\r\n {\r\n P2.kingUpRight();\r\n P2.kingUpRight();\r\n board[P2.getX()+1][P2.getY()-1] = placeholder;\r\n board[P2.getX()+2][P2.getY()-2] = placeholder;\r\n board[P2.getX()][P2.getY()] = P2;\r\n P1count--;\r\n killcounter = 1;\r\n P2kingMove(P2); \r\n }\r\n \r\n //basic movement\r\n else if (choice.equals(\"UpR\") && (board[P2.getX()-1][P2.getY()+1] == placeholder) && killcounter != 1)\r\n {\r\n P2.kingUpRight(); \r\n board[P2.getX()+1][P2.getY()-1] = placeholder;\r\n board[P2.getX()][P2.getY()] = P2;\r\n P2run = false;\r\n P1run = true;\r\n }\r\n else if (choice.equals(\"UpR\") && killcounter == 1)\r\n {\r\n System.out.println(\"No more kills avaiable\");\r\n killcounter = 0;\r\n P2run = false;\r\n P1run = true;\r\n }\r\n else\r\n {\r\n System.out.println(\"You can't move there.\"); \r\n }\r\n }\r\n else if (P2.getY() == 0 && choice.equals(\"DownR\"))\r\n {\r\n //kill\r\n if ((choice.equals(\"DownR\") && (board[P2.getX()+1][P2.getY()+1] == P1One || board[P2.getX()+1][P2.getY()+1] == P1Two || board[P2.getX()+1][P2.getY()+1] == P1Three || board[P2.getX()+1][P2.getY()+1] == P1Four || board[P2.getX()+1][P2.getY()+1] == P1Five || board[P2.getX()+1][P2.getY()+1] == P1Six || board[P2.getX()+1][P2.getY()+1] == P1Seven || board[P2.getX()+1][P2.getY()+1] == P1Eight || board[P2.getX()+1][P2.getY()+1] == P1Nine || board[P2.getX()+1][P2.getY()+1] == P1Ten || board[P2.getX()+1][P2.getY()+1] == P1Eleven || board[P2.getX()+1][P2.getY()+1] == P1Twelve) && board[P2.getX()+2][P2.getY()+2] == placeholder))\r\n {\r\n P2.kingDownRight();\r\n P2.kingDownRight();\r\n board[P2.getX()-1][P2.getY()-1] = placeholder;\r\n board[P2.getX()-2][P2.getY()-2] = placeholder;\r\n board[P2.getX()][P2.getY()] = P2;\r\n P1count--;\r\n killcounter = 1;\r\n P2kingMove(P2); \r\n }\r\n \r\n //basic movement\r\n else if (choice.equals(\"DownR\") && (board[P2.getX()+1][P2.getY()+1] == placeholder) && killcounter != 1)\r\n {\r\n P2.kingDownRight(); \r\n board[P2.getX()-1][P2.getY()-1] = placeholder;\r\n board[P2.getX()][P2.getY()] = P2;\r\n P2run = false;\r\n P1run = true;\r\n }\r\n else if (choice.equals(\"DownR\") && killcounter == 1)\r\n {\r\n System.out.println(\"No more kills avaiable\");\r\n killcounter = 0;\r\n P2run = false;\r\n P1run = true;\r\n }\r\n else\r\n {\r\n System.out.println(\"You can't move there.\"); \r\n }\r\n }\r\n \r\n //right boundary\r\n else if ( (P2.getY() == 7 && choice.equals(\"UpR\")) || (P2.getY() == 7 && choice.equals(\"DownR\"))) \r\n {\r\n System.out.println(\"You can only move left.\");\r\n }\r\n else if (P2.getY() == 7 && choice.equals(\"UpL\"))\r\n {\r\n //kill\r\n if (choice.equals(\"UpL\") && (board[P2.getX()-1][P2.getY()-1] == P1One || board[P2.getX()-1][P2.getY()-1] == P1Two || board[P2.getX()-1][P2.getY()-1] == P1Three || board[P2.getX()-1][P2.getY()-1] == P1Four || board[P2.getX()-1][P2.getY()-1] == P1Five || board[P2.getX()-1][P2.getY()-1] == P1Six || board[P2.getX()-1][P2.getY()-1] == P1Seven || board[P2.getX()-1][P2.getY()-1] == P1Eight || board[P2.getX()-1][P2.getY()-1] == P1Nine || board[P2.getX()-1][P2.getY()-1] == P1Ten || board[P2.getX()-1][P2.getY()-1] == P1Eleven || board[P2.getX()-1][P2.getY()-1] == P1Twelve) && board[P2.getX()-2][P2.getY()-2] == placeholder)\r\n {\r\n P2.kingUpLeft();\r\n P2.kingUpLeft();\r\n board[P2.getX()+1][P2.getY()+1] = placeholder;\r\n board[P2.getX()+2][P2.getY()+2] = placeholder;\r\n board[P2.getX()][P2.getY()] = P2;\r\n P1count--;\r\n killcounter = 1;\r\n P2kingMove(P2);\r\n }\r\n \r\n //basic movement\r\n if (choice.equals(\"UpL\") && (board[P2.getX()-1][P2.getY()-1] == placeholder) && killcounter != 1)\r\n {\r\n P2.kingUpLeft(); \r\n board[P2.getX()+1][P2.getY()+1] = placeholder;\r\n board[P2.getX()][P2.getY()] = P2;\r\n P2run = false;\r\n P1run = true;\r\n }\r\n else if (choice.equals(\"UpL\") && killcounter == 1)\r\n {\r\n System.out.println(\"No more kills available.\");\r\n killcounter = 0;\r\n P2run = false;\r\n P1run = true;\r\n }\r\n else\r\n {\r\n System.out.println(\"You can't move there.\"); \r\n }\r\n }\r\n else if (P2.getY() == 7 && choice.equals(\"DownL\"))\r\n {\r\n //kill\r\n if (choice.equals(\"DownL\") && (board[P2.getX()+1][P2.getY()-1] == P1One || board[P2.getX()+1][P2.getY()-1] == P1Two || board[P2.getX()+1][P2.getY()-1] == P1Three || board[P2.getX()+1][P2.getY()-1] == P1Four || board[P2.getX()+1][P2.getY()-1] == P1Five || board[P2.getX()+1][P2.getY()-1] == P1Six || board[P2.getX()+1][P2.getY()-1] == P1Seven || board[P2.getX()+1][P2.getY()-1] == P1Eight || board[P2.getX()+1][P2.getY()-1] == P1Nine || board[P2.getX()+1][P2.getY()-1] == P1Ten || board[P2.getX()+1][P2.getY()-1] == P1Eleven || board[P2.getX()+1][P2.getY()-1] == P1Twelve) && board[P2.getX()+2][P2.getY()-2] == placeholder)\r\n {\r\n P2.kingDownLeft();\r\n P2.kingDownLeft();\r\n board[P2.getX()-1][P2.getY()+1] = placeholder;\r\n board[P2.getX()-2][P2.getY()+2] = placeholder;\r\n board[P2.getX()][P2.getY()] = P2;\r\n P1count--;\r\n killcounter = 1;\r\n P2kingMove(P2);\r\n }\r\n \r\n //basic movement\r\n if (choice.equals(\"DownL\") && (board[P2.getX()+1][P2.getY()-1] == placeholder) && killcounter != 1)\r\n {\r\n P2.kingDownLeft(); \r\n board[P2.getX()-1][P2.getY()+1] = placeholder;\r\n board[P2.getX()][P2.getY()] = P2;\r\n P2run = false;\r\n P1run = true;\r\n }\r\n else if (choice.equals(\"DownL\") && killcounter == 1)\r\n {\r\n System.out.println(\"No more kills available.\");\r\n killcounter = 0;\r\n P2run = false;\r\n P1run = true;\r\n }\r\n else\r\n {\r\n System.out.println(\"You can't move there.\"); \r\n }\r\n }\r\n \r\n \r\n //no boundary\r\n else if ((P2.getX() > 0) && (P2.getX() < 7) && (P2.getY() > 0) && (P2.getY() < 7))\r\n {\r\n //kill\r\n if ((choice.equals(\"UpR\") && (board[P2.getX()-1][P2.getY()+1] == P1One || board[P2.getX()-1][P2.getY()+1] == P1Two || board[P2.getX()-1][P2.getY()+1] == P1Three || board[P2.getX()-1][P2.getY()+1] == P1Four || board[P2.getX()-1][P2.getY()+1] == P1Five || board[P2.getX()-1][P2.getY()+1] == P1Six || board[P2.getX()-1][P2.getY()+1] == P1Seven || board[P2.getX()-1][P2.getY()+1] == P1Eight || board[P2.getX()-1][P2.getY()+1] == P1Nine || board[P2.getX()-1][P2.getY()+1] == P1Ten || board[P2.getX()-1][P2.getY()+1] == P1Eleven || board[P2.getX()-1][P2.getY()+1] == P1Twelve) && board[P2.getX()-2][P2.getY()+2] == placeholder))\r\n {\r\n P2.kingUpRight();\r\n P2.kingUpRight();\r\n board[P2.getX()+1][P2.getY()-1] = placeholder;\r\n board[P2.getX()+2][P2.getY()-2] = placeholder;\r\n board[P2.getX()][P2.getY()] = P2;\r\n P1count--;\r\n killcounter = 1;\r\n P2kingMove(P2); \r\n }\r\n \r\n //basic movement\r\n else if (choice.equals(\"UpR\") && (board[P2.getX()-1][P2.getY()+1] == placeholder) && killcounter != 1)\r\n {\r\n P2.kingUpRight(); \r\n board[P2.getX()+1][P2.getY()-1] = placeholder;\r\n board[P2.getX()][P2.getY()] = P2;\r\n P2run = false;\r\n P1run = true;\r\n }\r\n else if (choice.equals(\"UpR\") && killcounter == 1)\r\n {\r\n System.out.println(\"No more kills avaiable\");\r\n killcounter = 0;\r\n P2run = false;\r\n P1run = true;\r\n }\r\n \r\n //kill\r\n else if ((choice.equals(\"DownR\") && (board[P2.getX()+1][P2.getY()+1] == P1One || board[P2.getX()+1][P2.getY()+1] == P1Two || board[P2.getX()+1][P2.getY()+1] == P1Three || board[P2.getX()+1][P2.getY()+1] == P1Four || board[P2.getX()+1][P2.getY()+1] == P1Five || board[P2.getX()+1][P2.getY()+1] == P1Six || board[P2.getX()+1][P2.getY()+1] == P1Seven || board[P2.getX()+1][P2.getY()+1] == P1Eight || board[P2.getX()+1][P2.getY()+1] == P1Nine || board[P2.getX()+1][P2.getY()+1] == P1Ten || board[P2.getX()+1][P2.getY()+1] == P1Eleven || board[P2.getX()+1][P2.getY()+1] == P1Twelve) && board[P2.getX()+2][P2.getY()+2] == placeholder))\r\n {\r\n P2.kingDownRight();\r\n P2.kingDownRight();\r\n board[P2.getX()-1][P2.getY()-1] = placeholder;\r\n board[P2.getX()-2][P2.getY()-2] = placeholder;\r\n board[P2.getX()][P2.getY()] = P2;\r\n P1count--;\r\n killcounter = 1;\r\n P2kingMove(P2); \r\n } \r\n //basic movement\r\n else if (choice.equals(\"DownR\") && (board[P2.getX()+1][P2.getY()+1] == placeholder) && killcounter != 1)\r\n {\r\n P2.kingDownRight(); \r\n board[P2.getX()-1][P2.getY()-1] = placeholder;\r\n board[P2.getX()][P2.getY()] = P2;\r\n P2run = false;\r\n P1run = true;\r\n }\r\n else if (choice.equals(\"DownR\") && killcounter == 1)\r\n {\r\n System.out.println(\"No more kills avaiable\");\r\n killcounter = 0;\r\n P2run = false;\r\n P1run = true;\r\n } \r\n //kill\r\n else if (choice.equals(\"UpL\") && (board[P2.getX()-1][P2.getY()-1] == P1One || board[P2.getX()-1][P2.getY()-1] == P1Two || board[P2.getX()-1][P2.getY()-1] == P1Three || board[P2.getX()-1][P2.getY()-1] == P1Four || board[P2.getX()-1][P2.getY()-1] == P1Five || board[P2.getX()-1][P2.getY()-1] == P1Six || board[P2.getX()-1][P2.getY()-1] == P1Seven || board[P2.getX()-1][P2.getY()-1] == P1Eight || board[P2.getX()-1][P2.getY()-1] == P1Nine || board[P2.getX()-1][P2.getY()-1] == P1Ten || board[P2.getX()-1][P2.getY()-1] == P1Eleven || board[P2.getX()-1][P2.getY()-1] == P1Twelve) && board[P2.getX()-2][P2.getY()-2] == placeholder)\r\n {\r\n P2.kingUpLeft();\r\n P2.kingUpLeft();\r\n board[P2.getX()+1][P2.getY()+1] = placeholder;\r\n board[P2.getX()+2][P2.getY()+2] = placeholder;\r\n board[P2.getX()][P2.getY()] = P2;\r\n P1count--;\r\n killcounter = 1;\r\n P2kingMove(P2);\r\n } \r\n //basic movement\r\n else if (choice.equals(\"UpL\") && (board[P2.getX()-1][P2.getY()-1] == placeholder) && killcounter != 1)\r\n {\r\n P2.kingUpLeft(); \r\n board[P2.getX()+1][P2.getY()+1] = placeholder;\r\n board[P2.getX()][P2.getY()] = P2;\r\n P2run = false;\r\n P1run = true;\r\n }\r\n else if (choice.equals(\"UpL\") && killcounter == 1)\r\n {\r\n System.out.println(\"No more kills available.\");\r\n killcounter = 0;\r\n P2run = false;\r\n P1run = true;\r\n } \r\n //kill\r\n else if (choice.equals(\"DownL\") && (board[P2.getX()+1][P2.getY()-1] == P1One || board[P2.getX()+1][P2.getY()-1] == P1Two || board[P2.getX()+1][P2.getY()-1] == P1Three || board[P2.getX()+1][P2.getY()-1] == P1Four || board[P2.getX()+1][P2.getY()-1] == P1Five || board[P2.getX()+1][P2.getY()-1] == P1Six || board[P2.getX()+1][P2.getY()-1] == P1Seven || board[P2.getX()+1][P2.getY()-1] == P1Eight || board[P2.getX()+1][P2.getY()-1] == P1Nine || board[P2.getX()+1][P2.getY()-1] == P1Ten || board[P2.getX()+1][P2.getY()-1] == P1Eleven || board[P2.getX()+1][P2.getY()-1] == P1Twelve) && board[P2.getX()+2][P2.getY()-2] == placeholder)\r\n {\r\n P2.kingDownLeft();\r\n P2.kingDownLeft();\r\n board[P2.getX()-1][P2.getY()+1] = placeholder;\r\n board[P2.getX()-2][P2.getY()+2] = placeholder;\r\n board[P2.getX()][P2.getY()] = P2;\r\n P1count--;\r\n killcounter = 1;\r\n P2kingMove(P2);\r\n } \r\n //basic movement\r\n else if (choice.equals(\"DownL\") && (board[P2.getX()+1][P2.getY()-1] == placeholder) && killcounter != 1)\r\n {\r\n P2.kingDownLeft(); \r\n board[P2.getX()-1][P2.getY()+1] = placeholder;\r\n board[P2.getX()][P2.getY()] = P2;\r\n P2run = false;\r\n P1run = true;\r\n }\r\n else if (choice.equals(\"DownL\") && killcounter == 1)\r\n {\r\n System.out.println(\"No more kills available.\");\r\n killcounter = 0;\r\n P2run = false;\r\n P1run = true;\r\n }\r\n else\r\n {\r\n System.out.println(\"You can't move there.\"); \r\n } \r\n }\r\n else if (P2.getX() == 0 || P2.getX() == 1 || P2.getX() == 6 || P2.getX() == 7)\r\n {\r\n //kills\r\n if (P2.getX() == 0 || P2.getX() == 1)\r\n {\r\n if (P2.getX() == 0 && (choice.equals(\"DownL\") && (board[P2.getX()+1][P2.getY()-1] == P1One || board[P2.getX()+1][P2.getY()-1] == P1Two || board[P2.getX()+1][P2.getY()-1] == P1Three || board[P2.getX()+1][P2.getY()-1] == P1Four || board[P2.getX()+1][P2.getY()-1] == P1Five || board[P2.getX()+1][P2.getY()-1] == P1Six || board[P2.getX()+1][P2.getY()-1] == P1Seven || board[P2.getX()+1][P2.getY()-1] == P1Eight || board[P2.getX()+1][P2.getY()-1] == P1Nine || board[P2.getX()+1][P2.getY()-1] == P1Ten || board[P2.getX()+1][P2.getY()-1] == P1Eleven || board[P2.getX()+1][P2.getY()-1] == P1Twelve) && board[P2.getX()+2][P2.getY()-2] == placeholder) || ((P2.getX() == 1 && choice.equals(\"DownL\") && (board[P2.getX()+1][P2.getY()-1] == P1One || board[P2.getX()+1][P2.getY()-1] == P1Two || board[P2.getX()+1][P2.getY()-1] == P1Three || board[P2.getX()+1][P2.getY()-1] == P1Four || board[P2.getX()+1][P2.getY()-1] == P1Five || board[P2.getX()+1][P2.getY()-1] == P1Six || board[P2.getX()+1][P2.getY()-1] == P1Seven || board[P2.getX()+1][P2.getY()-1] == P1Eight || board[P2.getX()+1][P2.getY()-1] == P1Nine || board[P2.getX()+1][P2.getY()-1] == P1Ten || board[P2.getX()+1][P2.getY()-1] == P1Eleven || board[P2.getX()+1][P2.getY()-1] == P1Twelve) && board[P2.getX()+2][P2.getY()-2] == placeholder)))\r\n {\r\n P2.kingDownLeft();\r\n P2.kingDownLeft();\r\n board[P2.getX()-1][P2.getY()+1] = placeholder;\r\n board[P2.getX()-2][P2.getY()+2] = placeholder;\r\n board[P2.getX()][P2.getY()] = P2;\r\n P1count--;\r\n killcounter = 1;\r\n P2kingMove(P2);\r\n } \r\n else if ((P2.getX() == 0 && (choice.equals(\"DownR\") && (board[P2.getX()+1][P2.getY()+1] == P1One || board[P2.getX()+1][P2.getY()+1] == P1Two || board[P2.getX()+1][P2.getY()+1] == P1Three || board[P2.getX()+1][P2.getY()+1] == P1Four || board[P2.getX()+1][P2.getY()+1] == P1Five || board[P2.getX()+1][P2.getY()+1] == P1Six || board[P2.getX()+1][P2.getY()+1] == P1Seven || board[P2.getX()+1][P2.getY()+1] == P1Eight || board[P2.getX()+1][P2.getY()+1] == P1Nine || board[P2.getX()+1][P2.getY()+1] == P1Ten || board[P2.getX()+1][P2.getY()+1] == P1Eleven || board[P2.getX()+1][P2.getY()+1] == P1Twelve) && board[P2.getX()+2][P2.getY()+2] == placeholder)) || (P2.getX() == 1 && choice.equals(\"DownR\") && (board[P2.getX()+1][P2.getY()+1] == P1One || board[P2.getX()+1][P2.getY()+1] == P1Two || board[P2.getX()+1][P2.getY()+1] == P1Three || board[P2.getX()+1][P2.getY()+1] == P1Four || board[P2.getX()+1][P2.getY()+1] == P1Five || board[P2.getX()+1][P2.getY()+1] == P1Six || board[P2.getX()+1][P2.getY()+1] == P1Seven || board[P2.getX()+1][P2.getY()+1] == P1Eight || board[P2.getX()+1][P2.getY()+1] == P1Nine || board[P2.getX()+1][P2.getY()+1] == P1Ten || board[P2.getX()+1][P2.getY()+1] == P1Eleven || board[P2.getX()+1][P2.getY()+1] == P1Twelve) && board[P2.getX()+2][P2.getY()+2] == placeholder))\r\n {\r\n P2.kingDownRight();\r\n P2.kingDownRight();\r\n board[P2.getX()-1][P2.getY()-1] = placeholder;\r\n board[P2.getX()-2][P2.getY()-2] = placeholder;\r\n board[P2.getX()][P2.getY()] = P2;\r\n P1count--;\r\n killcounter = 1;\r\n P2kingMove(P2); \r\n } \r\n }\r\n else if (P2.getX() == 6 || P2.getX() == 7)\r\n {\r\n if ((P2.getX() == 6 && choice.equals(\"UpL\") && (board[P2.getX()-1][P2.getY()-1] == P1One || board[P2.getX()-1][P2.getY()-1] == P1Two || board[P2.getX()-1][P2.getY()-1] == P1Three || board[P2.getX()-1][P2.getY()-1] == P1Four || board[P2.getX()-1][P2.getY()-1] == P1Five || board[P2.getX()-1][P2.getY()-1] == P1Six || board[P2.getX()-1][P2.getY()-1] == P1Seven || board[P2.getX()-1][P2.getY()-1] == P1Eight || board[P2.getX()-1][P2.getY()-1] == P1Nine || board[P2.getX()-1][P2.getY()-1] == P1Ten || board[P2.getX()-1][P2.getY()-1] == P1Eleven || board[P2.getX()-1][P2.getY()-1] == P1Twelve) && board[P2.getX()-2][P2.getY()-2] == placeholder) || (P2.getX() == 7 && choice.equals(\"UpL\") && (board[P2.getX()-1][P2.getY()-1] == P1One || board[P2.getX()-1][P2.getY()-1] == P1Two || board[P2.getX()-1][P2.getY()-1] == P1Three || board[P2.getX()-1][P2.getY()-1] == P1Four || board[P2.getX()-1][P2.getY()-1] == P1Five || board[P2.getX()-1][P2.getY()-1] == P1Six || board[P2.getX()-1][P2.getY()-1] == P1Seven || board[P2.getX()-1][P2.getY()-1] == P1Eight || board[P2.getX()-1][P2.getY()-1] == P1Nine || board[P2.getX()-1][P2.getY()-1] == P1Ten || board[P2.getX()-1][P2.getY()-1] == P1Eleven || board[P2.getX()-1][P2.getY()-1] == P1Twelve) && board[P2.getX()-2][P2.getY()-2] == placeholder)) \r\n {\r\n P2.kingUpLeft();\r\n P2.kingUpLeft();\r\n board[P2.getX()+1][P2.getY()+1] = placeholder;\r\n board[P2.getX()+2][P2.getY()+2] = placeholder;\r\n board[P2.getX()][P2.getY()] = P2;\r\n P1count--;\r\n killcounter = 1;\r\n P2kingMove(P2);\r\n } \r\n else if ((P2.getX() == 6 && choice.equals(\"UpR\") && (board[P2.getX()-1][P2.getY()+1] == P1One || board[P2.getX()-1][P2.getY()+1] == P1Two || board[P2.getX()-1][P2.getY()+1] == P1Three || board[P2.getX()-1][P2.getY()+1] == P1Four || board[P2.getX()-1][P2.getY()+1] == P1Five || board[P2.getX()-1][P2.getY()+1] == P1Six || board[P2.getX()-1][P2.getY()+1] == P1Seven || board[P2.getX()-1][P2.getY()+1] == P1Eight || board[P2.getX()-1][P2.getY()+1] == P1Nine || board[P2.getX()-1][P2.getY()+1] == P1Ten || board[P2.getX()-1][P2.getY()+1] == P1Eleven || board[P2.getX()-1][P2.getY()+1] == P1Twelve) && board[P2.getX()-2][P2.getY()-2] == placeholder) || (P2.getX() == 7 && choice.equals(\"UpR\") && (board[P2.getX()-1][P2.getY()+1] == P1One || board[P2.getX()-1][P2.getY()+1] == P1One || board[P2.getX()-1][P2.getY()+1] == P1Three || board[P2.getX()-1][P2.getY()+1] == P1Four || board[P2.getX()-1][P2.getY()+1] == P1Five || board[P2.getX()-1][P2.getY()+1] == P1Six || board[P2.getX()-1][P2.getY()+1] == P1Seven || board[P2.getX()-1][P2.getY()+1] == P1Eight || board[P2.getX()-1][P2.getY()+1] == P1Nine || board[P2.getX()-1][P2.getY()+1] == P1Ten || board[P2.getX()-1][P2.getY()+1] == P1Eleven || board[P2.getX()-1][P2.getY()+1] == P1Twelve) && board[P2.getX()-2][P2.getY()-2] == placeholder)) \r\n {\r\n P2.kingUpRight();\r\n P2.kingUpRight();\r\n board[P2.getX()+1][P2.getY()-1] = placeholder;\r\n board[P2.getX()+2][P2.getY()-2] = placeholder;\r\n board[P2.getX()][P2.getY()] = P2;\r\n P1count--;\r\n killcounter = 1;\r\n P2kingMove(P2); \r\n }\r\n }\r\n //left boundary\r\n else if ((P2.getY() == 0 && choice.equals(\"UpL\")) || (P2.getY() == 0 && choice.equals(\"DownL\")))\r\n {\r\n System.out.println(\"You can only move right.\");\r\n }\r\n else if (P2.getY() == 0 && choice.equals(\"UpR\"))\r\n {\r\n if (choice.equals(\"UpR\") && (board[P2.getX()-1][P2.getY()+1] == placeholder) && killcounter != 1)\r\n {\r\n P2.kingUpRight(); \r\n board[P2.getX()+1][P2.getY()-1] = placeholder;\r\n board[P2.getX()][P2.getY()] = P2;\r\n P2run = false;\r\n P1run = true;\r\n }\r\n else if (choice.equals(\"UpR\") && killcounter == 1)\r\n {\r\n System.out.println(\"No more kills avaiable\");\r\n killcounter = 0;\r\n P2run = false;\r\n P1run = true;\r\n }\r\n else\r\n {\r\n System.out.println(\"You can't move there.\"); \r\n }\r\n }\r\n else if (P2.getY() == 0 && choice.equals(\"DownR\"))\r\n {\r\n if (choice.equals(\"DownR\") && (board[P2.getX()+1][P2.getY()+1] == placeholder) && killcounter != 1)\r\n {\r\n P2.kingDownRight(); \r\n board[P2.getX()-1][P2.getY()-1] = placeholder;\r\n board[P2.getX()][P2.getY()] = P2;\r\n P2run = false;\r\n P1run = true;\r\n }\r\n else if (choice.equals(\"DownR\") && killcounter == 1)\r\n {\r\n System.out.println(\"No more kills avaiable\");\r\n killcounter = 0;\r\n P2run = false;\r\n P1run = true;\r\n }\r\n else\r\n {\r\n System.out.println(\"You can't move there.\"); \r\n }\r\n }\r\n \r\n //right boundary\r\n if ( (P2.getY() == 7 && choice.equals(\"UpR\")) || (P2.getY() == 7 && choice.equals(\"DownR\"))) \r\n {\r\n System.out.println(\"You can only move left.\");\r\n }\r\n else if (P2.getY() == 7 && choice.equals(\"UpL\"))\r\n {\r\n if (choice.equals(\"UpL\") && (board[P2.getX()-1][P2.getY()-1] == placeholder) && killcounter != 1)\r\n {\r\n P2.kingUpLeft(); \r\n board[P2.getX()+1][P2.getY()+1] = placeholder;\r\n board[P2.getX()][P2.getY()] = P2;\r\n P2run = false;\r\n P1run = true;\r\n }\r\n else if (choice.equals(\"UpL\") && killcounter == 1)\r\n {\r\n System.out.println(\"No more kills available.\");\r\n killcounter = 0;\r\n P2run = false;\r\n P1run = true;\r\n }\r\n else\r\n {\r\n System.out.println(\"You can't move there.\"); \r\n }\r\n }\r\n else if (P2.getY() == 7 && choice.equals(\"DownL\"))\r\n {\r\n if (choice.equals(\"DownL\") && (board[P2.getX()+1][P2.getY()-1] == placeholder) && killcounter != 1)\r\n {\r\n P2.kingDownLeft(); \r\n board[P2.getX()-1][P2.getY()+1] = placeholder;\r\n board[P2.getX()][P2.getY()] = P2;\r\n P2run = false;\r\n P1run = true;\r\n }\r\n else if (choice.equals(\"DownL\") && killcounter == 1)\r\n {\r\n System.out.println(\"No more kills available.\");\r\n killcounter = 0;\r\n P2run = false;\r\n P1run = true;\r\n }\r\n else\r\n {\r\n System.out.println(\"You can't move there.\"); \r\n }\r\n }\r\n \r\n //no boundary\r\n else if (P2.getX() == 1 || P2.getX() == 6)\r\n {\r\n if (choice.equals(\"UpR\") && (board[P2.getX()-1][P2.getY()+1] == placeholder) && killcounter != 1)\r\n {\r\n P2.kingUpRight(); \r\n board[P2.getX()+1][P2.getY()-1] = placeholder;\r\n board[P2.getX()][P2.getY()] = P2;\r\n P2run = false;\r\n P1run = true;\r\n }\r\n else if (choice.equals(\"UpR\") && killcounter == 1)\r\n {\r\n System.out.println(\"No more kills avaiable\");\r\n killcounter = 0;\r\n P2run = false;\r\n P1run = true;\r\n } \r\n else if (choice.equals(\"DownR\") && (board[P2.getX()+1][P2.getY()+1] == placeholder) && killcounter != 1)\r\n {\r\n P2.kingDownRight(); \r\n board[P2.getX()-1][P2.getY()-1] = placeholder;\r\n board[P2.getX()][P2.getY()] = P2;\r\n P2run = false;\r\n P1run = true;\r\n }\r\n else if (choice.equals(\"DownR\") && killcounter == 1)\r\n {\r\n System.out.println(\"No more kills avaiable\");\r\n killcounter = 0;\r\n P2run = false;\r\n P1run = true;\r\n } \r\n else if (choice.equals(\"UpL\") && (board[P2.getX()-1][P2.getY()-1] == placeholder) && killcounter != 1)\r\n {\r\n P2.kingUpLeft(); \r\n board[P2.getX()+1][P2.getY()+1] = placeholder;\r\n board[P2.getX()][P2.getY()] = P2;\r\n P2run = false;\r\n P1run = true;\r\n }\r\n else if (choice.equals(\"UpL\") && killcounter == 1)\r\n {\r\n System.out.println(\"No more kills available.\");\r\n killcounter = 0;\r\n P2run = false;\r\n P1run = true;\r\n }\r\n else if (choice.equals(\"DownL\") && (board[P2.getX()+1][P2.getY()-1] == placeholder) && killcounter != 1)\r\n {\r\n P2.kingDownLeft(); \r\n board[P2.getX()-1][P2.getY()+1] = placeholder;\r\n board[P2.getX()][P2.getY()] = P2;\r\n P2run = false;\r\n P1run = true;\r\n }\r\n else if (choice.equals(\"DownL\") && killcounter == 1)\r\n {\r\n System.out.println(\"No more kills available.\");\r\n killcounter = 0;\r\n P2run = false;\r\n P1run = true;\r\n }\r\n }\r\n //upper and lower boundary movement\r\n else if (P2.getX() == 0)\r\n {\r\n if (choice.equals(\"DownR\") && (board[P2.getX()+1][P2.getY()+1] == placeholder) && killcounter != 1)\r\n {\r\n P2.kingDownRight(); \r\n board[P2.getX()-1][P2.getY()-1] = placeholder;\r\n board[P2.getX()][P2.getY()] = P2;\r\n P2run = false;\r\n P1run = true;\r\n }\r\n else if (choice.equals(\"DownR\") && killcounter == 1)\r\n {\r\n System.out.println(\"No more kills avaiable\");\r\n killcounter = 0;\r\n P2run = false;\r\n P1run = true; \r\n } \r\n \r\n else if (choice.equals(\"DownL\") && (board[P2.getX()+1][P2.getY()-1] == placeholder) && killcounter != 1)\r\n {\r\n P2.kingDownLeft(); \r\n board[P2.getX()-1][P2.getY()+1] = placeholder;\r\n board[P2.getX()][P2.getY()] = P2;\r\n P2run = false;\r\n P1run = true;\r\n }\r\n else if (choice.equals(\"DownL\") && killcounter == 1)\r\n {\r\n System.out.println(\"No more kills available.\");\r\n killcounter = 0;\r\n P2run = false;\r\n P1run = true;\r\n }\r\n }\r\n else if (P2.getX() == 7)\r\n {\r\n if (choice.equals(\"UpR\") && (board[P2.getX()-1][P2.getY()+1] == placeholder) && killcounter != 1)\r\n {\r\n P2.kingUpRight(); \r\n board[P2.getX()+1][P2.getY()-1] = placeholder;\r\n board[P2.getX()][P2.getY()] = P2;\r\n P2run = false;\r\n P1run = true;\r\n }\r\n else if (choice.equals(\"UpR\") && killcounter == 1)\r\n {\r\n System.out.println(\"No more kills avaiable\");\r\n killcounter = 0;\r\n P2run = false;\r\n P1run = true;\r\n } \r\n else if (choice.equals(\"UpL\") && (board[P2.getX()-1][P2.getY()-1] == placeholder) && killcounter != 1)\r\n {\r\n P2.kingUpLeft(); \r\n board[P2.getX()+1][P2.getY()+1] = placeholder;\r\n board[P2.getX()][P2.getY()] = P2;\r\n P2run = false;\r\n P1run = true;\r\n }\r\n else if (choice.equals(\"UpL\") && killcounter == 1)\r\n {\r\n System.out.println(\"No more kills available.\");\r\n killcounter = 0;\r\n P2run = false;\r\n P1run = true;\r\n } \r\n }\r\n else\r\n {\r\n System.out.println(\"You can't move there.\"); \r\n } \r\n }\r\n }\r\n }", "title": "" }, { "docid": "057729be6e2954613a3fd6d1f9195f45", "score": "0.5726267", "text": "private void right() \n {\n for(int x=this.currentEnemiesLine; x<this.nextLineAfterEnemies; x++)\n {\n for(int y = 14; y>1; y--)\n {\n this.grid[x][y]=this.grid[x][y-1];\n }\n this.grid[x][1]=CONSTANT_EMPTY;\n }\n }", "title": "" }, { "docid": "17ebecbc0d463b06e79d579e484b3744", "score": "0.57255906", "text": "public void checaColision() {\r\n\r\n //jack no sale del frame\r\n if (jack.getPosX() + jack.getAncho() > getWidth()) {\r\n jack.setPosX(getWidth() - jack.getAncho());\r\n }\r\n if (jack.getPosX() < 0) {\r\n jack.setPosX(0);\r\n }\r\n if (jack.getPosY() + jack.getAlto() > getHeight()) {\r\n jack.setPosY(getHeight() - jack.getAlto());\r\n }\r\n if (jack.getPosY() < 0) {\r\n jack.setPosY(0);\r\n }\r\n\r\n // si la bala sale del frame balaviva = false\r\n if (bala != null) {\r\n if (bala.getPosX() > getWidth()) {\r\n balaviva = false;\r\n //bala = null;\r\n }\r\n\r\n if (bala.getPosX() < 0) {\r\n balaviva = false;\r\n //bala = null;\r\n }\r\n\r\n if (bala.getPosY() > getHeight()) {\r\n balaviva = false;\r\n //bala = null;\r\n }\r\n\r\n if (bala.getPosY() < 0) {\r\n balaviva = false;\r\n //bala = null;\r\n }\r\n }\r\n\r\n // si la bala sale del frame balaviva = false\r\n if (balathermo != null) {\r\n if (balathermo.getPosX() > getWidth()) {\r\n tbrbalaviva = false;\r\n //bala = null;\r\n }\r\n\r\n if (balathermo.getPosX() < 0) {\r\n tbrbalaviva = false;\r\n //bala = null;\r\n }\r\n\r\n if (balathermo.getPosY() > getHeight()) {\r\n tbrbalaviva = false;\r\n //bala = null;\r\n }\r\n\r\n if (balathermo.getPosY() < 0) {\r\n tbrbalaviva = false;\r\n //bala = null;\r\n }\r\n }\r\n\r\n // si la bala sale del frame balaviva = false\r\n if (balathermo1 != null) {\r\n if (balathermo1.getPosX() > getWidth()) {\r\n tbrbalaviva1 = false;\r\n //bala = null;\r\n }\r\n\r\n if (balathermo1.getPosX() < 0) {\r\n tbrbalaviva1 = false;\r\n //bala = null;\r\n }\r\n\r\n if (balathermo1.getPosY() > getHeight()) {\r\n tbrbalaviva1 = false;\r\n //bala = null;\r\n }\r\n\r\n if (balathermo1.getPosY() < 0) {\r\n tbrbalaviva1 = false;\r\n //bala = null;\r\n }\r\n }\r\n\r\n // si la bala sale del frame balaviva = false\r\n if (balathermo2 != null) {\r\n if (balathermo2.getPosX() > getWidth()) {\r\n tbrbalaviva2 = false;\r\n //bala = null;\r\n }\r\n\r\n if (balathermo2.getPosX() < 0) {\r\n tbrbalaviva2 = false;\r\n //bala = null;\r\n }\r\n\r\n if (balathermo2.getPosY() > getHeight()) {\r\n tbrbalaviva2 = false;\r\n //bala = null;\r\n }\r\n\r\n if (balathermo2.getPosY() < 0) {\r\n tbrbalaviva2 = false;\r\n //bala = null;\r\n }\r\n }\r\n\r\n // si la bala sale del frame balaviva = false\r\n if (balathermo3 != null) {\r\n if (balathermo3.getPosX() > getWidth()) {\r\n tbrbalaviva3 = false;\r\n //bala = null;\r\n }\r\n\r\n if (balathermo3.getPosX() < 0) {\r\n tbrbalaviva3 = false;\r\n //bala = null;\r\n }\r\n\r\n if (balathermo3.getPosY() > getHeight()) {\r\n tbrbalaviva3 = false;\r\n //bala = null;\r\n }\r\n\r\n if (balathermo3.getPosY() < 0) {\r\n tbrbalaviva3 = false;\r\n //bala = null;\r\n }\r\n }\r\n\r\n // si la bala sale del frame balaviva = false\r\n if (balathermo4 != null) {\r\n if (balathermo4.getPosX() > getWidth()) {\r\n tbrbalaviva4 = false;\r\n //bala = null;\r\n }\r\n\r\n if (balathermo4.getPosX() < 0) {\r\n tbrbalaviva4 = false;\r\n //bala = null;\r\n }\r\n\r\n if (balathermo4.getPosY() > getHeight()) {\r\n tbrbalaviva4 = false;\r\n //bala = null;\r\n }\r\n\r\n if (balathermo4.getPosY() < 0) {\r\n tbrbalaviva4 = false;\r\n //bala = null;\r\n }\r\n }\r\n\r\n // si la bala sale del frame balaviva = false\r\n if (balathermo5 != null) {\r\n if (balathermo5.getPosX() > getWidth()) {\r\n tbrbalaviva5 = false;\r\n //bala = null;\r\n }\r\n\r\n if (balathermo5.getPosX() < 0) {\r\n tbrbalaviva5 = false;\r\n //bala = null;\r\n }\r\n\r\n if (balathermo5.getPosY() > getHeight()) {\r\n tbrbalaviva5 = false;\r\n //bala = null;\r\n }\r\n\r\n if (balathermo5.getPosY() < 0) {\r\n tbrbalaviva5 = false;\r\n //bala = null;\r\n }\r\n }\r\n\r\n for (int i = 0; i < lista.size(); i++) {\r\n Malo davidj = (Malo) lista.get(i);\r\n\r\n if (jack.intersecta(davidj)) {\r\n\r\n bomb.play(); //sonido al colisionar\r\n vida--;\r\n if ((davidj.getPosY() + davidj.getAlto() - 3) < jack.getPosY()) {\r\n davidj.setPosY(davidj.getPosY() - 50);\r\n }\r\n\r\n if ((davidj.getPosY() + 3) > jack.getPosY()) {\r\n davidj.setPosY(davidj.getPosY() + 50);\r\n }\r\n\r\n if ((davidj.getPosX() + davidj.getAncho() - 3) < jack.getPosX()) {\r\n davidj.setPosX(davidj.getPosX() - 50);\r\n }\r\n\r\n if ((davidj.getPosX() + 3) > jack.getPosX()) {\r\n davidj.setPosX(davidj.getPosX() + 50);\r\n }\r\n\r\n }\r\n if (bala != null) {\r\n if (bala.intersecta(davidj)) {\r\n\r\n score += 5;\r\n //Los asteroides aparecen en un rando random\r\n\r\n bala = null;\r\n balaviva = false;\r\n movbala = false;\r\n lista.remove(i);\r\n randomo = ((int) (Math.random() * (4 - 1) + 1));\r\n\r\n }\r\n }\r\n\r\n }\r\n\r\n if (tonybr != null) {\r\n if (jack.intersecta(tonybr)) {\r\n vidatbr--;\r\n vida = 0;\r\n Muerto();\r\n if ((tonybr.getPosY() + tonybr.getAlto() - 3) < jack.getPosY()) {\r\n tonybr.setPosY(tonybr.getPosY() - 500);\r\n }\r\n\r\n if ((tonybr.getPosY() + 3) > jack.getPosY()) {\r\n tonybr.setPosY(tonybr.getPosY() + 500);\r\n }\r\n\r\n if ((tonybr.getPosX() + tonybr.getAncho() - 3) < jack.getPosX()) {\r\n tonybr.setPosX(tonybr.getPosX() - 500);\r\n }\r\n\r\n if ((tonybr.getPosX() + 3) > jack.getPosX()) {\r\n tonybr.setPosX(tonybr.getPosX() + 500);\r\n }\r\n }\r\n\r\n if (balathermo != null) {\r\n if (balathermo.intersecta(jack)) {\r\n vida--;\r\n tbrbalaviva = false;\r\n }\r\n }\r\n\r\n if (bala != null) {\r\n if (bala.intersecta(tonybr)) {\r\n\r\n score += 5;\r\n vidatbr--;\r\n bala = null;\r\n balaviva = false;\r\n movbala = false;\r\n }\r\n }\r\n }\r\n if (malo != null) {\r\n if (jack.intersecta(malo)) {\r\n vidamala--;\r\n vida = 0;\r\n Muerto();\r\n if ((malo.getPosY() + malo.getAlto() - 3) < jack.getPosY()) {\r\n tonybr.setPosY(tonybr.getPosY() - 500);\r\n }\r\n\r\n if ((malo.getPosY() + 3) > jack.getPosY()) {\r\n malo.setPosY(malo.getPosY() + 500);\r\n }\r\n\r\n if ((malo.getPosX() + malo.getAncho() - 3) < jack.getPosX()) {\r\n malo.setPosX(malo.getPosX() - 500);\r\n }\r\n\r\n if ((malo.getPosX() + 3) > jack.getPosX()) {\r\n malo.setPosX(malo.getPosX() + 500);\r\n }\r\n }\r\n\r\n if (balathermo1 != null) {\r\n if (balathermo1.intersecta(jack)) {\r\n vida--;\r\n tbrbalaviva1 = false;\r\n }\r\n }\r\n\r\n if (bala != null) {\r\n if (bala.intersecta(malo)) {\r\n\r\n score += 5;\r\n //Los asteroides aparecen en un rando random\r\n vidamala--;\r\n bala = null;\r\n balaviva = false;\r\n movbala = false;\r\n }\r\n }\r\n }\r\n\r\n if (Boss != null) {\r\n if (jack.intersecta(Boss)) {\r\n vidamalo2--;\r\n vida = 0;\r\n Muerto();\r\n if ((Boss.getPosY() + Boss.getAlto() - 3) < jack.getPosY()) {\r\n Boss.setPosY(Boss.getPosY() - 500);\r\n }\r\n\r\n if ((Boss.getPosY() + 3) > jack.getPosY()) {\r\n Boss.setPosY(Boss.getPosY() + 500);\r\n }\r\n\r\n if ((Boss.getPosX() + Boss.getAncho() - 3) < jack.getPosX()) {\r\n Boss.setPosX(Boss.getPosX() - 500);\r\n }\r\n\r\n if ((Boss.getPosX() + 3) > jack.getPosX()) {\r\n Boss.setPosX(Boss.getPosX() + 500);\r\n }\r\n\r\n }\r\n\r\n if (balathermo2 != null) {\r\n if (balathermo2.intersecta(jack)) {\r\n vida--;\r\n tbrbalaviva2 = false;\r\n }\r\n }\r\n\r\n if (balathermo3 != null) {\r\n if (balathermo3.intersecta(jack)) {\r\n vida--;\r\n tbrbalaviva3 = false;\r\n }\r\n }\r\n\r\n if (balathermo4 != null) {\r\n if (balathermo4.intersecta(jack)) {\r\n vida--;\r\n tbrbalaviva4 = false;\r\n }\r\n }\r\n\r\n if (balathermo5 != null) {\r\n if (balathermo5.intersecta(jack)) {\r\n vida--;\r\n tbrbalaviva5 = false;\r\n }\r\n }\r\n\r\n if (bala != null) {\r\n if (bala.intersecta(Boss)) {\r\n\r\n score += 5;\r\n //Los asteroides aparecen en un rando random\r\n vidamala--;\r\n bala = null;\r\n balaviva = false;\r\n movbala = false;\r\n }\r\n\r\n }\r\n }\r\n\r\n if (objetoammo != null) {\r\n if (jack.intersecta(objetoammo)) {\r\n ammo += 15;\r\n objetoammo = null;\r\n ammopalma = false;\r\n guncock.play();\r\n }\r\n }\r\n\r\n /* if(tonybr != null){\r\n if(bala.intersecta(tonybr)){\r\n tonybr.setVida(tonybr.getVida() - 1);\r\n }\r\n }*/\r\n }", "title": "" }, { "docid": "380a4e8972ca118a62ce1471c283f634", "score": "0.57236385", "text": "private void checkAtBottom()\n {\n if (isAtEdge())\n {\n MyWorld world = (MyWorld)getWorld();\n stillInWorld = false;\n world.removeObject(this);\n world.addScore(-25);\n }\n\n }", "title": "" }, { "docid": "3803ce49b7fcdc0465e4c461ad7285f8", "score": "0.57225823", "text": "private void checkPositionLimits() {\n if (this.position.x <= levelMapManager.levelBoundingRectStickman.getX())\n this.physicsBody.getPosition().x = levelMapManager.levelBoundingRectStickman.getX();\n if (this.position.x > levelMapManager.levelBoundingRectStickman.getWidth())\n this.physicsBody.getPosition().x = levelMapManager.levelBoundingRectStickman.getWidth();\n\n if (this.position.y + STICKMAN_HITBOX_HEIGHT / 2 <= levelMapManager.levelBoundingRectStickman.getY()) {\n this.physicsBody.setTransform(this.physicsBody.getPosition().x, levelMapManager.levelBoundingRectStickman.getY() + STICKMAN_HITBOX_HEIGHT / 2 / Constants.PHYSICS_PIXELS_TO_METERS, 0);\n stopFalling();\n }\n\n if (this.position.y > levelMapManager.levelBoundingRectStickman.getHeight())\n this.physicsBody.getPosition().y = levelMapManager.levelBoundingRectStickman.getHeight();\n }", "title": "" }, { "docid": "e2258dca6cb44cf36670728a15051add", "score": "0.5721796", "text": "public void move() {\r\n\t\t//reset collision checks:\r\n\t\t\r\n\t\t//Only resetting these if not airborne, otherwise the debug collision check is always false if jumping for top/bottom\r\n\t\tif(!airborne) {\r\n\t\t\tcollisionUp \t= false;\r\n\t\t\tcollisionDown \t= false;\r\n\t\t}\r\n\t\tcollisionLeft \t= false;\r\n\t\tcollisionRight \t= false;\r\n\r\n\t\tmoveX();\r\n\t\tmoveY();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "59bbd210e1a05b14e9ba8523275546f7", "score": "0.57193017", "text": "public boolean checkSideCollisions(boolean leftSide) {\r\n\t\tboolean intersects = false;\r\n\t\tArrayList<Sprite> grounds = levels.get(currentLevel).getGrounds();\r\n\t\tfor(int i = 0; i < grounds.size(); i++) {\r\n\t\t\tSprite surface = grounds.get(i);\r\n\t\t\tif(leftSide) {\r\n\t\t\t\tintersects = surface.intersectsToTheLeftSide(player);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tintersects = surface.intersectsToTheRightSide(player);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(intersects) {\r\n\t\t\t\tplayer.setY(surface.getY() - player.getSizeX());\r\n\t\t\t\tjumpInitiated = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn intersects;\r\n\t}", "title": "" }, { "docid": "b2602ae8dbfdb88401a7b745b7b7ad7a", "score": "0.5707229", "text": "public void move(){\n\t\tif(horizontal && x + speed/2 > 0 && x + speed < 960){\n\t\t\tx += (speed/2);\n\t\t}\n\t\telse if(!horizontal && y + speed > 0 && y + speed < 620){\n\t\t\ty += speed;\n\t\t\tif(y == 13){\n\t\t\t\tframe.dispose();\n\t\t\t\tWinner winner = new Winner();\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(y);\n\t\t}\n\t\tcomponent.repaint();\n\t}", "title": "" }, { "docid": "4e6a4c9cba4d3c9caf6402f1b65fe594", "score": "0.57053584", "text": "public void move(Rectangle bounds, Player player) {\n\t\tif (player.getDistance(this) < VISION) {\n\t\t\tint x = getX();\n\t\t\tint y = getY();\n\n\t\t\tint newVelX = (player.getX() - x);\n\t\t\tint newVelY = (player.getY() - y);\n\n\t\t\tint hyp = (int) Math.sqrt((newVelX * newVelX) + (newVelY * newVelY));\n\n\t\t\tnewVelX = (int) (2 * (double) newVelX / (double) hyp);\n\t\t\tnewVelY = (int) (2 * (double) newVelY / (double) hyp);\n\n\t\t\tsetX(x + newVelX);\n\t\t\tsetY(y + newVelY);\n\n\t\t\t// Check left edge collision\n\t\t\tif (x < bounds.x && velX < 0) {\n\t\t\t\t// Make ball stay inbounds and bounce off bound\n\t\t\t\tvelX = -velX;\n\t\t\t\tsetX(x + 2 * (bounds.x - x));\n\n\t\t\t\t// Check right edge collision\n\t\t\t} else if ((x + getWidth()) > (bounds.x + bounds.width) && velX > 0) {\n\t\t\t\tvelX = -velX;\n\t\t\t\tsetX(x - 2 * ((x + getWidth()) - (bounds.x + bounds.width)));\n\n\t\t\t\t// Check for top edge collision\n\t\t\t} else if (y < bounds.y && velY < 0) {\n\t\t\t\tvelY = -velY;\n\t\t\t\tsetY(y + 2 * (bounds.y - y));\n\n\t\t\t\t// Check for bottom edge collision\n\t\t\t} else if ((y + getHeight()) > (bounds.y + bounds.height) && velY > 0) {\n\t\t\t\tvelY = -velY;\n\t\t\t\tsetY(y - 2 * ((y + getHeight()) - (bounds.y + bounds.height)));\n\t\t\t}\n\t\t} else {\n\t\t\t((Creature)this).move(bounds);\n\t\t}\n\t}", "title": "" }, { "docid": "2c12796790bb72cf805ead44b80a9d5b", "score": "0.5705092", "text": "void moveLeft();", "title": "" }, { "docid": "2c12796790bb72cf805ead44b80a9d5b", "score": "0.5705092", "text": "void moveLeft();", "title": "" }, { "docid": "aaf9e358081bacebde7710de8f0a1dd8", "score": "0.570072", "text": "boolean hasNorth() {\n return yPosition>=GUI.tileWidth;\n// return yPosition!=0;\n }", "title": "" }, { "docid": "08b788f7e0df5873c9d951efb141aabf", "score": "0.56994873", "text": "public void goNorth() {\n \tif (!GAME.encounterIsWaitingForInput) { //falls du nicht im kampf bist.\r\n \t\tGAME.goNorth();\r\n \t}\r\n \telse {\r\n \t\tconsoleWrite(\"Du kannst nicht davon rennen!\"); //falls du im kampf bist darfst du nicht davon rennen.\r\n \t}\r\n\t}", "title": "" }, { "docid": "cfd322ce2a1dd7addde6df2870371532", "score": "0.5698219", "text": "public void playerMove() {\n Player p = this.game.getTurn();\n int[] newPos = canMoveTo(p, mouseX - 1, mouseY - 1);\n if (newPos != null) {\n p.movePlayer(newPos);\n if (!this.doubleMove) {\n turnProgression = 3;\n } else {\n this.doubleMove = false;\n }\n }\n //check if player on the Goal tile\n if (this.game.getBoard()\n .getTile(p.getX(), p.getY()) instanceof GoalTile) {\n WinScreenGUI.setGame(game);\n System.out.println(\"Winner: \" + p.getProfile());\n Game.setWinner(p.getProfile());\n FXMLLoader loader =\n new FXMLLoader(getClass().getResource(\"WinScreen.fxml\"));\n\n Parent winningMenuFXMLParent = null;\n try {\n winningMenuFXMLParent = loader.load();\n } catch (IOException e) {\n System.out.println(\"Hey THIS ERRORED\");\n }\n Scene winningMenuFXMLScene = new Scene(winningMenuFXMLParent);\n Stage primaryStage =\n (Stage) (baseBoarderPane.getScene().getWindow());\n // This line gets the stage the 'Play' button's action event came from\n primaryStage.setScene(winningMenuFXMLScene);\n WinScreenGUI.setGame(game);\n primaryStage.show();\n }\n drawCanvas();\n }", "title": "" }, { "docid": "75530fe4f9445292cccc05376c4138bd", "score": "0.5691631", "text": "public void doLogic() {\n\t\t// swap over horizontal movement and move down the\n\t\t// screen a bit\n\t\tdx = -dx;\n\t\ty += 10;\n\t\t\n\t\t// if we've reached the bottom of the screen then the player\n\t\t// dies\n\t\tif (y > 570) {\n\t\t\tgame.notifyDeath();\n\t\t}\n\t}", "title": "" }, { "docid": "a95267cdc435064db7cf59cfbacfd74c", "score": "0.56828684", "text": "public void move()\n {\n //see if it has hit another pinball\n machine.ballCollision(this);\n \n // check if it has hit the wall\n machine.wallCollision(this);\n \n // compute new position\n currentYLocation += speedYTravel;\n currentXLocation += speedXTravel;\n }", "title": "" }, { "docid": "b6d5b5d9f8df0628c13e946cd0cbb941", "score": "0.56823736", "text": "private boolean moveLaneRight() {\n if (m_vScreenPos.x < m_vRight.x) { //Check if on right lane\n //Check if on center lane\n if (m_vScreenPos.x >= m_vCenter.x) { m_fScreenTargetX = m_vRight.x; } //Move to the right lane\n //On the left lane\n else { m_fScreenTargetX = m_vCenter.x; } //Move to the center lane\n m_bLaneMoveLeft = false; //Set move direction\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "25ef6c73d6442e920e54878f8daf1187", "score": "0.5673406", "text": "public void moveLeft();", "title": "" }, { "docid": "8c95aaf29c9c95538699ce7ddd735cc2", "score": "0.56674474", "text": "@Override\n public void handle(MouseEvent e) {\n if (e.getSceneX() > getFoxY(checkers) && (e.getSceneX() < (getFoxY(checkers) + 75))\n && (e.getSceneY() > getFoxX(checkers) && (e.getSceneY() < getFoxX(checkers) + 75))) {\n\n canvas.addEventHandler(MouseEvent.MOUSE_CLICKED,\n new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n\n double mY = event.getSceneY();\n double mX = event.getSceneX();\n //check if move is legal, then move Fox\n if (isLegal(getMoveFoxX(mY), getMoveFoxY(mX), currentX, currentY)) {\n moveFox(checkers, getMoveFoxX(mY), getMoveFoxY(mX), currentX, currentY);\n currentX = (int) getMoveFoxX(mX);\n currentY = (int) getMoveFoxY(mY);\n }\n //System.out.println(\"Working\");\n\n //Prints all checkerboard values for testing\n for (int i = 0; i < 8; i++) {\n for (int j = 0; j < 8; j++) {\n System.out.println(\"\" + i + j + \"= \" + checkers[i][j]);\n }\n }\n //draws the moved piece\n ClientThread.drawPieces(gc, square, checkers);\n\n if(foxWins(checkers) == true){\n winner.setText(\"FOX WINS\");\n }\n }\n });\n\n\n }\n }", "title": "" }, { "docid": "1d517c78e2bf3eabcdd4622c881ea68f", "score": "0.56587785", "text": "private boolean outOfBound(int moveX, int moveY) {\n if(player.getCurrentPosition().getX() + moveX > getColumn() || player.getCurrentPosition().getY() + moveY > getRow()\n || player.getCurrentPosition().getX() + moveX < 0 || player.getCurrentPosition().getY() + moveY < 0 ) {\n\n return false;\n }else\n return true;\n }", "title": "" }, { "docid": "dface87166559c91cefa7d304eb0984e", "score": "0.5654995", "text": "public void move()\n {\n if (handler.getMouseManager().getTokenGrabbed() == this)\n {\n targetX = handler.getMouseManager().getMouseX() - (width/2) + handler.getGameCamera().getXOffset();\n targetY = handler.getMouseManager().getMouseY() - (height/2) + handler.getGameCamera().getYOffset();\n }\n else\n {\n targetX = (float) (Math.floor(x/Tile.TILEWIDTH)*Tile.TILEWIDTH);\n targetY = (float) (Math.floor(y/Tile.TILEHEIGHT)*Tile.TILEHEIGHT);\n }\n x = targetX;\n y = targetY;\n }", "title": "" }, { "docid": "f58fe65e9dc920d8a41041e4656496c1", "score": "0.5653318", "text": "@Override\n\tpublic void handleInput() {\n\t\tif (MyInput.isPressed(MyInput.BUTTON1) && cl.isPlayerOnGround()) {\n\t\t\tGdx.app.log(\"CONTROL\", \"JUMPED \\n\");\n\t\t\tplayer.getBody().applyForceToCenter(0, PLAYER_JUMP, true);\n\t\t}\n\n\t\t\t// Switch Block color\n\t\tif (MyInput.isPressed(MyInput.BUTTON2)) {\n\t\t\tswitchBlocks();\n\t\t}\n\n\t\t// MOUSE / TOUCH INPUT\n\n\t\t// Left side of screen switches blocks, right side of the screen jumps!\n\n\t\tif (MyInput.isPressed(MyInput.BUTTON1) && cl.isPlayerOnGround()) {\n\t\t\tplayer.getBody().applyForceToCenter(0, PLAYER_JUMP, true);\n\t\t}\n\n\t\t// Switch Block color\n\t\tif (MyInput.isPressed()) {\n\t\t\tif(MyInput.x < Gdx.graphics.getWidth() /2 ) {\n\t\t\t\tswitchBlocks();\n\t\t\t} else {\n\t\t\t\tplayer.getBody().applyForceToCenter(0, PLAYER_JUMP, true);\n\t\t\t}\n\t\t}\n\n\t}", "title": "" } ]
f0455335ea490f5dc60d7804c3c79f26
Gets the payload of the tag (always null for TAG_End).
[ { "docid": "5ce7dda46094c0668060459c12510884", "score": "0.6263342", "text": "@Override\n public Object getPayload() {\n return null;\n }", "title": "" } ]
[ { "docid": "606b20ecef9d6dc12d51a0d4f866bb70", "score": "0.67935044", "text": "byte[] getPayload();", "title": "" }, { "docid": "13385ad896526b514abce9582c52e3d7", "score": "0.6729747", "text": "public Object getPayload()\n {\n return this.payload;\n }", "title": "" }, { "docid": "fe8c25b7a39e43ea2f1c6fe2498fc62f", "score": "0.66917545", "text": "public Object getPayload() {\n return payload;\n }", "title": "" }, { "docid": "94aa05e9e0333440cbef3518b0ab509d", "score": "0.6685219", "text": "public String getPayload() {\n return payload;\n }", "title": "" }, { "docid": "18849470c0177e34ae3b6fef5fa8ff9b", "score": "0.66728187", "text": "T getPayload();", "title": "" }, { "docid": "e74d520bf4be83fdbc3b0404d19a3e21", "score": "0.66679394", "text": "com.google.protobuf.ByteString getPayload();", "title": "" }, { "docid": "e74d520bf4be83fdbc3b0404d19a3e21", "score": "0.66679394", "text": "com.google.protobuf.ByteString getPayload();", "title": "" }, { "docid": "e74d520bf4be83fdbc3b0404d19a3e21", "score": "0.66679394", "text": "com.google.protobuf.ByteString getPayload();", "title": "" }, { "docid": "176dd6f805478c99ce9bdb5ade774da1", "score": "0.6658048", "text": "public T getPayload()\n {\n return payload;\n }", "title": "" }, { "docid": "ebf9e69997b5f4ddccb67172a4db293d", "score": "0.6640121", "text": "public Payload getPayload() {\n\t\treturn this.payload;\n\t}", "title": "" }, { "docid": "42446d9ef79c114dd4484ed978b1bb64", "score": "0.66298974", "text": "public byte[] getPayload();", "title": "" }, { "docid": "dfc14dd7415935fb48f330dc72a09031", "score": "0.6625806", "text": "public PayloadT getPayload() {\n\t\treturn payload;\n\t}", "title": "" }, { "docid": "60e0de7e8ab9fa2b008628e35238e7bc", "score": "0.6601315", "text": "public byte[] getPayload() {\r\n return _payload;\r\n }", "title": "" }, { "docid": "c85c0e3f1762271b14b1547d9f6769c1", "score": "0.65906143", "text": "public java.lang.CharSequence getPayload() {\n return payload;\n }", "title": "" }, { "docid": "eb2efe6e9004e6adea751bd097b6aacb", "score": "0.65761936", "text": "@Override\n\tpublic String getPayload() {\n\t\treturn payload;\n\t}", "title": "" }, { "docid": "3aeec880403fe6c55d08cbea8ce8c51c", "score": "0.6554632", "text": "public byte[] getPayload() {\n return payload;\n }", "title": "" }, { "docid": "80d4d5afb0941f91e0975fddb71f620f", "score": "0.65254533", "text": "public java.lang.CharSequence getPayload() {\n return payload;\n }", "title": "" }, { "docid": "d355bf5ab25c03c6214e4272382663f4", "score": "0.6510387", "text": "public com.google.protobuf.ByteString getPayload() {\n return payload_;\n }", "title": "" }, { "docid": "d355bf5ab25c03c6214e4272382663f4", "score": "0.6509752", "text": "public com.google.protobuf.ByteString getPayload() {\n return payload_;\n }", "title": "" }, { "docid": "a775a418fafa950612f9f211b9a5accb", "score": "0.6497911", "text": "@java.lang.Override\n public com.google.protobuf.ByteString getPayload() {\n return payload_;\n }", "title": "" }, { "docid": "38c61abd93a5eec25b43bd5392bfe8c5", "score": "0.64883256", "text": "public com.google.protobuf.ByteString getPayload() {\n return payload_;\n }", "title": "" }, { "docid": "38c61abd93a5eec25b43bd5392bfe8c5", "score": "0.6488277", "text": "public com.google.protobuf.ByteString getPayload() {\n return payload_;\n }", "title": "" }, { "docid": "aef45a8ae762c9aee32f7f2af5416eec", "score": "0.6474303", "text": "@java.lang.Override\n public com.google.protobuf.ByteString getPayload() {\n return payload_;\n }", "title": "" }, { "docid": "3ea31fd921bceca9777e1886c6ce335d", "score": "0.63665813", "text": "public byte[] getPayload() {\n return Utilities.copyOf(payload);\n }", "title": "" }, { "docid": "ca34b3074cc2a97eb00cd9ba35f3a2fe", "score": "0.6267362", "text": "public byte[] getPayload() {\n return mPayload.clone();\n }", "title": "" }, { "docid": "82addfcfc65d8ec6a00f4b4dd37e71a9", "score": "0.6195186", "text": "public String getPayloadString() {\n return this.asParamString(this.postData);\n }", "title": "" }, { "docid": "15ab3d6aec534d8dc754412b3241b67e", "score": "0.6091132", "text": "public PayloadType getPayload() {\r\n\t\treturn payload;\r\n\t}", "title": "" }, { "docid": "81420b68e8b8844e4e49aa167466ddfa", "score": "0.59235686", "text": "com.google.protobuf.ByteString getTag();", "title": "" }, { "docid": "686fed1a8351100fb2678231fda9a31b", "score": "0.58982337", "text": "@SuppressLint(\"NewApi\")\n\tpublic static String readTag(Tag tag) {\n\t\tfinal Ndef ndef = Ndef.get(tag);\n\t\tif (ndef != null) {\n\t\t\tfinal NdefMessage message = ndef.getCachedNdefMessage();\n\t\t\tif (message != null) {\n\t\t\t\treturn new String(message.getRecords()[0].getPayload());\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "f4434995d99f71a2b4987e66dbad3f43", "score": "0.58944666", "text": "com.google.protobuf.ByteString\n getEventTagBytes();", "title": "" }, { "docid": "489968891dddf5728fc18c0db362a57c", "score": "0.58653903", "text": "@SuppressWarnings(\"unused\")\n public abstract String getTag();", "title": "" }, { "docid": "2a86cf145b65664e3cf1108abf9ea661", "score": "0.5712686", "text": "public byte[] payload() {\n\t\t\t \n\t\t\tbyte[] payload = new byte[receiveVariables.size()];\n\t\t\t\n\t\t\tint idx = 0;\n\t\t\tfor (Entry<String,MutableByte> entry : receiveVariables.entrySet()) {\n\t\t\t\tpayload[idx++] = entry.getValue().byteValue();\n\t\t\t}\n\n\t\t\treturn payload;\n\t }", "title": "" }, { "docid": "86d17263b7b7ed27602da31133f99967", "score": "0.56811994", "text": "@java.lang.Override\n public com.google.protobuf.ByteString getTag() {\n return tag_;\n }", "title": "" }, { "docid": "faba21574885159366cf331109cd9a2e", "score": "0.5673199", "text": "public com.google.protobuf.ByteString\n getTagBytes() {\n Object ref = tag_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n tag_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "d1083e8953a77f54e7b1455b178e6582", "score": "0.56689924", "text": "@java.lang.Override\n public com.google.protobuf.ByteString getTag() {\n return tag_;\n }", "title": "" }, { "docid": "52bdc120f46d8d70a4848f40a36ad84d", "score": "0.5666086", "text": "public Payload getPayload(String id);", "title": "" }, { "docid": "47472dae6dbb2c711b74573b2e42c460", "score": "0.56655663", "text": "public com.google.protobuf.ByteString\n getTagBytes() {\n Object ref = tag_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n tag_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "1c3313f36bd151be7706162c97ce2fb3", "score": "0.5644319", "text": "public abstract byte getTag();", "title": "" }, { "docid": "69f6a8b83eca9f6a8b056985877f27d9", "score": "0.56420046", "text": "public String getDataWithoutBodyTags() {\r\n\t\tString s = \"<body\";\r\n\t\tint start_body = getData().toLowerCase().indexOf(s);\r\n\r\n\t\tif (start_body == -1) {\r\n\t\t\tSystem.out.println(\"Didn't Find Body Tag.\");\r\n\t\t\treturn getData();\r\n\t\t}\r\n\r\n\t\t// System.out.println(\"start_b \"+start_body);\r\n\r\n\t\t// NOTE!! this was\r\n\t\tint start = getData().indexOf('>', start_body) + 1;\r\n\t\tint end = getData().toUpperCase().indexOf(INIT_STR_END);\r\n\t\tSystem.out.println(\"wo body\" + getData().length() + \" \" + start + \" \" + end + \" \"\r\n\t\t\t\t+ start_body);\r\n\r\n\t\t// PEND HIGH\r\n\t\t// string.substring() has different functionality on my machine than\r\n\t\t// on the server. No joke. str.substring(30,-1) throws exception locally,\r\n\t\t// but no exception on server, thus our catch doesn't work. Should all be fixed from\r\n\t\t// catch of start_body == -1 above.\r\n\t\ttry {\r\n\t\t\t// Logger.log(\"\"+getData().length())\r\n\t\t\treturn getData().substring(start, end);\r\n\t\t} catch (StringIndexOutOfBoundsException e) {\r\n\t\t\t// Again, this catch is now the normal case. See comment above\r\n\r\n\t\t\t// System.out.println(\"e. \"+e.getMessage());\r\n\t\t\t// System.out.println(\"!!!!!! \"+getData()+\" \"+getData().length());\r\n\t\t\t// System.out.println(start+\" \"+end);\r\n\r\n\r\n\t\t\t// System.out.println(\"Catch! Didn't Find Body Tag, hoping..\" + start + \" \" + end);\r\n\t\t\treturn getData();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ba4adc9c60d40dbebf237a9a1e25f5ba", "score": "0.56132823", "text": "java.lang.String getEventTag();", "title": "" }, { "docid": "c0c067dbfbd1f5bc14feb5eeac13f6ba", "score": "0.55999583", "text": "String getInsideTag();", "title": "" }, { "docid": "3e0b273dc9a603cbfaaa4d8573fc1a5d", "score": "0.5571577", "text": "public final String getTag() {\n return tag;\n }", "title": "" }, { "docid": "ab2f45fdd401afd7df636734a662e201", "score": "0.5554854", "text": "public String getTag() {\n Object ref = tag_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n tag_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "f85c588b1341e97aa1bdef80f53852ac", "score": "0.5553837", "text": "@Override\n public Integer getTAG() {\n return m_nTag;\n }", "title": "" }, { "docid": "e4555b7ab579cd76653faaf2dabdac71", "score": "0.55455977", "text": "@Override\r\n\tpublic String getTAG() {\n\t\treturn this.TAG;\r\n\t}", "title": "" }, { "docid": "4f4956ee5fa90bc916fc6610d885ce8b", "score": "0.554312", "text": "public HJsonObj getPayload() {\n \t\tHJsonObj payload;\n \t\ttry {\n \t\t\tJSONObject jsonPayload = hmessage.getJSONObject(\"payload\");\n \t\t\tString type = this.getType().toLowerCase();\n \t\t\tif (type.equals(\"hmeasure\")) {\n \t\t\t\tpayload = new HMeasure(jsonPayload);\n \t\t\t} else if (type.equals(\"halert\")) {\n \t\t\t\tpayload = new HAlert(jsonPayload);\n \t\t\t} else if (type.equals(\"hack\")) {\n \t\t\t\tpayload = new HAck(jsonPayload);\n \t\t\t} else if (type.equals(\"hconv\")) {\n \t\t\t\tpayload = new HConv(jsonPayload);\n \t\t\t} else {\n \t\t\t\tpayload = new HJsonDictionnary(jsonPayload);\n \t\t\t}\n \t\t} catch (JSONException e) {\n \t\t\tpayload = null;\n \t\t}\n \t\treturn payload;\n \t}", "title": "" }, { "docid": "02c0c19936876beee7d7f0bc2f358dfe", "score": "0.5542171", "text": "public String getTag() {\n Object ref = tag_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n tag_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "title": "" }, { "docid": "f4552ee3fcc78ecc402b208d81e85e81", "score": "0.5535341", "text": "public String getTag() {\n return this.tag;\n }", "title": "" }, { "docid": "f331295b2a0600ec0fcd6d042f7eb94c", "score": "0.55112845", "text": "public TAG getTag() { return tag; }", "title": "" }, { "docid": "8544af0d89c7331ef6a2d020225aa236", "score": "0.5508153", "text": "public String getTag() {\n\n return this.tag;\n }", "title": "" }, { "docid": "7174813f14d97eb6cedb43e6d83dc075", "score": "0.549338", "text": "String getTag();", "title": "" }, { "docid": "456ce5c1db847d058dd415e3a80419f9", "score": "0.54864573", "text": "@Override\n\tpublic Object getTag() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "4a82afab74f7302f3e6c7156ddbdf618", "score": "0.5486396", "text": "@Override\r\n public int getTag() {\r\n return this.tag;\r\n }", "title": "" }, { "docid": "4293bedb4940fb024157a41b702430e5", "score": "0.5478116", "text": "org.apache.pekko.remote.ContainerFormats.Payload getValue();", "title": "" }, { "docid": "1e7d61cf603dfd1d1baa38fb08f7670f", "score": "0.5457717", "text": "final int getTag() {\n\t\treturn tag;\n\t}", "title": "" }, { "docid": "d9c7b36b507957ca0168f940b3dc2f20", "score": "0.54463685", "text": "com.google.protobuf.ByteString getServerPayload();", "title": "" }, { "docid": "20a262641a1063b3e90eb0d3c9921018", "score": "0.543572", "text": "public Tag getTag() {\n\t\treturn tag;\n\t}", "title": "" }, { "docid": "d21149423602ee4ff1a993c1d614dbe1", "score": "0.5428522", "text": "public OutputStream getPayloadOutputStream() {\n return this.literalOut;\n }", "title": "" }, { "docid": "a1b563f0357e3c131e32b62216fc3e79", "score": "0.5424961", "text": "public String getTag()\r\n\t{\r\n\t\treturn tag;\r\n\t}", "title": "" }, { "docid": "d6441783d4cbf10fcf5252b38a3b0785", "score": "0.5412785", "text": "public java.lang.String getTag(){\r\n return localTag;\r\n }", "title": "" }, { "docid": "e5f8647f8272721b60b84f3074717420", "score": "0.539755", "text": "public int getPayloadType() {\n \treturn payload;\n }", "title": "" }, { "docid": "3849cde220fd060b7780ad7cc48fcc01", "score": "0.53957874", "text": "public synchronized byte[] getNextTag() {\n byte[] tagBytes = null;\n\n if (tagPool != null) {\n tagBytes = tagPool.pollFirst();\n }\n\n if (tagBytes == null) {\n long tag = nextTagId++;\n int size = encodingSize(tag);\n\n tagBytes = new byte[size];\n\n for (int i = 0; i < size; ++i) {\n tagBytes[size - 1 - i] = (byte) (tag >>> (i * 8));\n }\n }\n\n return tagBytes;\n }", "title": "" }, { "docid": "ef008beca6439d33d31f07c2c75e1359", "score": "0.5394218", "text": "private ITaggedData GetData(short tag)\n\t{\n\t\tITaggedData result = null;\n\t\tif (Find(tag))\n\t\t{\n\t\t\tresult = Create(tag, _data, _readValueStart, _readValueLength);\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "15e113cacb00428c22d90bdf8d2acb7b", "score": "0.5389268", "text": "public String getTag() {\r\n return tag;\r\n }", "title": "" }, { "docid": "3168173cea57b09e12649ce7862b9e5f", "score": "0.5389126", "text": "@Override\r\n public int getTag() {\r\n return tag;\r\n }", "title": "" }, { "docid": "3f33e21cb16db7e2c0db3c9de18466ce", "score": "0.5383444", "text": "public String getTag() {\n return tag;\n }", "title": "" }, { "docid": "3f33e21cb16db7e2c0db3c9de18466ce", "score": "0.5383444", "text": "public String getTag() {\n return tag;\n }", "title": "" }, { "docid": "3f33e21cb16db7e2c0db3c9de18466ce", "score": "0.5383444", "text": "public String getTag() {\n return tag;\n }", "title": "" }, { "docid": "e12aef655d5389514e728771f9ba5499", "score": "0.537273", "text": "public java.lang.String getEventTag() {\n java.lang.Object ref = eventTag_;\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 eventTag_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "a5f2b3a53711ded8b3f41bc4acfe939d", "score": "0.53513443", "text": "@Override\n public int getTag() {\n return tag;\n }", "title": "" }, { "docid": "75f8c43879bb9549cb03b7ae20154c27", "score": "0.53502184", "text": "public int getPayloadLength() {\n return this.getPayloadString().length();\n }", "title": "" }, { "docid": "2e776d86e82dc8e07bdda9c6f0bb28c7", "score": "0.53453404", "text": "public com.google.protobuf.ByteString\n getEventTagBytes() {\n java.lang.Object ref = eventTag_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n eventTag_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "f0c1c16d1b26030bedb1d03feb4cb790", "score": "0.5335689", "text": "public int getTag()\r\n {\r\n return this.tag;\r\n }", "title": "" }, { "docid": "378eb379b99ded71d0ec716a3e485906", "score": "0.5327033", "text": "public String toString() {\n return myPayload.substring(2);\n }", "title": "" }, { "docid": "80ff307a59c1359107575c85295a0afa", "score": "0.5311069", "text": "public java.lang.String getEventTag() {\n java.lang.Object ref = eventTag_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n eventTag_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "145ba3077ccf8650e0e30399ceba177b", "score": "0.5307417", "text": "public InputStream getPayloadStream() {\n return payloadSupplier.get();\n }", "title": "" }, { "docid": "9988fe0d01644cae9f7dd20ff95ffc13", "score": "0.53068066", "text": "public Object getTagValue(String tagName) {\n\n\t\treturn getPicture().getMainDisplay().getAnimationsHandler()\n\t\t\t\t.getData(tagName);\n\t}", "title": "" }, { "docid": "2da6f629a83cdda8858f7b0a362e312b", "score": "0.53044343", "text": "@XmlElement\n public String getTag() {\n return tag;\n }", "title": "" }, { "docid": "8d88c759ce55af575701a3f99eb755b8", "score": "0.53020644", "text": "public String getTag() {\n\t\t\treturn tag;\n\t\t}", "title": "" }, { "docid": "84ac84eb2df6316a26983a733894e1e6", "score": "0.529722", "text": "public List<ByteBuffer> getRequestPayload() {\n return this.requestPayload;\n }", "title": "" }, { "docid": "a749e7264fe836779d1c9a5ebba77a1c", "score": "0.52965164", "text": "public com.google.protobuf.ByteString\n getEventTagBytes() {\n java.lang.Object ref = eventTag_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n eventTag_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "52fe05011d67c7e34d926dd314847fd5", "score": "0.52938163", "text": "public org.apache.pekko.remote.ContainerFormats.Payload getValue() {\n return value_ == null ? org.apache.pekko.remote.ContainerFormats.Payload.getDefaultInstance() : value_;\n }", "title": "" }, { "docid": "4a6f5966d6e349820e47fb9e19c05bdb", "score": "0.52892023", "text": "protected abstract String getTagWanted();", "title": "" }, { "docid": "4de0c460c941e17fdec57a3b2d0d4ab3", "score": "0.5288985", "text": "public int getTag() {\n return tag;\n }", "title": "" }, { "docid": "4de0c460c941e17fdec57a3b2d0d4ab3", "score": "0.5288985", "text": "public int getTag() {\n return tag;\n }", "title": "" }, { "docid": "4de0c460c941e17fdec57a3b2d0d4ab3", "score": "0.5288985", "text": "public int getTag() {\n return tag;\n }", "title": "" }, { "docid": "96ca103c7f591e1f77e1013ed95e8c42", "score": "0.5225198", "text": "String getStartTag();", "title": "" }, { "docid": "9d2973158fe89aa824445c44651d8441", "score": "0.52204925", "text": "String getOutsideTag();", "title": "" }, { "docid": "f14732d71ab265cd4453564902bc76f4", "score": "0.52145404", "text": "public static byte[] payloadExtract(byte[] message){\r\n\t\tint length = (int)message[5]; \r\n\t\tbyte[] payload = new byte[length];\r\n\t\tfor(int i=6;i<length+6;i++){\r\n\t\t\tpayload[i-6] = message[i];\r\n\t\t}\r\n\t\treturn payload;\r\n\t}", "title": "" }, { "docid": "a6486cc2ba24d7ab6c924e0fd4a7271b", "score": "0.51935124", "text": "public final int tag() {\n return tag;\n }", "title": "" }, { "docid": "cd7af38d977b56b4a9300a4f36fcaf28", "score": "0.518359", "text": "public T getTail(){\n\t\treturn tail.data;\n\t}", "title": "" }, { "docid": "1b296cc8ab27f7196c7b369b1575bfef", "score": "0.5171244", "text": "public String getStr(String tagToGet)\r\n\t{\r\n\t\tString thisTag=this.getProperty(tagToGet);\r\n\t\tif(thisTag==null) return \"\";\r\n\t\treturn thisTag;\r\n\t}", "title": "" }, { "docid": "bbfabb644fa198ad93aa699af1344e1a", "score": "0.5157672", "text": "protected Buffer clonePayload() {\n if (this.payload != null) {\n return this.payload.clone();\n }\n\n return null;\n }", "title": "" }, { "docid": "da8f4997c76de009cfebff441f7d84fa", "score": "0.51547337", "text": "Tag getTag();", "title": "" }, { "docid": "0afa35a4723da6e8d57721c833416b65", "score": "0.51526713", "text": "public String getTag() {\n\t\treturn new String(XML_TAG);\n\t}", "title": "" }, { "docid": "64aa460147b0d670ac62438da21e1daa", "score": "0.5152512", "text": "public byte[] getPacketBytes() {\n\t\tif (payload == null) {\n\t\t\tbyte[] ret = new byte[2];\n\t\t\tret[0] = startFlag;\n\t\t\tret[1] = 2;\n\t\t\treturn ret;\n\t\t} else {\n\t\t\tbyte[] ret = new byte[payload.length + 2];\n\t\t\tret[0] = startFlag;\n\t\t\tret[1] = (byte) ((payload.length + 2) & 0xff);\n\t\t\tSystem.arraycopy(payload, 0, ret, 2, payload.length);\n\t\t\treturn ret;\n\t\t}\n\t}", "title": "" }, { "docid": "1695d9d0905cb1d5945f31a0a1bf8a43", "score": "0.5138978", "text": "S getBody();", "title": "" }, { "docid": "5a1e74994e15675d960854b2d28e3c4f", "score": "0.5132628", "text": "java.lang.String getPushText();", "title": "" }, { "docid": "7a851ccce9f2c763f6092198daac622e", "score": "0.5118418", "text": "public String getTagValue(){\n\t\treturn this.tagValue;\n\t}", "title": "" }, { "docid": "73d286fcf2353a0e44ccbd6dd1c1f440", "score": "0.5102137", "text": "public WebObjectProperty getTag() {\n\t\treturn tag;\n\t}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "d687ddf503e058c3eb307e009075d8eb", "score": "0.0", "text": "@Override\n\tpublic void initViews() {\n\t\tid = getIntent().getIntExtra(\"id\", 0);\n\t\tsetBack();\n\t\tshowTitle(\"通知\");\n\t}", "title": "" } ]
[ { "docid": "c4efc9f9911178a27ec9261384d5f141", "score": "0.66616714", "text": "public void mo12644zk() {\n }", "title": "" }, { "docid": "81758c2988d9979c7d4b3fd5b3cce0e5", "score": "0.6566483", "text": "@Override\r\n\tpublic void pular() {\n\r\n\t}", "title": "" }, { "docid": "118f2b8a20f48999973063ac332d07d3", "score": "0.6563993", "text": "@Override\r\n\t\t\tpublic void atras() {\n\r\n\t\t\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65278774", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "5d259e9a9ed31ac29902b25db191acd1", "score": "0.6491197", "text": "@Override\n\tpublic void bewegen() {\n\t\t\n\t}", "title": "" }, { "docid": "d0a79718ff9c5863618b11860674ac5e", "score": "0.64641994", "text": "@Override\n\tpublic void comer() {\n\n\t}", "title": "" }, { "docid": "5697bde38a38a77f3a0bd238fb737c11", "score": "0.6364729", "text": "@Override\n public int getDochody() {\n return 0;\n }", "title": "" }, { "docid": "777efb33041da4779c6ec15b9d85097c", "score": "0.63003165", "text": "@Override\r\n\tpublic void attaque() {\n\t\t\r\n\t}", "title": "" }, { "docid": "85b25c664df01fd0b02e103c9bbc8372", "score": "0.62679124", "text": "@Override\r\n\tpublic void arreter() {\n\r\n\t}", "title": "" }, { "docid": "df89b968807fade64158ed6c7401bc7a", "score": "0.6251392", "text": "@Override\r\n\tpublic void afficher() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6237362", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "27e4479db2c37a2e77fe796119b66d4b", "score": "0.61936283", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\r\n\t\t\t}", "title": "" }, { "docid": "a56ce606ea5cc945279ea9725eed5272", "score": "0.6159551", "text": "@Override\n\tpublic void alearga() {\n\t\t\n\t}", "title": "" }, { "docid": "07779d53803dc6875c03bdee2e1afeb5", "score": "0.6132161", "text": "@Override\n public void ordenar() {\n }", "title": "" }, { "docid": "b9936bc3db0ac97ae50d7643a27379b4", "score": "0.61193323", "text": "@Override\n\tpublic void intercourse() {\n\n\t}", "title": "" }, { "docid": "35e5940d13f06d1f0d6a21cf2739c70a", "score": "0.61117256", "text": "public function() {}", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.6059389", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "ae645a2585d37e320a8854cbd4c60db8", "score": "0.603307", "text": "@Override\n\tpublic void afficher() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "829bb71476cb87bb452950e0e97007e6", "score": "0.6019835", "text": "@Override\n\tprotected void dataAcquisition() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.598976", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.598976", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.598976", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.598976", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "8d2080edd6605bcfb742d32fd1a0091e", "score": "0.59731764", "text": "@Override\n\tpublic void ilerle() {\n\n\t}", "title": "" }, { "docid": "ee0f5f270c3e0eea9f37c3d1e42b1161", "score": "0.5962932", "text": "public void mo12736g() {\n }", "title": "" }, { "docid": "2aee513697daff4bfe2636e5d0fa9a30", "score": "0.5960253", "text": "@Override\n\tpublic void bewegeNachUnten() {\n\n\t}", "title": "" }, { "docid": "ced4b47c7129b2184e6a77b2a8798fd1", "score": "0.5946297", "text": "@Override\n public void annuler() {\n\n }", "title": "" }, { "docid": "cb1c09afbbe0ad234f211aa36d586f4e", "score": "0.59103566", "text": "@Override\r\n\t\tprotected void update() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5903432", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "5bb37ed5e0a08c04cb9e970f3e334584", "score": "0.5900665", "text": "@Override\n\tpublic void accion() {\n\n\t}", "title": "" }, { "docid": "15c9cae08ae101b3a04f9ff3b519ae04", "score": "0.5882791", "text": "public void mo8316a() {\n }", "title": "" }, { "docid": "b7288a7694313b8a4d39355a49521e40", "score": "0.5882", "text": "@Override\r\n\tpublic void atras() {\n\t\tsuper.atras();\r\n\t}", "title": "" }, { "docid": "4077955e82cce22d988577ca0a7978fc", "score": "0.5878152", "text": "@Override\n\tpublic void dormir() {\n\n\t}", "title": "" }, { "docid": "833ba2f1d8822ebbb0dddd05020c0c08", "score": "0.58703625", "text": "@Override\n\tpublic void attaque() {\n\t}", "title": "" }, { "docid": "3e9c4de332bfb94422f785054fa63ada", "score": "0.58645976", "text": "@Override\r\n\tpublic void limpiar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6b0e2e41d411b76c357d16b3eb3a159c", "score": "0.58598334", "text": "protected abstract void entschuldigen();", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5858707", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "8e75ffe6faa994ed57c6ffb8b56296fe", "score": "0.5852322", "text": "public void xiuproof() {\n\t\t\n\t}", "title": "" }, { "docid": "efaf1962840c7f5346e81dc22773c34b", "score": "0.5850078", "text": "@Override\n protected void init() {\n\n }", "title": "" }, { "docid": "39da14b1f6e1adac9c0b748811e78b68", "score": "0.58369607", "text": "public void mo12645zl() {\n }", "title": "" }, { "docid": "d87000313f7b5075ec45a2b0ee7df323", "score": "0.58221865", "text": "@Override\r\n\tprotected void location() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b7e98de900f4657495e91d5ff4bd6bd6", "score": "0.58140445", "text": "@Override\r\n\tpublic void init(){\r\n\t}", "title": "" }, { "docid": "4e86f604c407a96c75671f663064c24b", "score": "0.580598", "text": "public void mo8319b() {\n }", "title": "" }, { "docid": "cc32bfffe770f8a5c5cf88e6af231ff8", "score": "0.5799415", "text": "@Override\n\tpublic void one() {\n\t\t\n\t}", "title": "" }, { "docid": "b17089ec7f3b873adc1ebff906be9241", "score": "0.57941025", "text": "@Override\r\n\tpublic void carregar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.57931334", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "b429c7e890f65a814ea31e6014003667", "score": "0.5782731", "text": "@Override\n public int describeContents(){\n return 0;\n }", "title": "" }, { "docid": "680a0d25967a28e3b7a6643d55703105", "score": "0.57812274", "text": "public void contaaordem() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.576386", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "b901583faeb614d4d67271470c31d36c", "score": "0.5750588", "text": "@Override\n\tpublic void sare() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "92af0f4d75822a6723aebd9fcc92fafb", "score": "0.574232", "text": "@Override\n protected void initData() {\n \n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "94635a88abd93d3624c032aa22ccc337", "score": "0.5731695", "text": "@Override\n\t\t\tpublic void refresh() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "fa729e301b181004ac22fa6a16b19c1b", "score": "0.57202786", "text": "@Override\n public void init()\n {\n }", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5718783", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "0b812af084ac0cb033ab904c49294fed", "score": "0.5685316", "text": "public void mo25703a() {\n }", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.5684768", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "dc4ad5d6a5fcdc294379036f367a401b", "score": "0.5684058", "text": "@Override\n public void frenar() {\n\n }", "title": "" }, { "docid": "c0f925eed1b58e6d19fd99e8a3e26d34", "score": "0.5677166", "text": "@Override\r\n public boolean sallittu() {\r\n return false;\r\n }", "title": "" }, { "docid": "322e19fcfb5cfbd6ffce194d7e04df05", "score": "0.5665703", "text": "@Override\n\t\t\tprotected void reInitial() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "fdeab6ca2d3dd91b347a8cc2f5c862c2", "score": "0.56656164", "text": "private static void generateNew() {\n\t\t\t\t\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "18c7036dd108c40b7a27469d8b92687c", "score": "0.564357", "text": "@Override\n\tpublic void onLoadComplete() {\n\t\t\n\t}", "title": "" }, { "docid": "18c7036dd108c40b7a27469d8b92687c", "score": "0.564357", "text": "@Override\n\tpublic void onLoadComplete() {\n\t\t\n\t}", "title": "" }, { "docid": "d6d75432f50fcf22c3834bdfb660cd26", "score": "0.5641307", "text": "@Override\n public void use(){\n \n }", "title": "" }, { "docid": "9bcd15a2298e73719d7c7326027b093b", "score": "0.563811", "text": "@Override\n\tprotected void getData() {\n\n\t}", "title": "" }, { "docid": "c54df76b32c9ed90efddc6fd149a38c7", "score": "0.5628332", "text": "@Override\n protected void init() {\n }", "title": "" }, { "docid": "91e98bbf9cac4e38e126d6b5c2a2ecac", "score": "0.5624502", "text": "@Override\n\tprotected void setupData() {\n\n\t}", "title": "" }, { "docid": "e41e83e59c632c7e6180786a0238f944", "score": "0.5618833", "text": "@Override\r\n\tpublic void cry() {\n\t\t\r\n\t}", "title": "" }, { "docid": "290b69adc6f043c0f6d04c952f144b7d", "score": "0.56084245", "text": "@Override\n\tpublic void ImplementRule()\n\t{\n\n\t}", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5607134", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5607134", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "9fa93751aa3acc716354baf4c9c4b1ff", "score": "0.5604908", "text": "@Override\n\tpublic void NoOftems() {\n\n\t}", "title": "" }, { "docid": "dce285146917b7d4be86c4f1ade0646e", "score": "0.5600153", "text": "@Override\r\n protected void onLoad() {}", "title": "" }, { "docid": "2698e2df29a24b9998ee11e61625c8a0", "score": "0.5599527", "text": "private void method() {\n\t\t\t}", "title": "" }, { "docid": "3767348a298bdbc42a516908dfac0022", "score": "0.5598486", "text": "public final void mo34050B() {\n }", "title": "" }, { "docid": "8436022dbd33301a64633011031cfa7b", "score": "0.55980015", "text": "protected void filtrarHoyDDPF() {\n\t\t\r\n\t}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "e774afbe0b8f3d6c74d6d3a0f59099a1", "score": "0.0", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn \"WmsPurchaseOrderQueryResponseItem[id=\"+id+\",erp_order_line_num=\"+erp_order_line_num+\",sku_no=\"+sku_no+\",qty=\"+qty+\",lot=\"+lot+\",expiration_date=\"+expiration_date+\",inventory_sts=\"+inventory_sts+\",vendor=\"+vendor+\",serial_number=\"+serial_number+\"]\";\r\n\t}", "title": "" } ]
[ { "docid": "ffe5fe3cec40acf4b0b07ea257dfa06a", "score": "0.6831473", "text": "private void apparence()\r\n\t\t{\r\n\r\n\t\t}", "title": "" }, { "docid": "838a915c9ea69d56cc37df198cff9cb2", "score": "0.67589027", "text": "@Override\n\t\t\t\tpublic void pintar() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "479340d7603590876396cc58262a3776", "score": "0.6593355", "text": "@Override\r\n\tpublic int attaquer() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "ff9130d3531037a891a2580fd00e89e9", "score": "0.649512", "text": "@Override\r\n\tpublic void refuel() {\n\r\n\t}", "title": "" }, { "docid": "4faa810505ebcb260aff0793654a731e", "score": "0.64787245", "text": "@Override\n\tpublic void refuel() {\n\t\t\n\t}", "title": "" }, { "docid": "440ce72c689aef1dd3c429cf5498732b", "score": "0.6443756", "text": "@Override\n\tpublic void pohyb() {\n\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.64127725", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "592b765f0188dd7fa8d3f1f3683fa9d7", "score": "0.62889814", "text": "@Override\n\tprotected void generateData() {\n\t\t\n\t}", "title": "" }, { "docid": "4bc8e88e84699c223ea476caacb4d454", "score": "0.6277223", "text": "@Override\r\n\tpublic void sauter() {\n\t\t\r\n\t}", "title": "" }, { "docid": "db6adf52deb87c2723f80c6df873c47d", "score": "0.6273419", "text": "public void mo4741aD() {\n }", "title": "" }, { "docid": "80d10ea62cee927f9ad0a7965909eaba", "score": "0.6230557", "text": "@Override\n\tprotected void remplit() {\n\t\t\n\t}", "title": "" }, { "docid": "95ffa256b098e9b494cb96d4874e063f", "score": "0.6218078", "text": "@Override\n\tvoid refuel() {\n\n\t}", "title": "" }, { "docid": "03d7171196199db238d56b8aeab47987", "score": "0.61277896", "text": "private void welcom() {\n\n\t}", "title": "" }, { "docid": "093a096d6e96e05b160fe2406b1e8a2d", "score": "0.61053663", "text": "@Override\n\tpublic void parir() {\n\t\t\n\t}", "title": "" }, { "docid": "ce165aec4a92510d2d7f78a45c6a1f81", "score": "0.60921794", "text": "@Override\r\n\tpublic void retirer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "23f3a7415a3f7463e8a1124d06cf4cf2", "score": "0.609125", "text": "@Override\n\tpublic void valide() {\n\t\t\n\t}", "title": "" }, { "docid": "e2c0ee2f563aa58a1d1fbb6ed1a49084", "score": "0.60562134", "text": "public void namam() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e2c0ee2f563aa58a1d1fbb6ed1a49084", "score": "0.60562134", "text": "public void namam() {\n\t\t\r\n\t}", "title": "" }, { "docid": "453637afdcc490de35afa10f347a4092", "score": "0.6052283", "text": "protected void mo4927v() {\n }", "title": "" }, { "docid": "081ae6b4d91b610b8046f5ebfe7ba326", "score": "0.60330045", "text": "@Override\r\n\tpublic void fertilizar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4c9e25ea6f293e2f67da562cd4a0b657", "score": "0.60203654", "text": "public final void mo8553EA() {\n }", "title": "" }, { "docid": "5fda61f75e47491fe0badbfe139070a9", "score": "0.6020252", "text": "@Override\n\tprotected void initdata() {\n\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.60185045", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "4c957ed6879296e2489fa4cc534c9d68", "score": "0.60134614", "text": "@Override\r\n\tpublic void geefMeerprijs() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.5987973", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "e1a5212784625cf033b8b0d71916d9a8", "score": "0.59843665", "text": "@Override\r\n\tpublic void se_baisser() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ab92fd509dcf9edd6498a0302e1555e9", "score": "0.598327", "text": "@Override\n\tpublic void withdrawl() {\n\t\t\n\t}", "title": "" }, { "docid": "8a997a9a187c71891dd8b44afdbaa2a2", "score": "0.59794915", "text": "private void noOtomatis(){\n\n \n \n \n\n }", "title": "" }, { "docid": "0056b38abf02cf94e7a1afab1755d909", "score": "0.59666646", "text": "@Override\r\n\tpublic void defendre() {\n\t\t\r\n\t}", "title": "" }, { "docid": "05b92fe6834e71a629bc6b218827d95f", "score": "0.596291", "text": "Intervencion() {\n\t}", "title": "" }, { "docid": "acc39f55f5b37ab7050a241c64f9a4f9", "score": "0.59580564", "text": "@Override\n\tpublic void actualize() {\n\t\t\n\t}", "title": "" }, { "docid": "9a1a66628f4518af9fa213c400d9592e", "score": "0.5951102", "text": "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "16a4669a2213802ac94829fc8d9946ff", "score": "0.5935938", "text": "@Override\n\t\tpublic void init() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "b4f806add60ad7a84ab034d616e626e7", "score": "0.59232795", "text": "@Override\n public void Ramasser() {\n }", "title": "" }, { "docid": "fb8e5a5b14d5c382d38f4afcb6d4f55d", "score": "0.59119946", "text": "@Override\r\n\tpublic void reculer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c9b74342d0ae0e22bc7119b60588c66a", "score": "0.5897873", "text": "@Override\n\t\t\tpublic int getType() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "835a3677095e4c9f21649ab17f1ba40b", "score": "0.58930063", "text": "private static void diwalioffer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5857751", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5857751", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "47bef3d0c0ee761e936de1dada2442ec", "score": "0.5845612", "text": "private void Partida() {\r\n\t}", "title": "" }, { "docid": "c34617230b51592fc8652a6c8fc39d7b", "score": "0.5841976", "text": "@Override\n\t\t public int describeContents() { \n\t\t return 0;\n\t\t }", "title": "" }, { "docid": "39c15addb7f9cae9284ae4af01c5a911", "score": "0.58368444", "text": "@Override\r\n\tpublic void cortar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "74acf90efa52ac7bee2d28c6dee180bf", "score": "0.5808944", "text": "public void mo25302P() {\n }", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.5806823", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.5805753", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "4958a5331fdb65d09e333f006441f701", "score": "0.57990485", "text": "@Override\n public int size() {\n // TODO Auto-generated method stub\n return 0;\n }", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5794177", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "2a790ebdc342a2b85b21b58d99e8bb02", "score": "0.57934815", "text": "@Override\n\tpublic void landen()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b17089ec7f3b873adc1ebff906be9241", "score": "0.5790544", "text": "@Override\r\n\tpublic void carregar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "925ab02db0448f51f913efd603e7b5b4", "score": "0.57877386", "text": "@Override\n\tpublic void breathe() {\n\n\t\t\n\t}", "title": "" }, { "docid": "3f682cd35cc51a176e84d31bb70401ec", "score": "0.5786728", "text": "@Override\n\t\t\tpublic int Order() {\n\t\t\t\treturn 1;\n\t\t\t}", "title": "" }, { "docid": "3f682cd35cc51a176e84d31bb70401ec", "score": "0.5786728", "text": "@Override\n\t\t\tpublic int Order() {\n\t\t\t\treturn 1;\n\t\t\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "b0f36892991e52a8359bd9bea7916606", "score": "0.5773981", "text": "@Override\r\n\tpublic void Value() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b0f36892991e52a8359bd9bea7916606", "score": "0.5773981", "text": "@Override\r\n\tpublic void Value() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e7dbef6468de164eadd6d220b4ed2936", "score": "0.57625693", "text": "@Override\n\tpublic void vegetais() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "627bf6ef88b45b88b902a23fc9a6eb2b", "score": "0.5754491", "text": "@Override\r\n\tpublic void init()\r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "1985dddb6264adc2fb069a687b25f36b", "score": "0.57541007", "text": "@Override\n\tpublic void groom() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "dfa3deb699f1baaf610b77ae9370559a", "score": "0.57471", "text": "@Override\n\tpublic void gravar() {\n\n\t}", "title": "" }, { "docid": "bf96ef68c4dc727efe52fcae4e20a6c6", "score": "0.5736261", "text": "@Override\r\n public int getType() {\n return 1;\r\n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "a7ae27b45bb1a02a96ba4232264be825", "score": "0.57315516", "text": "@Override\n\tpublic void embarcar() {\n\t\t\n\t}", "title": "" }, { "docid": "8b16d59a149827c698e510477f7a4e9d", "score": "0.57292205", "text": "public void mo9585b() {\n }", "title": "" }, { "docid": "0ce436410fb4ad1af4e012ab5253a43a", "score": "0.57232136", "text": "@Override\n\tpublic void maas() {\n\t\t\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "10daa0b69fc83ea1f81c27147cd56557", "score": "0.5712038", "text": "@Override\n\tpublic void Ordenar() {\n\t\t\n\t}", "title": "" }, { "docid": "78a0d7cad7b423dba2c6000b1302b9a0", "score": "0.5705727", "text": "@Override\n\tprotected void ganharExp() {\n\t\t\n\t}", "title": "" }, { "docid": "162a468b891a508701c52265588e91b6", "score": "0.5699155", "text": "@Override\r\n public void init() {\n\r\n }", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.56991017", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "6fba68e503150b58bb627390fe723ce3", "score": "0.56942755", "text": "@Override\r\n\tpublic void servir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9e8299e02e2afca4b347ab5022949b84", "score": "0.56936175", "text": "@Override\n public void rest() {\n \n }", "title": "" }, { "docid": "ddd8d8a26991b887b8f19171d700e1d3", "score": "0.56922704", "text": "@Override\n\tpublic void proveerdatos() {\n\t\t\n\t}", "title": "" }, { "docid": "e21063ae833db842230f1d37006a0359", "score": "0.56854326", "text": "@Override public int getAtaque(){\n\n return 0;\n\n }", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "a0b89d2fbd83aefeb636ae04ad1fcd91", "score": "0.56631064", "text": "public void init(){\n\t //TODO Auto-generated method stub\n\t}", "title": "" }, { "docid": "2aed4e4b25907c376dc30c486b4f975f", "score": "0.5657416", "text": "public final void mo73469b() {\n }", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" } ]
ade5763f25c58f15226da24750908892
This method is called when the user selects "Game > Load Map".
[ { "docid": "c685b4c056017dc8cfc75f4eb43ade32", "score": "0.78088415", "text": "public void onLoadMap();", "title": "" } ]
[ { "docid": "b87a54ffa03a0c0022da6b6cfaaabacc", "score": "0.7760898", "text": "private void loadMap() {\r\n\t\ttry {\r\n\t\t\tmanager = new GameLoader();\r\n\t\t\trenderer = new GameRenderer();\r\n\t\t\trenderer.setBackground(ImageIO.read(new File(\"backgrounds/background2.png\")));\r\n\t\t\tmap = manager.loadMap(\"maps/\" + mapName, SM_22050_Hz); // use the ResourceManager to load the game map\r\n\t\t\t//backgroundMap = manager.loadOtherMaps(\"backgroundMap.txt\");\r\n\t\t\t//foregroundMap = manager.loadOtherMaps(\"foregroundMap.txt\");\r\n\t\t\tmap.setPlayer(mario); // set the game's main player to mario\r\n\t\t} catch (IOException e){\r\n\t\t\tSystem.out.println(\"Invalid Map.\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ea3cb15d265ca4eb19396dbef004d34f", "score": "0.7507858", "text": "public void loadMap() {\n\t\tMapBuilder mapBuilder = new MapBuilder(\"res/SuperMap\", \"Campus\");\n\t\tmainMap = mapBuilder.buildMap();\n\t\t// imageZoomPane.setZoomFactor(.8);\n\n\t}", "title": "" }, { "docid": "1899d03602d694537376d6866fc83c4c", "score": "0.73587537", "text": "private void loadMap(ActionEvent e, String fileName) {\n Group playCustom = new Group();\n Node source = (Node) e.getSource();\n Scene theScene = source.getScene();\n theScene.setRoot(playCustom);\n\n theScene.setFill(backgroundColour.getValue());\n Cookie.cookieColour = cookieColour.getValue();\n BarObstacle.mazeColour = mazeColour.getValue();\n\n GameManager gameManager = new GameManager(playCustom, fileName);\n gameManager.drawBoard();\n\n theScene.addEventHandler(KeyEvent.KEY_PRESSED, gameManager::movePacman);\n theScene.addEventHandler(KeyEvent.KEY_PRESSED, gameManager::restartGameOrMenu);\n }", "title": "" }, { "docid": "8a45b75861dfa016ca1179c1a7969b53", "score": "0.7295786", "text": "public void loadMap() {\n int cameraZoom = 17;\n if (mLatitude == null && mLongitude == null) {\n mLatitude = 48.379433;\n mLongitude = 31.16558;\n cameraZoom = 4;\n }\n CameraPosition cameraPosition = new CameraPosition.Builder()\n .target(new LatLng(mLatitude, mLongitude)) // Sets the center of the map to location user\n .zoom(cameraZoom) // Sets the zoom// Sets the tilt of the camera to 30 degrees\n .build(); // Creates a CameraPosition from the builder\n mMap.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition));\n\n mMap.getUiSettings().setCompassEnabled(false);\n mMap.getUiSettings().setIndoorLevelPickerEnabled(false);\n\n mMap.setOnCameraIdleListener(() -> {\n Location location = new Location(\"\");\n if (sCameraMoved) {\n mLatitude = mMap.getCameraPosition().target.latitude;\n mLongitude = mMap.getCameraPosition().target.longitude;\n location.setLatitude(mLatitude);\n location.setLongitude(mLongitude);\n convertLocationToAddress(location);\n }\n sCameraMoved = true;\n });\n }", "title": "" }, { "docid": "462385755e6c65da2ee5936ca1e7cb37", "score": "0.70954657", "text": "@Override\r\n\tpublic void onMapLoaded() {\n\t\taddLogToView(\"Map Loaded\");\r\n\t}", "title": "" }, { "docid": "6c28c88ef90b506e356af27d989ce489", "score": "0.6949107", "text": "public void onModuleLoad() {\n\t\tMaps.loadMapsApi(\"ABQIAAAAzHoqwRb2SWt_tEEAD7NVdRQIFrPB_ghrNi1FkUc2OFWkddXcQBT0x4bIjOist0pY-vrAiyL9V3TjpA\", \"2\", false, new Runnable() {\n\t\t public void run() {\n\t\t \t load();\n\t\t }\n\t });\n\t\t\n\t\t/*\n\t\tMaps.loadMapsApi(\"ABQIAAAAzHoqwRb2SWt_tEEAD7NVdRTZBdsmAwqv6TAVg88pgnojzAobnhQjzdIPTQFtDqCtKrYZa8DjkVT0_g\", \"2\", false, new Runnable() {\n\t\t public void run() {\n\t\t \t load();\n\t\t }\n\t });*/\n\t\t\n\t}", "title": "" }, { "docid": "586bf8c9bd7ada80351c4ca4357827cd", "score": "0.69281036", "text": "@Override\n public void onMapReady(GoogleMap googleMap) {\n if (googleMap == null) {\n System.out.println(\"Could not start the Map\");\n return;\n }\n\n map = googleMap;\n\n // Enable My Location\n map.setMyLocationEnabled(true);\n\n setupGame();\n }", "title": "" }, { "docid": "c7d11a8b51291d2cf0ccf12f180ee78e", "score": "0.6920215", "text": "public static void loadMap(){\n\t\tif(!isLoaded){\n\t\t\tisLoaded = true;\n\t\t\taddMapList();\n\t\t\t\n\t\t\tfor(int i = 0; i < namesOfMap.size(); i++){\n\t\t\t\tmapFile.add(new File(route.get(namesOfMap.get(i))));\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "8a4679db858a906c51244c3020aa3cdf", "score": "0.68798083", "text": "public void clickLoadMap(ActionEvent actionEvent) throws IOException {\n Stage fileStage = null;\n\n FileChooser fileChooser = new FileChooser();\n fileChooser.setTitle(\"Select map file\");\n\n fileChooser.setInitialDirectory(new File(System.getProperty(\"user.dir\")));\n FileChooser.ExtensionFilter extFilter = new FileChooser.ExtensionFilter(\"Map files(*.map)\", \"*.map\");\n fileChooser.getExtensionFilters().add(extFilter);\n File file = fileChooser.showOpenDialog(fileStage);\n txf_mapPath.setText(file.getAbsolutePath());\n }", "title": "" }, { "docid": "cfe8f52ed1e80cabe90728aa8e3910de", "score": "0.6794561", "text": "private static void applyMainMenuLoad() {\r\n\t\tif (!mainMenu.isLoaded()) {\r\n\t\t\tmainMenu.loadGUIElement();\r\n\t\t}\r\n\t\tunloadChunkMap();\r\n\t\tWorldLoader.setFilePath(\"saves/default/menu.eagl\");\r\n\t\tWorldLoader.loadWorld();\r\n\t\tGameWorld.chunkMap.updateWhole();\r\n\t\tGameWorld.camera.setTarget(new Entity());\r\n\t}", "title": "" }, { "docid": "63853154e1b5579d0bd7c1793d913779", "score": "0.6761945", "text": "@Override\r\n\tpublic void loadMap(String saveName, boolean saveLastRoom)\r\n\t{\r\n\t\tif (loadSave(saveName))\r\n\t\t{\r\n\t\t\tloadRoom(savePlayable.getLastRoom(), saveLastRoom);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4b328b1a7bc75b4ee696e797a941d2ec", "score": "0.6724747", "text": "public void startMap() {\r\n\t\tSwingUtilities.invokeLater(() -> { \r\n\t\t\tMapPane m=new MapPane(\"\");\r\n\t\t\tlogisticMenu.openMap(m);\r\n\t \r\n\t Timer mapUpdate = new Timer(500, new ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\tm.repaint();\r\n\t\t }\r\n\t\t\t});\r\n\t\t\tmapUpdate.start();\r\n\t\t});\r\n\t}", "title": "" }, { "docid": "f82e286b2b98fde4828ace773cb13bf8", "score": "0.6718539", "text": "public void loopyAvenue(ActionEvent e) {\n loadMap(e, \"loopyAvenue.txt\");\n }", "title": "" }, { "docid": "a5dfd8e2a9747cf7282e4fd46ba4e61b", "score": "0.6715279", "text": "public void LoadGame()\n {\n System.out.println(\"Load game selected\");\n }", "title": "" }, { "docid": "070a615a3d87104b09d2347e53a3d431", "score": "0.67097753", "text": "private void displayRandomMapMenu(){\n\t\tInputGameParam input =new InputGameParam();\r\n\t\tGame game = new Game(input);\r\n\t\tgame.play();\r\n\t}", "title": "" }, { "docid": "a72278c6b01e9045b7b009c2f35b1f69", "score": "0.6709282", "text": "@Override\n public void onMapReady(GoogleMap googleMap) {\n try{\n mapa = googleMap;\n mapa.setInfoWindowAdapter(new CustomInfoWindowAdapter());\n mapa.setMyLocationEnabled(true);\n mapa.setOnCameraChangeListener(this);\n //mapa.setOnMapClickListener(this);\n mapa.setOnInfoWindowClickListener(this);\n mapa.getUiSettings().setZoomControlsEnabled(true);\n task_load = new loadArboles();\n task_load.execute();\n } catch (SecurityException e){\n // no tiene permiso de usar locacion\n\n }\n /*\n if (isDBCreated()){\n loadArboles();\n }*/\n\n }", "title": "" }, { "docid": "6b9b9be5b9065a87119f7360623ee861", "score": "0.67026484", "text": "@Override\n public void onMapLoaded() {\n ms = new MapStatus.Builder().zoom(15).build();\n mBaiduMap.animateMapStatus(MapStatusUpdateFactory.newMapStatus(ms));\n }", "title": "" }, { "docid": "82a44cfdac69f43b5a15a334ce109226", "score": "0.6672037", "text": "private void updateMap() {\n\t\tgame.updateView(myMapVisualizer);\n\t\tgame.frame.revalidate();\n\t\tgame.frame.repaint();\n\t}", "title": "" }, { "docid": "9d3f0e146b93518a27a413e15dea43b3", "score": "0.66040576", "text": "private static void loadMapSegments() {\n try {\n MapSegmentHandler.load();\n } catch (FileNotFoundException ex) {\n GameLogger.logError(\"Unable to load map segments from file! \" + ex);\n JOptionPane.showMessageDialog(null, \"Unable to load map segments! \"\n + \"View logs for details.\");\n\n // No point in continuing\n exit();\n }\n }", "title": "" }, { "docid": "63e0d7adddf2d2c829c9b71ee964ef47", "score": "0.65638775", "text": "public void swirleyLane(ActionEvent e) {\n loadMap(e, \"swirleyLane.txt\");\n }", "title": "" }, { "docid": "2a81da69a5f325231be564e9c8776c46", "score": "0.6551482", "text": "public void refreshMap() {\n flightMap.getEngine().load(getClass().getClassLoader().getResource(\"map.html\").toExternalForm());\n flightList.getSelectionModel().clearSelection();\n flightTData.clear();\n }", "title": "" }, { "docid": "4936e8f873cad3047c957d853f2d9fb6", "score": "0.64839596", "text": "public void onModuleLoad() {\r\n\t\tMaps.loadMapsApi(\"\", \"2\", false, new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tloadPollutions();\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tloadNewestReports();\r\n\t}", "title": "" }, { "docid": "5be802d7e56574f21dd0298818078ffc", "score": "0.64644516", "text": "private void manageMaps() {\n\n // Show very basic Dialog for the user to handle/create maps\n AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);\n builder.setTitle(\"Manage maps:\");\n\n if (mWorlds.isEmpty()) {\n Log.e(TAG, \"No worlds found for this user\");\n addLogEntry(LOG_TAG_APP, \"No worlds found for this user!\");\n Toast.makeText(this, \"No worlds found for this user, please create one.\",\n Toast.LENGTH_SHORT).show();\n } else {\n final World[] worlds = mWorlds.toArray(new World[0]);\n final CharSequence[] worldNames = new CharSequence[worlds.length];\n for (int i = 0; i < worlds.length; i++) {\n worldNames[i] = worlds[i].getName();\n }\n builder.setItems(worldNames, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n if (mFirebaseEventLogger != null) {\n // Report \"Map Selected\" events to Firebase Analytics.\n mFirebaseEventLogger.reportMapSelectedEvent(getApplicationContext());\n }\n CloudConnector cc = mCloudConnector;\n if (cc != null && 0 <= i && i < worldNames.length) {\n cc.setRobotNavigationCommand(mCurrentRobot,\n new NavigationStateCommand(worlds[i].getUuid(), false));\n }\n }\n });\n }\n builder.setNeutralButton(\"Create new map\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n onStartMappingButtonClicked();\n }\n });\n builder.setNegativeButton(\"Cancel\", null);\n builder.show();\n }", "title": "" }, { "docid": "675b1fd1c4e16adc3e6abba78e6f61da", "score": "0.6454132", "text": "public static void loadMap(MapInfo info){\r\n String[] lines = info.MapData.split(\"\\n\");\r\n TILE_SIZE = info.tileSize;\r\n loadMap(lines, info.loader);\r\n info.mapLoaded();\r\n }", "title": "" }, { "docid": "55b307dda6d37ca47ae0dabd58bab8c3", "score": "0.6452237", "text": "private void updateMap(){\n mapImage = map.getPlayerView(thisPlayer);\n }", "title": "" }, { "docid": "e29491894c3bcb1cf495ab21a1beb446", "score": "0.6434668", "text": "public void generateMap() {\n\t\tmyMapVisualizer = new MapVisualization();\n\t\tMap.setInstance(map);\n\t\tmyMapVisualizer.extractMap(map);\n\t\tmap.addObserver(myMapVisualizer);\n\t\tgame = new Game(myMapVisualizer, map);\n\t}", "title": "" }, { "docid": "925e9ea33c568a27e33709470761c203", "score": "0.64316744", "text": "private void populateMap() {\n\t\tmap = Map.getInstance();\n\t\tmyContinentList = map.getMyContinentList();\n\t\tmyCountryList = map.getMyCountryList();\n\t\tmyStateList = map.getMyStateList();\n\t\tmyLinkList = map.getMyLinkList();\n\t\tnextCountryTurn = map.getNextCountryTurn();\n\t\tcountryTurnSequence = map.getCountryTurnSequence();\n\t\tstage = map.getStage();\n\t}", "title": "" }, { "docid": "1d7c0f0941fc096516f5f65ad660bab5", "score": "0.6411414", "text": "@Override\n public void mapInitialized() {\n MapOptions mapOptions = new MapOptions();\n\n mapOptions.center(new LatLong(49.8897, -97.1531))\n .mapType(MapTypeIdEnum.ROADMAP)\n .overviewMapControl(true)\n .panControl(true)\n .rotateControl(true)\n .scaleControl(true)\n .streetViewControl(false)\n .zoomControl(true)\n .zoom(12);\n\n map = mapView.createMap(mapOptions);\n\n //Add a marker to the map\n System.out.println(\"IP : \" + getIP());\n // JSONObject json = new JSONObject(readUrl(STYLESHEET_MODENA));\n//mapView.onMouseClickedProperty().addListener();\n map.addUIEventHandler(UIEventType.rightclick, (JSObject obj) -> {\n ll = new LatLong((JSObject) obj.getMember(\"latLng\"));\n System.out.println(\"LatLong: lat: \" + ll.getLatitude() + \" lng: \"\n + ll.getLongitude());\n// lblClick.setText(ll.toString());\n });\n }", "title": "" }, { "docid": "f2d0b7c061b9adfdcd9c4cc67fe6fd9c", "score": "0.6400963", "text": "@Override\n\tpublic void enterMap() {\n\n\t}", "title": "" }, { "docid": "a86305d3ebd28a743f2746aaa194d9b9", "score": "0.63778126", "text": "private void initMap() {\n simulationMapController = new SimulationMapController(width, height, pMap, agents, getGridTickPx(), getAgentRadiusPx(), getGridLineWidthPx(), mode == Mode.ONSCREEN);\n logger.info(\"Simulation map controller inited.\");\n }", "title": "" }, { "docid": "14b91ab85cc79c5ebcb6c368391f4c45", "score": "0.6358046", "text": "public void funkyJunction(ActionEvent e) {\n loadMap(e, \"funkyJunction.txt\");\n }", "title": "" }, { "docid": "925754705b9eadb415d5ea3dbc997275", "score": "0.63455015", "text": "private void setupMap() {\n\n\t\t// Check if we already have a Map\n\t\tif(map == null) {\n\n // Get the Map View\n ((MapFragment) getFragmentManager().findFragmentById(R.id.mainActivity_map)).getMapAsync(new OnMapReadyCallback() {\n @Override\n public void onMapReady(GoogleMap googleMap) {\n // Check if we're good to go\n if (googleMap == null) {\n System.out.println(\"Could not start the Map\");\n return;\n }\n\n map = googleMap;\n\n // Enable My Location\n map.setMyLocationEnabled(true);\n\n setupGame();\n }\n });\n }\n\t}", "title": "" }, { "docid": "e0b983f15714bab2c06189017f49a5eb", "score": "0.63415265", "text": "@FXML\n public void clickConfirmLoadMap(ActionEvent actionEvent) throws IOException {\n MapObject mapChecker = new MapObject();\n Alert alert = new Alert(Alert.AlertType.WARNING);\n mapPath = txf_mapPath.getText();\n mapChecker.checkCorrectness(mapPath);\n\n if (inputCounter > 0) {\n if (!mapChecker.errorMsg.toString().isEmpty()) {\n alert.setContentText(\"Map file invalid, please select another one!\\nCounter: \" + inputCounter);\n alert.showAndWait();\n txf_mapPath.setText(DEFAULT_MAP_PATH);\n }\n }\n if (inputCounter == 0) {\n alert.setContentText(\"Use default map!\");\n alert.showAndWait();\n mapPath = DEFAULT_MAP_PATH;\n }\n\n if (mapChecker.errorMsg.toString().isEmpty()) {\n buildWorldMapGraph(mapPath, graphSingleton);\n\n btn_confirmLoadFile.setVisible(false);\n btn_loadFile.setVisible(false);\n txf_mapPath.setEditable(false);\n\n displayWorldMap(mapPath);\n\n if (!btn_confirmPlayerNum.isVisible()) {\n btn_infoSwitcher.setVisible(true);\n btn_infoSwitcher.setText(\"Players Info\");\n btn_nextStep.setVisible(true);\n\n if (Main.playersList.isEmpty()) {\n InitPlayers.initPlayers(Main.totalNumOfPlayers, graphSingleton);\n }\n }\n }\n\n //System.out.println(txf_mapPath.getText() + \", \" + mapChecker.checkCorrectness(mapPath));\n\n inputCounter--;\n }", "title": "" }, { "docid": "7ddaec933b31095a29acacb6e64b7647", "score": "0.6332194", "text": "private void loadMap(String name) throws Exception {\n\t\t\n\t\tprogress.setInfo(\"加载基本信息\");\n\t\tloadVersion(name);\n\t\tmapInfo.load(name);\n\t\tfor(int i = 0; i < panels.length; ++i) {\n\t\t\tpanels[i].reset(mapInfo.getWidth(), mapInfo.getHeight());\n\t\t}\n//\t\t((FloorManager)(panels[LAYER_FLOOR].getManager())).setColor(mapInfo.getColor());\n\t\tprogress.setValue(20);\n\t\t\n\t\tfor (int i = 0; i < panels.length; ++i) {\n\t\t\tif(i < LAYER_NAMES.length) {\n\t\t\t\tprogress.setInfo(\"加载\" + LAYER_NAMES[i]);\n\t\t\t}\n\t\t\tpanels[i].load(name, resManagers);\n\t\t\tprogress.setValue((int)(20 + 1.0 * (80 - 20) * (i + 1) / panels.length));\n\t\t}\n\t\t\n\t\tprogress.setInfo(\"加载事件\");\n\t\teventManager.load(name);\n\t\tprogress.setValue(100);\n\t\tsetTitle(\"MB3Editor:\" + name);\n\t}", "title": "" }, { "docid": "6e32f1c245809e5f52afd670ad068844", "score": "0.6328838", "text": "public void loadMap(){\n\n if(mode.equals(\"map1\")){\n terrainMap = new int [][] //used to check for terrain\n {{5,0,5,5,5,1,0,3,3,3,0,2,4,4,4},\n {5,0,5,5,5,0,0,0,0,0,0,2,0,0,4},\n {0,0,0,1,0,0,1,6,0,0,1,0,0,0,0},\n {1,0,0,0,0,0,0,0,6,0,0,2,0,0,0},\n {0,0,1,0,0,1,0,1,0,0,0,2,2,0,0},\n {0,0,0,1,0,0,0,0,1,0,0,0,0,0,0},\n {1,0,1,1,0,0,1,0,1,1,0,0,2,2,0},\n {1,0,0,1,0,0,1,0,0,1,0,0,0,2,0},\n {0,0,0,1,0,1,1,1,0,0,0,0,0,2,2},\n {0,1,0,0,0,0,1,0,1,0,2,2,2,2,2}};\n\n //playerunits\n Unit areis = new Unit(\"Areis\", 1, 3, \"Lord\", \"Regal Lance\", new int[] {10,10,10,10,10,10,15,10,5}, false, \"player\");\n Unit ruri = new Unit(\"Ruri\", 2, 6, \"Swordmaster\", \"Frost Brand\", new int[] {10,10,10,10,10,10,10,10,3}, false, \"player\");\n Unit ari = new Unit(\"Ari\", 4, 7, \"Swordmaster\", \"Killing Edge\", new int[] {10,10,10,20,20,10,10,10,3}, false, \"player\");\n playerUnits.add(areis);\n playerUnits.add(ruri);\n playerUnits.add(ari);\n\n //enemyunits\n Unit brigand1 = new Unit(\"Brigand\", 8, 8, \"Brigand\", \"Iron Axe\", new int[] {10,10,10,10,10,10,10,10,3}, false, \"enemy\");\n Unit brigand2 = new Unit(\"Brigand\", 13, 3, \"Brigand\", \"Iron Axe\", new int[] {10,10,10,10,10,10,10,10,3}, false, \"enemy\");\n Unit brigand3 = new Unit(\"Brigand\", 7, 2, \"Brigand\", \"Iron Axe\", new int[] {10,10,10,10,10,10,10,10,3}, false, \"enemy\");\n //Unit brigand4 = new Unit(\"Brigand\", 13, 5, \"Brigand\", \"Iron Axe\", new int[] {10,10,10,10,10,10,10,10,3}, false, \"enemy\");\n //Unit brigand5 = new Unit(\"Brigand\", 9, 5, \"Brigand\", \"Iron Axe\", new int[] {10,10,10,10,10,10,10,10,3}, false, \"enemy\");\n Unit bossBrigand = new Unit(\"Brigand\", 14, 4, \"Brigand\", \"Iron Axe\", new int[] {15,12,10,10,10,10,10,10,3}, true, \"enemy\");\n enemyUnits.add(brigand1);\n enemyUnits.add(brigand2);\n enemyUnits.add(brigand3);\n //enemyUnits.add(brigand4);\n //enemyUnits.add(brigand5);\n enemyUnits.add(bossBrigand);\n\n\n/////////////////////////////////////sprites//////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n //beta battle sprites\n battleBackground = loadImage(\"images/battle/Plains Background.png\");\n battlePlatform = loadImage(\"images/battle/Plains Close.png\");\n battleUI = loadImage(\"images/battle/Battle Scene 2.png\");\n\n//-------------------------------------------aries-----------------------------------------------------------------------------------\n\n idleBattleFrame = loadImage(\"images/battle/Ares/Idle.png\");\n\n for(int i=1; i<31; i++){ //sprites\n sprite = loadImage(\"images/battle/Ares/attack\"+i+\".png\");\n battleFrames.add(sprite);\n }\n\n battleFrameLengths = new int[] {3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 22, 2, 2, 3, 3, 3, 3, 3, 3, 3}; //how long each battle frame takes\n dmgFrame = 20; //what exact frame unit hits some1\n\n areis.setBattleSprites(idleBattleFrame, battleFrames, battleFrameLengths, dmgFrame);\n battleFrames = new ArrayList<Image>();\n\n//--------------------------------------------ari----------------------------------------------------------------------------------\n\n idleBattleFrame = loadImage(\"images/battle/Ari/Idle.png\");\n\n for(int i=1; i<36; i++){ //sprites\n sprite = loadImage(\"images/battle/Ari/attack\"+i+\".png\");\n battleFrames.add(sprite);\n }\n\n battleFrameLengths = new int[] {5, 3, 4, 4, 8, 2, 1, 25, 1, 3, 5, 8, 48, 3, 3, 3, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 2, 4};\n dmgFrame = 11;\n\n ari.setBattleSprites(idleBattleFrame, battleFrames, battleFrameLengths, dmgFrame);\n battleFrames = new ArrayList<Image>();\n\n//--------------------------------------------ruri----------------------------------------------------------------------------------\n\n idleBattleFrame = loadImage(\"images/battle/Ruri/Idle.png\");\n\n for(int i=1; i<36; i++){ //sprites\n sprite = loadImage(\"images/battle/Ruri/attack\"+i+\".png\");\n battleFrames.add(sprite);\n }\n\n battleFrameLengths = new int[] {5, 3, 4, 4, 8, 2, 1, 25, 1, 3, 5, 8, 48, 3, 3, 3, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 2, 4};\n dmgFrame = 11;\n\n ruri.setBattleSprites(idleBattleFrame, battleFrames, battleFrameLengths, dmgFrame);\n battleFrames = new ArrayList<Image>();\n\n//---------------------------------------------brigands---------------------------------------------------------------------------------\n\n idleBattleFrame = loadImage(\"images/battle/Brigand/Idle.png\");\n\n for(int i=1; i<36; i++){ //sprites\n sprite = new ImageIcon(\"images/battle/Brigand/attack\"+i+\".png\").getImage();\n sprite = sprite.getScaledInstance(sprite.getWidth(null)*3, sprite.getHeight(null)*3, Image.SCALE_SMOOTH);\n battleFrames.add(sprite);\n }\n\n battleFrameLengths = new int[] {6, 6, 3, 1, 1, 1, 1, 1, 1, 4, 2, 3, 42, 2, 3, 3, 6, 2, 2, 6, 6, 6, 4, 4, 3, 3, 3};\n dmgFrame = 12;\n\n brigand1.setBattleSprites(idleBattleFrame, battleFrames, battleFrameLengths, dmgFrame);\n brigand2.setBattleSprites(idleBattleFrame, battleFrames, battleFrameLengths, dmgFrame);\n brigand3.setBattleSprites(idleBattleFrame, battleFrames, battleFrameLengths, dmgFrame);\n bossBrigand.setBattleSprites(idleBattleFrame, battleFrames, battleFrameLengths, dmgFrame);\n battleFrames = new ArrayList<Image>();\n\n//------------------------------------------------------------------------------------------------------------------------------\n\n //sprites\n map = loadImage(\"images/map1.png\");\n\n for(int i=1; i<4; i++){ //sprites\n sprite = loadImage(\"images/Overworld/Brigand/idle\"+i+\".png\");\n spriteList.add(sprite);\n }\n\n for(int i=1; i<5; i++){ //up\n sprite = loadImage(\"images/Overworld/Brigand/up\"+i+\".png\");\n spriteList.add(sprite);\n }\n\n for(int i=1; i<5; i++){ //down\n sprite = loadImage(\"images/Overworld/Brigand/down\"+i+\".png\");\n spriteList.add(sprite);\n }\n\n for(int i=1; i<5; i++){ //left\n sprite = loadImage(\"images/Overworld/Brigand/left\"+i+\".png\");\n spriteList.add(sprite);\n }\n\n for(int i=1; i<4; i++){ //sprites\n sprite = loadImage(\"images/Overworld/Brigand/select\"+i+\".png\");\n spriteList.add(sprite);\n }\n\n victory = loadImage(\"images/victory.png\");\n\n brigand1.setOverWorldSprites(spriteList);\n brigand2.setOverWorldSprites(spriteList);\n brigand3.setOverWorldSprites(spriteList);\n bossBrigand.setOverWorldSprites(spriteList);\n spriteList = new ArrayList<Image>();\n\n//-----------------------------------------------aries---------------------------------------------------------------------\n\n for(int i=1; i<4; i++){ //sprites\n sprite = loadImage(\"images/Overworld/Ares/idle\"+i+\".png\");\n spriteList.add(sprite);\n }\n\n for(int i=1; i<5; i++){ //up\n sprite = loadImage(\"images/Overworld/Ares/up\"+i+\".png\");\n spriteList.add(sprite);\n }\n\n for(int i=1; i<5; i++){ //down\n sprite = loadImage(\"images/Overworld/Ares/down\"+i+\".png\");\n spriteList.add(sprite);\n }\n\n for(int i=1; i<5; i++){ //left\n sprite = loadImage(\"images/Overworld/Ares/left\"+i+\".png\");\n spriteList.add(sprite);\n }\n\n for(int i=1; i<4; i++){ //sprites\n sprite = loadImage(\"images/Overworld/Ares/select\"+i+\".png\");\n spriteList.add(sprite);\n }\n\n areis.setOverWorldSprites(spriteList);\n spriteList = new ArrayList<Image>();\n\n//-----------------------------------------------swordmaster-----------------------------------------------------------------\n for(int i=1; i<4; i++){ //sprites\n sprite = loadImage(\"images/Overworld/Swordmaster/idle\"+i+\".png\");\n spriteList.add(sprite);\n }\n\n for(int i=1; i<5; i++){ //up\n sprite = loadImage(\"images/Overworld/Swordmaster/up\"+i+\".png\");\n spriteList.add(sprite);\n }\n\n for(int i=1; i<5; i++){ //down\n sprite = loadImage(\"images/Overworld/Swordmaster/down\"+i+\".png\");\n spriteList.add(sprite);\n }\n\n for(int i=1; i<5; i++){ //left\n sprite = loadImage(\"images/Overworld/Swordmaster/left\"+i+\".png\");\n spriteList.add(sprite);\n }\n\n for(int i=1; i<4; i++){ //sprites\n sprite = loadImage(\"images/Overworld/Swordmaster/select\"+i+\".png\");\n spriteList.add(sprite);\n }\n\n ari.setOverWorldSprites(spriteList);\n ruri.setOverWorldSprites(spriteList);\n spriteList = new ArrayList<Image>();\n ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n if(DEBUG) System.out.println(turn+\" turn\");\n }\n\n if(mode.equals(\"map2\")){\n terrainMap = new int [][]\n {{0,0,1,1,0,0,0,0,3,3,3,5,0,5,0},\n {0,0,0,0,0,1,0,1,3,3,1,0,0,0,0},\n {0,0,1,1,0,0,0,3,3,1,5,1,0,0,0},\n {1,0,0,0,0,0,3,3,3,0,0,1,0,0,0},\n {1,1,0,1,0,5,3,3,3,3,1,0,0,0,1},\n {3,3,1,0,0,0,0,3,3,0,0,0,1,1,1},\n {3,3,3,3,0,0,0,1,0,0,0,3,3,3,1},\n {5,5,5,3,3,1,5,0,0,3,3,3,3,3,3},\n {5,5,5,3,3,3,0,0,3,3,3,3,3,3,3},\n {5,5,5,0,3,0,0,3,3,3,3,3,3,3,3}};\n\n //Player Units\n Unit areis = new Unit(\"Areis\", 1, 3, \"Lord\", \"Regal Lance\", new int[] {10,10,10,10,10,10,15,10,5}, false, \"player\");\n Unit ruri = new Unit(\"Ruri\", 2, 4, \"Swordmaster\", \"Frost Brand\", new int[] {10,10,10,10,10,10,10,10,3}, false, \"player\");\n Unit ari = new Unit(\"Ari\", 3, 5, \"Swordmaster\", \"Killing Edge\", new int[] {10,10,10,20,20,10,10,10,3}, false, \"player\");\n playerUnits.add(areis);\n playerUnits.add(ruri);\n playerUnits.add(ari);\n\n //Enemy Units\n Unit brigand1 = new Unit(\"Brigand\", 12, 2, \"Brigand\", \"Iron Axe\", new int[] {10,10,10,10,10,10,10,10,3}, false, \"enemy\");\n Unit brigand2 = new Unit(\"Brigand\", 13, 3, \"Brigand\", \"Iron Axe\", new int[] {10,10,10,10,10,10,10,10,3}, false, \"enemy\");\n Unit soldier1 = new Unit(\"Soldier\", 13, 5, \"Brigand\", \"Iron Axe\", new int[] {10,11,10,10,10,10,13,10,3}, false, \"enemy\");\n Unit soldier2 = new Unit(\"Soldier\", 13, 1, \"Brigand\", \"Iron Axe\", new int[] {10,11,10,10,10,10,13,10,3}, false, \"enemy\");\n Unit bossSoldier = new Unit(\"Soldier\", 13, 0, \"Brigand\", \"Iron Axe\", new int[] {20,10,10,10,10,10,13,10,3}, true, \"enemy\");\n enemyUnits.add(brigand1);\n enemyUnits.add(brigand2);\n enemyUnits.add(soldier1);\n enemyUnits.add(soldier2);\n enemyUnits.add(bossSoldier);\n\n\n/////////////////////////////////////sprites//////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n //beta battle sprites\n battleBackground = loadImage(\"images/battle/Plains Background.png\");\n battlePlatform = loadImage(\"images/battle/Plains Close.png\");\n battleUI = loadImage(\"images/battle/Battle Scene 2.png\");\n\n//-------------------------------------------aries-----------------------------------------------------------------------------------\n\n idleBattleFrame = loadImage(\"images/battle/Ares/Idle.png\");\n\n for(int i=1; i<31; i++){ //sprites\n sprite = loadImage(\"images/battle/Ares/attack\"+i+\".png\");\n battleFrames.add(sprite);\n }\n\n battleFrameLengths = new int[] {3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 22, 3, 3, 3, 3, 3, 3, 3};\n dmgFrame = 11;\n\n areis.setBattleSprites(idleBattleFrame, battleFrames, battleFrameLengths, dmgFrame);\n battleFrames = new ArrayList<Image>();\n\n//--------------------------------------------ari----------------------------------------------------------------------------------\n\n idleBattleFrame = loadImage(\"images/battle/Ari/Idle.png\");\n\n for(int i=1; i<36; i++){ //sprites\n sprite = loadImage(\"images/battle/Ari/attack\"+i+\".png\");\n battleFrames.add(sprite);\n }\n\n battleFrameLengths = new int[] {5, 3, 4, 4, 8, 2, 1, 25, 1, 3, 5, 8, 48, 3, 3, 3, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 2, 4};\n dmgFrame = 22;\n\n ari.setBattleSprites(idleBattleFrame, battleFrames, battleFrameLengths, dmgFrame);\n battleFrames = new ArrayList<Image>();\n\n//--------------------------------------------ruri----------------------------------------------------------------------------------\n\n idleBattleFrame = loadImage(\"images/battle/Ruri/Idle.png\");\n\n for(int i=1; i<36; i++){ //sprites\n sprite = loadImage(\"images/battle/Ruri/attack\"+i+\".png\");\n battleFrames.add(sprite);\n }\n\n battleFrameLengths = new int[] {5, 3, 4, 4, 8, 2, 1, 25, 1, 3, 5, 8, 48, 3, 3, 3, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 2, 4};\n dmgFrame = 11;\n\n ruri.setBattleSprites(idleBattleFrame, battleFrames, battleFrameLengths, dmgFrame);\n battleFrames = new ArrayList<Image>();\n\n//---------------------------------------------brigands---------------------------------------------------------------------------------\n\n idleBattleFrame = loadImage(\"images/battle/Brigand/Idle.png\");\n\n for(int i=1; i<36; i++){ //sprites\n sprite = new ImageIcon(\"images/battle/Brigand/attack\"+i+\".png\").getImage();\n sprite = sprite.getScaledInstance(sprite.getWidth(null)*3, sprite.getHeight(null)*3, Image.SCALE_SMOOTH);\n battleFrames.add(sprite);\n }\n\n battleFrameLengths = new int[] {6, 6, 3, 1, 1, 1, 1, 1, 1, 4, 2, 3, 4, 2, 42, 3, 6, 2, 2, 6, 6, 6, 4, 4, 3, 3, 3};\n dmgFrame = 15;\n\n brigand1.setBattleSprites(idleBattleFrame, battleFrames, battleFrameLengths, dmgFrame);\n brigand2.setBattleSprites(idleBattleFrame, battleFrames, battleFrameLengths, dmgFrame);\n //brigand3.setBattleSprites(idleBattleFrame, battleFrames, battleFrameLengths, dmgFrame);\n //bossBrigand.setBattleSprites(idleBattleFrame, battleFrames, battleFrameLengths, dmgFrame);\n battleFrames = new ArrayList<Image>();\n\n//---------------------------------------------soldiers---------------------------------------------------------------------------------\n\n idleBattleFrame = loadImage(\"images/battle/Soldier/Idle.png\");\n\n for(int i=1; i<12; i++){ //sprites\n sprite = new ImageIcon(\"images/battle/Soldier/attack\"+i+\".png\").getImage();\n sprite = sprite.getScaledInstance(sprite.getWidth(null)*3, sprite.getHeight(null)*3, Image.SCALE_SMOOTH);\n battleFrames.add(sprite);\n }\n\n battleFrameLengths = new int[] {5, 4, 9, 48, 5, 2, 6, 3, 6, 6, 11};\n dmgFrame = 4;\n\n soldier1.setBattleSprites(idleBattleFrame, battleFrames, battleFrameLengths, dmgFrame);\n soldier2.setBattleSprites(idleBattleFrame, battleFrames, battleFrameLengths, dmgFrame);\n bossSoldier.setBattleSprites(idleBattleFrame, battleFrames, battleFrameLengths, dmgFrame);\n battleFrames = new ArrayList<Image>();\n\n//------------------------------------------------------------------------------------------------------------------------------\n\n //sprites\n map = loadImage(\"images/map2.png\");\n\n for(int i=1; i<4; i++){ //sprites\n sprite = loadImage(\"images/Overworld/Brigand/idle\"+i+\".png\");\n spriteList.add(sprite);\n }\n\n for(int i=1; i<5; i++){ //up\n sprite = loadImage(\"images/Overworld/Brigand/up\"+i+\".png\");\n spriteList.add(sprite);\n }\n\n for(int i=1; i<5; i++){ //down\n sprite = loadImage(\"images/Overworld/Brigand/down\"+i+\".png\");\n spriteList.add(sprite);\n }\n\n for(int i=1; i<5; i++){ //left\n sprite = loadImage(\"images/Overworld/Brigand/left\"+i+\".png\");\n spriteList.add(sprite);\n }\n\n for(int i=1; i<4; i++){ //sprites\n sprite = loadImage(\"images/Overworld/Brigand/select\"+i+\".png\");\n spriteList.add(sprite);\n }\n\n brigand1.setOverWorldSprites(spriteList);\n brigand2.setOverWorldSprites(spriteList);\n //brigand3.setOverWorldSprites(spriteList);\n //bossBrigand.setOverWorldSprites(spriteList);\n spriteList = new ArrayList<Image>();\n\n//-----------------------------------------------soldiers-------------------------------------------------------------------------------\n\n for(int i=1; i<4; i++){ //sprites\n sprite = loadImage(\"images/Overworld/Soldier/idle\"+i+\".png\");\n spriteList.add(sprite);\n }\n\n for(int i=1; i<5; i++){ //up\n sprite = loadImage(\"images/Overworld/Soldier/up\"+i+\".png\");\n spriteList.add(sprite);\n }\n\n for(int i=1; i<5; i++){ //down\n sprite = loadImage(\"images/Overworld/Soldier/down\"+i+\".png\");\n spriteList.add(sprite);\n }\n\n for(int i=1; i<5; i++){ //left\n sprite = loadImage(\"images/Overworld/Soldier/left\"+i+\".png\");\n spriteList.add(sprite);\n }\n\n for(int i=1; i<4; i++){ //sprites\n sprite = loadImage(\"images/Overworld/Soldier/select\"+i+\".png\");\n spriteList.add(sprite);\n }\n\n soldier1.setOverWorldSprites(spriteList);\n soldier2.setOverWorldSprites(spriteList);\n bossSoldier.setOverWorldSprites(spriteList);\n //brigand3.setOverWorldSprites(spriteList);\n //bossBrigand.setOverWorldSprites(spriteList);\n spriteList = new ArrayList<Image>();\n\n//-----------------------------------------------aries---------------------------------------------------------------------\n\n for(int i=1; i<4; i++){ //sprites\n sprite = loadImage(\"images/Overworld/Ares/idle\"+i+\".png\");\n spriteList.add(sprite);\n }\n\n for(int i=1; i<5; i++){ //up\n sprite = loadImage(\"images/Overworld/Ares/up\"+i+\".png\");\n spriteList.add(sprite);\n }\n\n for(int i=1; i<5; i++){ //down\n sprite = loadImage(\"images/Overworld/Ares/down\"+i+\".png\");\n spriteList.add(sprite);\n }\n\n for(int i=1; i<5; i++){ //left\n sprite = loadImage(\"images/Overworld/Ares/left\"+i+\".png\");\n spriteList.add(sprite);\n }\n\n for(int i=1; i<4; i++){ //sprites\n sprite = loadImage(\"images/Overworld/Ares/select\"+i+\".png\");\n spriteList.add(sprite);\n }\n\n areis.setOverWorldSprites(spriteList);\n spriteList = new ArrayList<Image>();\n\n//-----------------------------------------------swordmaster-----------------------------------------------------------------\n for(int i=1; i<4; i++){ //sprites\n sprite = loadImage(\"images/Overworld/Swordmaster/idle\"+i+\".png\");\n spriteList.add(sprite);\n }\n\n for(int i=1; i<5; i++){ //up\n sprite = loadImage(\"images/Overworld/Swordmaster/up\"+i+\".png\");\n spriteList.add(sprite);\n }\n\n for(int i=1; i<5; i++){ //down\n sprite = loadImage(\"images/Overworld/Swordmaster/down\"+i+\".png\");\n spriteList.add(sprite);\n }\n\n for(int i=1; i<5; i++){ //left\n sprite = loadImage(\"images/Overworld/Swordmaster/left\"+i+\".png\");\n spriteList.add(sprite);\n }\n\n for(int i=1; i<4; i++){ //sprites\n sprite = loadImage(\"images/Overworld/Swordmaster/select\"+i+\".png\");\n spriteList.add(sprite);\n }\n\n ari.setOverWorldSprites(spriteList);\n ruri.setOverWorldSprites(spriteList);\n spriteList = new ArrayList<Image>();\n ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n if(DEBUG) System.out.println(turn+\" turn\");\n\n }\n\n\n }", "title": "" }, { "docid": "48cdca9e65dfba897d210155d18d7e4f", "score": "0.63256884", "text": "public void populateWorld(LevelDetails levelDetails) {\n\t\tmap.loadMap(levelDetails.getMapAssetName());\n\t}", "title": "" }, { "docid": "bef531237a8bbbfb20163c4c1684b676", "score": "0.63045585", "text": "void setMapLoadListener(MapLoadListener listener);", "title": "" }, { "docid": "bdc1939e421820fb3f2ea365804d500b", "score": "0.6302283", "text": "@Override\r\n public void onMapReady(MapboxMap mapboxMap) {\r\n Log.d(TEST, \"onMapReady\");\r\n map = mapboxMap;\r\n enableLocation();\r\n }", "title": "" }, { "docid": "c15bf5c70d5c92e8dd072ae6e570f1d1", "score": "0.62671554", "text": "private void initializeMap(String mapAdress) {\n mapBuilder.setMapFile(mapAdress);\n this.clean();\n mapBuilder.build(); // a new list of objects is created and notified to game\n window.setGameObjects(this.getGameObjects()); // the list is sent to Window and Map\n }", "title": "" }, { "docid": "562240fcde7b40d09ebfaffdbe2e32a4", "score": "0.6261865", "text": "public void loadLevelFromTexture() {\n\t\tTexture levelLevelMap = assMan.get(assMan.MAP_MUTE_CITY, Texture.class);\n\n\t\tfinal MapData MAP_DATA = new MapData();\n\t\tMAP_DATA.mapTexture = levelLevelMap;\n\n\t\tloadLevelFromTexture(MAP_DATA, true);\n\t}", "title": "" }, { "docid": "f4c34d7e6e3e528f7b871c594b37f29d", "score": "0.6257851", "text": "TiledMap loadMap(String mapPath);", "title": "" }, { "docid": "2fde6706ddf4b4231fc921e7edcc4337", "score": "0.62436646", "text": "public Map( int xWidth){ \n //this.name = name;\n this.tileWidth=xWidth;\n GUI.tileWidth=xWidth;\n this.generateTiles();\n// generateLoaded();\n Painter gen = new Painter(squareWidth,squareHeight);\n GUI gui = new GUI(gen); //initialzes mouselistener\n GUI.panel.setLayout(null);\n GUI.copy(Openingmenuscreen.tilePanel,GUI.panel);\n \n// GUI.placeUnitTester();\n GUI.gameFrame.add(gen);\n System.out.println(\"MAP CALLED\");\n }", "title": "" }, { "docid": "0b24e82a206d867d31450c1659fb718b", "score": "0.6239032", "text": "@Test\n\tpublic void test_processGameStartupCommand_loadmap_invalid() throws Exception {\n\t\tString l_msg;\n\t\td_startup_controller.processGameStartupCommand(\"loadmap\", d_gameplay);\n\t\tl_msg = d_msg.getLastMessageAndClear().d_message;\n\t\tassertTrue(l_msg.contains(\"no options specified\"));\n\n\t\td_startup_controller.processGameStartupCommand(\"loadmap \" + d_MAP_DIR + \"canada/quebac.map\", d_gameplay);\n\t\tl_msg = d_msg.getLastMessageAndClear().d_message;\n\t\tassertTrue(l_msg.contains(\"Error loading map file\"));\n\t}", "title": "" }, { "docid": "632e2cc4549f41e0a9d877d161d5bac7", "score": "0.62354857", "text": "public void setMap(GameMap levelMap) {\n\t\t_map = levelMap;\r\n\t}", "title": "" }, { "docid": "8a1f697cb6f2cebf0b594f5209063627", "score": "0.6231088", "text": "@Override\r\n\tpublic void gameLoad(long gameID) {\n\t\t\r\n\t}", "title": "" }, { "docid": "f950a5177a0be2adf2c24be474450e3b", "score": "0.6230358", "text": "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n fillMap();\n }", "title": "" }, { "docid": "39f0fe2325eea8fc52ec956932a00c15", "score": "0.6226547", "text": "private void setUpMapIfNeeded() {\n if (mMap == null) {\r\n // Try to obtain the map from the SupportMapFragment.\r\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map)).getMap();\r\n //mMap.setInfoWindowAdapter(new CCInfoWindowAdapter(getLayoutInflater()));\r\n mMap.setOnInfoWindowClickListener(this);\r\n }\r\n }", "title": "" }, { "docid": "15ab4fdfa84ec8a2107750682e24f83b", "score": "0.62195605", "text": "public void startGame()\n\t{\n\t\tclosePauseMenu();\n\t\t\n\t\tTile.init();\n\t\t\n\t\tJTileContainer container = Tile.getTileContainer();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tmap = new Map(\"res/images/maps/editedmap.png\", container);\n\t\t}\n\t\tcatch (IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t\tplayer = new Player(map);\n\t\tplayer.setLocation(1190, 975);\n\t\tmap.addPlayer(player);\n\n\t\tgun = new MachineGun();\n\t\tplayer.addGun(gun);\n\t\t\n\t\tfor (int y = 100; y < map.getHeight() * Map.TILE_SIZE; y += 80)\n\t\t{\n\t\t\tfor (int x = 100; x < map.getWidth() * Map.TILE_SIZE; x += 80)\n\t\t\t{\n\t\t\t\tZombie zombie = new Zombie(map);\n\t\t\t\t\n\t\t\t\tzombie.setLocation(x, y);\n\t\t\t\t\n\t\t\t\tmap.addActor(zombie);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (mainMenu != null)\n\t\t{\n\t\t\tmainMenu.dispose();\n\t\t\tmainMenu = null;\n\t\t}\n\t\t\n\t\tmapScale = 4;\n\t\t\n\t\tstartSceneTimer = 10;\n\t\tdeathSceneTimer = 0;\n\t\t\n\t\tkeyListener = new KeyListener()\n\t\t{\n\t\t\tpublic void keyTyped(KeyEvent event)\n\t\t\t{\n\t\t\t\tint code = event.getKeyCode();\n\t\t\t\t\n\t\t\t\tif (code == Keyboard.KEY_ESCAPE)\n\t\t\t\t{\n\t\t\t\t\tif (pauseMenu == null)\n\t\t\t\t\t{\n\t\t\t\t\t\topenPauseMenu();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tclosePauseMenu();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tpublic void keyReleased(KeyEvent event)\n\t\t\t{\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tpublic void keyPressed(KeyEvent event)\n\t\t\t{\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tpublic void keyDown(KeyEvent event)\n\t\t\t{\n\t\t\t\t\n\t\t\t}\n\t\t};\n\t\t\n\t\tKeyboard.addKeyListener(keyListener);\n\t}", "title": "" }, { "docid": "6417f26b34f2a21cf946539a4e616c05", "score": "0.6195456", "text": "public static void loadDefaultChunkMap() {\r\n\t\tGameWorld.chunkMap.clear();\r\n\t\tGameWorld.backChunkMap.clear();\r\n\t\tWorldLoader.setFilePath(\"saves/Final.eagl\");\r\n\t\tWorldLoader.loadWorld();\r\n\t\tGameWorld.chunkMap.updateWhole();\r\n\t}", "title": "" }, { "docid": "7579e94714afd7d8f146018e2c1041c8", "score": "0.6173299", "text": "public void setMap(MyGameGUI my_game, int Map ) {\n\n\t\tgame_service game = Game_Server.getServer(Map); // you have [0,23] games\n\t\tsetGame_serv(game);\n\t\tString gameMap = game.getGraph();\n\n\t\t((DGraph) my_game.g).init(gameMap);\n\t\tmy_game.graphGUI= new graphGUI(my_game.g);\n\t\tmy_game.graphGUI.drawAll();\n\t\tkl = new KML_save(Map, game);\n\n\t\tsetKl(kl);\n\t\tString info = game.toString();\n\t\tJSONObject line;\n\t\ttry {\n\t\t\tline = new JSONObject(info);\n\t\t\tJSONObject ttt = line.getJSONObject(\"GameServer\");\n\t\t\tint rs = ttt.getInt(\"robots\");\n\t\t\tfor(int i=0; i < rs ;i++) {\n\t\t\t\tRobots new_robot= new Robots(i);\n\t\t\t\tmy_game.game_robots.add(new_robot);\n\t\t\t}\n\n\t\t\tIterator<String> f_iter = game.getFruits().iterator();\n\t\t\twhile(f_iter.hasNext()) {\n\t\t\t\tFruits new_fruits= new Fruits(f_iter.next(),(DGraph) my_game.g);\n\t\t\t\tgame_Fruits.add(new_fruits);\n\n\t\t\t}\n\t\t\tthis.graphGUI.drawAll();\n\t\t\tthis.drawFruits();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"Game Over\");\n\t\t}\n\t}", "title": "" }, { "docid": "816f5328c14613837402a1f54abdfee5", "score": "0.6171915", "text": "public void updateMaps() {\r\n\t\tplayerPlots = backend.getPlayerPlots();\r\n\t\tcommanderPlots = backend.getCommanderPlots();\r\n\t}", "title": "" }, { "docid": "69740fca6a5bff22fe2f6ca811ba86db", "score": "0.6163698", "text": "@Override\n public void onMapLoaded() {\n LatLngBounds bounds = new LatLngBounds.Builder()\n .include(BOUND1)\n .include(BOUND2)\n .build();\n // Move the camera now.\n mMap.moveCamera(CameraUpdateFactory.newLatLngBounds(bounds, 120));\n }", "title": "" }, { "docid": "1dd8370388eb44cce64624bc7644ee77", "score": "0.61623406", "text": "private void startGame(){\n\t\tmainMenu = false;\n\t\tmainGame = true;\n\t\tshowInstructions = false;\n\t\tshowCredits = false;\n\t\tcurrentLevel = 1;\n\t\tcurrentMap = level[currentLevel - 1];\n\t\tfor (int x = 0; x<mousedOver.length;x++)\n\t\t\tmousedOver[x] = false;\n\t}", "title": "" }, { "docid": "2c00f056150a4fbafb4c470e7049623f", "score": "0.6138206", "text": "private void loadBuildingServicesAgain() {\n\t\t\tgoogleMap = ((MapFragment)getFragmentManager().findFragmentById(R.id.map)).getMap();\n\t\t\tgoogleMap.clear();\n\t\t\tgoogleMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);\n\t\t\tgoogleMap.setMyLocationEnabled(true);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//this is the lattitude and longitude for the Center of CU which is CU Gardens...lol..theres no name like dat o\n\t\t\tdouble latitude = 6.671318;\n\t\t\tdouble longitude = 3.158343;\n\t\t\tLatLng latlng = new LatLng(latitude, longitude);\n\t\t\t\n\t\t\t//create initial marker for center of CU and all other places....\n\t\t\tcenter = googleMap.addMarker(new MarkerOptions().position(latlng).title(\"CU Gardens\").snippet(\"This is the center of covenant university\"));\n\t\t\tcenter.showInfoWindow();\n\t\t\tCameraPosition camposition = new CameraPosition(latlng, 18, 0, 0);\n\t\t\tgoogleMap.animateCamera(CameraUpdateFactory.newCameraPosition(camposition), 5000, null);\n\t\t\t\n\t\t\t//create the remaining markers for all other places in CU\n\t\t\tMapsPins.nameAllBuildingsWithMarkersInCU();//this will add all the remamining markers...i created them in CuMapsPins class\n\t\t\t\n\t\t\t\n\t\t\t//check if map is created succesfully or not\n\t\t\tif(googleMap==null){\n\t\t\t\tToast.makeText(getApplicationContext(), \"You need internet connectivity\", Toast.LENGTH_LONG).show();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\n\t}", "title": "" }, { "docid": "33c172470810b73deae2e7e68d218ddb", "score": "0.6133541", "text": "public static void loadMap(Map map, String filename) {\n try {\n InputStream input = new FileInputStream(\"maps/\" + filename + \".txt\"); \n BufferedReader buffer = new BufferedReader(new InputStreamReader(input));\n\n String line = buffer.readLine();\n StringBuilder sb = new StringBuilder();\n while (line != null) {\n sb.append(line);\n line = buffer.readLine();\n }\n\n // Load it into a Map object\n String bin = sb.toString();\n int binPtr = 0;\n for (int row = MapConstants.MAP_ROWS - 1; row >= 0; row--) {\n for (int col = 0; col < MapConstants.MAP_COLS; col++) {\n if (bin.charAt(binPtr) == '1') \n \tmap.setObstacleCell(row, col, true);\n else\n \tmap.setObstacleCell(row, col, false);\n \t\tmap.getCell(row, col).setIsWalked(false);\n binPtr++;\n }\n }\n\n map.setAllExplored();\n buffer.close();\n \n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "41f26d3221ad48a173459fa25a60c611", "score": "0.6132039", "text": "public void customGUI() {\n\t\tmap = new UnfoldingMap(this, 20, 86, 570, 400, new OpenStreetMapProvider());\n\t\tMapUtils.createDefaultEventDispatcher(this, map);\n\t}", "title": "" }, { "docid": "990fc3268adaf973c121784cebfdafe5", "score": "0.61281615", "text": "private void loadMapContent() {\n\t\t// The GEPlugin is the core class and is a great place to start browsing\n\t\t// the API\n\t\tfinal GEPlugin ge = earth.getGEPlugin();\n\t\tge.getWindow().setVisibility(true);\n\n\t\t// add a navigation control\n\t\tge.getNavigationControl().setVisibility(GEVisibility.VISIBILITY_AUTO);\n\n\t\t// add some layers\n\t\tge.enableLayer(GELayerId.LAYER_BORDERS, true);\n\t\tge.enableLayer(GELayerId.LAYER_ROADS, true);\n\t\tge.enableLayer(GELayerId.LAYER_TERRAIN, true);\n\n\t\t// Fly to the Grand Canyon\n\t\tKmlLookAt la = ge.createLookAt(\"\");\n\t\tla.set(36.20839, -112.45803, 0, KmlAltitudeMode.ALTITUDE_RELATIVE_TO_GROUND, -30, 40, 75000);\n\t\tge.getView().setAbstractView(la);\n\n\t\t// add some place marks\n\t\tfor (int i = 0 ; i < 3; i++) {\n KmlPlacemark placemark = ge.createPlacemark(\"\");\n placemark.setName(\"Placemark \"+(i+1));\n KmlPoint point = ge.createPoint(\"\");\n point.setLatitude(36.20839 + (i * 0.1D));\n point.setLongitude(-112.45803);\n placemark.setGeometry(point);\n ge.getFeatures().appendChild(placemark);\n\t\t}\n\n\t\t\n\t\t// listen for click events\n\t\tGoogleEarth.addEventListener(ge.getWindow(), \"click\",\n\t\t\tnew KmlEventListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onEvent(KmlEvent evt) {\n\t\t\t\t\tKmlMouseEvent event = (KmlMouseEvent) evt;\n\t\t\t\t\tif (event.getDidHitGlobe()) {\n\t\t\t\t\t if (\"KmlPlacemark\".equals(event.getTarget().getType())) {\n\t\t\t\t\t // prevent the default behavior (balloon popup)\n\t\t\t\t\t evt.preventDefault();\n\t\t\t\t\t \n\t\t\t\t\t // identify the clicked balloon\n\t\t\t\t\t GEEventEmitter target = event.getTarget();\n\t\t\t\t\t KmlPlacemark placemark = (KmlPlacemark)target;\n\t\t\t\t\t Window.alert(\"You Clicked \"+placemark.getName());\n\t\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t}", "title": "" }, { "docid": "40f80bc869381a2a2d8b025f87a65c64", "score": "0.61230475", "text": "private void initilizeMap() {\n if (googleMap == null) {\n googleMap = fragment.getMap();\n// googleMap.setMyLocationEnabled(false);\n\n try {\n\n mapWithZooming(12);\n\n\n } catch (Exception e) {\n System.out.println(\"exception \" + e);\n }\n\n }\n }", "title": "" }, { "docid": "992e1371cce33c2d35d783efe68eb00e", "score": "0.61138356", "text": "public void displayLocalMapScreen(GameMap map) {\r\n\t\tif (localMapScreen == null) {\r\n\t\t\tlocalMapScreen = new GameMapScreen(map, gameState);\r\n\t\t} else {\r\n\t\t\tlocalMapScreen.init(map);\r\n\t\t}\r\n\t\tsetScreen(localMapScreen);\r\n\t}", "title": "" }, { "docid": "875dc4ae567599dcb8f9e8e0babffaf3", "score": "0.6112747", "text": "public abstract void loadWorlds();", "title": "" }, { "docid": "aa0148da36abbdb9e53d146fa03561b5", "score": "0.61114246", "text": "@Override\r\n\t\t\tpublic void handle(WorkerStateEvent event) {\n\t\t\t\tmap = load_task.getValue();\r\n\t\t\t\t\r\n\t\t\t\t//Update the image in the view\r\n\t\t\t\tsetImage(map.getDrawableMap((int)Main.getProperties().getMapViewWidth(),(int)Main.getProperties().getMapViewHeight()));\r\n\t\t\t\tmapView.setSelectionShape(new SkylinesSelectionShape(map,(int)Main.getProperties().getMapViewWidth(),(int)Main.getProperties().getMapViewHeight()));\r\n\t\t\t\t\r\n\t\t\t\t//Close the progressbar and enable export\r\n\t\t\t\tprogress_dialog.close();\r\n\t mi_export.setDisable(false); //TODO Bind a mapLoaded property instead?\r\n\t\t\t}", "title": "" }, { "docid": "bacbdd71c0d1f2a7dae44a4feec15ade", "score": "0.61098164", "text": "private void initilizeMap() \n\t{\n\t\tif (googleMap == null) \n\t\t{\n\t\t\tgoogleMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();\n\n\t\t\t// check if map is created successfully or not\n\t\t\tif (googleMap == null) \n\t\t\t{\n\t\t\t\tToast.makeText(getApplicationContext(), R.string.unable_to_create_map, Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "dd7e97dfda935c9677f2d74bdbeb2b2f", "score": "0.6108354", "text": "private void displaySetUpMenu() {\n\t\tdisplayRandomMapMenu();\r\n\t}", "title": "" }, { "docid": "3e56b12a27fef9e1cd8d134c58da1385", "score": "0.6107642", "text": "public void setUpMap() {\n\n // set up initial map\n if (bundle == null) {\n LatLng currentLocation = getCurrentLocation();\n CameraUpdate cameraUpdate = CameraUpdateFactory\n .newLatLngZoom(currentLocation, INITIAL_ZOOM);\n mMap.moveCamera(cameraUpdate);\n\n // restore map state on orientation change\n } else {\n double lat = bundle.getDouble(LAT_KEY);\n double lng = bundle.getDouble(LNG_KEY);\n float zoom = bundle.getFloat(ZOOM_KEY);\n int mapType = bundle.getInt(MAPTYPE_KEY);\n\n mMap.setMapType(mapType);\n\n LatLng savedLocation = new LatLng(lat, lng);\n CameraUpdate cameraUpdate = CameraUpdateFactory.newLatLngZoom(savedLocation, zoom);\n mMap.moveCamera(cameraUpdate);\n\n // re-draw markers\n for (Address address : mAddresses) {\n LatLng location = new LatLng(address.getLatitude(), address.getLongitude());\n addMarker(location);\n }\n }\n\n drawUserRoute(mUserPath);\n\n }", "title": "" }, { "docid": "5b1e2c378210d4038c2d1004a394f33b", "score": "0.61055994", "text": "public void loadGame()\n\t{\n\t\tclearStackPane();\n\t\tLoadGameMenu loadGameMenu = new LoadGameMenu(this);\n\t\tpane.getChildren().add(loadGameMenu.getLayer());\n\t}", "title": "" }, { "docid": "3d799c5f55d0972f04166ebbfaa831d6", "score": "0.61019355", "text": "public void switchToMap(String newMapId, GameMap oldMap, Tile startPos, boolean isLoadingSavegame, CombatMapInitializationData data, LoadedCallback callback) {\r\n\t\tif (loadingMapScreen == null) {\r\n\t\t\tloadingMapScreen = new LoadingMapScreen(this, gameState);\r\n\t\t} \r\n\t\t\r\n\t\tloadingMapScreen.init(newMapId, oldMap, startPos, isLoadingSavegame, data, callback);\r\n\t\tsetScreen(loadingMapScreen);\r\n\t}", "title": "" }, { "docid": "4ddd4d636a2d13963449574c70452d40", "score": "0.60920316", "text": "private void initMapView() {\r\n \t\tmap = (MapView) findViewById(R.id.themap);\r\n \t\tcontroller = map.getController();\r\n \t\t\r\n \t\t//checks streetView\r\n \t\tif (streetView == 1) {\r\n \t\t\tmap.setStreetView(true);\r\n \t\t\tmap.setSatellite(false);\r\n \t\t} else {\r\n \t\t\tmap.setStreetView(false);\r\n \t\t\tmap.setSatellite(true);\t\r\n \t\t}\r\n \t\tmap.invalidate();\t\r\n \n \t\t//adds the sad and happy overlays to the map\r\n \t\tif (checkSad == 1)\r\n \t\t\tmap.getOverlays().add(sadOverlay);\r\n \t\tif (checkHappy == 1) \r\n \t\t\tmap.getOverlays().add(happyOverlay);\r\n \t\tmap.setBuiltInZoomControls(false); //hides the default map zoom buttons so they don't interfere with the app buttons\r\n \n \t}", "title": "" }, { "docid": "f84cea40e8689cff8a6458a6827f4af4", "score": "0.6090569", "text": "@Override\n public void onMapReady(GoogleMap googleMap) {\n }", "title": "" }, { "docid": "69369a8109ac49723984ef3559ab08e6", "score": "0.60887265", "text": "private void initMap()\n {\n this.map = new UnfoldingMap(this,200,50,1020,620,new Microsoft.RoadProvider());\n MapUtils.createDefaultEventDispatcher(this,this.map);\n /*\n * change first parameter in makeEarthQuakeMarkers\n * no 1st parameter >> FileChooser to choose ATOM file\n * String >> filePath\n * File >> Atom file object\n * URL >> live data url\n * */\n this.markers = MarkerHandler.makeEarthQuakeMarkers(\"./data/2.5_week.atom\",4.0,5.0,10.0,color(0,0,255),color(255,255,0),color(255,0,0));\n this.map.addMarkers(this.markers);\n this.map.zoomLevel(2);\n }", "title": "" }, { "docid": "8243f83caab5b13fd2bcd2b2e8b76ec7", "score": "0.6084911", "text": "private void setUpMap() {\n if (mMap == null) {\n mMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();\n if (mMap != null) {\n\n BitmapDescriptor bitmapDescriptor = BitmapDescriptorFactory.fromResource(R.drawable.zoo_map);\n\n LatLng groundOverlaySW = new LatLng(38.6323985, -90.2962570);\n LatLng groundOverlayNE = new LatLng(38.6377451, -90.2842699);\n LatLngBounds groundOverlayBounds = new LatLngBounds(groundOverlaySW, groundOverlayNE);\n\n GroundOverlayOptions groundOverlayOptions = new GroundOverlayOptions();\n groundOverlayOptions.positionFromBounds(groundOverlayBounds);\n groundOverlayOptions.image(bitmapDescriptor);\n\n mMap.addGroundOverlay(groundOverlayOptions);\n\n CameraPosition cameraPosition = new CameraPosition.Builder()\n .target(ST_LOUIS_ZOO_CENTER) // Sets the center of the map to Mountain View\n .zoom(16) // Sets the zoom\n .build(); // Creates a CameraPosition from the builder\n mMap.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition));\n\n mMap.setMyLocationEnabled(true);\n\n }\n }\n }", "title": "" }, { "docid": "b9de1ea1c53ade2b385082c490fdcca5", "score": "0.60820067", "text": "@Override\n public void onMapReady(GoogleMap googlemap) {\n map=googlemap;\n refreshLoc();\n }", "title": "" }, { "docid": "4e6c0cf93069c93f76058593fd406050", "score": "0.6078966", "text": "public void loadGoogleMaps(){\n cameraPosition = CameraPosition.builder()\n .target(Constants.STUDY_LOCATIONS.get(\"LivingRoom\")) // Where? Lat/Long\n .zoom(18) // Increasing zoom size, doubles width of visible world\n .build(); // returns a cameraPosition instance\n\n\n options = new GoogleMapOptions(); // options for map\n\n /**\n * Specify GoogleMapOptions.. Can add more!\n */\n options.mapType(GoogleMap.MAP_TYPE_SATELLITE)\n .camera(cameraPosition);\n\n /**\n * Make an instance of the MapsActivity which is a FragmentActivity\n */\n mapFragment = MapFragment.newInstance(options);\n\n /**\n * You need this to start adding fragments. Used getSupportFragmentManager() instead of\n * getFragmentManager because its a FragmentActivity not just Fragment\n */\n fragmentManager = getFragmentManager();\n /**\n *FragmentTransaction class to perform fragment transactions (such as add,\n remove, or replace) in your activity:\n */\n\n /**\n * Makes FragmentTransaction instance to add, replace, remove ect.\n */\n fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.add(R.id.mapLayout, mapFragment); // adds the mapFragment to the Linear Layout\n mapFragment.getMapAsync(this); // set the callback for the fragment\n fragmentTransaction.commit(); // Have to commit for it to go through!\n }", "title": "" }, { "docid": "51cd5a019ec0cfb68f4d2c14fb94998a", "score": "0.6071174", "text": "@Override\n public void onMapReady(GoogleMap googleMap) {\n // Get Arena Locations from Google Spreadsheets\n this.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n new GetArenaLocations().execute(\"https://docs.google.com/spreadsheets/d/1EczYnRAMLuE99iMaizpUdOC5BZPkFOcBLiFVfzD5WcI/pub?gid=1754791849&single=true&output=tsv\");\n }\n });\n // Get player location\n getWorldLocation();\n\n mMap = googleMap;\n\n mMap.addMarker(new MarkerOptions()\n .position(llCastle)\n .title(\"Castle\")\n .draggable(true)\n .icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_castle)) );\n mMap.moveCamera(CameraUpdateFactory.newLatLng(llCastle));\n\n\n }", "title": "" }, { "docid": "de946498832ef260e3eeb417dbcc21d0", "score": "0.6069724", "text": "public void loadDefault() {\n\t\tAppLog.begin();\n\t\ttry {\n\t\t\tMap<String, Object> session = ActionContext.getContext()\n\t\t\t\t\t.getSession();\n\t\t\tif (null == session.get(\"ZoneListMap\")) {\n\t\t\t\tsession.put(\"ZoneListMap\", GetterDAO.getZoneListMap());\n\t\t\t}\n\t\t\tif (null == session.get(\"ZROListMap\")) {\n\t\t\t\tMap<String, String> zroListMap = GetterDAO.getAllZRO();\n\t\t\t\tsession.put(\"ZROListMap\", zroListMap);\n\t\t\t\tAppLog.info(\"ZROListMap\" + zroListMap);\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\tAppLog.error(e);\n\t\t\tAppLog.end();\n\t\t}\n\t\tAppLog.end();\n\t}", "title": "" }, { "docid": "3e8459e18f58bd7ab4855a1ddf9dd279", "score": "0.60644394", "text": "private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((com.androidmapsextensions.SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getExtendedMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n // setUpMap();\n }\n }\n }", "title": "" }, { "docid": "59fff423d79fee9faea10c42ef7555ac", "score": "0.6062551", "text": "public Map (String fileName, int xq, int yq, int worldX, int worldY, int health, int ammo,int ammo2, boolean bgmPlayed){\n super(720, 480, 1, worldX ,worldY);//sets world size according to worldx, wolrdy \n map= importMap(fileName);//imports map to filename\n stage = Character.getNumericValue(fileName.charAt(3));//thats the stage \n setPaintOrder(HUD.class, Player.class, Collision.class, Tile.class,Spawner.class);//sets paint order to avoid blocking\n addMainActor(player,xq,yq,0,0);//adds player to xq,yq\n //sets player stats\n player.setHealth(health);\n player.setMissileAmmo(ammo);\n player.setSuperMissileAmmo(ammo2);\n this.bgmPlayed = bgmPlayed;\n //sets background images\n GreenfootImage bg = new GreenfootImage(\"background.png\");\n setScrollingBackground(bg);\n //loads map\n loadMap();\n if (bgmPlayed == false){\n bgm.setVolume(80);\n bgm.playLoop();\n }\n\n //add different objects according to the filename\n if(fileName.equals(\"map1.txt\")){\n addObject(new Door(1,1,1),920,3600); //Door location\n addObject(new NullButton(\"DEFEAT\"),280,3600); //sign\n addObject(new NullButton(\"THE\"),480,3600);\n addObject(new NullButton(\"BOSS\"),680,3600);\n addObject(new MissilePickUp(), 850, 3600); //pick up missiles\n mapNum=1;\n }\n if(fileName.equals(\"map2.txt\")){\n addObject(new Door(2,2,1),280,1056); \n addObject(new Door(2,1,2),1450,240);\n mapNum=2;\n }\n if(fileName.equals(\"map3.1.txt\")){\n addObject(new Door(3,2,1),40,672);\n addObject(new Door(3,1,2),1540,672);\n mapNum=3;\n }\n if(fileName.equals(\"map4.txt\")){\n addObject(new Door(4,2,1),50,192);\n addObject(new Door(4,4,2),50,1440);\n addObject(new Door(4,1,3),825,1200);\n mapNum=4;\n }\n if(fileName.equals(\"map5.txt\")){\n addObject(new Door(5,2,1),50,384); \n addObject(new SuperMissilePickUp(), 1272, 600); //pick up supermissiles\n addObject(new SuperMissilePickUp(), 1272+48, 600);\n addObject(new SuperMissilePickUp(), 1272+48+48, 600);\n mapNum=5;\n }\n if(fileName.equals(\"map6.txt\")){\n addObject(new Door(6,1,1),1165,768);\n addObject(new Door(6,4,2),50,240);\n addObject(new ShootToSave(), 72, 792); //save point\n addObject(new SuperMissilePickUp(), 110, 792);\n mapNum=6;\n }\n if(fileName.equals(\"map4Boss.txt\")){\n boss = new Boss();\n addObject(boss, 360, 600);\n mapNum=7;\n }\n }", "title": "" }, { "docid": "523ca85daa2b7ae7b80032a83fde3f2c", "score": "0.60585886", "text": "public void newLevel(){\n\t\tmap = new Map(width, height, currentTileset.getName(), tileSize);\n\t\tsetChanged();\n\t\tnotifyObservers();\n\t}", "title": "" }, { "docid": "fbb3175f1f4544208f403d32a08d2fa8", "score": "0.60585177", "text": "public void nextMap() {\r\n\t\tint i = allMaps.indexOf(mapName);\r\n\t\t\r\n\t\tif((i + 1) >= allMaps.size()) {\r\n\t\t\t// Play the victory fanfare\r\n\t\t\tSystem.out.println(\"Congratulation! You have won the game.\");\r\n\t\t} else if(i >= 0) {\r\n\t\t\tmapName = allMaps.get(i + 1);\r\n\t\t\tloadMap();\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Sorry! The map doesn't exist.\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e7af6dbd26b0f831ab8dc68fc4b311fc", "score": "0.60547376", "text": "private void getCurrentMap() {\n\n final String mapDirectory = getFilesDir() + \"/\";\n final String mapFileName = mCurrentRobot.map + \".dat\";\n final String mapCompletePath = mapDirectory + mapFileName;\n\n Log.d(TAG, \"Downloading \" + mCurrentRobot.map + \" map for user \" +\n mCloudHelper.getCurrentUserid() + \" to \" + mapDirectory + mapFileName);\n\n mCloudHelper.downloadMap(mCurrentRobot.map, mapCompletePath,\n new Runnable() {\n public void run() {\n FileInputStream fs;\n try {\n fs = openFileInput(mapFileName);\n } catch (FileNotFoundException e) {\n Log.e(TAG, \"Error loading detailed world uuid \" + mCurrentRobot.map +\n \" - data file does not exist\", e);\n //noinspection ThrowInsideCatchBlockWhichIgnoresCaughtException\n throw new Error(\"Could not open world dat file\");\n }\n // TODO(shokman): it should get the name of the map using the local\n // copy on available user maps instead of using \"current_map\"\n DetailedWorld ourWorld = DetailedWorld.loadDetailedWorldFromInputStream(\n mCurrentRobot.map, \"current_map\", fs,\n mRobotMetadata == null ? null : mRobotMetadata.getSmootherParams());\n if (ourWorld != null) {\n getCameraPoseFromFirebase();\n mFloorplan.setFloorplan(ourWorld);\n mFloorplan.updateMarkers();\n mFloorplan.setRobot(mCurrentRobot);\n mFloorplan.setVisibility(View.VISIBLE);\n } else {\n Log.d(TAG, \"Can't download \" + mCurrentRobot.map);\n throw new Error(\"Could not read world dat file\");\n }\n Log.d(TAG, \"Finished downloading map \" + mCurrentRobot.map);\n }\n });\n }", "title": "" }, { "docid": "5fd8c2df4f8e497a51384022f9129e81", "score": "0.60523367", "text": "private void initilizeMap() {\n if (googleMap == null) {\n googleMap = ((MapFragment) getActivity().getFragmentManager().findFragmentById(\n R.id.map)).getMap();\n \n // check if map is created successfully or not\n if (googleMap == null) {\n Toast.makeText((getActivity()).getApplicationContext(),\n \"Sorry! unable to create maps\", Toast.LENGTH_SHORT)\n .show();\n }\n \n // Move the camera to last position with a zoom level\n \n CameraPosition cameraPosition = new CameraPosition.Builder()\n .target(new LatLng(lat,\n log)).zoom(15).build();\n\n googleMap.animateCamera(CameraUpdateFactory\n .newCameraPosition(cameraPosition));\n \n }\n }", "title": "" }, { "docid": "4b36ebaaa94980e43eb354ed4602efb3", "score": "0.60452914", "text": "private void loadMenu() {\r\n\t\t\r\n\t\t//Menu background\r\n\t\tRectangle rect = new Rectangle(0,mapScale,mapScale,scale);\r\n\t\trect.setFill(new ImagePattern(new Image(\"menu.png\"), 0, 0, 1, 1, true ));\r\n\t\tparentRoot.getChildren().add(rect);\r\n\t\t\r\n\t\t//move counter\r\n\t\tmoves = new Label(\"Total Moves: \" + moveCount);\r\n\t\tmoves.setTranslateX(320 );\r\n\t\tmoves.setTranslateY(mapScale+12);\r\n\t\tparentRoot.getChildren().add(moves);\r\n\t\t\r\n\t\t//Switches all ships to guardMode(mode 2), or switch non-ghost ships back to smartChase (mode 1)\r\n\t\tButton mode = new Button(\"Mode 1\");\r\n\t\tmode.setTranslateX(235);\r\n\t\tmode.setTranslateY(mapScale+8);\r\n\t\tparentRoot.getChildren().add(mode);\r\n\t\t\r\n\t\ttype = new Label(\"Ship Chase Type:\");\r\n\t\ttype.setTextFill(Color.BLACK);\r\n\t\ttype.setTranslateX(115);\r\n\t\ttype.setTranslateY(mapScale+12);\r\n\t\tparentRoot.getChildren().add(type);\r\n\t\t\r\n\t\tmode.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent d) {\r\n\t\t\t\ttry {\r\n\t\t\t\tchangeMode(mode);\r\n\t\t\t\t} catch (Exception D) {}\r\n\t\t\t}\r\n\t\t});\r\n\t}", "title": "" }, { "docid": "5934a7278a47af163b1bf76a68c75f1f", "score": "0.6039989", "text": "public static void loadMap(int tileSize, String mapname, MapLoader loader){\r\n TILE_SIZE = tileSize;\r\n String[] lines = GUtil.loadLinesFromFile(mapname);\r\n loadMap(lines, loader);\r\n }", "title": "" }, { "docid": "4455f75b3603d082a9b0adba83db7644", "score": "0.60302407", "text": "public void populateMap(){\n\t}", "title": "" }, { "docid": "887e7b424cc4a2b53693541ffa56a220", "score": "0.6029882", "text": "private void initMap() {\n\t\tmoveCameraToCampus(ncu);\n\t\t//mMap.getUiSettings().setScrollGesturesEnabled(false);\n\t\t//moveCameraTo(ncu);\n\t\t\n\t\t//mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(ncu,16.2f));\n\t}", "title": "" }, { "docid": "0958b8f6f8fe228d0571f088689b5337", "score": "0.60289115", "text": "private void setUpMapIfNeeded() {\n if (mMap == null) {\r\n mMap = ((SupportMapFragment) getSupportFragmentManager()\r\n .findFragmentById(R.id.map))\r\n .getMap();\r\n\r\n\r\n if (mMap != null) {\r\n setUpMap();\r\n\r\n }\r\n }\r\n }", "title": "" }, { "docid": "7853194137757b2557076d2c7e223b16", "score": "0.6024749", "text": "private void loadDefaultMap() {\n\n Json json = new Json();\n\n\n //File f = new File(\"map.json\");\n FileHandle defaultDataFile = Gdx.files.internal(\"defaultMap.json\");\n if (defaultDataFile.exists()) {\n\n //try {\n String profileAsText = defaultDataFile.readString().trim();\n //FileReader file = new FileReader(\"map.json\");\n json.setIgnoreUnknownFields(false);\n json.setUsePrototypes(false);\n //json.setOutputType(JsonWriter.OutputType.json);\n\n Gdx.app.log(\"tankGenerator log \", \"File FOUND\");\n defaultLayerMap = json.fromJson(DefaultLayerMap.class, defaultDataFile);\n\n\n } else {\n Gdx.app.log(\"tankGenerator log \", \"Not FOUND!!! \" + defaultDataFile);\n }\n\n\n }", "title": "" }, { "docid": "33f223d3e4da7d64c78798a9e511bdcc", "score": "0.6023524", "text": "public abstract void initMap();", "title": "" }, { "docid": "6778655aa3e6d36acca05711e571d24a", "score": "0.6017696", "text": "private static GameMap createLoad(Game g) {\n\t\tGameMap map = load(g, Constants.SYS_PREFIX + \"savesMap\");\n\t\tMap<Integer, String> saves = SaveHandler.getSaves();\n\n\t\tfor (int i = 1; i < 4; i++) {\n\t\t\tmap.addGameObject(new Text(i * 8 - 0.5f, -11, 1, saves.getOrDefault(i, \"empty\"), 0.5f, true, 0.5f, 0f, null));\n\t\t\tmap.addGameObject(new Text(i * 8 - 0.5f, -10, 1, \"slot \" + i, 0.5f, true, 0.5f, 0f, null));\n\t\t\tif (saves.containsKey(i)) {\n\t\t\t\tfinal int slot = i;\n\t\t\t\tfinal String date = saves.get(i);\n\t\t\t\tmap.addGameObject(new Exit(i * 8 - 1, -13, 1, Constants.SYS_PREFIX + \"world\", new Tree((tree, game) -> {\n\t\t\t\t\tgame.loadValues(slot + \"-\" + date);\n\t\t\t\t\treturn null;\n\t\t\t\t})));\n\t\t\t} else {\n\t\t\t\t//locked door\n\t\t\t}\n\t\t}\n\t\tmap.setSpawnPoint(15, -16, 0.5f);\n\t\tmap.addGameObject(new Exit(15, -16, 0.6f, Constants.SYS_PREFIX + \"menu\", null));\n\t\treturn map;\n\t}", "title": "" }, { "docid": "d672dbad5b35a0e0fb513055fd43f33a", "score": "0.6015036", "text": "@Override\n\tpublic void onClick(View v) {\n\t\tgetMap();\n\t}", "title": "" }, { "docid": "49bd44bd03bf2316da5540c909915360", "score": "0.60138917", "text": "private void initializeMap() {\n\t\tmap = this.getMap();\n\t\tif (map != null) {\n\t\t\tmap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n\t\t\t\t\tdefaultCameraLatLng, defaultCameraZoom));\n\t\t\tmap.setMyLocationEnabled(true);\n\t\t\tmap.setOnMyLocationButtonClickListener(this);\n\t\t\tmap.setOnMapClickListener(new MapClickListener(activity));\n\t\t\tmap.setOnCameraChangeListener(this);\n\t\t}\n\t}", "title": "" }, { "docid": "10dcbb6a6851d3317f4b371662bc63bd", "score": "0.6006703", "text": "private void displayGame(){\n frame.getContentPane().removeAll();\n mapPanel = new MapPanel();\n frame.getContentPane().add(mapPanel);\n frame.pack();\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setVisible(true);\n frame.setResizable(false);\n frame.requestFocus();\n frame.setCursor(Cursor.getPredefinedCursor(Cursor.CROSSHAIR_CURSOR));\n }", "title": "" }, { "docid": "739485a10a4ffa2cac415e7756ebc671", "score": "0.6002568", "text": "private void onMapChanged() {\r\n\t\t// And here's the map...\r\n\t\tint levelNumber = gameState.getLevel();\r\n\t\tLevelFeature levelFeature = gameState.getLevelFeature();\r\n\t\tString levelName = levelFeature.getTitle().toUpperCase();\r\n\t\tswitch (gameState.getGameMode()) {\r\n\t\t\tcase WormGameState.GAME_MODE_ENDLESS:\r\n\t\t\t\tColorMapFeature.getDefaultColorMap().copy((ColorMapFeature) Resources.get(\"earth.colormap\"));\r\n\t\t\t\tbreak;\r\n\t\t\tcase WormGameState.GAME_MODE_XMAS:\r\n\t\t\t\tColorMapFeature.getDefaultColorMap().copy((ColorMapFeature) Resources.get(\"xmas.colormap\"));\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tString world = gameState.getWorld().getUntranslated();\r\n\t\t\t\tColorMapFeature.getDefaultColorMap().copy((ColorMapFeature) Resources.get(world+\".colormap\"));\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\tLevelColorsFeature colors = levelFeature.getColors();\r\n\r\n\t\trenderer.setMap(gameState.getMap());\r\n\t\tcolors.init(renderer);\r\n\t\tAttenuatedColor.setAttenuation(colors.getColor(AttenuatedColor.ATTENUATE));\r\n\r\n\t\ttimeLeftColorBottom = new MappedColor(TIME_LEFT_COLOR_BOTTOM);\r\n\t\ttimeLeftColorTop = new MappedColor(TIME_LEFT_COLOR_TOP);\r\n\t\ttimePastColorBottom = new MappedColor(TIME_PAST_COLOR_BOTTOM);\r\n\t\ttimePastColorTop = new MappedColor(TIME_PAST_COLOR_TOP);\r\n\r\n\t\tpowerupTimeLeftColorBottom = new MappedColor(POWERUP_TIME_LEFT_COLOR_BOTTOM);\r\n\t\tpowerupTimeLeftColorTop = new MappedColor(POWERUP_TIME_LEFT_COLOR_TOP);\r\n\t\tpowerupTimePastColorBottom = new MappedColor(POWERUP_TIME_PAST_COLOR_BOTTOM);\r\n\t\tpowerupTimePastColorTop = new MappedColor(POWERUP_TIME_PAST_COLOR_TOP);\r\n\r\n\t\tbuildColor = new MappedColor(BUILD_COLOR);\r\n\t\tcantBuildColor = new MappedColor(CANT_BUILD_COLOR);\r\n\r\n\t\tif (gameState.getGameMode() == WormGameState.GAME_MODE_SURVIVAL) {\r\n\t\t\tlevelArea.setText(\"00:00:00:00\");\r\n\t\t} else if (gameState.getGameMode() == WormGameState.GAME_MODE_XMAS) {\r\n\t\t\tlevelArea.setText(levelName);\r\n\t\t} else if (levelNumber < 9) {\r\n\t\t\tlevelArea.setText(\"0\"+String.valueOf(levelNumber + 1)+\" \"+levelName);\r\n\t\t} else {\r\n\t\t\tlevelArea.setText(String.valueOf(levelNumber + 1)+\" \"+levelName);\r\n\t\t}\r\n\r\n\t\t// Ambient music\r\n\t\tif (gameState.getGameMode() == WormGameState.GAME_MODE_XMAS) {\r\n\t\t\tGame.playMusic((ALStream) Resources.get(\"december.stream\"), 180);\r\n\t\t} else if (levelNumber == -1) {\r\n\t\t\t// Survival mode. Music will change periodically.\r\n\t\t} else {\r\n\t\t\tGame.playMusic(Res.getAmbient(levelNumber), 180);\r\n\t\t}\r\n\r\n\t\t// And the map scrolly display\r\n\t\tmapX = (gameState.getMap().getWidth() * MapRenderer.TILE_SIZE - Game.getWidth()) / 2;\r\n\t\tmapY = (gameState.getMap().getHeight() * MapRenderer.TILE_SIZE - Game.getHeight()) / 2;\r\n\r\n\t\t// Weather\r\n\t\tif (levelFeature.getWeather() != null) {\r\n\t\t\tlevelFeature.getWeather().spawn(this);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0d26b3eae2527607ac0884e4b101bf8a", "score": "0.5999065", "text": "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n checkLocationandAddToMap();\n }", "title": "" }, { "docid": "0b4aa6dea539d07bae01901b17e493c6", "score": "0.5996345", "text": "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n // Move camera to new location\n mMap.setOnMapClickListener(new PlaceMarkerAt());\n // Check if there's markers and display them\n mMap.setMapType(MAP_TYPE);\n // Move camera to s\n MoveCameraToStart();\n }", "title": "" }, { "docid": "fe947bacc1b6f035c1a04d77df18f1a1", "score": "0.59962744", "text": "void scheduleMapRedraw();", "title": "" }, { "docid": "4ff3a80951cefe3867518d313d9f6bae", "score": "0.599556", "text": "public void showMap(ArrayList<Map> mapArrayList) {\n baseView.showMap(mapArrayList);\n }", "title": "" }, { "docid": "39c3bacbc2d3f20c1826702dbcf937c8", "score": "0.5992421", "text": "private void setUpMapIfNeeded() {\n if (mMap == null) {\r\n // Try to obtain the map from the SupportMapFragment.\r\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\r\n .getMap();\r\n // Check if we were successful in obtaining the map.\r\n if (mMap != null) {\r\n setUpMap();\r\n }\r\n }\r\n }", "title": "" }, { "docid": "39c3bacbc2d3f20c1826702dbcf937c8", "score": "0.5992421", "text": "private void setUpMapIfNeeded() {\n if (mMap == null) {\r\n // Try to obtain the map from the SupportMapFragment.\r\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\r\n .getMap();\r\n // Check if we were successful in obtaining the map.\r\n if (mMap != null) {\r\n setUpMap();\r\n }\r\n }\r\n }", "title": "" }, { "docid": "d39ccf78e802242d1b444a41062d9c90", "score": "0.59854156", "text": "void goToMapFailed();", "title": "" }, { "docid": "b91770cf38e12ba394ff5c1b01da4c13", "score": "0.5984867", "text": "public void showMapScreen()\n\t{\n\t\tGraphics g2 = bufferStrategy.getDrawGraphics();\n\n\t\tif(bufferEnviron == null)\n\t\t{\n\t\t\tbufferEnviron = new BufferedImage(Globals.CANVAS_HALL_X * Globals.TILESCALE, Globals.CANVAS_HALL_Y * Globals.TILESCALE, BufferedImage.TYPE_INT_RGB);\n\t\t}\n\t\tGraphics g = bufferEnviron.getGraphics();\n\n\t\tif(Globals.CURR_DUNGEON.getImageBackMap() != null)\n\t\t{\n\t\t\tg.drawImage(Globals.CURR_DUNGEON.getImageBackMap(), 0, 0, this);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tg.setColor(Globals.CURR_DUNGEON.getColorMapBackground());\n\t\t\tg.fillRect(0, 0, bufferEnviron.getWidth(this), bufferEnviron.getHeight(this));\n\t\t}\n\n\t\tint mapOffsetX = (bufferEnviron.getWidth(this) - (currBoard.getWidth() * Globals.TILESCALE)) / 2;\n\t\tint mapOffsetY = (bufferEnviron.getHeight(this) - (currBoard.getHeight() * Globals.TILESCALE)) / 2;\n\n\t\tfor(int y = 0; y < currBoard.getHeight(); y++)\n\t\t{\n\t\t\tfor(int x = 0; x < currBoard.getWidth(); x++)\n\t\t\t{\n\t\t\t\tint tileVal = currBoard.getGridValue(x, y);\n\t\t\t\tint posX = (x * Globals.TILESCALE) + mapOffsetX;\n\t\t\t\tint posY = (y * Globals.TILESCALE) + mapOffsetY;\n\t\t\t\tif(currBoard.isAwareOfTile(x, y))\n\t\t\t\t{\n\t\t\t\t\tif(tileVal == Globals.MAP_SOLID)\n\t\t\t\t\t{\n\t\t\t\t\t}\n\t\t\t\t\telse if(isLocationRoom(currBoard, x, y))\n\t\t\t\t\t{\n\t\t\t\t\t\tint imageOffset = 0;\n\t\t\t\t\t\tint rowOffset = 2;\n\t\t\t\t\t\tif(currBoard.isSeen(x, y))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// only draw room as square, as interior is unknown without being mapped or visited\n\t\t\t\t\t\t\timageOffset = Globals.MAPIMAGE_UNKNOWN;\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\tif(currBoard.getRoom(x, y).hasActiveMonsters())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\timageOffset = Globals.MAPIMAGE_MONSTERS;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(currBoard.getRoom(x, y).getStairType() == Globals.STAIRS_UP)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\timageOffset = Globals.MAPIMAGE_UP;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(currBoard.getRoom(x, y).getStairType() == Globals.STAIRS_DOWN)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\timageOffset = Globals.MAPIMAGE_DOWN;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(currBoard.getRoom(x, y).getFeatureType() == Globals.FEATURE_FOUNTAIN)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\timageOffset = Globals.MAPIMAGE_FOUNTAIN;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(currBoard.getRoom(x, y).getFeatureType() == Globals.FEATURE_STATUE)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\timageOffset = Globals.MAPIMAGE_STATUE;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(currBoard.getRoom(x, y).getFeatureType() == Globals.FEATURE_SHOP)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\timageOffset = Globals.MAPIMAGE_SHOP;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(currBoard.getRoom(x, y).hasVault())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\timageOffset = Globals.MAPIMAGE_VAULT;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\timageOffset = Globals.MAPIMAGE_NORMAL;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(currBoard.isVisited(x, y))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\trowOffset = 3;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tg.drawImage(Globals.CURR_DUNGEON.getImageMapTiles(), posX, posY, posX + Globals.TILESCALE, posY + Globals.TILESCALE, imageOffset * Globals.TILESCALE, Globals.TILESCALE * rowOffset, (imageOffset * Globals.TILESCALE) + Globals.TILESCALE, (rowOffset * Globals.TILESCALE) + Globals.TILESCALE, this);\n\t\t\t\t\t}\n\t\t\t\t\telse if((tileVal & Globals.MAP_FOUNTAIN) == Globals.MAP_FOUNTAIN)\n\t\t\t\t\t{\n\t\t\t\t\t\tint rowOffset = 2;\n\t\t\t\t\t\tif(currBoard.isVisited(x, y))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\trowOffset = 3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tg.drawImage(Globals.CURR_DUNGEON.getImageMapTiles(), posX, posY, posX + Globals.TILESCALE, posY + Globals.TILESCALE, 15 * Globals.TILESCALE, Globals.TILESCALE * rowOffset, (15 * Globals.TILESCALE) + Globals.TILESCALE, (rowOffset * Globals.TILESCALE) + Globals.TILESCALE, this);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(Globals.CURR_DUNGEON.getImageMapTiles() != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tg.drawImage(Globals.CURR_DUNGEON.getImageMapTiles(), posX, posY, posX + Globals.TILESCALE, posY + Globals.TILESCALE, tileVal * Globals.TILESCALE, (currBoard.isVisited(x, y) ? 0 : Globals.TILESCALE), (tileVal * Globals.TILESCALE) + Globals.TILESCALE, (currBoard.isVisited(x, y) ? Globals.TILESCALE : Globals.TILESCALE * 2), this);\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\tif((tileVal & Globals.FACINGS[Globals.NORTH]) == Globals.FACINGS[Globals.NORTH])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tg.fillRect(x * Globals.TILESCALE + (Globals.TILESCALE / 4) + (int)(Globals.TILESCALE / 8), y * Globals.TILESCALE, (Globals.TILESCALE / 4), Globals.HALFSCALE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif((tileVal & Globals.FACINGS[Globals.SOUTH]) == Globals.FACINGS[Globals.SOUTH])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tg.fillRect(x * Globals.TILESCALE + (Globals.TILESCALE / 4) + (int)(Globals.TILESCALE / 8), y * Globals.TILESCALE + Globals.HALFSCALE, (Globals.TILESCALE / 4), Globals.HALFSCALE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif((tileVal & Globals.FACINGS[Globals.EAST]) == Globals.FACINGS[Globals.EAST])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tg.fillRect(x * Globals.TILESCALE + Globals.HALFSCALE, y * Globals.TILESCALE + (Globals.TILESCALE / 4) + (Globals.TILESCALE / 8), Globals.HALFSCALE, (Globals.TILESCALE / 4));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif((tileVal & Globals.FACINGS[Globals.WEST]) == Globals.FACINGS[Globals.WEST])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tg.fillRect(posX, posY + (Globals.TILESCALE / 4) + (Globals.TILESCALE / 8), Globals.HALFSCALE, (Globals.TILESCALE / 4));\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}\n\t\t// draw party indicator\n\t\tint posX = (party.getLocationX() * Globals.TILESCALE) + mapOffsetX;\n\t\tint posY = (party.getLocationY() * Globals.TILESCALE) + mapOffsetY;\n\t\tg.drawImage(Globals.CURR_DUNGEON.getImageMapTiles(), posX, posY, posX + Globals.TILESCALE, posY + Globals.TILESCALE, (Globals.MAPIMAGE_PARTY + party.getFacing()) * Globals.TILESCALE, 3 * Globals.TILESCALE, ((Globals.MAPIMAGE_PARTY + party.getFacing()) * Globals.TILESCALE) + Globals.TILESCALE, 4 * Globals.TILESCALE, this);\n\t\t// show map screen\n\t\tg2.drawImage(bufferEnviron, Globals.CANVAS_HALL_OFFSET_X, Globals.CANVAS_HALL_OFFSET_Y, this);\n\t\tg.dispose();\n\t\tg2.dispose();\n\t}", "title": "" } ]
00c701f84c9ffd8d2d63c3e5fbe6725c
This method was generated by MyBatis Generator. This method returns the value of the database column DBS.DB_ID
[ { "docid": "7f5668df654cdc2de8f3d6f447bbea7a", "score": "0.72991633", "text": "public Long getDbId() {\r\n return dbId;\r\n }", "title": "" } ]
[ { "docid": "0e2c8a1b49261ded30820675135b5d16", "score": "0.6846465", "text": "public long getDbid() {\n return dbid;\n }", "title": "" }, { "docid": "c52a38d1e9299ef10f1156edbfd7d953", "score": "0.6664492", "text": "public UUID databaseId() {\n return this.innerProperties() == null ? null : this.innerProperties().databaseId();\n }", "title": "" }, { "docid": "19d812afcaa4d09437bc318b05e5bd29", "score": "0.64450145", "text": "protected abstract String getDatabaseID();", "title": "" }, { "docid": "fb4f8c7aa9aa297c38b631660c1a9bae", "score": "0.6277201", "text": "public StrColumn getDbCode() {\n return delegate.getColumn(\"db_code\", DelegatingStrColumn::new);\n }", "title": "" }, { "docid": "7440f8754aa6f5c8021bd77ee88556ec", "score": "0.60741305", "text": "public UUID sqlServerDatabaseId() {\n return this.sqlServerDatabaseId;\n }", "title": "" }, { "docid": "3a568f902308fd15ddb05cf99b015ed5", "score": "0.6059702", "text": "public int getDbValue() {\r\n return dbValue;\r\n }", "title": "" }, { "docid": "8d73fcdfd52d0a56e6be6c61babcdb35", "score": "0.5999312", "text": "public String sourceDatabaseId() {\n return this.innerProperties() == null ? null : this.innerProperties().sourceDatabaseId();\n }", "title": "" }, { "docid": "8fc62611c4df3b770069a2d871be05f3", "score": "0.59683067", "text": "public String getDb() {\n Preconditions.checkNotNull(dbName_);\n return dbName_;\n }", "title": "" }, { "docid": "b5535229a4ae2161a71d49fe3ee801fe", "score": "0.587358", "text": "String getDbColumn();", "title": "" }, { "docid": "4d04900d3b7540c0308eddbef44732cd", "score": "0.58562833", "text": "public String getDb() {\n\t\treturn db;\n\t}", "title": "" }, { "docid": "3990e3efbb4b26f21355dcfc3cc99d19", "score": "0.5804215", "text": "@Override\n\tpublic DbKey getAppId()\n\t{\n\t\treturn Constants.undefinedId;\n\t}", "title": "" }, { "docid": "b9eeec893e538423078d0422af541d9e", "score": "0.5803688", "text": "public void setDbId(Long dbId) {\r\n this.dbId = dbId;\r\n }", "title": "" }, { "docid": "ea10fb665fc2400f0e86fc01b567a2af", "score": "0.57879674", "text": "public String getDb() {\n return db;\n }", "title": "" }, { "docid": "ea10fb665fc2400f0e86fc01b567a2af", "score": "0.57879674", "text": "public String getDb() {\n return db;\n }", "title": "" }, { "docid": "86dbca590091d736e0a9d4a920eed9fc", "score": "0.57799244", "text": "public String recoverableDatabaseId() {\n return this.innerProperties() == null ? null : this.innerProperties().recoverableDatabaseId();\n }", "title": "" }, { "docid": "89b087c097bcd421fa7548b2b1914476", "score": "0.5744173", "text": "public StrColumn getDbName() {\n return delegate.getColumn(\"db_name\", DelegatingStrColumn::new);\n }", "title": "" }, { "docid": "90d8453e0b987260e0d34d7dfc3033d2", "score": "0.5732537", "text": "public String restorableDroppedDatabaseId() {\n return this.innerProperties() == null ? null : this.innerProperties().restorableDroppedDatabaseId();\n }", "title": "" }, { "docid": "c0d1571df9fc15b89af490f1363b0c5b", "score": "0.5709837", "text": "@Override\r\n public DBDef getCurrentDBDef() {\r\n return DBCurrent.getInstance().currentDBDef();\r\n }", "title": "" }, { "docid": "31982e235b2e5a390ae8baed2c98e27d", "score": "0.5701922", "text": "public DBDef getCurrentDBDef() { return DBCurrent.getInstance().currentDBDef(); }", "title": "" }, { "docid": "3a87c79593dce6976260c55f54b3ce93", "score": "0.5681067", "text": "public static final String getDatabaseName() {\n \t\tif (UOpts.getString(UAppCfg.DATABASE_CREDITACCT_COL) != null)\n \t\t\treturn UOpts.getString(UAppCfg.DATABASE_CREDITACCT_COL);\n \t\t\n \t\treturn UOpts.getAppName();\n \t}", "title": "" }, { "docid": "e41e3c037c34b19eac3398019af7c10e", "score": "0.56511873", "text": "String getDbReplicaId();", "title": "" }, { "docid": "f82b093400f6728b0b5b68bae46ff2d4", "score": "0.5633341", "text": "public DbName getDbName() {\n return dbName;\n }", "title": "" }, { "docid": "f95eacf9b2d11677b50f18fdc1da23ca", "score": "0.5621339", "text": "@Override\n\tpublic String getDBName() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "befbb33d1719040b526a595975d55b4e", "score": "0.5582887", "text": "@Override\r\n\tpublic Long getId() {\n\t\treturn this.columnid;\r\n\t}", "title": "" }, { "docid": "b94554dddf32f136c4925b294aa4560f", "score": "0.5573521", "text": "public String getId(){\n return BaseColumns._ID;\n }", "title": "" }, { "docid": "4941e9a578e5fa8bac3afb3b82707873", "score": "0.5569528", "text": "java.lang.String getConnectionId();", "title": "" }, { "docid": "e1adb521dae8e2b200176613834fdec4", "score": "0.5567776", "text": "public StrColumn getGoId() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"go_id\", StrColumn::new) :\n getBinaryColumn(\"go_id\"));\n }", "title": "" }, { "docid": "3cb8805e090ba65e0dbe895a45870869", "score": "0.55297476", "text": "@Override\n\t\tprotected Object determineCurrentLookupKey() {\n\t\t\treturn DbContextHolder.getDbType();\n\t\t}", "title": "" }, { "docid": "bf2a7a29214eb3e35e97368a17264f8f", "score": "0.552405", "text": "public String getDbName() {\n return dbName;\n }", "title": "" }, { "docid": "05a8aea7b24f5c68835e210ec2925a7d", "score": "0.55067366", "text": "String getDatabaseColumn();", "title": "" }, { "docid": "c75034436cec31564b46aa911418264d", "score": "0.5504213", "text": "public String dbType() {\n return dbType;\n }", "title": "" }, { "docid": "2c39579096d43b6d0f8590898d156b33", "score": "0.55001837", "text": "public int getAD_Column_ID() \n{\nInteger ii = (Integer)get_Value(\"AD_Column_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "title": "" }, { "docid": "c0b61c94fb713e6ed6d88658d7e1f169", "score": "0.5499588", "text": "public String pid() throws SQLException {\r\n Statement oStmt;\r\n ResultSet oRSet;\r\n String sPId = \"unknown\";\r\n switch (getDataBaseProduct()) {\r\n case DBMS_POSTGRESQL:\r\n oStmt = createStatement();\r\n oRSet = oStmt.executeQuery(\"SELECT pg_backend_pid()\");\r\n if (oRSet.next())\r\n sPId = String.valueOf(oRSet.getInt(1));\r\n oRSet.close();\r\n oStmt.close();\r\n break;\r\n case DBMS_ORACLE:\r\n oStmt = createStatement();\r\n oRSet = oStmt.executeQuery(\"SELECT SYS_CONTEXT('USERENV','SESIONID') FROM DUAL\");\r\n if (oRSet.next())\r\n sPId = oRSet.getString(1);\r\n oRSet.close();\r\n oStmt.close();\r\n break;\r\n }\r\n return sPId;\r\n }", "title": "" }, { "docid": "da24ce18064949f5a0c7b6e73efe7087", "score": "0.54917675", "text": "public String dbupdate(String sql){\r\n\t\tString genID = \"\";\r\n\t\ttry{\r\n\t \t// Register JDBC driver\r\n\t Class.forName(\"com.mysql.jdbc.Driver\").newInstance();\r\n\t // Open a connection\r\n\t conn = DriverManager.getConnection(DB_URL,USER,PASS);\r\n\t // Execute SQL query\r\n\t stmt = conn.createStatement();\r\n\t \r\n\t stmt.executeUpdate(sql, Statement.RETURN_GENERATED_KEYS); \r\n\t \r\n\t ResultSet generatedKeys = stmt.getGeneratedKeys();\r\n\t if(generatedKeys.next()){\r\n\t System.out.println(\"ID_DB = \" + generatedKeys.getInt(1));\r\n\t genID = \"\" + generatedKeys.getInt(1);\r\n\t }\r\n\t }\r\n\t catch(SQLException se){\r\n\t //Handle errors for JDBC\r\n\t se.printStackTrace();\r\n\t System.out.println(\"Fehler se\");\r\n\t }\r\n\t catch(Exception e){\r\n\t //Handle errors for Class.forName\r\n\t e.printStackTrace();\r\n\t System.out.println(\"Fehler e\");\r\n\t }\r\n\t finally{\r\n\t \t System.out.println(\"Done doGet\");\r\n\t\t\t try{\r\n\t\t\t\t// Clean-up environment\r\n\t\t\t\trs.close();\r\n\t\t\t\tstmt.close();\r\n\t\t\t\tconn.close();\r\n\t\t\t }\r\n\t\t\t catch(Exception ex){\r\n\t\t\t\tSystem.out.println( \"Exception : \" + ex.getMessage() );\r\n\t\t\t }\r\n\t }\r\n\treturn genID;\r\n\t}", "title": "" }, { "docid": "3d89043156b65908f3d8124f760db7c5", "score": "0.5467667", "text": "public long getConfigID() {\n\t\tLOG.trace(\"Return from AbstractResource#getConfigID\");\n\t\treturn configID;\n\t}", "title": "" }, { "docid": "bfe38100ad01c7bbf58ecffde38c1787", "score": "0.54569805", "text": "public String getDbType() {\n//$Section=Attribute get$ID=3FC4CE900299$Preserve=yes\n if (iDbType == null) return getType();\n return iDbType;\n//$Section=Attribute get$ID=3FC4CE900299$Preserve=no\n }", "title": "" }, { "docid": "a7955fff6f6b4def20f72da87971b75d", "score": "0.5455341", "text": "public String DataBaseKey() {\n\t\t\treturn \"ID\";\n\t\t}", "title": "" }, { "docid": "f48813e7d7301c3571694f9e19f583ad", "score": "0.5441061", "text": "public String db() {\n return db;\n }", "title": "" }, { "docid": "7e58d85daabb407582fc93b29453a186", "score": "0.541525", "text": "protected long getLatestVersionID() throws SQLException, LoggedInException {\n\t\tString latest_sql = \"SELECT latest_version_id_ FROM \"\n\t\t\t\t+ DatabaseManager.getTableName(DatabaseObject.class) + \" WHERE version_chain_='\"\n\t\t\t\t+ this.version_chain_ + \"' LIMIT 1\";\n\t\tResultSet rs = DatabaseManager.executeQuery(latest_sql);\n\t\tif (DatabaseManager.getRowCount(rs) == 0)\n\t\t\treturn id_;\n\t\treturn rs.getLong(1);\n\t}", "title": "" }, { "docid": "213bcf4b2890824f15692381d30b1942", "score": "0.54143035", "text": "public String getDbName() {\r\n\t\treturn dbName;\r\n\t}", "title": "" }, { "docid": "93fdaac07b89109a0e7ee1bbc72abc71", "score": "0.540307", "text": "public String getDataSourceId() {\n return config.datasourceId == null ? \"default\" : config.datasourceId;\n }", "title": "" }, { "docid": "4cdd2b5392c08afe94be1771f38f6a9f", "score": "0.53983766", "text": "java.lang.String getTableId();", "title": "" }, { "docid": "2615155b4d7bae9c3a8bd138ef45fb3e", "score": "0.53971374", "text": "public int readBlogLastId() throws SQLException {\n int lastid=0;\n Statement statement=connection.createStatement();\n String sql=\"select MAX(id) from myblog\";\n ResultSet rs=statement.executeQuery(sql);\n ResultSetMetaData rsm=rs.getMetaData();\n if (rs.next()){\n lastid=rs.getInt(rsm.getColumnName(1));\n }\n return lastid;\n }", "title": "" }, { "docid": "6e30810af77142b8758e3bec3b65e822", "score": "0.5394511", "text": "String getDatabaseTypeIdentifier(\n );", "title": "" }, { "docid": "c66b5e42353aba5db2ef60d3f4af8b54", "score": "0.53893214", "text": "public StrColumn getAssemblyId() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"assembly_id\", StrColumn::new) :\n getBinaryColumn(\"assembly_id\"));\n }", "title": "" }, { "docid": "b6bbe8a3d814848fa2d3c5ee0714e360", "score": "0.5386701", "text": "public String getDbName() {\n\t\treturn dbName;\n\t}", "title": "" }, { "docid": "b6bbe8a3d814848fa2d3c5ee0714e360", "score": "0.5386701", "text": "public String getDbName() {\n\t\treturn dbName;\n\t}", "title": "" }, { "docid": "95871bffb9bbdf52722e710d37bab422", "score": "0.5380311", "text": "private long getSequence() {\n\t\tDbSequence dbSeq = dbSeqRepo.findById(Cart.DB_SEQ).orElse(new DbSequence());\n\t\tlong seqId = dbSeq.getSeq() + 1;\n\t\tdbSeq.setSeq(seqId);\n\t\tdbSeq.setId(Cart.DB_SEQ);\n\t\tdbSeqRepo.save(dbSeq);\n\n\t\treturn seqId;\n\t}", "title": "" }, { "docid": "137d7a302673c171d57dcd1621a07766", "score": "0.53491783", "text": "public int getDbStatus() {\n return dbStatus;\n }", "title": "" }, { "docid": "46ad3edce390aa75e91d3c68e4b1853d", "score": "0.5329511", "text": "String getSqlId(String sql);", "title": "" }, { "docid": "91641fd7fed03797b5cd69283e9db562", "score": "0.5321984", "text": "public String getDbType() {\n\t\treturn dbType;\n\t}", "title": "" }, { "docid": "f32b915cd68a679acc7f6a33dbc3d816", "score": "0.5278032", "text": "public String DataBaseKey() {\n\t\t\treturn \"USER_ID\";\n\t\t}", "title": "" }, { "docid": "9e02de2534a420148a9eac1649a133dd", "score": "0.5277803", "text": "public String getDbUsr() {\n\t\treturn dbUsr;\n\t}", "title": "" }, { "docid": "1750b654f53b1ce31eb42b454a248bb9", "score": "0.5270154", "text": "String getConnectionID();", "title": "" }, { "docid": "67114cae1797b1f247c4fce413da0343", "score": "0.5266606", "text": "public Integer getAppid() {\n return appid;\n }", "title": "" }, { "docid": "99b28b0e3b326310684cb8e57359abe3", "score": "0.52631867", "text": "String getDatabaseName();", "title": "" }, { "docid": "079714bc156a92c890bcb7f31afbb762", "score": "0.52445805", "text": "@Override\n public String getDatabaseName() {\n return databaseName;\n }", "title": "" }, { "docid": "4a62aef7f62cd03626c4016e69609a78", "score": "0.5243118", "text": "public Long getId() {\n return this.config_item.getDisplay_id();\n }", "title": "" }, { "docid": "77c9d87b415074d48ba734a8eb84fae2", "score": "0.5237123", "text": "public String getDBPath() {\n\t\treturn (new File(dbName)).toPath().getParent().toString();\n\t}", "title": "" }, { "docid": "b5f16497abf593ebc22eefa4c9b24c78", "score": "0.5233784", "text": "public String getDbName() {\n//$Section=Attribute get$ID=3FC4CE8802B6$Preserve=yes\n if (iDbName == null) return getName();\n return iDbName;\n//$Section=Attribute get$ID=3FC4CE8802B6$Preserve=no\n }", "title": "" }, { "docid": "3fb1861ecd27df811a967841c6eacb29", "score": "0.52329606", "text": "public Integer getId()\n\t{\n\t\treturn this.getServiceDefinitionId();\n\t}", "title": "" }, { "docid": "4da8f085d8ed3004a791c7ab71e826c8", "score": "0.5222974", "text": "public String getDbUser() {\r\n\t\treturn dbUser;\r\n\t}", "title": "" }, { "docid": "c6f9ee00f5a217a7df53cf9032b62681", "score": "0.5219899", "text": "public String getDbUser() {\r\n return dbUser;\r\n }", "title": "" }, { "docid": "e3c33e8eaab9dc565e13a1a03702a429", "score": "0.52194476", "text": "String getDbName();", "title": "" }, { "docid": "e30c93d04df3aee0ea754b10c5466c6f", "score": "0.5210845", "text": "public Column getIdColumn() {\n return idColumns.size() == 1 ? idColumns.get(0) : null;\n }", "title": "" }, { "docid": "107e3779ff8b38aa5548169d09999725", "score": "0.5206936", "text": "public int getId() {\r\n\t\t//your code here\r\n\t\treturn this.tableId;\r\n\t}", "title": "" }, { "docid": "7ccddf30b5251534baabb4e8d0f752bf", "score": "0.5204036", "text": "public String getGlassfishDb() {\n return _hash.getString(GLASSFISH_DB, DEFAULT_GLASSFISH_DB);\n }", "title": "" }, { "docid": "8928eec852cc4fe50f0fa69c7c866280", "score": "0.5203983", "text": "public java.lang.String getDbDriverName(){\n\t\treturn this.dbDriverName;\n\t}", "title": "" }, { "docid": "7977a565ec975384d680e43f6f69eead", "score": "0.5194091", "text": "@Override\r\n\tprotected String getDatabaseName() {\n\t\tSystem.err.println(database);\r\n\t\treturn database;\r\n\t}", "title": "" }, { "docid": "b193ac3d7fff4b8fb43abb38551f7ef8", "score": "0.51882344", "text": "protected String getDatabaseName()\n {\n return activeDatabase;\n }", "title": "" }, { "docid": "bdb57babd87d6b51a9fc0c5d874bfe8a", "score": "0.5187748", "text": "public String getLastInsertID()\n\t{\n\t\treturn this.lastinsert_id.toString();\n\t}", "title": "" }, { "docid": "844d7387dda10ccadc2dd46ea196f9a4", "score": "0.51873094", "text": "public int getDatabaseType()\n {\n return DBConstants.LOCAL;\n }", "title": "" }, { "docid": "90806a5e69588b7ed694b60d43f551dd", "score": "0.51717496", "text": "@ApiModelProperty(example = \"175ac75a\", required = true, value = \"The ID which uniquely identifies a study within the given database server MIAPPE V1.1 (DM-11) Study unique ID - Unique identifier comprising the name or identifier for the institution/database hosting the submission of the study data, and the identifier of the study in that institution.\")\n \n\n public String getStudyDbId() {\n return studyDbId;\n }", "title": "" }, { "docid": "95e3ab10ad527c15ae1701a577f9d797", "score": "0.5170955", "text": "@java.lang.Override\n public int getAppid() {\n return appid_;\n }", "title": "" }, { "docid": "95e3ab10ad527c15ae1701a577f9d797", "score": "0.5170955", "text": "@java.lang.Override\n public int getAppid() {\n return appid_;\n }", "title": "" }, { "docid": "2bf63d45d3604985ff1ef23828b8652e", "score": "0.515968", "text": "int getAppid();", "title": "" }, { "docid": "2bf63d45d3604985ff1ef23828b8652e", "score": "0.515968", "text": "int getAppid();", "title": "" }, { "docid": "587c4838e8c64a25cc626c0c19f576d0", "score": "0.5159387", "text": "public String databaseName() {\n return this.databaseName;\n }", "title": "" }, { "docid": "587c4838e8c64a25cc626c0c19f576d0", "score": "0.5159387", "text": "public String databaseName() {\n return this.databaseName;\n }", "title": "" }, { "docid": "587c4838e8c64a25cc626c0c19f576d0", "score": "0.5159387", "text": "public String databaseName() {\n return this.databaseName;\n }", "title": "" }, { "docid": "69a6ea68936297f0dfce94c2842fe34b", "score": "0.51566076", "text": "@ExcludedProperty\r\n public String getDBTableName()\r\n {\r\n if ( dbTableName == null || \"\".equals( dbTableName ) )\r\n {\r\n //dbTableName = Utils.getPropertyDBName(getClass().getName().substring( getClass().getName().lastIndexOf(\".\") + 1));\r\n //dbTableName = Utils.getPropertyDBName( getClass().getName().replaceAll(\"\\\\w+\\\\.\",\"\").replaceAll(\"Bean\",\"\"));\r\n dbTableName = ReflectionUtils.inferBeanDBTableName(this);\r\n return dbTableName;\r\n }\r\n else\r\n {\r\n return dbTableName;\r\n }\r\n }", "title": "" }, { "docid": "b78074401357c5983f576c7f6d30454d", "score": "0.515047", "text": "public DB getDB();", "title": "" }, { "docid": "7eeb4bf7d1ca8dbad14474a3473285f4", "score": "0.514932", "text": "public java.lang.Integer getAppID() {\n return appID;\n }", "title": "" }, { "docid": "81e0f72a9253474ecef1a229582bce72", "score": "0.5148868", "text": "public Integer getId()\r\n {\r\n return getInt(ID);\r\n }", "title": "" }, { "docid": "a322249374da3f353532a7f7de64dab8", "score": "0.5143884", "text": "@java.lang.Override\n public int getAppid() {\n return appid_;\n }", "title": "" }, { "docid": "a322249374da3f353532a7f7de64dab8", "score": "0.5143884", "text": "@java.lang.Override\n public int getAppid() {\n return appid_;\n }", "title": "" }, { "docid": "de56d4b511838fa138f7433438de3029", "score": "0.5134543", "text": "public static DBEmpl getDB() {\n\t\treturn mDBEmpl;\n\t}", "title": "" }, { "docid": "4ef5b745c9ab6afe22f8532a543effcf", "score": "0.5122179", "text": "public abstract String getDatabaseName();", "title": "" }, { "docid": "38ad251c09eb6773d9bd25c28a58e910", "score": "0.51000315", "text": "public DatabaseMap getDatabaseMap()\n {\n return this.dbMap;\n }", "title": "" }, { "docid": "38ad251c09eb6773d9bd25c28a58e910", "score": "0.51000315", "text": "public DatabaseMap getDatabaseMap()\n {\n return this.dbMap;\n }", "title": "" }, { "docid": "38ad251c09eb6773d9bd25c28a58e910", "score": "0.51000315", "text": "public DatabaseMap getDatabaseMap()\n {\n return this.dbMap;\n }", "title": "" }, { "docid": "38ad251c09eb6773d9bd25c28a58e910", "score": "0.51000315", "text": "public DatabaseMap getDatabaseMap()\n {\n return this.dbMap;\n }", "title": "" }, { "docid": "38ad251c09eb6773d9bd25c28a58e910", "score": "0.51000315", "text": "public DatabaseMap getDatabaseMap()\n {\n return this.dbMap;\n }", "title": "" }, { "docid": "537d291b52b4ac1a44b5e7f5a12e5baf", "score": "0.5095325", "text": "public StrColumn getPrdId() {\n return delegate.getColumn(\"prd_id\", DelegatingStrColumn::new);\n }", "title": "" }, { "docid": "d1f92cb5a8072768f3d53717922785ca", "score": "0.50951093", "text": "public DBSequence getBrId() {\r\n return (DBSequence)getAttributeInternal(BRID);\r\n }", "title": "" }, { "docid": "2476d850a3b48160e273c118c78cff50", "score": "0.5090775", "text": "public StrColumn getDerId() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"der_id\", StrColumn::new) :\n getBinaryColumn(\"der_id\"));\n }", "title": "" }, { "docid": "2476d850a3b48160e273c118c78cff50", "score": "0.5090775", "text": "public StrColumn getDerId() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"der_id\", StrColumn::new) :\n getBinaryColumn(\"der_id\"));\n }", "title": "" }, { "docid": "c6e51c28e2f532b8c872a994f0610308", "score": "0.5088988", "text": "public StrColumn getAuthSeqId() {\n return delegate.getColumn(\"auth_seq_id\", DelegatingStrColumn::new);\n }", "title": "" }, { "docid": "bbb79e30740a79e0600c86490e9d1710", "score": "0.50856876", "text": "public StrColumn getAuthPDBInsertId1() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"auth_PDB_insert_id_1\", StrColumn::new) :\n getBinaryColumn(\"auth_PDB_insert_id_1\"));\n }", "title": "" }, { "docid": "e8bb6e3bd04a0c78f793226e60d469e1", "score": "0.50827396", "text": "@Override\n\tpublic int getLastServiceId() {\n\t\tSqlSession sqlSession = getSqlSessionFactory().openSession();\n\t\ttry{\n\t\t\t\n\t\t\tServiceMapper serviceMapper = sqlSession.getMapper(ServiceMapper.class);\n\t\t\tif (serviceMapper.countAllService() != 0){\n\t\t\t\treturn serviceMapper.getLastServiceId();\n\t\t\t}\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\tsqlSession.close();\n\t\t}\n\t\treturn 0;\n\t}", "title": "" } ]
7ca0d943aa59eaf5eb2d61969ad55ed4
A method that calls other methods to operate on the inputFile to produce the outputFile.
[ { "docid": "a0d412a7fcb0173bbdf11d05af9a024f", "score": "0.0", "text": "public void wordCount(String inputFile, String outputFile) {\n\t\tString[] words = readFile(inputFile);\n\t\tNode[] hashTable = createHashTable(words, 8);\n\t\tprintHash(hashTable);\n\t\twriteToFile(outputFile, hashTable);\n\t}", "title": "" } ]
[ { "docid": "60478757cf7f36e7ee00abff93ef6cf0", "score": "0.6769844", "text": "abstract protected File doGetOutputFile();", "title": "" }, { "docid": "9953e88dd9dc7b9362b8fabeb7ae0815", "score": "0.6324984", "text": "public FileInputOutput() {\n\t}", "title": "" }, { "docid": "8a063900bbb0a2d4ecfdfe456cf17d73", "score": "0.62446195", "text": "private static void file() throws IOException {\n File output = new File(\"output.txt\");\n FileWriter fw = new FileWriter(output);\n PrintWriter pw = new PrintWriter(fw);\n Scanner scanner = new Scanner(new File(\"input.txt\"));\n\n while (scanner.hasNextLine()) {\n String line = scanner.nextLine().toLowerCase();\n String computation = interpreter(line);\n String result = computation.startsWith(\"ERROR\") ? \"ERROR: Invalid command in your input file.\" :\n computation;\n pw.println(result);\n\n }\n pw.close();\n }", "title": "" }, { "docid": "ff2ae941fe7d235c83f5a5e60ea0ced5", "score": "0.60475075", "text": "private static void writeToFile(String inputText, File file) {\r\n \tBufferedWriter outputFile;\r\n \r\n \ttry {\r\n \t outputFile = new BufferedWriter(\r\n \t\t new FileWriter(file.getName(), true));\r\n \r\n \t if (!isEmpty(file))\r\n \t\toutputFile.newLine();\r\n \t outputFile.write(inputText);\r\n \r\n \t outputFile.close();\r\n \t} catch (IOException e) {\r\n \t System.out.println(\"Error writing to file\");\r\n \t e.printStackTrace();\r\n \t}\r\n }", "title": "" }, { "docid": "522560389a263286b1a83d30aaa41f4f", "score": "0.6011187", "text": "@Override\n public void convert(File inputFile, File outFile, Map<String, Object> params) throws ConversionException {\n //Copy input to output\n try {\n FileUtils.copyFile(inputFile, outFile, false);\n } catch (IOException ioe) {\n throw new ConversionException(\"Conversion error occur- Can't copy file from \" + inputFile + \"to \" + outFile, ioe);\n }\n }", "title": "" }, { "docid": "3580087d1159347d372b65287a804332", "score": "0.5988674", "text": "public void prepareFileOutput() throws Exception {\n \n fileUtil = new FileUtil( this );\n fileUtil.prepareResultsFile();\n }", "title": "" }, { "docid": "52c57cd01f835cc332e0ce8ffafa9f40", "score": "0.5967419", "text": "private void processFile(File inFile) {\r\n try {\r\n BufferedInputStream bis = new BufferedInputStream(new FileInputStream(inFile));\r\n BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(OUT_FILE));\r\n readBytes(inFile, bis, bos);\r\n bis.close();\r\n bos.close();\r\n } catch (Exception e) {\r\n System.exit(-1);\r\n }\r\n }", "title": "" }, { "docid": "95af0a042a2b7afa967582edfc4ea94d", "score": "0.59323025", "text": "private static void copyIO() throws Exception {\n\t\tFileInputStream fis = new FileInputStream(inputFilePath);\n\t\tFileOutputStream fos = new FileOutputStream(outputFilePath);\n\n\t\tbyte[] buf = new byte[fis.available()];\n\t\tfis.read(buf);\n\t\tfos.write(buf);\n\n\t}", "title": "" }, { "docid": "db26a5b76f1467ec8dfa78874a26b66c", "score": "0.58886904", "text": "protected static void write(byte[] input, File outPutFile) {\n\t\tSX3Manager.getInstance().addLog(\"Writing binary file...<br>\");\n\t\tlog(\"Writing binary file...\");\n\t\ttry {\n\t\t\tFileOutputStream output = null;\n\t\t\ttry {\n\t\t\t\tif (outPutFile.exists()) {\n\t\t\t\t\toutPutFile.delete(); // you might want to check if delete\n\t\t\t\t\t\t\t\t\t\t\t// was successfull\n\t\t\t\t}\n\t\t\t\toutPutFile.createNewFile();\n\t\t\t\toutput = new FileOutputStream(outPutFile);\n\t\t\t\toutput.write(input);\n\t\t\t} finally {\n\t\t\t\toutput.close();\n\t\t\t}\n\t\t} catch (FileNotFoundException ex) {\n\t\t\tlog(\"File not found.\");\n\t\t} catch (IOException ex) {\n\t\t\tlog(ex);\n\t\t}\n\t}", "title": "" }, { "docid": "146b271757617e9b7bc14c0968aadc32", "score": "0.58664316", "text": "String provideOutputFilePath();", "title": "" }, { "docid": "f5af36233ce98c1d6d466ecfa3343d42", "score": "0.5824833", "text": "java.lang.String getOutputFile();", "title": "" }, { "docid": "6815a01f7cdcefd60a4e97a3ff7986af", "score": "0.5792309", "text": "public void setOutputFile(File outputFile) {\n this.outputFile = outputFile;\n }", "title": "" }, { "docid": "8e4a5a81451aa76a9b00fb187edaa2e1", "score": "0.57820415", "text": "public void processFile(File file);", "title": "" }, { "docid": "8e4a5a81451aa76a9b00fb187edaa2e1", "score": "0.57820415", "text": "public void processFile(File file);", "title": "" }, { "docid": "59899669465158b4e2d76d0fb1deb6c4", "score": "0.57786274", "text": "public void processFile(File file, File newFile) {\n try {\n log(\"Processing File: \" + file.getAbsolutePath());\n\n PlanarImage image = null;\n try (FileSeekableStream input = new FileSeekableStream(file)) {\n image = JAI.create(\"stream\", input);\n for (ImageOperation instr : instructions) {\n if (instr instanceof TransformOperation) {\n image = ((TransformOperation) instr)\n .executeTransformOperation(image);\n } else {\n log(\"Not a TransformOperation: \" + instr);\n }\n }\n }\n\n File dstParent = newFile.getParentFile();\n if (!dstParent.isDirectory()\n && !(dstParent.mkdirs() || dstParent.isDirectory())) {\n throw new BuildException(\"Failed to create parent directory %s\",\n dstParent);\n }\n\n if (overwrite && newFile.exists() && !newFile.equals(file)) {\n newFile.delete();\n }\n\n try (OutputStream stream = Files.newOutputStream(newFile.toPath())) {\n JAI.create(\"encode\", image, stream,\n str_encoding.toUpperCase(Locale.ENGLISH), null);\n stream.flush();\n }\n } catch (IOException | RuntimeException err) {\n if (!file.equals(newFile)) {\n newFile.delete();\n }\n if (!failonerror) {\n log(\"Error processing file: \" + err);\n } else {\n throw new BuildException(err);\n }\n }\n }", "title": "" }, { "docid": "bc5a97f464ed985d012d2babb666002a", "score": "0.5773711", "text": "public void process(File file);", "title": "" }, { "docid": "110a9ec546a49065cae1182ddc1200ec", "score": "0.57735795", "text": "static void convert(String inputFilePath) {\n File inputFile = new File(inputFilePath);\n String parentPath = getParentPath(inputFile);\n String testSuite = getTestSuiteName(inputFile);\n String outputFilePath = parentPath + File.separator + testSuite + \".xml\";\n File outputFile = createOutput(outputFilePath);\n Converter.create(inputFile, outputFile).convert();\n }", "title": "" }, { "docid": "06addd57b09de517c6e686ac8283c7b3", "score": "0.5771715", "text": "@Override\n\tpublic void writeOutputFile(String outFile) {\n\t\t\n\t}", "title": "" }, { "docid": "5522ca897591af79358c5157fd205abc", "score": "0.5755717", "text": "private void doActionWrite() throws ApplicationException, IOException, ExpressionException {\n \t\trequired(\"source\", source);\n \t\trequired(\"destination\", destination);\n \t\t\n \t\tsource.writeOut(destination,overwrite,quality);\n \t}", "title": "" }, { "docid": "8cc8d0d3555dce596ea97b85057e9371", "score": "0.5743932", "text": "void walk(File input, File output) throws IOException {\n try (Stream<Path> walk = Files.walk(input.toPath())) {\n walk.filter(Files::isRegularFile).forEach(path -> {\n Path relative = input.toPath().relativize(path);\n File newFile = new File(output, relative.toString());\n newFile.getParentFile().mkdirs();\n if (path.toString().endsWith(\".adoc\")) {\n convert(path.toFile(), newFile);\n }\n else {\n try {\n Files.copy(path, newFile.toPath());\n }\n catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n });\n }\n }", "title": "" }, { "docid": "4846ce08c4f8ded02cc2b84536884472", "score": "0.56946224", "text": "protected static void write(BufferedReader input, File outPutFile) {\n\t\tlog(\"Writing Hex file...\");\n\t\ttry {\n\t\t\tBufferedWriter output = null;\n\t\t\tString line;\n\t\t\ttry {\n\t\t\t\tif (outPutFile.exists()) {\n\t\t\t\t\toutPutFile.delete(); // you might want to check if delete\n\t\t\t\t\t\t\t\t\t\t\t// was successfull\n\t\t\t\t}\n\t\t\t\toutPutFile.createNewFile();\n\t\t\t\toutput = Files.newBufferedWriter(outPutFile.toPath(), StandardCharsets.UTF_8);\n\t\t\t\twhile ((line = input.readLine()) != null) {\n\t\t\t\t\toutput.write(line);\n\t\t\t\t\toutput.newLine(); // must do this: readLine() will have\n\t\t\t\t\t\t\t\t\t\t// stripped line endings\n\n\t\t\t\t}\n\t\t\t} finally {\n\t\t\t\toutput.close();\n\t\t\t}\n\t\t} catch (FileNotFoundException ex) {\n\t\t\tlog(\"File not found.\");\n\t\t} catch (IOException ex) {\n\t\t\tlog(ex.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "fa2ab0e541552c398bda0e13e8ad5395", "score": "0.567944", "text": "public void fileIO();", "title": "" }, { "docid": "0d37b3a05b2337fcd956a09eb21def20", "score": "0.5676026", "text": "public interface FileProcessor {\n void processFile(String inputFileName, String outputFileName);\n}", "title": "" }, { "docid": "f2891ff21157586eaf3705693640c1a7", "score": "0.5671608", "text": "public static void main(String[] args) throws IOException {\n\t\tBufferedReader readTxt=new BufferedReader(new FileReader(new File(SourceFile)));\r\n\t\t//out put\r\n\t BufferedWriter writeTxt=new BufferedWriter(new FileWriter(new File(DestinationFile)));\r\n\t //format number\r\n\t DecimalFormat format=new DecimalFormat();\r\n\t format.applyPattern(\"#.00\");\r\n\t\tString textLine=\"\";\r\n\t String str=\"\";\r\n\t while(( textLine=readTxt.readLine())!=null){\r\n\t str+=textLine+\" \";\r\n\t }\r\n\t String[] numbersArray=str.split(\" \");\r\n\t double input1,input2;\r\n\t String output1,output2,output3;\r\n\t for(int i=0;i<numbersArray.length;i+=2)\r\n\t {\r\n\t \t input1=Double.parseDouble(numbersArray[i]);\r\n\t \t input2=Double.parseDouble(numbersArray[i+1]);\r\n\t \t output1=format.format(input1-input2);\r\n\t \t output2=format.format((input1+input2)/2);\r\n\t \t output3=format.format((int)Math.round(input1));\r\n\t \t //writeTxt.write(input1+\" \"+input2+\" \"+output1+\"\\n\");\r\n\t \t //writeTxt.write(input1+\" \"+input2+\" \"+output2+\"\\n\");\r\n\t \t //writeTxt.write(input1+\" \"+input2+\" \"+output3+\"\\n\");\r\n\t \t writeTxt.write(input1+\" \"+input2+\" \"+output1+\" \"+output2+\" \"+output3+\"\\n\");\r\n\t }\r\n\t readTxt.close();\r\n\t writeTxt.close();\r\n\t}", "title": "" }, { "docid": "e85a7493ead7e9c97cf27558d068301c", "score": "0.5657358", "text": "public File getOutputFile() {\n return outputFile;\n }", "title": "" }, { "docid": "45314c3b5b895240c8cd3d6507feb630", "score": "0.5649552", "text": "public static void run(String input,String output) throws Exception {\r\n Configuration conf = new Configuration();\r\n Job job = new Job(conf, \"output format\");\r\n\r\n job.setJarByClass(MyOutputFormat.class);\r\n job.setMapperClass(OutMapper.class);\r\n job.setReducerClass(OutReducer.class);\r\n job.setOutputKeyClass(Text.class);\r\n job.setOutputValueClass(Text.class);\r\n\r\n FileInputFormat.addInputPath(job, new Path(input));\r\n FileOutputFormat.setOutputPath(job, new Path(output));\r\n job.waitForCompletion(true);\r\n\r\n return ;\r\n }", "title": "" }, { "docid": "5bee8691ef386fbab16fbfebe1660984", "score": "0.5643314", "text": "@Override\n\tpublic void outputSingleFile(Project now, String file, InterRep result) {\n\n\t}", "title": "" }, { "docid": "3575ca0071f19caeffbf85f93902b311", "score": "0.56418824", "text": "protected synchronized void initialize(File file, Charset inputCharset, Charset outputCharset) throws IOException, ParameterException {\n\t\tfileReader = new FileReader(file, inputCharset);\n\t\tString inputName = file.getAbsolutePath();\n\t\tString outputFileName = inputName.substring(0, inputName.indexOf('.')).concat(fileNameSuffix);\n\t\tfileWriter = new FileWriter(outputFileName, outputCharset);\n\t\tif(fileExtension != null){\n\t\t\tfileWriter.setFileExtension(getFileExtension());\n\t\t} else if(useExtensionOfInputFile){\n\t\t\tfileWriter.setFileExtension(FileUtils.getExtension(fileReader.getFile()));\n\t\t}\n\t}", "title": "" }, { "docid": "74f09d5525b2f82ba7323fc906152b51", "score": "0.55747634", "text": "static void processInputFile (String inputFilePath) \n\t{\n\n\n\t\ttry{\n\t\t\t// Reading the CSV file using buffered reader\n\t\t\tFile inputF = new File(inputFilePath);\n\t\t\tInputStream inputFS = new FileInputStream(inputF);\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(inputFS));\n\n\t\t\t// Skipping the first row of the csv file using .skip (1)\n\t\t\t// Iterating through every line --br.lines()-- \n\t\t\t//Calling mapToItem for each row in CSV file\n\t\t\tbr.lines().skip(1).map(mapToItem).collect(Collectors.toList());\n\n\t\t\t//closing the bufferedReader object after \n\t\t\tbr.close();\n\n\t\t\t//writing out all the remaining elements (which have not sessioned out) to the file\n\t\t\tfor (ActiveID id : activeList) \n\t\t\t{\n\t\t\t\tSystem.out.println(id.ip + \",\" + id.firstAccess +\",\"+ id.lastAccess +\",\"+id.activeDuration +\",\"+id.noOfDocAccessed);\t\t\t\n\t\t\t}\n\n\t\t} \n\t\tcatch (IOException e) \n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\n\t}", "title": "" }, { "docid": "1606dcc34a96c979ba775b125cc88d55", "score": "0.55617183", "text": "public static void main(String[] args) throws IOException {\n Scanner keyboard = new Scanner(System.in);\r\n \r\n // read in the input and output filenames\r\n System.out.print(\"Input file name? \");\r\n String inFileName = keyboard.next();\r\n \r\n System.out.print(\"Output file name? \");\r\n String outFileName = keyboard.next();\r\n \r\n // create our file Scanner and PrintWriter\r\n Scanner input = new Scanner(new File(inFileName));\r\n PrintWriter output = new PrintWriter(new File(outFileName));\r\n \r\n // read in the file, line by line, printing out an\r\n // upcased version (SHOUTING!)\r\n // we can continue as long as there are more lines in the file\r\n while (input.hasNextLine()) {\r\n String line = input.nextLine();\r\n // we can get an uppercased version of any String by\r\n // calling toUpperCase. So let's.\r\n output.println(line.toUpperCase());\r\n }\r\n \r\n // close our files before we wrap up\r\n input.close();\r\n output.close();\r\n }", "title": "" }, { "docid": "f54a16369b242c7438f83544685df835", "score": "0.55598944", "text": "@Override\n\t\tpublic void map(Text key, BytesWritable value, Context context) throws IOException {\t\t\t\t\t\t\n\t\t\tfilesRead.increment(1);\n\t\t\t// Reset parser since it is reused\n\t\t\tparser.reset();\n\t\t\t\n\t\t\t/*\n\t\t\t * Open input stream\n\t\t\t */\n\t\t\tString inputFilename = key.toString();\n\t\t\tcontext.setStatus(\"Convert: \" + inputFilename);\t\t\t\t\t\t\t\n\t\t\tBufferedReader lin = openBufferedReader(inputFilename);\t\t\t\n\t\t\tif (lin == null) {\n\t\t\t\tmapLogger.fatal(\"Could not open input file: \" + inputFilename);\n\t\t\t\tinvalidInputFiles.increment(1);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t/*\n\t\t\t * Open output stream and write converted file\n\t\t\t */\n\t\t\tString basename = tfs.getFilenameName(inputFilename);\t\n\t\t\tString outputBasename = OsPath.replaceLastExtension(basename, \"pcl\");\n\t\t\tBufferedWriter bw = openBufferedWriter(outputBasename, compressionFormat, context);\n\t\t\tif (bw != null) {\t\t\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tparser.convert(lin, bw);\n\t\t\t\t\tbw.close();\t\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\tparserExceptions.increment(1);\n\t\t\t\t\tmapLogger.warn(\"Failed to convert file due to parser error: \", e);\n\t\t\t\t\tcloseDeleteBufferedWriter(bw, outputBasename, compressionFormat, context);\n\t\t\t\t\treturn;\n\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\telse { \t\t\t\t\n\t\t\t\t// Could not write directly to HDFS, so must fallback on local file system\t\t\t\t\n\t\t\t\tString localFilename = OsPath.join(taskOutputDir, outputBasename);\n\t\t\t\tbw = null;\n\t\t\t\ttry {\n\t\t\t\t\tbw = new BufferedWriter(new FileWriter(new File(localFilename)));\n\t\t\t\t\tparser.convert(lin, bw);\n\t\t\t\t\tbw.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tmapLogger.error(\"Could not convert file: \", e);\t\t\t\t\t\n\t\t\t\t\tcloseDeleteLocalBufferedWriter(bw, localFilename);\t\n\t\t\t\t\treturn;\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\tparserExceptions.increment(1);\n\t\t\t\t\tmapLogger.warn(\"Failed to convert file due to parser error: \", e);\t\t\t\t\t\n\t\t\t\t\tcloseDeleteLocalBufferedWriter(bw, localFilename);\n\t\t\t\t\treturn;\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// All local output files will be written to HDFS in cleanup()\n\t\t\t} \n\t\t\tlin.close();\n\t\t\tfilesWritten.increment(1);\t\t\t\n\t\t}", "title": "" }, { "docid": "a93ce88c6206dded6df4896db776a4cb", "score": "0.55508184", "text": "public abstract File generate();", "title": "" }, { "docid": "e031aab5d3cbfd9644f546c4906a480e", "score": "0.5541895", "text": "public static void main(String[] args) throws FileNotFoundException {\n Scanner console = new Scanner(System.in);\n System.out.println(\"Input file path/name:\");\n String inputFileName = console.next();\n System.out.println(\"Output file path/name:\");\n String outputFileName = console.next();\n\n //local input file path: /Users/lizhang/Desktop/maryLamb.txt\n //local output file path: /Users/lizhang/Desktop/outMaryLamb.txt\n\n File inputFile = new File(inputFileName);\n Scanner in = new Scanner(inputFile);\n PrintWriter outputFile = new PrintWriter(outputFileName);\n\n int lineNum = 1;\n while(in.hasNextLine()){\n String line = in.nextLine();\n String lineIn = \"/* \"+lineNum + \" */ \" + line;\n //System.out.println(lineIn);\n //write to file\n outputFile.println(lineIn);\n lineNum ++;\n }\n\n in.close();\n outputFile.close(); //close file\n }", "title": "" }, { "docid": "593b91e1f81dd7b02000c250c6135d16", "score": "0.55380666", "text": "private static void outputToFile(Task[] s, String outputFile) {\n\t\tFileWriter out = null;\n\t\tFile file = new File(outputFile + \".txt\");\n\t\t\n\t\t//if the file exists make sure not append to the file but to rewrite it\n\t\t//else create a new file with the name provided\n\t\ttry {\n\t\t\tif(file.exists()){\n\t\t\t\tout = new FileWriter(outputFile + \".txt\", false);\n\t\t\t} else {\n\t\t\t\tout = new FileWriter(outputFile + \".txt\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Cannot create or find output file\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t//write the name of each task and the time it starts to the file\n\t\t\tfor(int i=0; i<s.length; i++) {\n\t\t\t\t\n\t\t\t\tout.write(s[i].name+\" \"+ \"core\" +s[i].execution + \" \" + s[i].startTime+\" \");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Cannot write to file\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t//close the file to prevent memory leaks\n\t\t\tout.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Cannot close the file stream\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "title": "" }, { "docid": "79f529b0dc08e33026d26fba9def4558", "score": "0.5537774", "text": "public void generateFile(String outputFile)\n\t{\n\t\tBufferedWriter b_out = null;\n\t\tFileWriter f_out = null;\n\t\ttry\n\t\t{\n\t\t\tf_out = new FileWriter(outputFile);\n\t\t\tb_out = new BufferedWriter(f_out);\n\n\t\t\tb_out.write(\"\" + height);\n\t\t\tb_out.newLine();\n\t\t\tb_out.write(\"\" + width);\n\t\t\tb_out.newLine();\n\t\t\tfor(int y = 0; y < height; y++)\n\t\t\t{\n\t\t\t\tfor(int x = 0; x < width; x++)\n\t\t\t\t{\n\t\t\t\t\tb_out.write(grid[y][x].getNumber() + \" \" + grid[y][x].getOrientation());\n\t\t\t\t\tb_out.newLine();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif(b_out != null) b_out.close();\n\t\t\t\tif(f_out != null) f_out.close();\n\t\t\t}\n\t\t\tcatch(IOException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}", "title": "" }, { "docid": "014a27b5246782afa2180aad8c74e37f", "score": "0.55267084", "text": "public void writeToFile(){\n\tFileProcessor f = new FileProcessor(outputFile);\n\tMyLogger logger = MyLogger.getInstance();\n\tf.writeALine(\"---PERFORMANCE---\");\n\tlogger.printMessage(1,\"---PERFORMANCE---\");\n\tf.writeALine(\"Memory Total: \" + memTotal + \" Memory Used: \" + memUsed + \" Memory Free: \" + memFree + \" Memory Cached: \" + memCached);\n\tlogger.printMessage(1,\"Memory Total: \" + memTotal + \" Memory Used: \" + memUsed + \" Memory Free: \" + memFree + \" Memory Cached: \" + memCached);\n\tf.writeALine(\"CPU Idle: \" + cpuIdle + \" CPU User Level: \" + cpuUserLevel + \" CPU System Level: \" + cpuSystemLevel);\n\tlogger.printMessage(1,\"CPU Idle: \" + cpuIdle + \" CPU User Level: \" + cpuUserLevel + \" CPU System Level: \" + cpuSystemLevel);\n\tf.writeALine(\"\");\n\tlogger.printMessage(1,\"\");\n }", "title": "" }, { "docid": "79390c504e402b8966c247d2f6773e9f", "score": "0.5499324", "text": "private static TransformationOutput buildTransformationOutput(String file) {\n MyTransformationOutput to = new MyTransformationOutput();\n to.setFileName(file);\n return to;\n }", "title": "" }, { "docid": "eefa777b64d13511b264d9ce2749023e", "score": "0.5496797", "text": "public static void mergeSortedFiles(String inputFile1, String inputFile2, String outputFile) {\r\n try {\r\n Stream<String> stream1 = Files.lines(Paths.get(inputFile1), StandardCharsets.UTF_8);\r\n Stream<String> stream2 = Files.lines(Paths.get(inputFile2), StandardCharsets.UTF_8);\r\n // create output stream by concatenating input streams, sort it using a comparator\r\n Stream<String> outputStream = Stream.concat(stream1, stream2).sorted(Comparator.naturalOrder());\r\n // write the output to the output file\r\n Files.write(Paths.get(outputFile), (Iterable<String>) outputStream::iterator);\r\n } catch (IOException ioex) {\r\n System.out.println(\"Error occurred while streaming files\");\r\n }\r\n }", "title": "" }, { "docid": "7428ce91492f2b5ed8b8992243dc2462", "score": "0.54852194", "text": "private static void copyCalculatedChargeintoFile(int durationofCall, String outputFile) {\n\t\ttry {\n\t\t\tBufferedWriter bufferwriter = new BufferedWriter(new FileWriter(outputFile));\n\t\t\tString duration=Integer.toString(durationofCall);\n\t\t\tbufferwriter.write(duration);\n\t\t\tbufferwriter.close();\n\t\t\tSystem.out.println(\"Calculated charge is copied to output file \");\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"File not found in the Directory\");\n\t\t}\n\t}", "title": "" }, { "docid": "663138331c917d3a745bc6850ef6005b", "score": "0.5467086", "text": "public File executeCommand(File inputFile, @Nullable File outputFile) throws PipelineJobException\n {\n getLogger().info(\"Running CleanSam: \" + inputFile.getPath());\n\n File outputBam = outputFile == null ? new File(getOutputDir(inputFile), FileUtil.getBaseName(inputFile) + \".cleaned.bam\") : outputFile;\n\n List<String> params = getBaseArgs();\n\n params.add(\"--INPUT\");\n params.add(inputFile.getPath());\n\n params.add(\"--OUTPUT\");\n params.add(outputBam.getPath());\n\n execute(params);\n\n if (!outputBam.exists())\n {\n throw new PipelineJobException(\"Output file could not be found: \" + outputBam.getPath());\n }\n\n if (outputFile == null)\n {\n try\n {\n inputFile.delete();\n FileUtils.moveFile(outputBam, inputFile);\n\n //note: if there is a pre-existing index, we need to delete this since it is out of date\n File idx = new File(inputFile.getPath() + \".bai\");\n if (idx.exists())\n {\n getLogger().debug(\"deleting/recreating BAM index\");\n idx.delete();\n BuildBamIndexWrapper buildBamIndexWrapper = new BuildBamIndexWrapper(getLogger());\n buildBamIndexWrapper.setStringency(ValidationStringency.SILENT);\n buildBamIndexWrapper.executeCommand(inputFile);\n }\n\n return inputFile;\n }\n catch (IOException e)\n {\n throw new PipelineJobException(e);\n }\n }\n else\n {\n return outputFile;\n }\n }", "title": "" }, { "docid": "a7278066f8ae1e505784eacaf35d9f8b", "score": "0.5457483", "text": "private void fitToFile(File outputFolder) {\r\n \r\n ModuleDefn defn = autoFit();\r\n if (defn == null) {\r\n jfitLogger.info(\"\");\r\n jfitLogger.info(\"Generation failed.\");\r\n return;\r\n }\r\n \r\n String sourceText = defn.toSourceText();\r\n \r\n String[] moduleNameQualifier = defn.getModuleName().getQualifier().getComponents();\r\n String unqualifiedModuleName = defn.getModuleName().getUnqualifiedModuleName();\r\n \r\n File fileFolder = outputFolder;\r\n for (final String component : moduleNameQualifier) {\r\n if (fileFolder == null) {\r\n fileFolder = new File(component);\r\n } else {\r\n fileFolder = new File(fileFolder, component);\r\n }\r\n }\r\n \r\n if (fileFolder != null) {\r\n if (!FileSystemHelper.ensureDirectoryExists(fileFolder)) {\r\n jfitLogger.severe(\"The folder \\'\" + fileFolder.getPath() + \"\\' does not exist, and could not be created.\");\r\n return;\r\n }\r\n }\r\n \r\n String fileName = unqualifiedModuleName + \".\" + CALSourcePathMapper.INSTANCE.getFileExtension();\r\n File outputFile = fileFolder == null ? new File(fileName) : new File(fileFolder, fileName);\r\n \r\n jfitLogger.info(\"Writing file: \" + outputFile.getAbsolutePath() + \"..\");\r\n \r\n boolean wroteFile;\r\n \r\n Writer writer = null;\r\n try {\r\n writer = new BufferedWriter(new FileWriter(outputFile));\r\n writer.write(sourceText);\r\n wroteFile = true;\r\n \r\n } catch (IOException e) {\r\n jfitLogger.log(Level.SEVERE, \"Error writing file: \" + outputFile.getPath(), e);\r\n wroteFile = false;\r\n\r\n } finally {\r\n if (writer != null) {\r\n try {\r\n writer.flush();\r\n writer.close();\r\n } catch (IOException e) {\r\n // Not much we can do about this.\r\n }\r\n }\r\n }\r\n \r\n if (wroteFile) {\r\n int nGeneratedFunctions = 0;\r\n int nGeneratedTypes = 0;\r\n \r\n int nTopLevelDefns = defn.getNTopLevelDefns();\r\n for (int i = 0; i < nTopLevelDefns; i++) {\r\n TopLevelSourceElement nthTopLevelDefn = defn.getNthTopLevelDefn(i);\r\n \r\n if (nthTopLevelDefn instanceof SourceModel.FunctionDefn.Foreign) {\r\n nGeneratedFunctions++;\r\n \r\n } else if (nthTopLevelDefn instanceof SourceModel.TypeConstructorDefn.ForeignType) {\r\n nGeneratedTypes++;\r\n } \r\n }\r\n jfitLogger.info(\"\");\r\n jfitLogger.info(\"Generation succeeded.\");\r\n jfitLogger.info(nGeneratedTypes + \" types, \" + nGeneratedFunctions + \" functions generated.\");\r\n \r\n } else {\r\n jfitLogger.info(\"\");\r\n jfitLogger.info(\"Generation failed.\");\r\n }\r\n }", "title": "" }, { "docid": "568a6a0cc1e8692af434c4a6138f877e", "score": "0.5428648", "text": "private static void produceInvalidRowsFile(String inputFile, String outputFile) {\n \t//StringBuilder query = new StringBuilder();\n \tFile file = new File(outputFile);\n try {\n \t// Create file if it does not exist\n boolean success = file.createNewFile();\n // Do the file name checking at beginning of the main function \n if (success) {\n // File did not exist and was created\n } else {\n // File already exists\n }\n \t\n \t\t\tBufferedReader csvfile = new BufferedReader(new FileReader(inputFile));\n \t\t\tString line;\n \t while ((line = csvfile.readLine()) != null) {\n \t \t\n \t }\n \t \n \t\t} catch (FileNotFoundException e) {\n \t\t\tSystem.err.println(\"CSV file '\" + inputFile + \"' could not be found.\");\n \t\t} catch(Exception x) {\n System.err.println(x.getMessage());\n }\n \n \t\n \t\n }", "title": "" }, { "docid": "358708a56717779a91d37cfdca592e24", "score": "0.5424499", "text": "public void processSentence(Results outputFileProcessor, SentenceCalculator resultprocessor, String outPutFilename) throws Exception {\n String line = \"\";\n String lineChar = \"\";\n char singleChar;\n try {\n while ((singleChar = readSingleChar()) != '\\0') {\n if (singleChar == '.') {\n lineChar += singleChar;\n if ((line = resultprocessor.reverseEachSentence(lineChar)) != \"\") {\n outputFileProcessor.writeSingleLine((line));\n }\n lineChar = \"\";\n\n } else {\n lineChar += singleChar;\n }\n }\n if (singleChar == '\\0' && lineChar.length() != 0 && !lineChar.equals(\"\\n\")) {\n throw new Exception(\"Input file is not well formatted\");\n }\n } catch (Exception e) {\n outputFileProcessor.writeEmpty(outPutFilename);\n System.err.println(\"Error :failread to read the file\");\n e.printStackTrace();\n System.exit(0);\n }\n }", "title": "" }, { "docid": "eb815a40fbbefc1794e6b2ba55a662e1", "score": "0.54222655", "text": "private static void processFile(Cipher cipher, InputStream in, OutputStream out) throws Exception\n {\n\n\n byte[] ibuf = new byte[1024];\n int len;\n while ((len = in.read(ibuf)) != -1)\n {\n byte[] obuf = cipher.update(ibuf, 0, len);\n if ( obuf != null )\n out.write(obuf);\n }\n byte[] obuf = cipher.doFinal();\n if ( obuf != null )\n out.write(obuf);\n\n }", "title": "" }, { "docid": "842f4f3777a8849853c8973ec455a6b6", "score": "0.541532", "text": "@Override\n public boolean validateOutputFile(File inputXMLFile) throws ValidationException {\n return validateInputFile(inputXMLFile);\n }", "title": "" }, { "docid": "6be72dd1a0933d14fa44c5fbbb32d300", "score": "0.5414414", "text": "private void processFile() throws IOException {\n BufferedInputStream fis;\n BufferedOutputStream fos;\n fis = new BufferedInputStream(new FileInputStream(fileIn));\n fos = new BufferedOutputStream(new FileOutputStream(fileOut));\n byte[] buffer = new byte[BUFFER_SIZE];\n int bytesInBuffer;\n if (fis.skip(offset) != offset) {\n throw new IOException(\"Header handling error\");\n }\n /* Read the data to process by specified buffers */\n while ((bytesInBuffer = fis.read(buffer)) != -1) {\n byte[] bytesToProcess = Arrays.copyOfRange(buffer, 0, bytesInBuffer);\n byte[] processedData = getProcessedData(bytesToProcess);\n /* Write the processed data by specified buffers */\n fos.write(processedData, 0, bufferBytesCounter);\n }\n if (binaryStack.length() != 0) {\n //System.out.println(\"test append\" + binaryStack);\n byte[] appendData = getProcessedData(null);\n fos.write(appendData, 0, bufferBytesCounter);\n }\n fos.flush();\n fis.close();\n }", "title": "" }, { "docid": "332ba9aa6e9c3f61cf6c58e0ca94be59", "score": "0.5388363", "text": "public static void outputFile()\r\n {\r\n PrintWriter writer = null;\r\n try\r\n {\r\n writer = new PrintWriter(output_file, \"UTF-8\");\r\n }\r\n catch(FileNotFoundException e)\r\n {\r\n System.out.println(\"File could't be created ...\");\r\n System.exit(0);\r\n }\r\n catch(UnsupportedEncodingException e)\r\n {\r\n System.out.println(\"Unsupported Encoding ...\");\r\n System.exit(0);\r\n }\r\n\r\n //begin writing the data to the output file\r\n for(int i = 0; i < 12; i++)\r\n {\r\n writer.print(names[i]+\" \");\r\n for(int j = 1; j < 4; j++)\r\n {\r\n if(output[i][j] == 0)\r\n {\r\n writer.print(\"A\"+\" \");\r\n }\r\n else if(output[i][j] == 1)\r\n {\r\n writer.print(\"B\"+\" \");\r\n }\r\n else if(output[i][j] == 2)\r\n {\r\n writer.print(\"C\" +\" \");\r\n }\r\n else if(output[i][j] == 3)\r\n {\r\n writer.print(\"D\"+\" \");\r\n }\r\n }\r\n writer.println(data[i][6]);\r\n }\r\n \r\n //print the average to the file\r\n //calculate the average\r\n double avg = 0;\r\n for(int i = 0; i < 12; i++)\r\n {\r\n avg = avg + data[i][6];\r\n }\r\n avg = avg /12;\r\n writer.println(\"Average preference_score is: \"+avg);\r\n writer.close();\r\n }", "title": "" }, { "docid": "371c67be3c6355d85e6ab69080f294c1", "score": "0.53795165", "text": "protected File getOutputFile()\n {\n File outFile = this.doGetOutputFile();\n\n if (outFile != null && this.isDeleteOnExit(outFile))\n outFile.deleteOnExit();\n\n return outFile;\n }", "title": "" }, { "docid": "77abecb556d44694ae51107e40438ec2", "score": "0.5377047", "text": "public void proceed() {\r\n\t\r\n\t\t\tString convertedBooktitle=null;\r\n\t\t\tBufferedReader br = null;\r\n\t\t\tString line; //declare a string that represents current line we will be reading\r\n\t\t\tFileParser objfileParser =new FileParser();\r\n\r\n\t\t\tString fileName = input();\r\n\t\t\tString outputFileName = output();\r\n\t\t\tboolean userDecision = userChoice();\r\n\t\t\t\r\n\t\t\ttry{ // START READING THE FILE\r\n\t\t\t\t br = new BufferedReader(new FileReader(fileName));\r\n\t\t\t}\t\r\n\t\t\tcatch(Exception e){ // if file can't be found\r\n\t\t\t\tSystem.out.println(e.getMessage() + \"The file was not found\");\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t}\r\n\t\t\ttry{\r\n\t\t\t\twhile((line= br.readLine()) != null){\r\n\r\n\t\t\t\t\tFileWriter writer = new FileWriter(outputFileName, true);\r\n\t\t\t\t\tif(!line.contains(\"Booktitle\")){// increment if line contains no abbreviated or elaborated form\r\n\t\t\t\t\t\twriter.write(line + \"\\n\");\r\n\t\t\t\t\t\tfileContents+=line; // go to next line\r\n\t\t\t\t\t}// end of if\r\n\t\t\t\t\telse{ \r\n\t\t\t\t\t\tconvertedBooktitle= objfileParser.BooktitleConversion(line,userDecision);\r\n\t\t\t\t\t\tString Readline = objfileParser.parser(line);\r\n\t\t\t\t\t\tString Line = line.replaceAll(Readline, convertedBooktitle);\r\n\t\t\t\t\t\twriter.write(Line + \"\\n\");\r\n\t\t\t\t\t\tfileContents+=line;}\r\n\t\t\t\t\t\r\n\t\t\t\t\twriter.close();\t\r\n\t\t\t\t}}// End of while and try\r\n\r\n\t\t\tcatch(Exception e){\r\n\t\t\t\tSystem.out.println(e.getMessage() + \"Error reading file.\");\r\n\t\t\t} // end of catch\t\r\n\t\t\tfinally{\r\n\t\t\t\tSystem.exit(0);}// end finally\r\n\t}", "title": "" }, { "docid": "a9cc0dd1948bd1c949bfdd1252258d9f", "score": "0.53733504", "text": "public String transformXmlToMix(File sourceFile, File inputFile, File outputDir, boolean deleteInputFile, OperationResult result, String exif2MixTransformationPath) {\r\n BufferedOutputStream outputStream = null;\r\n try {\r\n log.debug(\"Going to transform \" + inputFile + \" to mix.\");\r\n String outputFileName = transformXmlToMixOutputFileName(inputFile, outputDir);\r\n File outputFile = new File(outputFileName);\r\n// if (isConvNeeded(sourceFile, outputFile)) {\r\n\r\n DocumentBuilderFactory factory = PerThreadDocBuilderFactory.getDocumentBuilderFactory();\r\n Document document = factory.newDocumentBuilder().parse(inputFile);\r\n StreamSource stylesource;\r\n if (exif2MixTransformationPath == null) {\r\n stylesource = new StreamSource(getClass().getClassLoader().getResourceAsStream(MIX_XSLT_PATH));\r\n }\r\n else {\r\n stylesource = new StreamSource(getClass().getClassLoader().getResourceAsStream(exif2MixTransformationPath));\r\n }\r\n Transformer transformer = TransformerFactory.newInstance().newTransformer(stylesource);\r\n transformer.setOutputProperty(\"encoding\", \"UTF-8\");\r\n transformer.setOutputProperty(\"indent\", \"yes\");\r\n log.debug(\"Transformer class: \" + transformer.getClass() + \", properties: \" + transformer.getOutputProperties());\r\n DOMSource source = new DOMSource(document);\r\n outputStream = new BufferedOutputStream(new FileOutputStream(outputFile));\r\n StreamResult streamResult = new StreamResult(outputStream);\r\n transformer.transform(source, streamResult);\r\n if (deleteInputFile == true) {\r\n inputFile.delete();\r\n }\r\n new MixHelper(outputFileName).fixDpcToDpi();\r\n// }\r\n return outputFileName;\r\n }\r\n catch (Exception e) {\r\n log.error(\"Error at transformXmlToMix!\", e);\r\n result.getResultMessage().append(\"Error at transformXmlToMix: \" + e.getMessage() + \"\\n\");\r\n result.setState(State.ERROR);\r\n }\r\n finally {\r\n if (outputStream != null) {\r\n try {\r\n outputStream.close();\r\n }\r\n catch (IOException e) {\r\n log.error(\"Error at transformXmlToMix!\", e);\r\n result.getResultMessage().append(\"Error at transformXmlToMix: \" + e.getMessage() + \"\\n\");\r\n result.setState(State.ERROR);\r\n }\r\n }\r\n }\r\n return null;\r\n }", "title": "" }, { "docid": "b80d6c8bbfc19669aba9cbecdb701aa5", "score": "0.53725237", "text": "private void saveFile(InputStream input, OutputStream output) throws IOException {\n int read;\n byte[] bytes = new byte[1024];\n\n try {\n while ((read = input.read(bytes)) != -1) {\n output.write(bytes, 0, read);\n }\n } finally {\n input.close();\n output.flush();\n output.close();\n }\n }", "title": "" }, { "docid": "228ba2343f539e8a44aef604ccff9ba4", "score": "0.53618914", "text": "public void setOutputFile(File outputFile) {\n this.outputFile = outputFile;\n }", "title": "" }, { "docid": "694963bc2b4fb42cc485fffc413f54e9", "score": "0.53571385", "text": "public void transform(String inFilename, String outFilename, Map<String, Object> beans)\n throws IOException, InvalidFormatException\n {\n logger.info(\"Transforming file \\\"{}\\\" into file \\\"{}\\\".\", inFilename, outFilename);\n try (FileOutputStream fileOut = new FileOutputStream(outFilename))\n {\n Workbook workbook = WorkbookFactory.create(new File(inFilename));\n transform(workbook, beans);\n workbook.write(fileOut);\n }\n logger.info(\"Done transforming file \\\"{}\\\" into file \\\"{}\\\".\", inFilename, outFilename);\n }", "title": "" }, { "docid": "a6fe6ac7932aafddb29791e6346320c5", "score": "0.535314", "text": "protected abstract void fileAction (PrintWriter writer) throws IOException;", "title": "" }, { "docid": "bca2e894c2d445c2077a1968c2a24a88", "score": "0.5346663", "text": "public static void sort(String inputFile, String outputFile) {\n File tempDir = FileManager.createTempDir();\n try {\n\n SortingLogger.i(\"Temp Directory Created\");\n FileManager.splitItemsToChunks(inputFile, tempDir);\n SortingLogger.i(\"File splitted into chunks\");\n String[] list = tempDir.list();\n int chunkSize = list.length;\n\n //sort n listed list in file by getting each one\n while (true) {\n List<Integer> elements = new ArrayList<>();\n for (int i = 0; i < chunkSize; i++) {\n Integer item = FileManager.getFirstLineAndRemove(tempDir.getAbsolutePath() + \"/\" + list[i]);\n if (item != null)\n elements.add(item);\n }\n\n if (elements.isEmpty())\n break;\n\n Collections.sort(elements);\n while (!elements.isEmpty()) {\n Integer min = elements.get(0);\n elements.remove(min);\n FileManager.appendResult(outputFile, min);\n }\n }\n\n SortingLogger.i(\"output contains sorted inputs\");\n tempDir.deleteOnExit();\n } catch (SortingException ex) {\n SortingLogger.e(ex.getMessage());\n }\n }", "title": "" }, { "docid": "136ee023d2469f24b13eb85681118ee1", "score": "0.5340498", "text": "public ImageWriter(File imageIn, File imageOut) throws IOException {\n\n super(imageIn);\n\n if (imageOut == null)\n throw new IOException(\"Missing path for output image\");\n\n this.imageOut = imageOut;\n }", "title": "" }, { "docid": "a209c1bb8f6dece517e9f933238ded0f", "score": "0.53402823", "text": "public static void closeOutputFile()\n\t{\n\t\tdataOut.close();\n\t}", "title": "" }, { "docid": "941e85f700533589e4ba8088dbf148b0", "score": "0.533652", "text": "public static void main(String[] args) throws IOException {\n File file =\n new File(\"F:\\\\JavaToMVELConvertor\\\\src\\\\com\\\\company\\\\DefinitionsConversionData.txt\");\n Scanner sc = new Scanner(file);\n BufferedWriter writer = new BufferedWriter\n (new FileWriter(\"F:\\\\JavaToMVELConvertor\\\\src\\\\com\\\\company\\\\output.txt\"));\n while (sc.hasNextLine()) {\n String output = convert(sc.nextLine().replaceAll(\"^\\\\s+\", \"\"));\n writer.write(output);\n }\n writer.close();\n }", "title": "" }, { "docid": "23b107d059015d263f7e8d13d3910056", "score": "0.5332858", "text": "public interface FileOutputStrategy {\n \n public void OutputFile();\n \n public void OutputRecord(String d);\n \n \n \n public void outputEntryMessage();\n \n public void outputAnotherEntryMessage();\n \n public void outputExceptionMessage();\n \n public void outputEndOfFileMessage(String data); \n \n public void entryErrorMessage(); \n \n public void noEntryMessage(); \n}", "title": "" }, { "docid": "e8616283f2abe2d039bb1bd3183298e7", "score": "0.5331708", "text": "public void generateOutputFile(String inputFilePath) {\n String outputPath = properties.getProperty(\"output.directory\");\n String outputFile = properties.getProperty(\"output.file.distinct.counts\");\n try (\n PrintWriter output = new PrintWriter(new BufferedWriter(new FileWriter(outputPath + outputFile)))\n )\n {\n for (Map.Entry<String, Integer> map : distinctTokenCounts.entrySet()) {\n output.println(map.getKey() + \"\\t\" + map.getValue());\n }\n\n }\n catch (FileNotFoundException fileNotFound)\n {\n fileNotFound.printStackTrace();\n }\n catch (IOException inputOutputException)\n {\n inputOutputException.printStackTrace();\n }\n catch (Exception exception)\n {\n exception.printStackTrace();\n }\n }", "title": "" }, { "docid": "5056d3d50c4c1ffe62484bd60e57088c", "score": "0.53307784", "text": "public static void outputFile(String outFileName) throws IOException\n {\n String outputFileString = ioStream.getOutput(currImage);\n\n PrintWriter pw = new PrintWriter(new File(outFileName));\n pw.println(outputFileString);\n\n pw.close();\n }", "title": "" }, { "docid": "01208dc1e70a0ba8f2044d7feaba27ce", "score": "0.5323498", "text": "private void process() throws IOException {\n\t\tdirectoryWatcher.filter(\r\n\t\t\t\t// check if file is processed\r\n\t\t\t\tcriteria::isProcessed).watch();\r\n\r\n\t\t// Process each file. No check is applied before processing the file\r\n\t\t/* directoryWatcher.filter(null).watch(); */\r\n\r\n\t\t// operate on the files/directories as they are created\r\n\t\tonFileOperator.operate();\r\n\t}", "title": "" }, { "docid": "c492c2d8d5a31dfea5b2c1ecba71ca2e", "score": "0.53146535", "text": "public static void main(String[] args) {\n String inputFile1 = \"C:\\\\res\\\\input\\\\inputFile1.txt\";\r\n String inputFile2 = \"C:\\\\res\\\\input\\\\inputFile2.txt\";\r\n String outputFile = \"C:\\\\res\\\\output\\\\outputFile.txt\";\r\n mergeSortedFiles(inputFile1, inputFile2, outputFile);\r\n }", "title": "" }, { "docid": "066bea036fc792ba131dbbf576a2e8a4", "score": "0.5301217", "text": "@Override\n public void execute() {\n // validate provided parameters\n validate();\n\n // read source .properties\n List<FileContents> newFile = new ArrayList<FileContents>();\n loadFile(mergeFile, newFile);\n loadFile(importFile, newFile);\n\n // iterate through source, and write to file with updated properties\n writeFile(newFile);\n }", "title": "" }, { "docid": "47d06783cb63673efc14c8dec4648b4d", "score": "0.52954453", "text": "public void setOutputFile( File file ) throws IOException\r\n {\r\n \t//<todo/>\r\n }", "title": "" }, { "docid": "fcaf305a2b5e685fa0a4975d23697228", "score": "0.5292499", "text": "public void close() {\r\n\t\toutputFile.close();\r\n\t}", "title": "" }, { "docid": "0703549e3cad8d5c42c4d7e2aaf4ea9c", "score": "0.5269525", "text": "@Override()\n public void execute() throws BuildException {\n if (file == null) {\n throw new BuildException(\"No value specified for the file property.\");\n }\n if (!(file.exists() && file.isFile())) {\n throw new BuildException(\"File \" + file.getAbsolutePath() + \" does not exist or is not a file\");\n }\n if (toFile == null) {\n throw new BuildException(\"No value specified for the toFile property.\");\n }\n if (algorithm == null) {\n throw new BuildException(\"No value specified for the algorithm property.\");\n }\n final MessageDigest digest;\n try {\n digest = MessageDigest.getInstance(algorithm);\n } catch (Exception e) {\n throw new BuildException(\"Unable to create a message digest for the \" + algorithm + \" algorithm: \" + e, e);\n }\n final byte[] buffer = new byte[8192];\n try {\n final FileInputStream inputStream = new FileInputStream(file);\n while (true) {\n final int bytesRead = inputStream.read(buffer);\n if (bytesRead < 0) {\n break;\n }\n digest.update(buffer, 0, bytesRead);\n }\n inputStream.close();\n } catch (Exception e) {\n throw new BuildException(\"An error occurred while attempting to \" + \"generate the \" + algorithm + \" digest for file \" + file.getAbsolutePath() + \": \" + e, e);\n }\n try {\n final PrintWriter digestFileWriter = new PrintWriter(toFile);\n final byte[] digestBytes = digest.digest();\n for (final byte b : digestBytes) {\n switch(b & 0xF0) {\n case 0x00:\n digestFileWriter.print('0');\n break;\n case 0x10:\n digestFileWriter.print('1');\n break;\n case 0x20:\n digestFileWriter.print('2');\n break;\n case 0x30:\n digestFileWriter.print('3');\n break;\n case 0x40:\n digestFileWriter.print('4');\n break;\n case 0x50:\n digestFileWriter.print('5');\n break;\n case 0x60:\n digestFileWriter.print('6');\n break;\n case 0x70:\n digestFileWriter.print('7');\n break;\n case 0x80:\n digestFileWriter.print('8');\n break;\n case 0x90:\n digestFileWriter.print('9');\n break;\n case 0xA0:\n digestFileWriter.print('a');\n break;\n case 0xB0:\n digestFileWriter.print('b');\n break;\n case 0xC0:\n digestFileWriter.print('c');\n break;\n case 0xD0:\n digestFileWriter.print('d');\n break;\n case 0xE0:\n digestFileWriter.print('e');\n break;\n case 0xF0:\n digestFileWriter.print('f');\n break;\n }\n switch(b & 0x0F) {\n case 0x00:\n digestFileWriter.print('0');\n break;\n case 0x01:\n digestFileWriter.print('1');\n break;\n case 0x02:\n digestFileWriter.print('2');\n break;\n case 0x03:\n digestFileWriter.print('3');\n break;\n case 0x04:\n digestFileWriter.print('4');\n break;\n case 0x05:\n digestFileWriter.print('5');\n break;\n case 0x06:\n digestFileWriter.print('6');\n break;\n case 0x07:\n digestFileWriter.print('7');\n break;\n case 0x08:\n digestFileWriter.print('8');\n break;\n case 0x09:\n digestFileWriter.print('9');\n break;\n case 0x0A:\n digestFileWriter.print('a');\n break;\n case 0x0B:\n digestFileWriter.print('b');\n break;\n case 0x0C:\n digestFileWriter.print('c');\n break;\n case 0x0D:\n digestFileWriter.print('d');\n break;\n case 0x0E:\n digestFileWriter.print('e');\n break;\n case 0x0F:\n digestFileWriter.print('f');\n break;\n }\n }\n digestFileWriter.println();\n digestFileWriter.close();\n } catch (Exception e) {\n throw new BuildException(\"An error occurred while attempting to write \" + \"the digest to \" + toFile.getAbsolutePath() + \": \" + e, e);\n }\n }", "title": "" }, { "docid": "8b52e883e241264a8f27d305f25f6379", "score": "0.52691805", "text": "public void closeFile() {\n\t\t\n\t\tif (input != null ) {\n\t\t\t\n\t\t\tinput.close();\n\t\t\t\n\t\t} //end if \n\t\t\n\t}", "title": "" }, { "docid": "90841acf1a0ff3e2cfa7f25c9c83735a", "score": "0.52662313", "text": "private void processFile(File f) throws IOException\n {\n if (f.isDirectory())\n {\n for (File subFile : f.listFiles())\n {\n if (subFile.isFile() || recursive)\n {\n processFile(subFile);\n }\n }\n } else\n {\n\t //check file types. If the -i option has been selected, just check \n\t //the file extension, otherwise attempt to read it as a POI doc.\n\t int filetype = this.getFileType(f);\n\t if (filetype == Constants.FILETYPE_ALL && ignoreNonOffice)\n\t\t{\n\t\t logger.log(Level.WARNING, \"Unknown file type {0}, ignoring it.\", f.getName());\n\t\t return;\n\t\t}\n\t else\n\t\t{\n\t\t // this next bit is simply to check if we have a vaguely usable file\n\t\t // (i.e. some sort of office file)\n\t\t FileInputStream is = new FileInputStream(f);\n\t\t try\n\t\t\t{\n\t\t\t POIFSFileSystem pfs = new POIFSFileSystem(is);\n\t\t\t}\n\t\t catch(IOException e)\n\t\t\t{\n\t\t\t logger.log(Level.WARNING, \"Failed to read {0}, skipping it\", f.getName());\n\t\t\t is.close();\n\t\t\t return;\n\t\t\t}\n\t\t catch(OfficeXmlFileException e)\n\t\t\t{\n\t\t\t logger.log(Level.WARNING, \"XML files not supported: skipping file {0}\", f.getName());\n\t\t\t is.close();\n\t\t\t return;\n\t\t\t}\n\t\t is.close();\n\t\t}\n\n\t count++;\n\t //process the actual file.\n\t //There's a problem here, if the last processor doesn't accept the\n\t //file type then the file in the output module can be null.\n\t //seems to be fixed, but need to look at it a bit closer.\n\t try\n {\n FileProcessor p = null;\n for (int i = 0; i < processors.size(); i++)\n {\n //IOExceptions need to be caught inside the loop, as they\n //can happen to one file processor, but not others, so it\n //still makes sense to keep processing with the rest of them.\n //they are not fatal for the file, just the file/processor\n //combination.\n try\n {\n p = processors.get(i);\n\t\t\t\n\n\t\t\tboolean accepted = p.acceptsFileType(filetype);\n if (accepted)\n {\n logger.log(Level.FINE,\n \"processing file {0} with {1}\", new Object[]\n {\n f.getName(),\n p.getClass().getCanonicalName()\n });\n outputModule.addLinks(f, p.process(f));\n }\n } catch (IOException e)\n {\n logger.log(Level.INFO,\n \"Couldn''t process file {0} with processor {1}\\n Error: {2}\",\n new Object[]\n {\n f.getName(),\n p.toString(), e.getLocalizedMessage()\n });\n continue;\n }\n }\n } catch (OfficeXmlFileException ex) //zip files/ooxml files\n {\n logger.log(Level.WARNING, \"zip files and ooxml files not supported: {0}\",\n f.getName());\n return;\n }\n }\n\n }", "title": "" }, { "docid": "27517365f60edeebb9024a066ef50cab", "score": "0.5259396", "text": "public static void makeAll(String inputFile, String outputFile) {\n\t\t\n\t\t// We need plots for: acceptance rate, revenue, cost, node stress, link stress, node fail, link fail\n\t\t// node execution time, and link execution time.\n\t\t\n\t\t// Index (0), Time (1), Duration (2), EventType (3), Accepted (4), Revenue (5), Cost (6), AvgNodeStress (7),\n\t\t// AvgLinkStress (8), MipExecTime (9), wNodeMapTime (10), wLinkMapTime (11), bNodeMapTime (12), bLinkMapTime (13), Timeout (14)\n\t\t\n\t\tString[] parts;\n\t\tString line;\n\t\t\n\t\tint time = 0;\n\t\tEventType event; // Arrival or depart\n\t\tboolean accepted; // Accepted or not\n\t\tdouble rev = 0, cost = 0, avgNU = 0, avgLU = 0; // revenue, cost, nodeUtilization, linkUtilization\n\t\tint acCount = 0, total_ac = 0; // Total accepted\n\t\tint index = 0;\n\n\t\tdouble tRev = 0, tCost = 0, tAvgNode = 0, tAvgLink = 0;\n\t\t\n\t\tlong nodeWMappingTime = 0;\n\t\tlong linkWMappingTime = 0;\n\t\tlong nodeBMappingTime = 0;\n\t\tlong linkBMappingTime = 0;\n\t\tdouble tNodeWMappingTime = 0, tLinkWMappingTime = 0, tNodeBMappingTime = 0, tLinkBMappingTime = 0; \n\n\t\ttry {\n\t\t\tFileReader fileReader = new FileReader(inputFile);\n\t\t\tBufferedReader reader = new BufferedReader(fileReader);\n\n\t\t\tFileWriter fileWriter = new FileWriter(outputFile);\n\t\t\tBufferedWriter writer = new BufferedWriter(fileWriter);\n\t\t\t\n\t\t\treader.readLine(); //Read first line\n\t\t\t\n\t\t\twhile( (line = reader.readLine()) != null){\n\t\t\t\t\n\t\t\t\tif(line.contains(\"Acceptance Rate\"))\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tparts = line.split(\" +\");\n\t\t\t\n\t\t\t\tindex = Integer.parseInt(parts[0]);\n\t\t\t\ttime = Integer.parseInt(parts[1]);\n\t\t\t\tevent = parts[3].contains(\"ARRIVE\") ? EventType.ARRIVE : EventType.DEPART;\n\t\t\t\taccepted = parts[4].contains(\"true\") ? true: false;\n\t\t\t\trev = Double.parseDouble(parts[5]);\n\t\t\t\tcost = Double.parseDouble(parts[6]);\n\t\t\t\tavgNU = Double.parseDouble(parts[7]);\n\t\t\t\tavgLU = Double.parseDouble(parts[8]);\n\t\t\t\tnodeWMappingTime = Long.parseLong(parts[10]);\n\t\t\t\tlinkWMappingTime = Long.parseLong(parts[11]);\n\t\t\t\tnodeBMappingTime = Long.parseLong(parts[12]);\n\t\t\t\tlinkBMappingTime = Long.parseLong(parts[13]);\n\t\t\t\t\n\t\t\t\tif(event == EventType.ARRIVE){\n\t\t\t\t\tif(accepted){\n\t\t\t\t\t\t\n\t\t\t\t\t\tacCount += 1;\n\t\t\t\t\t\ttotal_ac++;\n\t\t\t\t\t\t\n\t\t\t\t\t\ttRev += rev;\n\t\t\t\t\t\ttCost += cost;\n\t\t\t\t\t\ttAvgNode += avgNU;\n\t\t\t\t\t\ttAvgLink += avgLU;\n\t\t\t\t\t\t\n\t\t\t\t\t\ttNodeWMappingTime += nodeWMappingTime;\n\t\t\t\t\t\ttLinkWMappingTime += linkWMappingTime;\n\t\t\t\t\t\ttNodeBMappingTime += nodeBMappingTime;\n\t\t\t\t\t\ttLinkBMappingTime += linkBMappingTime; \n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Write the info\n\t\t\t\t\t\twriter.write(time+\" \"+String.format(Locale.ENGLISH,\"%10.4f\",tRev/(double)time)+\" \"+String.format(Locale.ENGLISH,\"%10.4f\",tCost/(double)acCount)+\n\t\t\t\t\t\t\t\t\" \"+String.format(Locale.ENGLISH,\"%10.4f\",tAvgNode/(double)acCount)+\" \"+String.format(Locale.ENGLISH,\"%10.4f\",tAvgLink/(double)acCount)+\n\t\t\t\t\t\t\t\t\" \"+String.format(Locale.ENGLISH,\"%10.4f\",(double)total_ac/(double)(index+1))+\" \"+String.format(Locale.ENGLISH,\"%10.4f\",tRev/(double)acCount)+\n\t\t\t\t\t\t\t\t\" \"+String.format(Locale.ENGLISH,\"%10.4f\",(double)tNodeWMappingTime/(double)acCount)+\" \"+String.format(Locale.ENGLISH,\"%10.4f\",tLinkWMappingTime/(double)acCount)+\n\t\t\t\t\t\t\t\t\" \"+String.format(Locale.ENGLISH,\"%10.4f\",(double)tNodeBMappingTime/(double)acCount)+\" \"+String.format(Locale.ENGLISH,\"%10.4f\",tLinkBMappingTime/(double)acCount)+\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treader.close();\n\t\t\twriter.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}\n\t}", "title": "" }, { "docid": "1ae4461620df4a52b4ff3d76f98faeca", "score": "0.5257313", "text": "private boolean buildOutputFile() throws FileNotFoundException {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MMM-yyyy\");\n XSSFRow row = null;\n short rowNum = 0;\n int colNum = 0;\n FileOutputStream outFile = null;\n ResultSet poData = null;\n boolean result = false;\n\n outFile = new FileOutputStream(m_FilePath + m_FileNames.get(0), false);\n try {\n rowNum = createCaptions();\n\n m_poData.setDate(1, new java.sql.Date(dateFormat.parse(m_BegDate).getTime()));\n m_poData.setDate(2, new java.sql.Date(dateFormat.parse(m_EndDate).getTime()));\n poData = m_poData.executeQuery();\n\n while (poData.next() && m_Status == RptServer.RUNNING) {\n setCurAction(\"Building output file\");\n\n row = createRow(rowNum++, MAX_COLS);\n colNum = 0;\n\n //TODO: potentially rearrange/rename when dean sends an updated excel doc.\n if (row != null) {\n row.getCell(colNum++).setCellValue(poData.getString(\"whs\")); //col 0\n row.getCell(colNum++).setCellValue(poData.getString(\"vendor_name\")); //col 1\n row.getCell(colNum++).setCellValue(poData.getString(\"po_nbr\")); //col 2\n row.getCell(colNum++).setCellValue(poData.getString(\"item_nbr\")); //col 3\n row.getCell(colNum++).setCellValue(poData.getString(\"descr\")); //col 4\n row.getCell(colNum++).setCellValue(poData.getString(\"qty_ordered\")); //col 5\n row.getCell(colNum++).setCellValue(poData.getDouble(\"dollars_purchased\")); //col 6\n row.getCell(colNum++).setCellValue(poData.getString(\"on_hand\")); //col 7\n row.getCell(colNum++).setCellValue(poData.getString(\"ninety_day_sales\")); //col 8\n row.getCell(colNum++).setCellValue(poData.getString(\"velocity_cd\")); //col 9\n row.getCell(colNum++).setCellValue(poData.getString(\"fcst_qty\")); //col 10\n row.getCell(colNum++).setCellValue(poData.getString(\"last_90_days_fcst\")); //col 11\n String str = poData.getString(\"due_in_date\");\n if (str.indexOf(' ') != -1) {\n str = str.substring(0, str.indexOf(' '));\n }\n row.getCell(colNum++).setCellValue(str); //col 12\n row.getCell(colNum++).setCellValue(poData.getString(\"buying_dept\")); //col 13\n }\n }\n\n m_Wrkbk.write(outFile);\n poData.close();\n\n result = true;\n } catch (Exception ex) {\n m_ErrMsg.append(\"Your report had the following errors: \\r\\n\");\n m_ErrMsg.append(ex.getClass().getName() + \"\\r\\n\");\n m_ErrMsg.append(ex.getMessage());\n\n log.fatal(\"[POsPlacedRpt]:\", ex);\n } finally {\n row = null;\n\n try {\n outFile.close();\n } catch (Exception e) {\n log.error(\"[POsPlacedRpt]:\" + e);\n }\n\n outFile = null;\n }\n\n return result;\n }", "title": "" }, { "docid": "4205a14c6df921c4b2342830fe629431", "score": "0.5249728", "text": "public void updateFiles() {\n // Get the timestamp\n SimpleDateFormat dateFormat = new SimpleDateFormat(tsFormat);\n String timeStamp = dateFormat.format(Calendar.getInstance().getTime());\n // First of all remomve all possible ^Ms from Strings\n inputFileText=inputFileText.replaceAll(\"\\r\",\"\");\n // Now save string content into files\n try {\n // For each input file ...\n inputSandbox_inputFile=\"/tmp/\"+timeStamp+\"_\"+username+\"_input_file.txt\";\n FileWriter fwInput=new FileWriter(inputSandbox_inputFile);\n BufferedWriter bwInput = new BufferedWriter(fwInput);\n bwInput.write(inputFileText);\n bwInput.close();\n }\n catch (Exception e) {\n _log.info(\"Caught exception while creating inputSandbox files\");\n }\n }", "title": "" }, { "docid": "9f5917b06912a153583a35389c7529eb", "score": "0.5245669", "text": "public File getFile() {\n/* 285 */ return this.outputFile;\n/* */ }", "title": "" }, { "docid": "86b270657958989cf62c2febcd06b176", "score": "0.52431345", "text": "public void writeToFile(File file)\n {\n \n }", "title": "" }, { "docid": "f232b63d4828891362cc72a59d35609a", "score": "0.52360606", "text": "@Override\n public void encryptFile(String inputFile, String outputFile) throws SJException {\n RandomAccessFile raf = null;\n DataOutputStream dos = null;\n\n try {\n logger.trace(\"begin encrypt file: \" + inputFile);\n\n raf = new RandomAccessFile(inputFile, \"r\");\n long fileSize = raf.length();\n\n if (fileSize == 0) {\n return;\n }\n\n //1. Analyze file size to calculate number of child (data chunk)\n int childSize = CustomConfig.CHILD_SIZE;\n long mod = fileSize % Long.parseLong(String.valueOf(childSize));\n long childCountL = (fileSize - mod) / Long.parseLong(String.valueOf(childSize)) + 1;\n int childCount = Integer.parseInt(String.valueOf(childCountL));\n\n //1.1 Create temp file for outputfile\n String tempExtension = \".\"+ System.nanoTime() + SystemConfig.ENCRYPTED_EXTENSION;\n String oldOutputFile = outputFile;\n outputFile = outputFile + tempExtension;\n\n //1.2 Write encrypte header sign\n dos = new DataOutputStream(new FileOutputStream(outputFile));\n dos.write(SystemConfig.ENCRYPTED_HEADER_BLOCK);\n\n //2. Write version section to header\n dos.writeInt(SystemConfig.VERSION);\n\n //3. Write length of SHA1 checksum of original file\n byte[] fileCheckSumBytes = FileUtil.CHECKSUM_FILE_SHA1(inputFile);\n dos.writeInt(fileCheckSumBytes.length);\n\n //4. Write SHA1 check sum of original file\n dos.write(fileCheckSumBytes);\n\n //5. Write child count to header\n dos.writeInt(childCount);\n\n //process child data\n long currentIndex = 0;\n int count = 1;\n\n logger.trace(\"begin write child\");\n logger.trace(\"childCount=\" + childCount);\n logger.trace(\"fileSize=\" + fileSize);\n logger.trace(\"childSize=\" + childSize);\n while (count <= childCount) {\n\n if (count == childCount) {\n if (mod > 0) {\n childSize = Integer.parseInt(String.valueOf(mod));\n }\n }\n\n raf.seek(currentIndex);\n\n byte[] childContentBytes = new byte[childSize];\n logger.trace(\"reading child \" + count);\n int byteReadSize = raf.read(childContentBytes);\n\n logger.trace(\"encrypting child \" + count);\n byte[] encryptedContent = crypto.encrypt(childContentBytes);\n\n logger.trace(\"writing encrypted child \" + count + \" to file\");\n dos.writeInt(encryptedContent.length);\n dos.write(encryptedContent);\n\n currentIndex += byteReadSize;\n\n count++;\n }\n \n \n\n dos.flush();\n\n dos.close();\n\n dos = null;\n \n raf.close();\n \n raf = null;\n \n logger.trace(inputFile+\":\"+oldOutputFile);\n \n if (inputFile.equals(oldOutputFile)){\n if (isReplace){\n //delete old file\n File in = new File(inputFile);\n in.delete();\n\n //renew temp file to original file\n new File(outputFile).renameTo(new File(oldOutputFile));\n \n logger.trace(\"complete writing file: \" + oldOutputFile);\n }else{\n logger.trace(\"complete writing file: \" + outputFile);\n }\n }else{\n //renew temp file to original file\n new File(outputFile).renameTo(new File(oldOutputFile));\n logger.trace(\"complete writing file: \" + oldOutputFile);\n }\n \n\n } catch (Exception e) {\n throw new SJException(e, SJErrorCode.TECHNICAL);\n } finally {\n if (dos != null) {\n try {\n dos.flush();\n\n dos.close();\n\n } catch (IOException ex) {\n java.util.logging.Logger.getLogger(FileCryptography.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n\n try {\n if (raf != null) {\n raf.close();\n }\n } catch (IOException ex) {\n java.util.logging.Logger.getLogger(FileCryptography.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n logger.trace(\"end encrypt file\");\n\n }\n\n }", "title": "" }, { "docid": "2adad5540dbfde005e86b09c0beaa39c", "score": "0.522236", "text": "public FileProcessor(String inputFile)\r\n\t{\r\n\t\ttry {\r\n\t\t\tfinstream = new FileInputStream(inFilename);\r\n\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tSystem.err.println(\"File does not exist!!\");\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\tbr = new BufferedReader(new InputStreamReader(finstream));\r\n\r\n\t}", "title": "" }, { "docid": "5287a2d5ce4697e9b797f12b21f506a6", "score": "0.5220723", "text": "Output createOutput(Path outFile, CdxRecordFormatter formatter) throws IOException {\n if (Files.exists(outFile)) {\n throw new IOException(outFile + \" already exists\");\n }\n\n Writer out = new FileWriter(outFile.toFile());\n BufferedWriter bufferedOut = new BufferedWriter(out);\n\n bufferedOut.write(format.getFileHeader());\n bufferedOut.write('\\n');\n\n if (sort) {\n return new SortingOutput(bufferedOut, formatter, scratchfileCount, heapSize);\n } else {\n return new SerialOutput(bufferedOut, formatter);\n }\n }", "title": "" }, { "docid": "127a58e356e67bc56655695e5b8982b7", "score": "0.52136254", "text": "@Override\n public void close() throws IOException {\n super.close();\n new File(outputFileName).delete(); // for our purposes this is good enough.\n }", "title": "" }, { "docid": "07a56a4bc44ad25fb0acff55581249c8", "score": "0.5202338", "text": "public static void main(String[] args) throws FileNotFoundException {\n \tFile inputFile = new File (\"input.txt\");\n \tScanner in = new Scanner (inputFile);\n \t\n \t//create output file\n \tPrintWriter out = new PrintWriter(\"output.txt\");\n \n \t//standard title case\n \twhile(in.hasNextLine())\n \t{\n \t\tString fName = in.next(); //read first input for the first name\n \t\tString lName = in.next(); //read next input for last name\n \t\tString DOB = in.next();\t\t//read next input for DOB\n \t\tString day = DOB.substring(0, 2);\t//break up the DOB string into day, month and year\n \t\tString month = DOB.substring(2, 4);\n \t\tString year = DOB.substring(4);\n \t\t\n \t\tString output = fName.substring(0, 1).toUpperCase() + fName.substring(1) + \" \" + \n \t\t\t\t\tlName.substring(0, 1).toUpperCase() + lName.substring(1) + \"\\t\\t\" + day + \n \t\t\t\t\t\"/\" + month + \"/\" + year; //correctly formatted output - substring the first letter of name to put in uppercase\n \t\tout.print(\"\\n\" + output); //print output into out file\n \t}\n \tout.close();\n \tin.close();\n \t\n \t\n \t//uppercase output\n \t//same as above but put whole name in uppercase - not yet first letter\n \tdo \n \t{\n \t\tString fName = in.next();\n \t\tString lName = in.next();\n \t\tString DOB = in.next();\n \t\tString day = DOB.substring(0, 2);\n \t\tString month = DOB.substring(2, 4);\n \t\tString year = DOB.substring(4);\n \t\tString output = fName.toUpperCase() + \" \" + lName.toUpperCase() + \"\\t\\t\" + day + \"/\" + month + \"/\" + year;\n \t\tout.print(\"\\n\" + output);\n \t}\n \twhile(in.hasNextLine()); \n \tout.close();\n \tin.close();\n \t\n \t\n \t//middle name output case\n \tdo \n \t{\n \t\tString Name2 = in.next();\n \t\tString Name1 = in.next();\n \t\tString output = Name1.toUpperCase() + \" \" + Name2.toUpperCase() ;\n \t\tif(in.hasNextInt()) //if the next value is an integer then substring the DOB as usual\n \t\t{\n \t\t\tString DOB = in.next();\n \t\tString day = DOB.substring(0, 2);\n \t\tString month = DOB.substring(2, 4);\n \t\tString year = DOB.substring(4);\n \t\toutput = output + \"\\t\\t\" + day + \"/\" + month + \"/\" + year; //add to output\n \t\t}\n \t\telse //if the next is not an int then first add another name and then add DOB\n \t\t{\n \t\t\tString name3 = in.next(); //read next String input\n \t\t\t\n \t\t\t//add DOB as usual\n \t\t\tString DOB = in.next();\n \t\tString day = DOB.substring(0, 2);\n \t\tString month = DOB.substring(2, 4);\n \t\tString year = DOB.substring(4);\n \t\toutput = output + name3.toUpperCase() + \"\\t\\t\" + day + \"/\" + month + \"/\" + year; //add to output\n \t\t}\n \t\t\n \t\tout.print(\"\\n\" + output);\n \t}\n \twhile(in.hasNextLine()); \n \tout.close();\n \tin.close();\n \t\n \t\n \t\n System.out.println(\"You need to add your own code to do anything\");\n\n }", "title": "" }, { "docid": "4cc9843fcbf451c3241db91541069895", "score": "0.5200009", "text": "public static void closeInputFile()\n\t{\n\t\ttry {\n\t\t\t\n\t\t\tinStream.close();\n\t\t\t\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}", "title": "" }, { "docid": "77a0998be24c15bbe8d89095849b5179", "score": "0.5193091", "text": "@Override\n public void decryptFile(String inputFile, String outputFile) throws SJException {\n DataInputStream dis = null;\n DataOutputStream dos = null;\n\n try {\n logger.trace(\"begin decrypt file: \" + inputFile);\n\n dis = new DataInputStream(new FileInputStream(inputFile));\n\n //0.1 read encrypted header sign\n logger.trace(\"check encrypted heade sign\");\n byte[] headerSign = new byte[4];\n dis.read(headerSign);\n\n if (!Arrays.equals(SystemConfig.ENCRYPTED_HEADER_BLOCK, headerSign)) {\n logger.error(SJErrorCode.HEADER_SIGN_INCORRECT.toString()+ \":\" + inputFile);\n return;\n }\n\n //1. read version of header\n int version = dis.readInt();\n if (version != SystemConfig.VERSION){\n logger.error(\"System version:\"+SystemConfig.VERSION + \"----\" + \"Encrypt version:\"+version);\n logger.error(SJErrorCode.INCORECT_VERSION.toString() + \":\" + inputFile);\n return;\n }\n\n //2. read length of SHA1 checksum\n int checksumSize = dis.readInt();\n\n //3. read SHA1 checksum bytes\n byte[] checkSumBytes = new byte[checksumSize];\n dis.read(checkSumBytes);\n\n //3.1 create temp file for output file\n String tempExtension = \".\"+ System.nanoTime()+SystemConfig.DECRYPTED_EXTENSION;\n String oldOutputFile = outputFile;\n outputFile = outputFile + tempExtension;\n dos = new DataOutputStream(new FileOutputStream(outputFile));\n \n //4. read child count\n int childCount = dis.readInt();\n\n int count = 1;\n\n while (count <= childCount) {\n logger.trace(\"reading child \" + count);\n\n int encryptedChildSize = dis.readInt();\n byte[] encryptedChildBytes = new byte[encryptedChildSize];\n dis.read(encryptedChildBytes);\n\n logger.trace(\"decrypting child \" + count);\n byte[] decryptedChildBytes = crypto.decrypt(encryptedChildBytes);\n\n logger.trace(\"writing child \" + count + \" to file\");\n dos.write(decryptedChildBytes);\n\n count++;\n }\n\n logger.trace(\"validating checksum SHA1\");\n byte[] checkSumOutputFile = FileUtil.CHECKSUM_FILE_SHA1(outputFile);\n\n if (Arrays.equals(checkSumBytes, checkSumOutputFile)) {\n logger.trace(\"checksum ok, decrypt successfully!\");\n } else {\n logger.error(SJErrorCode.SHA1_CHECKSUM_NOT_EQUAL.toString()+\":\"+outputFile);\n return;\n }\n \n dos.flush();;\n \n dos.close();\n \n dos = null;\n \n dis.close();\n \n dis = null;\n \n \n if (inputFile.equals(oldOutputFile)){\n if (isReplace){\n //delete old file\n File in = new File(inputFile);\n in.delete();\n\n //renew temp file to original file\n new File(outputFile).renameTo(new File(oldOutputFile));\n \n logger.trace(\"complete writing file: \" + oldOutputFile);\n }else{\n logger.trace(\"complete writing file: \" + outputFile);\n }\n }else{\n //renew temp file to original file\n new File(outputFile).renameTo(new File(oldOutputFile));\n logger.trace(\"complete writing file: \" + oldOutputFile);\n }\n \n \n\n } catch (Exception e) {\n throw new SJException(e, SJErrorCode.TECHNICAL);\n } finally {\n if (dos != null) {\n try {\n dos.flush();\n dos.close();\n } catch (IOException ex) {\n java.util.logging.Logger.getLogger(FileCryptography.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n if (dis != null) {\n try {\n dis.close();\n } catch (IOException ex) {\n java.util.logging.Logger.getLogger(FileCryptography.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }\n }", "title": "" }, { "docid": "d0672a599292d91838af6c0ea9288635", "score": "0.5191037", "text": "public String process() {\n\t\tString output = null;\n\t\ttry {\n\t\t\tString xmifilename = \"/Users/m048100/Documents/workspace-web/xmlView/data/test/testoutput/111.txt.xml\";\n\t\t\tString featureFileName = \"/Users/m048100/Documents/workspace-web/xmlView/test/output_ind/111.xml.crfsuite.unigam.bigram.context.document.concept.conToken.uniNorm.posTagging.orthography.affix.umls.unit.numToken.crffv\";\n\t\t\tFile xmiFile = new File(xmifilename);\n\t\t\tFile featureFile = new File(featureFileName);\n\t\t\tif(xmiFile.exists() && featureFile.exists()){\n\t\t\t}else{\n\t\t\t\tuimaPipeCda.annotate(null, returnMessages);\n\t\t\t}\n\t\t\toutput = readOutputFromFile();\n\t\t} catch (AnalysisEngineProcessException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (ResourceInitializationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (CollectionException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (ResourceProcessException 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\tfor(String string : returnMessages){\n\t\t\tSystem.out.println(string);\n\t\t}\n\t\treturn output;\n\t}", "title": "" }, { "docid": "86c342973feb3070ec57ae5d70d244a3", "score": "0.5180565", "text": "private void transform(String sourceFilePath, String xsltFilePath, String outputPath)\n throws TransformerException {\n handler.logInfo(\"Transforming \" + sourceFilePath + \" with xsl: \" + xsltFilePath + \" to output: \" + outputPath);\n\n Source xmlSource = new StreamSource(new File(sourceFilePath));\n Source xsltSource = new StreamSource(new File(xsltFilePath));\n Result result = new StreamResult(new File(outputPath));\n\n // Create an instance of TransformerFactory\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n\n Transformer trans;\n try {\n trans = transformerFactory.newTransformer(xsltSource);\n trans.setParameter(\"inputFormsPath\", inputFormsFilePath);\n } catch (TransformerConfigurationException e) {\n handler.logError(\"Error: the stylesheet at '\" + xsltFilePath + \"' couldn't be used\");\n throw e;\n }\n\n try {\n trans.transform(xmlSource, result);\n } catch (Throwable t) {\n handler.logError(\"Error: couldn't convert the metadata file at '\" + sourceFilePath);\n throw t;\n }\n }", "title": "" }, { "docid": "89b183519c0ae3b52b8b31700eacf0f2", "score": "0.51760685", "text": "public void writeToOutput()\n {\n \tPPXMLDocument ppXMLDocument = context.getPPXMLDocument();\n \tppXMLDocument.getPPXMLOptions().setOption(PPXMLOptions.kIncTab, \"true\");\n \tppXMLDocument.setOutput(outputPPXML.getFilename());\n Document dom = ppXMLDocument.getDOM();\n \n try\n {\n\t switch(outputPPXML.fileType)\n\t\t\t{\n\t\t\t\tcase XYZInputSource.TYPE_OUTPUTSTREAM:\n\t\t\t\t\tXYZDOMUtilities.saveDOMToOutputStream(dom, outputPPXML.myOutputStream);\n\t\t\t\t\tbreak;\n\t\t\t\tcase XYZInputSource.TYPE_FILENAME:\n\t\t\t\t\tXYZDOMUtilities.saveDOMToFile(dom, new File(outputPPXML.getFilename()));\n\t\t\t\t\tbreak;\n\t\t\t\tcase XYZInputSource.TYPE_WRITER:\n\t\t\t\t\tXYZDOMUtilities.saveDOMToWriter(dom, outputPPXML.myWriter);\n\t\t\t\t\tbreak;\n\t\t\t\tcase XYZInputSource.TYPE_DOM:\n\t\t\t\t\toutputPPXML.myDoc = dom;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tDEBUG.errorPrint(\"PPTX: Unsupported output type: \" + outputPPXML.getTypeString());\t\n\t\t\t}\n }\n catch(IOException e)\n {\n \tDEBUG.errorPrint(\"Error - PPTX - Error while writing dom to output.\");\n }\n }", "title": "" }, { "docid": "1cf5639c615017788930e5f35e293312", "score": "0.51754236", "text": "public void processFile() {\n\n\t\tint numValidLines = getValidLines();\n\t\tif (numValidLines >= 0) {\n\n\t\t\tString fieldName = Controller.promptFilter();\n\t\t\tString fieldValue = \"\";\n\n\t\t\t// if the user wants to specify a filter value\n\t\t\tif (!fieldName.equals(\"\")) {\n\t\t\t\tfieldValue = Controller.promptFilterValue();\n\t\t\t}\n\n\t\t\tString termFieldName = Controller.promptTerminal();\n\t\t\tTerminalObservation termObservation = TerminalObservation.NOTHING;\n\n\t\t\t// if the user wants to specify a terminal observation\n\t\t\tif (!termFieldName.equals(\"\")) {\n\t\t\t\ttermObservation = Controller.promptObservation();\n\t\t\t}\n\n\t\t\tTSVFilter myTSVFilter = new TSVFilter\n\t\t\t\t\t.WhichFile(nameOfFile)\n\t\t\t\t\t.select(fieldName, fieldValue)\n\t\t\t\t\t.terminate(termFieldName, termObservation)\n\t\t\t\t\t.done();\n\t\t\t\n\t\t\t//printing out myTSVFilter's attributes\n\t\t\tSystem.out.println(myTSVFilter + \"\\n\");\n\n\t\t\tnew TSVPipeline(myTSVFilter, variables).doit(numValidLines);\n\t\t\t\n\t\t\t\n\t\t} else {\n\t\t\tSystem.out.println(ErrorMessages.noFileCreated);\n\t\t}\n\t}", "title": "" }, { "docid": "f4ff640b35f1a2f52a8dff82d9e911e4", "score": "0.51739067", "text": "public void organizeImports(File pInputFile, File pOutputFile) throws ParseException, IOException {\r\n final String lInput = FileUtils.readFileToString(pInputFile, getEncoding());\r\n String lOutput = organizeImports(lInput);\r\n FileUtils.writeStringToFile(pOutputFile, lOutput, getEncoding());\r\n }", "title": "" }, { "docid": "dcad6992f4541d4305e84c0dbf3b1178", "score": "0.51642525", "text": "default void writeOutputFiles(Result pResult, UnmodifiableReachedSet pReached) {}", "title": "" }, { "docid": "2196c7f6887bb3e640ba28afb6d6a619", "score": "0.5157632", "text": "private void addOutputFileToOutputMap(final WorkflowFactory workflowFactory, final String line1, final String line2) {\n final List<String> dummyLines = new ArrayList<>();\n dummyLines.add(line1);\n dummyLines.add(line2);\n final File temporaryOutputFile = FileUtils.createTemporaryFile(dummyLines.toArray(new String[dummyLines.size()]));\n final Workflow workflow = workflowFactory.getWorkflow(null, null, Constants.CONCATENATE_WORKFLOW);\n workflow.addOutput(ConcatenateExample.OUTPUT_NAME_12, temporaryOutputFile);\n }", "title": "" }, { "docid": "1a280c0ddeedebe46df27c0d95a961a4", "score": "0.5156085", "text": "public void processImage() {\n\t\tBufferedReader br;\n\t\tString OS; // Operating system of this machine\n\t\tOS = System.getProperty(\"os.name\");\n\t\tif (OS.startsWith(\"Win\")) fileDelimiter = \"\\\\\"; else fileDelimiter = \"/\";\n\t\ttry {\n\t\t\t// Open the configuration file\n\t\t\tbr = new BufferedReader(new FileReader(pathFile));\n\t\t\tString line = null;\n\t\t\ttry {\n\t\t\t\tString outputFile = \"\"; // Name of output image file\n\t\t\t\tint filesProcessed = 0;\n\t\t\t\t// Read the configuration file\n\t\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t\t\n\t\t\t\t\t// Split the line read from the configuration file into its components: color mode,\n\t\t\t\t\t// name of input image file, and image operations to apply to the image\n\t\t\t\t\tString[] parameters = line.split(\"\\\\s+\");\n\n\t\t\t\t\tColor[][] array;\n\n\t\t\t\t\t// Read the image file\n\t\t\t\t\tImageLoader loader = new ImageLoader();\n\t\t\t\t\tif (loader.loadImage(parameters[1])) {\n\n\t\t\t\t\t\t// Store pixels of image file into \"array\" according to color mode\n\t\t\t\t\t\tif (\"Color\".equals(parameters[0])) {\n\t\t\t\t\t\t\tarray = loader.getColorArray();\n\t\t\t\t\t\t} else if (\"Grayscale\".equals(parameters[0])) {\n\t\t\t\t\t\t\tarray = loader.getGrayscaleArray();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\"Error: Please provide Color or Grayscale in configuration file: \" + parameters[1]);\n\t\t\t\t\t\t\tbr.close();\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// This string will contain all image operations performed. This will be used as part\n\t\t\t\t\t\t// of the name of the output file\n\t\t\t\t\t\tString nameSuffix = \"\"; \n\t\t\t\t\t\tColor[][] result = null; // After applying operation the image will be stored here\n\t\t\t\t\t\tint numOfOperations = parameters.length-2;\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Apply image operations\n\t\t\t\t\t\tfor (int i = 0; i < numOfOperations; i++) {\n\t\t\t\t\t\t\tImageOperation operation = OperationFactory.create(parameters[2 + i]);\n\t\t\t\t\t\t\tresult = operation.doOperation(array);\n\t\t\t\t\t\t\tarray = result; // Get ready to apply next operation\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Append name of applied operation to nameSuffix\n\t\t\t\t\t\t\tif (nameSuffix.length() > 0) nameSuffix = nameSuffix + \"_\";\n\t\t\t\t\t\t\tnameSuffix = nameSuffix + parameters[2+i];\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Create name for output file\n\t\t\t\t\t\toutputFile = createOutputImageName(parameters[1], nameSuffix);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Save modified image into a file in the output directory\n\t\t\t\t\t\tImageWriter writer = new ImageWriter();\n\t\t\t\t\t\twriter.writeImage(outputDir + fileDelimiter + outputFile, result);\n\t\t\t\t\t\t++ filesProcessed;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbr.close();\n\t\t\t\tif (filesProcessed == 1) \n\t\t\t\t\tSystem.out.println(\"Image file \\\"\"+outputDir+fileDelimiter+outputFile+ \"\\\" saved\");\n\t\t\t\telse System.out.println(filesProcessed+\" image files processed\");\n\t\t\t\tSystem.exit(0);\n\t\t\t} catch (IOException ioException) {\n\t\t\t\tSystem.out.println(\"Error when reading the text file.\");\n\t\t\t\tioException.printStackTrace();\n\t\t\t}\n\t\t} catch (FileNotFoundException fileException) {\n\t\t\tSystem.out.println(\"Text file containing images' paths not found.\");\n\t\t\tfileException.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "b96c808e13859899dcf98ddc8d1564fb", "score": "0.51500916", "text": "static File createOutput(String outputFilePath) {\n File outputFile = new File(outputFilePath);\n if (outputFile.exists()) {\n if (!outputFile.delete()) {\n throw new RuntimeException(\"could not delete existing output file\");\n }\n }\n try {\n if (!outputFile.createNewFile()) {\n throw new RuntimeException(\"could not create the new output file\");\n }\n }\n catch (IOException e) {\n }\n return outputFile;\n }", "title": "" }, { "docid": "c0b061498ea34353067504c0c9ed5166", "score": "0.51459503", "text": "public abstract OutputStream write(File file) throws IOException;", "title": "" }, { "docid": "1ee9beb5c9e0312616e78ed96b96777b", "score": "0.51424766", "text": "void outputCalculatedValues() {\n System.out.print(\"Enter a filename to output the results to: \");\n String fileName = scanner.nextLine();\n fileName = fileName.trim() + \".csv\";\n System.out.println();\n\n Path filePath = Paths.get(\"./\", fileName);\n\n // if this is the first time we're writing to this file, we need to output a row with column headers\n String headers = \"Sample,CFU/mL,STDDEV\\n\";\n StringBuilder stringBuilder = new StringBuilder();\n if (!Files.exists(filePath)) {\n stringBuilder.append(headers);\n }\n\n // print out values for this row to both the console and a file\n for (int i = 0; i < cfuAverageAndStdDevs.size(); ++i) {\n int row = (i+1);\n CFUAverageAndStdDev cfuAverageAndStdDev = cfuAverageAndStdDevs.get(i);\n stringBuilder.append(row).append(\",\")\n .append(String.format(\"%.4e\", cfuAverageAndStdDev.averageColoniesPerMill)).append(\",\")\n .append(String.format(\"%.4e\", cfuAverageAndStdDev.stdDevColoniesPerMill)) .append(\"\\n\");\n }\n\n // print the results to the console\n System.out.println(\"Results:\");\n System.out.println(\"========\");\n System.out.println(stringBuilder.toString());\n\n // open a file for writing, creating the file if it doesn't already exist, appending to the file if it does exist\n try {\n Files.write(filePath, stringBuilder.toString().getBytes(StandardCharsets.UTF_8), StandardOpenOption.CREATE, StandardOpenOption.WRITE, StandardOpenOption.APPEND);\n } catch (IOException e) {\n System.err.printf(\"Failed to write cfu count csv '%s'\\n%s\", filePath.toString(), e);\n }\n }", "title": "" }, { "docid": "c4029645f852a00bff80b5730a5c38d1", "score": "0.51251525", "text": "public static File preparing_File (File before, String delimiter){\n FileReader in;\n BufferedWriter out;\n File result = null;\n\n try {\n in = new FileReader( before );\n result = new File(before.getAbsolutePath().replaceAll(\".txt\", \"New.txt\"));\n if (new File(before.getAbsolutePath().replaceAll(\".txt\", \"New.txt\")).exists())\n result.delete();\n out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(result), StandardCharsets.UTF_8));\n Scanner scan = new Scanner(in);\n String a, b , r, s;\n scan.nextLine();\n while (scan.hasNextLine()){\n s = scan.nextLine();\n a = parse_Definition(s.substring(0,s.indexOf(delimiter)));\n b = parse_Definition(s.substring(s.lastIndexOf(delimiter) + 1));\n r = parse_Definition(s.substring(s.indexOf(delimiter) + 1, s.lastIndexOf(delimiter)));\n out.write(a + delimiter + r + delimiter + b + \"\\r\\n\");\n System.out.println(a + delimiter + r + delimiter + b);\n }\n in.close();\n out.flush();\n out.close();\n\n }catch (IOException ignore) {}\n\n return result;\n }", "title": "" }, { "docid": "590feb76fd823b16040e8951ef884e45", "score": "0.51186436", "text": "private static void writeFile(){\r\n\t\ttry (BufferedWriter writer = Files.newBufferedWriter(targetFile.toPath())) {\r\n\t\t writer.write(content);\r\n\t\t} catch (IOException x) {\r\n\t\t System.err.format(\"IOException: %s%n\", x);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8339648fb54fd1c855fbbadba3d45bda", "score": "0.51186395", "text": "private void switchCharset(FilesetFile inputFile, File outputFile) throws CatalogExceptionNotRecoverable, XSLTException, PoolException, XMLStreamException, IOException {\n\t\tString publicId = null;\n\t\tString systemId = null;\n\t\tString internal = null;\n\t\tString root = null;\n\t\tStAXInputFactoryPool pool = StAXInputFactoryPool.getInstance();\t\t\n\t\tXMLInputFactory factory = pool.acquire(mXifProperties);\n\t\tfactory.setXMLResolver(new StaxEntityResolver(CatalogEntityResolver.getInstance()));\n\t\t\n\t\tStreamSource ss = new StreamSource(inputFile.getFile());\n\t\tss.setSystemId(inputFile.getFile().toURI().toString());\t\t\n\t\tXMLEventReader reader = factory.createXMLEventReader(ss);\t\t\n\t\twhile (reader.hasNext()) {\n\t\t\tXMLEvent event = reader.nextEvent();\n\t\t\tif (event.getEventType() == XMLStreamConstants.DTD) {\n\t\t\t\tString doctype = ((DTD)event).getDocumentTypeDeclaration();\n\t\t\t\tDoctypeParser doctypeParser = new DoctypeParser(doctype);\n\t\t\t\tpublicId = doctypeParser.getPublicId();\n\t\t\t\tsystemId = doctypeParser.getSystemId();\n\t\t\t\tinternal = doctypeParser.getInternalSubset();\n\t\t\t}\n\t\t\tif (event.isStartElement()) {\n\t\t\t\troot = event.asStartElement().getName().getLocalPart();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\t\t\n\t\tif(ss.getInputStream()!=null) ss.getInputStream().close();\n\t\tif(ss.getReader()!=null) ss.getReader().close();\n\t\treader.close();\n\t\tpool.release(factory, mXifProperties);\n\t\t\n\t\t// Fill in properties\n\t\tMap<String,Object> properties = new HashMap<String,Object>();\n\t\tif (publicId != null) {\n\t\t\tproperties.put(\"public\", publicId);\n\t\t}\n\t\tif (systemId != null) {\n\t\t\tproperties.put(\"system\", systemId);\n\t\t}\n\t\tif (internal != null) {\n\t\t\tproperties.put(\"internal\", internal);\n\t\t}\n\t\tif (root != null) {\n\t\t\tproperties.put(\"root\", root);\n\t\t}\n\t\t\t\t\n\t\t// Transform\n\t\t// mg20070530: this is where the filelock occurs on inputFile when using saxon8\n\t\tStylesheet.apply(inputFile.toString(), stylesheet.toString(), outputFile.toString(), XSLT_FACTORY, properties, CatalogEntityResolver.getInstance());\n\t}", "title": "" }, { "docid": "af9fb7625459f1d6dfbf5ae5c8427f28", "score": "0.5116903", "text": "public static ArrayList<String> InputHandlerWithSort(String inputtedDir,String outputtedDir) {\n\n // declare an array list to store the gathered\n // input from the input file in the mentioned directory\n ArrayList<String> inputList = new ArrayList<>();\n\n // create a counter\n int i = 0;\n\n // use a try catch approach to handle any error\n // within the process of reading the file containing input\n try {\n\n // create a bufferedReader to help gather information from the input file\n BufferedReader scanner = new BufferedReader(new FileReader(inputtedDir));\n\n // create a string variable to hold the read element from the file\n String scanned;\n\n // read from the input file all elements until the end of the file\n // and then store them continuously within the array list\n while ((scanned = scanner.readLine()) != null) {\n\n inputList.add(scanned);\n\n }\n\n // close the buffered writer\n scanner.close();\n\n // output an error message to the screen whenever there is an error reading\n // the input file.\n } catch (IOException e) {\n\n printOutput(\"(Problem) Check the inputted file! Reading Input Failed!\");\n\n }\n\n // get the total of names in the list\n int total = inputList.size();\n\n // check if the scanning and reading from the input file was valid\n // if not print an error message and exit!\n if (inputList.isEmpty()) {\n\n printOutput(\"(Problem) Check the inputted file! Reading Input Failed!\");\n System.exit(-1);\n\n // administer and execute an else statement to sort the information\n // scanned from the input file and stored in the array list 'inputList'\n // and output to the output file desired\n } else {\n\n // sort the inputList\n Collections.sort(inputList);\n\n // use a try catch error approach to handle any exceptions\n // or errors while writing to the output file\n try{\n\n // create a BufferedWriter to help write to the output file\n BufferedWriter scanner = new BufferedWriter(new FileWriter(outputtedDir));\n\n // print to the output file the same list format expected\n scanner.write(\"Total of \"+ total +\" names\");\n scanner.newLine();\n scanner.write(\"------------------\");\n scanner.newLine();\n\n // loop until the end of the previously generated array list\n // and write to the output file accordingly\n while (i < inputList.size()) {\n\n scanner.write(inputList.get(i));\n\n // new line\n scanner.newLine();\n\n i++;\n\n }\n\n // close the buffered writer\n scanner.close();\n\n // catch any error that can come up while writing to the output file\n } catch (IOException e) {\n\n printOutput(\"(Problem) Check the outputted file! Outputting to file failed!\");\n\n }\n\n }\n\n // return the sorted arrayList to caller\n return inputList;\n\n }", "title": "" }, { "docid": "8fea1207cb7f6fe22d9b5642a4c0d507", "score": "0.51146364", "text": "static void write(Path sourcePath, String output) throws IOException {\r\n Files.write(Paths.get(sourcePath.toString() + \"_out\"),\r\n output.replaceAll(\"\\n\", System.getProperty(\"line.separator\")).getBytes());\r\n }", "title": "" }, { "docid": "4df9e92ba88bbfa5dfca9fc2510c072d", "score": "0.51142424", "text": "public static void PhaseProcess(String outputOfMLP, String outputOfRSITest) throws Exception{\n\t\tString fName = outputOfMLP;\n\t\t//String fNameTest = \"resources2/outputOfRSITest.csv\";\n\t\tString fNameTest=outputOfRSITest;\n\t\tString thisLine; \n\t\tString thisLineTest; \n\t\tint count=0; \n\t\tint countTest=0;\n\t\tFileInputStream fis = new FileInputStream(fName);\n\t\tFileInputStream fisTest = new FileInputStream(fNameTest);\n\t\tDataInputStream myInput = new DataInputStream(fis);\n\t\tDataInputStream myInputTest = new DataInputStream(fisTest);\n\t\tint i=0; \n\t\tint j=0;\n\t\t\n\t\t\n\n\t\tString[][] data = new String[0][];//csv data line count=0 initially\n\t\twhile ((thisLine = myInput.readLine()) != null) {\n\t\t\t++i;//increment the line count when new line found\n\t\t\t\n\t\t\tString[][] newdata = new String[i][2];//create new array for data\n\n\t\t\tString strar[] = thisLine.split(\";\");//get contents of line as an array\n\t\t\tnewdata[i - 1] = strar;//add new line to the array\n\n\t\t\tSystem.arraycopy(data, 0, newdata, 0, i - 1);//copy previously read values to new array\n\t\t\tdata = newdata;//set new array as csv data\n\t\t}\n\n\t\t\n\t\tString[][] dataTest = new String[0][];//csv data line count=0 initially\n\t\twhile ((thisLineTest = myInputTest.readLine()) != null) {\n\t\t\t++j;//increment the line count when new line found\n\n\t\t\tString[][] newdataTest = new String[j][2];//create new array for data\n\n\t\t\tString strarTest[] = thisLineTest.split(\";\");//get contents of line as an array\n\t\t\tnewdataTest[j - 1] = strarTest;//add new line to the array\n\n\t\t\tSystem.arraycopy(dataTest, 0, newdataTest, 0, j - 1);//copy previously read values to new array\n\t\t\tdataTest = newdataTest;//set new array as csv data\n\t\t}\n\n\n\t\n\t\t\n\t\tconverToFinancialData(data,dataTest);\n\t\tSystem.out.println(\"finished\");\n\t}", "title": "" }, { "docid": "cb0df790a34b31e14c3ea8f88c396262", "score": "0.51128966", "text": "public static void output(InputStream is, File output)\n throws IOException {\n BufferedInputStream bis = null;\n BufferedOutputStream bos = null;\n try {\n bis = new BufferedInputStream(is);\n bos = new BufferedOutputStream(new FileOutputStream(output));\n byte[] b = new byte[1024];\n int len;\n while ((len = bis.read(b)) != -1) {\n bos.write(b, 0, len);\n }\n } finally {\n if (bis != null) {\n bis.close();\n }\n\n if (bos != null) {\n bos.close();\n }\n }\n }", "title": "" }, { "docid": "4e3f8c5207a51a1f7d8ff2ee67f0e3cb", "score": "0.50942105", "text": "@Override\r\n\tpublic void compress(File input, File output ) throws IOException{\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t\t\r\n\t BufferedImage image = ImageIO.read(input);\r\n\r\n\t OutputStream os = new FileOutputStream(output);\r\n\t \r\n\t Iterator<ImageWriter> writers = ImageIO.getImageWritersByFormatName(\"jpg\");\r\n\t ImageWriter writer = (ImageWriter) writers.next();\r\n\r\n\t ImageOutputStream ios = ImageIO.createImageOutputStream(os);\r\n\t writer.setOutput(ios);\r\n\r\n\t ImageWriteParam param = writer.getDefaultWriteParam();\r\n\r\n\t param.setCompressionMode(ImageWriteParam.MODE_EXPLICIT);\r\n\t param.setCompressionQuality(0.05f); // Change the quality value you prefer\r\n\t writer.write(null, new IIOImage(image, null, null), param);\r\n\r\n\t os.close();\r\n\t ios.close();\r\n\t writer.dispose();\r\n\t}", "title": "" }, { "docid": "f983f193b7a44b38675e856a532719f1", "score": "0.5091984", "text": "public void doIt(String in1, String in2, String out) throws IOException, COSVisitorException\r\n {\r\n InputStream is1 = null;\r\n PDDocument doc1 = null;\r\n\r\n InputStream is2 = null;\r\n PDDocument doc2 = null;\r\n OutputStream os = null;\r\n COSWriter writer = null;\r\n try\r\n {\r\n is1 = new FileInputStream(in1);\r\n PDFParser parser1 = new PDFParser(is1);\r\n parser1.parse();\r\n doc1 = parser1.getPDDocument();\r\n\r\n is2 = new FileInputStream(in2);\r\n PDFParser parser2 = new PDFParser(is2);\r\n parser2.parse();\r\n doc2 = parser2.getPDDocument();\r\n\r\n appendDocument(doc1, doc2);\r\n\r\n os = new FileOutputStream(out);\r\n writer = new COSWriter(os);\r\n writer.write(doc1);\r\n }\r\n finally\r\n {\r\n close( is1 );\r\n close( doc1 );\r\n\r\n close( is2 );\r\n close( doc2 );\r\n\r\n close( writer );\r\n close( os );\r\n }\r\n }", "title": "" } ]
9ba3e53cf9e3e144c89e07c4fb4de8e8
don't spawn particles unless we're moving kinda fast. blobs just kinda sit there if they don't have a surface to splat on.
[ { "docid": "6da39144d7c272f7b01f2621caafe6cb", "score": "0.57075596", "text": "protected void splat(BlockPos pos, Direction face, Vector3d hitVec) {\n if (this.getMotion().lengthSquared() >= 1d) {\n // the state we're interested in observing is the state of the hit block, not the offset.\n GooInteractions.spawnParticles(this);\n }\n if (world.isRemote()) {\n return;\n }\n // nerf motion on impact.\n this.setMotion(this.getMotion().scale(0.02d));\n // create a goo splat\n FluidStack traceGoo = drain(1, FluidAction.EXECUTE);\n GooSplat splatToAdd = new GooSplat(Registry.GOO_SPLAT.get(), this.owner, world, traceGoo, hitVec, pos, face);\n world.addEntity(splatToAdd);\n attachToBlock(pos, face, splatToAdd);\n }", "title": "" } ]
[ { "docid": "d8457249157fcd1b26c3c0fe6b0cc113", "score": "0.64506537", "text": "@Override\n\tpublic void doExplosionB(boolean spawnParticles)\n\t{\n\t\tworldObj.playSound((EntityPlayer)null, explosionX, explosionY, explosionZ, SoundEvents.ENTITY_GENERIC_EXPLODE, SoundCategory.BLOCKS, 4.0F, (1.0F + (worldObj.rand.nextFloat() - worldObj.rand.nextFloat()) * 0.2F) * 0.7F);\n\n\t\tif (explosionSize >= 2.0F && isSmoking)\n\t\t\tworldObj.spawnParticle(EnumParticleTypes.EXPLOSION_HUGE, explosionX, explosionY, explosionZ, 1.0D, 0.0D, 0.0D, new int[0]);\n\t\telse\n\t\t\tworldObj.spawnParticle(EnumParticleTypes.EXPLOSION_LARGE, explosionX, explosionY, explosionZ, 1.0D, 0.0D, 0.0D, new int[0]);\n\n\t\tif (isSmoking)\n\t\t\tfor (BlockPos blockpos : affectedBlockPositions)\n\t\t\t{\n\n\t\t\t\tif (spawnParticles)\n\t\t\t\t{\n\t\t\t\t\tdouble d0 = blockpos.getX() + worldObj.rand.nextFloat();\n\t\t\t\t\tdouble d1 = blockpos.getY() + worldObj.rand.nextFloat();\n\t\t\t\t\tdouble d2 = blockpos.getZ() + worldObj.rand.nextFloat();\n\t\t\t\t\tdouble d3 = d0 - explosionX;\n\t\t\t\t\tdouble d4 = d1 - explosionY;\n\t\t\t\t\tdouble d5 = d2 - explosionZ;\n\t\t\t\t\tdouble d6 = MathHelper.sqrt(d3 * d3 + d4 * d4 + d5 * d5);\n\t\t\t\t\td3 = d3 / d6;\n\t\t\t\t\td4 = d4 / d6;\n\t\t\t\t\td5 = d5 / d6;\n\t\t\t\t\tdouble d7 = 0.5D / (d6 / explosionSize + 0.1D);\n\t\t\t\t\td7 = d7 * (worldObj.rand.nextFloat() * worldObj.rand.nextFloat() + 0.3F);\n\t\t\t\t\td3 = d3 * d7;\n\t\t\t\t\td4 = d4 * d7;\n\t\t\t\t\td5 = d5 * d7;\n\t\t\t\t\tworldObj.spawnParticle(EnumParticleTypes.EXPLOSION_NORMAL, (d0 + explosionX) / 2.0D, (d1 + explosionY) / 2.0D, (d2 + explosionZ) / 2.0D, d3, d4, d5, new int[0]);\n\t\t\t\t\tworldObj.spawnParticle(EnumParticleTypes.SMOKE_NORMAL, d0, d1, d2, d3, d4, d5, new int[0]);\n\t\t\t\t}\n\n\t\t\t\tworldObj.setBlockToAir(blockpos);\n\t\t\t}\n\n\t\tif (isFlaming)\n\t\t\tfor (BlockPos blockpos1 : affectedBlockPositions)\n\t\t\t\tif (worldObj.getBlockState(blockpos1).getMaterial() == Material.AIR && worldObj.getBlockState(blockpos1.down()).isFullBlock() && explosionRNG.nextInt(3) == 0)\n\t\t\t\t\tworldObj.setBlockState(blockpos1, Blocks.FIRE.getDefaultState());\n\t}", "title": "" }, { "docid": "06adf82df57efe3d322d12653237a679", "score": "0.64265656", "text": "public void onLivingUpdate() {\n\n floatingRotation += 0.02F;\n\n if (worldObj.isRemote) {\n for (int i = 0; i < 1; i++) {\n double d = rand.nextGaussian() * 0.02D;\n double d1 = rand.nextGaussian() * 0.02D;\n double d2 = rand.nextGaussian() * 0.02D;\n double d3 = 10D;\n\n this.worldObj.spawnParticle(EnumParticleTypes.CRIT_MAGIC, (posX + (double) (rand.nextFloat()\n * width * 2.0F))\n - (double) width - d * d3,\n (posY + (double) (rand.nextFloat() * height)) - d1 * d3,\n (posZ + (double) (rand.nextFloat() * width * 2.0F))\n - (double) width - d2 * d3, d, d1, d2);\n }\n }\n\n super.onLivingUpdate();\n }", "title": "" }, { "docid": "6a897a89110b601515514af3770ab3ea", "score": "0.6394139", "text": "private void spawnInsertParticles()\n\t{\n\t\tTanpopoPacket.DISPATCHER.sendToAll(new MessageParticleBlock(0, this.getPos()));\n\t}", "title": "" }, { "docid": "c99514b5b68ecc2060359fe9cbc9cdaf", "score": "0.63302165", "text": "@Override\n public void run() {\n if (!running) {\n runTaskTimer(HPS, 0l, 1l);\n running = true;\n }\n\n loc.add(direction);\n try {\n for (HPSParticle hpsParticle : hpsParticles) {\n \tParticle particle = hpsParticle.getParticle();\n \tif (particle == Particle.REDSTONE) {\n \t\tDustOptions options = hpsParticle.getOptions() != null ? hpsParticle.getOptions() : new Particle.DustOptions(Color.RED, 1);\n \t\tloc.getWorld().spawnParticle(particle, loc, count, offset, offset, offset, spellSpeed, options);\n \t} else {\n \t\tloc.getWorld().spawnParticle(particle, loc, count, offset, offset, offset, spellSpeed);\n \t}\n }\n } catch (Exception e) {\n HPS.PM.log(Level.WARNING, HPS.Localisation.getTranslation(\"errParticleEffect\"));\n HPS.PM.debug(e);\n }\n\n if (!loc.getBlock().getType().isTransparent()) {\n onHit.hitBlock(loc.getBlock());\n cancel();\n return;\n }\n\n List<LivingEntity> list = getNearbyEntities(loc, 2, caster);\n if (list.size() != 0) {\n onHit.hitEntity(list.get(0));\n cancel();\n return;\n }\n tickTracker++;\n if (tickTracker > maxTicks && !(maxTicks == -1)) {\n cancel();\n }\n }", "title": "" }, { "docid": "77bd1676d6dd7e9869b5c6a922ff4c32", "score": "0.6208286", "text": "public List<Particle> addParticles() {\n particles.add(new Particle(1, boxSize / 2, boxSize / 2, 0, 0, bigMass, bigRadius));\n\n /* Add small particles */\n for (int i = 0; i < numberOfParticles; i++){\n\n double x;\n double y;\n\n do {\n x = smallRadius + (boxSize - 2 * smallRadius) * Math.random();\n y = smallRadius + (boxSize - 2 * smallRadius) * Math.random();\n }\n while (isSuperimposed(x,y, particles));\n\n double vx;\n double vy;\n\n if(temperature == 0){\n vx = randomSpeed();\n vy = randomSpeed();\n }else {\n double v = temperature/numberOfParticles;\n vx = v/Math.sqrt(2);\n vy = v/Math.sqrt(2);\n\n double sign = Math.random();\n if(sign > 0.5){\n vx = vx * (-1);\n }else if(sign < 0.5){\n vy = vy * (-1);\n }\n }\n// vx = 2 * smallVelocity * Math.random() - smallVelocity;\n// vy = 2 * smallVelocity * Math.random() - smallVelocity;\n\n particles.add(new Particle(i+2, x, y, vx, vy, smallMass, smallRadius));\n }\n\n return particles;\n }", "title": "" }, { "docid": "0e616926bd2652bb48b69fb8b6239606", "score": "0.61532557", "text": "@Override\n public void run() {\n if (!running) {\n runTaskTimer(HPS, 0l, 1l);\n running = true;\n }\n\n loc.add(direction);\n try {\n for (Particle particle : effect) {\n// particleEffect.display(offset, offset, offset, spellSpeed, count, loc, 25);\n \tif (particle == Particle.REDSTONE) {\n \t\tloc.getWorld().spawnParticle(particle, loc, count, offset, offset, offset, spellSpeed, new Particle.DustOptions(Color.RED, 1));\n \t} else {\n \t\tloc.getWorld().spawnParticle(particle, loc, count, offset, offset, offset, spellSpeed);\n \t}\n }\n } catch (Exception e) {\n HPS.PM.log(Level.WARNING, HPS.Localisation.getTranslation(\"errParticleEffect\"));\n HPS.PM.debug(e);\n }\n\n if (!loc.getBlock().getType().isTransparent()) {\n onHit.hitBlock(loc.getBlock());\n cancel();\n return;\n }\n\n List<LivingEntity> list = getNearbyEntities(loc, 2, caster);\n if (list.size() != 0) {\n onHit.hitEntity(list.get(0));\n cancel();\n return;\n }\n tickTracker++;\n if (tickTracker > maxTicks && !(maxTicks == -1)) {\n cancel();\n }\n }", "title": "" }, { "docid": "3078ead41510d05d17c590d8962139ec", "score": "0.6042816", "text": "void updateAnimation(){\n// particles.add(new Particle(random(0,200),-20));\n// particles = (Particle[]) append(particles, new Particle(random(0,200),-20));\n\n for(int i = 0; i < particles.size(); i++){\n if (particles.get(i).y > height + 10) {\n particles.remove(i);//Lets remove the particle if it's off screen\n particles.add(new Particle(random(0,200),-20));\n }\n\n particles.get(i).x += particles.get(i).xVel;\n particles.get(i).y += particles.get(i).yVel;\n particles.get(i).updateVelocity();\n }\n }", "title": "" }, { "docid": "b8f97af33e0b95c89c8e6e8a37f4f6a9", "score": "0.6020562", "text": "@SideOnly(Side.CLIENT)\n/* */ public void spawnSmoke(Entity entity, float spread, int count) {\n/* 469 */ for (int i = 0; i < count; i++) {\n/* 470 */ double xOffset = entity.world.rand.nextGaussian() * spread;\n/* 471 */ double zOffset = entity.world.rand.nextGaussian() * spread;\n/* */ \n/* 473 */ Vec3d pos = new Vec3d(entity.posX + xOffset, entity.posY + Math.min(entity.world.rand.nextFloat(), entity.world.rand.nextFloat()) * 0.5D * entity.height, entity.posZ + zOffset);\n/* 474 */ entity.world.spawnParticle(EnumParticleTypes.SMOKE_LARGE, pos.x, pos.y, pos.z, 0.0D, 0.08D, 0.0D, new int[0]);\n/* */ } \n/* */ }", "title": "" }, { "docid": "f6d82661725e29f9187b4c06cbab2ac4", "score": "0.59951574", "text": "@Override\n public void run() {\n physicsWorld = new World(new Vec2(0.0f, 0.0f)); //physicsWorld = new World(new Vec2(0, -10));\n physicsWorld.setAllowSleep(true);\n physicsWorld.setParticleDamping(0.15f); // 0.35\n physicsWorld.setParticleDensity(0.2f);\n physicsWorld.setParticleRadius(Renderer.screenToWorld(PARTICLE_RADIUS));\n\n // Step!\n while (!stop) {\n\n // Record the start time, so we know how long it took to sim everything\n long startTime = System.currentTimeMillis();\n\n /* Loops-through all the touch states in the Hash Map and\n * checks whether the ID behind each touch state exists in the\n * cluster Hash Map. If not add it, else set its new position,\n * and then move the physic particles to the right place in the\n * physics world. */\n\n for(Map.Entry<String, TouchState> entry : Client.INSTANCE.getTouchMapValues()){\n TouchState ts = entry.getValue();\n switch (ts.getState()) {\n case OpCodes.ACTION_DOWN:\n case OpCodes.ACTION_MOVE:\n Cluster c;\n if (clustersM.containsKey(entry.getKey()))\n c = clustersM.get(entry.getKey());\n else\n c = createCluster(ts, entry.getKey());\n c.move(ts);\n break;\n case OpCodes.ACTION_UP:\n if (clustersM.containsKey(entry.getKey())){\n physicsWorld.destroyParticlesInGroup(clustersM.remove(entry.getKey()).getGroup(), true);\n\n }\n break;\n default:\n break;\n }\n }\n\n\n\n /* This part handles the collision detection */\n\n if(physicsWorld.getParticleContactCount() > 0){\n\n\n ParticleContact[] particleContacts = physicsWorld.getParticleContacts();\n ParticleGroup[] groups = physicsWorld.getParticleGroupList();\n\n for(int i = 0; i < particleContacts.length; i++){\n if(particleContacts[i].flags == 0 )\n break;\n\n\n int indexA = particleContacts[i].indexA;\n int indexB = particleContacts[i].indexB;\n\n if(indexA == -1 || indexB == -1 )\n break;\n\n String idA = ( (String) groups[indexA].getUserData() );\n String idB = ( (String) groups[indexB].getUserData() );\n\n if(!idA.equals(idB)){\n Vec2 position = physicsWorld.getParticlePositionBuffer()[particleContacts[i].indexA];\n try{\n Client.INSTANCE.addPackage(new CollisionPackage(position, idA, idB));\n }catch(InterruptedException e){\n Client.INSTANCE.println(\"InterruptedException in collitionhandling: \");\n e.printStackTrace();\n }\n Client.INSTANCE.onColide();\n break;\n }\n\n /*\n * Resets the flag to hinder old collision to be re detected\n */\n particleContacts[i].flags = 0;\n\n }\n }\n\n /* Adds some friction to the clusters so they don't spin for ever. */\n Vec2[] velocities = physicsWorld.getParticleVelocityBuffer();\n for(int i = 0; i < physicsWorld.getParticleCount(); i++) {\n velocities[i].x += (velocities[i].x < 0.0f) ? 0.01f : - 0.01f;\n velocities[i].y += (velocities[i].y < 0.0f) ? 0.01f : - 0.01f;\n }\n\n TimeStep step = new TimeStep();\n step.dt = 0.016666666f; // add a zero\n step.velocityIterations = velIterations;\n step.positionIterations = posIterations;\n\n\n // Perform step, calculate elapsed time and divide by 1000 to get it\n // in seconds\n try{\n //mParticleSystem.solve(step);\n //mParticleSystem.updateContacts(false);\n physicsWorld.step(step.dt, step.velocityIterations, step.positionIterations);\n\n\n //physicsWorld.step(step.dt, step.velocityIterations, step.positionIterations);\n\n }catch(NullPointerException e){\n\n }\n\n // Wake up Renderer\n synchronized (Renderer.lock){\n Renderer.lock.notify();\n }\n\n long simTime = System.currentTimeMillis() - startTime;\n\n if (simTime < 16) {\n try {\n Thread.sleep(16 - simTime);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n }", "title": "" }, { "docid": "40748f6f85ac169347f21f559d4029fb", "score": "0.5903833", "text": "@Override\r\n\tpublic boolean canSpawn() {\n\r\n\t\treturn world.difficulty > 0 && world.b(boundingBox) && world.getCubes(this, boundingBox).isEmpty()\r\n\t\t\t\t&& !world.containsLiquid(boundingBox);// && this.a(i, j, k) >=\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 0.0F;\r\n\t}", "title": "" }, { "docid": "54f16f230e0333f40bdc101e48e71209", "score": "0.58631176", "text": "public void spawnParticle(EnumParticleTypes particleType, double x, double y, double z, double motX, double motY, double motZ) {\n\t}", "title": "" }, { "docid": "6d98ea3c3f1ed170efbc9043c0b95acb", "score": "0.5841897", "text": "public void onUpdate() {\n for(int i = -1; i <= 1; i++) {\n for(int k = -1; k <= 1; k++) {\n if (!this.worldObj.getChunkFromChunkCoords((MathHelper.floor_double(posX) >> 4) + i, (MathHelper.floor_double(posZ) >> 4) + k).isChunkLoaded) {\n return;\n }\n }\n }\n if(ticksFromLoad > 0) {\n ticksFromLoad--;\n lastTickPosX = posX;\n lastTickPosY = posY;\n lastTickPosZ = posZ;\n return;\n }\n\n if(!isPlaceholder && getBoundingBox() != null && isInBlock()) {\n label0:\n for(int i = -1; i < 2; i++) {\n for (int k = -1; k < 2; k++) {\n for (int j = -1; j < 50; j++) {\n if (BlockRailBase.func_150049_b_(worldObj, x() + i, y() + j, z() + k)) {\n List list2 = worldObj.getEntitiesWithinAABBExcludingEntity(this, this.getBoundingBox().copy().expand(0.5,0,0.5).addCoord(motionX,motionY,motionZ).addCoord(0,5D,0));\n for(Object entity : list2) {\n if(entity instanceof EntityPlayer && worldObj.isRemote) {\n ((Entity) entity).setPosition(((Entity) entity).posX + i, ((Entity) entity).posY + j, ((Entity) entity).posZ + k);\n } else if(!(entity instanceof EntityPlayer) && !worldObj.isRemote) {\n ((Entity) entity).setPosition(((Entity) entity).posX + i, ((Entity) entity).posY + j, ((Entity) entity).posZ + k);\n }\n }\n if(!worldObj.isRemote) this.setPosition(x() + i + 0.5, y() + j + 0.5, z() + k + 0.5);\n lastTickPosX = posX;\n lastTickPosY = posY;\n lastTickPosZ = posZ;\n break label0;\n }\n }\n }\n }\n }\n\n if(!worldObj.isRemote && posY < 1) setPosition(posX, 270, posZ);\n\n super.onUpdate();\n\n this.onCartUpdate();\n\n if (this.worldObj.isRemote)\n {\n this.updateSounds();\n }\n\n if (!isPlaceholder && getBoundingBox() != null) {\n double motX = posX - lastTickPosX;\n double motY = posY - lastTickPosY;\n double motZ = posZ - lastTickPosZ;\n\n List list2 = worldObj.getEntitiesWithinAABBExcludingEntity(this, this.getBoundingBox().copy().expand(0.5,0,0.5).addCoord(motX,motY,motZ).addCoord(0,5D,0));\n for(Object entity : list2) {\n if(entity instanceof EntityPlayer && worldObj.isRemote) {\n double[] move = new double[]{motX, motY, motZ};\n move = handleEntityCollision((Entity) entity, move[0], move[1], move[2]);\n ((Entity) entity).setPosition(((Entity) entity).posX + move[0], ((Entity) entity).posY, ((Entity) entity).posZ + move[2]);\n } else if(!(entity instanceof EntityPlayer) && !worldObj.isRemote) {\n double[] move = new double[]{motX, motY, motZ};\n move = handleEntityCollision((Entity) entity, move[0], move[1], move[2]);\n ((Entity) entity).setPosition(((Entity) entity).posX + move[0], ((Entity) entity).posY, ((Entity) entity).posZ + move[2]);\n }\n }\n }\n\n\n if(isCollidedForward && collidedHorizontallyTicks >= 60) {\n collidedHorizontallyTicks = 0;\n turnback();\n } else if(isCollidedForward) {\n collidedHorizontallyTicks++;\n } else if(!isCollidedForward) {\n collidedHorizontallyTicks = 0;\n }\n\n lastTickPosX = posX;\n lastTickPosY = posY;\n lastTickPosZ = posZ;\n }", "title": "" }, { "docid": "a2e594adb72e19f06a58857842eacd0a", "score": "0.5826005", "text": "private void particleCannon() {\n particles.add( new Particle( new Point( P_SIZE / 2, getHeight() / 2 ), .5, P_SIZE ) );\n particles.add( new Particle( new Point( P_SIZE, getHeight() / 2 ), .5, P_SIZE ) );\n }", "title": "" }, { "docid": "d11b8c1fd4b102fa05654cee0555fa57", "score": "0.58259326", "text": "@SideOnly(Side.CLIENT)\n public boolean getWorldHasVoidParticles()\n {\n return false;\n }", "title": "" }, { "docid": "ee63ecaf5393e147ed6b7d85418f72ef", "score": "0.5739475", "text": "protected void spawnHorseParticles(boolean p_110216_1_) {\n/* 1146 */ EnumParticleTypes enumparticletypes = p_110216_1_ ? EnumParticleTypes.HEART : EnumParticleTypes.SMOKE_NORMAL;\n/* */ \n/* 1148 */ for (int i = 0; i < 7; i++) {\n/* */ \n/* 1150 */ double d0 = this.rand.nextGaussian() * 0.02D;\n/* 1151 */ double d1 = this.rand.nextGaussian() * 0.02D;\n/* 1152 */ double d2 = this.rand.nextGaussian() * 0.02D;\n/* 1153 */ this.world.spawnParticle(enumparticletypes, this.posX + (this.rand.nextFloat() * this.width * 2.0F) - this.width, this.posY + 0.5D + (this.rand.nextFloat() * this.height), this.posZ + (this.rand.nextFloat() * this.width * 2.0F) - this.width, d0, d1, d2, new int[0]);\n/* */ } \n/* */ }", "title": "" }, { "docid": "e3c4ee3d4a28f87785381856202a83e9", "score": "0.56385344", "text": "private boolean runParticle(AirParticle p){\n for(int i = -2; i <= 2; i++){\r\n for(int j = -2; j <= 2; j++){\r\n \r\n //don't check corners\r\n if(i == -2 && j == -2){\r\n j++;\r\n }else if(i == -2 && j == 2){\r\n i = -1;\r\n j = -2;\r\n }else if(i == 2 && j == -2){\r\n j++;\r\n }else if(i == 2 && j == 2){\r\n break;\r\n }\r\n \r\n boolean zeroes = false;\r\n if(i == 0 && j == 0)\r\n zeroes = true;\r\n \r\n int x = (int)(p.x / metaCellSize) + i;\r\n int y = (int)(p.y / metaCellSize) + j;\r\n if(x >= 0 && x < Draw.width/metaCellSize && y >= 0 && y < Draw.height/metaCellSize)\r\n if(p.interact(metaArray[x + 2][y + 2], deltaTime(), zeroes))\r\n return true;\r\n \r\n }}\r\n \r\n \r\n \r\n return false;\r\n \r\n }", "title": "" }, { "docid": "f589dd3f03978a8f1d15ab8c12a63f67", "score": "0.5634134", "text": "@SideOnly(Side.CLIENT)\n\tprivate void doParticles(World world, int x, int y, int z) {\n\t\tthis.addParticle(world, x, y, z, primaryAnglePhi, primaryAngleTheta, true, 0);\n\n\t\tprimaryAngleTheta += primaryAngleThetaVel;\n\t\tprimaryAnglePhi += primaryAnglePhiVel;\n\n\t\tif (rand.nextInt(200) == 0) {\n\t\t\tprimaryAngleThetaVel = ReikaRandomHelper.getRandomPlusMinus(0, 3);//ReikaRandomHelper.getRandomPlusMinus(0, 90);\n\t\t\tprimaryAnglePhiVel = ReikaRandomHelper.getRandomPlusMinus(0, 3);//rand.nextDouble()*360;\n\t\t}\n\n\t\tfor (int i = 0; i < MAX_BRANCHES; i++) {\n\t\t\tif (secondaryLife[i] > 0) {\n\t\t\t\tsecondaryLife[i]--;\n\n\t\t\t\t//if (secondaryLife[i]%2 == 0)\n\t\t\t\tthis.addParticle(world, x, y, z, secondaryAnglePhi[i], secondaryAngleTheta[i], false, secondaryLife[i]);\n\n\t\t\t\tsecondaryAngleTheta[i] += secondaryAngleThetaVel[i];\n\t\t\t\tsecondaryAnglePhi[i] += secondaryAnglePhiVel[i];\n\n\t\t\t\tif (rand.nextInt(20) == 0) {\n\t\t\t\t\tthis.retargetSecondary(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (rand.nextInt(40) == 0) {\n\t\t\t\tsecondaryLife[i] = 30+rand.nextInt(270);\n\t\t\t\tthis.retargetSecondary(i);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "3b46c0f001915b516f0378bc673f641a", "score": "0.56304246", "text": "public void add_particles() {\n\t\tframe.clearDrawables(); //clear old particles \n\t\tfor (Particle p : bodies) {\n\t\t\tp.Step(frame, true, false); //step them once (but do not move - 3rd false means don't move them) \n\t\t\tp.setXY(p.x_pos, p.y_pos); //set XY pos \n\t\t\tframe.addDrawable(p); //add to screen \n\t\t}\n\t\tframe.repaint();\n\t}", "title": "" }, { "docid": "38ef1b701e1d5c6d779bd7e2cd36a25d", "score": "0.5626896", "text": "public void addBlockHitEffects(BlockPos pos, Direction side) {\n BlockState blockstate = this.world.getBlockState(pos);\n if (blockstate.getRenderType() != BlockRenderType.INVISIBLE) {\n int i = pos.getX();\n int j = pos.getY();\n int k = pos.getZ();\n float f = 0.1F;\n AxisAlignedBB axisalignedbb = blockstate.getShape(this.world, pos).getBoundingBox();\n double d0 = (double)i + this.rand.nextDouble() * (axisalignedbb.maxX - axisalignedbb.minX - (double)0.2F) + (double)0.1F + axisalignedbb.minX;\n double d1 = (double)j + this.rand.nextDouble() * (axisalignedbb.maxY - axisalignedbb.minY - (double)0.2F) + (double)0.1F + axisalignedbb.minY;\n double d2 = (double)k + this.rand.nextDouble() * (axisalignedbb.maxZ - axisalignedbb.minZ - (double)0.2F) + (double)0.1F + axisalignedbb.minZ;\n if (side == Direction.DOWN) {\n d1 = (double)j + axisalignedbb.minY - (double)0.1F;\n }\n\n if (side == Direction.UP) {\n d1 = (double)j + axisalignedbb.maxY + (double)0.1F;\n }\n\n if (side == Direction.NORTH) {\n d2 = (double)k + axisalignedbb.minZ - (double)0.1F;\n }\n\n if (side == Direction.SOUTH) {\n d2 = (double)k + axisalignedbb.maxZ + (double)0.1F;\n }\n\n if (side == Direction.WEST) {\n d0 = (double)i + axisalignedbb.minX - (double)0.1F;\n }\n\n if (side == Direction.EAST) {\n d0 = (double)i + axisalignedbb.maxX + (double)0.1F;\n }\n\n this.addEffect((new DiggingParticle(this.world, d0, d1, d2, 0.0D, 0.0D, 0.0D, blockstate)).setBlockPos(pos).multiplyVelocity(0.2F).multiplyParticleScaleBy(0.6F));\n }\n }", "title": "" }, { "docid": "52aeb825578da09bca9b790af5ed8e63", "score": "0.55788636", "text": "@SideOnly(Side.CLIENT)\r\n\tpublic static void spawnAttackParticleAtEntity(Entity ent, double par1, double par2, double par3, byte type)\r\n\t{\r\n\t\t//null check\r\n\t\tif (ent == null) return;\r\n\t\t\r\n\t\tWorld world = Minecraft.getMinecraft().world;\r\n\t\tEntityLivingBase host = null;\r\n\t\t\r\n\t\t//get target position\r\n\t\tdouble ran1 = 0D;\r\n\t\tdouble ran2 = 0D;\r\n\t\tdouble ran3 = 0D;\r\n\t\tdouble ran4 = 0D;\r\n\t\tfloat[] newPos1;\r\n\t\tfloat[] newPos2;\r\n\t\tfloat[] newPos3;\r\n\t\tfloat degYaw = 0F;\r\n\t\t\r\n\t\t//spawn particle\r\n\t\tswitch (type)\r\n\t\t{\r\n\t\tcase 1:\t\t//氣彈特效 par1:scale par2:type\r\n\t\t{\r\n\t\t\tParticleChi fxChi1 = new ParticleChi(world, ent, (float)par1, (int)par2);\r\n \tMinecraft.getMinecraft().effectRenderer.addEffect(fxChi1);\r\n\t\t}\r\n\t\tbreak;\r\n\t\tcase 2:\t\t//隊伍圈選特效 par1:scale par2:type\r\n\t\t{\r\n\t\t\tParticleTeam fxTeam = new ParticleTeam(world, ent, (float)par1, (int)par2);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(fxTeam);\r\n\t\t}\r\n\t\tbreak;\r\n\t\tcase 3:\r\n\t\t{\r\n\t\t\tParticleLightning fxLightning = new ParticleLightning(world, ent, (float)par1, (int)par2);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(fxLightning);\r\n\t\t}\r\n\t\tbreak;\r\n\t\tcase 4:\t\t//sticky lightning\r\n\t\t{\r\n\t\t\tParticleStickyLightning light1 = new ParticleStickyLightning(world, ent, (float)par1, (int)par2, (int)par3);\r\n \tMinecraft.getMinecraft().effectRenderer.addEffect(light1);\r\n \tParticleStickyLightning light2 = new ParticleStickyLightning(world, ent, (float)par1, (int)par2, (int)par3);\r\n \tMinecraft.getMinecraft().effectRenderer.addEffect(light2);\r\n \tParticleStickyLightning light3 = new ParticleStickyLightning(world, ent, (float)par1, (int)par2, (int)par3);\r\n \tMinecraft.getMinecraft().effectRenderer.addEffect(light3);\r\n \tParticleStickyLightning light4 = new ParticleStickyLightning(world, ent, (float)par1, (int)par2, (int)par3);\r\n \tMinecraft.getMinecraft().effectRenderer.addEffect(light4);\r\n\t\t}\r\n\t\tbreak;\r\n\t\tcase 5: \t//custom largesmoke: par1:wide, par2:length, par3:height, EntityLivingBase ONLY\r\n\t\t{\r\n\t\t\t//計算煙霧位置\r\n\t\t\tdegYaw = (((EntityLivingBase)ent).renderYawOffset % 360) * Values.N.DIV_PI_180;\r\n\t\t\tnewPos1 = CalcHelper.rotateXZByAxis((float)par2, (float)par1, degYaw, 1F);\r\n\t\t\tnewPos2 = CalcHelper.rotateXZByAxis((float)par2, (float)-par1, degYaw, 1F);\r\n\t\t\tnewPos3 = CalcHelper.rotateXZByAxis(0.25F, 0F, degYaw, 1F);\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < 24; i++)\r\n\t\t\t{\r\n\t\t\t\tran1 = (rand.nextFloat() - 0.5F) * 2F;\r\n\t\t\t\tran2 = (rand.nextFloat() - 0.5F) * 2F;\r\n\t\t\t\tran3 = (rand.nextFloat() - 0.5F) * 2F;\r\n\t\t\t\tran4 = rand.nextFloat() * 2F;\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.SMOKE_LARGE, ent.posX+newPos1[1]+ran1, ent.posY+par3+ran2, ent.posZ+newPos1[0]+ran3, newPos3[1]*ran4, 0.05D*ran4, newPos3[0]*ran4, new int[0]);\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.SMOKE_LARGE, ent.posX+newPos2[1]+ran1, ent.posY+par3+ran3, ent.posZ+newPos2[0]+ran2, newPos3[1]*ran4, 0.05D*ran4, newPos3[0]*ran4, new int[0]);\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.SMOKE_LARGE, ent.posX+newPos1[1]+ran2, ent.posY+par3+ran1, ent.posZ+newPos1[0]+ran3, newPos3[1]*ran4, 0.05D*ran4, newPos3[0]*ran4, new int[0]);\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.SMOKE_LARGE, ent.posX+newPos2[1]+ran2, ent.posY+par3+ran3, ent.posZ+newPos2[0]+ran1, newPos3[1]*ran4, 0.05D*ran4, newPos3[0]*ran4, new int[0]);\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.SMOKE_LARGE, ent.posX+newPos1[1]+ran3, ent.posY+par3+ran1, ent.posZ+newPos1[0]+ran2, newPos3[1]*ran4, 0.05D*ran4, newPos3[0]*ran4, new int[0]);\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.SMOKE_LARGE, ent.posX+newPos2[1]+ran3, ent.posY+par3+ran2, ent.posZ+newPos2[0]+ran1, newPos3[1]*ran4, 0.05D*ran4, newPos3[0]*ran4, new int[0]);\r\n\t\t\t}\r\n\t\t}\r\n\t\tbreak;\r\n\t\tcase 6:\t\t//lightning sphere + lightning radiation\r\n\t\t{\r\n\t\t\t//in\r\n\t\t\tfor (int i = 0; i < 4; i++)\r\n\t\t\t{\r\n\t\t\t\tParticleStickyLightning light11 = new ParticleStickyLightning(world, ent, (float)par1, (int)par2, 2);\r\n\t \tMinecraft.getMinecraft().effectRenderer.addEffect(light11);\r\n\t\t\t}\r\n\t\t\t//out\r\n\t\t\tfor (int i = 0; i < 4; i++)\r\n\t\t\t{\r\n\t\t\t\tParticleStickyLightning light21 = new ParticleStickyLightning(world, ent, (float)par1, (int)par2, 3);\r\n\t \tMinecraft.getMinecraft().effectRenderer.addEffect(light21);\r\n\t\t\t}\r\n\t\t}\r\n\t\tbreak;\r\n\t\tcase 7:\t\t//vibrate cube\r\n\t\t{\r\n\t\t\t//host check\r\n\t\t\tif (ent instanceof EntityLivingBase)\r\n\t\t\t{\r\n\t\t\t\thost = (EntityLivingBase) ent;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//in\r\n\t\t\tParticleCube cube1 = new ParticleCube(world, host, par1, par2, par3, 1.5F, 0);\r\n \tMinecraft.getMinecraft().effectRenderer.addEffect(cube1);\r\n \t\r\n \t//out\r\n\t\t\tfor (int i = 0; i < 6; i++)\r\n\t\t\t{\r\n\t\t\t\tParticleStickyLightning light21 = new ParticleStickyLightning(world, ent, (float)par1, 40, 3);\r\n\t \tMinecraft.getMinecraft().effectRenderer.addEffect(light21);\r\n\t\t\t}\r\n\t\t}\r\n\t\tbreak;\r\n\t\tcase 8:\t\t//守衛標示線: block類\r\n\t\t{\r\n\t\t\t//host check\r\n\t\t\tif (ent instanceof EntityLivingBase)\r\n\t\t\t{\r\n\t\t\t\thost = (EntityLivingBase) ent;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tParticleLaserNoTexture laser1 = new ParticleLaserNoTexture(world, host, par1, par2, par3, 0.1F, 3);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(laser1);\r\n\t\t}\r\n\t\tbreak;\r\n\t\tcase 9:\t\t//small sticky lightning\r\n\t\t{\r\n\t\t\tParticleStickyLightning light5 = new ParticleStickyLightning(world, ent, (float)par1, (int)par2, (int)par3);\r\n \tMinecraft.getMinecraft().effectRenderer.addEffect(light5);\r\n \tParticleStickyLightning light6 = new ParticleStickyLightning(world, ent, (float)par1, (int)par2, (int)par3);\r\n \tMinecraft.getMinecraft().effectRenderer.addEffect(light6);\r\n\t\t}\r\n\t\tbreak;\r\n\t\tcase 10: \t//double largesmoke for mounts: par1: cannon width, par2: cannon height, par3: cannon x pos\r\n\t\t{\r\n\t\t\t//煙霧出現位置: 依照身體旋轉\r\n\t\t\tnewPos1 = CalcHelper.rotateXZByAxis((float)par3, (float)par1, (float)(((EntityLivingBase)ent).renderYawOffset * Values.N.DIV_PI_180), 1F);\r\n\t\t\tnewPos2 = CalcHelper.rotateXZByAxis((float)par3, (float)-par1, (float)(((EntityLivingBase)ent).renderYawOffset * Values.N.DIV_PI_180), 1F);\r\n\t\t\t//煙霧噴射方向: 依照頭部旋轉\r\n\t\t\tnewPos3 = CalcHelper.rotateXZByAxis(1.5F, 0F, (float)(((EntityLivingBase)ent).rotationYawHead * Values.N.DIV_PI_180), 1F);\r\n\t\t\t\r\n\t\t\t//實際煙霧位置: 身體旋轉xz位移(達到砲台底座位置)+頭部旋轉xz位移(達到砲管旋轉位置)\r\n\t\t\tfor (int i = 0; i < 24; i++)\r\n\t\t\t{\r\n\t\t\t\tran1 = rand.nextFloat() - 0.5F;\r\n\t\t\t\tran2 = rand.nextFloat();\r\n\t\t\t\tran3 = rand.nextFloat();\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.SMOKE_LARGE, ent.posX-0.5D+0.05D*i+newPos1[1]+newPos3[1], ent.posY+par2+0.6D+ran1, ent.posZ-0.5D+0.05D*i+newPos1[0]+newPos3[0], newPos3[1]*0.5D*ran2, 0.05D*ran2, newPos3[0]*0.5D*ran2, new int[0]);\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.SMOKE_LARGE, ent.posX-0.5D+0.05D*i+newPos2[1]+newPos3[1], ent.posY+par2+0.6D+ran1, ent.posZ-0.5D+0.05D*i+newPos2[0]+newPos3[0], newPos3[1]*0.5D*ran3, 0.05D*ran3, newPos3[0]*0.5D*ran3, new int[0]);\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.SMOKE_LARGE, ent.posX-0.5D+0.05D*i+newPos1[1]+newPos3[1], ent.posY+par2+0.9D+ran1, ent.posZ-0.5D+0.05D*i+newPos1[0]+newPos3[0], newPos3[1]*0.5D*ran3, 0.05D*ran3, newPos3[0]*0.5D*ran3, new int[0]);\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.SMOKE_LARGE, ent.posX-0.5D+0.05D*i+newPos2[1]+newPos3[1], ent.posY+par2+0.9D+ran1, ent.posZ-0.5D+0.05D*i+newPos2[0]+newPos3[0], newPos3[1]*0.5D*ran2, 0.05D*ran2, newPos3[0]*0.5D*ran2, new int[0]);\r\n\t\t\t}\r\n\t\t}\r\n\t\tbreak;\r\n\t\tcase 11:\t//color beam INWARD\r\n\t\t{\r\n\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t ent, type, scale, radius, beam speed, beam thick, 4~7:RGBA, height\r\n\t\t\tParticleSphereLight light1 = new ParticleSphereLight(ent, 0, ent.height * 1.2F, ent.height * 0.75F, 0.8F, 0.03F, (float)par1, (float)par2, (float)par3, 1F, ent.height * 0.4F);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(light1);\r\n\t\t}\r\n\t\tbreak;\r\n\t\tcase 12:\t//color gradient OUTWARD\r\n\t\t{\r\n\t\t\tif (ent instanceof IShipEmotion) ((IShipEmotion) ent).setAttackTick(100);\r\n\t\t\t//\t\t\t\t\t\t\t\t\t\t\t ent, type, scale, fade, speed, space, 4~7:RGBA, height\r\n\t\t\tParticleGradient grad1 = new ParticleGradient(ent, 1, ent.height * 1.2F, 0.85F, 0.08F, 8F, (float)par1, (float)par2, (float)par3, 0.7F);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(grad1);\r\n\t\t}\r\n\t\tbreak;\r\n\t\tcase 13:\t//abyssal goddess particle\r\n\t\t{\r\n\t\t\t//\t\t\t\t\t\t\t\t\t\t\t ent, type, scale, rad, NO_USE, NO_USE, 4~7:RGBA, height\r\n\t\t\tParticleSparkle spark1 = new ParticleSparkle(ent, 8, 0.1F, ent.width * 2F, 0F, 0F, (float)par1, (float)par2, (float)par3, 1F, ent.height * 0.4F);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(spark1);\r\n\t\t}\r\n\t\tbreak;\r\n\t\tcase 14:\t//double color gradient OUTWARD\r\n\t\t{\r\n\t\t\t//\t\t\t\t\t\t\t\t\t\t\t ent, type, scale, fade, speed, space, 4~7:RGBA, height\r\n\t\t\tParticleGradient grad1 = new ParticleGradient(ent, 2, ent.height * 1.5F, 0.7F, 0.4F, 0F, (float)par1, (float)par2, (float)par3, 0.8F, 40F, 1.6F);\r\n\t\t\tParticleGradient grad2 = new ParticleGradient(ent, 2, ent.height * 1.3F, 0.7F, 0.3F, 0F, 1F, 1F, 1F, 1F, 40F, 1.5F);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(grad1);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(grad2);\r\n\t\t}\r\n\t\tbreak;\r\n\t\tcase 15:\t//color sword sweep vertical\r\n\t\t{\r\n\t\t\tif (ent instanceof IShipEmotion) ((IShipEmotion) ent).setAttackTick(50);\r\n\t\t\t//\t\t\t\t\t\t\t\t\t ent, type, scale1, scale2, scale3, fade, age, RGBA\r\n\t\t\tParticleSweep swp1 = new ParticleSweep(ent, 0, ent.height, ent.height * 5.6F, ent.height * 2F, 0.95F, 4F, (float)par1, (float)par2, (float)par3, 1F);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(swp1);\r\n\t\t}\r\n\t\tbreak;\r\n\t\tcase 16:\t//color sword sweep horizontal\r\n\t\t{\r\n\t\t\tif (ent instanceof IShipEmotion) ((IShipEmotion) ent).setAttackTick(50);\r\n\t\t\t//\t\t\t\t\t\t\t\t\t ent, type, scale1, scale2, scale3, fade, age, RGBA\r\n\t\t\tParticleSweep swp1 = new ParticleSweep(ent, 0, ent.height * 0.1F, ent.height * 5.6F, ent.height * 6F, 0.95F, 4F, (float)par1, (float)par2, (float)par3, 1F);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(swp1);\r\n\t\t}\r\n\t\tbreak;\r\n\t\tcase 17:\t//eye sparkle\r\n\t\t{\r\n\t\t\t//\t\t\t\t\t\t\t\t\t\t\t ent, type, height, eye x, eye z, 4~7:RGBA, height\r\n\t\t\tParticleSparkle spark1 = new ParticleSparkle(ent, 1, (float)par1, (float)par2, (float)par3, 0F, 1F, 1F, 1F);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(spark1);\r\n\t\t}\r\n\t\tbreak;\r\n\t\tcase 18:\t//raytrace target indicator, parms: target entity, type, hit height, hit side, NO_USE\r\n\t\t{\r\n\t\t\tParticleDebugPlane plane = new ParticleDebugPlane(ent, 0, (float)par1, (float)par2, (float)par3);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(plane);\r\n\t\t}\r\n\t\tbreak;\r\n\t\tcase 19:\t//raytrace body cube indicator, parms: target entity, type, cube top, cube bottom, bodyID\r\n\t\t{\r\n\t\t\tif (ent instanceof BasicEntityShip)\r\n\t\t\t{\r\n\t\t\t\tParticleDebugPlane plane = new ParticleDebugPlane(ent, 1, (float)par1, (float)par2, (float)par3);\r\n\t\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(plane);\r\n\t\t\t}\r\n\t\t}\r\n\t\tbreak;\r\n\t\tcase 20:\t//raytrace body cube indicator, parms: target entity, type, cube top, cube bottom, bodyID\r\n\t\t{\r\n\t\t\tif (ent instanceof BasicEntityShip)\r\n\t\t\t{\r\n\t\t\t\tParticleDebugPlane plane = new ParticleDebugPlane(ent, 2, (float)par1, (float)par2, (float)par3);\r\n\t\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(plane);\r\n\t\t\t}\r\n\t\t}\r\n\t\tbreak;\r\n\t\tcase 21:\t//fill fluid particle\r\n\t\t{\r\n\t\t\t//\t\t\t\t\t\t\t\t\t\t\t ent, type, scale, rad, NO_USE, NO_USE, 4~7:RGBA, height\r\n\t\t\tParticleSparkle spark1 = new ParticleSparkle(ent, 0, 0.025F, ent.width * 1.5F, 0F, 0F, (float)par1, (float)par2, (float)par3, 1F, ent.height * 0.4F);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(spark1);\r\n\t\t}\r\n\t\tbreak;\r\n\t\tcase 22:\t//craning particle\r\n\t\t{\r\n\t\t\t//\t\t\t\t\t\t\t\t\t\t\t ent, type, scale, rad, NO_USE, NO_USE, 4~7:RGBA, height\r\n\t\t\tParticleSparkle spark1 = new ParticleSparkle(ent, 3, 0.05F, ent.width * 1F, 0F, 0F, (float)par1, (float)par2, (float)par3, 1F, ent.height * 0.4F);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(spark1);\r\n\t\t}\r\n\t\tbreak;\r\n\t\tcase 23:\t//healing particle\r\n\t\t{\r\n\t\t\t//\t\t\t\t\t\t\t\t\t\t\t ent, type, scale, rad, NO_USE, NO_USE, 4~7:RGBA, height\r\n\t\t\tParticleSparkle spark1 = new ParticleSparkle(ent, 2, 0.075F, ent.width * 1.5F, 0F, 0F, (float)par1, (float)par2, (float)par3, 1F, ent.height * 0.4F);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(spark1);\r\n\t\t}\r\n\t\tbreak;\r\n\t\tcase 24:\t//color beam INWARD custom\r\n\t\t{\r\n\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t ent, type, life, scale\r\n\t\t\tParticleSphereLight light1 = new ParticleSphereLight(ent, (int)par1, (float)par2, (float)par3);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(light1);\r\n\t\t}\r\n\t\tbreak;\r\n\t\tcase 36:\t//emotion\r\n\t\t{\r\n\t\t\tParticleEmotion partEmo = new ParticleEmotion(world, ent,\r\n\t\t\t\t\tent.posX, ent.posY, ent.posZ, (float)par1, (int)par2, (int)par3);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(partEmo);\r\n\t\t}\r\n\t\tbreak;\r\n\t\tdefault:\r\n\t\tbreak;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c7b81fc7558324213b07d63843d185d2", "score": "0.55765694", "text": "@SideOnly(Side.CLIENT)\r\n\tpublic static void spawnAttackParticleAtEntity(Entity host, Entity target, double par1, double par2, double par3, byte type, boolean setAtkTime)\r\n\t{\r\n\t\t//null check\r\n\t\tif (host == null || target == null) return;\r\n\t\t\t\t\r\n\t\tWorld world = Minecraft.getMinecraft().world;\r\n\t\tEntityLivingBase host2 = null;\r\n\t\t\r\n\t\t//set attack time, EntityLivingBase only\r\n\t\tif (setAtkTime && host instanceof IShipEmotion)\r\n\t\t{\r\n\t\t\t((IShipEmotion) host).setAttackTick(50);\r\n\t\t}\r\n\t\t\r\n\t\t//get target position\r\n\t\tdouble ran1 = 0D;\r\n\t\tdouble ran2 = 0D;\r\n\t\tdouble ran3 = 0D;\r\n\t\tfloat[] newPos1;\r\n\t\tfloat[] newPos2;\r\n\t\tfloat degYaw = 0F;\r\n\t\t\r\n\t\t//spawn particle\r\n\t\tswitch (type)\r\n\t\t{\r\n\t\tcase 0:\t\t//雙光束砲\r\n\t\t{\r\n\t\t\t//host check\r\n\t\t\tif (host instanceof EntityLivingBase)\r\n\t\t\t{\r\n\t\t\t\thost2 = (EntityLivingBase) host;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tParticleLaserNoTexture laser1 = new ParticleLaserNoTexture(world, host2, target, 0.9F, par1, 0F, 0.05F, 0);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(laser1);\r\n\t\t\t\r\n\t\t\tParticleLaserNoTexture laser2 = new ParticleLaserNoTexture(world, host2, target, -0.9F, par1, 0F, 0.05F, 0);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(laser2);\r\n\t\t}\r\n\t\tbreak;\r\n\t\tcase 1:\t\t//yamato cannon beam\r\n\t\t{\r\n\t\t\t//host check\r\n\t\t\tif (host instanceof EntityLivingBase)\r\n\t\t\t{\r\n\t\t\t\thost2 = (EntityLivingBase) host;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//beam head\r\n\t\t\tParticleCube cube1 = new ParticleCube(world, host2, par1, par2, par3, 2.5F, 1);\r\n \tMinecraft.getMinecraft().effectRenderer.addEffect(cube1);\r\n \t\r\n \t//beam body\r\n\t\t\tParticleLaserNoTexture laser3 = new ParticleLaserNoTexture(world, host2, target, par1, par2, par3, 2F, 1);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(laser3);\r\n\t\t}\r\n\t\tbreak;\r\n\t\tcase 2:\t\t//yamato cannon beam for boss\r\n\t\t{\r\n\t\t\t//host check\r\n\t\t\tif (host instanceof EntityLivingBase)\r\n\t\t\t{\r\n\t\t\t\thost2 = (EntityLivingBase) host;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//beam head\r\n\t\t\tParticleCube cube2 = new ParticleCube(world, host2, par1, par2, par3, 5F, 1);\r\n \tMinecraft.getMinecraft().effectRenderer.addEffect(cube2);\r\n \t\r\n \t//beam body\r\n\t\t\tParticleLaserNoTexture laser4 = new ParticleLaserNoTexture(world, host2, target, par1, par2, par3, 4F, 1);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(laser4);\r\n\t\t}\r\n\t\tbreak;\r\n\t\tcase 3:\t\t//守衛標示線: entity類\r\n\t\t{\r\n\t\t\t//host check\r\n\t\t\tif (host instanceof EntityLivingBase)\r\n\t\t\t{\r\n\t\t\t\thost2 = (EntityLivingBase) host;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tParticleLaserNoTexture laser5 = new ParticleLaserNoTexture(world, host2, target, 0D, 0D, 0D, 0.1F, 2);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(laser5);\r\n\t\t}\r\n\t\tbreak;\r\n\t\tcase 4:\t\t//補給標示線\r\n\t\t{\r\n\t\t\t//host check\r\n\t\t\tif (host instanceof EntityLivingBase)\r\n\t\t\t{\r\n\t\t\t\thost2 = (EntityLivingBase) host;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tParticleLaserNoTexture laser6 = new ParticleLaserNoTexture(world, host2, target, 0D, 0D, 0D, 0.1F, 4);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(laser6);\r\n\t\t}\r\n\t\tbreak;\r\n\t\tcase 5:\t\t//位置標示線\r\n\t\t{\r\n\t\t\t//host check\r\n\t\t\tif (host instanceof EntityLivingBase)\r\n\t\t\t{\r\n\t\t\t\thost2 = (EntityLivingBase) host;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tParticleLaserNoTexture laser = new ParticleLaserNoTexture(world, host2, target, 0D, 0D, 0D, 0.1F, 5);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(laser);\r\n\t\t}\r\n\t\tbreak;\r\n\t\tcase 6:\t\t//紫色可調粗細光束\r\n\t\t{\r\n\t\t\t//host check\r\n\t\t\tif (host instanceof EntityLivingBase)\r\n\t\t\t{\r\n\t\t\t\thost2 = (EntityLivingBase) host;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn;\r\n\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 height, scale out, scale in, NO_USE, type\r\n\t\t\tParticleLaserNoTexture laser = new ParticleLaserNoTexture(world, host2, target, par1, par2, par3, 0F, 6);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(laser);\r\n\t\t}\r\n\t\tbreak;\r\n\t\tdefault:\r\n\t\tbreak;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "338207d303041e8bad43865fafccce80", "score": "0.5549653", "text": "private void spawnLamps() {\n GridPoint2[] lampPositions = new GridPoint2[]{\n new GridPoint2(12, 59),\n new GridPoint2(28, 45), new GridPoint2(31, 38),\n new GridPoint2(30, 27), new GridPoint2(40, 21),\n new GridPoint2(50, 27), new GridPoint2(59, 31)\n };\n GridPoint2[] vinedLampPositions = new GridPoint2[]{\n new GridPoint2(20, 53), new GridPoint2(58, 44),\n new GridPoint2(49, 54), new GridPoint2(59, 60)\n };\n // Spawning in regular lamps\n for (GridPoint2 point: lampPositions) {\n Entity lamp = ObstacleFactory.createLamp(0);\n spawnEntityAt(lamp, point, true, false);\n }\n // Spawning in vined lamps\n for (GridPoint2 point: vinedLampPositions) {\n Entity lamp = ObstacleFactory.createLamp(1);\n spawnEntityAt(lamp, point, true, false);\n }\n }", "title": "" }, { "docid": "2d071579bccef6816a86b04fdf599dc8", "score": "0.5533878", "text": "private void update() {\n\t\tlong time = System.nanoTime();\n\t\tdouble dt = (time - myTime)/1000000; //the actual dt i should be using\n\t\t\n\t\tthis.myTime = time;\n\t\t\n\t\t//lag handling TO?DO\n\t\tdouble lagfixeddt = 1/60d; //seems to work at this point, as its always the same\n\t\tfps = dt;\n\t\t\n\t\tif (hitObjCounter > 0) { //just hit something\n\t\t\thitObjCounter -= lagfixeddt;\n\t\t\t//animate just the particles because visuals are cool\n\t\t\tLinkedList<Particle> all = new LinkedList<Particle>(Particle.ALL_THIS);\n\t\t\tfor (GameObject obj: all) {\n\t\t\t\tobj.update(lagfixeddt);\n\t\t\t}\n\t\t\tgrid.update(lagfixeddt);\n\t\t\t\n\t\t\treturn; //because we don't want anything else to move\n\t\t\t\n\t\t} else if (respawnCounter > 0) {\n\t\t\trespawnCounter -= lagfixeddt;\n\t\t\t\n\t\t\tif (killObj != null) { //first time in respawn, \n\t\t\t\tkillObj = null; //so it finally goes away\n\t\t\t\t\n\t\t\t\tParticle.ALL_THIS.clear(); //no more particles please\n\t\t\t\tEngine.killAll(null, false, false); //kill everything for real this time\n\t\t\t\t\n\t\t\t\tEngine.spawner.lostLife();\n\t\t\t\tEngine.gameState.lostLife();\n\t\t\t\t\n\t\t\t\tgrid.resetAll(); //reset grid so its easier\n\t\t\t\t\n\t\t\t\tEngine.player.x = 0;\n\t\t\t\tEngine.player.y = 0;\n\t\t\t\tEngine.player.dx = 0;\n\t\t\t\tEngine.player.dy = 0;\n\t\t\t\tEngine.myCamera.x = 0;\n\t\t\t\tEngine.myCamera.y = 0; //move camera and player to center\n\t\t\t\t\n\t\t\t\t@SuppressWarnings(\"unused\")\n\t\t\t\tTextPopup t = new TextPopup(WHITE, \"Ready\", 0.1, -0.6, 1);\n\t\t\t\t@SuppressWarnings(\"unused\")\n\t\t\t\tTextPopup t2 = new TextPopup(WHITE, \"Next Powerup At: \" + Engine.spawner.getNextPowerup(), 0.1, -3, -2);\n\t\t\t}\n\t\t\t\n\t\t\treturn; //nothing moves still\n\t\t}\n\t\t\n\t\t\n\t\tif (isPaused) {\n\t\t\t//no updates\n\t\t} else {\n\t\t\tspawner.update(lagfixeddt); //needs to spawn objects before objects are updated (because they spawn in the middle)\n\t\t\t\n\t\t\t// update all objects\n\t\t\tList<GameObject> objects = new ArrayList<GameObject>(GameObject.ALL_OBJECTS);\n\t\t\tfor (GameObject g: objects) {\n\t\t\t\tg.update(lagfixeddt);\n\t\t\t}\n\n\t\t\tgameState.update(lagfixeddt); //to count down the powerups timers\n\t\t}\n\t}", "title": "" }, { "docid": "f2909ffd5a3ca276ed14854c090675eb", "score": "0.5529908", "text": "public void tick() {\n super.tick();\n if (this.delayBeforeCanPickup > 0) {\n --this.delayBeforeCanPickup;\n }\n\n this.prevPosX = this.getPosX();\n this.prevPosY = this.getPosY();\n this.prevPosZ = this.getPosZ();\n if (this.areEyesInFluid(FluidTags.WATER)) {\n this.applyFloatMotion();\n } else if (!this.hasNoGravity()) {\n this.setMotion(this.getMotion().add(0.0D, -0.03D, 0.0D));\n }\n\n if (this.world.getFluidState(this.getPosition()).isTagged(FluidTags.LAVA)) {\n this.setMotion((double)((this.rand.nextFloat() - this.rand.nextFloat()) * 0.2F), (double)0.2F, (double)((this.rand.nextFloat() - this.rand.nextFloat()) * 0.2F));\n this.playSound(SoundEvents.ENTITY_GENERIC_BURN, 0.4F, 2.0F + this.rand.nextFloat() * 0.4F);\n }\n\n if (!this.world.hasNoCollisions(this.getBoundingBox())) {\n this.pushOutOfBlocks(this.getPosX(), (this.getBoundingBox().minY + this.getBoundingBox().maxY) / 2.0D, this.getPosZ());\n }\n\n double d0 = 8.0D;\n if (this.xpTargetColor < this.xpColor - 20 + this.getEntityId() % 100) {\n if (this.closestPlayer == null || this.closestPlayer.getDistanceSq(this) > 64.0D) {\n this.closestPlayer = this.world.getClosestPlayer(this, 8.0D);\n }\n\n this.xpTargetColor = this.xpColor;\n }\n\n if (this.closestPlayer != null && this.closestPlayer.isSpectator()) {\n this.closestPlayer = null;\n }\n\n if (this.closestPlayer != null) {\n Vector3d vector3d = new Vector3d(this.closestPlayer.getPosX() - this.getPosX(), this.closestPlayer.getPosY() + (double)this.closestPlayer.getEyeHeight() / 2.0D - this.getPosY(), this.closestPlayer.getPosZ() - this.getPosZ());\n double d1 = vector3d.lengthSquared();\n if (d1 < 64.0D) {\n double d2 = 1.0D - Math.sqrt(d1) / 8.0D;\n this.setMotion(this.getMotion().add(vector3d.normalize().scale(d2 * d2 * 0.1D)));\n }\n }\n\n this.move(MoverType.SELF, this.getMotion());\n float f = 0.98F;\n if (this.onGround) {\n BlockPos pos =new BlockPos(this.getPosX(), this.getPosY() - 1.0D, this.getPosZ());\n f = this.world.getBlockState(pos).getSlipperiness(this.world, pos, this) * 0.98F;\n }\n\n this.setMotion(this.getMotion().mul((double)f, 0.98D, (double)f));\n if (this.onGround) {\n this.setMotion(this.getMotion().mul(1.0D, -0.9D, 1.0D));\n }\n\n ++this.xpColor;\n ++this.xpOrbAge;\n if (this.xpOrbAge >= 6000) {\n this.remove();\n }\n\n }", "title": "" }, { "docid": "a9125f03c1d2283e83af90cdcdee155d", "score": "0.548973", "text": "void createFork() {\n for (int k = 0; k < fork; k++) {\n int random_i = floor(random(1, cols - 1));\n int random_j = floor(random(1, rows - 1));\n int randomIndex = findIndex(random_i, random_j);\n ArrayList<Integer> removableWalls = checkRemove(randomIndex);\n if (removableWalls.size() > 0) {\n int wallToRemove = removableWalls.get((int) random(0, removableWalls.size()));\n grid.get(randomIndex).walls[wallToRemove] = false;\n switch (wallToRemove) {\n case 0:\n grid.get(findIndex(random_i, random_j - 1)).walls[2] = false;\n break;\n case 1:\n grid.get(findIndex(random_i + 1, random_j)).walls[3] = false;\n break;\n case 2:\n grid.get(findIndex(random_i, random_j + 1)).walls[0] = false;\n break;\n case 3:\n grid.get(findIndex(random_i - 1, random_j)).walls[1] = false;\n break;\n }\n } else {\n k = k - 1;\n }\n }\n }", "title": "" }, { "docid": "bf3825281a7f3bf783b5c5a0d5c0f025", "score": "0.54669327", "text": "private void setupFiringParticle(int level) {\n switch(level) {\n case 1:\n particles = new CellImage[]{new CellImage(Sprite.CANNON_FIRE)};\n break;\n case 2:\n particles = new CellImage[]{new CellImage(Sprite.CANNON_FIRE), new CellImage(Sprite.CANNON_FIRE)};\n particles[0].setTranslateX(-4.5);\n particles[1].setTranslateX(4.5);\n break;\n }\n for (CellImage particle : particles) {\n particle.setTranslateY(-35);\n particle.setScaleX(0.7);\n particle.setScaleY(0.7);\n particle.setVisible(false);\n this.turret.getChildren().add(particle);\n }\n }", "title": "" }, { "docid": "6c81c09d240805ccc3cbdca04c4e500f", "score": "0.54648864", "text": "@Override\n public void run() {\n if (!running) {\n runTaskTimer(HPS, 0l, 1l);\n running = true;\n }\n\n loc.add(direction);\n loc.getWorld().playEffect(loc, effect, effectArg == null ? 0 : effectArg);\n\n if (!loc.getBlock().getType().isTransparent()) {\n onHit.hitBlock(loc.getBlock());\n cancel();\n return;\n }\n\n List<LivingEntity> list = getNearbyEntities(loc, 2, caster);\n if (list.size() != 0) {\n onHit.hitEntity(list.get(0));\n cancel();\n return;\n }\n tickTracker++;\n if (tickTracker > maxTicks && !(maxTicks == -1)) {\n cancel();\n return;\n }\n }", "title": "" }, { "docid": "04b1593b0644514a29fc2e822f38903c", "score": "0.5450505", "text": "@Override\r\n\tpublic void spawn() {\n\r\n\t}", "title": "" }, { "docid": "34e4e14a8fdb6c43cb722a7e258d14af", "score": "0.543262", "text": "public void run() {\n\t\tboolean running = true;\n \n\t\tini_Systems();\n\t\tcharacter = new Player(400, 400);\n\t\t\n//\tfor(int i = 0; i < 20; i ++) {\n//\t\tint b = 0;\n//\t\tswitch(b) {\n//\t\t\tcase 0:\n//\t\t\t\t\n//\t\t\t\t//new Eye(Math.random() * 1280 , Math.random() * 720, 50, 8);\n//\t\t\t\tbreak;\n//\t\t\tcase 1:\n//\t\t\t\tnew Orbit(new Circle(Math.random() * 1280 , Math.random() * 720,400,0.0,0.2,30), 100, 30, Math.PI / 45, Math.random() * Math.PI * 2 , 10);\n//\t\t\t\tbreak;\n//\t\t\tcase 2:\n//\t\t\t\tnew Glitch(Math.random() * 1280 , Math.random() * 720,10,0.0,0.0,20,5);\n//\t\t\t\tbreak;\n//\t\t\tdefault:\n//\t\t\t\tbreak;\n//\t\t\t\n//\t\t}\n\t//}\n\t\t\n\t\t\t\n\t\tStageEvent e2= new StageEvent(\"glitch\", 8, 1000, 40, 40);\n\t\tlong nextFrame = (System.nanoTime() + 16666667);\t\n\t\tboolean apple = false;\n\t\twhile(running) {\n\t\t\tif(!apple) {\n\t\t\t\te2.start();\n\t\t\t\tapple = true;\n\t\t\t}\n\t\t\twhile(System.nanoTime() <= nextFrame) {\n\t\t\t}\n\t\t\trenderUpdate();\n\t\t\tcalcUpdate();\n\t\t\t\n\t\t\tnextFrame += 16666667;\n\n\t\t\t\n\t\t\tfor(int i = notBullets.size() - 1; i >= 0; i--) {\n\t\t\t\texecutor.execute(notBullets.get(i));\n\t\t\t}\n\n\t\t\t\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "b48473842c95b3a329bcaafc6aa7bb95", "score": "0.5430233", "text": "private void initParticle() {\n animation = AssetLoader.genRandomAnimation();\n }", "title": "" }, { "docid": "25d91cc3d861d39586e4511c790d0d23", "score": "0.5424088", "text": "public void updateParticle() {\r\n // calculate time between frames in seconds\r\n long currentTime = System.currentTimeMillis();\r\n float timeFrame = (currentTime - mLastTime) / 1000f;\r\n\r\n mLastTime = currentTime;\r\n\r\n // move the particles\r\n for (int i = 0; i < PARTICLECOUNT; i++) {\r\n ParticlePoint particlePoint = particles.get(i);\r\n // apply a gravity to the z speed, in this case\r\n// particlePoint.vel[1] -= (GRAVITY * timeFrame);\r\n\r\n // move the particle according to it's speed\r\n particlePoint.pos[0] += particlePoint.vel[0] * timeFrame;\r\n particlePoint.pos[1] += particlePoint.vel[1] * timeFrame;\r\n particlePoint.pos[2] += particlePoint.vel[2] * timeFrame;\r\n\r\n // Reduce Particles Life By 'brightness'\r\n particlePoint.life -= particlePoint.brightness;\r\n\r\n // if the particle has died, respawn it\r\n if (particlePoint.life < 0.0f)\r\n initParticle(i);\r\n }\r\n }", "title": "" }, { "docid": "22686fd20dd55b43ca20274a4d6dff37", "score": "0.54038316", "text": "ParticleSystem(int size, int w, int h, int draww, int drawh, int[] cols, Tool1D tool)\r\n\t{\t\r\n\t\ttoolsamplesource = tool;\r\n\t\tdimension = 2;\r\n\t\tdimensionclip = new int[dimension];\r\n\t\tdrawdimensionclip = new int[dimension];\r\n\t\toffset = new float[dimension];\r\n\t\toffset[0] = 0;\r\n\t\toffset[1] = 0;\r\n\t\tcluster = new Particle[size];\r\n\t\t//interparticleworkbuffer = new double[size*size];\r\n\t\tdimensionclip[0] = w;\r\n\t\tdimensionclip[1] = h;\r\n\t\t\r\n\t\tdrawdimensionclip[0] = draww;\r\n\t\tdrawdimensionclip[1] = drawh;\r\n\t\t\r\n\t\tdefaultpixels = new int[pixmapsize*pixmapsize];\r\n\t\t\r\n\t\tMiniPixelTools.renderLinearFalloffMap(defaultpixels,pixmapsize,pixmapsize,255.0f);\r\n\t\t\r\n\t\tfor (int i = 0; i < pixmapsize*pixmapsize; i++)\r\n\t\t{\r\n\t\t\tint defjam = defaultpixels[i];\r\n\t\t\t\r\n\t\t\t//clamp defjam.. it should already be but anyhoo...\r\n\t\t\tdefjam = (defjam > 0xff) ? 0xff : (defjam < 0) ? 0 : defjam;\r\n\t\t\t\r\n\t\t\t//defjam = (defjam < 0) ? 0 : (defjam > 0xfe) ? 0xfe : defjam;\r\n\t\t\t\r\n\t\t\tdefaultpixels[i] = (defjam << 24) | 0x00ffffff; //render in white\r\n\t\t\t//do the conversion manually for now...\r\n\t\t}\r\n\t\t\r\n\t\tpixeluniverse = cols;\r\n\t\trandex = new Random();\r\n\t\t\r\n\t\t\r\n\t\tfor (int i=0; i < cluster.length; i++)\r\n\t\t{\t\r\n\t\t\t/** \r\n\t\t\t * Initialise the particle cluster, initially all particles are invisible, \r\n\t\t\t * at location (0,0) and moving at speed (0,0)\r\n\t\t\t * with no acceleration, calls to ActivateParticle activate individual particles \r\n\t\t\t */\r\n\t\t\tcluster[i] = new Particle(dimensionclip[0], dimensionclip[1], drawdimensionclip[0], drawdimensionclip[1], cols, particledrawmode, particlecolormode,i);\r\n\t\t\tcluster[i].setPixelMap(defaultpixels,pixmapsize,pixmapsize);\r\n\t\t\tcluster[i].setDrawIndex(drawIndexCounter++);\r\n\t\t\t\r\n\t\t}\r\n\t\tframenumber = 0L;\t\t\t\t\r\n\t}", "title": "" }, { "docid": "05a8811cc15ba2092d3e334efdb7b9ff", "score": "0.5401712", "text": "private void playParticleEffect(Player player) {\r\n\t\tplayer.getWorld().spawnParticle(\r\n\t\t\t\tParticle.REDSTONE, \r\n\t\t\t\tplayer.getLocation().add(0, 1, 0), \r\n\t\t\t\t1, \r\n\t\t\t\t1, \r\n\t\t\t\t1, \r\n\t\t\t\t1,\r\n\t\t\t\t0.5,\r\n\t\t\t\tnew DustOptions(Color.FUCHSIA, 0.8f));\r\n\t\tplayer.getWorld().spawnParticle(\r\n\t\t\t\tParticle.TOTEM, \r\n\t\t\t\tplayer.getLocation().add(0,0.2,0), \r\n\t\t\t\t2, \r\n\t\t\t\t0.2, \r\n\t\t\t\t0.2, \r\n\t\t\t\t0.2,\r\n\t\t\t\t0.5);\r\n\t\tplayer.addPotionEffect(new PotionEffect(PotionEffectType.GLOWING, 5, 1, false, false));\r\n\t}", "title": "" }, { "docid": "8f35c55b0521a7530b4262d4daaf621a", "score": "0.5395739", "text": "public void run() {\n PlayEffect.play(VisualEffect.EXPLOSION_HUGE, tnt.getLocation(), \"num:1\");\n List<Block> blocos = SuperBomba.getNearbyBlocks(tnt.getLocation(), 5);\n for(Block b : blocos) {\n if(SuperBomba.podemExplodir.contains(b.getType())) {\n b.breakNaturally();\n }\n }\n explosivos.remove(tnt);\n for(ClanPlayer cpl : enemy.getOnlineMembers()) {\n cpl.toPlayer().sendMessage(ChatColor.RED+L.m(\"[PERIGO]\"+ChatColor.YELLOW+\"Uma bomba explodiu em sua base !!!\"));\n }\n }", "title": "" }, { "docid": "6a626ed92ba22d4197496625ff5aa50d", "score": "0.5382719", "text": "private void spawnMapEntities(Set<MapEntity> entitiesToSpawn) {\n\n // remove any entity on the gamefield\n mapEntityList.clear();\n\n // callbacks cant get serialized, so we have to map them to some kind of ID\n // the ID gets generated within the backend's StompServiceController.java instance\n for (MapEntity basicMapEntityFromBackend : entitiesToSpawn) {\n\n MapEntity initializedEntity = mapEntityFactory.create(basicMapEntityFromBackend.kindOf, basicMapEntityFromBackend.drawableId, basicMapEntityFromBackend.position);\n\n\n if(initializedEntity.kindOf == MapEntity.MAP_ENTITY_KIND_FOOD)\n {\n initializedEntity.mapEntityAction = (spieler, snake, thisRunningGame) -> {\n\n // if the player consumed a predator entity, deactivate this effect\n snake.isPredator = false;\n\n // make the snake longer\n snake.addBodyElement();\n\n playerScoreMap.put(spieler, playerScoreMap.get(spieler) + 5);\n // TODO: maybe different kinds of mapEntity get different amounts of scores ?\n\n // play pickup sound when player collects some mapEntity.\n getApplication().getSoundManager().playPickup2();\n };\n }\n\n if(initializedEntity.kindOf == MapEntity.MAP_ENTITY_KIND_PREDATOR_ENTITY)\n {\n initializedEntity.mapEntityAction = (spieler, snake, thisRunningGame) -> {\n snake.isPredator = true;\n\n // play sound when player collects predator entity\n getApplication().getSoundManager().playPowerup1();\n };\n }\n\n if(initializedEntity.kindOf == MapEntity.MAP_ENTITY_KIND_FREEZE_OTHER_PLAYERS_ENTITY){\n initializedEntity.mapEntityAction = (spieler, snake, thisRunningGame) -> {\n\n // get a list of all players without the player which collected this powerup\n List<Spieler> playersWithoutTheLocalPlayer = playerSnakeMap.keySet().stream()\n .filter(playerFromStream -> playerFromStream != getLocalPlayer()).collect(Collectors.toList());\n\n // iterate over each player\n for (Spieler thePlayerWhichIsNotTheExecutingOne : playersWithoutTheLocalPlayer) {\n\n // for each player - set the direction vector to zero so he doesnt move\n // TODO: @leonard - make this time dependant (like the player cant move for 10 ticks or something like that)\n playerSnakeMap.get(thePlayerWhichIsNotTheExecutingOne).currentDirection = Vector2.ZERO;\n }\n\n getApplication().getSoundManager().playPowerup2();\n\n };\n }\n\n mapEntityList.add(initializedEntity);\n\n\n }\n\n System.out.print(\"\");\n\n }", "title": "" }, { "docid": "44228d7762f5ea934fe590b13b5c4e64", "score": "0.53551006", "text": "public void startExecuting()\n {\n field_75283_c = temptingPlayer.posX;\n field_75280_d = temptingPlayer.posY;\n field_75281_e = temptingPlayer.posZ;\n field_75287_j = true;\n field_75286_m = temptedEntity.getNavigator().getAvoidsWater();\n temptedEntity.getNavigator().setAvoidsWater(false);\n }", "title": "" }, { "docid": "db8c0ac2ddf7956c21e6c0b0da8b6694", "score": "0.5350217", "text": "private void mergeParticles() {\n\t\t//Find and remove all the dead particles from the simulation.\n\t\tStack<Particle> deadPs = new Stack<Particle>();\n\t\tfor (Particle p : this.p) {\n\t\t\tif (!p.impacting.isEmpty()) {\n\t\t\t\tdeadPs.add(p);\n\t\t\t}\n\t\t\t//;\n\t\t}\n\t\tthis.p.removeAll(deadPs);\n\t\t\n\t\t//For all the dead particles, (whilst in limbo) merge their stats into the particles they collide with.\n\t\twhile (!deadPs.isEmpty()) {\n\t\t\tParticle current = deadPs.pop();\n\t\t\tSet<Particle> ps = getSingleChunck(current);\n\t\t\tdeadPs.removeAll(ps);\n\t\t\tthis.p.add(merge(ps));\n\t\t}\n\t}", "title": "" }, { "docid": "0398874e2662c1cdd7e775b05e235d2f", "score": "0.5343455", "text": "protected void shootPeople() {\n this.client.canMoveBeforeShoot();\n }", "title": "" }, { "docid": "b5502fa7c17b12c6d54e05206b3a3199", "score": "0.53419006", "text": "@SideOnly(Side.CLIENT)\r\n\tpublic static void spawnAttackParticleAt(double posX, double posY, double posZ, double lookX, double lookY, double lookZ, byte type)\r\n\t{\r\n\t\tWorld world = ClientProxy.getClientWorld();\r\n\t\t\r\n\t\t//get target position\r\n\t\tdouble ran1 = 0D;\r\n\t\tdouble ran2 = 0D;\r\n\t\tdouble ran3 = 0D;\r\n\t\tfloat[] newPos1;\r\n\t\tfloat[] newPos2;\r\n\t\tfloat degYaw = 0F;\r\n\t\t\r\n\t\t//spawn particle\r\n\t\t//parameters除了ITEM_CRACK BLOCK_CRACK BLOCK_DUST以外都是傳入new int[0]即可\r\n\t\t//spawnParticle(EnumParticleTypes particleType, boolean ignoreRange,\r\n\t\t// double xCoord, double yCoord, double zCoord,\r\n\t\t// double xSpeed, double ySpeed, double zSpeed,\r\n\t\t// int... parameters)\r\n\t\tswitch (type)\r\n\t\t{\r\n\t\tcase 1:\t\t//largeexplode\r\n\t\t\tworld.spawnParticle(EnumParticleTypes.EXPLOSION_LARGE, posX, posY+2, posZ, 0.0D, 0.0D, 0.0D, new int[0]);\r\n\t\tbreak;\r\n\t\tcase 2:\t\t//hugeexplosion\r\n\t\t\tworld.spawnParticle(EnumParticleTypes.EXPLOSION_HUGE, posX, posY+1, posZ, 0.0D, 0.0D, 0.0D, new int[0]);\r\n\t\t\tfor (int i = 0; i < 24; ++i)\r\n\t\t\t{\r\n\t\t\t\tran1 = rand.nextFloat() * 6F - 3F;\r\n\t\t\t\tran2 = rand.nextFloat() * 6F - 3F;\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.LAVA, posX+ran1, posY+1, posZ+ran2, 0D, 0D, 0D, new int[0]);\r\n\t\t\t}\r\n\t\tbreak;\r\n\t\tcase 3:\t\t//hearts effect\r\n\t\t\tfor (int i = 0; i < 7; ++i)\r\n\t\t\t{\r\n\t double d0 = rand.nextGaussian() * 0.02D;\r\n\t double d1 = rand.nextGaussian() * 0.02D;\r\n\t double d2 = rand.nextGaussian() * 0.02D;\r\n\t world.spawnParticle(EnumParticleTypes.HEART, posX + rand.nextFloat() * 2D - 1D, posY + 0.5D + rand.nextFloat() * 2D, posZ + rand.nextFloat() * 2.0F - 1D, d0, d1, d2, new int[0]);\r\n\t }\r\n\t\tbreak;\r\n\t\tcase 4: \t//smoke: for minor damage\r\n\t\t\tfor (int i = 0; i < 3; i++)\r\n\t\t\t{\r\n\t\t\t\tran1 = rand.nextFloat() * lookX - lookX / 2D;\r\n\t\t\t\tran2 = rand.nextFloat() * lookX - lookX / 2D;\r\n\t\t\t\tran3 = rand.nextFloat() * lookX - lookX / 2D;\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.SMOKE_NORMAL, posX+ran1, posY+ran2, posZ+ran3, 0D, lookY, 0D, new int[0]);\r\n\t\t\t}\r\n\t\tbreak;\r\n\t\tcase 5:\t\t//flame+smoke: for moderate damage\r\n\t\t\tfor (int i = 0; i < 3; i++)\r\n\t\t\t{\r\n\t\t\t\tran1 = rand.nextFloat() * lookX - lookX / 2D;\r\n\t\t\t\tran2 = rand.nextFloat() * lookX - lookX / 2D;\r\n\t\t\t\tran3 = rand.nextFloat() * lookX - lookX / 2D;\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.SMOKE_NORMAL, posX+ran1, posY+ran2, posZ+ran3, 0D, lookY, 0D, new int[0]);\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.FLAME, posX+ran3, posY+ran2, posZ+ran1, 0D, lookY, 0D, new int[0]);\r\n\t\t\t}\r\n\t\tbreak;\r\n\t\tcase 6: \t//largesmoke\r\n\t\t\tfor (int i = 0; i < 24; i++)\r\n\t\t\t{\r\n\t\t\t\tran1 = rand.nextFloat() - 0.5F;\r\n\t\t\t\tran2 = rand.nextFloat();\r\n\t\t\t\tran3 = rand.nextFloat();\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.SMOKE_LARGE, posX+lookX-0.5D+0.05D*i, posY+0.6D+ran1, posZ+lookZ-0.5D+0.05D*i, lookX*0.3D*ran2, 0.05D*ran2, lookZ*0.3D*ran2, new int[0]);\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.SMOKE_LARGE, posX+lookX-0.5D+0.05D*i, posY+1.0D+ran1, posZ+lookZ-0.5D+0.05D*i, lookX*0.3D*ran3, 0.05D*ran3, lookZ*0.3D*ran3, new int[0]);\r\n\t\t\t}\r\n\t\tbreak;\r\n\t\tcase 7: \t//flame+large smoke: for heavy damage\r\n\t\t\tfor (int i = 0; i < 4; i++)\r\n\t\t\t{\r\n\t\t\t\tran1 = rand.nextFloat() * lookX - lookX / 2D;\r\n\t\t\t\tran2 = rand.nextFloat() * lookX - lookX / 2D;\r\n\t\t\t\tran3 = rand.nextFloat() * lookX - lookX / 2D;\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.SMOKE_LARGE, posX+ran1, posY+ran2, posZ+ran3, 0D, 0D, 0D, new int[0]);\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.FLAME, posX+ran3, posY+ran2, posZ+ran1, 0D, 0.05D, 0D, new int[0]);\r\n\t\t\t}\r\n\t\tbreak;\r\n\t\tcase 8:\t \t//flame\r\n\t\t\tworld.spawnParticle(EnumParticleTypes.FLAME, posX, posY-0.1, posZ, 0.0D, 0.0D, 0.0D, new int[0]);\r\n\t\t\tworld.spawnParticle(EnumParticleTypes.FLAME, posX, posY, posZ, 0.0D, 0.0D, 0.0D, new int[0]);\r\n\t\t\tworld.spawnParticle(EnumParticleTypes.FLAME, posX, posY+0.1, posZ, 0.0D, 0.0D, 0.0D, new int[0]);\r\n\t\tbreak;\r\n\t\tcase 9: \t//lava + largeexplode\r\n\t\t\tworld.spawnParticle(EnumParticleTypes.EXPLOSION_LARGE, posX, posY+1.5, posZ, 0.0D, 0.0D, 0.0D, new int[0]);\r\n\t\t\tfor (int i = 0; i < 15; i++)\r\n\t\t\t{\r\n\t\t\t\tran1 = rand.nextFloat() * 3F - 1.5F;\r\n\t\t\t\tran2 = rand.nextFloat() * 3F - 1.5F;\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.LAVA, posX+ran1, posY+1, posZ+ran2, 0D, 0D, 0D, new int[0]);\r\n\t\t\t}\t\t\t\r\n\t\tbreak;\r\n\t\tcase 10:\t//miss\r\n\t\t\tParticleTexts particleMiss = new ParticleTexts(world, \r\n \t\t posX, posY + lookY, posZ, 1F, 0);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(particleMiss);\r\n\t\tbreak;\r\n\t\tcase 11:\t//cri\r\n\t\t\tParticleTexts particleCri = new ParticleTexts(world, \r\n \t\t posX, posY + lookY, posZ, 1F, 1);\t \r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(particleCri);\r\n\t\tbreak;\r\n\t\tcase 12:\t//double hit\r\n\t\t\tParticleTexts particleDHit = new ParticleTexts(world, \r\n\t \t\t posX, posY + lookY, posZ, 1F, 2);\t \r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(particleDHit);\r\n\t\tbreak;\r\n\t\tcase 13:\t//triple hit\r\n\t\t\tParticleTexts particleTHit = new ParticleTexts(world, \r\n\t \t\t posX, posY + lookY, posZ, 1F, 3);\t \r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(particleTHit);\r\n\t\tbreak;\r\n\t\tcase 14:\t//laser\r\n\t\t\tParticleLaser particleLaser = new ParticleLaser(world, \r\n\t\t\t posX, posY, posZ, lookX, lookY, lookZ, 1F, 0);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(particleLaser);\r\n\t\tbreak;\r\n\t\tcase 15:\t//white spray\r\n\t\t\tParticleSpray particleSpray = new ParticleSpray(world, \r\n \t\tposX, posY, posZ, lookX, lookY, lookZ, 1);\r\n \tMinecraft.getMinecraft().effectRenderer.addEffect(particleSpray);\r\n\t\tbreak;\r\n\t\tcase 16:\t//cyan spray\r\n\t\t\tParticleSpray particleSpray2 = new ParticleSpray(world, \r\n \t\tposX, posY, posZ, lookX, lookY, lookZ, 2);\r\n \tMinecraft.getMinecraft().effectRenderer.addEffect(particleSpray2);\r\n\t\tbreak;\r\n\t\tcase 17:\t//green spray\r\n\t\t\tParticleSpray particleSpray3 = new ParticleSpray(world, \r\n \t\tposX, posY, posZ, lookX, lookY, lookZ, 3);\r\n \tMinecraft.getMinecraft().effectRenderer.addEffect(particleSpray3);\r\n\t\tbreak;\r\n\t\tcase 18:\t//red spray\r\n\t\t\tParticleSpray particleSpray4 = new ParticleSpray(world, \r\n \t\tposX, posY, posZ, lookX, lookY, lookZ, 4);\r\n \tMinecraft.getMinecraft().effectRenderer.addEffect(particleSpray4);\r\n\t\tbreak;\r\n\t\tcase 19: \t//double largesmoke for 14~20 inch cannon\r\n\t\t\t//計算煙霧位置\r\n\t\t\tdegYaw = CalcHelper.getLookDegree(lookX, 0D, lookZ, false)[0];\r\n\t\t\tnewPos1 = CalcHelper.rotateXZByAxis(0F, (float)lookY, degYaw, 1F);\r\n\t\t\tnewPos2 = CalcHelper.rotateXZByAxis(0F, (float)-lookY, degYaw, 1F);\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < 15; i++)\r\n\t\t\t{\r\n\t\t\t\tran1 = rand.nextFloat() - 0.5F;\r\n\t\t\t\tran2 = rand.nextFloat();\r\n\t\t\t\tran3 = rand.nextFloat();\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.SMOKE_LARGE, posX+lookX-0.5D+0.05D*i+newPos1[1], posY+0.6D+ran1, posZ+lookZ-0.5D+0.05D*i+newPos1[0], lookX*0.3D*ran2, 0.05D*ran2, lookZ*0.3D*ran2, new int[0]);\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.SMOKE_LARGE, posX+lookX-0.5D+0.05D*i+newPos2[1], posY+0.6D+ran1, posZ+lookZ-0.5D+0.05D*i+newPos2[0], lookX*0.3D*ran3, 0.05D*ran3, lookZ*0.3D*ran3, new int[0]);\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.SMOKE_LARGE, posX+lookX-0.5D+0.05D*i+newPos1[1], posY+0.9D+ran1, posZ+lookZ-0.5D+0.05D*i+newPos1[0], lookX*0.3D*ran3, 0.05D*ran3, lookZ*0.3D*ran3, new int[0]);\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.SMOKE_LARGE, posX+lookX-0.5D+0.05D*i+newPos2[1], posY+0.9D+ran1, posZ+lookZ-0.5D+0.05D*i+newPos2[0], lookX*0.3D*ran2, 0.05D*ran2, lookZ*0.3D*ran2, new int[0]);\r\n\t\t\t}\r\n\t\tbreak;\r\n\t\tcase 20: \t//smoke: for nagato equip\r\n\t\t\tfor (int i = 0; i < 3; i++)\r\n\t\t\t{\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.SMOKE_NORMAL, posX, posY+i*0.1D, posZ, lookX, lookY, lookZ, new int[0]);\r\n\t\t\t}\r\n\t\tbreak;\r\n\t\tcase 21:\t//Type 91 AP Fist: phase 4 hit particle\r\n\t\t\t//draw speed blur\r\n\t\t\tParticleLaser particleLaser2 = new ParticleLaser(world, \r\n\t\t\t posX, posY, posZ, lookX, lookY, lookZ, 4F, 1);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(particleLaser2);\r\n\t\t\tParticleLaser particleLaser3 = new ParticleLaser(world, \r\n\t\t\t posX, posY+0.4D, posZ, lookX, lookY+0.4D, lookZ, 4F, 1);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(particleLaser3);\r\n\t\t\tParticleLaser particleLaser4 = new ParticleLaser(world, \r\n\t\t\t posX, posY+0.8D, posZ, lookX, lookY+0.8D, lookZ, 4F, 1);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(particleLaser4);\r\n\t\t\t\r\n\t\t\t//draw hit particle\r\n\t\t\tfor (int i = 0; i < 20; ++i)\r\n\t\t\t{\r\n\t\t\t\tnewPos1 = CalcHelper.rotateXZByAxis(1, 0, 6.28F / 20F * i, 1);\r\n\t\t\t\t//motionY傳入4, 表示為特殊設定\r\n\t\t\t\tParticleSpray particleSpray5 = new ParticleSpray(world, \r\n\t\t\t\t\t\tlookX, lookY+0.3D, lookZ, newPos1[0]*0.35D, 0D, newPos1[1]*0.35D, 0);\r\n\t \tMinecraft.getMinecraft().effectRenderer.addEffect(particleSpray5);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//draw hit text\r\n\t\t\tParticle91Type particle91Type = new Particle91Type(world, \r\n\t\t\t\t\tlookX, lookY+3D, lookZ, 0.6F);\r\n \tMinecraft.getMinecraft().effectRenderer.addEffect(particle91Type);\r\n\t\tbreak;\r\n\t\tcase 22:\t//Type 91 AP Fist: phase 1,3 particle\r\n\t\t\tfor (int i = 0; i < 20; ++i)\r\n\t\t\t{\r\n\t\t\t\tnewPos1 = CalcHelper.rotateXZByAxis((float)lookX, 0, 6.28F / 20F * i, 1);\r\n\t\t\t\t//motionY傳入4, 表示為特殊設定\r\n\t\t\t\tParticleSpray particleSpray7 = new ParticleSpray(world, \r\n\t\t\t\t\t\tposX+newPos1[0], posY+lookY, posZ+newPos1[1], -newPos1[0]*0.06D, 0D, -newPos1[1]*0.06D, 5);\r\n\t \tMinecraft.getMinecraft().effectRenderer.addEffect(particleSpray7);\r\n\t\t\t}\r\n\t\tbreak;\r\n\t\tcase 23:\t//Type 91 AP Fist: phase 2 particle\r\n\t\t\tfor (int i = 0; i < 20; ++i)\r\n\t\t\t{\r\n\t\t\t\tnewPos1 = CalcHelper.rotateXZByAxis((float)lookX, 0, 6.28F / 20F * i, 1);\r\n\t\t\t\t//motionY傳入4, 表示為特殊設定\r\n\t\t\t\tParticleSpray particleSpray8 = new ParticleSpray(world, \r\n\t\t\t\t\t\tposX, posY+lookY, posZ, newPos1[0], 0D, newPos1[1], 6);\r\n\t \tMinecraft.getMinecraft().effectRenderer.addEffect(particleSpray8);\r\n\t\t\t}\r\n\t\tbreak;\r\n\t\tcase 24: \t//smoke: for nagato BOSS equip\r\n\t\t\tfor (int i = 0; i < 3; i++)\r\n\t\t\t{\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.SMOKE_LARGE, posX, posY+i*0.3D, posZ, lookX, lookY, lookZ, new int[0]);\r\n\t\t\t}\r\n\t\tbreak;\r\n\t\tcase 25:\t//arrow particle: for move or attack target mark\r\n\t\t\tParticleTeam particleTeam = new ParticleTeam(world, (float)lookX, (int)lookY, posX, posY, posZ);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(particleTeam);\r\n\t\tbreak;\r\n\t\tcase 26:\t//white spray\r\n\t\t\tParticleSpray particleSpray7 = new ParticleSpray(world, \r\n \t\tposX, posY, posZ, lookX, lookY, lookZ, 7);\r\n \tMinecraft.getMinecraft().effectRenderer.addEffect(particleSpray7);\r\n\t\tbreak;\r\n\t\tcase 27:\t//yellow spray\r\n\t\t\tParticleSpray particleSpray8 = new ParticleSpray(world, \r\n \t\tposX, posY, posZ, lookX, lookY, lookZ, 8);\r\n \tMinecraft.getMinecraft().effectRenderer.addEffect(particleSpray8);\r\n\t\tbreak;\r\n\t\tcase 28:\t//drip water\r\n\t\t\tran1 = rand.nextFloat() * 0.7D - 0.35D;\r\n\t\t\tran2 = rand.nextFloat() * 0.7D - 0.35D;\r\n\t\t\tworld.spawnParticle(EnumParticleTypes.DRIP_WATER, posX+ran1, posY, posZ+ran2, lookX, lookY, lookZ, new int[0]);\r\n\t\tbreak;\r\n\t\tcase 29:\t//orange spray\r\n\t\t\tParticleSpray particleSpray9 = new ParticleSpray(world, \r\n \t\tposX, posY, posZ, lookX, lookY, lookZ, 9);\r\n \tMinecraft.getMinecraft().effectRenderer.addEffect(particleSpray9);\r\n\t\tbreak;\r\n\t\tcase 30:\t//snow hit\r\n\t\t\tfor (int i = 0; i < 15; i++)\r\n\t\t\t{\r\n\t\t\t\tran1 = rand.nextFloat() * 2F - 1F;\r\n\t\t\t\tran2 = rand.nextFloat() * 2F - 1F;\r\n\t\t\t\tran3 = rand.nextFloat() * 2F - 1F;\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.SNOWBALL, posX+ran1, posY+0.8D+ran2, posZ+ran3, lookX*0.2D, 0.5D, lookZ*0.2D, new int[0]);\r\n\t\t\t}\r\n\t\tbreak;\r\n\t\tcase 31: \t//throw snow smoke\r\n\t\t\tfor (int i = 0; i < 22; i++)\r\n\t\t\t{\r\n\t\t\t\tran1 = rand.nextFloat() - 0.5F;\r\n\t\t\t\tran2 = rand.nextFloat();\r\n\t\t\t\tran3 = rand.nextFloat();\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.SNOW_SHOVEL, posX+lookX-0.5D+0.05D*i, posY+0.7D+ran1, posZ+lookZ-0.5D+0.05D*i, lookX*0.3D*ran2, 0.05D*ran2, lookZ*0.3D*ran2, new int[0]);\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.SNOW_SHOVEL, posX+lookX-0.5D+0.05D*i, posY+0.9D+ran1, posZ+lookZ-0.5D+0.05D*i, lookX*0.3D*ran3, 0.05D*ran3, lookZ*0.3D*ran3, new int[0]);\r\n\t\t\t}\r\n\t\tbreak;\r\n\t\tcase 32:\t//transparent cyan spray\r\n\t\t\tParticleSpray particleSpray10 = new ParticleSpray(world, \r\n \t\tposX, posY, posZ, lookX, lookY, lookZ, 10);\r\n \tMinecraft.getMinecraft().effectRenderer.addEffect(particleSpray10);\r\n\t\tbreak;\r\n\t\tcase 33:\t//transparent red spray\r\n\t\t\tParticleSpray particleSpray11 = new ParticleSpray(world, \r\n \t\tposX, posY, posZ, lookX, lookY, lookZ, 11);\r\n \tMinecraft.getMinecraft().effectRenderer.addEffect(particleSpray11);\r\n\t\tbreak;\r\n\t\tcase 34:\t//dodge\r\n\t\t\tParticleTexts particleTDodge = new ParticleTexts(world, \r\n\t \t\t posX, posY + lookY, posZ, 1F, 4);\t \r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(particleTDodge);\r\n\t\tbreak;\r\n\t\tcase 35: \t//triple largesmoke for boss ship\r\n\t\t\t//計算煙霧位置\r\n\t\t\tdegYaw = CalcHelper.getLookDegree(lookX, 0D, lookZ, false)[0];\r\n\t\t\tnewPos1 = CalcHelper.rotateXZByAxis(0F, (float)lookY, degYaw, 1F);\r\n\t\t\tnewPos2 = CalcHelper.rotateXZByAxis(0F, (float)-lookY, degYaw, 1F);\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < 15; i++)\r\n\t\t\t{\r\n\t\t\t\tran1 = rand.nextFloat() - 0.5F;\r\n\t\t\t\tran2 = rand.nextFloat();\r\n\t\t\t\tran3 = rand.nextFloat();\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.SMOKE_LARGE, posX+lookX-0.6D+0.1D*i+newPos1[1]+ran2, posY+ran1, posZ+lookZ-0.6D+0.1D*i+newPos1[0]+ran2, lookX*0.3D*ran2, 0.05D*ran2, lookZ*0.3D*ran2, new int[0]);\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.SMOKE_LARGE, posX+lookX-0.6D+0.1D*i+newPos2[1]+ran3, posY+ran1, posZ+lookZ-0.6D+0.1D*i+newPos2[0]+ran3, lookX*0.3D*ran3, 0.05D*ran3, lookZ*0.3D*ran3, new int[0]);\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.SMOKE_LARGE, posX+lookX-0.6D+0.1D*i+newPos1[1]+ran3, posY+0.3D+ran1, posZ+lookZ-0.6D+0.1D*i+newPos1[0]+ran3, lookX*0.3D*ran3, 0.05D*ran3, lookZ*0.3D*ran3, new int[0]);\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.SMOKE_LARGE, posX+lookX-0.6D+0.1D*i+newPos2[1]+ran2, posY+0.3D+ran1, posZ+lookZ-0.6D+0.1D*i+newPos2[0]+ran2, lookX*0.3D*ran2, 0.05D*ran2, lookZ*0.3D*ran2, new int[0]);\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.SMOKE_LARGE, posX+lookX-0.6D+0.1D*i+newPos1[1]+ran2, posY+0.6D+ran1, posZ+lookZ-0.6D+0.1D*i+newPos1[0]+ran2, lookX*0.3D*ran3, 0.05D*ran3, lookZ*0.3D*ran3, new int[0]);\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.SMOKE_LARGE, posX+lookX-0.6D+0.1D*i+newPos2[1]+ran3, posY+0.6D+ran1, posZ+lookZ-0.6D+0.1D*i+newPos2[0]+ran3, lookX*0.3D*ran2, 0.05D*ran2, lookZ*0.3D*ran2, new int[0]);\r\n\t\t\t}\r\n\t\tbreak;\r\n\t\tcase 36:\t//emotion\r\n\t\t\tParticleEmotion partEmo = new ParticleEmotion(world, null,\r\n\t\t\t\t\tposX, posY, posZ, (float)lookX, (int)lookY, (int)lookZ);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(partEmo);\r\n\t\tbreak;\r\n\t\tcase 37:\t//white spray\r\n\t\t\tParticleSpray particleSpray12 = new ParticleSpray(world, \r\n \t\tposX, posY, posZ, lookX, lookY, lookZ, 12);\r\n \tMinecraft.getMinecraft().effectRenderer.addEffect(particleSpray12);\r\n\t\tbreak;\r\n\t\tcase 38:\t//next waypoint spray\r\n\t\t\tParticleSpray particleSpray13 = new ParticleSpray(world, \r\n \t\tposX, posY, posZ, lookX, lookY, lookZ, 13);\r\n \tMinecraft.getMinecraft().effectRenderer.addEffect(particleSpray13);\r\n\t\tbreak;\r\n\t\tcase 39:\t//paired chest spray\r\n\t\t\tParticleSpray particleSpray14 = new ParticleSpray(world, \r\n \t\tposX, posY, posZ, lookX, lookY, lookZ, 14);\r\n \tMinecraft.getMinecraft().effectRenderer.addEffect(particleSpray14);\r\n\t\tbreak;\r\n\t\tcase 40:\t//craning\r\n\t\t\tParticleCraning particleCrane = new ParticleCraning(world, \r\n \t\tposX, posY, posZ, lookX, lookY, lookZ, 0);\r\n \tMinecraft.getMinecraft().effectRenderer.addEffect(particleCrane);\r\n\t\tbreak;\r\n\t\tcase 41:\t//cyan spray 2\r\n\t\t\tParticleSpray particleSpray15 = new ParticleSpray(world, \r\n \t\tposX, posY, posZ, lookX, lookY, lookZ, 15);\r\n \tMinecraft.getMinecraft().effectRenderer.addEffect(particleSpray15);\r\n\t\tbreak;\r\n\t\tcase 42: \t//double largesmoke for mounts with 14~20 inch cannon: lookX: entity.renderYawOffset, lookY: cannon spacing\r\n\t\t\t//計算煙霧位置\r\n\t\t\tnewPos1 = CalcHelper.rotateXZByAxis(0F, (float)lookY, (float)(lookX * Values.N.DIV_PI_180), 1F);\r\n\t\t\tnewPos2 = CalcHelper.rotateXZByAxis(0F, (float)-lookY, (float)(lookX * Values.N.DIV_PI_180), 1F);\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < 15; i++)\r\n\t\t\t{\r\n\t\t\t\tran1 = rand.nextFloat() - 0.5F;\r\n\t\t\t\tran2 = rand.nextFloat();\r\n\t\t\t\tran3 = rand.nextFloat();\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.SMOKE_LARGE, posX+lookX-0.5D+0.05D*i+newPos1[1], posY+0.6D+ran1, posZ+lookZ-0.5D+0.05D*i+newPos1[0], lookX*0.3D*ran2, 0.05D*ran2, lookZ*0.3D*ran2, new int[0]);\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.SMOKE_LARGE, posX+lookX-0.5D+0.05D*i+newPos2[1], posY+0.6D+ran1, posZ+lookZ-0.5D+0.05D*i+newPos2[0], lookX*0.3D*ran3, 0.05D*ran3, lookZ*0.3D*ran3, new int[0]);\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.SMOKE_LARGE, posX+lookX-0.5D+0.05D*i+newPos1[1], posY+0.9D+ran1, posZ+lookZ-0.5D+0.05D*i+newPos1[0], lookX*0.3D*ran3, 0.05D*ran3, lookZ*0.3D*ran3, new int[0]);\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.SMOKE_LARGE, posX+lookX-0.5D+0.05D*i+newPos2[1], posY+0.9D+ran1, posZ+lookZ-0.5D+0.05D*i+newPos2[0], lookX*0.3D*ran2, 0.05D*ran2, lookZ*0.3D*ran2, new int[0]);\r\n\t\t\t}\r\n\t\tbreak;\r\n\t\tcase 43:\t//custom size smoke: parms: lookY: motionY, lookX: scale\r\n\t\t{\r\n\t\t\tfor (int i = 0; i < 3; i++)\r\n\t\t\t{\r\n\t\t\t\tParticleSmoke smoke1 = new ParticleSmoke(world, posX, posY+i*0.1D, posZ, 0D, lookY, 0D, (float)lookX);\r\n\t\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(smoke1);\r\n\t\t\t}\r\n\t\t}\r\n\t\tbreak;\r\n\t\tcase 44:\t//high speed movement blur THICK YELLOW\r\n\t\t{\r\n\t\t\t//draw speed blur: H, Wfor, Wback, R, G, B, A, px, py, pz, mx, my, mz\r\n\t\t\tParticleLine line1 = new ParticleLine(world, 0, new float[] {2.5F, 8F, 22F, 1F, 1F, 0.4F, 0.8F,\r\n\t\t\t\t\t(float)posX, (float)posY, (float)posZ, (float)lookX, (float)lookY, (float)lookZ});\r\n\t\t\tParticleLine line2 = new ParticleLine(world, 0, new float[] {1F, 8F, 20F, 1F, 1F, 0.7F, 0.9F,\r\n\t\t\t\t\t(float)posX, (float)posY, (float)posZ, (float)lookX, (float)lookY, (float)lookZ});\r\n\t\t\tParticleLine line3 = new ParticleLine(world, 0, new float[] {0.8F, 7F, 18F, 1F, 1F, 1F, 1F,\r\n\t\t\t\t\t(float)posX, (float)posY, (float)posZ, (float)lookX, (float)lookY, (float)lookZ});\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(line1);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(line2);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(line3);\r\n\t\t}\r\n\t\tbreak;\r\n\t\tcase 45:\t//high speed movement blur THIN + THICK Aura\r\n\t\t{\r\n\t\t\t//draw speed blur: H, Wfor, Wback, R, G, B, A, px, py, pz, mx, my, mz\r\n\t\t\tParticleLine line1 = new ParticleLine(world, 0, new float[] {2.4F, 8F, 22F, 1F, 0F, 0F, 0.4F,\r\n\t\t\t\t\t(float)posX, (float)posY, (float)posZ, (float)lookX, (float)lookY, (float)lookZ});\r\n\t\t\tParticleLine line2 = new ParticleLine(world, 0, new float[] {0.24F, 8F, 20F, 1F, 0F, 1F, 0.85F,\r\n\t\t\t\t\t(float)posX, (float)posY, (float)posZ, (float)lookX, (float)lookY, (float)lookZ});\r\n\t\t\tParticleLine line3 = new ParticleLine(world, 0, new float[] {0.2F, 7F, 18F, 1F, 1F, 1F, 1F,\r\n\t\t\t\t\t(float)posX, (float)posY, (float)posZ, (float)lookX, (float)lookY, (float)lookZ});\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(line1);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(line2);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(line3);\r\n\t\t}\r\n\t\tbreak;\r\n\t\tcase 46:\t//high speed movement blur THICK PINK\r\n\t\t{\r\n\t\t\t//draw speed blur: H, Wfor, Wback, R, G, B, A, px, py, pz, mx, my, mz\r\n\t\t\tParticleLine line1 = new ParticleLine(world, 0, new float[] {0.6F, 7F, 7F, 1F, 0.6F, 1F, 0.3F,\r\n\t\t\t\t\t(float)posX, (float)posY, (float)posZ, (float)lookX, (float)lookY, (float)lookZ});\r\n\t\t\tParticleLine line2 = new ParticleLine(world, 0, new float[] {0.3F, 4F, 4F, 1F, 0.8F, 1F, 0.8F,\r\n\t\t\t\t\t(float)posX, (float)posY, (float)posZ, (float)lookX, (float)lookY, (float)lookZ});\r\n\t\t\tParticleLine line3 = new ParticleLine(world, 0, new float[] {0.2F, 3F, 3F, 1F, 1F, 1F, 1F,\r\n\t\t\t\t\t(float)posX, (float)posY, (float)posZ, (float)lookX, (float)lookY, (float)lookZ});\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(line1);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(line2);\r\n\t\t\tMinecraft.getMinecraft().effectRenderer.addEffect(line3);\r\n\t\t}\r\n\t\tbreak;\r\n\t\tcase 47:\t//lots white spray\r\n\t\t{\r\n\t\t\tint maxpar = (int)((3 - ClientProxy.getMineraft().gameSettings.particleSetting) * 1.8F);\r\n\t\t\tfor (int i = 0; i < maxpar; i++)\r\n\t\t\t{\r\n\t\t\t\tParticleSpray spray = new ParticleSpray(world, posX, posY, posZ, lookX, lookY, lookZ, 16);\r\n\t \tMinecraft.getMinecraft().effectRenderer.addEffect(spray);\r\n\t\t\t}\r\n\t\t}\r\n\t\tbreak;\r\n\t\tcase 48:\t//water bubble\r\n\t\t{\r\n\t\t\tfor (int i = 0; i < 14; i++)\r\n\t\t\t{\r\n\t\t\t\tran1 = (rand.nextFloat() - 0.5F) * lookY;\r\n\t\t\t\tran2 = (rand.nextFloat() - 0.5F) * lookX;\r\n\t\t\t\tran3 = (rand.nextFloat() - 0.5F) * lookZ;\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.WATER_BUBBLE, posX+ran2, posY+ran1, posZ+ran3, 0D, 0D, 0D, new int[0]);\r\n\t\t\t\tworld.spawnParticle(EnumParticleTypes.WATER_WAKE, posX+ran2, posY+ran1, posZ+ran3, 0D, 0D, 0D, new int[0]);\r\n\t\t\t}\r\n\t\t}\r\n\t\tbreak;\r\n\t\tcase 49:\t//drip lava\r\n\t\t\tran1 = rand.nextFloat() * 0.7D - 0.35D;\r\n\t\t\tran2 = rand.nextFloat() * 0.7D - 0.35D;\r\n\t\t\tworld.spawnParticle(EnumParticleTypes.DRIP_LAVA, posX+ran1, posY, posZ+ran2, lookX, lookY, lookZ, new int[0]);\r\n\t\tbreak;\r\n\t\tdefault:\r\n\t\tbreak;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3982d464d02ea49d0712a2cac6d300a4", "score": "0.5313312", "text": "@Override\n public boolean process(LocalWorld world, Random random, ChunkCoordinate chunkCoord)\n {\n int x = chunkCoord.getBlockXCenter() + random.nextInt(ChunkCoordinate.CHUNK_X_SIZE);\n int z = chunkCoord.getBlockZCenter() + random.nextInt(ChunkCoordinate.CHUNK_Z_SIZE);\n int y = world.getHighestBlockYAt(x, z);\n if (canSpawnAt(world, Rotation.NORTH, x, y, z))\n {\n return spawnForced(world, random, Rotation.NORTH, x, y, z);\n }\n return false;\n }", "title": "" }, { "docid": "4c68b34387a8021e14c39c0876da4507", "score": "0.5301214", "text": "@ReceiveEvent\n public void onChunkGenerated(OnChunkGenerated event, EntityRef worldEntity) {\n PerformanceMonitor.startActivity(\"ChunkGenerationSpawnSystem\");\n\n for (Prefab prefab : spawnablePrefabs) {\n ChunkGenerationSpawnableComponent spawnableComponent =\n prefab.getComponent(ChunkGenerationSpawnableComponent.class);\n boolean trySpawn = spawnableComponent.probability > random.nextFloat() * 100;\n if (!trySpawn) {\n continue;\n }\n Vector3i chunkPos = event.getChunkPos();\n trySpawn(chunkPos, prefab, spawnableComponent);\n }\n PerformanceMonitor.endActivity();\n }", "title": "" }, { "docid": "b8594b7b8b63fe91f94eee5b4dbc5ef9", "score": "0.52981293", "text": "public void preparePlayerToSpawn()\n {\n this.yOffset = 1.62F;\n this.setSize(0.6F, 1.8F);\n super.preparePlayerToSpawn();\n this.setHealth(this.getMaxHealth());\n this.deathTime = 0;\n }", "title": "" }, { "docid": "b214fd4b3625ac495e149f8b0b5f5e92", "score": "0.5277305", "text": "void resetAnimation(){\n particles.clear();\n for(int i = 0; i < maxParticles; i++){\n particles.add(new Particle(random(0,200),-20));\n }\n }", "title": "" }, { "docid": "69f5a33f3c4152783bb7ebff7dfc139f", "score": "0.5254926", "text": "public boolean getCanSpawnHere()\n {\n return this.worldObj.difficultySetting != EnumDifficulty.PEACEFUL && this.worldObj.checkNoEntityCollision(this.boundingBox) && this.worldObj.getCollidingBoundingBoxes(this, this.boundingBox).isEmpty() && !this.worldObj.isAnyLiquid(this.boundingBox);\n }", "title": "" }, { "docid": "67adfd597b3f201f4f0351880b84c009", "score": "0.5243907", "text": "public void onSpawn()\n/* 91: */ {\n/* 92:108 */ this.deathTime = (40 + this.entity.getlvl() * 20);\n/* 93:109 */ this.entity.posY = (this.entity.shootingEntity.boundingBox.minY + 0.5D);\n/* 94:110 */ this.entity.setInmuneToFire(true);\n/* 95:111 */ this.entity.motionX = (this.entity.motionZ = this.entity.motionY = 0.0D);\n/* 96: */ }", "title": "" }, { "docid": "f3838af5f1661d29e8737f5e2cde6fe2", "score": "0.5234482", "text": "public void addObject(Position p, GameObject object){\n\t\tboolean cannotplace = false;\n\t\tcannotplace |= world.getBlock(p)==null;\n\t\t// FIXME but should be able to place a bomb on a player! => whether multiple objects can share a square?\n\t\t/*for(GameObject go: world.getRealBlock(p).getObjects()){\n\t\t\tif(go.getCrossProperty()!=CrossProperty.PASSABLE){ // FIXME could be a hard fail? If a bomb cant be placed, program will error with nullpointer later. Should at least be able to check whether adding was a success\n\t\t\t\tcannotplace = true; break;\n\t\t\t}\n\t\t}*/\n\t\tif(cannotplace){\n\t\t\tSystem.err.println(\"Cannot place \" + object + \" on \" + p);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tworld.getRealBlock(p).addObject(object);\n\t\tif(object instanceof Player){//fixme should not be here\n\t\t\tworld.addHumanPlayer((Player)object);\n\t\t}\n\t\t\n\t\t// TODO add placement effects (refactor real add method)\n\t\tSet<Player> playerstokill = new HashSet<Player>();\n\t\tif(object.getObjectType() == ObjectType.EXPLOSION){\n\t\t\tfor(GameObject otherobject: getObjects(p)){\n\t\t\t\tif(otherobject.getObjectType() == ObjectType.PLAYER){\n\t\t\t\t\tplayerstokill.add((Player)otherobject);\n\t\t\t\t}else if(otherobject.getObjectType() == ObjectType.BLOCK){\n\t\t\t\t\t// TODO check destructability\n\t\t\t\t\tremoveObject(otherobject);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(object.getObjectType() == ObjectType.PLAYER){\n\t\t\tfor(GameObject otherobject: getObjects(p)){\n\t\t\t\tif(otherobject.getObjectType() == ObjectType.EXPLOSION){\n\t\t\t\t\tplayerstokill.add((Player)otherobject);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\t\t\n\t\t}\n\t\tif(object.getObjectType() == ObjectType.BLOCK){\n\t\t\tfor(GameObject otherobject: getObjects(p)){\n\t\t\t\tif(otherobject.getObjectType() == ObjectType.EXPLOSION){\n\t\t\t\t\tremoveObject(object);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t}\n\t\tif(object.getObjectType() == ObjectType.PLAYER && getWorld().getBlock(p).getTerrainType()==TerrainType.LAVA){\n\t\t\tplayerstokill.add((Player)object);\n\t\t}\n\t\tfor (Player player : playerstokill) {\n\t\t\tplayer.die();\n\t\t\tremoveObject(player);\n\t\t\tif(player.getLives()>0){\n\t\t\t\taddObject(player.getStartPosition(), object);\n\t\t\t}\n\t\t\t// FIXME move this code to some logical place!\n\t\t\t// FIXME remove player from board, reduce lives, ... as flag in the engine?\n\t\t}\n\t}", "title": "" }, { "docid": "d958b04f427f7295025f981a3a9d04c5", "score": "0.5233527", "text": "private void computeNewPositions() throws JMException{\n\t\tfor (int i = 0; i < swarmSize_; i++){\n\t\t\tXReal particle = new XReal(particles_.get(i)) ;\n\t\t\tfor (int var = 0; var < particle.getNumberOfDecisionVariables(); var++) {\n\t\t\t\tparticle.setValue(var, particle.getValue(var) + speed_[i][var]) ;\n\n\t\t\t\tif (particle.getValue(var) < problem_.getLowerLimit(var)) {\n\t\t\t\t\tparticle.setValue(var, problem_.getLowerLimit(var));\n\t\t\t\t\tspeed_[i][var] = speed_[i][var] * ChVel1_; // \n\t\t\t\t}\n\t\t\t\tif (particle.getValue(var) > problem_.getUpperLimit(var)) {\n\t\t\t\t\tparticle.setValue(var, problem_.getUpperLimit(var));\n\t\t\t\t\tspeed_[i][var] = speed_[i][var] * ChVel2_; // \n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "95b1cc5b23ed7e15ffbd3734b23b9082", "score": "0.52304703", "text": "@SideOnly(Side.CLIENT)\r\n\tpublic static void spawnAttackParticleAtEntity(Entity ent, byte type, double[] parms)\r\n\t{\r\n\t\t//null check\r\n\t\tif (ent == null) return;\r\n\t\t\t\t\r\n\t\tWorld world = Minecraft.getMinecraft().world;\r\n\t\t\r\n\t\tswitch (type)\r\n\t\t{\r\n\t\tcase 1: //missile spray\r\n\t\tcase 2:\r\n\t\t{\r\n\t\t\tParticleSpray particleSpray1 = new ParticleSpray(ent, type, parms);\r\n\t \tMinecraft.getMinecraft().effectRenderer.addEffect(particleSpray1);\r\n\t\t}\r\n\t\tbreak;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2e65e677a346ad639f20510734e32628", "score": "0.52215344", "text": "public abstract ArrayList<? extends Particle> launch(double time);", "title": "" }, { "docid": "bb30fe3cdd67d145e30eed93b8560128", "score": "0.5219844", "text": "public static Vec3i circularSpawnCheck(IWorld world, BlockPos pos, Vec3i size, float tolerance, boolean isUnderground) {\n int xOrigin = pos.getX();\n int zOrigin = pos.getZ();\n Vec3i newPos = Vec3i.ZERO;\n\n List<List<Float>> flatnessList = new ArrayList<>();\n for (float xOffset = xOrigin - size.getX(); xOffset < xOrigin + size.getX(); xOffset++) {\n for (float zOffset = zOrigin - size.getZ(); zOffset < zOrigin + size.getZ(); zOffset++) {\n float yOffset = world.getTopPosition(Heightmap.Type.WORLD_SURFACE_WG, new BlockPos(xOffset, 0, zOffset)).getY();\n boolean nonSpawnable = yOffset < 5 || (!world.getBlockState(new BlockPos(xOffset, yOffset - 1, zOffset)).isOpaque() && !world.getBlockState(new BlockPos(xOffset, yOffset - 2, zOffset)).isOpaque()) || world.getBlockState(new BlockPos(xOffset, yOffset - 1, zOffset)).equals(Blocks.BEDROCK.getDefaultState());\n if (xOffset < xOrigin + 3 && zOffset < zOrigin + 3) {\n flatnessList.add(Arrays.asList(xOffset, yOffset, zOffset, 0f));\n }\n for (List<Float> flatness : flatnessList) {\n if (Math.pow((xOffset - flatness.get(0)) - (size.getX() - 3) / 2f, 2) + Math.pow(zOffset - flatness.get(2) - (size.getX() - 3) / 2f, 2) < Math.pow((size.getX() - 2) / 2f, 2)) {\n if (yOffset > flatness.get(1) - 3 && yOffset <= flatness.get(1)) {\n if (yOffset == flatness.get(1)) {\n flatness.set(3, flatness.get(3) + 1f);\n } else if (yOffset == flatness.get(1) - 1) {\n flatness.set(3, flatness.get(3) + 0.5f);\n } else {\n flatness.set(3, flatness.get(3) + 0.25f);\n }\n }\n if (nonSpawnable) {\n flatness.set(3, (float) -Math.pow(size.getX(), 2));\n }\n }\n }\n }\n }\n float maxFlatness = -1;\n int chosen = -1;\n for (int i = 0; i < flatnessList.size(); i++) {\n if (flatnessList.get(i).get(3) > maxFlatness) {\n maxFlatness = flatnessList.get(i).get(3);\n chosen = i;\n }\n }\n if (chosen != -1) {\n int xChosen = flatnessList.get(chosen).get(0).intValue();\n int yChosen = flatnessList.get(chosen).get(1).intValue();\n int zChosen = flatnessList.get(chosen).get(2).intValue();\n newPos = trySpawning(world, new BlockPos(xChosen, yChosen, zChosen), size, tolerance, isUnderground);\n }\n\n if (newPos.compareTo(Vec3i.ZERO) == 0 || newPos.getY() > 255 - size.getY()) {\n return Vec3i.ZERO;\n }\n\n return newPos;\n }", "title": "" }, { "docid": "da77e63d8779cd86de1ba85583ae7638", "score": "0.5217007", "text": "public void run() {\n \t\tint radius = bomb.radius;\r\n \r\n \t\tboolean boolMauer = true;\r\n \t\tint nachUnten = 0, nachOben = 0, nachRechts = 0, nachLinks = 0;\r\n \t\t// zunaechst warten bis die Bombe explodieren soll.\r\n \t\twarten(2000);\r\n \r\n \t\t// in alle 4 richtungen explodieren bis zu einer mauer, kiste oder\r\n \t\t// rechts\r\n \t\tfor (int i = 0; (i < radius) && (boolMauer); i++) {\r\n\t\t\tif ((Spielflaeche.play.equalsMauer(intBombeX + i, intBombeY) == false)\r\n\t\t\t\t\t&& (Spielflaeche.play.equalsExit(intBombeX + i, intBombeY,\r\n\t\t\t\t\t\t\t1) == false)) {// keine\r\n \t\t\t\t// Mauer\r\n \t\t\t\tif (Spielflaeche.play.equalsKiste(intBombeX + i, intBombeY, 2) == false) {// keine\r\n \t\t\t\t\t// Kiste\r\n \t\t\t\t\tnachRechts++;\r\n \t\t\t\t\tSpielflaeche.play.fill(intBombeX + i, intBombeY, 3,\r\n \t\t\t\t\t\t\tSpielfeld.Explosion);// explosion\r\n \t\t\t\t\t// anzeigen\r\n \t\t\t\t\t// Animation von Bombe + Bomberman stirbt + kiste geht\r\n \t\t\t\t\t// kaputt\r\n \t\t\t\t} else {// wird eine Kiste getroffen soll diese zerst�rt\r\n \t\t\t\t\t\t// werden\r\n \t\t\t\t\t// und es soll nicht weiter explodieren\r\n \r\n \t\t\t\t\tboolMauer = false;\r\n \t\t\t\t\tSpielflaeche.play.fill(intBombeX + i, intBombeY, 3,\r\n \t\t\t\t\t\t\tSpielfeld.Explosion);\r\n \t\t\t\t\tnachRechts++;\r\n \t\t\t\t\t// nachRechts++;\r\n \r\n \t\t\t\t}\r\n \t\t\t} else {\r\n \t\t\t\t// Mauer=> explosion in diese richtung h�rt auf.\r\n \t\t\t\tboolMauer = false;\r\n \r\n \t\t\t}\r\n \r\n \t\t}\r\n \t\tboolMauer = true;\r\n \t\t// links\r\n \t\tfor (int i = 0; (i < radius) && (boolMauer); i++) {\r\n \t\t\tif ((Spielflaeche.play.equalsMauer(intBombeX - i, intBombeY) == false)) {// keine\r\n \t\t\t\t// Mauer\r\n \t\t\t\tif (Spielflaeche.play.equalsKiste(intBombeX - i, intBombeY, 2) == false) {// keine\r\n \t\t\t\t\t// Kiste\r\n \t\t\t\t\tnachLinks++;\r\n \t\t\t\t\tSpielflaeche.play.fill(intBombeX - i, intBombeY, 3,\r\n \t\t\t\t\t\t\tSpielfeld.Explosion);\r\n \t\t\t\t\t// explosion\r\n \t\t\t\t\t// anzeigen\r\n \t\t\t\t\t// Animation von Bombe + Bomberman stirbt + kiste geht\r\n \t\t\t\t\t// kaputt\r\n \t\t\t\t} else {// wird eine Kiste getroffen soll diese zerst�rt\r\n \t\t\t\t\t\t// werden\r\n \t\t\t\t\t// und es soll nicht weiter explodieren\r\n \r\n \t\t\t\t\tboolMauer = false;\r\n \t\t\t\t\tSpielflaeche.play.fill(intBombeX - i, intBombeY, 3,\r\n \t\t\t\t\t\t\tSpielfeld.Explosion);\r\n \t\t\t\t\tnachLinks++;\r\n \r\n \t\t\t\t}\r\n \t\t\t} else {\r\n \t\t\t\t// Mauer=> explosion in diese richtung h�rt auf.\r\n \t\t\t\tboolMauer = false;\r\n \r\n \t\t\t}\r\n \r\n \t\t}\r\n \t\tboolMauer = true;\r\n \r\n \t\t// oben\r\n \t\tfor (int i = 0; (i < radius) && (boolMauer); i++) {\r\n\t\t\tif ((Spielflaeche.play.equalsMauer(intBombeX, intBombeY + i) == false)\r\n\t\t\t\t\t&& (Spielflaeche.play.equalsExit(intBombeX, intBombeY + i,\r\n\t\t\t\t\t\t\t1) == false)) {// keine\r\n\t\t\t\t// Mauer\r\n \t\t\t\tif (Spielflaeche.play.equalsKiste(intBombeX, intBombeY + i, 2) == false) {// keine\r\n \t\t\t\t\t// Kiste\r\n \t\t\t\t\tnachOben++;\r\n \t\t\t\t\tSpielflaeche.play.fill(intBombeX, intBombeY + i, 3,\r\n \t\t\t\t\t\t\tSpielfeld.Explosion);// explosion\r\n \t\t\t\t\t// anzeigen\r\n \t\t\t\t\t// Animation von Bombe + Bomberman stirbt + kiste geht\r\n \t\t\t\t\t// kaputt\r\n \t\t\t\t} else {// wird eine Kiste getroffen soll diese zerst�rt\r\n \t\t\t\t\t\t// werden\r\n \t\t\t\t\t// und es soll nicht weiter explodieren\r\n \r\n \t\t\t\t\tboolMauer = false;\r\n \t\t\t\t\tSpielflaeche.play.fill(intBombeX, intBombeY + i, 3,\r\n \t\t\t\t\t\t\tSpielfeld.Explosion);\r\n \t\t\t\t\tnachOben++;\r\n \t\t\t\t}\r\n \t\t\t} else {\r\n \t\t\t\t// Mauer=> explosion in diese richtung h�rt auf.\r\n \t\t\t\tboolMauer = false;\r\n \t\t\t}\r\n \r\n \t\t}\r\n \t\tboolMauer = true;\r\n \r\n \t\t// unten\r\n \t\tfor (int i = 0; (i < radius) && (boolMauer); i++) {\r\n \r\n\t\t\tif ((Spielflaeche.play.equalsMauer(intBombeX, intBombeY - i) == false)\r\n\t\t\t\t\t&& (Spielflaeche.play.equalsExit(intBombeX, intBombeY - i,\r\n\t\t\t\t\t\t\t1) == false)) {// keine\r\n \t\t\t\t// Mauer\r\n \t\t\t\tif (Spielflaeche.play.equalsKiste(intBombeX, intBombeY - i, 2) == false) {// keine\r\n \t\t\t\t\t// Kiste\r\n \t\t\t\t\tnachUnten++;\r\n \t\t\t\t\tSpielflaeche.play.fill(intBombeX, intBombeY - i, 3,\r\n \t\t\t\t\t\t\tSpielfeld.Explosion);// explosion\r\n \t\t\t\t\t// anzeigen\r\n \t\t\t\t\t// Animation von Bombe + Bomberman stirbt + kiste geht\r\n \t\t\t\t\t// kaputt\r\n \t\t\t\t} else {// wird eine Kiste getroffen soll diese zerst�rt\r\n \t\t\t\t\t\t// werden\r\n \t\t\t\t\t// und es soll nicht weiter explodieren\r\n \r\n \t\t\t\t\tboolMauer = false;\r\n \t\t\t\t\tSpielflaeche.play.fill(intBombeX, intBombeY - i, 3,\r\n \t\t\t\t\t\t\tSpielfeld.Explosion);\r\n \t\t\t\t\tnachUnten++;\r\n \r\n \t\t\t\t}\r\n \t\t\t} else {\r\n \t\t\t\t// Mauer=> explosion in diese richtung h�rt auf.\r\n \t\t\t\tboolMauer = false;\r\n \r\n \t\t\t}\r\n \r\n \t\t}\r\n \r\n \t\tboolMauer = true;\r\n \t\twarten(750);\r\n \t\t// explosionsauswirkung nach UNTEN\r\n \t\tfor (int i = 0; i < nachUnten; i++) {\r\n \t\t\t/*\r\n \t\t\t * Erst wird an jeder Stelle das Array geleert.\r\n \t\t\t * Explosion,Bombe,zerstörbare Kiste werden zerstört mit destroy()\r\n \t\t\t * If: Wenn An der Stelle auf Ebene 1 nichts lag, zeichne Gras an\r\n \t\t\t * die Stelle else: Wenn Auf Ebene 1 ein Objekt liegt dann schiebe\r\n \t\t\t * das in die 3. Dimension und zeichne es. analog für die anderen\r\n \t\t\t * Explosionsabfragen weiter unten.\r\n \t\t\t */\r\n \t\t\tSpielflaeche.play.destroy(intBombeX, intBombeY - i, 3);\r\n \t\t\tSpielflaeche.play.destroy(intBombeX, intBombeY - i, 4);\r\n \t\t\tSpielflaeche.play.destroy(intBombeX, intBombeY - i, 2);\r\n \t\t\tif (Spielflaeche.play.getObj(intBombeX, intBombeY - i, 1) == null) {\r\n \t\t\t\tSpielflaeche.play.fill(intBombeX, intBombeY - i, 3,\r\n \t\t\t\t\t\tSpielfeld.Gras);\r\n \t\t\t} else {\r\n \t\t\t\tSpielflaeche.play.fill(intBombeX, intBombeY - i, 3,\r\n \t\t\t\t\t\tSpielflaeche.play.getObj(intBombeX, intBombeY - i, 1));\r\n \t\t\t}\r\n \r\n \t\t}\r\n \t\t// explosionsauswirkung nach OBEN\r\n \t\tfor (int i = 0; i < nachOben; i++) {\r\n \r\n \t\t\tSpielflaeche.play.destroy(intBombeX, intBombeY + i, 3);\r\n \t\t\tSpielflaeche.play.destroy(intBombeX, intBombeY + i, 4);\r\n \t\t\tSpielflaeche.play.destroy(intBombeX, intBombeY + i, 2);\r\n \r\n \t\t\tif (Spielflaeche.play.getObj(intBombeX, intBombeY + i, 1) == null) {\r\n \t\t\t\tSpielflaeche.play.fill(intBombeX, intBombeY + i, 3,\r\n \t\t\t\t\t\tSpielfeld.Gras);\r\n \t\t\t} else {\r\n \t\t\t\tSpielflaeche.play.fill(intBombeX, intBombeY + i, 3,\r\n \t\t\t\t\t\tSpielflaeche.play.getObj(intBombeX, intBombeY + i, 1));\r\n \t\t\t}\r\n \r\n \t\t}\r\n \t\t// explosionsauswirkung nach LINKS\r\n \t\tfor (int i = 0; i < nachLinks; i++) {\r\n \t\t\tSpielflaeche.play.destroy(intBombeX - i, intBombeY, 4);\r\n \t\t\tSpielflaeche.play.destroy(intBombeX - i, intBombeY, 2);\r\n \t\t\tSpielflaeche.play.destroy(intBombeX - i, intBombeY, 3);\r\n \r\n \t\t\tif (Spielflaeche.play.getObj(intBombeX - i, intBombeY, 1) == null) {\r\n \t\t\t\tSpielflaeche.play.fill(intBombeX - i, intBombeY, 3,\r\n \t\t\t\t\t\tSpielfeld.Gras);\r\n \t\t\t} else {\r\n \t\t\t\tSpielflaeche.play.fill(intBombeX - i, intBombeY, 3,\r\n \t\t\t\t\t\tSpielflaeche.play.getObj(intBombeX - i, intBombeY, 1));\r\n \t\t\t}\r\n \t\t}\r\n \t\t// explosionsauswirkung nach RECHTS\r\n \t\tfor (int i = 0; i < nachRechts; i++) {\r\n \t\t\tSpielflaeche.play.destroy(intBombeX + i, intBombeY, 4);\r\n \t\t\tSpielflaeche.play.destroy(intBombeX + i, intBombeY, 2);\r\n \t\t\tSpielflaeche.play.destroy(intBombeX + i, intBombeY, 3);\r\n \r\n \t\t\tif (Spielflaeche.play.getObj(intBombeX + i, intBombeY, 1) == null) {\r\n \t\t\t\tSpielflaeche.play.fill(intBombeX + i, intBombeY, 3,\r\n \t\t\t\t\t\tSpielfeld.Gras);\r\n \t\t\t} else {\r\n \t\t\t\tSpielflaeche.play.fill(intBombeX + i, intBombeY, 3,\r\n \t\t\t\t\t\tSpielflaeche.play.getObj(intBombeX + i, intBombeY, 1));\r\n \t\t\t}\r\n \r\n \t\t}\r\n \t\tSpielflaeche.bman.bombeLiegt = false;\r\n \t\tSpielflaeche.bman.setBombPlanted(false);\r\n \t}", "title": "" }, { "docid": "ebff0751c18068cbb4adaea35085a94f", "score": "0.5215899", "text": "@SuppressWarnings(\"deprecation\")\n\t@Override\n public void populate(World world, Random random, Chunk chunk) {\n if (random.nextInt(280) >= 1) {\n return;\n }\n// Bukkit.broadcastMessage(\"Populated\");\n int sizeX = 16;\n int sizeY = 12;\n int sizeZ = 16;\n int spawnerChance = 400; // Spawners are generated at a chance of 12/400\n Material matWalls = Material.NETHERRACK;\n Material matFloor = Material.SOUL_SAND;\n Material matDecor = Material.LEGACY_WEB;\n\n //Editing is over\n int lengthH = sizeX / 2;\n int heightH = sizeY / 2;\n int widthH = sizeZ / 2;\n int centerX = chunk.getX() * 16 + 8;\n int centerY = world.getHighestBlockYAt(chunk.getX() * 16 + 8, chunk.getZ() * 16 + 8) / 2;\n if(centerY<5)\n \treturn;\n int centerZ = chunk.getZ() * 16 + 8;\n int minX = centerX - lengthH;\n int maxX = centerX + lengthH;\n int minY = centerY - heightH;\n int maxY = centerY + heightH;\n int minZ = centerZ - widthH;\n int maxZ = centerZ + widthH;\n\n // Step 1: Cuboid generation around the entire area\n for (int x = minX; x <= maxX; x++) {\n for (int y = minY; y <= maxY; y++) {\n \tif(world.getBlockAt(x, y, minZ).getType().getId()!=0)\n world.getBlockAt(x, y, minZ).setType(matWalls);\n \tif(world.getBlockAt(x, y, maxZ).getType().getId()!=0)\n world.getBlockAt(x, y, maxZ).setType(matWalls);\n }\n }\n\n for (int y = minY; y <= maxY; y++) {\n for (int z = minZ; z <= maxZ; z++) {\n \tif(world.getBlockAt(minX, y, z).getType().getId()!=0)\n world.getBlockAt(minX, y, z).setType(matWalls);\n \tif(world.getBlockAt(maxX, y, z).getType().getId()!=0)\n world.getBlockAt(maxX, y, z).setType(matWalls);\n }\n }\n\n for (int z = minZ; z <= maxZ; z++) {\n for (int x = minX; x <= maxX; x++) {\n \tif(world.getBlockAt(x, minY, z).getType().getId()!=0)\n world.getBlockAt(x, minY, z).setType(matWalls);\n \tif(world.getBlockAt(x, maxY, z).getType().getId()!=0)\n world.getBlockAt(x, maxY, z).setType(matWalls);\n }\n }\n \n // Step 2: Add netherrack and web noise to walls (XY, YZ)\n minX++; maxX--;\n minY++; maxY--;\n minZ++; maxZ--;\n\n for (int x = minX; x <= maxX; x++) {\n for (int y = minY; y <= maxY; y++) {\n \tif(world.getBlockAt(x, y, minZ).getType().getId()!=0)\n world.getBlockAt(x, y, minZ).setType(pickDecor(random, matDecor, matWalls));\n \tif(world.getBlockAt(x, y, maxZ).getType().getId()!=0)\n world.getBlockAt(x, y, maxZ).setType(pickDecor(random, matDecor, matWalls));\n }\n }\n\n for (int y = minY; y <= maxY; y++) {\n for (int z = minZ; z <= maxZ; z++) {\n \tif(world.getBlockAt(minX,y,z).getType().getId()!=0)\n world.getBlockAt(minX, y, z).setType(pickDecor(random, matDecor, matWalls));\n \tif(world.getBlockAt(maxX,y,z).getType().getId()!=0)\n \tworld.getBlockAt(maxX, y, z).setType(pickDecor(random, matDecor, matWalls));\n }\n }\n\n // Step 3: Generate a floor of soul sand/mobs and a ceiling of netherrack\n for (int z = minZ; z <= maxZ; z++) {\n for (int x = minX; x <= maxX; x++) {\n int floor = random.nextInt(spawnerChance); // spawner rate\n Block block = world.getBlockAt(x, minY, z);\n if(block.getType().getId()!=0)\n if (floor < 12) {\n block.setType(Material.LEGACY_MOB_SPAWNER);\n CreatureSpawner spawner = (CreatureSpawner) block.getState();\n if (floor <= 2) {\n spawner.setSpawnedType(EntityType.ZOMBIE);\n } else if (floor >= 3 && floor <= 7) {\n \tspawner.setSpawnedType(EntityType.SPIDER);\n } else if (floor >= 8 && floor <= 10) {\n \tspawner.setSpawnedType(EntityType.SKELETON);\n } else {\n \tspawner.setSpawnedType(EntityType.GHAST);\n }\n } else {\n \tif(block.getType().getId()!=0)\n block.setType(matFloor);\n }\n if(world.getBlockAt(x, maxY, z).getType().getId()!=0)\n world.getBlockAt(x, maxY, z).setType(matWalls);\n }\n }\n\n // Step 4: Stalagmites\n minX++; maxX--;\n minY++; maxY--;\n minZ++; maxZ--;\n \n for (int z = minZ; z <= maxZ; z++) {\n for (int x = minX; x <= maxX; x++) {\n for (int y = minY; y <= maxY; y++) {\n Block block = world.getBlockAt(x, y, z);\n if (block.getRelative(BlockFace.DOWN).getType() != Material.AIR && block.getRelative(BlockFace.DOWN).getType() != matDecor) {\n int rand = random.nextInt(10);\n if (rand <= 6) {\n \tif(world.getBlockAt(x, y, z).getType().getId()!=0)\n world.getBlockAt(x, y, z).setType(matFloor);\n } else {\n \tif(world.getBlockAt(x, y, z).getType().getId()!=0)\n world.getBlockAt(x, y, z).setType(pickDecor(random, matDecor, Material.AIR));\n }\n } else {\n \tif(world.getBlockAt(x, y, z).getType().getId()!=0)\n world.getBlockAt(x, y, z).setType(Material.AIR);\n }\n }\n }\n }\n }", "title": "" }, { "docid": "af840438c0e3d020c06bd0bc50ecd8c8", "score": "0.51913285", "text": "public void launch() {\r\n\t\txVector = (int) (minX + Math.random() * (int) (Math.random() * minX));\r\n\t\tint random = (int) (Math.random() * 2);\r\n\t\tif (random == 0) {\r\n\t\t\txVector *= -1;\r\n\t\t}\r\n\t\tyVector = (int) -(minY + Math.random() * (int) (Math.random() * minY));\r\n\t}", "title": "" }, { "docid": "ede9a6665b7a9163ed0af291cd98aff3", "score": "0.51840097", "text": "private void continueLevel() {\n\n short i;\n int dx = 1;\n int random;\n\n for (i = 0; i < N_GHOSTS; i++) {\n\n ghost_y[i] = 4 * BLOCK_SIZE;\n ghost_x[i] = 4 * BLOCK_SIZE;\n ghost_dy[i] = 0;\n ghost_dx[i] = dx;\n dx = -dx;\n random = (int) (Math.random() * (currentSpeed + 1));\n\n if (random > currentSpeed) {\n random = currentSpeed;\n }\n\n ghostSpeed[i] = validSpeeds[random];\n }\n\n capboy_x = 7 * BLOCK_SIZE;\n capboy_y = 11 * BLOCK_SIZE;\n capboyd_x = 0;\n capboyd_y = 0;\n req_dx = 0;\n req_dy = 0;\n view_dx = -1;\n view_dy = 0;\n dying = false;\n }", "title": "" }, { "docid": "2a1542108b7c21889e556432a8f645f8", "score": "0.5180783", "text": "@Override\n public void randomTick(BlockState state, ServerWorld worldIn, BlockPos pos, Random random) {\n worldIn.spawnParticle(ParticleTypes.FLAME, 0.5 + pos.getX(), 1 + pos.getY(), 0.5 + pos.getZ(), 10, 0.2, 0.2, 0.2, 0.02);\n }", "title": "" }, { "docid": "cc8de6c8a2496d710452f13d1cd291b9", "score": "0.51703477", "text": "private void trySpawn(Vector3i chunkPos, Prefab prefab, ChunkGenerationSpawnableComponent spawnableComponent) {\n List<Vector3i> foundPositions = findSpawnPositions(chunkPos);\n\n if (foundPositions.size() < spawnableComponent.minGroupSize * spawnableComponent.minGroundPerEntity) {\n return;\n }\n\n int maxCount = foundPositions.size() / spawnableComponent.minGroupSize;\n if (maxCount > spawnableComponent.maxGroupSize) {\n maxCount = spawnableComponent.maxGroupSize;\n }\n int count = spawnableComponent.maxGroupSize == 1 ? 1 :\n random.nextInt(maxCount - spawnableComponent.minGroupSize) + spawnableComponent.maxGroupSize;\n\n for (int i = 0; i < count; i++) {\n int randomIndex = random.nextInt(foundPositions.size());\n Vector3i randomSpawnPosition = foundPositions.remove(randomIndex);\n spawnEntity(randomSpawnPosition, prefab);\n }\n }", "title": "" }, { "docid": "2ee1e29b2a09a4ac337b948b7dacf92d", "score": "0.5170304", "text": "public void prepareForSound()\n\t{\n\t\t// If no preparation is required, no preparation will be get\n\t\tif (!this.needsNewEdges)\n\t\t\treturn;\n\t\t\n\t\tSystem.out.println(\"Preparing\");\n\t\t\n\t\t// Removes the old edges\n\t\tthis.edges.clear();\n\t\t\n\t\t// Creates new edges using soundParticles\n\t\tfor (double angle = this.direction - this.fanWidth / 2; \n\t\t\t\tangle < this.direction + this.fanWidth / 2; angle += degreesForParticle)\n\t\t{\n\t\t\tnew SoundParticle((int) getPosition().getX(), (int) getPosition().getY(), \n\t\t\t\t\tthis.defaultSoundVolume, angle, this, this.area);\n\t\t}\n\t\t\n\t\tthis.needsNewEdges = false;\n\t}", "title": "" }, { "docid": "fc513b4e41cb92de2927726032019ba1", "score": "0.51698536", "text": "private void spawnBuildings() {\n // Set positions of houses\n GridPoint2[] houseOnePositions = new GridPoint2[]{\n new GridPoint2(8, 61), new GridPoint2(18, 61), new GridPoint2(28, 61), new GridPoint2(38, 61),\n new GridPoint2(3, 54),\n new GridPoint2(8, 47), new GridPoint2(21, 46), new GridPoint2(33, 46), new GridPoint2(43, 46),\n new GridPoint2(3, 40),\n new GridPoint2(3, 29), new GridPoint2(13, 29), new GridPoint2(23, 29),\n new GridPoint2(8, 14), new GridPoint2(18, 14), new GridPoint2(28, 14),\n new GridPoint2(3, 7),\n new GridPoint2(8, 0), new GridPoint2(43, 0), new GridPoint2(53, 0)\n };\n GridPoint2[] houseTwoPositions = new GridPoint2[]{\n new GridPoint2(3, 61), new GridPoint2(13, 61), new GridPoint2(23, 61), new GridPoint2(33, 61),\n new GridPoint2(8, 54),\n new GridPoint2(3, 47), new GridPoint2(16, 46), new GridPoint2(26, 46), new GridPoint2(38, 46),\n new GridPoint2(33, 39), new GridPoint2(43, 39),\n new GridPoint2(8, 29), new GridPoint2(18, 29),\n new GridPoint2(3, 14), new GridPoint2(13, 14), new GridPoint2(23, 14),\n new GridPoint2(8, 7),\n new GridPoint2(3, 0), new GridPoint2(13, 0), new GridPoint2(48, 0)\n };\n\n // Spawn in type one houses\n for (GridPoint2 point: houseOnePositions) {\n Entity house = ObstacleFactory.createBuilding(1);\n spawnEntityAt(house, point, true, false);\n }\n // Spawn in type two houses\n for (GridPoint2 point: houseTwoPositions) {\n Entity house = ObstacleFactory.createBuilding(2);\n spawnEntityAt(house, point, true, false);\n }\n }", "title": "" }, { "docid": "378e0a3930bcbd56b7938e50d023d7b3", "score": "0.5168859", "text": "public void showExplosion() {\n\t\tFunction<Direction, Supplier<Point>> fakePositionSupplierFactory = d -> () -> {\n\t\t\tint x = 0;\n\t\t\tint y = 0;\n\t\t\tswitch (d) {\n\t\t\t\tcase RIGHT:\n\t\t\t\t\tx = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase LEFT:\n\t\t\t\t\tx = -1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase UP:\n\t\t\t\t\ty = -1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase DOWN:\n\t\t\t\t\ty = 1;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\treturn new Point(this.x() + x * (blastRange + 1), this.y() + y * (blastRange + 1));\n\t\t};\n\n\t\tdeleteAfter(new CentralExplosion(position, arena));\n\n\t\tarena.elementsInRange(this, blastRange)\n\t\t .map(p -> Pair.of(p.first()\n\t\t .stream()\n\t\t .filter(Element::isBlastAbsorber)\n\t\t .findFirst()\n\t\t .map(Element::position)\n\t\t .orElseGet(fakePositionSupplierFactory.apply(p.second())),\n\t\t p.second()))\n\t\t .flatMap(p -> {\n\t\t\t Point target = p.first();\n\t\t\t BiFunction<Point, Arena, Explosion> endExplosionFactory;\n\t\t\t BiFunction<Point, Arena, Explosion> explosionFactory;\n\t\t\t switch (p.second()) {\n\t\t\t\t case RIGHT:\n\t\t\t\t\t explosionFactory = HorizontalExplosion::new;\n\t\t\t\t\t endExplosionFactory = RightExplosion::new;\n\t\t\t\t\t break;\n\t\t\t\t case LEFT:\n\t\t\t\t\t explosionFactory = HorizontalExplosion::new;\n\t\t\t\t\t endExplosionFactory = LeftExplosion::new;\n\t\t\t\t\t break;\n\t\t\t\t case UP:\n\t\t\t\t\t explosionFactory = VerticalExplosion::new;\n\t\t\t\t\t endExplosionFactory = TopExplosion::new;\n\t\t\t\t\t break;\n\t\t\t\t case DOWN:\n\t\t\t\t\t explosionFactory = VerticalExplosion::new;\n\t\t\t\t\t endExplosionFactory = BottomExplosion::new;\n\t\t\t\t\t break;\n\t\t\t\t default:\n\t\t\t\t\t throw new IllegalArgumentException();\n\t\t\t }\n\n\t\t\t int dx = target.x() - x();\n\t\t\t int dy = target.y() - y();\n\t\t\t int d = Math.max(Math.abs(dx + dy), 1);\n\n\t\t\t return Stream.iterate(1, i -> i + 1)\n\t\t\t .limit(d - 1)\n\t\t\t .map(i -> Pair.of(i, new Point(x() + i * dx / d,\n\t\t\t y() + i * dy / d)))\n\t\t\t .map(pair -> (pair.first() == d - 1 ? endExplosionFactory :\n\t\t\t\t\t explosionFactory).apply(pair.second(), arena));\n\t\t })\n\t\t .forEach(this::deleteAfter);\n\t}", "title": "" }, { "docid": "92561ac4f43f78d9411c0d051614b76e", "score": "0.51686805", "text": "public void hit(){\n\t\t// TODO: Show a particle and play a sound\n\t\tmIsHit = true;\n\t}", "title": "" }, { "docid": "bf5139720cda0a3ef4bd84dce355816b", "score": "0.5168451", "text": "public Particle activateParticle(float xloc, float yloc, \r\n\t float xspd, float yspd,\r\n\t float drag, double rot, double rotprob, float stabil, int spawndepth, float samplespacescale, int drawID)\r\n\t{\r\n\t\tParticle nxfp = nextFreeParticle(); \r\n\t\tif (nxfp != null)\r\n\t\t{\r\n\t\t\tnxfp.setTilePosition( 0 );\r\n\t\t\tnxfp.setActive( true );\r\n\t\t\tnxfp.setLString( lstring );\r\n\t\t\tnxfp.setCurrentAtom( 0 );\r\n\t\t\tnxfp.setLocation( xloc, yloc );\r\n\t\t\tnxfp.setSampleSpaceScale( samplespacescale );\r\n\t\t\tnxfp.setSpeed( xspd, yspd );\r\n\t\t\tnxfp.setMass( 1.0f );\r\n\t\t\tnxfp.setDrag( drag );\r\n\t\t\tnxfp.setRotation( rot );\r\n\t\t\tnxfp.setRotationProbability( rotprob );\r\n\t\t\tnxfp.setLFOFreq( baseLFOfreq );\r\n\t\t\tnxfp.setDrawMode( particledrawmode );\r\n\t\t\tnxfp.setSpawnDepth( spawndepth );\r\n\t\t\tnxfp.setStability( particlestability );\r\n\t\t\tnxfp.setAge( 0 );\r\n\t\t\tnxfp.setLifespan( agetobucketkick );\r\n\t\t\tnxfp.setLThreshold( lthreshold );\r\n\t\t\tnxfp.resetClippingAndThresholdMeasure( );\r\n\t\t\tnxfp.setSampleSource( toolsamplesource );\r\n\t\t\t//temporoarily use 'default' color mode to init the particle color\r\n\t\t\tif (spawndepth == 0) nxfp.setColorMode( Particle.particleColorMode.Default ); else nxfp.setColorMode( particlecolormode );\r\n\t\t\tnxfp.updateColor(); //(re)initialise color at (re)start of particle life\r\n\t\t\t\r\n\t\t\tnxfp.setColorMode( particlecolormode );\r\n\t\t\tnxfp.setDrawID( drawID );\r\n\t\t\tnxfp.setAlpha( basealpha );\r\n\t\t\tnxfp.setChannelAlpha(channelalpha);\r\n\t\t\tnxfp.setDrawIndex(drawIndexCounter++);\r\n\t\t\tnxfp.clearNeighbors(this);\r\n\t\t\t//nxfp.setColorMode(particlecolormode);\r\n\t\t} //else do nothing, no free particles available. \r\n\t\treturn nxfp;\r\n\t}", "title": "" }, { "docid": "393134c97d52182f85428b5d67ca9808", "score": "0.5166271", "text": "public void renderParticles(Entity var1, float var2)\n {\n EntityFX.interpPosX = var1.lastTickPosX + (var1.posX - var1.lastTickPosX) * (double)var2;\n EntityFX.interpPosY = var1.lastTickPosY + (var1.posY - var1.lastTickPosY) * (double)var2;\n EntityFX.interpPosZ = var1.lastTickPosZ + (var1.posZ - var1.lastTickPosZ) * (double)var2;\n\n try\n {\n for (int var8 = 0; var8 < layers; ++var8)\n {\n if (var8 == 3)\n {\n continue;\n }\n\n if (this.fxLayers[var8].size() != 0)\n {\n int var9 = 0;\n\n if (var8 == 0)\n {\n var9 = this.renderer.getTexture(\"/particles.png\");\n }\n\n if (var8 == 1)\n {\n var9 = this.renderer.getTexture(\"/terrain.png\");\n }\n\n if (var8 == 2)\n {\n var9 = this.renderer.getTexture(\"/gui/items.png\");\n }\n\n if (var8 == 4)\n {\n var9 = this.renderer.getTexture(\"/coro/weather/particles_64.png\");\n }\n\n GL11.glBindTexture(GL11.GL_TEXTURE_2D, var9);\n Tessellator var10 = Tessellator.instance;\n GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\n GL11.glEnable(GL11.GL_BLEND);\n GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);\n GL11.glAlphaFunc(GL11.GL_GREATER, 0.003921569F);\n //GL11.glRotatef(180.0F - RenderManager.instance.playerViewY, 0.0F, 1.0F, 0.0F);\n //GL11.glRotatef(-RenderManager.instance.playerViewX, 1.0F, 0.0F, 0.0F);\n //GL11.glPushMatrix();\n var10.startDrawingQuads();\n //GL11.glDisable(GL11.GL_ALPHA_TEST);\n GL11.glDisable(GL11.GL_CULL_FACE);\n //GL11.glDisable(GL11.GL_BLEND);\n\n //GL11.glEnable(GL11.GL_BLEND);\n //GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);\n //GL11.glAlphaFunc(GL11.GL_GREATER, 0.0F);\n //GL11.glRotatef(90F, 1.0F, 0.0F, 0.0F);\n //GL11.glRotatef(hmm, 0.0F, 1.0F, 0.0F);\n\n //int brightness = 0;\n if (ModLoader.getMinecraftInstance().thePlayer != null)\n {\n //brightness = ModLoader.getMinecraftInstance().thePlayer.getBrightnessForRender(var2);\n ExtendedRenderer.plBrightness = ModLoader.getMinecraftInstance().thePlayer.getBrightnessForRender(var2);\n }\n\n for (int var11 = 0; var11 < this.fxLayers[var8].size(); ++var11)\n {\n EntityFX var12 = (EntityFX)this.fxLayers[var8].get(var11);\n\n if (var12 == null)\n {\n //System.out.println(\"Null particle2!\");\n continue;\n }\n \n boolean render = true;\n \n if (var12 instanceof EntityRotFX) {\n \tif (var1.getDistanceToEntity(var12) > ((EntityRotFX) var12).maxRenderRange()) render = false;\n }\n\n //System.out.println(\"bn \" + ModLoader.getMinecraftInstance().thePlayer.getBrightness(var2));\n //caaaaache\n //var10.setBrightness(mod_ExtendedRenderer.plBrightness);\n //no cache\n //var10.setBrightness(var12.getBrightnessForRender(var2));\n if (render) {\n\t float var3 = MathHelper.cos(var12.rotationYaw * (float)Math.PI / 180.0F);\n\t float var4 = MathHelper.sin(var12.rotationYaw * (float)Math.PI / 180.0F);\n\t float var5 = -var4 * MathHelper.sin(var12.rotationPitch * (float)Math.PI / 180.0F);\n\t float var6 = var3 * MathHelper.sin(var12.rotationPitch * (float)Math.PI / 180.0F);\n\t float var7 = MathHelper.cos(var12.rotationPitch * (float)Math.PI / 180.0F);\n\t var12.renderParticle(var10, var2, var3, var7, var4, var5, var6);\n }\n }\n\n var10.draw();\n //GL11.glPopMatrix();\n //GL11.glRotatef(-hmm, 0.0F, 1.0F, 0.0F);\n //GL11.glRotatef(-90F, 1.0F, 0.0F, 0.0F);\n //GL11.glDisable(GL11.GL_BLEND);\n GL11.glEnable(GL11.GL_CULL_FACE);\n GL11.glDisable(GL11.GL_BLEND);\n GL11.glAlphaFunc(GL11.GL_GREATER, 0.1F);\n //GL11.glEnable(GL11.GL_ALPHA_TEST);\n hmm += 1F;\n\n if (hmm < -180)\n {\n hmm = 180;\n }\n\n if (hmm > 180)\n {\n hmm = -180;\n }\n }\n }\n }\n catch (IndexOutOfBoundsException ex)\n {\n //super small thread desync, caught and ignored\n }\n }", "title": "" }, { "docid": "8d45b44e5275c5b9a24465124f4d9862", "score": "0.5165125", "text": "@Override \n public void crashPlane() {\n crashed = true;\n speed = 0;\n exploding = true;\n explosionLength = 20;\n explosionLines = new Line2D[EXPLOSION_LINE_NUM];\n for (int i = 0; i < explosionLines.length; i++) {\n Point2D head = new Point2D.Double(\n 5 * cos(i * PI/3 + PI/6) + dCenter.getX(), \n dCenter.getY() - 5 * sin(i * PI/3 + PI/6));\n explosionLines[i] = new Line2D.Double(dCenter, head);\n }\n }", "title": "" }, { "docid": "094df91f7aa09ae8e6618872bea5247a", "score": "0.51612", "text": "boolean dead() {\n\t\treturn particles.isEmpty();\n\t}", "title": "" }, { "docid": "7b5b9511a1e4cb900df962f5b087d22e", "score": "0.5153109", "text": "public void setSpawnChunk(ChunkCoordinates par1ChunkCoordinates, boolean par2)\n {\n if (par1ChunkCoordinates != null)\n {\n this.spawnChunk = new ChunkCoordinates(par1ChunkCoordinates);\n this.spawnForced = par2;\n }\n else\n {\n this.spawnChunk = null;\n this.spawnForced = false;\n }\n }", "title": "" }, { "docid": "3c7720817a19649bf76f63032ed8649f", "score": "0.51493067", "text": "private boolean avoidTouchingGhostAhead() {\n\t\tGhost enemy = dangerousGhostsInRange(2).filter(ghost -> guy.moveDir == ghost.moveDir).findAny().orElse(null);\n\t\tif (enemy != null) {\n\t\t\tflee(enemy);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "93876919c9e1a53171d4bada01e7084a", "score": "0.5147827", "text": "private void checkParticle() {\n String particleKey = \"potions.\"+id+\".particle.\";\n if (cf.isSet(particleKey + \"enabled\") && cf.getBoolean(particleKey + \"enabled\")){\n boolean particleError = true;\n String targetParticle = cf.getString(particleKey + \"type\");\n for (Particle particle : Particle.values()){\n if (particle.toString().equalsIgnoreCase(targetParticle)){\n particleError = false;\n }\n }\n if (particleError) {\n potionErrors.add(Errors.PARTICLE);\n }\n }\n }", "title": "" }, { "docid": "13caab6837f2a8e5bf49fa735ac48519", "score": "0.5146163", "text": "public void spawnBloons(Bloon poped_bloon, List<Bloon> spawn_list, float space) {\n float middle_dist = poped_bloon.getDistance();\n float dist;\n if(spawn_list.size() % 2 == 0) // even number\n dist = middle_dist - (space * (spawn_list.size() / 2 - 0.5F));\n else // odd number\n dist = middle_dist - (space * (spawn_list.size() / 2));\n\n for(Bloon bloon: spawn_list){\n bloon.setDistance(dist);\n addBloonInBuffer(bloon);\n dist += space;\n }\n }", "title": "" }, { "docid": "e37b45800a92b3e806ac0897376ee22b", "score": "0.514495", "text": "public Entity shoot(float x, float y, int playerNum) {\n Entity entity = engine.createEntity();\n entity.add(engine.createComponent(MovementComponent.class));\n entity.add(engine.createComponent(BulletVelocityStatComponent.class));\n entity.add(engine.createComponent(TransformComponent.class));\n entity.add(engine.createComponent(BodyComponent.class));\n entity.add(engine.createComponent(TextureComponent.class));\n entity.add(engine.createComponent(IsBulletComponent.class));\n entity.getComponent(IsBulletComponent.class).playerNum = playerNum;\n entity.getComponent(TextureComponent.class).textureRegionAnimation = createTexture(\"Bullet_2\", 1);\n entity.getComponent(TextureComponent.class).name=\"Bullet_2\";\n entity.getComponent(BodyComponent.class).body = createBody(\"Circle\", x, y, 1f,true);\n entity.getComponent(BodyComponent.class).body.setBullet(true);\n entity.getComponent(TransformComponent.class).scale.x = 0.5f;\n entity.getComponent(TransformComponent.class).scale.y = 0.5f;\n entity.getComponent(BodyComponent.class).body.setUserData(entity);\n\n switch (playerNum+1){\n case 1:\n applyCollisionFilter(entity.getComponent(BodyComponent.class).body, Utilities.CATEGORY_BULLET_ONE, Utilities.MASK_BULLET_ONE,false);\n\n break;\n case 2:\n applyCollisionFilter(entity.getComponent(BodyComponent.class).body, Utilities.CATEGORY_BULLET_TWO, Utilities.MASK_BULLET_TWO,false);\n\n break;\n case 3:\n applyCollisionFilter(entity.getComponent(BodyComponent.class).body, Utilities.CATEGORY_BULLET_THREE, Utilities.MASK_BULLET_THREE,false);\n\n break;\n default:\n applyCollisionFilter(entity.getComponent(BodyComponent.class).body, Utilities.CATEGORY_BULLET_FOUR, Utilities.MASK_BULLET_FOUR,false);\n\n break;\n }\n engine.addEntity(entity);\n\n //Add particle to bullet\n entity.add(engine.createComponent(ParticleEffectComponent.class));\n Entity particle=createParticleEffect(ParticleEffectManager.SMOKETRIAL,entity.getComponent(BodyComponent.class));\n particle.getComponent(ParticleEffectDataComponent.class).isLooped=true;\n entity.getComponent(ParticleEffectComponent.class).effect= particle;\n particle.getComponent(ParticleEffectDataComponent.class).angleOffset=(float)Math.PI;\n\n\n return entity;\n }", "title": "" }, { "docid": "65c0754e357b81fc86adb772a930f4bb", "score": "0.5144508", "text": "public void loopBlessings() {\r\n\t\tblessingLocations.entrySet().removeIf(entry -> entry.getValue() <= 0);\r\n\t\tblessingLocations.forEach( (location, duration) -> {\r\n\t\t\tWorld world = location.getWorld();\r\n\t\t\tParticleHelper.spawnParticleRing(Particle.HEART, location, 8.0, 64, 1);\r\n\t\t\tCollection<Entity> nearbyEntites = world.getNearbyEntities(location, 8, 8, 8);\r\n\t\t\tnearbyEntites.removeIf(entity -> !(entity instanceof LivingEntity));\r\n\t\t\tfor (Entity entity : nearbyEntites){\r\n\t\t\t\tLivingEntity livingEntity = (LivingEntity)entity;\r\n\t\t\t\tif (livingEntity.getLocation().distance(location) <= 8){\r\n\t\t\t\t\tlivingEntity.addScoreboardTag(\"IMMORTAL\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tblessingLocations.put(location, --duration);\r\n\t\t});\r\n\t}", "title": "" }, { "docid": "eaa29817ae125ddd07cb5492ff76f8d3", "score": "0.51426643", "text": "public void spawnSpelers(){\n ArrayList<Tile> tiles = tileController.getTiles();\n Tile spawnTile = null;\n for(Tile tile:tiles){\n if (tile.getClass().equals(StartTile.class)){\n spawnTile = tile;\n break;\n }\n }\n player.setLocatie(spawnTile.getX(), spawnTile.getY());\n spawnTile.addSpeler(player);\n }", "title": "" }, { "docid": "2980268780d5ea7056d18e2b142a0547", "score": "0.51332587", "text": "public void splat(final Vector2f pos, final Sprite sprite){\r\n\t\tfinal int hsw = sprite.getWidth()/2;\r\n\t\tfinal int hsh = sprite.getHeight()/2;\r\n\t\tfor(int x=(int)(pos.x-hsw), sx=0; sx<sprite.getWidth(); ++x, ++sx){\r\n\t\t\tif(x<0) continue;\r\n\t\t\tif(x>=background.getWidth()) break;\r\n\t\t\tfor(int y=(int)(pos.y-hsh), sy=0; sy<sprite.getHeight(); ++y, ++sy){\r\n\t\t\t\t//verify we are in range\r\n\t\t\t\tif(y<0) continue;\r\n\t\t\t\tif(y>=background.getHeight()) break;\r\n\t\t\t\tsplatTarget.setARGB(background.getRGB(x, y));\r\n\t\t\t\tsplatPatch.setARGB(sprite.pixels[sx+sy*sprite.getWidth()]);\r\n\t\t\t\tColor4i.blend(splatPatch, splatTarget);\r\n\t\t\t\tbackground.setRGB(x, y, splatTarget.argb);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "eea1eb2a8d8301182e1e8b73055d219f", "score": "0.5126817", "text": "private void spawnSafehouse() {\n GridPoint2 position = new GridPoint2(56, 62);\n Entity safehouse = SafehouseFactory.createSafehouse();\n spawnEntityAt(safehouse, position, true, false);\n }", "title": "" }, { "docid": "e663a761e4d2ec5b57be9b772af7e5af", "score": "0.51224625", "text": "@Override\n public void defineSpawnVector() {\n }", "title": "" }, { "docid": "59be7b6223b57d5400fbf622d7a2928b", "score": "0.51214075", "text": "@Override\n public void A1(){\n shieldCast.tick();\n shieldCast2.tick();\n \n if (handler.getKeyManager().up)\n yMove = -speed;\n if (handler.getKeyManager().down)\n yMove = speed; \n \n if(dir == 1){\n x -= 8.5;\n int tx = (int)(x + xMove + bounds.x) / Tile.TILEWIDTH;\n \n if(collisionWithTile(tx, (int) (y + bounds.y) / Tile.TILEHEIGHT) &&\n collisionWithTile(tx, (int) (y + bounds.y + bounds.height) / Tile.TILEHEIGHT) || x < 0){\n protect = false;\n free = true;\n }\n }else if(dir == 2){\n x += 8.5;\n int tx = (int) (x + xMove + bounds.x + bounds.width) / Tile.TILEWIDTH;\n \n if(collisionWithTile(tx, (int) (y + bounds.y) / Tile.TILEHEIGHT) &&\n collisionWithTile(tx, (int) (y + bounds.y + bounds.height) / Tile.TILEHEIGHT) || x + bounds.width > Launcher.runWidth - Tile.TILEWIDTH * 2){\n protect = false;\n free = true;\n x -= 64;\n }\n }\n \n \n for (Entity e : handler.getWorld().getEntityManager().getEntities()){\n if (e.equals(this)){\n continue;\n }else if (e.getCollisionBounds(0f, 0f).intersects(getCollisionBounds(xMove, 0)) || e.getCollisionBounds(0f, 0f).intersects(getCollisionBounds(0, yMove))){\n free = true;\n if(e instanceof LiveEntity){\n shieldDmg += 30;\n knockback(100, 100, (int)(30 * (baseFactor + runeFactor)), 72);\n e.timeStack += 4;\n e.affectedBy = 1;\n e.stunned();\n if(e.getY() > y){\n e.setY(e.getY() - 64);\n }else{\n e.setY(e.getY() + 64); \n }\n }\n }\n }\n \n if(Math.abs(x - initX) >= 650){\n protect = false;\n free = true;\n }else if (handler.getKeyManager().a1 && Math.abs(x - initX) >= 150){\n charge = true;\n protect = false;\n adjust(330, 210);\n }\n \n }", "title": "" }, { "docid": "c572a62973843450e6ee1e9d08ac4f32", "score": "0.5115427", "text": "public void spawnBomb() {\n int r = (int) (Math.random() * (numRows));\n int c = (int) (Math.random() * (numColumns));\n if (grid[r][c] == null)\n grid[r][c] = new Cell(true);\n else\n spawnBomb();\n }", "title": "" }, { "docid": "1df227e03d6ca72ae6eed06547dffa3e", "score": "0.51124024", "text": "private void generateScenery() {\n for (Iterator<HMovingEntity> iterator = topScenery.iterator(); iterator.hasNext();) {\n HMovingEntity next = iterator.next();\n if (next.getPosX() + next.getWidth() <= 0) {\n iterator.remove();\n }\n }\n //remove bottom scenery off the canvas\n for (Iterator<HMovingEntity> iterator = bottomScenery.iterator(); iterator.hasNext();) {\n HMovingEntity next = iterator.next();\n if (next.getPosX() + next.getWidth() <= 0) {\n iterator.remove();\n }\n }\n if (topScenery.isEmpty()) {\n //generate up to five top scenic assets\n int numOfAssets = (int) (Math.random() * 6);\n double assetSpeed = Math.random() * 7 + 1;\n double offset = 0;\n for (int i = 0; i < numOfAssets; i++) {\n double width = Math.random() * screenWidth / 4 + 100;\n double height = width - 60;\n topScenery.add(new HMovingEntity(assetSpeed, true, screenWidth + offset, height, width, height, \"assets\\\\default\\\\cloud.png\"));\n assetSpeed++;\n offset = width + 50;\n }\n }\n if (bottomScenery.isEmpty()) {\n //generate up to seven bottom scenic assets\n int numOfAssets = (int) (Math.random() * 8);\n double assetSpeed = Math.random() * 3 + 1;\n double offset = 0;\n for (int i = 0; i < numOfAssets; i++) {\n double width = Math.random() * screenWidth / 4 + 100;\n double height = width / 2;\n bottomScenery.add(new HMovingEntity(assetSpeed, true, screenWidth + offset, screenHeight, width, height, \"assets\\\\default\\\\hill.png\"));\n offset = width + 50;\n }\n }\n }", "title": "" }, { "docid": "db001729e7396899d69eece67922948b", "score": "0.5109534", "text": "public static void projectileDeflection(Entity source, double dist)\n/* 104: */ {\n/* 105:106 */ AxisAlignedBB aabb = source.boundingBox.expand(dist - 1.0D, 3.0D, dist - 1.0D);\n/* 106:107 */ List<Entity> list = source.worldObj.getEntitiesWithinAABB(Entity.class, aabb);\n/* 107:108 */ for (Entity e : list) {\n/* 108:110 */ if (e != source)\n/* 109: */ {\n/* 110:112 */ Vec3 d = Vec3.createVectorHelper(source.posX - e.posX, source.posY - e.posY - 1.0D, source.posZ - e.posZ);\n/* 111:113 */ double distToEntity = Math.max(40.0D, (d.xCoord * d.xCoord + d.zCoord * d.zCoord) * 10.0D);\n/* 112:114 */ d.normalize();\n/* 113:115 */ double x = d.xCoord / distToEntity;\n/* 114:116 */ double y = d.yCoord / Math.max(15.0D, d.yCoord * d.yCoord * 10.0D) / distToEntity;\n/* 115:117 */ double z = d.zCoord / distToEntity;\n/* 116: */ \n/* 117:119 */ double speedModifier = 1.0D;\n/* 118:120 */ double dist3D = source.getDistanceSqToEntity(e) - 2.0D;\n/* 119:121 */ if ((dist3D < 10.0D) && (!(e instanceof EntityItem)) && (!(e instanceof EntityLivingBase)) && (e != source.ridingEntity) && (e != source.riddenByEntity))\n/* 120: */ {\n/* 121:123 */ if ((e instanceof EntityFireball))\n/* 122: */ {\n/* 123:125 */ e.addVelocity(-d.xCoord / dist3D, -d.yCoord / dist3D, -d.zCoord / dist3D);\n/* 124: */ }\n/* 125:127 */ else if ((e instanceof IThrowableEntity))\n/* 126: */ {\n/* 127:129 */ if (((IThrowableEntity)e).getThrower() != source) {\n/* 128:131 */ e.addVelocity(-d.xCoord / dist3D, -d.yCoord / dist3D, -d.zCoord / dist3D);\n/* 129: */ }\n/* 130: */ }\n/* 131:134 */ else if ((e instanceof EntityArrow))\n/* 132: */ {\n/* 133:136 */ dist3D = 4.0D;\n/* 134:137 */ e.addVelocity(-d.xCoord / dist3D, -d.yCoord / dist3D, -d.zCoord / dist3D);\n/* 135: */ }\n/* 136: */ else\n/* 137: */ {\n/* 138:141 */ e.addVelocity(-d.xCoord / dist3D * 4.0D, -d.yCoord / dist3D * 4.0D, -d.zCoord / dist3D * 4.0D);\n/* 139: */ }\n/* 140:143 */ if (source.worldObj.isRemote) {\n/* 141:145 */ source.worldObj.spawnParticle(\"enchantmenttable\", e.posX + itemRand.nextFloat() - 0.5D, e.posY + itemRand.nextFloat() - 0.5D, e.posZ + itemRand.nextFloat() - 0.5D, d.xCoord, d.yCoord, d.zCoord);\n/* 142: */ }\n/* 143: */ }\n/* 144: */ }\n/* 145: */ }\n/* 146: */ }", "title": "" }, { "docid": "f01f1c72c889e8c5bc77aeffcbfd3b3d", "score": "0.510464", "text": "public void onUpdate()\r\n {\r\n super.onUpdate();\r\n \r\n if(this.isSitting()){ //TODO\r\n \tdouble d0 = this.rand.nextGaussian() * 0.04D;\r\n \tdouble d1 = this.rand.nextGaussian() * 0.04D;\r\n \tdouble d2 = this.rand.nextGaussian() * 0.04D;\r\n \tworldObj.spawnParticle(\"smoke\", this.posX + (double)(this.rand.nextFloat() * this.width * 2.0F) - (double)this.width, this.posY + 0.5D + (double)(this.rand.nextFloat() * this.height), this.posZ + (double)(this.rand.nextFloat() * this.width * 2.0F) - (double)this.width, d0, d1, d2);\r\n }\r\n \r\n if (riddenByEntity != null) //check if there is a rider\r\n {\r\n //currentTarget = this;\r\n this.randomYawVelocity = 0; //try not to let the horse control where to look.\r\n this.rotationYaw = riddenByEntity.rotationYaw;\r\n }\r\n }", "title": "" }, { "docid": "77930b3fd5137d3c9466528256ebe15f", "score": "0.51015395", "text": "private static void move_bodies() {\n\t\tfor (int ii = 0; ii < bodies.size(); ii++) { \n\t\t\tfor (int jj = 0; jj < bodies.size(); jj++) {\n\t\t\t\tif (ii == jj)\n\t\t\t\t\tcontinue;\n\t\t\t\telse if (checkCollision(bodies.get(ii), bodies.get(jj))){ //check if collision has occurred \n\t\t\t\t\tsetCollision(bodies.get(ii), bodies.get(jj)); //respond to it\n\t\t\t\t\tif(!elastic)\n\t\t\t\t\t\tbreak; \n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t\tbodies.get(ii).bump = null; //no recent crash \n\t\t\t}\n\t\t}\n\t\tfor (int ii = 0; ii < bodies.size(); ii++) {\n\t\t\tif(ii == 0 && (proving_one || proving_two || proving_three)) \n\t\t\t\tbodies.get(ii).Step(frame, true, false); // not 2d simulated, step on frame \n\t\t\telse \n\t\t\t\tbodies.get(ii).Step(frame, true, true); // not 2d simulated, step on frame \n\t\t\tframe.addDrawable(bodies.get(ii)); \n\t\t}\n\t}", "title": "" }, { "docid": "0c38aa35136cd4ce005e59882c46d46c", "score": "0.51000476", "text": "private void createLoop() {\n int wallRemove = 10 + (innerWidth*innerHeight)/225;\r\n for (int i = 0; i < wallRemove;i++) {\r\n\r\n Random randX = new Random(System.currentTimeMillis());\r\n Random randY = new Random(System.currentTimeMillis()/2);\r\n int xPos;\r\n int yPos;\r\n do {\r\n\r\n xPos = randX.nextInt(innerWidth)+1;\r\n yPos = randY.nextInt(innerHeight)+1;\r\n\r\n } while (!finalMaze[xPos][yPos].isWall());\r\n finalMaze[xPos][yPos].removeWall();\r\n\r\n }\r\n }", "title": "" }, { "docid": "b34c714773ed7c2740e034886b69146d", "score": "0.5096562", "text": "public void onLivingUpdate() {\n/* 671 */ if (this.rand.nextInt(200) == 0)\n/* */ {\n/* 673 */ moveTail();\n/* */ }\n/* */ \n/* 676 */ super.onLivingUpdate();\n/* */ \n/* 678 */ if (!this.world.isRemote) {\n/* */ \n/* 680 */ if (this.rand.nextInt(900) == 0 && this.deathTime == 0)\n/* */ {\n/* 682 */ heal(1.0F);\n/* */ }\n/* */ \n/* 685 */ if (func_190684_dE()) {\n/* */ \n/* 687 */ if (!isEatingHaystack() && !isBeingRidden() && this.rand.nextInt(300) == 0 && this.world.getBlockState(new BlockPos(MathHelper.floor(this.posX), MathHelper.floor(this.posY) - 1, MathHelper.floor(this.posZ))).getBlock() == Blocks.GRASS)\n/* */ {\n/* 689 */ setEatingHaystack(true);\n/* */ }\n/* */ \n/* 692 */ if (isEatingHaystack() && ++this.field_190689_bJ > 50) {\n/* */ \n/* 694 */ this.field_190689_bJ = 0;\n/* 695 */ setEatingHaystack(false);\n/* */ } \n/* */ } \n/* */ \n/* 699 */ func_190679_dD();\n/* */ } \n/* */ }", "title": "" }, { "docid": "2d8413ea21920b44365711e527e6940e", "score": "0.50927216", "text": "public void run() {\n Random rnd = new Random();\n\n new Thread(() -> { // handle hits\n while (!gameOver && (zombieCount > 0 || zombies.size() > 0)) {\n synchronized (hits) {\n List<Hit> toBeRemoved = new ArrayList<>();\n hits.forEach(hit -> {\n if (hit.isDead()) {\n// System.out.println(\"removing hit -> \" + hit);\n toBeRemoved.add(hit);\n controller.removeObjectFromHitLayer(hit.getImg());\n } else {\n hit.moveForward();\n }\n });\n toBeRemoved.forEach(hits::remove);\n }\n try { sleep(50); } catch (Exception e) { System.out.println(\"hit handling thread interrupted\"); }\n }\n }).start();\n\n new Thread(() -> { // handle plants\n while (!gameOver && (zombieCount > 0 || zombies.size() > 0)) {\n// System.out.println(\"removing zombie\");\n synchronized (plants) {\n List<Plant> toBeRemoved = new ArrayList<>();\n plants.forEach(plant -> {\n boolean zombieIsPresent = zombies.stream().anyMatch(zombie -> zombie.getRow() == plant.getRow());\n if (plant.isDead()) {\n// System.out.println(\"removing plant -> \" + plant);\n plant.setFiring(false);\n toBeRemoved.add(plant);\n controller.removeObjectFromPlantLayer(plant.getCellId(), plant.getImg());\n } else if (!PlantType.isFlower(plant) && !PlantType.isBarrier(plant)) {\n if (!plant.isFiring() && zombieIsPresent){\n plant.setFiring(true);\n } else if (plant.isFiring() && !zombieIsPresent) {\n plant.setFiring(false);\n }\n }\n });\n toBeRemoved.forEach(plants::remove);\n }\n try { sleep(250); } catch (Exception e) { System.out.println(\"plant handling thread interrupted\"); }\n }\n plants.forEach(plant -> plant.setFiring(false));\n if (!gameOver) {\n controller.endOfGame(true);\n }\n }).start();\n\n new Thread(() -> { // releases zombies\n try { sleep(25000); } catch (Exception e) { System.out.println(\"game loop interrupted\"); }\n while (!gameOver && zombieCount > 0) {\n// System.out.println(\"releasing new zombie\");\n synchronized (zombies){\n Zombie zombie = new Zombie(zombieTypes.get(rnd.nextInt(zombieTypes.size())), rnd.nextInt(5), 220);\n controller.releaseZombie(zombie);\n zombies.add(zombie);\n }\n zombieCount--;\n try { sleep(rnd.nextInt(15000)); } catch (Exception e) { System.out.println(\"zombie releasing thread interrupted\"); }\n }\n }).start();\n\n new Thread(() -> { // handle zombies\n while (!gameOver && (zombieCount > 0 || zombies.size() > 0)) {\n synchronized (zombies) {\n List<Zombie> toBeRemoved = new ArrayList<>();\n zombies.forEach(zombie -> {\n if (zombie.isDead()) {\n toBeRemoved.add(zombie);\n controller.removeObjectFromZombieLayer(zombie.getImg());\n } else {\n // check collision with lawnMovers\n LawnMower lawnMover = lawnMowers.get(zombie.getRow());\n if (lawnMover != null && lawnMover.isRunning()) {\n // TODO: calculate offset\n if (lawnMover.getX() + 20 >= zombie.getX()) {\n zombie.setDead();\n }\n }\n // check collision with hits\n Optional<Hit> firstHit = hits.stream().filter(hit -> !PlantType.isFlower(hit.getParent())).filter(hit -> hit.getParent().getRow() == zombie.getRow()).max(Comparator.comparing(Hit::getX));\n if (firstHit.isPresent()) {\n Hit hit = firstHit.get();\n if (hit.getImg().getX() >= zombie.getX()) {\n zombie.receiveHit(hit);\n hit.setDead();\n }\n }\n // check collision with plants\n Optional<Plant> firstObstacle = plants.stream().filter(obstacle -> obstacle.getRow() == zombie.getRow()).max(Comparator.comparing(Plant::getX));\n if (firstObstacle.isPresent()) {\n Plant plant = firstObstacle.get();\n try {\n if (plant.getX() >= zombie.getX()) {\n zombie.setEating(true, plant);\n } else if (zombie.isEating()) {\n zombie.setEating(false);\n }\n } catch (Exception e) {\n System.out.println(\"img not present yet\");\n }\n }\n zombie.moveForward();\n }\n });\n toBeRemoved.forEach(zombies::remove);\n }\n for ( Zombie zombie : zombies.stream().filter(zombie -> zombie.getX() < 50).collect(Collectors.toList()) ) { // trigger lawnMovers if zombie reached house\n if (lawnMowers.stream().filter(Objects::nonNull).filter(mover -> !mover.isRunning()).anyMatch(lawnMower -> lawnMower.getRow() == zombie.getRow())) {\n LawnMower lawnMower = lawnMowers.get(zombie.getRow());\n Timeline t = new Timeline(new KeyFrame(Duration.millis(50), e -> {\n lawnMower.moveForward();\n }));\n t.setCycleCount(50);\n t.setOnFinished(event -> {\n if (lawnMower.getX() < 210) {\n t.play();\n } else {\n lawnMower.setRunning(false);\n lawnMowers.remove(lawnMower);\n lawnMowers.add(zombie.getRow(), null);\n controller.removeObjectFromZombieLayer(lawnMower.getImg());\n }\n });\n lawnMower.setRunning(true);\n t.play();\n zombie.setDead();\n } else {\n gameOver = true;\n controller.endOfGame(false);\n break;\n }\n }\n try { sleep(100); } catch (Exception e) { System.out.println(\"zombie handling thread interrupted\"); }\n }\n }).start();\n }", "title": "" }, { "docid": "617cfbfedfbc1b3abf63eb8543aa0de6", "score": "0.5090257", "text": "private void collisionMine()\n {\n Mine mine = (Mine) getOneIntersectingObject(Mine.class);\n if(mine != null)\n {\n getWorld().removeObject(mine);\n explosionStarted = true; \n }\n }", "title": "" }, { "docid": "beccc11ce481e28f4833643ca12f9596", "score": "0.5081713", "text": "public void placeMould() {\n\t\tElement currElem;\n\t\tint randX, randY;\n\t\tRandom rand = new Random();\n\t\t// Wait until en empty spot is found.\n\t\tdo {\n\t\t\trandX = rand.nextInt(X_TILES);\n\t\t\trandY = rand.nextInt(Y_TILES);\n\t\t\tcurrElem = worldGrid[randX][randY];\n\t\t} while (currElem.getType() != EMPTY_TYPE);\n\t\tMould head = new Mould(randX, randY);\n\t\tmouldHeads.put(head, null);\n\t\tmouldHead = head;\n\t\treplace(head);\n\t}", "title": "" }, { "docid": "2d17baa8a220952944ed10cbc515e71f", "score": "0.50804126", "text": "private void renderSpritesWithFog() {\n batch.begin();\n for (Sprite sprite : wallSprites) {\n if (withinDistance(sprite)) {\n sprite.draw(batch);\n }\n }\n for (Sprite sprite : areaSprites) {\n if (withinDistance(sprite)) {\n sprite.draw(batch);\n }\n }\n for (Sprite sprite : boxSprites) {\n if (withinDistance(sprite)) {\n sprite.draw(batch);\n }\n }\n\n playerSprite.draw(batch);\n if (board instanceof TwoPlayerBoard) {\n player2Sprite.draw(batch);\n }\n for (Sprite sprite : enemySprites) {\n if (withinDistance(sprite)) {\n sprite.draw(batch);\n }\n }\n\n batch.end();\n }", "title": "" }, { "docid": "a0389d6c193589f757966f1738a97c93", "score": "0.5079163", "text": "private void renderNearMe() {\n\t\t//Player position\n\t\tBlockPos pos = this.mc.player.getPosition();\n\t\t\n\t\t//Iterates over the whole image\n\t\tfor(int x=0;x<this.scaled.getWidth();x++)\n\t\t\tfor(int y=0;y<this.scaled.getHeight();y++) {\n\t\t\t\t//New block pos\n\t\t\t\tBlockPos renderPos = this.pos.add(x,0,y);\n\t\t\t\t\n\t\t\t\t//Checks if the distance is low enough\n\t\t\t\tif(renderPos.distanceSq(pos) > 30)\n\t\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t\t//Get color\n\t\t\t\tColor color = new Color(this.scaled.getRGB(x, y));\n\t\t\t\t\n\t\t\t\t//Renders the pixel\n\t\t\t\tGL11.glColor3f(color.getRed()/255f, color.getGreen()/255f, color.getBlue()/255f);\n\t\t\t\tRenderUtil.getInstance().renderBlockOverlay(renderPos.getX(), renderPos.getY(),renderPos.getZ(), .7f);\n\t\t\t}\n\t}", "title": "" }, { "docid": "c917e821b5d7d5c3961df8bd89bed3ad", "score": "0.50620615", "text": "public void onLivingUpdate()\n {\n super.onLivingUpdate();\n field_756_e = field_752_b;\n field_757_d = destPos;\n destPos += (double)(onGround ? -1 : 4) * 0.29999999999999999D;\n\n if (destPos < 0.0F)\n {\n destPos = 0.0F;\n }\n\n if (destPos > 1.0F)\n {\n destPos = 1.0F;\n }\n\n if (!onGround && field_755_h < 1.0F)\n {\n field_755_h = 1.0F;\n }\n\n field_755_h *= 0.90000000000000002D;\n\n if (!onGround && motionY < 0.0D)\n {\n motionY *= 0.59999999999999998D;\n }\n\n field_752_b += field_755_h * 2.0F;\n\n if (!worldObj.isRemote && --timeUntilNextEgg <= 0)\n {\n // worldObj.playSoundAtEntity(this, \"morecreeps:evileggbirth\", 1.0F, 1.0F);\n worldObj.playSound((EntityPlayer) null, getPosition(), MCSoundEvents.EVILEGGBIRTH, SoundCategory.NEUTRAL, 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n worldObj.playSound((EntityPlayer) null, getPosition(), SoundEvents.ENTITY_CHICKEN_EGG, SoundCategory.NEUTRAL, 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n dropItem(MCItems.EvilEgg, 1);\n timeUntilNextEgg = rand.nextInt(600) + 200;\n }\n }", "title": "" }, { "docid": "dffaceba2ea22d7a71644e12f5231b54", "score": "0.50608087", "text": "private void incrementPlanets(){\n\t\t\n\t\tif(allowColision){\n for(int i=0; i<planets.size(); i++){\n for(int j=0; j<planets.size(); j++){\n if(j==i) continue;\n double dist = planets.get(j).getPos().subtract(planets.get(i).getPos()).abs();\n if(dist < COLIDE_DIST){\n planets.add(planets.get(i).colide(planets.get(j)));\n if(j<i){\n planets.remove(i);\n planets.remove(j);\n }else{\n planets.remove(j);\n planets.remove(i);\n }\n }\n }\n }\n }\n \n ArrayList<Planet> buffer = new ArrayList<Planet>();\n int size = planets.size();\n for(int i=0; i<size; i++) {\n Vec3f F = new Vec3f();\n for(int j=0; j<size; j++){\n if(j==i) continue;\n Vec3f vecR = planets.get(j).getPos().subtract(planets.get(i).getPos());\n double dist = vecR.abs();\n if(dist > INFINITE_DIST) continue;\n dist = (dist>MIN_DIST)?dist:MIN_DIST;//can't be 0\n F = F.add(vecR.direction().times(\n \t\t(float)((GRAFITY_CONSTANT*planets.get(i).getMass()*\n \t\t\t\tplanets.get(j).getMass())/(dist))));//Eventuell nur ein mal dist\n }\n buffer.add(planets.get(i).Force(F, this.timeStep));\n }\n planets.clear();\n planets.addAll(buffer);\n\t}", "title": "" }, { "docid": "0062533d56a0f45471e70228e53bd3ea", "score": "0.5059283", "text": "public void play() {\n location.getWorld().spawnParticle(getParticle(), getLocation(), getTimesPlayed());\n }", "title": "" }, { "docid": "61fe34ca4dd3ed926aa248fad1880f5a", "score": "0.50590074", "text": "@Override\n public void execute() {\n // sposition = m_limelight.getSphericalPosition(m_elevator.getAngle(), m_elevator.getLimeLightHeight());\n // if(sposition[0]<Constants.MAX_SHOOTING_DISTANCE){\n // if(Constants.ball_Weight*(Constants.target_Height-m_elevator.getHeight())>m_shooter.getShooterEnergy()){\n // m_shooter.fireBall();\n // }\n \n // }\n \n\n\n }", "title": "" }, { "docid": "08af963c014f3d4eab61507638ddd86b", "score": "0.5058739", "text": "@SideOnly(Side.CLIENT)\r\n\tpublic static void spawnAttackParticle(Entity target, byte type, boolean setAtkTime)\r\n\t{\r\n\t\t//null check\r\n\t\tif (target == null) return;\r\n\t\t\t\t\r\n\t\tif (setAtkTime && target instanceof IShipEmotion)\r\n\t\t{\r\n\t\t\t((IShipEmotion) target).setAttackTick(50);\r\n\t\t}\r\n\t\t\r\n\t\t//0 = no particle\r\n\t\tif (type == 0) return;\r\n\t\t\r\n\t\t//target look\r\n\t\tdouble lookX = 0;\r\n\t\tdouble lookY = 0;\r\n\t\tdouble lookZ = 0;\r\n\t\t\r\n\t\t//get target position\r\n\t\tif (target != null)\r\n\t\t{\r\n\t\t\tif (type > 9)\r\n\t\t\t{\r\n\t\t\t\tlookY = target.height * 1.3D;\r\n\t\t\t}\r\n\t\t\telse if (target.getLookVec() != null)\r\n\t\t\t{\r\n\t\t\t\tlookX = target.getLookVec().x;\r\n\t\t\t\tlookY = target.getLookVec().y;\r\n\t\t\t\tlookZ = target.getLookVec().z;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//spawn particle\r\n\t\t\tspawnAttackParticleAt(target.posX, target.posY, target.posZ, lookX, lookY, lookZ, type);\r\n\t\t}\t\t\r\n\t}", "title": "" }, { "docid": "479da22b22bd584c1e0e7d42dcc6af4b", "score": "0.50583714", "text": "boolean isRandomSpawnEnabled();", "title": "" }, { "docid": "23428976a566d5de3bf887df3e120cd2", "score": "0.5055676", "text": "public void startGame(){\n for(int i=0; i <numberOfTubes; i++){\r\n loopingFloat += 0.1;\r\n //randomGenerator.nextFloat() * 0.3f;\r\n tubeOffset[i] = ((randomGenerator.nextFloat() * -0.2f) -0.4f)*(Gdx.graphics.getHeight() - gap - 200);\r\n tubeX[i] = Gdx.graphics.getWidth() / 2 - topTube.getWidth() / 2 + Gdx.graphics.getWidth() +i * distanceBetweenTubes;\r\n //topTubeRectangles[i] = new Rectangle();\r\n bottomTubeRectangles[i] = new Rectangle();\r\n }\r\n }", "title": "" }, { "docid": "90b64f84e92c0aaeef9ec5b7493b5605", "score": "0.50528044", "text": "public static void killAll(GameObject object, boolean particles, boolean killPowerups) {\n\t\tLinkedList<GameObject> allList = new LinkedList<GameObject>(GameObject.ALL_OBJECTS);\n\t\tfor (GameObject obj: allList) {\n\t\t\tif (obj instanceof Player || obj instanceof Border || obj instanceof Camera || obj instanceof SpringGrid) {\n\t\t\t} else if (obj instanceof PowerUp) {\n\t\t\t\tif (killPowerups) { //if we want it gone\n\t\t\t\t\tGameObject.ALL_OBJECTS.remove(obj);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tGameObject.ALL_OBJECTS.remove(obj);\n\t\t\t\t\t//was going to account for the given object here, \n\t\t\t\t\t\t//but its easier just to add it after\n\t\t\t}\n\t\t}\n\t\t\n\t\t//calling delete() on each object would be weird\n\t\tBlackHole.ALL_THIS.clear(); //just remove the references (this should be easier)\n\t\tConnectedTriangle.ALL_THIS.clear();\n\t\tHomingButterfly.ALL_THIS.clear();\n\t\tHomingDiamond.ALL_THIS.clear();\n\t\tPlayerBullet.ALL_THIS.clear();\n\t\tTextPopup.ALL_THIS.clear();\n\t\tShieldedClone.ALL_THIS.clear();\n\t\tShySquare.ALL_THIS.clear();\n\t\tSimpleSpinner.ALL_THIS.clear();\n\t\tSplitingSquare.ALL_THIS.clear();\n\t\tSpawner.ALL_THIS.clear();\n\t\t\n\t\tif (killPowerups) {\n\t\t\tPowerUp.ALL_THIS.clear(); //remove all powerups on a lost life\n\t\t}\n\t\t\n//\t\tgrid.pushGrid(player.x, player.y, 60, 20); //large\n\t\t\n\t\tif (particles) {\n\t\t\tfor (int i = 0; i < 40; i++) {\n\t\t\t\tfor (int j = 0; j < 20; j++) {\n\t\t\t\t\tMovingObject p = new Particle(2, Engine.WHITE, 0.7, Particle.DEFAULT_DRAG);\n\t\t\t\t\tp.x = playerPos[0];\n\t\t\t\t\tp.y = playerPos[1];\n\t\t\t\t\tdouble temp = 180*Engine.rand.nextInt(360)/Math.PI;\n\t\t\t\t\tp.dx = Engine.rand.nextDouble()*Math.cos(temp)*50;\n\t\t\t\t\tp.dy = Engine.rand.nextDouble()*Math.sin(temp)*50;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (object != null) {\n\t\t\tGameObject.ALL_OBJECTS.add(object); //now it exists to draw on the killScreen\n\t\t}\n\t}", "title": "" }, { "docid": "d8c1997d46b3ffb3d40e6e76f76299bc", "score": "0.5047307", "text": "private void spawnBullet() {\n Array<Entity> bullets = new Array<>();\n for (int i = 0; i < NUM_BULLETS; i++) {\n Entity newBullet = ProjectileFactory.createBullet();\n bullets.add(newBullet);\n spawnEntity(newBullet);\n }\n player.getComponent(PlayerRangeAttackComponent.class).addBullets(bullets);\n }", "title": "" }, { "docid": "b96bcf6e24ee7ec969297c196255cb44", "score": "0.5037892", "text": "public boolean hit(Actor actor) {\n\n float aX = loc.x + vel.x/2;\n float aY = loc.y + vel.y/2;\n\n if (actor.getClass().getSimpleName().equals(\"Boss\")) {\n Boss b = (Boss)actor;\n\n int fNum = b.frameC;\n\n int laserGunPath = 10;\n\n // ellipse(b.loc.x+80,b.loc.y,50,50);\n\n if (fNum == 0 || fNum == 1 || fNum == 2 || fNum == 8) {\n if (dist(aX,aY,b.loc.x+40,b.loc.y) < 310/2) {\n hitBossPart = SHELL;\n return true;\n }\n\n // ellipse(b.loc.x+40,b.loc.y,310,310);\n } else if (fNum == 3) {\n\n if(dist(aX,aY,b.loc.x+50,b.loc.y) < 230/2 && (aY < b.loc.y-laserGunPath || aY > b.loc.y+laserGunPath)) {\n hitBossPart = BODY;\n return true;\n } else if (dist(aX,aY,b.loc.x+80,b.loc.y) < 50/2) {\n hitBossPart = CRYSTAL;\n return true;\n } else {\n boolean b0 = dist(aX,aY,b.loc.x-113,b.loc.y-71 ) < 60 /2;\n boolean b1 = dist(aX,aY,b.loc.x-55 ,b.loc.y-85 ) < 77 /2;\n boolean b2 = dist(aX,aY,b.loc.x+9 ,b.loc.y-108) < 80 /2;\n boolean b3 = dist(aX,aY,b.loc.x+65 ,b.loc.y-50 ) < 200/2;\n boolean b4 = dist(aX,aY,b.loc.x-113,b.loc.y+71 ) < 60 /2;\n boolean b5 = dist(aX,aY,b.loc.x-55 ,b.loc.y+85 ) < 77 /2;\n boolean b6 = dist(aX,aY,b.loc.x+9 ,b.loc.y+108) < 80 /2;\n boolean b7 = dist(aX,aY,b.loc.x+65 ,b.loc.y+50 ) < 200/2;\n\n if (b0 || b1 || b2 || b3 || b4 || b5 || b6 || b7) {\n hitBossPart = ARM;\n return true;\n }\n }\n\n // ellipse(b.loc.x+50,b.loc.y,230,230);\n //\n // ellipse(b.loc.x-113,b.loc.y-71, 60, 60 );\n // ellipse(b.loc.x-55 ,b.loc.y-85, 77, 77 );\n // ellipse(b.loc.x+9 ,b.loc.y-108, 80, 80 );\n // ellipse(b.loc.x+65 ,b.loc.y-50, 200,200);\n\n } else if (fNum == 4) {\n\n if(dist(aX,aY,b.loc.x+50,b.loc.y) < 230/2 && (aY < b.loc.y-laserGunPath || aY > b.loc.y+laserGunPath)) {\n hitBossPart = BODY;\n return true;\n } else if (dist(aX,aY,b.loc.x+80,b.loc.y) < 50/2) {\n hitBossPart = CRYSTAL;\n return true;\n } else {\n\n boolean b0 = inBounds(b,aX,aY,200,57,-23,-113);\n\n boolean b1 = inBounds(b,aX,aY,200,57,-23,113);\n\n boolean b2 = dist(aX,aY,b.loc.x+65 ,b.loc.y-50 ) < 200/2;\n boolean b3 = dist(aX,aY,b.loc.x+65 ,b.loc.y+50 ) < 200/2;\n\n if (b0 || b1 || b2 || b3) {\n hitBossPart = ARM;\n return true;\n }\n }\n\n\n // ellipse(b.loc.x+50,b.loc.y,230,230);\n //\n // rect( b.loc.x-23 ,b.loc.y-113, 200,57 );\n // ellipse(b.loc.x+65 ,b.loc.y-50 , 200,200);\n\n } else if (fNum == 5) {\n\n\n if(dist(aX,aY,b.loc.x+50,b.loc.y) < 230/2 && (aY < b.loc.y-laserGunPath || aY > b.loc.y+laserGunPath)) {\n hitBossPart = BODY;\n return true;\n } else if (dist(aX,aY,b.loc.x+80,b.loc.y) < 50/2) {\n hitBossPart = CRYSTAL;\n return true;\n } else {\n boolean b0 = dist(aX,aY,b.loc.x-74 ,b.loc.y-185) < 70 /2;\n boolean b1 = dist(aX,aY,b.loc.x-21 ,b.loc.y-158) < 70 /2;\n boolean b2 = dist(aX,aY,b.loc.x+34 ,b.loc.y-132) < 70 /2;\n boolean b3 = dist(aX,aY,b.loc.x+96 ,b.loc.y-46 ) < 159/2;\n boolean b4 = dist(aX,aY,b.loc.x-74 ,b.loc.y+185) < 70 /2;\n boolean b5 = dist(aX,aY,b.loc.x-21 ,b.loc.y+158) < 70 /2;\n boolean b6 = dist(aX,aY,b.loc.x+34 ,b.loc.y+132) < 70 /2;\n boolean b7 = dist(aX,aY,b.loc.x+96 ,b.loc.y+46 ) < 159/2;\n\n if (b0 || b1 || b2 || b3 || b4 || b5 || b6 || b7) {\n hitBossPart = ARM;\n return true;\n }\n }\n\n // ellipse(b.loc.x+50,b.loc.y,230,230);\n //\n // ellipse(b.loc.x-74 ,b.loc.y-185, 70, 70 );\n // ellipse(b.loc.x-21 ,b.loc.y-158, 70, 70 );\n // ellipse(b.loc.x+34 ,b.loc.y-132, 70, 70 );\n // ellipse(b.loc.x+96 ,b.loc.y-46, 159,159);\n\n } else if (fNum == 6) {\n\n if(dist(aX,aY,b.loc.x+50,b.loc.y) < 230/2 && (aY < b.loc.y-laserGunPath || aY > b.loc.y+laserGunPath)) {\n hitBossPart = BODY;\n return true;\n } else if (dist(aX,aY,b.loc.x+80,b.loc.y) < 50/2) {\n hitBossPart = CRYSTAL;\n return true;\n } else {\n boolean b0 = dist(aX,aY,b.loc.x-33 ,b.loc.y-215) < 70 /2;\n boolean b1 = dist(aX,aY,b.loc.x+6 ,b.loc.y-176) < 70 /2;\n boolean b2 = dist(aX,aY,b.loc.x+49 ,b.loc.y-140) < 70 /2;\n boolean b3 = dist(aX,aY,b.loc.x+96 ,b.loc.y-46 ) < 159/2;\n boolean b4 = dist(aX,aY,b.loc.x-33 ,b.loc.y+215) < 70 /2;\n boolean b5 = dist(aX,aY,b.loc.x+6 ,b.loc.y+176) < 70 /2;\n boolean b6 = dist(aX,aY,b.loc.x+49 ,b.loc.y+140) < 70 /2;\n boolean b7 = dist(aX,aY,b.loc.x+96 ,b.loc.y+46 ) < 159/2;\n\n if (b0 || b1 || b2 || b3 || b4 || b5 || b6 || b7) {\n hitBossPart = ARM;\n return true;\n }\n }\n\n // ellipse(b.loc.x+50,b.loc.y,230,230);\n //\n // ellipse(b.loc.x-33 ,b.loc.y-215, 70, 70 );\n // ellipse(b.loc.x+6 ,b.loc.y-176, 70, 70 );\n // ellipse(b.loc.x+49 ,b.loc.y-140, 70, 70 );\n // ellipse(b.loc.x+96 ,b.loc.y-46, 159,159);\n\n } else if (fNum == 7) {\n\n if(dist(aX,aY,b.loc.x+50,b.loc.y) < 230/2 && (aY < b.loc.y-laserGunPath || aY > b.loc.y+laserGunPath)) {\n hitBossPart = BODY;\n return true;\n } else if (dist(aX,aY,b.loc.x+80,b.loc.y) < 50/2) {\n hitBossPart = CRYSTAL;\n return true;\n } else {\n boolean b0 = dist(aX,aY,b.loc.x+21 ,b.loc.y-292) < 70 /2;\n boolean b1 = dist(aX,aY,b.loc.x+42 ,b.loc.y-240) < 70 /2;\n boolean b2 = dist(aX,aY,b.loc.x+70 ,b.loc.y-190) < 70 /2;\n boolean b3 = dist(aX,aY,b.loc.x+93 ,b.loc.y-140) < 70 /2;\n boolean b4 = dist(aX,aY,b.loc.x+108,b.loc.y-57 ) < 118/2;\n boolean b5 = dist(aX,aY,b.loc.x+21 ,b.loc.y+292) < 70 /2;\n boolean b6 = dist(aX,aY,b.loc.x+42 ,b.loc.y+240) < 70 /2;\n boolean b7 = dist(aX,aY,b.loc.x+70 ,b.loc.y+190) < 70 /2;\n boolean b8 = dist(aX,aY,b.loc.x+93 ,b.loc.y+140) < 70 /2;\n boolean b9 = dist(aX,aY,b.loc.x+108,b.loc.y+57 ) < 118/2;\n\n if (b0 || b1 || b2 || b3 || b4 || b5 || b6 || b7 || b8 || b9) {\n hitBossPart = ARM;\n return true;\n }\n }\n\n // ellipse(b.loc.x+50,b.loc.y,230,230);\n //\n // ellipse(b.loc.x+21 ,b.loc.y-292, 70, 70 );\n // ellipse(b.loc.x+42 ,b.loc.y-240, 70, 70 );\n // ellipse(b.loc.x+70 ,b.loc.y-190, 70, 70 );\n // ellipse(b.loc.x+93 ,b.loc.y-140, 70, 70 );\n // ellipse(b.loc.x+108 ,b.loc.y-57, 118,118);\n\n } else if (fNum == 9) {\n\n if(dist(aX,aY,b.loc.x+50,b.loc.y) < 230/2 && (aY < b.loc.y-laserGunPath || aY > b.loc.y+laserGunPath)) {\n hitBossPart = BODY;\n return true;\n } else if (dist(aX,aY,b.loc.x+80,b.loc.y) < 50/2) {\n hitBossPart = CRYSTAL;\n return true;\n } else {\n boolean b0 = dist(aX,aY,b.loc.x-67 ,b.loc.y-81 ) < 70 /2;\n boolean b1 = dist(aX,aY,b.loc.x-47 ,b.loc.y-128) < 70 /2;\n boolean b2 = dist(aX,aY,b.loc.x+2 ,b.loc.y-158) < 70 /2;\n boolean b3 = dist(aX,aY,b.loc.x+62 ,b.loc.y-163) < 70 /2;\n boolean b4 = dist(aX,aY,b.loc.x+110,b.loc.y-76 ) < 154/2;\n boolean b5 = dist(aX,aY,b.loc.x-67 ,b.loc.y+81 ) < 70 /2;\n boolean b6 = dist(aX,aY,b.loc.x-47 ,b.loc.y+128) < 70 /2;\n boolean b7 = dist(aX,aY,b.loc.x+2 ,b.loc.y+158) < 70 /2;\n boolean b8 = dist(aX,aY,b.loc.x+62 ,b.loc.y+163) < 70 /2;\n boolean b9 = dist(aX,aY,b.loc.x+110,b.loc.y+76 ) < 154/2;\n\n if (b0 || b1 || b2 || b3 || b4 || b5 || b6 || b7 || b8 || b9) {\n hitBossPart = ARM;\n return true;\n }\n }\n\n // ellipse(b.loc.x+50,b.loc.y,230,230);\n //\n // ellipse(b.loc.x-67 ,b.loc.y-81 , 70, 70 );\n // ellipse(b.loc.x-47 ,b.loc.y-128, 70, 70 );\n // ellipse(b.loc.x+2 ,b.loc.y-158, 70, 70 );\n // ellipse(b.loc.x+62 ,b.loc.y-163, 70, 70 );\n // ellipse(b.loc.x+110,b.loc.y-76 , 154,154);\n\n } else if (fNum == 10) {\n\n if(dist(aX,aY,b.loc.x+50,b.loc.y) < 230/2 && (aY < b.loc.y-laserGunPath || aY > b.loc.y+laserGunPath)) {\n hitBossPart = BODY;\n return true;\n } else if (dist(aX,aY,b.loc.x+80,b.loc.y) < 50/2) {\n hitBossPart = CRYSTAL;\n return true;\n } else {\n boolean b0 = dist(aX,aY,b.loc.x-40 ,b.loc.y-167) < 70/2;\n boolean b1 = dist(aX,aY,b.loc.x+15 ,b.loc.y-200) < 70/2;\n boolean b2 = dist(aX,aY,b.loc.x+75 ,b.loc.y-198) < 70/2;\n boolean b3 = dist(aX,aY,b.loc.x+129,b.loc.y-168) < 70/2;\n boolean b4 = dist(aX,aY,b.loc.x+156,b.loc.y-108) < 70/2;\n boolean b5 = dist(aX,aY,b.loc.x+144,b.loc.y-47 ) < 70/2;\n boolean b6 = dist(aX,aY,b.loc.x-40 ,b.loc.y+167) < 70/2;\n boolean b7 = dist(aX,aY,b.loc.x+15 ,b.loc.y+200) < 70/2;\n boolean b8 = dist(aX,aY,b.loc.x+75 ,b.loc.y+198) < 70/2;\n boolean b9 = dist(aX,aY,b.loc.x+129,b.loc.y+168) < 70/2;\n boolean b10= dist(aX,aY,b.loc.x+156,b.loc.y+108) < 70/2;\n boolean b11= dist(aX,aY,b.loc.x+144,b.loc.y+47 ) < 70/2;\n\n if (b0 || b1 || b2 || b3 || b4 || b5 || b6 || b7 || b8 || b9 || b10 || b11) {\n hitBossPart = ARM;\n return true;\n }\n }\n\n\n // ellipse(b.loc.x+50,b.loc.y,230,230);\n //\n // ellipse(b.loc.x-40 ,b.loc.y-167, 70, 70 );\n // ellipse(b.loc.x+15 ,b.loc.y-200, 70, 70 );\n // ellipse(b.loc.x+75 ,b.loc.y-198, 70, 70 );\n // ellipse(b.loc.x+129,b.loc.y-168, 70, 70 );\n // ellipse(b.loc.x+156,b.loc.y-108, 70, 70 );\n // ellipse(b.loc.x+144,b.loc.y-47 , 70, 70 );\n\n } else if (fNum == 11) {\n\n if(dist(aX,aY,b.loc.x+50,b.loc.y) < 230/2 && (aY < b.loc.y-laserGunPath || aY > b.loc.y+laserGunPath)) {\n hitBossPart = BODY;\n return true;\n } else if (dist(aX,aY,b.loc.x+80,b.loc.y) < 50/2) {\n hitBossPart = CRYSTAL;\n return true;\n } else {\n boolean b0 = dist(aX,aY,b.loc.x-8 ,b.loc.y-225) < 70/2;\n boolean b1 = dist(aX,aY,b.loc.x+45 ,b.loc.y-240) < 70/2;\n boolean b2 = dist(aX,aY,b.loc.x+110,b.loc.y-226) < 70/2;\n boolean b3 = dist(aX,aY,b.loc.x+147,b.loc.y-173) < 70/2;\n boolean b4 = dist(aX,aY,b.loc.x+156,b.loc.y-108) < 70/2;\n boolean b5 = dist(aX,aY,b.loc.x+144,b.loc.y-47 ) < 70/2;\n boolean b6 = dist(aX,aY,b.loc.x-8 ,b.loc.y+225) < 70/2;\n boolean b7 = dist(aX,aY,b.loc.x+45 ,b.loc.y+240) < 70/2;\n boolean b8 = dist(aX,aY,b.loc.x+110,b.loc.y+226) < 70/2;\n boolean b9 = dist(aX,aY,b.loc.x+147,b.loc.y+173) < 70/2;\n boolean b10= dist(aX,aY,b.loc.x+156,b.loc.y+108) < 70/2;\n boolean b11= dist(aX,aY,b.loc.x+144,b.loc.y+47 ) < 70/2;\n\n if (b0 || b1 || b2 || b3 || b4 || b5 || b6 || b7 || b8 || b9 || b10 || b11) {\n hitBossPart = ARM;\n return true;\n }\n }\n\n // ellipse(b.loc.x+50,b.loc.y,230,230);\n //\n // ellipse(b.loc.x-8 ,b.loc.y-225, 70, 70 );\n // ellipse(b.loc.x+45 ,b.loc.y-240, 70, 70 );\n // ellipse(b.loc.x+110,b.loc.y-226, 70, 70 );\n // ellipse(b.loc.x+147,b.loc.y-173, 70, 70 );\n // ellipse(b.loc.x+156,b.loc.y-108, 70, 70 );\n // ellipse(b.loc.x+144,b.loc.y-47 , 70, 70 );\n\n } else if (fNum == 12) {\n\n if(dist(aX,aY,b.loc.x+50,b.loc.y) < 230/2 && (aY < b.loc.y-laserGunPath || aY > b.loc.y+laserGunPath)) {\n hitBossPart = BODY;\n return true;\n } else if (dist(aX,aY,b.loc.x+80,b.loc.y) < 50/2) {\n hitBossPart = CRYSTAL;\n return true;\n } else {\n\n boolean b0 = inBounds(b,aX,aY,60,144,-153,-130);\n\n boolean b1 = inBounds(b,aX,aY,60,144,-153,130);\n\n boolean b2 = dist(aX,aY,b.loc.x+36 ,b.loc.y-274) < 70 /2;\n boolean b3 = dist(aX,aY,b.loc.x+92 ,b.loc.y-268) < 70 /2;\n boolean b4 = dist(aX,aY,b.loc.x+137,b.loc.y-231) < 70 /2;\n boolean b5 = dist(aX,aY,b.loc.x+144,b.loc.y-47 ) < 70 /2;\n boolean b6 = dist(aX,aY,b.loc.x+36 ,b.loc.y+274) < 70 /2;\n boolean b7 = dist(aX,aY,b.loc.x+92 ,b.loc.y+268) < 70 /2;\n boolean b8 = dist(aX,aY,b.loc.x+137,b.loc.y+231) < 70 /2;\n boolean b9 = dist(aX,aY,b.loc.x+144,b.loc.y+47 ) < 70 /2;\n\n\n if (b0 || b1 || b2 || b3 || b4 || b5 || b6 || b7 || b8 || b9) {\n hitBossPart = ARM;\n return true;\n }\n }\n\n // ellipse(b.loc.x+50,b.loc.y,230,230);\n //\n // ellipse(b.loc.x+36 ,b.loc.y-274, 70, 70 );\n // ellipse(b.loc.x+92 ,b.loc.y-268, 70, 70 );\n // ellipse(b.loc.x+137,b.loc.y-231, 70, 70 );\n // ellipse(b.loc.x+144,b.loc.y-47 , 70, 70 );\n // rect( b.loc.x+153,b.loc.y-130, 60, 144);\n\n } else if (fNum == 13) {\n\n if(dist(aX,aY,b.loc.x+50,b.loc.y) < 230/2 && (aY < b.loc.y-laserGunPath || aY > b.loc.y+laserGunPath)) {\n hitBossPart = BODY;\n return true;\n } else if (dist(aX,aY,b.loc.x+80,b.loc.y) < 50/2) {\n hitBossPart = CRYSTAL;\n return true;\n } else {\n\n boolean b0 = inBounds(b,aX,aY,60,191,-153,-153);\n\n boolean b1 = inBounds(b,aX,aY,60,191,-153,153);\n\n\n boolean b2 = dist(aX,aY,b.loc.x+82 ,b.loc.y-309) < 70 /2;\n boolean b3 = dist(aX,aY,b.loc.x+130,b.loc.y-273) < 70 /2;\n boolean b4 = dist(aX,aY,b.loc.x+144,b.loc.y-47 ) < 70 /2;\n boolean b5 = dist(aX,aY,b.loc.x+82 ,b.loc.y+309) < 70 /2;\n boolean b6 = dist(aX,aY,b.loc.x+130,b.loc.y+273) < 70 /2;\n boolean b7 = dist(aX,aY,b.loc.x+144,b.loc.y+47 ) < 70 /2;\n\n\n if (b0 || b1 || b2 || b3 || b4 || b5 || b6 || b7) {\n hitBossPart = ARM;\n return true;\n }\n }\n\n // ellipse(b.loc.x+50,b.loc.y,230,230);\n //\n // ellipse(b.loc.x+82 ,b.loc.y-309, 70, 70 );\n // ellipse(b.loc.x+130,b.loc.y-273, 70, 70 );\n // ellipse(b.loc.x+144,b.loc.y-47 , 70, 70 );\n // rect( b.loc.x+153,b.loc.y-153, 60, 191);\n\n } else if (fNum == 14) {\n\n if(dist(aX,aY,b.loc.x+50,b.loc.y) < 230/2 && (aY < b.loc.y-laserGunPath || aY > b.loc.y+laserGunPath)) {\n hitBossPart = BODY;\n return true;\n } else if (dist(aX,aY,b.loc.x+80,b.loc.y) < 50/2) {\n hitBossPart = CRYSTAL;\n return true;\n } else {\n\n boolean b0 = inBounds(b,aX,aY,60,237,-153,-178);\n\n boolean b1 = inBounds(b,aX,aY,60,237,-153,178);\n\n boolean b2 = dist(aX,aY,b.loc.x+123,b.loc.y-325) < 70 /2;\n boolean b3 = dist(aX,aY,b.loc.x+144,b.loc.y-47 ) < 70 /2;\n boolean b4 = dist(aX,aY,b.loc.x+123,b.loc.y+325) < 70 /2;\n boolean b5 = dist(aX,aY,b.loc.x+144,b.loc.y+47 ) < 70 /2;\n\n if (b0 || b1 || b2 || b3 || b4 || b5) {\n hitBossPart = ARM;\n return true;\n }\n }\n\n // ellipse(b.loc.x+50,b.loc.y,230,230);\n //\n // ellipse(b.loc.x+123,b.loc.y-325, 70, 70 );\n // ellipse(b.loc.x+144,b.loc.y-47 , 70, 70 );\n // rect( b.loc.x+153,b.loc.y-178, 60, 237);\n\n } else if (fNum == 15) {\n\n if(dist(aX,aY,b.loc.x+50,b.loc.y) < 230/2 && (aY < b.loc.y-laserGunPath || aY > b.loc.y+laserGunPath)) {\n hitBossPart = BODY;\n return true;\n } else if (dist(aX,aY,b.loc.x+80,b.loc.y) < 50/2) {\n hitBossPart = CRYSTAL;\n return true;\n } else {\n\n boolean b0 = inBounds(b,aX,aY,60,253,-153,-178);\n\n boolean b1 = inBounds(b,aX,aY,60,253,-153,178);\n\n boolean b2 = dist(aX,aY,b.loc.x+145,b.loc.y-339) < 58 /2;\n boolean b3 = dist(aX,aY,b.loc.x+144,b.loc.y-47 ) < 70 /2;\n boolean b4 = dist(aX,aY,b.loc.x+145,b.loc.y+339) < 58 /2;\n boolean b5 = dist(aX,aY,b.loc.x+144,b.loc.y+47 ) < 70 /2;\n\n if (b0 || b1 || b2 || b3 || b4 || b5) {\n hitBossPart = ARM;\n return true;\n }\n }\n\n // ellipse(b.loc.x+50,b.loc.y,230,230);\n //\n // ellipse(b.loc.x+145,b.loc.y-339, 58, 58 );\n // ellipse(b.loc.x+144,b.loc.y-47 , 70, 70 );\n // rect( b.loc.x+153,b.loc.y-178, 60, 253);\n\n } else if (fNum == 16) {\n\n if(dist(aX,aY,b.loc.x+50,b.loc.y) < 230/2 && (aY < b.loc.y-laserGunPath || aY > b.loc.y+laserGunPath)) {\n hitBossPart = BODY;\n return true;\n } else if (dist(aX,aY,b.loc.x+80,b.loc.y) < 50/2) {\n hitBossPart = CRYSTAL;\n return true;\n } else {\n\n boolean b0 = inBounds(b,aX,aY,60,293,-153,-205);\n\n boolean b1 = inBounds(b,aX,aY,60,293,-153,205);\n\n boolean b2 = dist(aX,aY,b.loc.x+144,b.loc.y-47 ) < 70 /2;\n boolean b3 = dist(aX,aY,b.loc.x+144,b.loc.y+47 ) < 70 /2;\n\n if (b0 || b1 || b2 || b3) {\n hitBossPart = ARM;\n return true;\n }\n }\n\n // ellipse(b.loc.x+50,b.loc.y,230,230);\n //\n // ellipse(b.loc.x+144,b.loc.y-47 , 70, 70 );\n // rect( b.loc.x+153,b.loc.y-205, 60, 293);\n\n }\n\n return false;\n } else {\n\n float bWidthMin = actor.loc.x-actor.cWidth/2;\n float bWidthMax = actor.loc.x+actor.cWidth/2;\n float bHeightMin = actor.loc.y-actor.cHeight/2;\n float bHeightMax = actor.loc.y+actor.cHeight/2;\n\n return aX > bWidthMin && aX < bWidthMax && aY > bHeightMin && aY < bHeightMax;\n }\n\n }", "title": "" }, { "docid": "4ce2bba8f0311e242057c0e0803b53eb", "score": "0.5032906", "text": "public void drawOverlays(Graphics g, Image commandImage) {\n //GL13.glActiveTexture(GL13.GL_TEXTURE1);\n //runGroundParticles[0].bind();\n //TextureImpl.bindNone();\n //commandImage.bind();\n //commandImage.draw(0.0f, 0.0f);\n //g.drawImage(commandImage, 0,0, Game.GAME_COORD_SIZE.x, Game.GAME_COORD_SIZE.y, 0,0, RESOLUTION_X, RESOLUTION_Y);\n //runGroundParticles[0].bind();\n //GL13.glActiveTexture(GL13.GL_TEXTURE0);\n shader.start();\n for(int i=0; i<NUM_PARTICLES; ++i) {\n double fade = Math.sin(particles[i].lifeTime * Math.PI);\n fade = Math.pow(fade, 0.4f);\n shader.setUniform(\"blur\", (1-(float)fade));\n float magicScaleX = 1.0f / commandImage.getTextureWidth();\n float magicScaleY = 1.0f / commandImage.getTextureHeight();\n shader.setUniform(\"mapScaleOff\", particles[i].scale / Game.GAME_COORD_SIZE.x / magicScaleX, particles[i].scale / Game.GAME_COORD_SIZE.y / magicScaleY,\n particles[i].position.x / Game.GAME_COORD_SIZE.x / magicScaleX, particles[i].position.y / Game.GAME_COORD_SIZE.y / magicScaleY);\n shader.setUniform(\"type\", particles[i].type);\n\n GL13.glActiveTexture(GL13.GL_TEXTURE1);\n particles[i].sprite.bind();\n GL13.glActiveTexture(GL13.GL_TEXTURE0);\n\n //commandImage.draw(particles[i].position.x, particles[i].position.y, particles[i].scale/ TEXTURE_SIZE);\n g.drawImage(commandImage, particles[i].position.x, particles[i].position.y,\n particles[i].position.x + particles[i].scale, particles[i].position.y + particles[i].scale,\n 0, 0, commandImage.getWidth() * magicScaleX, commandImage.getHeight() * magicScaleY);\n //particles[i].sprite.draw(particles[i].position.x, particles[i].position.y, particles[i].scale/ TEXTURE_SIZE);\n //particles[i].sprite.drawEmbedded(particles[i].position.x, particles[i].position.y, particles[i].sprite.getTextureWidth() * particles[i].scale/ TEXTURE_SIZE, particles[i].sprite.getTextureHeight() * particles[i].scale/ TEXTURE_SIZE);\n }\n shader.end();\n GL13.glActiveTexture(GL13.GL_TEXTURE1);\n TextureImpl.bindNone();\n GL13.glActiveTexture(GL13.GL_TEXTURE0);\n }", "title": "" }, { "docid": "8235435a692835f9735da200f870c478", "score": "0.50302255", "text": "avoid_obstacles createavoid_obstacles();", "title": "" }, { "docid": "943838c068394800fbcd7a2df1873954", "score": "0.50258666", "text": "private void testDots() {\n // Since we cannot modify a list in-place,\n // and java lacks list comprehensions,\n // we need to do crazy list shuffling.\n //\n // Why, Java, do you forsake me?\n // It could have been so nice:\n // dots = [i for i in dots if <condition>]\n //\n // Instead, we're stuck with this:\n ArrayList<int[]> temparr = new ArrayList<int[]>();\n for (int[] i : dots)\n {\n boolean del = false;\n if ((((playerx-(HALF_TILE_SIZE))/TILE_SIZE)==i[0])&&(((playery-(HALF_TILE_SIZE))/TILE_SIZE)==i[1]))\n {\n del = true;\n }\n if (!del)\n {\n temparr.add(i);\n }\n }\n dots = temparr;\n }", "title": "" } ]
34ee27ef4ce6e906635d9fa1ecc8286c
if reach the end
[ { "docid": "d38f1a914d4f5f391deeefb41e11f9d8", "score": "0.0", "text": "private void backtrack(String word, List<String> res, int pos, String prev, int count) {\n if (pos == word.length()) {\n if (count > 0) {\n prev += count;\n }\n res.add(prev);\n }\n else {\n // two direction, abbreviate current character or not\n backtrack(word, res, pos + 1, prev, count + 1);\n // if not abbreviate current char, check the count and append current char\n if (count > 0) {\n prev += count;\n }\n prev += word.charAt(pos);\n backtrack(word, res, pos + 1, prev, 0);\n }\n }", "title": "" } ]
[ { "docid": "f43a2ff9b150dacfebbc3e37be923da0", "score": "0.78649765", "text": "boolean isEnd();", "title": "" }, { "docid": "efe836e69577aa6cf51ef0c243f5c9b6", "score": "0.75508827", "text": "boolean atEnd();", "title": "" }, { "docid": "d85aaeefc3943b86fcfa5f2f8ce37926", "score": "0.7471138", "text": "@Override\n\tpublic boolean isEnd() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "962f1c2c2ea9533de0a5b849e3cfb340", "score": "0.73870206", "text": "public boolean endReached() {\n return !script.hasNext();\n }", "title": "" }, { "docid": "8fc69b2a288d2737191489af022ddc61", "score": "0.7330749", "text": "public int end() { return _end; }", "title": "" }, { "docid": "3ce8e8d4e0bdda52f0149294cdbb68ce", "score": "0.7262125", "text": "protected boolean isEnd() {\n\t\treturn this.end;\n\t}", "title": "" }, { "docid": "1ce511805c05debb0c6885fd91a7c05a", "score": "0.7210339", "text": "public final boolean atEnd()\n\t{\n\t\treturn pos == length;\n\t}", "title": "" }, { "docid": "1bd756ace457a1adddefc2d39cf00973", "score": "0.71716714", "text": "@Override\n\t\tpublic boolean end() {\n\t\t\treturn i == 0;\n\t\t}", "title": "" }, { "docid": "a91c0b105a43d338e7867a2b4ee3eed2", "score": "0.7119275", "text": "private boolean atEnd() {\n return currentPosition >= source.length();\n }", "title": "" }, { "docid": "f306e6eda97c5861fe345b0d9768f543", "score": "0.7081061", "text": "@Override\n\t\t\tpublic void end() {\n\n\t\t\t}", "title": "" }, { "docid": "c20994e264128d003ca4ddece285b88e", "score": "0.70507485", "text": "protected void end() {\n\t\t\n\t}", "title": "" }, { "docid": "9ccf7e3f862ffbc4fab1dec2cea5710d", "score": "0.70503014", "text": "@Override\n\tprotected void end() {\n\t\t\n\t}", "title": "" }, { "docid": "c7363f0cf0af6d49d8450fe2789f2a8e", "score": "0.70419514", "text": "protected void end() {}", "title": "" }, { "docid": "c3b080aaacec8f8281e6816a06308797", "score": "0.70271933", "text": "@Override\n\tprotected void end() {\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "28cb5a44f77849985622147e87f15f27", "score": "0.70082414", "text": "public boolean gotoEnd() {\n\t\tcursor = head;\n\t\tif (!isEmpty()) {\n\t\t\twhile (cursor.getNext() != null) {\n\t\t\t\tcursor = cursor.getNext();\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "fb41236ff7e8cbb299ccacee0913e540", "score": "0.6986475", "text": "public boolean offEnd() {\r\n return iterator == null;\r\n }", "title": "" }, { "docid": "457cd5764bdf7d36f51542ccd824e798", "score": "0.69846845", "text": "boolean isEnd(int pos);", "title": "" }, { "docid": "74f4f69e599b52d98e7827f3121b32b1", "score": "0.698065", "text": "protected void end() {\n \t\n }", "title": "" }, { "docid": "74f4f69e599b52d98e7827f3121b32b1", "score": "0.698065", "text": "protected void end() {\n \t\n }", "title": "" }, { "docid": "74f4f69e599b52d98e7827f3121b32b1", "score": "0.698065", "text": "protected void end() {\n \t\n }", "title": "" }, { "docid": "e6026dae3d22c78173256d8a1ec47d7a", "score": "0.6974703", "text": "@Override\n\tpublic void end() {\n\t\t\n\t}", "title": "" }, { "docid": "e6026dae3d22c78173256d8a1ec47d7a", "score": "0.6974703", "text": "@Override\n\tpublic void end() {\n\t\t\n\t}", "title": "" }, { "docid": "e6026dae3d22c78173256d8a1ec47d7a", "score": "0.6974703", "text": "@Override\n\tpublic void end() {\n\t\t\n\t}", "title": "" }, { "docid": "57e940de3ffb8f32e2d4cb6790f53164", "score": "0.69627637", "text": "@Override\r\n protected void end() {\r\n }", "title": "" }, { "docid": "eca28519923a070fd223d784835651c9", "score": "0.6961153", "text": "@Override\n\tprotected void end() {\n\t}", "title": "" }, { "docid": "aa960a8f4e56ac5b41c5955cd040a9e1", "score": "0.6955589", "text": "@Override\r\n protected void end() {\r\n }", "title": "" }, { "docid": "e8d377e0895432bf6dec5996ece05b19", "score": "0.6953361", "text": "public boolean isEnd() {\n return end;\n }", "title": "" }, { "docid": "b0a4ff1e4a90f0a832c397f670d7f73d", "score": "0.6949128", "text": "@Override\n protected void end() {\n }", "title": "" }, { "docid": "b0a4ff1e4a90f0a832c397f670d7f73d", "score": "0.6949128", "text": "@Override\n protected void end() {\n }", "title": "" }, { "docid": "6c94bf0390071dbee6335a61db6d6925", "score": "0.6941058", "text": "@Override\n\tprotected void end() {\n\n\t}", "title": "" }, { "docid": "5fa2d13a06274ded744ba01c9e60c27f", "score": "0.6932289", "text": "public static boolean isEnd() {\n return end;\n }", "title": "" }, { "docid": "466b9c942b7258188c81e42faae40537", "score": "0.6924884", "text": "public boolean END()\n\t{\n\t\treturn END;\n\t}", "title": "" }, { "docid": "092443773d911fbcdd851f99163bff7c", "score": "0.69166493", "text": "protected void end() {\n\n\t}", "title": "" }, { "docid": "db897aeee22b831f5076ce98638df250", "score": "0.6912502", "text": "@Override\n\t\tpublic boolean reachedEnd() throws IOException {\n\t\t\treturn false;\n\t\t}", "title": "" }, { "docid": "78a0458822bddd334df28795f056538a", "score": "0.6900947", "text": "@Override\n\tprotected void end() {\n }", "title": "" }, { "docid": "9251b5396889bb18cccbef2a345f5a89", "score": "0.6900578", "text": "@Override\r\n\tpublic boolean isEnd() {\r\n\t\treturn isEND(currentA);\r\n\t}", "title": "" }, { "docid": "47278364ff1a2a0295bc50ad018996b8", "score": "0.6897374", "text": "private boolean isAtEnd () {\n return pointerPos >= source.length();\n }", "title": "" }, { "docid": "36a041245c9f6393db87cb109509c701", "score": "0.68919706", "text": "@Override\n\tpublic void end() {\n\n\t}", "title": "" }, { "docid": "f613ecc3298e4e70c1f1d15694ee6682", "score": "0.68740845", "text": "protected void end() {\n\t}", "title": "" }, { "docid": "f613ecc3298e4e70c1f1d15694ee6682", "score": "0.68740845", "text": "protected void end() {\n\t}", "title": "" }, { "docid": "f613ecc3298e4e70c1f1d15694ee6682", "score": "0.68740845", "text": "protected void end() {\n\t}", "title": "" }, { "docid": "f613ecc3298e4e70c1f1d15694ee6682", "score": "0.68740845", "text": "protected void end() {\n\t}", "title": "" }, { "docid": "f613ecc3298e4e70c1f1d15694ee6682", "score": "0.68740845", "text": "protected void end() {\n\t}", "title": "" }, { "docid": "f613ecc3298e4e70c1f1d15694ee6682", "score": "0.68740845", "text": "protected void end() {\n\t}", "title": "" }, { "docid": "f613ecc3298e4e70c1f1d15694ee6682", "score": "0.68740845", "text": "protected void end() {\n\t}", "title": "" }, { "docid": "3ec6cf13470c2f66898af5fea066f5eb", "score": "0.68712837", "text": "@Override\n protected void end() {\n }", "title": "" }, { "docid": "3ec6cf13470c2f66898af5fea066f5eb", "score": "0.68712837", "text": "@Override\n protected void end() {\n }", "title": "" }, { "docid": "3ec6cf13470c2f66898af5fea066f5eb", "score": "0.68712837", "text": "@Override\n protected void end() {\n }", "title": "" }, { "docid": "3ec6cf13470c2f66898af5fea066f5eb", "score": "0.68712837", "text": "@Override\n protected void end() {\n }", "title": "" }, { "docid": "3ec6cf13470c2f66898af5fea066f5eb", "score": "0.68712837", "text": "@Override\n protected void end() {\n }", "title": "" }, { "docid": "3ec6cf13470c2f66898af5fea066f5eb", "score": "0.68712837", "text": "@Override\n protected void end() {\n }", "title": "" }, { "docid": "3ec6cf13470c2f66898af5fea066f5eb", "score": "0.68712837", "text": "@Override\n protected void end() {\n }", "title": "" }, { "docid": "2c29388ad834650eb040353ab41bbbf4", "score": "0.68643856", "text": "public boolean isEnd() {\n\treturn reason == END;\n}", "title": "" }, { "docid": "dcbd06bda9e492fb54d1be275a551e4f", "score": "0.6851339", "text": "long getEnd();", "title": "" }, { "docid": "dcbd06bda9e492fb54d1be275a551e4f", "score": "0.6851339", "text": "long getEnd();", "title": "" }, { "docid": "03630731554705618da411fd70bac605", "score": "0.6826876", "text": "@Override\n protected void end()\n {\n }", "title": "" }, { "docid": "177be56ce5943c4db255b591acba7178", "score": "0.6818624", "text": "protected void end()\n\t{\n\n\t}", "title": "" }, { "docid": "41b87dd9682a0e162dc9a0f05e085dad", "score": "0.68137366", "text": "public boolean isEnd() {\n return isEnd;\n }", "title": "" }, { "docid": "c5962476b7771f7e0f312879c0518252", "score": "0.6806389", "text": "@Override\n protected void end()\n {\n \n }", "title": "" }, { "docid": "b31eec313e912cc21c0b3b87f392bd74", "score": "0.6787146", "text": "protected void end()\n\t{\n\t}", "title": "" }, { "docid": "a0ed6af8d370586408e393829f564954", "score": "0.67425656", "text": "protected void end() {\n }", "title": "" }, { "docid": "ded293700fb04a3f49bde05fabb2e231", "score": "0.67283523", "text": "protected void end() {\n }", "title": "" }, { "docid": "ded293700fb04a3f49bde05fabb2e231", "score": "0.67283523", "text": "protected void end() {\n }", "title": "" }, { "docid": "ded293700fb04a3f49bde05fabb2e231", "score": "0.67283523", "text": "protected void end() {\n }", "title": "" }, { "docid": "ded293700fb04a3f49bde05fabb2e231", "score": "0.67283523", "text": "protected void end() {\n }", "title": "" }, { "docid": "ded293700fb04a3f49bde05fabb2e231", "score": "0.67283523", "text": "protected void end() {\n }", "title": "" }, { "docid": "ded293700fb04a3f49bde05fabb2e231", "score": "0.67283523", "text": "protected void end() {\n }", "title": "" }, { "docid": "ded293700fb04a3f49bde05fabb2e231", "score": "0.67283523", "text": "protected void end() {\n }", "title": "" }, { "docid": "ded293700fb04a3f49bde05fabb2e231", "score": "0.67283523", "text": "protected void end() {\n }", "title": "" }, { "docid": "ded293700fb04a3f49bde05fabb2e231", "score": "0.67283523", "text": "protected void end() {\n }", "title": "" }, { "docid": "ded293700fb04a3f49bde05fabb2e231", "score": "0.67283523", "text": "protected void end() {\n }", "title": "" }, { "docid": "ded293700fb04a3f49bde05fabb2e231", "score": "0.67283523", "text": "protected void end() {\n }", "title": "" }, { "docid": "ded293700fb04a3f49bde05fabb2e231", "score": "0.67283523", "text": "protected void end() {\n }", "title": "" }, { "docid": "ded293700fb04a3f49bde05fabb2e231", "score": "0.67283523", "text": "protected void end() {\n }", "title": "" }, { "docid": "ded293700fb04a3f49bde05fabb2e231", "score": "0.67283523", "text": "protected void end() {\n }", "title": "" }, { "docid": "ded293700fb04a3f49bde05fabb2e231", "score": "0.67283523", "text": "protected void end() {\n }", "title": "" }, { "docid": "ded293700fb04a3f49bde05fabb2e231", "score": "0.67283523", "text": "protected void end() {\n }", "title": "" }, { "docid": "ded293700fb04a3f49bde05fabb2e231", "score": "0.67283523", "text": "protected void end() {\n }", "title": "" }, { "docid": "ded293700fb04a3f49bde05fabb2e231", "score": "0.67283523", "text": "protected void end() {\n }", "title": "" }, { "docid": "ded293700fb04a3f49bde05fabb2e231", "score": "0.67283523", "text": "protected void end() {\n }", "title": "" }, { "docid": "ded293700fb04a3f49bde05fabb2e231", "score": "0.67283523", "text": "protected void end() {\n }", "title": "" }, { "docid": "ded293700fb04a3f49bde05fabb2e231", "score": "0.67283523", "text": "protected void end() {\n }", "title": "" }, { "docid": "ded293700fb04a3f49bde05fabb2e231", "score": "0.67283523", "text": "protected void end() {\n }", "title": "" }, { "docid": "ded293700fb04a3f49bde05fabb2e231", "score": "0.67283523", "text": "protected void end() {\n }", "title": "" }, { "docid": "ded293700fb04a3f49bde05fabb2e231", "score": "0.67283523", "text": "protected void end() {\n }", "title": "" }, { "docid": "ded293700fb04a3f49bde05fabb2e231", "score": "0.67283523", "text": "protected void end() {\n }", "title": "" }, { "docid": "ded293700fb04a3f49bde05fabb2e231", "score": "0.67283523", "text": "protected void end() {\n }", "title": "" }, { "docid": "ded293700fb04a3f49bde05fabb2e231", "score": "0.67283523", "text": "protected void end() {\n }", "title": "" }, { "docid": "ded293700fb04a3f49bde05fabb2e231", "score": "0.67283523", "text": "protected void end() {\n }", "title": "" }, { "docid": "ded293700fb04a3f49bde05fabb2e231", "score": "0.67283523", "text": "protected void end() {\n }", "title": "" }, { "docid": "ded293700fb04a3f49bde05fabb2e231", "score": "0.67283523", "text": "protected void end() {\n }", "title": "" }, { "docid": "8af4db612e4605f3eda38a3a9c250a51", "score": "0.67166317", "text": "@Override\n\tpublic void isEOF() {\n\n\t}", "title": "" }, { "docid": "5edb7c3995d8ea4dc05a1c949a154e10", "score": "0.67099345", "text": "protected void end() {\r\n }", "title": "" }, { "docid": "5edb7c3995d8ea4dc05a1c949a154e10", "score": "0.67099345", "text": "protected void end() {\r\n }", "title": "" }, { "docid": "5edb7c3995d8ea4dc05a1c949a154e10", "score": "0.67099345", "text": "protected void end() {\r\n }", "title": "" }, { "docid": "a2e539d87c56b031bbebd78f80f20f10", "score": "0.66909885", "text": "public void end()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "31208b8bcc153863ee1cfde4c3bfe33a", "score": "0.66836065", "text": "public boolean isEnd() {\n\t\treturn rowId>=rows-1;\r\n\t}", "title": "" }, { "docid": "1ad146d263e38cd816d647d7af5d93aa", "score": "0.6683593", "text": "protected void end() {\n }", "title": "" }, { "docid": "5e147bbe78fc73f8902d3d0df3fa3cf4", "score": "0.66701216", "text": "void end();", "title": "" }, { "docid": "5e147bbe78fc73f8902d3d0df3fa3cf4", "score": "0.66701216", "text": "void end();", "title": "" }, { "docid": "5e147bbe78fc73f8902d3d0df3fa3cf4", "score": "0.66701216", "text": "void end();", "title": "" } ]
cb83a6fe96a9e6d1cc55e8daba8d1b5b
Determine the default locale
[ { "docid": "cbdac12d04b61687105af6b6c2d38e76", "score": "0.8333972", "text": "LocaleInfo getDefaultLocale() throws CommonFatalException;", "title": "" } ]
[ { "docid": "25e4045c254a15067280ebd45596c512", "score": "0.838665", "text": "public String getDefaultLocale() {\n return config.getDefaultLocale();\n }", "title": "" }, { "docid": "39eb8053e0826ef8d1fbf9d1974c4e91", "score": "0.79819626", "text": "public Locale getDefaultLocale() {\n \t\treturn DEFAULT_LOCALE;\n \t}", "title": "" }, { "docid": "bb6ab9bfa4c7d19872b18c1bb28c43db", "score": "0.79043525", "text": "java.lang.String getUserDefaultLanguage();", "title": "" }, { "docid": "fe4b16f489d7a8326f06f3dd4badbf8b", "score": "0.7819501", "text": "public Locale getDefaultLocale() {\r\n return mApplicationPreferences.getDefaultLocale();\r\n }", "title": "" }, { "docid": "6f41bd5944b607d27a0ec33ab7ebe8f7", "score": "0.7808623", "text": "String getLocale();", "title": "" }, { "docid": "bbb5bf2673dc69128e36a06389314353", "score": "0.77859104", "text": "public static Locale getDefaultLocale() {\n Locale sysDefault = Locale.getDefault();\n return getSupportedLocales().contains(sysDefault) ? sysDefault : Locale.ENGLISH;\n }", "title": "" }, { "docid": "f62a243e1200a96ce1273fcc504c6b05", "score": "0.7766885", "text": "java.lang.String getLocale();", "title": "" }, { "docid": "92ecf0b038cca3cc390342358275c160", "score": "0.77015924", "text": "Locale getLocale();", "title": "" }, { "docid": "92ecf0b038cca3cc390342358275c160", "score": "0.77015924", "text": "Locale getLocale();", "title": "" }, { "docid": "92ecf0b038cca3cc390342358275c160", "score": "0.77015924", "text": "Locale getLocale();", "title": "" }, { "docid": "92ecf0b038cca3cc390342358275c160", "score": "0.77015924", "text": "Locale getLocale();", "title": "" }, { "docid": "92ecf0b038cca3cc390342358275c160", "score": "0.77015924", "text": "Locale getLocale();", "title": "" }, { "docid": "92ecf0b038cca3cc390342358275c160", "score": "0.77015924", "text": "Locale getLocale();", "title": "" }, { "docid": "200b5edc4dc21dafde2cf2cb085303a8", "score": "0.75657433", "text": "@Test\n\tpublic void test1() {\n\t\tLocale default1 = Locale.getDefault();\n\t\tSystem.out.println(default1);\n\t}", "title": "" }, { "docid": "9cd8a66c8b88ce44f78e6ac8b06b8487", "score": "0.7518865", "text": "void setDefaultLocale(@NotNull Locale defaultLocale);", "title": "" }, { "docid": "693ab5edcce2fc7fe31989564b2aae5a", "score": "0.75020725", "text": "String getDefaultLang();", "title": "" }, { "docid": "39e05b84efebf8604ecdb43723056373", "score": "0.7488541", "text": "public static Locale getDefaultLocal() {\n CommonVar.DEFAULT_LOCAL = Locale.getDefault();\n return CommonVar.DEFAULT_LOCAL;\n }", "title": "" }, { "docid": "76ae349f592ed2d9fc0b9913e1b63a47", "score": "0.7431387", "text": "@Nullable\n\tpublic Locale getDefaultLocale() {\n\t\treturn this.defaultLocale;\n\t}", "title": "" }, { "docid": "19f535ebf03f9301ad07a2216c00c9f2", "score": "0.7404592", "text": "public Locale getSystemLocale();", "title": "" }, { "docid": "c2e6f62c46505f0b47023a532db6ab86", "score": "0.7313461", "text": "public Lang getDefaultLang();", "title": "" }, { "docid": "8a78f086f464dc4c46d5c4c59f705927", "score": "0.72868353", "text": "public Locale getLocale();", "title": "" }, { "docid": "8a78f086f464dc4c46d5c4c59f705927", "score": "0.72868353", "text": "public Locale getLocale();", "title": "" }, { "docid": "8a78f086f464dc4c46d5c4c59f705927", "score": "0.72868353", "text": "public Locale getLocale();", "title": "" }, { "docid": "c37440c0244c8f91e84c1934e9f45ccc", "score": "0.724126", "text": "public static void setLocale() {\n setLocale(Locale.getDefault());\n }", "title": "" }, { "docid": "428199004a0d511c79844a5ee649ab97", "score": "0.7153468", "text": "public String getDefaultLang() {\r\n return defaultLang;\r\n }", "title": "" }, { "docid": "3f0367b7f79aa14e01fcd83602a7ded2", "score": "0.7054617", "text": "public String getConfigLocale () {\r\n\t\tString LOCALGIS_DEFAULT_LOCALE = \"localgis_default_locale\";\r\n\t\t//No tiene valor establecer valor inicial\r\n\t\tif (this.locale == null && this.properties != null) {\r\n\t\t\ttry{\r\n\t\t\t\tthis.locale = properties.getProperty(LOCALGIS_DEFAULT_LOCALE);\r\n\t\t\t}catch (Exception e) {\r\n\t\t\t\t//No establecer valor para usar configuracion por defecto\r\n\t\t\t\tthis.locale = \"\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn this.locale;\r\n\t}", "title": "" }, { "docid": "65e90ac6f8dbb0f6e715dabd71018f18", "score": "0.6953209", "text": "public String getWriteLocale() {\n String header = request.getHeader(HttpHeaders.CONTENT_LANGUAGE);\n if (header == null || header.isEmpty()) {\n return getDefaultLocale();\n }\n return header.substring(0, 2);\n }", "title": "" }, { "docid": "d8fcf571213a8ccf08415e05537308eb", "score": "0.69294405", "text": "@Nullable\n public abstract String getLocaleString();", "title": "" }, { "docid": "58f65f92a1ce7a56d7a8f941d54fea72", "score": "0.6854258", "text": "@Override\r\n\tpublic Locale getLocale() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "10b54ef5a03b5a73e6933214850e82ff", "score": "0.684949", "text": "private static Locale askUserForLanguage(Locale defaultLocale) {\n\t\tif (defaultLocale == null)\n\t\t\tdefaultLocale = Locale.getDefault();\n\n\t\t// Acquire list of available languages and sort by name.\n\t\tMap<String, Locale> localeMap = I18n.getAvailableLocales();\n\t\tList<String> optionList = new ArrayList<String>(localeMap.size());\n\t\toptionList.addAll(localeMap.keySet());\n\t\tCollections.sort(optionList);\n\t\tString[] optionArray = optionList.toArray(new String[localeMap.size()]);\n\t\tint defaultOption = 0;\n\n\t\t// Create list of human-readable choices and select default language.\n\t\tfor (String key : optionList) {\n\t\t\tif (localeMap.get(key).toLanguageTag().equalsIgnoreCase(defaultLocale.toLanguageTag()))\n\t\t\t\tbreak;\n\t\t\t++defaultOption;\n\t\t}\n\t\tif (defaultOption >= optionArray.length)\n\t\t\tdefaultOption = 0;\n\n\t\t// Create choice dialogue.\n\t\tI18n.init(localeMap.get(optionList.get(defaultOption)));\n\t\tString choice = String.valueOf(JOptionPane.showInputDialog(null, I18n.main(\"desktop.startup.choose.language\"),\n\t\t\t\tI18n.main(\"desktop.startup.choose.language.title\"), JOptionPane.QUESTION_MESSAGE, null, optionArray,\n\t\t\t\toptionArray[defaultOption]));\n\n\t\t// Evaluate user's choice and set the locale to the user's choice.\n\t\tif (!localeMap.containsKey(choice)) return null;\n\t\tLOG.log(Level.INFO, \"got user language of choice: \" + choice);\n\t\treturn localeMap.get(choice);\n\t}", "title": "" }, { "docid": "fbb3cd70bcb6d8d3629a509a6476684f", "score": "0.68235236", "text": "@Override\n public Locale getLocale() {\n return null;\n }", "title": "" }, { "docid": "29d4f2b3bc2ad22ec0f1f0d4840bff13", "score": "0.68076736", "text": "protected Locale getLocale() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "912c91488116b11c883f204132b59a6e", "score": "0.68055534", "text": "public Locale getApplicationLocale();", "title": "" }, { "docid": "fa86acf8cd59b4415836e341c7fbab01", "score": "0.6747368", "text": "public String getLocale() {\n return locale;\n }", "title": "" }, { "docid": "0e5dda3e71a6c52c3aa80cd3e4ce792b", "score": "0.6741637", "text": "public static Locale getLocale() {\n Locale loc = Locale.ENGLISH;\n switch (languagePref) {\n case \"en\":\n loc = Locale.ENGLISH;\n break;\n case \"es\":\n loc = new Locale(\"es\");\n break;\n case \"fr\":\n loc = Locale.FRENCH;\n break;\n case \"de\":\n loc = new Locale(\"de\");\n break;\n case \"zh_cn\":\n loc = Locale.SIMPLIFIED_CHINESE;\n break;\n case \"ja\":\n loc = Locale.JAPANESE;\n break;\n case \"kr\":\n loc = Locale.KOREAN;\n }\n return loc;\n }", "title": "" }, { "docid": "4bd035e915bb92b4d176b8a50afde5c9", "score": "0.67259264", "text": "@Override\n\tpublic Locale getLocale() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "7e6874d46c54973afaf264e0d049dd19", "score": "0.6722039", "text": "Locale getLang();", "title": "" }, { "docid": "3f41d916b0ce09c859e4b391978f63c1", "score": "0.6698058", "text": "@Override\n public Locale findDefaultLocale(){\n Query query = em.createNamedQuery(\"EL_READ_DEFAULT_LOCALE\");\n query.setHint(QueryHints.HINT_CACHEABLE,true);\n\n List<Locale> localeList = (List<Locale>)query.getResultList();\n if(localeList.size() >= 1){\n if(localeList.size() > 1){\n LOG.warn(\"There is more than one default locale configured\");\n }\n return localeList.get(0);\n }\n return null;\n }", "title": "" }, { "docid": "f8d72c41538312bcba669ec2878417ba", "score": "0.6697743", "text": "@Override\n\t\tpublic Locale getLocale() {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "a98a09ca5f215979cffaa5ac7ff62467", "score": "0.6689482", "text": "public Locale getLocale() {\n if (locale == null)\n locale = Locale.getDefault();\n return locale;\n }", "title": "" }, { "docid": "3ba1a7d61c685277d596da3ecad7a09b", "score": "0.6662778", "text": "private ProgramLocale getLocaleOrDefaultFromRequest(ServletRequest servletRequest) {\n String localeString = servletRequest.getParameter(\"locale\");\n return ProgramLocale.getOrNull(localeString);\n }", "title": "" }, { "docid": "95a879d0357151df571863832c516ab5", "score": "0.66362107", "text": "public void setDefaultLocale(@Nullable Locale defaultLocale) {\n\t\tthis.defaultLocale = defaultLocale;\n\t}", "title": "" }, { "docid": "452d5bcc10d5f7e6ab559a2a1ffd2cbf", "score": "0.6615877", "text": "public void resetLocaleToSystemDefault() {\r\n XLocale default_locale = XLocaleManager.findLocale(OpSettingsService.getService().getStringValue(this, OpSettings.USER_LOCALE_ID));\r\n super.setLocale(default_locale);\r\n }", "title": "" }, { "docid": "c2c71893875d7c972d1b84f001262380", "score": "0.6592415", "text": "public static Locale getLocale() {\n if (CBCharArray.charMap == null) \n setLocale();\n return CBCharArray.locale;\n }", "title": "" }, { "docid": "11eb23b42b2f6c07b4769a132a80df65", "score": "0.6575606", "text": "private void loadLocale() {\n\t\tSharedPreferences sharedpreferences = this.getSharedPreferences(\n\t\t\t\t\"CommonPrefs\", Context.MODE_PRIVATE);\n\t\tString lang = sharedpreferences.getString(\"Language\", \"en\");\n\t\tSystem.out.println(\"Default lang: \" + lang);\n\t\tif (lang.equalsIgnoreCase(\"ar\")) {\n\t\t\tmyLocale = new Locale(lang);\n\t\t\tsaveLocale(lang);\n\t\t\tLocale.setDefault(myLocale);\n\t\t\tandroid.content.res.Configuration config = new android.content.res.Configuration();\n\t\t\tconfig.locale = myLocale;\n\t\t\tthis.getBaseContext()\n\t\t\t\t\t.getResources()\n\t\t\t\t\t.updateConfiguration(\n\t\t\t\t\t\t\tconfig,\n\t\t\t\t\t\t\tthis.getBaseContext().getResources()\n\t\t\t\t\t\t\t\t\t.getDisplayMetrics());\n\t\t\tCommonFunctions.lang = \"ar\";\n\t\t} else {\n\t\t\tmyLocale = new Locale(lang);\n\t\t\tsaveLocale(lang);\n\t\t\tLocale.setDefault(myLocale);\n\t\t\tandroid.content.res.Configuration config = new android.content.res.Configuration();\n\t\t\tconfig.locale = myLocale;\n\t\t\tthis.getBaseContext()\n\t\t\t\t\t.getResources()\n\t\t\t\t\t.updateConfiguration(\n\t\t\t\t\t\t\tconfig,\n\t\t\t\t\t\t\tthis.getBaseContext().getResources()\n\t\t\t\t\t\t\t\t\t.getDisplayMetrics());\n\t\t\tCommonFunctions.lang = \"en\";\n\t\t}\n\t}", "title": "" }, { "docid": "96f26e8d24549243fe8b7c0163e6f942", "score": "0.6550728", "text": "public static LocaleManager getLocale()\r\n\t{\r\n\t\tif (locale == null)\r\n\t\t{\r\n\t\t\tSystem.err.println( \"No locale loaded!\" );\r\n\t\t\t\r\n\t\t\t// Fixes a bug with Eclipse,\r\n\t\t\t// regarding printing to System.err and System.out\r\n\t\t\ttry { Thread.sleep( 10 ); } catch (Exception e) { }\r\n\t\t\t\r\n\t\t\t// load en_US by default\r\n\t\t\tloadLocale(EN_US);\r\n\t\t}\r\n\t\t\r\n\t\treturn locale;\r\n\t}", "title": "" }, { "docid": "2ce1a9b7ab354c3b5a804f212a9c1f91", "score": "0.65468633", "text": "public abstract Locale getLocale() throws IllegalComponentStateException;", "title": "" }, { "docid": "32300b1cff110224bf4798b8eb5d5d1f", "score": "0.65333277", "text": "public String getDefaultValue() {\r\n \t\treturn values.get(defaultLang);\r\n \t}", "title": "" }, { "docid": "2e6d3f39a7db6e041f7141538d8504ba", "score": "0.65097827", "text": "public String getLocaleName();", "title": "" }, { "docid": "995ef5f83dbc1ff82958809705ddc963", "score": "0.6505876", "text": "public static Locale getLocale() {\n\t\treturn locale;\n\t}", "title": "" }, { "docid": "3ab7d2f157b370a0c7a0c1ff928fdce4", "score": "0.6501155", "text": "void setDefaultLang(String defaultLang);", "title": "" }, { "docid": "259eee4180172b98b21002a2b6034e7f", "score": "0.64996046", "text": "public Locale getLocale() throws ExceptionBase {\n return null;\n }", "title": "" }, { "docid": "bda25b57bc3667774f762eb8ad69d1fa", "score": "0.6484293", "text": "public Locale getLocale()\n {\n return getRequest().getLocale();\n }", "title": "" }, { "docid": "a9c393d571036c95197646f17f9db954", "score": "0.6429647", "text": "public java.lang.String getLocale() {\n return cacheGet(CacheKey.locale);\n }", "title": "" }, { "docid": "eef31b2d6de4531d6dcc0e7d7ba82cc3", "score": "0.64072126", "text": "public Locale getLocale ()\n { return locale; }", "title": "" }, { "docid": "44c7653c92762578ea9d1100a1e5223b", "score": "0.6401571", "text": "public StdLocale_type0 getStdLocale() {\n return localStdLocale;\n }", "title": "" }, { "docid": "44c7653c92762578ea9d1100a1e5223b", "score": "0.6401571", "text": "public StdLocale_type0 getStdLocale() {\n return localStdLocale;\n }", "title": "" }, { "docid": "cd6027fff7033241b64236d6b2be6d14", "score": "0.6384174", "text": "@Override\n public Locale getLocale() {\n return mLocale;\n }", "title": "" }, { "docid": "637358bde207dbc4211184f06a5624a6", "score": "0.6382391", "text": "public Locale getLocale() throws ExceptionBase {\n return null;\n }", "title": "" }, { "docid": "637358bde207dbc4211184f06a5624a6", "score": "0.6382391", "text": "public Locale getLocale() throws ExceptionBase {\n return null;\n }", "title": "" }, { "docid": "637358bde207dbc4211184f06a5624a6", "score": "0.6382391", "text": "public Locale getLocale() throws ExceptionBase {\n return null;\n }", "title": "" }, { "docid": "637358bde207dbc4211184f06a5624a6", "score": "0.6382391", "text": "public Locale getLocale() throws ExceptionBase {\n return null;\n }", "title": "" }, { "docid": "c7ee2cecdce7355d933e21ef417850b0", "score": "0.63492966", "text": "com.google.protobuf.ByteString getUserDefaultLanguageBytes();", "title": "" }, { "docid": "958c8c85f4db715b64471f59b77536a9", "score": "0.62585086", "text": "public void initialize() {\r\n System.err.println(Locale.getDefault());\r\n setLanguage();\r\n }", "title": "" }, { "docid": "dcbf2695c083a0b69ef5439719210968", "score": "0.6254083", "text": "public static int getDefaultLang() {\n if (session(\"play_user_lang\") == null) {\n\n String[] allowedList = Play.application().configuration().getString(\"application.langs\").split(\",\");\n List<Lang> accepted = request().acceptLanguages();\n\n int langNumber = 0;\n boolean searchNext = true;\n for (Lang testLang : accepted) {\n if (searchNext) {\n int testNumber = 0;\n for (String s : allowedList) {\n if (s.equals(testLang.code())) {\n langNumber = testNumber;\n searchNext = false;\n }\n testNumber++;\n }\n }\n }\n session(\"play_user_lang\", langNumber + \"\");\n }\n return Integer.parseInt(session(\"play_user_lang\"));\n }", "title": "" }, { "docid": "8a5805518bb22818bacb0f90f9b7e4e8", "score": "0.6241386", "text": "public String getPreferredLanguage()\r\n\t{\r\n\t\tAGEConfiguration config = null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tconfig = AGEConfiguration.getInstance();\r\n\t\t}\r\n\t\tcatch ( SecurityException se )\r\n\t\t{\r\n\t\t\t//on applet, can't read files\r\n\t\t\tSystem.err.println(\"Cannot read AGE configuration file due to access restrictions: will use default locale.\");\r\n\t\t}\r\n\t\tString configuredLanguage = null;\r\n\t\tif ( config != null ) configuredLanguage = config.getProperty(\"language\");\r\n\t\tif ( configuredLanguage != null ) return configuredLanguage;\r\n\t\tString sysLanguage = Locale.getDefault().getLanguage();\r\n\t\t\r\n\t\tString[] supportedLanguages = getSupportedLanguages();\r\n\t\tfor ( int i = 0 ; i < supportedLanguages.length ; i++ )\r\n\t\t{\r\n\t\t\tif ( sysLanguage.contains(supportedLanguages[i]) )\r\n\t\t\t{\r\n\t\t\t\tif ( config != null ) config.setProperty(\"language\",supportedLanguages[i]);\r\n\t\t\t\treturn supportedLanguages[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\tif ( sysLanguage.contains(\"es\") )\r\n\t\t{\r\n\t\t\tif ( config != null ) config.setProperty(\"language\",\"es\");\r\n\t\t\treturn \"es\";\r\n\t\t}\r\n\t\tif ( sysLanguage.contains(\"en\") )\r\n\t\t{\r\n\t\t\tif ( config != null ) config.setProperty(\"language\",\"en\");\r\n\t\t\treturn \"en\";\r\n\t\t}\r\n\t\t*/\r\n\t\t\r\n\t\t//by default, English\r\n\t\treturn \"en\";\r\n\t}", "title": "" }, { "docid": "3e49c0a9349fd97212d79647af4fd3c0", "score": "0.62379265", "text": "public java.util.Locale getLocale() {\n\t\t\tif (locale != null) {\n\t\t\t\treturn locale;\n\t\t\t}\n\t\t\t\n\t\t\tEnumeration itr = getLocales();\n\t\t\tif (itr.hasMoreElements()) {\n\t\t\t\treturn (Locale) itr.nextElement();\n\t\t\t}\n\t\t\t\n\t\t\treturn Locale.getDefault();\n\t\t}", "title": "" }, { "docid": "1b1836b08cb746c9000828771866d9b4", "score": "0.6234905", "text": "public static Locale getLocale() {\n return getBundle().getLocale();\n }", "title": "" }, { "docid": "0d42852ad1e249ce8296da4f855a7207", "score": "0.62346095", "text": "public Locale getLocale()\n {\n return locale;\n }", "title": "" }, { "docid": "f2b8dc228cc0e30d279e2e9f46b623df", "score": "0.6230588", "text": "public String getDefaultTranslation() {\n return mDefaultTranslation;\n }", "title": "" }, { "docid": "4402f214c4887e8c670ccbf9c6ea90ec", "score": "0.6229058", "text": "public static Locale getUserLocale(Context context) {\n SharedPreferences spLocale = context.getSharedPreferences(LOCALE_FILE, Context.MODE_PRIVATE);\n String localeJson = spLocale.getString(LOCALE_KEY, \"\");\n return jsonToLocale(localeJson);\n }", "title": "" }, { "docid": "b4396b4b09abc87079818effb2c6159a", "score": "0.62272185", "text": "public static void setDefaultLanguage(String n) {\r\n\t\tString m = n.toLowerCase();\r\n\t\tif (m.startsWith(\"en\")) {\r\n\t\t\tlanguage = Locale.US.getLanguage();\r\n\t\t} else if (m.startsWith(\"de\") || m.startsWith(\"ge\")) {\r\n\t\t\tlanguage = Locale.GERMANY.getLanguage();\r\n\t\t} else {\r\n\t\t\tlanguage = m;\r\n\t\t}\r\n\t\tDebug.show(Debug.BASE, \"Base.setDefaultLanguage(): \" + language);\r\n\t}", "title": "" }, { "docid": "ff087a630b87efbb0978dd45b8982385", "score": "0.6218867", "text": "public String getLanguage() {\r\n\t\treturn Constants.BUNDLES.DEFAULT_LANGUAGE;\r\n\t}", "title": "" }, { "docid": "e0c499b5314a6d052bf665c98ac47bcb", "score": "0.6209202", "text": "public String getDefaultTranslation() {\n return myDefaulTranslation;\n }", "title": "" }, { "docid": "811e355a238e52db2c29f5ab1c0ca3ee", "score": "0.61904323", "text": "public String getDefaultLanguageCode() {\n return this.defaultLanguageCode;\n }", "title": "" }, { "docid": "af118d3cece8c01a1b39e58f30dbdf77", "score": "0.6181801", "text": "public final Locale getLocale() {\n return locale;\n }", "title": "" }, { "docid": "b8476c04fffe52956bd3989c817746f0", "score": "0.6176717", "text": "public static Locale getLocale() {\n return LocaleContextHolder.getLocale();\n }", "title": "" }, { "docid": "b1100b2b3d2cc260f4af42275c6c3d75", "score": "0.6172143", "text": "@Column(length = 64)\n\tpublic String getLocale() {\n\t\treturn this.locale;\n\t}", "title": "" }, { "docid": "1c12ab0946ffccd265d0b85749990107", "score": "0.6171552", "text": "public Locale getLocale() {\n return locale;\n }", "title": "" }, { "docid": "1c12ab0946ffccd265d0b85749990107", "score": "0.6171552", "text": "public Locale getLocale() {\n return locale;\n }", "title": "" }, { "docid": "ab913fc168637093b9caadc66dd8a996", "score": "0.6164269", "text": "com.google.protobuf.ByteString\n getLocaleBytes();", "title": "" }, { "docid": "f15fbde6c17f49b2ff8fdfbea7c34218", "score": "0.6150465", "text": "public String getLocaleAsString() {\n if (mLocale != null) {\n return mLocale.getLanguage() + \"_\" + mLocale.getCountry();\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "92c433909a64250f257250e1c30d2e4e", "score": "0.6148312", "text": "public final Locale getLocale() {\n String[] arrstring = this.getRawLocale();\n if (TextUtils.isEmpty((CharSequence)arrstring)) return null;\n int n = (arrstring = arrstring.split(\"_\")).length;\n if (n == 1) return new Locale(arrstring[0]);\n if (n == 2) return new Locale(arrstring[0], arrstring[1]);\n if (n != 3) return null;\n return new Locale(arrstring[0], arrstring[1], arrstring[2]);\n }", "title": "" }, { "docid": "578f1e0e0bf3ef045e44482e8842d070", "score": "0.61476755", "text": "void setLocale(String locale);", "title": "" }, { "docid": "6fdd967d19ba444b3af7c984c79950c7", "score": "0.6144078", "text": "public static void setDefaultLocale(Locale locale) {\n Locale.setDefault(locale);\n UIManager.getDefaults().setDefaultLocale(locale);\n UIManager.getLookAndFeelDefaults().setDefaultLocale(locale);\n JComponent.setDefaultLocale(locale);\n }", "title": "" }, { "docid": "e6821e3898f46e373d11b91de93c6115", "score": "0.6140817", "text": "public String getDefaultTranslation(){\n return mDefaultTranslation;\n }", "title": "" }, { "docid": "f3f05cdd3a6c6c4133ff5a4e1dadfc3d", "score": "0.61352247", "text": "@DISPID(-705) //= 0xfffffd3f. The runtime will prefer the VTID if present\r\n @VTID(11)\r\n int localeID();", "title": "" }, { "docid": "4bca262ab2afec0648bbc52b6d9b06ef", "score": "0.6126807", "text": "boolean hasLocale();", "title": "" }, { "docid": "4bca262ab2afec0648bbc52b6d9b06ef", "score": "0.6126807", "text": "boolean hasLocale();", "title": "" }, { "docid": "0515dd325b31aaa8d31504c276f99a63", "score": "0.6102561", "text": "public static Locale localeFromPref(String lang) {\n if (lang != null && lang.toLowerCase().equals(\"fi\")) {\n return new Locale(\"fi\");\n } else {\n return new Locale(\"en\");\n }\n }", "title": "" }, { "docid": "fa80bfc0267e5da3227943d4594c6626", "score": "0.60994", "text": "void setLocale(Locale locale);", "title": "" }, { "docid": "cd2eb0e2fc05df2cc5c9f22fdbe8b822", "score": "0.609232", "text": "private static int os_setlocale(lua_State L) {\n// \n//\t\t static string[] cat = {LC_ALL, LC_COLLATE, LC_CTYPE, LC_MONETARY,\n//\t\t\t\t\t\t\t LC_NUMERIC, LC_TIME};\n//\t\t static string[] catnames[] = {\"all\", \"collate\", \"ctype\", \"monetary\",\n//\t\t\t \"numeric\", \"time\", null};\n//\t\t CharPtr l = luaL_optstring(L, 1, null);\n//\t\t int op = luaL_checkoption(L, 2, \"all\", catnames);\n//\t\t lua_pushstring(L, setlocale(cat[op], l));\n//\t\t\t \n\t\tCharPtr l = LuaAuxLib.luaL_optstring(L, 1, null);\n\t\tLuaAPI.lua_pushstring(L, CharPtr.toCharPtr(\"C\"));\n\t\treturn (l.toString().equals(\"C\")) ? 1 : 0;\n\t}", "title": "" }, { "docid": "abbeff4f8fe9ea52641b7f2eedc497a6", "score": "0.6083529", "text": "@Override\n\tpublic Locale getLanguageConstant() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "c444cd3fce4996c85c90761f58f672e3", "score": "0.60731715", "text": "@Override\r\n\tpublic void setLocale(Locale arg0) {\n\t\t\r\n\t}", "title": "" }, { "docid": "6ccd590f8bd75fa4f0503d51e9b609a5", "score": "0.6049363", "text": "static Locale getLookupLocale(Locale paramLocale) {\n/* 367 */ Locale locale = paramLocale;\n/* 368 */ if (paramLocale.hasExtensions() && \n/* 369 */ !paramLocale.equals(JRELocaleConstants.JA_JP_JP) && \n/* 370 */ !paramLocale.equals(JRELocaleConstants.TH_TH_TH)) {\n/* */ \n/* 372 */ Locale.Builder builder = new Locale.Builder();\n/* */ try {\n/* 374 */ builder.setLocale(paramLocale);\n/* 375 */ builder.clearExtensions();\n/* 376 */ locale = builder.build();\n/* 377 */ } catch (IllformedLocaleException illformedLocaleException) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 382 */ config((Class)LocaleServiceProviderPool.class, \"A locale(\" + paramLocale + \") has non-empty extensions, but has illformed fields.\");\n/* */ \n/* */ \n/* */ \n/* 386 */ locale = new Locale(paramLocale.getLanguage(), paramLocale.getCountry(), paramLocale.getVariant());\n/* */ } \n/* */ } \n/* 389 */ return locale;\n/* */ }", "title": "" }, { "docid": "ef81a47b86bb7604b599858522effc4e", "score": "0.6036705", "text": "public void setApplicationLocale(Locale locale);", "title": "" }, { "docid": "288a9381be33eaa1b1390177206505d3", "score": "0.601778", "text": "public static void setLocale(Locale locale)\n {\n }", "title": "" }, { "docid": "8acd744758ecb827235aa1eafb85e3f2", "score": "0.60106903", "text": "public String getLinguagem() {\r\n\t\tif(locale == null){\r\n\t\t\tlocale = new Locale(\"pt_BR\");\r\n\t\t\tmudarLocalidade(locale);\r\n\t\t}\r\n\t\tif(locale.getCountry().isEmpty()){\r\n\t\t\treturn locale.getLanguage();\r\n\t\t}else{\r\n\t\t\treturn locale.getLanguage() +\"_\"+locale.getCountry();\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "5efd744f359bdba9f8a5b0962c470d31", "score": "0.6001402", "text": "@RecentlyNonNull\n/* */ public Locale getTextLocale() {\n/* 596 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "title": "" }, { "docid": "baf36daf5cf5c5f43f70e89a82adfda5", "score": "0.599539", "text": "private static void checkLocale ()\r\n {\r\n final String country = constants.localeCountry.getValue();\r\n\r\n if (!country.equals(\"\")) {\r\n for (Locale locale : Locale.getAvailableLocales()) {\r\n if (locale.getCountry()\r\n .equals(country)) {\r\n Locale.setDefault(locale);\r\n\r\n return;\r\n }\r\n }\r\n\r\n logger.info(\"Cannot set locale country to \" + country);\r\n }\r\n }", "title": "" } ]
263dcb9838302d75cdd3db372cfbdb5b
Inflate the layout for this fragment
[ { "docid": "5517b64a4d17c82aada08774ecfeae80", "score": "0.0", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ecolage, container, false);\r\n\r\n\r\n\r\n getSchoolData();\r\n\r\n AppUtility.noInternetWarning(view.findViewById(R.id.loadingView), getActivity());\r\n if (!AppUtility.isNetworkAvailable(getActivity())) {\r\n showEmptyView();\r\n }\r\n\r\n\r\n\r\n return view;\r\n }", "title": "" } ]
[ { "docid": "20692959eae44893b50b4d537901ae50", "score": "0.67938715", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_base, container, false);\n //SensorsDataAPI.sharedInstance().traverseView(this,view);\n return view;\n }", "title": "" }, { "docid": "3f351f9608a82f16819285269fa056e7", "score": "0.67679954", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_bing_image_detail, container, false);\n }", "title": "" }, { "docid": "f6f3f34d871b477021510c053f10fece", "score": "0.67602414", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(getLayoutRes(), container, false);\n }", "title": "" }, { "docid": "f6f3f34d871b477021510c053f10fece", "score": "0.67602414", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(getLayoutRes(), container, false);\n }", "title": "" }, { "docid": "927b5dcef592a8ee16cb9899260a8129", "score": "0.67455715", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadlistlocal_ing, container, false);\n }", "title": "" }, { "docid": "4eb271500c700a403e190ec7b5c3096d", "score": "0.67335296", "text": "@Override\n protected int initLayout() {\n return R.layout.fragment_exam;\n }", "title": "" }, { "docid": "9fb9e267e028e2d41844b1ae81151d98", "score": "0.6710506", "text": "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tView mView = inflater.inflate(R.layout.tw_custom_entry_fragment,\n\t\t\t\tcontainer, false);\n\t\tinitXMLViewComponents(mView);\n\t\treturn mView;\n\t}", "title": "" }, { "docid": "5575cb853ecf502d4c469910e098fb9e", "score": "0.6704723", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mass_input, container, false);\n }", "title": "" }, { "docid": "074b68ec2a86bf2adcf25e93ae6d7f33", "score": "0.66970193", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_individual_visual_assessment, parent, false);\n\n }", "title": "" }, { "docid": "1835b770f34e6c74c24509917a9afd77", "score": "0.66926605", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "title": "" }, { "docid": "7709f2451525c613587b5a76da864cf9", "score": "0.66922307", "text": "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup root) {\n\t\tViewGroup container = (ViewGroup) inflater.inflate(R.layout.live_fragment_information, root, false);\n\t\tchannelName = (TextView) container.findViewById(R.id.channelName);\n\t\tcurrent_event = (TextView) container.findViewById(R.id.event);\n\t\tnext_event = (TextView) container.findViewById(R.id.next_event);\n\t\tevent_time = (TextView) container.findViewById(R.id.event_time);\n\t\tprogress = (LiveSeekBar) container.findViewById(R.id.watch_progress);\n\t\t\n\t\tcurrent_event.setSelected(true);\n\t\tnext_event.setSelected(true);\n\t\treturn container;\n\t}", "title": "" }, { "docid": "f5959e7a0ee4abe7e410ae8e5b46f3dc", "score": "0.66748124", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "title": "" }, { "docid": "57e8f8646f47710533732110e2e28469", "score": "0.66743827", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_tab_common, container, false);\n TypeFaceUtil.overrideFont(getContext().getApplicationContext(), \"SERIF\", \"fonts/Roboto-Regular.ttf\");\n\n list = new ArrayList<>();\n solrdata = (SolrData) getContext().getApplicationContext();\n intent = getActivity().getIntent();\n activity = intent.getStringExtra(\"activity\");\n bundle = getArguments();\n fetch_starter_url = bundle.getString(\"API_LINK\");\n MenuCategory = bundle.getString(\"Menu\");\n progressBar = (ProgressBar) view.findViewById(R.id.progressWheel);\n relativeLayout = (RelativeLayout) view.findViewById(R.id.mailLayout);\n relativeLayout.setVisibility(View.INVISIBLE);\n totalAmountTextView = (TextView) view.findViewById(R.id.totalAmount);\n foodItemList = (GridView) view.findViewById(R.id.foodItemsList);\n getDataFromSolr();\n\n return view;\n }", "title": "" }, { "docid": "a1381321e5e112417b0b94482d1a9694", "score": "0.6669273", "text": "@Nullable\r\n @Override\r\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container,\r\n @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.media_vault_all_tab_layout, container, false);\r\n unbinder = ButterKnife.bind(this, view);\r\n GlobalBus.getBus().register(this);\r\n initialised();\r\n return view;\r\n }", "title": "" }, { "docid": "ce64d8f062aa96166bd71672324edab2", "score": "0.6654323", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quality_sheet, container, false);\n }", "title": "" }, { "docid": "2642aa3dabc2f8ce956392d055d5202d", "score": "0.6648625", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_home, container, false);\n setView();\n setRefresh();\n setVolley();\n getServer();\n getSlider();\n setOnClickButton();\n setLayout();\n\n return rootView;\n }", "title": "" }, { "docid": "54b0d971eb842f535425ee11aee8562d", "score": "0.66358984", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_breast_feed, container, false);\n }", "title": "" }, { "docid": "3ea9eb65eff40ffc6d35dfddea0cf21d", "score": "0.6635503", "text": "@Override\r\n public void inflateView() {\n\r\n }", "title": "" }, { "docid": "27a8cf159189f1ee6872e8ecaf1cf174", "score": "0.66307974", "text": "@Override\n public View onCreateView(LayoutInflater inflater,ViewGroup parent,Bundle savedInstanceState) {\n rootView=inflater.inflate(R.layout.main_fragment_match_layout,parent,false);\n scanSuccessLayout=rootView.findViewById(R.id.main_fragment_scan_success_layout);\n initScanView();\n initSettingBtn();\n initMatchView();\n return rootView;\n }", "title": "" }, { "docid": "8dbb3bd576d69a65f9e80a3ff6835b6c", "score": "0.6623712", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View root= inflater.inflate(R.layout.fragment_my_all_offer, container, false);\n __init__(root);\n return root;\n }", "title": "" }, { "docid": "5556850d02117f4105569bd1ca8f0946", "score": "0.661704", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n return inflater.inflate(R.layout.fragment_sugar_bowl, container, false);\n }", "title": "" }, { "docid": "5c3ba1127da79fc898d183a8e6c0f21c", "score": "0.66153425", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_see_all_friends, container, false);\n }", "title": "" }, { "docid": "cba124b8ff733d1972a368c698db4f82", "score": "0.661413", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_ditail, container, false);\n unbinder = ButterKnife.bind(this, view);\n EventBus.getDefault().register(this);\n initDataDetail();\n return view;\n }", "title": "" }, { "docid": "13c800d799d979edb92c096e85c2deea", "score": "0.6608651", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_playerinfo_detail, container, false);\n }", "title": "" }, { "docid": "68dd41d38d130787f0d1c75de488d39b", "score": "0.660275", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.ipoll_fragment_feeds, container, false);\n ButterKnife.bind(this, view);\n iFeedDetailsAdapter = this;\n setUp();\n return view;\n }", "title": "" }, { "docid": "91f88a72cad150a467cfd74d316461e2", "score": "0.6601644", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.sptr_club_feedback_form_fragment, container, false);\n }", "title": "" }, { "docid": "f3bf45239c104241089f3623c505b3f6", "score": "0.6600568", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_point_list_gb, container, false);\n\n initializeUI(v);\n\n initializeRecyclerView(v);\n\n setSubtitle(mPointPath);\n\n //9) return the view\n return v;\n }", "title": "" }, { "docid": "a17cebbef9742e06b6820782f4899297", "score": "0.6595044", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n mView = inflater.inflate(R.layout.fragment_admin_enotice_board, container, false);\n initViewPagerAndTabs();\n setPageViewIndicator();\n return mView;\n }", "title": "" }, { "docid": "6e22d50b628ac37eded4a83765f92e63", "score": "0.65917015", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_user_input, parent, false);\n }", "title": "" }, { "docid": "0dde032d1165b2e6fe38fc0dd2582269", "score": "0.6591148", "text": "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n int layout = fragments[level - 1];\n return inflater.inflate(layout, container, false);\n }", "title": "" }, { "docid": "1674abf7ce44252f2918b56652c1f601", "score": "0.6589239", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_info, container, false);\n ButterKnife.bind(this, rootView);\n\n setupLayout();\n\n return rootView;\n }", "title": "" }, { "docid": "19ac029af702c7772d76e0d3b7a976fd", "score": "0.6582034", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_blok4_b, container, false);\n\n init();\n\n return view;\n }", "title": "" }, { "docid": "e73182b29f877ac2dc705b6d7d39c067", "score": "0.6581473", "text": "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pfjoin_room, container, false);\n }", "title": "" }, { "docid": "3cd25b95c996d9d3fb3171f8bfb7c1a0", "score": "0.6580881", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment, container, false);\n accountBean = new AccountBean();\n // 初始化fragment的View\n initView(view);\n // 给GridView填充数据\n loadDataToGV();\n // 初始化最上方图片和文字为其他\n initSelect();\n // 设置GridView的点击事件\n setGVListener();\n // 设置初始化时间(当前时间)\n setInitTime();\n return view;\n }", "title": "" }, { "docid": "24ece0547706cda7fb236acf75458cc0", "score": "0.65798694", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_htweight_report, container, false);\n }", "title": "" }, { "docid": "bf1996357cd23c104167982853f162dc", "score": "0.6576976", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n datavisual_Layout=inflater.inflate(R.layout.fragment_datavisual, container, false);\r\n return datavisual_Layout;\r\n }", "title": "" }, { "docid": "b8475b733281d06825e92c9563cb4b4e", "score": "0.65746295", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.activity_reservas_fragment, container, false);\n }", "title": "" }, { "docid": "258cd35e074e806936ad73fd3a581adc", "score": "0.6569519", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n if(root == null) {\n root = inflater.inflate(R.layout.fragment_schedule_host, container, false);\n pb = (ProgressBar) root.findViewById(R.id.ScheduleHost_ProgressBar);\n MainLayouit = (LinearLayout) root.findViewById(R.id.ScheduleHost_MainLayout);\n getDatabaseAsync();\n getScheduleAsync(root, null);\n }\n return root;\n }", "title": "" }, { "docid": "532a576f052f304a1fba943013522d36", "score": "0.6568779", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "title": "" }, { "docid": "7aa7cdd388725447215a1f1a8fb3dba8", "score": "0.65680504", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_balance, container, false);\n initView();\n initData();\n return inflate;\n }", "title": "" }, { "docid": "2b7f31a4ff872298bcb826af93b6c455", "score": "0.6565418", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_chat__detail_, container, false);\n }", "title": "" }, { "docid": "b4c02129bd59bfbb6a4dc1c99983b670", "score": "0.6563592", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.graph_fragment, container, false);\n }", "title": "" }, { "docid": "62ae2b4c620f1acda74c9b854f1417f2", "score": "0.656245", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_video_stream_receiver, container, false);\n }", "title": "" }, { "docid": "46eda77b35438f974276a39f58d5c6fd", "score": "0.6560828", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_manage_meds_med_schedule_summary, container, false);\n }", "title": "" }, { "docid": "bdbfd07049f564c36e7bfc64ae9446ba", "score": "0.6559329", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friends, container, false);\n }", "title": "" }, { "docid": "bdbfd07049f564c36e7bfc64ae9446ba", "score": "0.6559329", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friends, container, false);\n }", "title": "" }, { "docid": "1c5c5f67a13c3941f49bea09431b0592", "score": "0.65566695", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_sayuran_b, container, false);\n }", "title": "" }, { "docid": "3458b2ae4920a688433815025c4d8d87", "score": "0.65544844", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_info, container, false);\n }", "title": "" }, { "docid": "b89bc66cde8af46a27be03cfc42772aa", "score": "0.6552616", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.playlists_fragment, container, false);\n }", "title": "" }, { "docid": "b88646b86f001da416973c1c38252f08", "score": "0.65481377", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_schedule_room, container, false);\n }", "title": "" }, { "docid": "eb4e489f3f6659047455a6046ffb54b4", "score": "0.65447164", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pic_detail_show_layout, container, false);\n }", "title": "" }, { "docid": "2ee5c68dd6889978d5b4b5970f04959e", "score": "0.6542353", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.event_fragment, container, false);\n }", "title": "" }, { "docid": "fd22bac2f30e5cefdd9a52741a2528c4", "score": "0.65338176", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_x_z_blank, container, false);\n EventBus.getDefault().register(this);\n initView(inflate);//设置方法\n return inflate;\n }", "title": "" }, { "docid": "16e125962a4a1265cd05c20a89841083", "score": "0.65335387", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.send1, container, false);\n }", "title": "" }, { "docid": "fdb75348e8e3b27e4b80a3678096a329", "score": "0.65325713", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kamar_detail, container, false);\n }", "title": "" }, { "docid": "f4e51a678b2a7cca8a98984933cfe195", "score": "0.6531234", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_details, container, false);\n }", "title": "" }, { "docid": "e6880becf889e1445309f783d4a3837a", "score": "0.653113", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View layout = inflater.inflate(R.layout.fragment_reg_train, container, false);\n\n return layout;\n }", "title": "" }, { "docid": "97d292a22ce5175dba0a320444019e83", "score": "0.65297776", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.quiz_first_frag, container, false);\n }", "title": "" }, { "docid": "8777673229ff55a40c0087af7af2870f", "score": "0.6525308", "text": "@Override\n public View onCreateView(\n LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState\n ) {\n return inflater.inflate(R.layout.google_drive_fragment, container, false);\n }", "title": "" }, { "docid": "dc325bbc9b3ca38b44c1fcfe0225c17d", "score": "0.65206486", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mybooks, container, false);\n }", "title": "" }, { "docid": "8efc1af4b35ca07313116f376c19d2b3", "score": "0.6520338", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quan_li_don_hang, container, false);\n }", "title": "" }, { "docid": "7c22dfaf49e0a17defabe4502a4c2b6f", "score": "0.6519742", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_zt_fragment, container, false);\n }", "title": "" }, { "docid": "a9ea0c0ac2ffcadb49927c3112a1ccfd", "score": "0.6519464", "text": "public void inflateLayout() {\n View.inflate(getContext(), C4558R.layout.zm_message_file_send, this);\n }", "title": "" }, { "docid": "c10db8d4dc3e6b9ebde717cd68189810", "score": "0.6517137", "text": "@Override\n public View onCreateView(LayoutInflater inflater,\n ViewGroup container, Bundle savedInstanceState) {\n\n return inflater.inflate(\n R.layout.output_fragment, container, false);\n }", "title": "" }, { "docid": "80dd0fb52afce42b67561ba4512eb58f", "score": "0.651651", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.profilelayout, container, false);\n return rootView;\n }", "title": "" }, { "docid": "8ec2c9836aa1dc4b6a0887734b7d3c6b", "score": "0.65145016", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n vRoot = inflater.inflate(R.layout.fragment_place, container, false);\n init();\n getdata();\n return vRoot;\n }", "title": "" }, { "docid": "01030c9120e2508c37e10eae177fc8b2", "score": "0.65143746", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_single_chat, container, false);\r\n\r\n setInit();\r\n\r\n findViews(view);\r\n\r\n setFormula(view);\r\n\r\n setEvents();\r\n\r\n return view;\r\n }", "title": "" }, { "docid": "7db771bf8440592e69933bc44b9091d9", "score": "0.65116006", "text": "@Override\n public View onCreateView(LayoutInflater inflater,\n ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(mLayoutId, container, false);\n }", "title": "" }, { "docid": "3527747f66d65ecf33f5228d6a0a9c6d", "score": "0.65113115", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n View rootview = inflater.inflate(R.layout.fragment_base, container, false);\n\n userID = new SharedPreference().getPreferencesString(parentContext, \"user_id\" + \"_\" + ApiRequest.TOKEN);\n ButterKnife.bind(this, rootview);\n pager = (ViewPager) rootview.findViewById(R.id.view_pager);\n sharedPreference = new SharedPreference();\n\n return rootview;\n }", "title": "" }, { "docid": "415fc9d767a5ec479adb3b6401757faa", "score": "0.65085477", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_friend_adder, container, false);\n addFriendButton = view.findViewById(R.id.button_add_friend);\n friendNameView = view.findViewById(R.id.text_area_friend_name);\n\n setupListeners();\n\n return view;\n }", "title": "" }, { "docid": "9236934b27b91fccffc551f255232dcc", "score": "0.6507001", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_info_batik_jakarta1, container, false);\n\n\n\n }", "title": "" }, { "docid": "d81524c1c993bae0c33ba528bd0a536a", "score": "0.6504862", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.activity_orphanages_wishlist, container, false);\n }", "title": "" }, { "docid": "38c17062ea904f1b9b6371a994b93f76", "score": "0.65041846", "text": "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View view = inflater.inflate(R.layout.unit_details_fragment, container, false);\n\n unbinder = ButterKnife.bind(this, view);\n adjustViews();\n appHeader.setTitle(unitDetailsModel.getUnitDetails().getUnitCode());\n csvUnitDetails.setOnSegmentChangedListener(this);\n return view;\n }", "title": "" }, { "docid": "337146b138bcd57c31b2023d99c68e69", "score": "0.65035415", "text": "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tView view = inflater.inflate(R.layout.profile_fragment_layout, null);\n\t\tbtnLogout = (ButtonRectangle) view.findViewById(R.id.btn_logout);\n\t\tbtnEdit = (ButtonRectangle) view.findViewById(R.id.btn_update);\n\t\tdisplayName = (EditText) view.findViewById(R.id.display_name);\n\t\temail = (EditText) view.findViewById(R.id.email);\n\t\taddress = (EditText) view.findViewById(R.id.address);\n\t\tphone = (EditText) view.findViewById(R.id.phone);\n\t\twebsite = (EditText) view.findViewById(R.id.websites);\n\t\tavt = (ImageView) view.findViewById(R.id.avt);\n\t\tuserName = (EditText) view.findViewById(R.id.user_name);\n\t\tbtnChangePass = (ButtonRectangle) view.findViewById(R.id.btn_change_pass);\n\t\treturn view;\n\t}", "title": "" }, { "docid": "1cb735493c1f4fde25a1eb2a9049a4b1", "score": "0.6497689", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_paramater, container, false);\n }", "title": "" }, { "docid": "9ff5ad0cc079e269a47805358065eb38", "score": "0.6497573", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "title": "" }, { "docid": "15374ddfbe0746dfe77269fbbaf78f87", "score": "0.6496925", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View v = inflater.inflate(R.layout.fragment_upcoming, container, false);\n\n up_textView = v.findViewById(R.id.up_textView);\n up_frag_rv = v.findViewById(R.id.up_frag_rv);\n\n up_frag_rv.setHasFixedSize(true);\n\n databaseSource = new DatabaseSource(getContext());\n typeArrayList = new ArrayList<>();\n\n typeArrayList = databaseSource.getDistinctTaskType();\n\n if (typeArrayList.size() > 0)\n {\n up_frag_rv.setVisibility(View.VISIBLE);\n up_textView.setVisibility(View.GONE);\n\n Adapter = new UpcomingFragmentAdapter(getContext(), typeArrayList);\n\n GridLayoutManager layoutManager = new GridLayoutManager(getContext(), 2);\n up_frag_rv.setLayoutManager(layoutManager);\n Adapter.notifyDataSetChanged();\n up_frag_rv.setAdapter(Adapter);\n }\n else\n {\n up_textView.setVisibility(View.VISIBLE);\n }\n\n\n return v;\n }", "title": "" }, { "docid": "6a4d012543e9a9da497dfe6cd1370aa1", "score": "0.6496592", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_member, container, false);\n }", "title": "" }, { "docid": "0b526a1ae0253e014043b5ec9cfad48b", "score": "0.6493339", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_gridview, container, false);\n }", "title": "" }, { "docid": "8d1c1f76a8a9dde45082f5c491a0834e", "score": "0.64894444", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n parent = inflater.inflate(R.layout.fragment_view_details_data, container, false);\n convertEntriesToArray();\n setupRecyclerViewAdapter();\n setupRecyclerViewLayout();\n setupShowAllButtonClick();\n return parent;\n }", "title": "" }, { "docid": "58b2163741de1257603e10b61388db8c", "score": "0.6485893", "text": "@Override\n\tpublic View onCreateView(LayoutInflater inflater,\n\t\t\t@Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n\t\tView view = inflater.inflate(R.layout.cpd_fragment, container, false);\n\t\tLinearLayout rv = (LinearLayout) view.findViewById(R.id.rv);\n\t\tnew ASSL(getActivity(), rv, 1134, 720, false);\n\n\t\treturn view;\n\t}", "title": "" }, { "docid": "a27ea79cd789b3a67764bad6bc0287e9", "score": "0.6482074", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "title": "" }, { "docid": "f4f35a927897b2029f0aba0502081d1d", "score": "0.6481667", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_mphb, container, false);\n Bundle bundle=this.getArguments();\n if(bundle!=null){\n list = bundle.getParcelableArrayList(\"data\");\n }\n rankContentPresenter=new IRankContentPresenterImpl(this,getContext());\n rankContentPresenter.setId(list.get(0).getId());\n rankContentPresenter.loadData();\n init(view);\n return view;\n }", "title": "" }, { "docid": "85f85a257843bd37f62aca07e2e8fc12", "score": "0.648107", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_create_storageroom_page4, container, false);\n }", "title": "" }, { "docid": "495f90d1246087bc606c0069e0b95e8b", "score": "0.6481046", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n v = inflater.inflate(R.layout.fragment_liver_widget, container, false);\n\n // Initialise the GUI elements with necessary information.\n initGUI();\n\n return v;\n\n }", "title": "" }, { "docid": "45cdf8c6525b14f1d2cf7c65a3aed5fa", "score": "0.648039", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_request_base, container, false);\n }", "title": "" }, { "docid": "2eaa3f193dd63fb5d34d7257804d3965", "score": "0.64802766", "text": "@Override\n public View onCreateView(\n LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState\n ) {\n return inflater.inflate(R.layout.fragment_all, container, false);\n }", "title": "" }, { "docid": "ca640113e2420c291517716da63308ab", "score": "0.647992", "text": "@Override\n public View onCreateView(\n LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_camera2_basic, container, false);\n }", "title": "" }, { "docid": "e6d6286089bf344d453097a4d2fef1e7", "score": "0.6479018", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.wallet_fragment_id_hub_message, container, false);\n initView(view);\n initData();\n return view;\n }", "title": "" }, { "docid": "61a8daa7f5ab6d15be2d4ce45fde3c3f", "score": "0.64788985", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n v = inflater.inflate(R.layout.fragment_experiments, container, false);\n\n //listView = (GridView) v.findViewById(R.id.gridView);\n pBar = (ProgressBar) v.findViewById(R.id.progressBar2);\n txtNoNWMessage = (TextView) v.findViewById(R.id.textView);\n mSwipeLayout = (SwipeRefreshLayout) v.findViewById(R.id.swipe_container);\n mSwipeLayout.setOnRefreshListener(this);\n mSwipeLayout.setColorSchemeResources(android.R.color.holo_blue_bright,\n android.R.color.holo_green_light,\n android.R.color.holo_orange_light,\n android.R.color.holo_red_light);\n recyclerView = (RecyclerView) v.findViewById(R.id.recycler_view);\n return v;\n }", "title": "" }, { "docid": "483a2a8ff2a9d47dcf33d3fb74fa3a4f", "score": "0.6472862", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_details, container, false);\n moviePoster = (ImageView) view.findViewById(R.id.movie_poster);\n movieName = (TextView) view.findViewById(R.id.movie_name);\n overview = (TextView) view.findViewById(R.id.overview);\n userRating = (TextView) view.findViewById(R.id.user_rating);\n releaseDate = (TextView) view.findViewById(R.id.release_date);\n\n return view;\n }", "title": "" }, { "docid": "71367a61c7eebc2b2c095e76cce40d39", "score": "0.6471399", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_live_auction, container, false);\n }", "title": "" }, { "docid": "f62d97c293b5ead45e6ff262df5c1427", "score": "0.64705634", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_voice_input, container, false);\n }", "title": "" }, { "docid": "11fe39d2ba148d581f69238e203d8195", "score": "0.6470134", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recomm, container, false);\n }", "title": "" }, { "docid": "0269441d16dfe4e9c3be414881c43d5b", "score": "0.6470003", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "title": "" }, { "docid": "e9ef501233a7f7a4d568ef6934ee3b39", "score": "0.64682335", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n this.fragmentView = inflater.inflate(R.layout.fragment_measurements, container, false);\n this.altitudeView = fragmentView.findViewById(R.id.altitudeValue);\n this.slopeView = fragmentView.findViewById(R.id.slopeValue);\n return fragmentView;\n }", "title": "" }, { "docid": "0fcf9462c5ccd790411c074082351666", "score": "0.64662653", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_right_answer, container, false);\n }", "title": "" }, { "docid": "139bb40c608b1ac39106e4a84ae6c76e", "score": "0.6465994", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_vp, container, false);\n unbinder = ButterKnife.bind(this, inflate);\n initData();\n initAdd();\n return inflate;\n }", "title": "" }, { "docid": "b9fbfc5f3d98edc69e21a74afe45ae10", "score": "0.646475", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_pin, container, false);\n\n initUI(view);\n\n return view;\n }", "title": "" }, { "docid": "2dd11b2d2e433e6b638e253b2a23ba69", "score": "0.6463287", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_zhuanlan, container, false);\n initView(view);\n return view;\n }", "title": "" }, { "docid": "2d275283fb6c4ae4d030dc2214c79aa1", "score": "0.646103", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_game_info, container, false);\n }", "title": "" } ]
ccd58464e7ba82e31db0081945e9d4cb
/ Legacy user constructor without SSL support
[ { "docid": "ba55d804dba0c7c86e054c121f1cdc21", "score": "0.0", "text": "public KWWebAPIService(String host,\n\t\t\t\t\t\t String port,\n\t\t\t\t\t\t String user) {\n\t\tm_kw_properties = new Properties();\n\t\tm_kw_properties.setProperty(\"kwwebapihost\", host);\n\t\tm_kw_properties.setProperty(\"kwwebapiport\", port);\n m_kw_properties.setProperty(\"kwwebapissl\", \"n\");\n\t\tm_kw_properties.setProperty(\"kwwebapiuser\", user);\n\t}", "title": "" } ]
[ { "docid": "66a9d1fca68091313bccedd2540ed07d", "score": "0.80909425", "text": "private SSL() {\n\t}", "title": "" }, { "docid": "ccbae3ee7719ec31b177c6f1457922e8", "score": "0.72091234", "text": "private CertSource()\n {\n }", "title": "" }, { "docid": "34a4d9bc2cecc5370d4f2daa3929a21a", "score": "0.7044465", "text": "private TLSContext() {\n }", "title": "" }, { "docid": "7dea9e5ab8951597ad0b1a46df6fc34a", "score": "0.66495043", "text": "public HTTPSListener(HTTPSListener source) {\n if (source.ListenerId != null) {\n this.ListenerId = new String(source.ListenerId);\n }\n if (source.ListenerName != null) {\n this.ListenerName = new String(source.ListenerName);\n }\n if (source.Port != null) {\n this.Port = new Long(source.Port);\n }\n if (source.Protocol != null) {\n this.Protocol = new String(source.Protocol);\n }\n if (source.ListenerStatus != null) {\n this.ListenerStatus = new Long(source.ListenerStatus);\n }\n if (source.CertificateId != null) {\n this.CertificateId = new String(source.CertificateId);\n }\n if (source.ForwardProtocol != null) {\n this.ForwardProtocol = new String(source.ForwardProtocol);\n }\n if (source.CreateTime != null) {\n this.CreateTime = new Long(source.CreateTime);\n }\n if (source.CertificateAlias != null) {\n this.CertificateAlias = new String(source.CertificateAlias);\n }\n if (source.ClientCertificateId != null) {\n this.ClientCertificateId = new String(source.ClientCertificateId);\n }\n if (source.AuthType != null) {\n this.AuthType = new Long(source.AuthType);\n }\n if (source.ClientCertificateAlias != null) {\n this.ClientCertificateAlias = new String(source.ClientCertificateAlias);\n }\n if (source.PolyClientCertificateAliasInfo != null) {\n this.PolyClientCertificateAliasInfo = new CertificateAliasInfo[source.PolyClientCertificateAliasInfo.length];\n for (int i = 0; i < source.PolyClientCertificateAliasInfo.length; i++) {\n this.PolyClientCertificateAliasInfo[i] = new CertificateAliasInfo(source.PolyClientCertificateAliasInfo[i]);\n }\n }\n if (source.Http3Supported != null) {\n this.Http3Supported = new Long(source.Http3Supported);\n }\n if (source.ProxyId != null) {\n this.ProxyId = new String(source.ProxyId);\n }\n if (source.GroupId != null) {\n this.GroupId = new String(source.GroupId);\n }\n }", "title": "" }, { "docid": "1d33524ad1cc84838122b6e7cc92dfaf", "score": "0.6546778", "text": "public Protocol() {\n protocol = \"https\";\n default_port = 443; // 443 is the default port for HTTPS\n }", "title": "" }, { "docid": "97713057f0155a390f5d6c02a895de9d", "score": "0.64405423", "text": "public HttpConnection() {}", "title": "" }, { "docid": "6e9b426c5028ea7af9a7e26e0e162f63", "score": "0.63109004", "text": "@Test\n public void constructorCreatesSSLContext() throws NoSuchAlgorithmException, KeyStoreException, KeyManagementException, IOException, CertificateException\n {\n //arrange\n testCollection.add(mockedCertificate);\n generateSSLContextExpectations();\n\n //act\n\n IotHubSSLContext testContext = Deencapsulation.newInstance(IotHubSSLContext.class);\n\n //assert\n generateSSLContextVerifications();\n assertNotNull(Deencapsulation.invoke(testContext, \"getSSLContext\"));\n testCollection.remove(mockedCertificate);\n\n }", "title": "" }, { "docid": "f533b3a8f7cf02e4eb0cda90007ea82f", "score": "0.6262702", "text": "public NetBIOSSession () {\n super( ProtocolName);\n\t}", "title": "" }, { "docid": "a429a07dd3f493a0793e81e3f879838f", "score": "0.6250902", "text": "protected CryptoService() {\n\t}", "title": "" }, { "docid": "f06c636478d964fbd983504da8b192c3", "score": "0.6244923", "text": "public OpenSSLAES(){\r\n\t\tthis(new SecureRandom());\r\n\t}", "title": "" }, { "docid": "da4e965605cd790e3546807454ad7f75", "score": "0.62373513", "text": "private Client() {\r\n }", "title": "" }, { "docid": "9a39984529ec2f8c9bbb9cfb9a999971", "score": "0.6219118", "text": "private NetUtils() {\n throw new Error(\"Do not need instantiate!\");\n }", "title": "" }, { "docid": "5af477d9666b97c5957c1b94d19c45f5", "score": "0.6186056", "text": "private CryptographicServices() {\r\n }", "title": "" }, { "docid": "eb1c69b6ae71e4a21ea0c975afb77f1f", "score": "0.6161606", "text": "private SinConnection () {}", "title": "" }, { "docid": "ef6ce73139d9d47b4cc9d1931a2143a6", "score": "0.6155922", "text": "public Endpoint() { // This default constructor might pose some problems.\n // Default value here.\n Protocol.initialize();\n this.protocol = new Protocol(\"http\");\n this.port = 0;\n this.parameters = new HashSet<>();\n //this.baseUrl = \"\";\n }", "title": "" }, { "docid": "21531e56a36439945ad5dbfb2aeb340e", "score": "0.6143926", "text": "SSLEngineFactory(SecureEnvironment env, String sslContextProtocol, String hostname, int port) {\n this.env = env;\n this.sslContextProtocol = sslContextProtocol;\n this.hostname = hostname;\n this.port = port;\n }", "title": "" }, { "docid": "893b766a68499bff76f6a605093196cb", "score": "0.61148703", "text": "TealessSSLContext(SSLContextSpi sslContextSpi, Provider provider, String s) {\n super(sslContextSpi, provider, s);\n }", "title": "" }, { "docid": "96c572193756f3a5bb4e8b035fef5230", "score": "0.6105811", "text": "public ServerCert(ServerCert source) {\n if (source.CertId != null) {\n this.CertId = new String(source.CertId);\n }\n if (source.CertName != null) {\n this.CertName = new String(source.CertName);\n }\n if (source.Certificate != null) {\n this.Certificate = new String(source.Certificate);\n }\n if (source.PrivateKey != null) {\n this.PrivateKey = new String(source.PrivateKey);\n }\n if (source.ExpireTime != null) {\n this.ExpireTime = new String(source.ExpireTime);\n }\n if (source.DeployTime != null) {\n this.DeployTime = new String(source.DeployTime);\n }\n if (source.Message != null) {\n this.Message = new String(source.Message);\n }\n if (source.From != null) {\n this.From = new String(source.From);\n }\n }", "title": "" }, { "docid": "ee30cb20a49742a913a6a812b79228db", "score": "0.6099193", "text": "public AuthClient(@NotNull String url) {\n Objects.requireNonNull(url, \"url\");\n\n this.url = url.endsWith(\"/\") ? url.substring(0, url.length() - 1) : url;\n\n if (!url.startsWith(\"https://\")) {\n LOGGER.warning(\"HTTP links are not secure, use HTTPS instead.\");\n }\n }", "title": "" }, { "docid": "e33ecbb3ef94981e021ac56d42ff45db", "score": "0.6073166", "text": "public SSLNotSupportedException(String s) {\n super(s);\n }", "title": "" }, { "docid": "5738f53ef1490b8ab133a400ef1aefdb", "score": "0.6057319", "text": "public LUSIDAPIImpl() {\n this(\"http://localhost\");\n }", "title": "" }, { "docid": "8081f7bb10fa417750bf3d9098c862e8", "score": "0.6041635", "text": "public SELF useInsecureSslCertificates() {\n this.ignoreInvalidSslCertificates = true;\n return (SELF) this;\n }", "title": "" }, { "docid": "5410aa3d5b07f7995a204a8c471aba5b", "score": "0.6040847", "text": "protected SourceClientREST() {\n\n }", "title": "" }, { "docid": "730551d22dfa914bf4f6590b7cecf295", "score": "0.60363555", "text": "public HttpClient(String server, boolean https, int port)\n {\n// this.server = server;\n this.client = new DefaultHttpClient();\n this.host = new HttpHost(server, port, https ? \"https\" : \"http\");\n }", "title": "" }, { "docid": "74aaff09d14c07091d3856dded1da542", "score": "0.6029779", "text": "private void setupForSSL() {\n\t\ttry {\n\t\t\tTrustManager tm = new DummyTrustManager();\n\t\t\tSSLContext sc = SSLContext.getInstance(\"SSL\");\n\t\t\tsc.init(null, new TrustManager[] { tm }, null);\n\t\t\tHttpsURLConnection\n\t\t\t\t\t.setDefaultSSLSocketFactory(sc.getSocketFactory());\n\t\t\tHostnameVerifier hv = new HostnameVerifier() {\n\t\t\t\tpublic boolean verify(String urlHostName, SSLSession session) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t};\n\t\t\tHttpsURLConnection.setDefaultHostnameVerifier(hv);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"error occurred while setup SSL: \" + e);\n\t\t}\n\t}", "title": "" }, { "docid": "5ca70264d71b2c381938033b2d51dc69", "score": "0.6023928", "text": "public SiapConnection() {\n\t// Nothing yet.\n }", "title": "" }, { "docid": "434deac57753d4ad659c948ba7f058b8", "score": "0.5989939", "text": "private RESTClientFactory() {\n }", "title": "" }, { "docid": "46718e9da9ef35629b4c1ee96ba41691", "score": "0.598267", "text": "private SSLSocketFactory buildSSLSocketFactory() {\n\t\tTrustStrategy ts = new TrustStrategy() {\n\t\t\t@Override\n\t\t\tpublic boolean isTrusted(X509Certificate[] x509Certificates,\n\t\t\t String s) throws CertificateException {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t};\n\t\tSSLSocketFactory sf = null;\n\t\ttry {\n\t\t\tsf = new SSLSocketFactory(ts,\n\t\t\t SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tLOGGER.error(\"Failed to initialize SSL handling.\", e);\n\t\t} catch (KeyManagementException e) {\n\t\t\tLOGGER.error(\"Failed to initialize SSL handling.\", e);\n\t\t} catch (KeyStoreException e) {\n\t\t\tLOGGER.error(\"Failed to initialize SSL handling.\", e);\n\t\t} catch (UnrecoverableKeyException e) {\n\t\t\tLOGGER.error(\"Failed to initialize SSL handling.\", e);\n\t\t}\n\t\treturn sf;\n\t}", "title": "" }, { "docid": "acae6cf597f1fb77ca66a44c5648f045", "score": "0.59696543", "text": "private ServerClient() {}", "title": "" }, { "docid": "d274d06134efff4b49389d18b648df40", "score": "0.5953805", "text": "private Connection(){}", "title": "" }, { "docid": "15e634054ea75599d36fc6bac9054949", "score": "0.5949925", "text": "public UserCredential()\r\n\t{\r\n\t}", "title": "" }, { "docid": "408f849a3672dbd5b1b20a504148d32a", "score": "0.59219664", "text": "public SecurityContext() {\n \n }", "title": "" }, { "docid": "0815ac310413e50d893739ccdfa9a5ab", "score": "0.59162515", "text": "private JedisConnection() {\r\n\r\n\t}", "title": "" }, { "docid": "e23aac62f8a8db7c5068503ab61b77dc", "score": "0.59076065", "text": "private Authserver() {\n super(\"authserver\", null);\n }", "title": "" }, { "docid": "fe3b4690eb49ad11d427173eb62bcc3f", "score": "0.5903649", "text": "public LSS() {\n\t\t\n\t}", "title": "" }, { "docid": "660865b8e17986c420977ff94809df93", "score": "0.59007853", "text": "private CommonURL() {\n\n\t}", "title": "" }, { "docid": "78704e33268ec69d34744824b592dbd1", "score": "0.58815944", "text": "public FHIRContext()\r\n {\r\n \tParseConfig pc = new ParseConfig();\r\n \t\r\n \tsetUrl(pc.getUrl());\r\n \tif(pc.getFormat().equals(\"JSON\"))\r\n \t\t\tsetFormat(\"_format=json&_count=100\");\r\n \t//Because we connect to GT FHIR server using 8443 we need to supply cert info\r\n \t\r\n \tSystem.setProperty(\"javax.net.ssl.trustStore\", pc.getTrustStore());\r\n \tSystem.setProperty(\"javax.net.ssl.trustStorePassword\", pc.getTrustStorePasswd());\r\n }", "title": "" }, { "docid": "172209e0dbe8f483cd2c00889b4e6648", "score": "0.58715516", "text": "public C5672h(java.security.KeyStore r2) throws java.security.NoSuchAlgorithmException, java.security.KeyManagementException, java.security.KeyStoreException, java.security.UnrecoverableKeyException {\n /*\n r1 = this;\n cz.msebera.android.httpclient.conn.ssl.f r0 = p163cz.msebera.android.httpclient.conn.ssl.C5671g.m18062b()\n r0.mo33107a(r2)\n javax.net.ssl.SSLContext r2 = r0.mo33109a()\n cz.msebera.android.httpclient.conn.ssl.k r0 = f14679g\n r1.<init>(r2, r0)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p163cz.msebera.android.httpclient.conn.ssl.C5672h.<init>(java.security.KeyStore):void\");\n }", "title": "" }, { "docid": "ffaaf8096e10132852c25f1072f672cd", "score": "0.5870228", "text": "public Client() { }", "title": "" }, { "docid": "51dd77e4d5034a63a2d0281b8ef558f5", "score": "0.58448833", "text": "public Client()\n {\n // To do:\n }", "title": "" }, { "docid": "609e49294a0e69ae94f1893e5892cf10", "score": "0.5843283", "text": "public Client() {\n\t\t\n\t}", "title": "" }, { "docid": "609e49294a0e69ae94f1893e5892cf10", "score": "0.5843283", "text": "public Client() {\n\t\t\n\t}", "title": "" }, { "docid": "6ba1f9a60d5e4481afd0488e28549749", "score": "0.582666", "text": "public Client() {}", "title": "" }, { "docid": "5521a10666e24b3e81744da0a192d278", "score": "0.5823023", "text": "public PrivateLinkServiceConnectionState() {\n }", "title": "" }, { "docid": "955be42641890ac25934e81992aac6aa", "score": "0.5820712", "text": "protected SslConnection(XnioIoThread thread) {\n super(thread);\n }", "title": "" }, { "docid": "664a254af710cac2546651990ca70db4", "score": "0.5816869", "text": "void setupSSL(String s, String password) {\n KeyStore ks = null;\n try {\n ks = KeyStore.getInstance(\"JKS\");\n } catch (KeyStoreException e) {\n e.printStackTrace();\n }\n InputStream ksIs = null;\n try {\n ksIs = new FileInputStream(s);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n try {\n if (ks != null) {\n ks.load(ksIs, password.toCharArray());\n }\n } catch (IOException | NoSuchAlgorithmException | CertificateException e) {\n e.printStackTrace();\n }\n KeyManagerFactory kmf = null;\n try {\n kmf = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n try {\n if (kmf != null) {\n kmf.init(ks, password.toCharArray());\n }\n } catch (KeyStoreException | UnrecoverableKeyException | NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n\n try {\n sc = SSLContext.getInstance(\"TLSv1.2\");\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n try {\n if (kmf != null && sc != null) {\n\n sc.init(kmf.getKeyManagers(), null, new SecureRandom());\n }\n } catch (KeyManagementException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "7bbd39292a203364131e887dc97c2b5d", "score": "0.5816019", "text": "protected LCS() {\n\t}", "title": "" }, { "docid": "0425ecf94858edbc10cecc0c9ef6fc24", "score": "0.5809207", "text": "public ConnectionManager(String lbHost,String lbPort,String lbProxyHost, \n String lbProxyPort,String lbName, boolean isSecure)\n {\n _lbHost = lbHost;\n _lbPort = lbPort;\n _lbProxyHost = lbProxyHost;\n _lbProxyPort = lbProxyPort;\n _lbName = lbName;\n _isSecure = isSecure;\n }", "title": "" }, { "docid": "76bf95104bca6543698e458ffff102fe", "score": "0.58091176", "text": "private LicenseServer() {\n\t\tsuper(\"license_server\");\n\t}", "title": "" }, { "docid": "e639a557f95997d825d86a468f079ac7", "score": "0.5806713", "text": "private RequestFactory() {\n\t}", "title": "" }, { "docid": "de656753eebd15780fa44399b9f8a729", "score": "0.578997", "text": "private HttpUtils() {\n }", "title": "" }, { "docid": "e1a3f477ac8a1e40a33a1fdc63c2b2d0", "score": "0.57879823", "text": "protected DualWrapper() {}", "title": "" }, { "docid": "d8610da519d669baecfe314184bd6bd9", "score": "0.57828677", "text": "private static HttpClient getNewHttpClient() {\r\n try {\r\n KeyStore trustStore = KeyStore.getInstance(KeyStore.getDefaultType());\r\n trustStore.load(null, null);\r\n\r\n SSLSocketFactory sf = new MySSLSocketFactory(trustStore);\r\n sf.setHostnameVerifier(SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);\r\n\r\n HttpParams params = new BasicHttpParams();\r\n HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);\r\n HttpProtocolParams.setContentCharset(params, HTTP.UTF_8);\r\n\r\n SchemeRegistry registry = new SchemeRegistry();\r\n registry.register(new Scheme(\"http\", PlainSocketFactory.getSocketFactory(), 80));\r\n registry.register(new Scheme(\"https\", sf, 443));\r\n\r\n ClientConnectionManager ccm = new ThreadSafeClientConnManager(params, registry);\r\n\r\n return new DefaultHttpClient(ccm, params);\r\n } catch (Exception e) {\r\n return new DefaultHttpClient();\r\n }\r\n }", "title": "" }, { "docid": "7d1299f51745455b4c9c04dfe9ee70c5", "score": "0.57819384", "text": "private Connector() { }", "title": "" }, { "docid": "71c4a0c1c6b9fee29a0f53014592548a", "score": "0.577674", "text": "public Client() {\n\t}", "title": "" }, { "docid": "90d86256f458eda7b7ed6a28db73d833", "score": "0.5768877", "text": "public static void init(){\n\t\t// To setup the authentication\n\t\tAuthDescriptor ad = new AuthDescriptor(new String[] { \"PLAIN\" },\n\t\t\t\tnew PlainCallbackHandler(\"REPLACE WITH USER\", \"REPLACE WITH PASSWORD\"));\n\t\ttry{\n\t\t\t\n\t\t\t// Singleton instance creation\n\t\t\tString memcahedUrl = \"PROVIDE URL IN HOST;PORT\";\n\t\t\t\n\t\t\t memInstance = new MemcachedClient(\n\t\t\t\t\tnew ConnectionFactoryBuilder().setProtocol(Protocol.BINARY).setAuthDescriptor(ad).build(),\n\t\t\t\t\tAddrUtil.getAddresses(memcahedUrl));\n\n\t\t}catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "9a07e329c883ceb6e9c745afe27787da", "score": "0.57674354", "text": "static HttpClient newHttpClient() throws NoSuchAlgorithmException, KeyManagementException {\r\n SSLContext sslContext = SSLContext.getInstance(\"TLS\");\r\n sslContext.init(null, trustAllCerts, new SecureRandom());\r\n return HttpClient.newBuilder().sslContext(sslContext).build();\r\n }", "title": "" }, { "docid": "faaf1275f1dc3de9e909fa831481fd6d", "score": "0.57653046", "text": "protected DistributedSystemAPI() {\n\t}", "title": "" }, { "docid": "4a58d9f4a71b2f9699c608942addaa5c", "score": "0.57636315", "text": "private LinkData() {\n\t}", "title": "" }, { "docid": "b62992138eeba717b1c63af1b7a2e04f", "score": "0.57612747", "text": "public CryptCipher() {\n\t}", "title": "" }, { "docid": "ef56f535328d90cf5db19dbb1200f31b", "score": "0.57596344", "text": "private CSOpenHouse() {}", "title": "" }, { "docid": "17011c2613c3186176ebbb116227f3cf", "score": "0.57558274", "text": "public Net() {\n\t}", "title": "" }, { "docid": "05281119b57648c202eababfd1420e62", "score": "0.5747316", "text": "public HttpUtils(){\n\n }", "title": "" }, { "docid": "0f114ecc243c87110da21bc12e6d650a", "score": "0.5744533", "text": "private SSLContext createSSLContext() throws Exception {\r\n\t\tLOGGER.debug(\"About to create an SSL context for the leaderCauClient....\");\r\n\t\t// Security.addProvider(new BouncyCastleProvider());\r\n\t\t// set up a key manager for our local credentials\r\n\t\tTrustManagerFactory trustManagerFactory = TrustManagerFactory\r\n\t\t\t\t.getInstance(TrustManagerFactory.getDefaultAlgorithm());\r\n\t\ttrustManagerFactory.init(sms.getTrustStore());\r\n\t\tKeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());\r\n\t\tLOGGER.debug(\"About to set up sslcontext keystore for the leaderCauClient....\");\r\n\t\tkeyManagerFactory.init(sms.getKeyStore(), sms.getStorePass().toCharArray());\r\n\t\t// create a context and set up a socket factory\r\n\t\tSSLContext sslContext = SSLContext.getInstance(\"TLS\"); // 1.2 default\r\n\t\tsslContext.init(keyManagerFactory.getKeyManagers(), trustManagerFactory.getTrustManagers(), null); // 2 ways\r\n\t\tLOGGER.debug(\"Finished createing an SSL context for the leaderCauClient....\");\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// authentication\r\n\r\n\t\treturn sslContext;\r\n\t}", "title": "" }, { "docid": "263b74c926b01da4fccf2af3dfa0d91b", "score": "0.57440025", "text": "protected ChronicleContext(String url) {\n this(url, null);\n }", "title": "" }, { "docid": "04b1c560188e96d2929b30260e912489", "score": "0.57423073", "text": "protected URI(URI uri) {\r\n\r\n\t\tschema = uri.schema;\r\n\t\tauthority = uri.authority;\r\n\t\tpath = uri.path;\r\n\t\tquery = uri.query;\r\n\t\tfragment = uri.fragment;\r\n\r\n\t\thost = uri.host;\r\n\t\tport = uri.port;\r\n\t\tuser = uri.user;\r\n\t\tpassword = uri.password;\r\n\r\n\t\thash = uri.hash;\r\n\t\tpathdeepness = uri.pathdeepness;\r\n\t\tprotocolNum = uri.protocolNum;\r\n\t\tdefaultPort = uri.defaultPort;\r\n\t\trelative = uri.relative;\r\n\t\tvalid = uri.valid;\r\n\t\tnotInitialized = uri.notInitialized;\r\n\t\tisIPv6 = uri.isIPv6;\r\n\t}", "title": "" }, { "docid": "104b9a821fb70b9a668796fe25d7d8da", "score": "0.5739524", "text": "public FakeConnection() {\n\t\tsuper(new FakeMailClient());\n\t}", "title": "" }, { "docid": "79b69cdc3e242d27547f86d06bd1ecb9", "score": "0.57392156", "text": "public ConnStringInfo() {\n }", "title": "" }, { "docid": "8e594cb6619caa269f86393d56ce7cbf", "score": "0.5733758", "text": "private RestfulSecurityContext() {}", "title": "" }, { "docid": "25ea2ec3ba28c6bce065eb26aacaf91d", "score": "0.57302433", "text": "public HttpUtils() {\n\n }", "title": "" }, { "docid": "89aacffc8b1496ceb1bcf20c9de2512f", "score": "0.5724107", "text": "private static SSLContext createBlindSSLContext()\n\t{\n\t\tTrustManager[] blindTrustMan = new TrustManager[]{new X509TrustManager()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic X509Certificate[] getAcceptedIssuers()\n\t\t\t{\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void checkClientTrusted(X509Certificate[] c, String a)\n\t\t\t{\n\t\t\t\t// Ignore\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void checkServerTrusted(X509Certificate[] c, String a)\n\t\t\t{\n\t\t\t\t// IGNORE\n\t\t\t}\n\t\t}};\n\n\t\t// create our \"blind\" ssl socket factory with our lazy trust manager\n\t\ttry\n\t\t{\n\t\t\tSSLContext sc = SSLContext.getInstance(\"SSL\");\n\t\t\tsc.init(null, blindTrustMan, new SecureRandom());\n\t\t\treturn sc;\n\t\t}\n\t\tcatch( GeneralSecurityException ex )\n\t\t{\n\t\t\tthrow new RuntimeException(\"Error creating blind SSL context\", ex);\n\t\t}\n\t}", "title": "" }, { "docid": "2cdfa38e86b8b8784f63a1304cb9ce21", "score": "0.5722173", "text": "public Client() {\n this(null);\n }", "title": "" }, { "docid": "3cbf140c4a0b9c1aad3f804091743fe5", "score": "0.5717886", "text": "private HpcSpsAuthorizationProxyImpl() throws HpcException {\r\n\t\tthrow new HpcException(\"Default Constructor Disabled\", HpcErrorType.SPRING_CONFIGURATION_ERROR);\r\n\t}", "title": "" }, { "docid": "0c1473378f7d6febc662db45ccdd5f61", "score": "0.5713685", "text": "public SslRMIServerSocketFactory() {\n this(null, null, false);\n }", "title": "" }, { "docid": "4a0780390592b7d1ddbe1d51425b9d46", "score": "0.57107043", "text": "public RestConnection() {\n // nothing to do\n }", "title": "" }, { "docid": "96c4646bf5fec157e3246f421846fd03", "score": "0.570848", "text": "private SCAskUserData() {}", "title": "" }, { "docid": "8543ff59865236cadcd67236579e4850", "score": "0.5705463", "text": "private Server() { }", "title": "" }, { "docid": "c3ba3b429a0869444d4870d9bd81940b", "score": "0.5701758", "text": "protected VirtualClassURLConnection(URL url, ScriptClassLoader cl) {\n\t\tsuper(url);\n\t\tis = new ByteArrayInputStream(cl.getByteCode(url.getHost()));\n\t}", "title": "" }, { "docid": "1d7f8959198ee3fe6925e2b74d3dc75f", "score": "0.5695919", "text": "private CryptoToolBox() {\n\t}", "title": "" }, { "docid": "0f198173adb9f544f886544ee88c5464", "score": "0.5695742", "text": "Adapter(){\r\n\t\t\tsuper(new MockLegacyPw());\r\n\t\t}", "title": "" }, { "docid": "3b6ef0018d4939db40921576d9b4fd4a", "score": "0.5694905", "text": "private SFAPI(){\r\n\r\n }", "title": "" }, { "docid": "e349f9e7c67d542134a731e712bc8323", "score": "0.5684024", "text": "public HttpURLBuilder() {\n\t\t// Empty\n\t}", "title": "" }, { "docid": "c657813879280d53fa5bed123eb94c19", "score": "0.5680745", "text": "private XMLRPC() {\n\t\tthrow new IllegalStateException(\"Do not construct XMLRPC objects\");\n\t}", "title": "" }, { "docid": "505f07d041eacc5d980438c027674efa", "score": "0.56701034", "text": "public static void setCertificate() {\r\n TrustManager[] trustAllCerts = new TrustManager[] {\r\n new X509TrustManager()\r\n {\r\n @Override\r\n public X509Certificate[] getAcceptedIssuers() {\r\n return null;\r\n }\r\n \r\n @Override\r\n public void checkClientTrusted(X509Certificate[] certs,\r\n String authType) {\r\n }\r\n \r\n @Override\r\n public void checkServerTrusted(X509Certificate[] certs,\r\n String authType) {\r\n }\r\n } };\r\n try {\r\n SSLContext sc = SSLContext.getInstance(\"SSL\");\r\n sc.init(null, trustAllCerts, new SecureRandom());\r\n HttpsURLConnection\r\n .setDefaultSSLSocketFactory(sc.getSocketFactory());\r\n // Create all-trusting host name verifier\r\n HostnameVerifier allHostsValid = new HostnameVerifier() {\r\n @Override\r\n public boolean verify(String hostname, SSLSession session) {\r\n return true;\r\n }\r\n };\r\n // Install the all-trusting host verifier\r\n HttpsURLConnection.setDefaultHostnameVerifier(allHostsValid);\r\n /*\r\n * end of the fix\r\n */\r\n } catch (KeyManagementException e) {\r\n logger.error(e.getMessage());\r\n } catch (NoSuchAlgorithmException e) {\r\n logger.error(e.getMessage());\r\n }\r\n }", "title": "" }, { "docid": "156eb4b80ae19df10067fb2e32ec6313", "score": "0.56684196", "text": "private PKCS1() {}", "title": "" }, { "docid": "4985df97e456a315f1591f112ce84636", "score": "0.56670535", "text": "private void buildHttpClient() throws NoSuchAlgorithmException, KeyStoreException, KeyManagementException {\n\t\t// Create ssl context\n\t\tSSLContextBuilder builder = new SSLContextBuilder();\n\t\tbuilder.loadTrustMaterial(null, new TrustSelfSignedStrategy());\n\t\tSSLConnectionSocketFactory sslsf = new SSLConnectionSocketFactory(builder.build(),\n\t\t\t\tSSLConnectionSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);\n\n\t\tthis.httpClient = HttpClients.custom().setSSLSocketFactory(sslsf).build();\n\t}", "title": "" }, { "docid": "f072eb7cd9e4835482e47072b7eacfb3", "score": "0.5663438", "text": "public EncryptionSecurity() {\n \n }", "title": "" }, { "docid": "8882187a69988fc26379afb24250d476", "score": "0.56631887", "text": "protected StreamConnection connect() throws IOException {\n StreamConnection sc;\n String httpsTunnel;\n com.sun.midp.io.j2me.socket.Protocol tcpConnection;\n OutputStream tcpOutputStream;\n InputStream tcpInputStream;\n X509Certificate serverCert;\n\n if (!permissionChecked) {\n throw new SecurityException();\n }\n\n sc = connectionPool.get(classSecurityToken, protocol,\n url.host, url.port);\n\n if (sc != null) {\n return sc;\n }\n\n // Open socket connection\n tcpConnection =\n new com.sun.midp.io.j2me.socket.Protocol();\n\n // check to see if a protocol is specified for the tunnel\n httpsTunnel = Configuration.getProperty(\"com.sun.midp.io.http.proxy\");\n if (httpsTunnel != null) {\n // Make the connection to the ssl tunnel\n tcpConnection.openPrim(classSecurityToken, \"//\" + httpsTunnel);\n\n // Do not delay request since this delays the response.\n tcpConnection.setSocketOption(SocketConnection.DELAY, 0);\n\n tcpOutputStream = tcpConnection.openOutputStream();\n tcpInputStream = tcpConnection.openInputStream();\n \n // Do the handshake with the ssl tunnel\n try {\n doTunnelHandshake(tcpOutputStream, tcpInputStream);\n } catch (IOException ioe) {\n String temp = ioe.getMessage();\n\n tcpConnection.close();\n tcpOutputStream.close();\n tcpInputStream.close();\n\n if (temp.indexOf(\" 500 \") > -1) {\n throw new ConnectionNotFoundException(temp);\n }\n\n throw ioe;\n } \n } else {\n tcpConnection.openPrim(classSecurityToken, \"//\" + hostAndPort);\n\n // Do not delay request since this delays the response.\n tcpConnection.setSocketOption(SocketConnection.DELAY, 0);\n\n tcpOutputStream = tcpConnection.openOutputStream();\n tcpInputStream = tcpConnection.openInputStream();\n }\n\n tcpConnection.close();\n\n try {\n // Get the SSLStreamConnection\n sslConnection = new SSLStreamConnection(url.host, url.port,\n tcpInputStream, tcpOutputStream,\n WebPublicKeyStore.getTrustedKeyStore());\n } catch (Exception e) {\n try {\n tcpInputStream.close();\n } catch (Throwable t) {\n // Ignore, we are processing an exception\n }\n\n try {\n tcpOutputStream.close();\n } catch (Throwable t) {\n // Ignore, we are processing an exception\n }\n\n if (e instanceof IOException) {\n throw (IOException)e;\n } else {\n throw (RuntimeException)e;\n }\n }\n\n try {\n serverCert = sslConnection.getServerCertificate();\n\n /*\n * if the subject alternate name is a DNS name or an IP address,\n * then use that instead of the common name for a site name match\n */\n int i;\n Vector v = serverCert.getSubjectAltNames();\n boolean altNamePresent = false;\n\n for (i = 0; i < v.size(); i++) {\n SubjectAlternativeName altName =\n (SubjectAlternativeName) v.elementAt(i);\n\n // For IP address, it needs to be exact match\n if (altName.getSubjectAltNameType() ==\n X509Certificate.TYPE_IP_ADDRESS) {\n String ipAddress = (String)altName.getSubjectAltName();\n altNamePresent = true;\n if (url.host.equalsIgnoreCase(ipAddress)) {\n break;\n }\n } else if (altName.getSubjectAltNameType() ==\n X509Certificate.TYPE_DNS_NAME) {\n // compare DNS Name with host in url\n String dnsName =\n ((String)altName.getSubjectAltName()).toLowerCase();\n altNamePresent = true;\n if (checkSiteName(url.host, dnsName)) {\n break;\n }\n }\n }\n\n if (altNamePresent) {\n if (i == v.size()) {\n throw new CertificateException(\n \"Subject alternative name did not match site name\",\n serverCert, CertificateException.SITENAME_MISMATCH);\n }\n } else {\n String cname = getCommonName(serverCert.getSubject());\n if (cname == null) {\n throw new CertificateException(\n \"Common name missing from subject name\",\n serverCert, CertificateException.SITENAME_MISMATCH);\n }\n \n if (!checkSiteName(url.host, cname)) {\n throw new CertificateException(serverCert,\n CertificateException.SITENAME_MISMATCH);\n }\n }\n\n return sslConnection;\n } catch (Exception e) {\n try {\n sslConnection.close();\n } catch (Throwable t) {\n // Ignore, we are processing an exception\n }\n\n if (e instanceof IOException) {\n throw (IOException)e;\n } else {\n throw (RuntimeException)e;\n }\n }\n }", "title": "" }, { "docid": "2478e981787ad2e12fffb318e5852b24", "score": "0.566164", "text": "private DatabaseUrls() {\n }", "title": "" }, { "docid": "dea2afe4ff69e4f31c038dde80af0abc", "score": "0.5659579", "text": "@Test\n public void constructorUpdatesDefaultCert() throws CertificateException, UnrecoverableKeyException, NoSuchAlgorithmException, KeyManagementException, KeyStoreException, IOException\n {\n //arrange\n final String defaultCert = \"someCert\";\n new NonStrictExpectations()\n {\n {\n Deencapsulation.newInstance(IotHubCertificateManager.class);\n result = mockedCertificateManager;\n }\n };\n\n //act\n Deencapsulation.newInstance(IotHubSSLContext.class, new Class[] {String.class, boolean.class}, defaultCert, false);\n\n //assert\n new Verifications()\n {\n {\n Deencapsulation.invoke(mockedCertificateManager, \"setValidCert\", new Class[] {String.class}, defaultCert);\n times = 1;\n }\n };\n }", "title": "" }, { "docid": "f6753d75ef7c538e01a37c828912f458", "score": "0.565898", "text": "public abstract void init(String arguments, String endpoint) throws Exception;", "title": "" }, { "docid": "f5b70353e124622145d28d88b811d8bd", "score": "0.5657467", "text": "private ConnectionUtil(){}", "title": "" }, { "docid": "b6b51a38c6c18d90f4db476a55314265", "score": "0.5655821", "text": "public StudentApplicationRequest() {\n // Required for WebServices to work. Comment added to please Sonar.\n }", "title": "" }, { "docid": "625d9537b4f9c7c898b30c6d02e678e2", "score": "0.5654803", "text": "public HttpUtil() {\n }", "title": "" }, { "docid": "a8c9bbd8ff3b15d74581a41d9e9920af", "score": "0.56544596", "text": "private ConnectionUtils() {\n }", "title": "" }, { "docid": "3cce795768402e773c086ccf1be4f385", "score": "0.5647595", "text": "private Conexion() {\n }", "title": "" }, { "docid": "32bf4f190f622188afe29f29351a9408", "score": "0.5643114", "text": "public Client() {\n }", "title": "" }, { "docid": "32bf4f190f622188afe29f29351a9408", "score": "0.5643114", "text": "public Client() {\n }", "title": "" }, { "docid": "255c82373a8f114fe156e5f73f325775", "score": "0.56413275", "text": "public DemoClient() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "title": "" }, { "docid": "b5a8ebceee7d53622c951cbd16cb4bed", "score": "0.56401265", "text": "private Base64CoderCommons() {\n }", "title": "" }, { "docid": "a747fa51a11053c97f6e52ab787d72c2", "score": "0.56375563", "text": "protected HttpMessageEncoder() {\n super();\n }", "title": "" } ]
0f79dc4edb55980ecb704e0cef34494f
Construct the instance of OdfTableCellRange.
[ { "docid": "737ea567fcd343b38de1c50af4d29b64", "score": "0.7304994", "text": "OdfTableCellRange(OdfTable table, int startColumn, int startRow, int endColumn, int endRow) {\n maOwnerTable = table;\n\n OdfDocument doc =\n (OdfDocument) ((OdfFileDom) maOwnerTable.getOdfElement().getOwnerDocument()).getDocument();\n if (doc instanceof OdfSpreadsheetDocument) {\n mbSpreadsheet = true;\n }\n\n // the first cell is the covered cell, then the cell range should be enlarged\n // so that it can contains the complete cell\n // get the cell cover info\n mnStartColumn = startColumn;\n mnStartRow = startRow;\n mnEndColumn = endColumn;\n mnEndRow = endRow;\n List<CellCoverInfo> coverList =\n maOwnerTable.getCellCoverInfos(\n 0, 0, maOwnerTable.getColumnCount() - 1, maOwnerTable.getRowCount() - 1);\n OdfTableCell cell; // = maOwnerTable.getOwnerCellByPosition(coverList, nStartColumn, nStartRow);\n for (int i = startColumn; i <= endColumn; i++) {\n cell = maOwnerTable.getOwnerCellByPosition(coverList, i, startRow);\n int rowIndex = cell.getRowIndex();\n int colIndex = cell.getColumnIndex();\n mnStartColumn = Math.min(mnStartColumn, colIndex);\n mnStartRow = Math.min(mnStartRow, rowIndex);\n mnEndColumn = Math.max(mnEndColumn, colIndex + cell.getColumnSpannedNumber() - 1);\n mnEndRow = Math.max(mnEndRow, rowIndex + cell.getRowSpannedNumber() - 1);\n }\n\n for (int i = startColumn; i <= endColumn; i++) {\n cell = maOwnerTable.getOwnerCellByPosition(coverList, i, endRow);\n int rowIndex = cell.getRowIndex();\n int colIndex = cell.getColumnIndex();\n mnStartColumn = Math.min(mnStartColumn, colIndex);\n mnStartRow = Math.min(mnStartRow, rowIndex);\n mnEndColumn = Math.max(mnEndColumn, colIndex + cell.getColumnSpannedNumber() - 1);\n mnEndRow = Math.max(mnEndRow, rowIndex + cell.getRowSpannedNumber() - 1);\n }\n\n for (int i = startRow + 1; i < endRow; i++) {\n cell = maOwnerTable.getOwnerCellByPosition(coverList, startColumn, i);\n int rowIndex = cell.getRowIndex();\n int colIndex = cell.getColumnIndex();\n mnStartColumn = Math.min(mnStartColumn, colIndex);\n mnStartRow = Math.min(mnStartRow, rowIndex);\n mnEndColumn = Math.max(mnEndColumn, colIndex + cell.getColumnSpannedNumber() - 1);\n mnEndRow = Math.max(mnEndRow, rowIndex + cell.getRowSpannedNumber() - 1);\n }\n\n for (int i = startRow + 1; i < endRow; i++) {\n cell = maOwnerTable.getOwnerCellByPosition(coverList, endColumn, i);\n int rowIndex = cell.getRowIndex();\n int colIndex = cell.getColumnIndex();\n mnStartColumn = Math.min(mnStartColumn, colIndex);\n mnStartRow = Math.min(mnStartRow, rowIndex);\n mnEndColumn = Math.max(mnEndColumn, colIndex + cell.getColumnSpannedNumber() - 1);\n mnEndRow = Math.max(mnEndRow, rowIndex + cell.getRowSpannedNumber() - 1);\n }\n }", "title": "" } ]
[ { "docid": "87cfdfd683f1432c4f1b3f2db97cd2d7", "score": "0.8690669", "text": "OdfTableCellRange() {}", "title": "" }, { "docid": "cccecae2bc64c1c139da686ec46cf8d1", "score": "0.65515256", "text": "Cell createCell();", "title": "" }, { "docid": "74149f18b31c4880931aa1330b102dae", "score": "0.6234724", "text": "public BigtableCell() {}", "title": "" }, { "docid": "2b29fe4809ec0979f6294e77105d6585", "score": "0.6054364", "text": "Range createRange();", "title": "" }, { "docid": "0fbd3b105c8753dde9e547bc8099977d", "score": "0.56130743", "text": "public TableLabelRangesElement(OdfFileDom ownerDoc) {\n super(ownerDoc, ELEMENT_NAME);\n }", "title": "" }, { "docid": "ae6d654b2f7e21cbae062240b251e6a6", "score": "0.5608261", "text": "private TwoColumnTableBuilder() {}", "title": "" }, { "docid": "782867795a6dad3d9765ea707fb6631d", "score": "0.5591917", "text": "public AnchorCell() {\n\n }", "title": "" }, { "docid": "d003d8e69731ac81f83d54355dcec7c3", "score": "0.5470351", "text": "public void init() {\n t1achternaamCol.setCellValueFactory(new PropertyValueFactory<>(\"achternaam\"));\n t1adresCol.setCellValueFactory(new PropertyValueFactory<>(\"adres\"));\n t1geboorteDatum.setCellValueFactory(new PropertyValueFactory<>(\"geboorteDatum\"));\n t1telefoon.setCellValueFactory(new PropertyValueFactory<>(\"telefoon\"));\n t1voornaamCol.setCellValueFactory(new PropertyValueFactory<>(\"voornaam\"));\n t1woonplaatsCol.setCellValueFactory(new PropertyValueFactory<>(\"woonplaats\"));\n t1email.setCellValueFactory(new PropertyValueFactory<>(\"email\"));\n \n t2achternaamCol.setCellValueFactory(new PropertyValueFactory<>(\"achternaam\"));\n t2adresCol.setCellValueFactory(new PropertyValueFactory<>(\"adres\"));\n t2geboorteDatum.setCellValueFactory(new PropertyValueFactory<>(\"geboorteDatum\"));\n t2telefoon.setCellValueFactory(new PropertyValueFactory<>(\"telefoon\"));\n t2voornaamCol.setCellValueFactory(new PropertyValueFactory<>(\"voornaam\"));\n t2woonplaatsCol.setCellValueFactory(new PropertyValueFactory<>(\"woonplaats\"));\n t2email.setCellValueFactory(new PropertyValueFactory<>(\"email\"));\n\n filltable();\n }", "title": "" }, { "docid": "e8888a49709af8ab1ac692e274630f5b", "score": "0.5463056", "text": "private void initTable() {\n\t\tidC.setCellValueFactory(new PropertyValueFactory<>(\"id\"));\n\t\tnameC.setCellValueFactory(new PropertyValueFactory<>(\"name\"));\n\t\tphoneC.setCellValueFactory(new PropertyValueFactory<>(\"phone\"));\n\t\temailC.setCellValueFactory(new PropertyValueFactory<>(\"email\"));\n\t\tgenderC.setCellValueFactory(new PropertyValueFactory<>(\"gender\"));\n\t\tdateC.setCellValueFactory(new PropertyValueFactory<>(\"dateOfBirth\"));\n\t\taddressC.setCellValueFactory(new PropertyValueFactory<>(\"address\"));\n\t}", "title": "" }, { "docid": "a8ce6cd431b3b50d2a33d74996669f63", "score": "0.54143566", "text": "public TableCellInfo(TableCellInfo source) {\n if (source.ColTl != null) {\n this.ColTl = new Long(source.ColTl);\n }\n if (source.RowTl != null) {\n this.RowTl = new Long(source.RowTl);\n }\n if (source.ColBr != null) {\n this.ColBr = new Long(source.ColBr);\n }\n if (source.RowBr != null) {\n this.RowBr = new Long(source.RowBr);\n }\n if (source.Text != null) {\n this.Text = new String(source.Text);\n }\n if (source.Type != null) {\n this.Type = new String(source.Type);\n }\n if (source.Confidence != null) {\n this.Confidence = new Float(source.Confidence);\n }\n if (source.Polygon != null) {\n this.Polygon = new Coord[source.Polygon.length];\n for (int i = 0; i < source.Polygon.length; i++) {\n this.Polygon[i] = new Coord(source.Polygon[i]);\n }\n }\n }", "title": "" }, { "docid": "c0c8ed8aad5933008628a8d2258d89a8", "score": "0.53923285", "text": "private Table createTable() {\n Table table = new Table();\n table.setSizeFull();\n table.addActionHandler(new Action.Handler() {\n\n private final Action ADD = new Action(\"Add event\");\n private final Action EDIT = new Action(\"Edit event\");\n private final Action REMOVE = new Action(\"Remove event\");\n\n @Override\n public void handleAction(Action action, Object sender, Object target) {\n if (action == ADD) {\n BasicEvent event = new BasicEvent();\n event.setStart(new Date(100, 1, 1));\n event.setEnd(new Date(100, 1, 1));\n editEvent(event);\n } else if (action == EDIT) {\n editEvent((BasicEvent) target);\n } else if (action == REMOVE) {\n events.removeItem(target);\n }\n }\n\n @Override\n public Action[] getActions(Object target, Object sender) {\n if (target == null) {\n return new Action[] { ADD };\n } else {\n return new Action[] { EDIT, REMOVE };\n }\n }\n });\n return table;\n }", "title": "" }, { "docid": "6a852b537124058e571b9db77e5cbceb", "score": "0.53741723", "text": "public Cell()\n\t{}", "title": "" }, { "docid": "613e06ab84fac95e80ff2bef046b629f", "score": "0.5372066", "text": "public MultiCellTableModel() {\r\n \r\n }", "title": "" }, { "docid": "be64c5fb4e05eaa769db1827ec28ba1a", "score": "0.5371414", "text": "public com.sun.star.table.CellRangeAddress createCellRangeAddress(\n com.sun.star.sheet.XSpreadsheet xSheet, String aRange )\n {\n com.sun.star.sheet.XCellRangeAddressable xAddr = (com.sun.star.sheet.XCellRangeAddressable)\n UnoRuntime.queryInterface( com.sun.star.sheet.XCellRangeAddressable.class,\n xSheet.getCellRangeByName( aRange ) );\n return xAddr.getRangeAddress();\n }", "title": "" }, { "docid": "12384fa426974a97fee7fb41cd9a231c", "score": "0.5354938", "text": "public TableImage()\n {\n createTable();\n createColumns();\n }", "title": "" }, { "docid": "42c36f782b0973acd3a8b84c7221fd1a", "score": "0.5328311", "text": "@Override\n public void cellStart() {\n sb.append(\"<td valign=\\\"top\\\">\");\n }", "title": "" }, { "docid": "856f72e8e8215dc323484d1992b7d8c5", "score": "0.53202146", "text": "public static synchronized FarragoRngOperatorTable rngInstance()\n {\n if (instance == null) {\n instance = new FarragoRngOperatorTable();\n instance.init();\n }\n return instance;\n }", "title": "" }, { "docid": "975f6ba9632adecd6a7827233872937f", "score": "0.5308787", "text": "public static com.google.cloud.teleport.bigtable.BigtableCell.Builder newBuilder() {\n return new com.google.cloud.teleport.bigtable.BigtableCell.Builder();\n }", "title": "" }, { "docid": "e04bc444ff83a1d69ceab36c4243706d", "score": "0.5307027", "text": "public RangeItem() {\n }", "title": "" }, { "docid": "3bad15c211d982a1cf0fb75e0c195515", "score": "0.5292556", "text": "public CellTable<AttributeDefinition> getTable() {\n\n\t\tretrieveData();\n\n\t\t// Table data provider.\n\t\tdataProvider = new ListDataProvider<AttributeDefinition>(list);\n\n\t\t// Cell table\n\t\ttable = new PerunTable<AttributeDefinition>(list);\n\n\t\t// Connect the table to the data provider.\n\t\tdataProvider.addDataDisplay(table);\n\n\t\t// Sorting\n\t\tListHandler<AttributeDefinition> columnSortHandler = new ListHandler<AttributeDefinition>(dataProvider.getList());\n\t\ttable.addColumnSortHandler(columnSortHandler);\n\n\t\t// table selection\n\t\ttable.setSelectionModel(selectionModel, DefaultSelectionEventManager.<AttributeDefinition> createCheckboxManager());\n\n\t\t// set empty content & loader\n\t\ttable.setEmptyTableWidget(loaderImage);\n\t\tloaderImage.setEmptyResultMessage(\"No attribute defined in Perun.\");\n\n\t\t// checkbox column column\n\t\tif (checkable) {\n\t\t\ttable.addCheckBoxColumn();\n\t\t}\n\n\t\t// ID COLUMN\n\t\ttable.addIdColumn(\"Attr ID\", tableFieldUpdater, 100);\n\n\t\t// FRIENDLY NAME COLUMN\n\t\tfinal Column<AttributeDefinition, AttributeDefinition> friendlyNameColumn = JsonUtils.addColumn(new PerunAttributeFriendlyNameCell((tableFieldUpdater != null) ? \"customClickableTextCell\" : \"\"),\n\t\t\t\tnew JsonUtils.GetValue<AttributeDefinition, AttributeDefinition>() {\n\t\t\t\t\tpublic AttributeDefinition getValue(AttributeDefinition object) {\n\t\t\t\t\t\treturn object;\n\t\t\t\t\t}\n\t\t\t\t}, (tableFieldUpdater != null) ? new FieldUpdater<AttributeDefinition, AttributeDefinition>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void update(int index, AttributeDefinition object, AttributeDefinition value) {\n\t\t\t\t\t\t// pass field updater to original one\n\t\t\t\t\t\tif (tableFieldUpdater != null) tableFieldUpdater.update(index, object, value.getFriendlyName());\n\t\t\t\t\t}\n\t\t\t\t} : null);\n\n\t\t// ENTITY COLUMN\n\t\tfinal Column<AttributeDefinition, String> entityColumn = JsonUtils.addColumn(\n\t\t\t\tnew JsonUtils.GetValue<AttributeDefinition, String>() {\n\t\t\t\t\tpublic String getValue(AttributeDefinition object) {\n\t\t\t\t\t\treturn object.getEntity();\n\t\t\t\t\t}\n\t\t\t\t}, tableFieldUpdater);\n\n\t\t// DEFINITION COLUMN\n\t\tfinal Column<AttributeDefinition, String> definitionColumn = JsonUtils.addColumn(\n\t\t\t\tnew JsonUtils.GetValue<AttributeDefinition, String>() {\n\t\t\t\t\tpublic String getValue(AttributeDefinition object) {\n\t\t\t\t\t\treturn object.getDefinition();\n\t\t\t\t\t}\n\t\t\t\t}, tableFieldUpdater);\n\n\t\t// TYPE COLUMN\n\t\tfinal Column<AttributeDefinition, String> typeColumn = JsonUtils.addColumn(\n\t\t\t\tnew JsonUtils.GetValue<AttributeDefinition, String>() {\n\t\t\t\t\tpublic String getValue(AttributeDefinition object) {\n\t\t\t\t\t\tif (object.getType() != null) {\n\t\t\t\t\t\t\treturn object.getType().substring(object.getType().lastIndexOf(\".\")+1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn \"\";\n\t\t\t\t\t}\n\t\t\t\t}, tableFieldUpdater);\n\n\t\t// UNIQUE COLUMN\n\t\tfinal Column<AttributeDefinition, String> uniqueColumn = JsonUtils.addColumn(\n\t\t\t\tnew JsonUtils.GetValue<AttributeDefinition, String>() {\n\t\t\t\t\tpublic String getValue(AttributeDefinition object) {\n\t\t\t\t\t\treturn String.valueOf(object.isUnique());\n\t\t\t\t\t}\n\t\t\t\t}, tableFieldUpdater);\n\n\t\t// DESCRIPTION COLUMN\n\t\tfinal Column<AttributeDefinition, String> descriptionColumn = new Column<AttributeDefinition, String>(new TextInputCell()) {\n\t\t\tpublic String getValue(AttributeDefinition attrDef) {\n\t\t\t\tif (attrDef.getDescription() == null) {\n\t\t\t\t\treturn \"\";\n\t\t\t\t} else {\n\t\t\t\t\treturn attrDef.getDescription();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\tdescriptionColumn.setFieldUpdater(new FieldUpdater<AttributeDefinition, String>() {\n\t\t\t@Override\n\t\t\tpublic void update(int i, final AttributeDefinition attributeDefinition, final String s) {\n\t\t\t\tattributeDefinition.setDescription(s.trim());\n\t\t\t\tselectionModel.setSelected(attributeDefinition, true);\n\t\t\t}\n\t\t});\n\n\t\t// DISPLAY NAME COLUMN\n\t\tfinal Column<AttributeDefinition, String> displayNameColumn = new Column<AttributeDefinition, String>(new TextInputCell()) {\n\t\t\tpublic String getValue(AttributeDefinition attrDef) {\n\t\t\t\treturn attrDef.getDisplayName();\n\t\t\t}\n\t\t};\n\n\t\tdisplayNameColumn.setFieldUpdater(new FieldUpdater<AttributeDefinition, String>() {\n\t\t\t@Override\n\t\t\tpublic void update(int i, final AttributeDefinition attributeDefinition, final String s) {\n\t\t\t\tattributeDefinition.setDisplayName(s.trim());\n\t\t\t\tselectionModel.setSelected(attributeDefinition, true);\n\t\t\t}\n\t\t});\n\n\t\tfriendlyNameColumn.setSortable(true);\n\t\tcolumnSortHandler.setComparator(friendlyNameColumn, new Comparator<AttributeDefinition>() {\n\t\t\tpublic int compare(AttributeDefinition o1, AttributeDefinition o2) {\n\t\t\t\treturn o1.getFriendlyName().compareToIgnoreCase(o2.getFriendlyName());\n\t\t\t}\n\t\t});\n\n\t\tentityColumn.setSortable(true);\n\t\tcolumnSortHandler.setComparator(entityColumn, new Comparator<AttributeDefinition>() {\n\t\t\tpublic int compare(AttributeDefinition o1, AttributeDefinition o2) {\n\t\t\t\treturn o1.getEntity().compareToIgnoreCase(o2.getEntity());\n\t\t\t}\n\t\t});\n\n\t\tdefinitionColumn.setSortable(true);\n\t\tcolumnSortHandler.setComparator(definitionColumn, new Comparator<AttributeDefinition>() {\n\t\t\tpublic int compare(AttributeDefinition o1, AttributeDefinition o2) {\n\t\t\t\treturn o1.getDefinition().compareToIgnoreCase(o2.getDefinition());\n\t\t\t}\n\t\t});\n\n\t\ttypeColumn.setSortable(true);\n\t\tcolumnSortHandler.setComparator(typeColumn, new Comparator<AttributeDefinition>() {\n\t\t\tpublic int compare(AttributeDefinition o1, AttributeDefinition o2) {\n\t\t\t\treturn o1.getType().compareToIgnoreCase(o2.getType());\n\t\t\t}\n\t\t});\n\n\t\tuniqueColumn.setSortable(true);\n\t\tcolumnSortHandler.setComparator(uniqueColumn, new Comparator<AttributeDefinition>() {\n\t\t\tpublic int compare(AttributeDefinition o1, AttributeDefinition o2) {\n\t\t\t\treturn String.valueOf(o1.isUnique()).compareToIgnoreCase(String.valueOf(o2.isUnique()));\n\t\t\t}\n\t\t});\n\n\t\t// Add the column sort handler.\n\t\ttable.setColumnWidth(friendlyNameColumn, 250.0, Unit.PX);\n\t\ttable.setColumnWidth(entityColumn, 100.0, Unit.PX);\n\t\ttable.setColumnWidth(definitionColumn, 100.0, Unit.PX);\n\t\ttable.setColumnWidth(typeColumn, 100.0, Unit.PX);\n\t\ttable.setColumnWidth(uniqueColumn, 100.0, Unit.PX);\n\n\t\t// Add the columns.\n\t\ttable.addColumn(friendlyNameColumn, \"Name\");\n\t\t// attributesTable.addColumn(namespaceColumn, \"Namespace\");\n\t\ttable.addColumn(entityColumn, \"Entity\");\n\t\ttable.addColumn(definitionColumn, \"Definition\");\n\t\ttable.addColumn(typeColumn, \"Type\");\n\t\ttable.addColumn(uniqueColumn, \"Unique\");\n\t\tif (editable) {\n\t\t\ttable.addColumn(displayNameColumn, \"Display name\");\n\t\t\ttable.addColumn(descriptionColumn, \"Description\");\n\t\t}\n\n\t\treturn table;\n\n\t}", "title": "" }, { "docid": "90792c428b93cd9bcb041115127a975f", "score": "0.5283915", "text": "TableView createTableView();", "title": "" }, { "docid": "4145dcbbee6d792a0b469fca0caea2fc", "score": "0.52211136", "text": "public ModeleTable()\r\n\t\t{\r\n\t\tString[] defautColonnes = {\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\"};\r\n\t\tthis.setColumnIdentifiers(defautColonnes);\r\n\t\tthis.setColumnCount(7);\r\n\t\tthis.setRowCount(3);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t}", "title": "" }, { "docid": "fe201a66fc30d89047805003a9e62a26", "score": "0.52184564", "text": "RangeConfig createRangeConfig();", "title": "" }, { "docid": "a932a61db8e3aba1f13cb050536daf79", "score": "0.5212056", "text": "public Table()\n {\n int[][]array = new int[11][11];\n for (int i = 0; i < 11; i++) {\n for (int j = 0; j < 11; j++) {\n if(i%2==0 && j%2!=0){\n array[i][j]=1;\n }\n if(i%2!=0 && j%2==0){\n array[i][j]=2;\n }\n }\n }\n this.table = array;\n }", "title": "" }, { "docid": "eacc58393b35ed890cad5bc7d3e38aa3", "score": "0.52116567", "text": "private TableCell<ArrayList<String>, String> setStyleForCell () {\n return new TableCell<ArrayList<String>, String>() {\n @Override\n protected void updateItem(String item, boolean empty) {\n super.updateItem(item, empty);\n\n if (item == null || empty) {\n setText(null);\n setStyle(\"\");\n } else {\n setText(item);\n removeAllStyle(this);\n if (\"\".equals(getItem())) {\n getStyleClass().add(EMPTY_STYLE_CLASS);\n } else if (StringUtil.isDay(getItem())) {\n getStyleClass().add(COLUMNHEADER_STYLE_CLASS);\n } else {\n getStyleClass().add(getColorStyleFor(getItem()));\n }\n }\n }\n };\n }", "title": "" }, { "docid": "344ec2e6ae1fa5dd492a1b572e0b7c48", "score": "0.52037925", "text": "public StyleTableCellPropertiesElement(OdfFileDom ownerDoc) {\n\t\tsuper(ownerDoc, ELEMENT_NAME);\n\t}", "title": "" }, { "docid": "5d4bcc1b1a02b79567dfc2535aaa8685", "score": "0.52018225", "text": "public static com.google.cloud.teleport.bigtable.BigtableCell.Builder newBuilder(com.google.cloud.teleport.bigtable.BigtableCell other) {\n return new com.google.cloud.teleport.bigtable.BigtableCell.Builder(other);\n }", "title": "" }, { "docid": "c5a4a1c27c09215faf00387be91c8c5c", "score": "0.5200444", "text": "public abstract ClickableTableSpan newInstance();", "title": "" }, { "docid": "bfbc0184a27e6bacb735a175c5e8116f", "score": "0.5196071", "text": "public TableHelper() {\r\n renderCenter = new DefaultTableCellRenderer();\r\n renderCenter.setHorizontalAlignment(SwingConstants.CENTER);\r\n renderLeft = new DefaultTableCellRenderer();\r\n renderLeft.setHorizontalAlignment(SwingConstants.LEFT);\r\n renderRight = new DefaultTableCellRenderer();\r\n renderRight.setHorizontalAlignment(SwingConstants.RIGHT);\r\n }", "title": "" }, { "docid": "2eaeab92345f9f6728f59b9ab068fb30", "score": "0.51912445", "text": "public PropertyTableCellRenderer() {\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "f341b119ecd0d38ce1094f653bb64700", "score": "0.5181648", "text": "public void creatingTable() {\r\n\t\t//add columns\r\n\t\tthis.model.addColumn(\"First Name\");\r\n\t\tthis.model.addColumn(\"Last Name\");\r\n\t\tthis.model.addColumn(\"Time\");\r\n\t\tthis.model.addColumn(\"Score\");\r\n\t\tthis.model.addColumn(\"PineApple\");\r\n\t\tthis.model.addColumn(\"Apple\");\r\n\t\tthis.model.addColumn(\"StrawBerry\");\r\n\r\n\t\tthis.setFillsViewportHeight(true);\r\n\t\tthis.setEnabled(false);\r\n\t}", "title": "" }, { "docid": "4ac51b19495f2a94cc83fd84a3231e4d", "score": "0.5169262", "text": "public ListCell<T> buildCellFactory() {\n return null;\n }", "title": "" }, { "docid": "4168e311e22ebe8da115e975fde35189", "score": "0.51426065", "text": "public InventoryItemRangeBean() {\n \n }", "title": "" }, { "docid": "bfef9a49bde49c392a24c5008f3c2e4a", "score": "0.5133008", "text": "private JTable getPoiTable() {\r\n\t\tif (poiTable == null) {\r\n\t\t\ttry {\r\n\t\t\t\tpoiTable = new JTable(getPOITableModel());\r\n\t\t\t\tpoiTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n\t\t\t\tsetColumnWidths();\r\n\t\t\t\t\r\n\t\t\t} catch (java.lang.Throwable e) {\r\n\t\t\t\t// TODO: Something\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn poiTable;\r\n\t}", "title": "" }, { "docid": "5bea96ff162c38e624ea18e651c82a9f", "score": "0.51187307", "text": "public HexTable(HexEditor hexEditor, HexTableModel model) {\r\n\r\n\t\tsuper(model);\r\n\t\tthis.hexEditor = hexEditor;\r\n\t\tthis.model = model;\r\n\t\tenableEvents(AWTEvent.KEY_EVENT_MASK);\r\n\t\tsetAutoResizeMode(JTable.AUTO_RESIZE_OFF);\r\n\t\tsetFont(new Font(\"Monospaced\", Font.PLAIN, 14));\r\n//setRowHeight(28);\r\n\t\tsetCellSelectionEnabled(true);\r\n\t\tsetSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);\r\n\t\tsetDefaultEditor(Object.class, cellEditor);\r\n\t\tsetDefaultRenderer(Object.class, new CellRenderer());\r\n\t\tgetTableHeader().setReorderingAllowed(false);\r\n\t\tsetShowGrid(false);\r\n\r\n\t\tFontMetrics fm = getFontMetrics(getFont());\r\n\t\tFont headerFont = UIManager.getFont(\"TableHeader.font\");\r\n\t\tFontMetrics headerFM = hexEditor.getFontMetrics(headerFont);\r\n\t\tint w = fm.stringWidth(\"www\"); // cell contents, 0-255\r\n\t\tw = Math.max(w, headerFM.stringWidth(\"+99\"));\r\n\t\tfor (int i=0; i<getColumnCount(); i++) {\r\n\t\t\tTableColumn column = getColumnModel().getColumn(i);\r\n\t\t\tif (i<16) {\r\n\t\t\t\tcolumn.setPreferredWidth(w);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tcolumn.setPreferredWidth(HexEditor.DUMP_COLUMN_WIDTH);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tsetPreferredScrollableViewportSize(\r\n\t\t\t\tnew Dimension(w*16+HexEditor.DUMP_COLUMN_WIDTH, 25*getRowHeight()));\r\n\r\n\t\tanchorSelectionIndex = leadSelectionIndex = 0;\r\n\r\n\t}", "title": "" }, { "docid": "e3171dda1d6f4a3051170cf71138bdf6", "score": "0.5112239", "text": "public Range() {\n this.first = FIRST;\n this.last = LAST;\n this.step = 1;\n }", "title": "" }, { "docid": "025fd535bcbdc614dfa9041126101064", "score": "0.51025563", "text": "private static Table createTable(Composite parent) {\n return new Table(parent, SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI | SWT.FULL_SELECTION);\n }", "title": "" }, { "docid": "6302e87b809f41f3544165b668c19e51", "score": "0.5101453", "text": "public EmpleadoHobbyTableCell() {\r\n\t\t\t\tsuper(new JCheckBoxMe());\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "e5eeae5028e6c87596855d98871a8527", "score": "0.5096679", "text": "public GastoDepreciacionCentroCostoTableCell() {\r\n\t\t\t\tsuper(new JCheckBoxMe());\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "88bc3b2a5fb5b7a733b28b9b55f7dc3d", "score": "0.50961906", "text": "public static MemoryAddress table_new(Addressable x0, Addressable x1, Addressable init) {\n if (logger.isTraceEnabled()) {\n logger.tracev(\"table_new(x0=\" + x0 + \", x1=\" + x1 + \", init=\" + init + \")\");\n }\n return Wasm.wasm_table_new(x0, x1, init);\n }", "title": "" }, { "docid": "accf807cab205b9110a46985e151156d", "score": "0.50920504", "text": "private void initHwTable() {\n hIdCol.setCellValueFactory(new PropertyValueFactory<Homework, Integer>(\"id\"));\n hDescCol.setCellValueFactory(new PropertyValueFactory<Homework, String>(\"description\"));\n hwDeadWeekCol.setCellValueFactory(new PropertyValueFactory<Homework, Integer>(\"deadlineWeek\"));\n hwRecvWeekCol.setCellValueFactory(new PropertyValueFactory<Homework, Integer>(\"recvWeek\"));\n hwCurrWeekCol.setCellValueFactory(\n cellData -> {\n return new SimpleStringProperty(Utility.getCurrWeek().toString());\n }\n );\n\n hwTable.setItems(hwModel);\n }", "title": "" }, { "docid": "569955216262cab1480126c3754b38e5", "score": "0.5075236", "text": "IGridCell cell();", "title": "" }, { "docid": "3db0a563f2a5350771500e1d7e15115e", "score": "0.5069194", "text": "public Table table() {\n return appendChild(new Table());\n }", "title": "" }, { "docid": "80a38c120c1e636bfd5769a25999ceb0", "score": "0.5056171", "text": "public ColoredTableCellRenderer() {\r\r\r\r\r \r\r\r\r\r }", "title": "" }, { "docid": "2239a75f0f23a0786c42a53a7ca0b1d1", "score": "0.5053923", "text": "private void initTable() {\n\t\thistoryTable.setText(0, 0, \"Query Date\");\n\t\thistoryTable.setText(0, 1, \"Status\");\n\t\thistoryTable.setText(0, 2, \"Duration\");\n\t\thistoryTable.setText(0, 3, \"Name\");\n\t\thistoryTable.setText(0, 4, \"Date Parameters\");\n\t\thistoryTable.setText(0, 5, \"Geog\");\n\t\thistoryTable.setText(0, 6, \"Volumes\");\n\t\thistoryTable.setText(0, 7, \"Interest Point\");\n \n\t\thistoryTable.getRowFormatter().setStyleName(0, \"queryHistoryWidgetHeader\");\n\t}", "title": "" }, { "docid": "3e5af45b7af9f2d1f845231e6f531865", "score": "0.5049063", "text": "private TableResponseCellTo createCellTitle(ObjectToId objectToId,\r\n\t\t\tString name) {\r\n\t\tTableResponseCellTo result = new TableResponseCellTo();\r\n\t\tresult.setId(objectToId);\r\n\t\tValueTo valueTo = new ValueTo();\r\n\t\tvalueTo.setValueStr(name);\r\n\t\tresult.setValueTo(valueTo);\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "1c80adc304a635e19fbe8a4e18376e46", "score": "0.50411004", "text": "private void initTable() { \r\n playerTable = new TableView();\r\n firstNameColumn = new TableColumn(\"First\");\r\n lastNameColumn = new TableColumn(\"Last\");\r\n positionsColumn = new TableColumn(\"Positions\");\r\n \r\n firstNameColumn.setCellValueFactory(new PropertyValueFactory<Player, String>(\"firstName\"));\r\n lastNameColumn.setCellValueFactory(new PropertyValueFactory<Player, String>(\"lastName\"));\r\n positionsColumn.setCellValueFactory(new PropertyValueFactory<Player, String>(\"qualifiedPositions\")); \r\n playerTable.getColumns().add(firstNameColumn);\r\n playerTable.getColumns().add(lastNameColumn);\r\n playerTable.getColumns().add(positionsColumn);\r\n }", "title": "" }, { "docid": "5990922498bc58a48a03b0cec7e125fa", "score": "0.5039681", "text": "public BmiRangeMtExample() {\n oredCriteria = new ArrayList<>();\n }", "title": "" }, { "docid": "aee67a57b1b2a78052e57ef1059d6c40", "score": "0.5034344", "text": "public GuiaRemisionTableCell() {\r\n\t\t\t\tsuper(new JCheckBoxMe());\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "ce8bbe1dfa24fb1d2650f90c98ce40a6", "score": "0.50147635", "text": "public Cell() {\n\t\tsetBorder(new LineBorder(Color.black, 1));\n\t\tstatus = UNKNOWN; // initializing the status of the cell\n\t}", "title": "" }, { "docid": "7f6327a0e99169015af26f006cbc0b55", "score": "0.5014118", "text": "public static com.google.cloud.teleport.bigtable.BigtableCell.Builder newBuilder(com.google.cloud.teleport.bigtable.BigtableCell.Builder other) {\n return new com.google.cloud.teleport.bigtable.BigtableCell.Builder(other);\n }", "title": "" }, { "docid": "5d46a916b03a54b9098608800f90c7b4", "score": "0.49986616", "text": "@Override\n public void initialize(URL url, ResourceBundle rb) {\n\n LocalDate startDate = LocalDate.parse(startSDate, formatter);\n LocalDate endDate = LocalDate.parse(endSDate, formatter);\n this.startDate.setValue(startDate);\n this.endDate.setValue(endDate);\n\n // TODO\n colFirstName.setCellValueFactory(\n new PropertyValueFactory(\"Name\"));\n\n colLastName.setCellValueFactory(\n new PropertyValueFactory(\"familyName\"));\n\n colAttence.setCellValueFactory(\n new PropertyValueFactory(\"Attendance\"));\n \n\n tblStudents.setRowFactory((param) -> new TableRow<Student>() {\n\n protected void updateItem(Student item, boolean empty) {\n super.updateItem(item, empty);\n if (empty) {\n setStyle(\"\");\n } else {\n Student person = getTableView().getItems().get(getIndex());\n for (PresentDate dateOfPresent : model.getAttendanceDay()) {\n\n if (dateOfPresent.getStudentID() == person.getStudentID()) {\n int datePresent= (int) (dateOfPresent.getDate().getTime()/ (1000 * 60 * 60 * 24));\n int dateOfTheDate= (int) (toDayDate.getTime()/ (1000 * 60 * 60 * 24));\n \n if (datePresent==dateOfTheDate){\n setStyle(\"-fx-background-color: green;\");\n } else {\n setStyle(\"\");\n }\n }\n }\n }\n }\n });\n \n }", "title": "" }, { "docid": "d866e5a4508083bbac1461a9b894b138", "score": "0.49918708", "text": "public DisponibilidadCell() {\n }", "title": "" }, { "docid": "05f6ddfd38af729a0377b60935f39008", "score": "0.49486607", "text": "public CellXf() {\r\n\t\thorizontalAlign = DEFAULT_HORIZONTAL_ALIGNMENT;\r\n\t\talignment = DEFAULT_ALIGNMENT;\r\n\t\ttextDirection = DEFAULT_TEXT_DIRECTION;\r\n\t\tverticalAlign = DEFAULT_VERTICAL_ALIGNMENT;\r\n\t\ttextRotation = 0;\r\n\t\tindent = 0;\r\n\t}", "title": "" }, { "docid": "4df5a6c60f3b8c7e235a25a8a21f5e3b", "score": "0.49478504", "text": "public RowBuilder newRowBuilder() {\n return new RowBuilder(this);\n }", "title": "" }, { "docid": "1f182760f9d7575aaec2a30462e73460", "score": "0.4939725", "text": "protected TableRenderingContext createRenderingContext(\n FacesContext context,\n RenderingContext arc,\n UIComponent component\n )\n {\n return new TableRenderingContext(context, arc, component);\n }", "title": "" }, { "docid": "7d634fb358dc546188c5b09cf053c14c", "score": "0.4933428", "text": "private void setUpTd(nsIDOMDocument visualDocument, final Element source, final VpeElementData elementData,\n final nsIDOMElement cellInput) {\n cellInput.setAttribute(HTML.ATTR_CLASS, RICH_COMBOBOX_INPUT_CELL_STYLE);\n cellInput.setAttribute(HTML.ATTR_VALIGN, HTML.VALUE_TOP_ALIGN);\n cellInput.appendChild(createInputElement(visualDocument, source, elementData));\n }", "title": "" }, { "docid": "f3043dd78f42fb745e9f9ce3d563a39b", "score": "0.49306405", "text": "public Table createTable();", "title": "" }, { "docid": "21310a299dc79278466ce0df93f86a6a", "score": "0.492659", "text": "public Range(final Range pRange)\r\n\t{\r\n\t\tmRangeStart = pRange.mRangeStart;\r\n\t\tmRangeEnd = pRange.mRangeEnd;\r\n\t}", "title": "" }, { "docid": "b1642b957c28e74376078fd30117040d", "score": "0.49225044", "text": "public HashTable() {\n this(5, 0.75);\n }", "title": "" }, { "docid": "faa1032481d7cfe13d0431a73b08254e", "score": "0.49073738", "text": "@Override\n\t\t\tpublic TableCell<Ingredient, Double> call(TableColumn<Ingredient, Double> param) {\n\t\t\t\tPriceCell cell = new PriceCell();\n\t\t\t\treturn cell;\n\t\t\t}", "title": "" }, { "docid": "8aa46bc53fb210ba39b79cde7c66e74d", "score": "0.49003154", "text": "Table createTable();", "title": "" }, { "docid": "042fafc6ae1fe0da9ab77906b717d894", "score": "0.48929855", "text": "public Cell()\r\n {\r\n setMarker(null);\r\n setCharacters(new ArrayList<RPGCharacter>());\r\n setAbove(null);\r\n setBelow(null);\r\n setRight(null);\r\n setLeft(null);\r\n }", "title": "" }, { "docid": "c58d67f1f7106924fddabfeb054bef9f", "score": "0.48820835", "text": "abstract protected CellComparator newCellComparator();", "title": "" }, { "docid": "1746b9fb2e29b99488bb157071a42b43", "score": "0.48773128", "text": "private void setTable()\n\t{\n\t\t//Create column headers\n\t\ttableCols = new TableColumn[NUM_MMU_PAGES];\n\t\ttable.setHeaderBackground(display.getSystemColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t \n\t for (int i = 1; i <= NUM_MMU_PAGES; i++) \n\t {\n\t \ttableCols[i-1] = new TableColumn(table, SWT.CENTER);\n\t \ttableCols[i-1].setWidth(45);\n\t \ttableCols[i-1].setAlignment(SWT.CENTER);\n\t }\n\t \n\t //Create table rows\n\t tableRows = new TableItem[BYTES_IN_PAGE];\n\t \n\t for (int i = 0; i < BYTES_IN_PAGE; i++) \n\t {\n\t tableRows[i] = new TableItem(table, SWT.CENTER);\n\t }\n\t}", "title": "" }, { "docid": "ca22cd2bbbe809389f40195aeb7922fd", "score": "0.4863952", "text": "public tableRow() {\n initComponents();\n }", "title": "" }, { "docid": "10f0db635beddc5572fbb40464d8c974", "score": "0.48628274", "text": "@Override\n public void initialize(URL url, ResourceBundle rb) {\n asigCode.setCellValueFactory(new PropertyValueFactory<Asignatura, String>(\"codigo\"));\n asigDescription.setCellValueFactory(new PropertyValueFactory<Asignatura, String>(\"descripcion\"));\n \n \n \n asigTable.setItems(verAsig);\n \n}", "title": "" }, { "docid": "328e17633f7075dd5db954753090318c", "score": "0.48392153", "text": "public TableCreation(Table table) {\n this.table = table;\n }", "title": "" }, { "docid": "3802d9f4335edbfc105e1171bce62cae", "score": "0.4837974", "text": "public void instantiateTable(){\n\t\ttableModel.addColumn(\"Key\");\n\t\ttableModel.addColumn(\"Value\");\n\t\t\n\t\tif (PatientView.getSelected() != null){\n\t\t\ttableModel.addRow(new Object[]{\"Name\", PatientView.getSelected().getFirstName()});\n\t\t\ttableModel.addRow(new Object[]{\"Age\", PatientView.getSelected().getAge()});\n\t\t\ttableModel.addRow(new Object[]{\"Height\", PatientView.getSelected().getHeight()});\n\t\t\ttableModel.addRow(new Object[]{\"Weight\", PatientView.getSelected().getWeight()});\n\t\t\ttableModel.addRow(new Object[]{\"BMI\", PatientView.getSelected().getBMIDiagnosis()});\n\t\t}\n\t}", "title": "" }, { "docid": "5159e7178debecafe0a85f63dce477b8", "score": "0.48273343", "text": "protected abstract Table createTable();", "title": "" }, { "docid": "62d3b3c303c78f79cfaabbef848c8a77", "score": "0.48237744", "text": "private void initTable() {\n\t\tdataChiTietHoaDon = FXCollections.observableArrayList();\n\t\tcolSoLuong.setCellValueFactory(new PropertyValueFactory<>(\"soLuong\"));\n\t\tcolTenThuoc.setCellValueFactory(new PropertyValueFactory<>(\"tenThuoc\"));\n\t\tcolDonViTinh.setCellValueFactory(new PropertyValueFactory<>(\"donViTinh\"));\n\t\tcolDonGia.setCellValueFactory(new PropertyValueFactory<>(\"donGia\"));\n\t\tcolTongTien.setCellValueFactory(new PropertyValueFactory<>(\"tongTien\"));\n\t\ttblChiTietHoaDon.setItems(dataChiTietHoaDon);\n\t}", "title": "" }, { "docid": "5d32578f5511f640156b17ae9b330351", "score": "0.4805169", "text": "public ProteinFractionTableModel() {\n }", "title": "" }, { "docid": "f5d23522e62730162ded68b1660b467f", "score": "0.48029307", "text": "public RangeProperty(double range) {\n\tsuper(range);\n }", "title": "" }, { "docid": "8e7fcf1b167a8d2e92af6c22972bed3b", "score": "0.47918925", "text": "public PropertyTableModel(){\n this(null);\n }", "title": "" }, { "docid": "1b18d08910a69d89071cc47c23f272bc", "score": "0.4781895", "text": "public interface TableSpans {\n /**\n * Set new size of table span data.\n *\n * @param size new size.\n */\n void setSize(Dimension size);\n\n /**\n * Add a column to the table span data.\n */\n void addColumn();\n\n /**\n * Add a row to the table span data.\n */\n void addRow();\n\n /**\n * Insert a row in the table span data.\n *\n * @param rowIndex row index where the new row should be inserted.\n */\n void insertRow(int rowIndex);\n\n /**\n * Determine whether a cell at a specified row and column index is visible (or part of a span rectangle).\n *\n * @param rowIndex row index.\n * @param columnIndex column index.\n * @return whether a cell at a certain row and column index is visible.\n */\n boolean isVisible(int rowIndex, int columnIndex);\n\n /**\n * Get span data for a cel at a specified row and column index.\n *\n * @param rowIndex row index.\n * @param columnIndex column index.\n * @return span data for a cell at a specified row and column index.\n */\n SpanCounts getSpan(int rowIndex, int columnIndex);\n\n /**\n * Combine cells at specified row and column indices into a span rectangle. Note: all cells should not yet be part\n * of a span rectangle and all indices are assumed to be adjacent numbers.\n *\n * @param rowIndices one or more row indices.\n * @param columnIndices one or more column indices.\n */\n void combine(int[] rowIndices, int[] columnIndices);\n}", "title": "" }, { "docid": "caeaf8eebb4f2ba79eb6b5d7aa71be31", "score": "0.47771582", "text": "@Override\n public void customizeTable() {\n tableView.getColumns().setAll(columnBrandID,columnName,columnDescription);\n\n tableView.getColumns().get(0).setCellValueFactory(new PropertyValueFactory<>(\"id\"));\n tableView.getColumns().get(1).setCellValueFactory(new PropertyValueFactory<>(\"name\"));\n tableView.getColumns().get(2).setCellValueFactory(new PropertyValueFactory<>(\"description\"));\n \n }", "title": "" }, { "docid": "3c8283a05b80ecbfcffc21b115512eff", "score": "0.47692317", "text": "private void setupClassInstructorTable()\r\n {\n colClassID.setCellValueFactory(new PropertyValueFactory<>(\"classID\"));\r\n colName.setCellValueFactory(new PropertyValueFactory<>(\"name\"));\r\n colSemester.setCellValueFactory(new PropertyValueFactory<>(\"semester\"));\r\n colYear.setCellValueFactory(new PropertyValueFactory<>(\"year\"));\r\n colRoom.setCellValueFactory(new PropertyValueFactory<>(\"room\"));\r\n colStartDate.setCellValueFactory(new PropertyValueFactory<>(\"startDate\"));\r\n colStartTime.setCellValueFactory(new PropertyValueFactory<>(\"startTime\"));\r\n colEndDate.setCellValueFactory(new PropertyValueFactory<>(\"endDate\"));\r\n colEndTime.setCellValueFactory(new PropertyValueFactory<>(\"endTime\"));\r\n colMaxStudents.setCellValueFactory(new PropertyValueFactory<>(\"maxStudents\"));\r\n }", "title": "" }, { "docid": "50eb6ad8944c079ff7fa743790e05057", "score": "0.47596064", "text": "private void createTable() {\n \n \t\tint tableStyle = SWT.NO_SCROLL | SWT.SINGLE | SWT.FULL_SELECTION; \n \t\tfTable = new Table(this, tableStyle);\n \n \t\tfTable.addSelectionListener(new SelectionAdapter() {\n \t\t\t@Override\n \t\t\tpublic void widgetSelected(SelectionEvent event) {\n \t\t\t\thandleTableSelection();\n \t\t\t}\n \t\t});\n \n \t\tfTable.addKeyListener(new KeyListener() {\n \t\t\tpublic void keyPressed(KeyEvent event) {\n \t\t\t\thandleTableKeyEvent(event);\n \t\t\t}\n \t\t\tpublic void keyReleased(KeyEvent event) {\n \t\t\t}\n \t\t});\n \t}", "title": "" }, { "docid": "7de535670a6a07d309e431715ff13309", "score": "0.4756851", "text": "RangeClause getRangeClause();", "title": "" }, { "docid": "0cedfd5bf77fef7413705e4e37fabe54", "score": "0.47550154", "text": "public DefaultTableModel buildTableModel(TableContents tc){\n \n \t//System.out.println(\"SET: \"+ tc.getTranName());\n columnNames = tc.getColumnNames();\n data = tc.getData();\n return new DefaultTableModel(data, columnNames);\n }", "title": "" }, { "docid": "56d41861d6ca2ff6314c550ad1c79744", "score": "0.47454476", "text": "public void setUsedAsTableCell(boolean isCell);", "title": "" }, { "docid": "7ff67bb7c1341a25bcac1b50e7efeff9", "score": "0.47399932", "text": "private Builder(com.google.cloud.teleport.bigtable.BigtableCell other) {\n super(SCHEMA$);\n if (isValidValue(fields()[0], other.family)) {\n this.family = data().deepCopy(fields()[0].schema(), other.family);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.qualifier)) {\n this.qualifier = data().deepCopy(fields()[1].schema(), other.qualifier);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.timestamp)) {\n this.timestamp = data().deepCopy(fields()[2].schema(), other.timestamp);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.value)) {\n this.value = data().deepCopy(fields()[3].schema(), other.value);\n fieldSetFlags()[3] = true;\n }\n }", "title": "" }, { "docid": "9b34e476fc91fcaa9e834a1e3e4a3772", "score": "0.4737693", "text": "private static void createTable() {\n /*ArrayList<Renzyme> renzymes = renzymeArrayList.getMainRenzymeStructure();\n JTable etblEnzyme = new JTable();\n JScrollPane scrollPane = new JScrollPane(etblEnzyme);\n int n = renzymes.size();\n int lengthOfRows = (n / columnNum) + 1;\n int k = 0;\n Renzyme[] r;\n for (int i = 0; i < columnNum; ++i){\n if (lengthOfRows < (n - k)) {\n r = new Renzyme[lengthOfRows];\n }\n else {\n r = new Renzyme[n - k];\n }\n for (int j = 0; j < r.length; ++j){\n if (k < renzymes.size()){\n System.out.println(k);\n r[j] = renzymes.get(k);\n }\n ++k;\n }\n TableColumn column = new TableColumn();\n etblEnzyme.addColumn(column);\n\n }\n eFrame.add(etblEnzyme,BorderLayout.PAGE_START);*/\n }", "title": "" }, { "docid": "8506b0994b87c6ef9192cf79dc157f76", "score": "0.4732718", "text": "private void setupTable() {\n table = new JTable(new HabitsTable(\"reset\"));\n table.setPreferredScrollableViewportSize(new Dimension(500, 70));\n table.setFillsViewportHeight(true);\n }", "title": "" }, { "docid": "ce4277c99c8bbcc8bdc928d531a40d4d", "score": "0.47316855", "text": "public CellEditor(final JTextField textField) {\n editorComponent = textField;\n this.clickCountToStart = 1;\n delegate = new EditorDelegate() {\n public void setValue(Object value) {\n textField.setText((value != null) ? value.toString() : \"\");\n textField.selectAll();\n // textField.setBorder(BorderFactory.createLineBorder(Colors.getColor(\"black\")));\n }\n\n public Object getCellEditorValue() {\n return textField.getText();\n }\n };\n textField.addActionListener(delegate);\n// textField.addFocusListener(new FocusAdapter() {\n// public void focusGained(FocusEvent e) {\n// Component src = e.getComponent();\n// if (src != null && src instanceof JTextComponent) {\n// JTextComponent textField = (JTextComponent)src;\n//\n// textField.setText(textField.getText());\n// textField.selectAll();\n// }\n// }\n// });\n }", "title": "" }, { "docid": "74aa6e64ac147fec3193958a0f3989a6", "score": "0.47214994", "text": "public BookTable() {\n\t\tISBN = new int[1];\n\t\tdata = new Book[1];\n\t\tused = new boolean[1];\n\t\tnum = 0;\n\t}", "title": "" }, { "docid": "e95a65076cdb6e01ec371cbf2c7f7094", "score": "0.4719323", "text": "public TableCell cell(String value) {\n\t\tString functionString = getComponentContext().createSubComponetQueryString(\"cell\", value);\n\t\tint x = Integer.parseInt(eval (functionString+\".row\"));\n\t\tint y = Integer.parseInt(eval (functionString+\".column\"));\n\t\treturn TableCell.row(x).column(y);\t \n\t }", "title": "" }, { "docid": "42fd6dc957a9e682161f0c8873318d35", "score": "0.47176483", "text": "ca.mcgill.distsys.hbase96.indexcoprocessors.inmem.protobuf.generated.IndexCoprocessorInMem.ProtoRange getRange();", "title": "" }, { "docid": "4058dcef487c020744daf1c6830b4c28", "score": "0.47160828", "text": "private PdfPTable createSecondTable() {\n PdfPTable table = new PdfPTable(5);\n // the cell object\n PdfPCell cell;\n // we add a cell with colspan 3\n cell = new PdfPCell(new Phrase(\"Cálculo de coste para el empresario\"));\n cell.setColspan(5);\n table.addCell(cell);\n // now we add a cell with rowspan 2\n cell = new PdfPCell(new Phrase(\"\"));\n table.addCell(\"Calculo base\");\n // we add the four remaining cells with addCell()\n table.addCell(\"\");\n table.addCell(\"\");\n table.addCell(\"\");\n double devengos;\n if(trabajador.isProrrateo()){\n devengos = this.importeTrienios+this.importeComplementoMes+this.valorProrrateo+ this.importeSalarioMes;\n }\n else{\n devengos = this.importeTrienios+this.importeComplementoMes+this.importeSalarioMes;\n }\n table.addCell(String.valueOf(devengos));\n \n cell = new PdfPCell(new Phrase(\"Contingencias comunes 23.60%\"));\n cell.setColspan(4);\n table.addCell(cell);\n table.addCell(String.valueOf(devengos*23.60/100));\n \n cell = new PdfPCell(new Phrase(\"Desempleo 6.7%\"));\n cell.setColspan(4);\n table.addCell(cell);\n table.addCell(String.valueOf(devengos*6.7/100)); \n \n cell = new PdfPCell(new Phrase(\"Formación 0.6%\"));\n cell.setColspan(4);\n table.addCell(cell);\n table.addCell(String.valueOf(devengos*0.6/100)); \n \n cell = new PdfPCell(new Phrase(\"Accidentes de trabajo 1.0%\"));\n cell.setColspan(4);\n table.addCell(cell);\n table.addCell(String.valueOf(devengos/100));\n \n cell = new PdfPCell(new Phrase(\"FOGASA 2%\"));\n cell.setColspan(4);\n table.addCell(cell);\n table.addCell(String.valueOf(devengos*2/100));\n \n cell = new PdfPCell(new Phrase(\"TOTAL EMPRESARIO\"));\n cell.setColspan(4);\n table.addCell(cell);\n table.addCell(String.valueOf(devengos*23.60/100+devengos*6.7/100+devengos*0.6/100+devengos/100+devengos*2/100));\n \n cell = new PdfPCell(new Phrase(\"Coste total del trabajador\"));\n cell.setColspan(4);\n table.addCell(cell);\n table.addCell(String.valueOf(devengos*23.60/100+devengos*6.7/100+devengos*0.6/100+devengos/100+devengos*2/100+devengos));\n \n return table;\n }", "title": "" }, { "docid": "ecbdbd0fb7c503834d4d1fbc5816d3a6", "score": "0.47077507", "text": "public CrosswordTable(TableModel dm) {\n super(dm, null, null);\n //ukryj header\n this.setTableHeader(null);\n this.setCellSelectionEnabled(true);\n this.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\n this.setRowHeight(20);\n setPreferredScrollableViewportSize(new Dimension(600, 400));\n this.setPreferredSize(new Dimension(600, 400));\n setFillsViewportHeight(true);\n setDefaultRenderer(Boolean.class, new MyTableCellRenderer());\n setIntercellSpacing(new Dimension(1, 1));\n setShowGrid(false);\n for (int i = this.getColumnCount() - 1; i >= 0; i--) {\n this.getColumnModel().getColumn(i).setWidth(20);\n }\n\n }", "title": "" }, { "docid": "29f0e4500b74450f9d993b152302a84d", "score": "0.4704634", "text": "public SummaryRanges() {\n tm = new TreeMap<>(); //key -start\n }", "title": "" }, { "docid": "8b2eae24ba5794e7e1889976389712cd", "score": "0.47005573", "text": "public TableObjectDM (int rows, int cols, double [][] blurbs, double [] subwidths, double [] subheights){\n\t\tthis.rows = rows; \n\t\tthis.cols = cols;\n\t\tthis.blurbs = blurbs;\n\t\tthis.subwidths = subwidths;\n\t\tthis.subheights = subheights;\n\n\t}", "title": "" }, { "docid": "8646d0216adcb49e4d6105cdc06c0eff", "score": "0.46996284", "text": "private void buildTable() {\n\t\tleaderboard = new TableView<LevelTime>();\n\t\tleaderboard.setMinWidth(WINDOW_WIDTH / 2);\n\t\tleaderboard.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);\n\t\tleaderboard.setId(\"leaderboard\");\n\n\t\tTableColumn<LevelTime, Integer> rank = new TableColumn<LevelTime, Integer>(\"Rank\");\n\t\trank.setCellValueFactory(new PropertyValueFactory<LevelTime, Integer>(\"Rank\"));\n\t\trank.setMinWidth(40);\n\t\trank.setMaxWidth(40);\n\n\t\tTableColumn<LevelTime, String> username = new TableColumn<LevelTime, String>(\"Username\");\n\t\tusername.setCellValueFactory(new PropertyValueFactory<LevelTime, String>(\"Username\"));\n\n\t\tTableColumn<LevelTime, String> time = new TableColumn<LevelTime, String>(\"Time\");\n\t\ttime.setCellValueFactory(new PropertyValueFactory<LevelTime, String>(\"StringTime\"));\n\n\t\tleaderboard.getColumns().addAll(username, time);\n\t}", "title": "" }, { "docid": "0429b2b28fc98cf77c45c0b158a67339", "score": "0.46974587", "text": "public RangeFacet() {\n\t}", "title": "" }, { "docid": "c604a9f5632ea52c537e4e24cb35b9f0", "score": "0.46971038", "text": "public RangeParam() {}", "title": "" }, { "docid": "efede0917f20b4afe58ab0262cf1632a", "score": "0.4696797", "text": "public TableField(){}", "title": "" }, { "docid": "9245a4af9adf08bd0dcbd4ab8f22b766", "score": "0.4693299", "text": "public AbstractCell() {\n this.usedOrOpen = OPEN;\n }", "title": "" }, { "docid": "f9146226acfcbe65d01a63cdfbc10707", "score": "0.46920845", "text": "public SummaryRanges() {\n\n }", "title": "" }, { "docid": "37b01cc790972173b06cc8ec7e97c5aa", "score": "0.46904725", "text": "private void initAssociatedPartsTable() {\n idColumn.setCellValueFactory(new PropertyValueFactory<Part, Integer>(\"id\"));\n nameColumn.setCellValueFactory(new PropertyValueFactory<Part, String>(\"name\"));\n inventoryColumn.setCellValueFactory(new PropertyValueFactory<Part, Integer>(\"stock\"));\n priceColumn.setCellValueFactory(new PropertyValueFactory<Part, Double>(\"price\"));\n associatedPartsTableView.setItems(getProductModel().getAllAssociatedParts());\n }", "title": "" }, { "docid": "6f9b689a834fb560f306902f6f7d7690", "score": "0.4685129", "text": "public Range asRange() {\n if (range == null) {\n range = anchor < focus ? new Range(anchor, focus) : new Range(focus, anchor);\n }\n return range;\n }", "title": "" } ]
0ec64c6febabb8a9d67429e28cc5abcf
Return the attribute that corresponds to the version attribute declared by the entity or mapped superclass.
[ { "docid": "8d9742e70d2a563b89df373bcb38d6a3", "score": "0.78712296", "text": "SingularAttribute<X, Long> getDeclaredVersion();", "title": "" } ]
[ { "docid": "ea7eaa4d300db3e24df1ba221c364628", "score": "0.8064734", "text": "public EntityViewAttributeMapping getVersionAttribute();", "title": "" }, { "docid": "e5f20447e7b6de3a7fd6248ba0cffca9", "score": "0.7587602", "text": "SingularAttribute<? super X, Long> getVersion();", "title": "" }, { "docid": "4984f572b4caff2f20ee12a3e2396bb3", "score": "0.74604434", "text": "@NotNull\n @Attribute(\"version\")\n GenericAttributeValue<Integer> getVersion();", "title": "" }, { "docid": "aaac81f363d3db5a09d734c47b272525", "score": "0.68632334", "text": "public BigDecimal getVersionNumber() {\r\n return (BigDecimal) getAttributeInternal(VERSIONNUMBER);\r\n }", "title": "" }, { "docid": "1a46e86740ca4b153dd4ca3e2f96a99d", "score": "0.67510074", "text": "@Version\n @Column(name = \"version\", nullable = false)\n protected int getVersion() {\n return version;\n }", "title": "" }, { "docid": "7c6eb37e26ab8be6ec847d8cadac7b5b", "score": "0.67319816", "text": "public Number getVersionNo() {\n return (Number)getAttributeInternal(VERSIONNO);\n }", "title": "" }, { "docid": "4e88d01aca005465d619f2b299a4bc48", "score": "0.67083585", "text": "boolean hasVersionAttribute();", "title": "" }, { "docid": "7784e27e8c37f328c8f5a0886e0b500f", "score": "0.6618092", "text": "@Accessor(qualifier = \"version\", type = Accessor.Type.GETTER)\n\tpublic Long getVersion()\n\t{\n\t\tif (this._version!=null)\n\t\t{\n\t\t\treturn _version;\n\t\t}\n\t\treturn _version = getPersistenceContext().getValue(VERSION, _version);\n\t}", "title": "" }, { "docid": "ea6fbcb66870d795dea5c580b618a3bc", "score": "0.65946674", "text": "@Version\n public int getVersion()\n {\n return (this.version);\n }", "title": "" }, { "docid": "435aa920eb9470e04a2798153fe0aff4", "score": "0.6502961", "text": "public String getVersion() {\n return annotation.version();\n }", "title": "" }, { "docid": "b281340efd5c2b31832efe6a551eeb0f", "score": "0.6436012", "text": "public String getAttributeSystemVersion() {\n\t return this.attributeSystemVersion;\n\t}", "title": "" }, { "docid": "e419dec46c1f09d56a78476a988be264", "score": "0.63137656", "text": "@Version\n\tpublic int getVersion() {\n\t\treturn this.version;\n\t}", "title": "" }, { "docid": "627277a5f33ca790ec6cbbb37a7e42ec", "score": "0.62581676", "text": "@Override\n\t@Version\n\tpublic int getVersion() {\n\t\treturn version;\n\t}", "title": "" }, { "docid": "0caff710c04df100c62c41ab9e42c3e4", "score": "0.6230919", "text": "public BigDecimal getDocVersion()\r\n {\r\n return (BigDecimal) getAttributeInternal(DOCVERSION);\r\n }", "title": "" }, { "docid": "2cd214fe1829fee4ae81791b0038174a", "score": "0.62290233", "text": "public Date getVersionDate() {\n return (Date)getAttributeInternal(VERSIONDATE);\n }", "title": "" }, { "docid": "4f13c86105fae703f77a9547869480c4", "score": "0.6094493", "text": "@Version\n @Column(name = \"MODEL_OBJECT_VERSION\")\n public int getModelObjectVersion() {\n return modelObjectVersion;\n }", "title": "" }, { "docid": "33f63e8c1f49a068a6af2c0c7c052700", "score": "0.6082155", "text": "public String dbVersionIdColumnName(){\n return \"DB_VERSION_LIBELLE\";\n }", "title": "" }, { "docid": "956ffb4ef83803f18456ba1ae77a8969", "score": "0.60661435", "text": "public Long getVersion() {\n return this.version;\n }", "title": "" }, { "docid": "956ffb4ef83803f18456ba1ae77a8969", "score": "0.60661435", "text": "public Long getVersion() {\n return this.version;\n }", "title": "" }, { "docid": "9625e729ac98fac8b12754710aab61b2", "score": "0.60326093", "text": "public Long getVersion() {\n return version;\n }", "title": "" }, { "docid": "9625e729ac98fac8b12754710aab61b2", "score": "0.60326093", "text": "public Long getVersion() {\n return version;\n }", "title": "" }, { "docid": "9625e729ac98fac8b12754710aab61b2", "score": "0.60326093", "text": "public Long getVersion() {\n return version;\n }", "title": "" }, { "docid": "7af1d985ce8d0d98d9133d558d9e02e5", "score": "0.60141444", "text": "@Override\n public String getVersionId() {\n return versionId;\n }", "title": "" }, { "docid": "6eb35909dc3e5277daf71c8eb27f3d66", "score": "0.600228", "text": "public int getVersionId() {\r\n return this.versionId;\r\n }", "title": "" }, { "docid": "6eb35909dc3e5277daf71c8eb27f3d66", "score": "0.600228", "text": "public int getVersionId() {\r\n return this.versionId;\r\n }", "title": "" }, { "docid": "1fea6bc3ea0b6a963dba8a67c5123121", "score": "0.599856", "text": "public Integer version() {\n return this.version;\n }", "title": "" }, { "docid": "cc657448538f2df985eb55ae9962394a", "score": "0.5989754", "text": "@JsonIgnore\n public Version getVersion() {\n return version;\n }", "title": "" }, { "docid": "e5816b23195eaba7a7eaf6bc73346605", "score": "0.5983928", "text": "public int getVersion(){\r\n return version;\r\n }", "title": "" }, { "docid": "a9cf2ddb247125193bcce001e662b856", "score": "0.5969718", "text": "@Override\n\tpublic double getVersion() {\n\t\treturn classVersion;\n\t}", "title": "" }, { "docid": "2d7b612250ada2e4f14f8a91bb431df6", "score": "0.59665936", "text": "@java.lang.Override\n public int getVersion() {\n return version_;\n }", "title": "" }, { "docid": "86ba6c511dc8ead2c5626f3b01111ca8", "score": "0.59603584", "text": "public Integer getVersion() {\r\n return version;\r\n }", "title": "" }, { "docid": "72909e85918bded98f1ce6787d3a0335", "score": "0.5959019", "text": "IVersionBean getVersion();", "title": "" }, { "docid": "62a032ec015f17b86550331d5ea3091f", "score": "0.5955689", "text": "amdocs.iam.pd.general.common.Long xgetProductVersion();", "title": "" }, { "docid": "a1f4fd58fa0f1ce9c0e2a884409dd5b1", "score": "0.59431684", "text": "public Version getVersion() {\n return version;\n }", "title": "" }, { "docid": "a4b051b1486df9704792766a6f720651", "score": "0.59327364", "text": "public String getVersionId() {\n return versionId;\n }", "title": "" }, { "docid": "a4b051b1486df9704792766a6f720651", "score": "0.59327364", "text": "public String getVersionId() {\n return versionId;\n }", "title": "" }, { "docid": "a4b051b1486df9704792766a6f720651", "score": "0.59327364", "text": "public String getVersionId() {\n return versionId;\n }", "title": "" }, { "docid": "5eda72adf63292225fe2f567d7f2d632", "score": "0.5929498", "text": "au.gov.asic.types.SoapSoftwareIdentifierType.ProductVersion xgetProductVersion();", "title": "" }, { "docid": "d52d74b2aac585ebec616192f2edb8b2", "score": "0.5927512", "text": "public String getVersionableIdentifier();", "title": "" }, { "docid": "aa3fa05624589b4b8e347c099ffafbf8", "score": "0.59259206", "text": "public String versionId() {\n return versionId;\n }", "title": "" }, { "docid": "7e4e8f9019008d02621d0109f5429615", "score": "0.5923268", "text": "@Override\n public String getVersion() {\n return unmarshalRecord.getVersion();\n\n }", "title": "" }, { "docid": "9322960293dfb0e5342971f6bb0cac3a", "score": "0.592195", "text": "public Integer getVersion() {\n return version;\n }", "title": "" }, { "docid": "9322960293dfb0e5342971f6bb0cac3a", "score": "0.592195", "text": "public Integer getVersion() {\n return version;\n }", "title": "" }, { "docid": "9322960293dfb0e5342971f6bb0cac3a", "score": "0.592195", "text": "public Integer getVersion() {\n return version;\n }", "title": "" }, { "docid": "9322960293dfb0e5342971f6bb0cac3a", "score": "0.592195", "text": "public Integer getVersion() {\n return version;\n }", "title": "" }, { "docid": "9322960293dfb0e5342971f6bb0cac3a", "score": "0.592195", "text": "public Integer getVersion() {\n return version;\n }", "title": "" }, { "docid": "1a613dde30a8319c8e98f190ff70a4c2", "score": "0.591256", "text": "public Integer getVersion() {\n\t\treturn version;\n\t}", "title": "" }, { "docid": "defac1559d4ad3ef5e87a933b3dacad4", "score": "0.5911181", "text": "public Integer getVersion();", "title": "" }, { "docid": "e4d392d69c494fef366cad9b6ee432fa", "score": "0.59104323", "text": "public Integer getVersion() {\r\n\t\treturn version;\r\n\t}", "title": "" }, { "docid": "315f5929d29472998dc6d41a182db4f4", "score": "0.5910406", "text": "public int getVersion(){\n\t\tSystem.out.println(\"android/child class specific logic::\"+version);\n\t\tsuper.getMobileObject();\n\t\treturn version;\n\t\t\n\t}", "title": "" }, { "docid": "e0cb86147b109c104d491f621ff80aa9", "score": "0.59028757", "text": "@JsonGetter(\"version\")\r\n @JsonInclude(JsonInclude.Include.NON_NULL)\r\n public Long getVersion() {\r\n return version;\r\n }", "title": "" }, { "docid": "3f0e337376ff9629c7073bc644e25a5a", "score": "0.59012675", "text": "@java.lang.Override\n public int getVersion() {\n return version_;\n }", "title": "" }, { "docid": "e86dbf4f00588e2476db62790f4cc1df", "score": "0.5901145", "text": "public long getVersion() {\n return version;\n }", "title": "" }, { "docid": "52143aca695868bde12f50224c1f348e", "score": "0.58997196", "text": "public String getVersion() {\n return this.version;\n }", "title": "" }, { "docid": "d850304ec043ca2508eb5747da8dbf59", "score": "0.5898386", "text": "public Version getVersion() {\n\t\treturn version;\n\t}", "title": "" }, { "docid": "b8b1cb7c433055dfc50d9780ed4ee46a", "score": "0.5895263", "text": "@ApiModelProperty(example = \"null\", value = \"The version number indicates the version of the entity. The version is incremented whenever the entity is changed.\")\n\tpublic Integer getVersion() {\n\t\treturn version;\n\t}", "title": "" }, { "docid": "116a19fffe5ce6c34f6913d023703b1f", "score": "0.58945894", "text": "public long getVersion() {\n return version;\n }", "title": "" }, { "docid": "eaa1b81efbdf5c95df65b4cf3a632d25", "score": "0.588416", "text": "public String getVersion() {\n return this.version;\n }", "title": "" }, { "docid": "8a186d981ae5f74b7bb7f26d88781c54", "score": "0.5876661", "text": "public abstract int getVersion();", "title": "" }, { "docid": "90590d497a6b034dba3aab827829e3f5", "score": "0.587045", "text": "@XmlTransient\n @Field(index = Index.YES, analyze = Analyze.NO, store = Store.NO)\n public String getFromVersion() {\n return mapSet == null ? null : mapSet.getFromVersion();\n }", "title": "" }, { "docid": "276dd868b9ec17ae30fdfb353558232a", "score": "0.5870408", "text": "public int getVersion() {\n\t\treturn this.version;\n\t}", "title": "" }, { "docid": "56688f271161b5a09e8957dbede20f9f", "score": "0.58647263", "text": "public String getModelVersion() {\n return modelVersion;\n }", "title": "" }, { "docid": "22d9aabc7534964b9e6d313c779ba201", "score": "0.5856688", "text": "private int getVersion() {\n return this.version;\n }", "title": "" }, { "docid": "071b721e560dfe01df892af391ff023e", "score": "0.58513916", "text": "public String getVersion() {\n return this.getField(VERSION).toString();\n }", "title": "" }, { "docid": "b1393876d6215051fb1e7a6a9dc03cad", "score": "0.5846235", "text": "public String getVersion() {\r\n return this.version;\r\n }", "title": "" }, { "docid": "3f812e7755a7701ce7d65cfa2bd6f312", "score": "0.5816933", "text": "public Version getVersion();", "title": "" }, { "docid": "0f52735dab842ee311f4864ff95abeec", "score": "0.58140814", "text": "public int getVersion() {\n return version_;\n }", "title": "" }, { "docid": "67224d0c9e57457f6b75de2676aa849d", "score": "0.5808182", "text": "public String getVersion() {\n return this.version;\n }", "title": "" }, { "docid": "67224d0c9e57457f6b75de2676aa849d", "score": "0.5808182", "text": "public String getVersion() {\n return this.version;\n }", "title": "" }, { "docid": "67224d0c9e57457f6b75de2676aa849d", "score": "0.5808182", "text": "public String getVersion() {\n return this.version;\n }", "title": "" }, { "docid": "67224d0c9e57457f6b75de2676aa849d", "score": "0.5808182", "text": "public String getVersion() {\n return this.version;\n }", "title": "" }, { "docid": "67224d0c9e57457f6b75de2676aa849d", "score": "0.5808182", "text": "public String getVersion() {\n return this.version;\n }", "title": "" }, { "docid": "8b78a83677483fd730536ade9829871a", "score": "0.58079684", "text": "@NotNull\n @JsonProperty(\"version\")\n public Long getVersion();", "title": "" }, { "docid": "80990924da447803acfe0b8a07431a35", "score": "0.5783621", "text": "public int getVersion() {\n return version_;\n }", "title": "" }, { "docid": "6951ba75370cf4b41bf632da29c58e00", "score": "0.5782261", "text": "@Schema(description = \"Version identifier for this endpoint, preferably in semantic versioning style\")\n\tpublic String getVersion() {\n\t\treturn version;\n\t}", "title": "" }, { "docid": "7a4dfc26867fe79e873f248ea7b53f81", "score": "0.57809895", "text": "public String getSeenVersion();", "title": "" }, { "docid": "0fff5e492fa61cec5cca6a7f7bc79101", "score": "0.5777469", "text": "public Version getVersion() {\n com.ail.core.Version v = (com.ail.core.Version) core.newType(\"Version\");\n v.setCopyright(\"Copyright Applied Industrial Logic Limited 2002. All rights reserved.\");\n v.setDate(\"$Date: 2007/06/10 11:05:59 $\");\n v.setSource(\"$Source: /home/bob/CVSRepository/projects/insurance/insurance.ear/insurance.jar/com/ail/insurance/quotation/assessrisk/AssessRiskService.java,v $\");\n v.setState(\"$State: Exp $\");\n v.setVersion(\"$Revision: 1.7 $\");\n return v;\n }", "title": "" }, { "docid": "f4ef9dc7ef7f507d6ecd11c20c71bde2", "score": "0.57751787", "text": "public String getVersion()\n {\n return this.m_version;\n }", "title": "" }, { "docid": "491170383266904a050892613b013630", "score": "0.57719094", "text": "int getAttribute();", "title": "" }, { "docid": "77eecdb7adaf0a61061dc7f0133e2284", "score": "0.5763896", "text": "@XmlTransient\n @Field(index = Index.YES, analyze = Analyze.NO, store = Store.NO)\n public String getToVersion() {\n return mapSet == null ? null : mapSet.getToVersion();\n }", "title": "" }, { "docid": "01b86e7dc046646a2c3416ba69c5e62b", "score": "0.5762596", "text": "public int getVersion() {\n return version;\n }", "title": "" }, { "docid": "01b86e7dc046646a2c3416ba69c5e62b", "score": "0.5762596", "text": "public int getVersion() {\n return version;\n }", "title": "" }, { "docid": "01b86e7dc046646a2c3416ba69c5e62b", "score": "0.5762596", "text": "public int getVersion() {\n return version;\n }", "title": "" }, { "docid": "2af4992ab0a40c665b38d0e63d143366", "score": "0.57619846", "text": "public java.lang.String getRepresentsVersion() {\n return representsVersion;\n }", "title": "" }, { "docid": "72a8555b4097deb6e1d5adfa56f82c99", "score": "0.5760435", "text": "Version getFromVersion();", "title": "" }, { "docid": "f909c29a08276f7002b848db9e33f928", "score": "0.5755927", "text": "public java.lang.String getVolumeAnnotationsVersion() {\n return volumeAnnotationsVersion;\n }", "title": "" }, { "docid": "4bcaa9333967729eec1e781517ac4459", "score": "0.57547474", "text": "public int getVersion() {\n\t\treturn version;\n\t}", "title": "" }, { "docid": "eb2ca46956ddd3f7085b3f887c116b2b", "score": "0.5750813", "text": "public String getVersion(){\n\t\treturn version;\n\t}", "title": "" }, { "docid": "9023f45128b0d1647e798405e2deab91", "score": "0.574852", "text": "@Override\r\n\tpublic Integer getVersion() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "dd8ba8c7a9cd0f68cab30c079b263dfe", "score": "0.57485026", "text": "public int getVersion() {\n return version_;\n }", "title": "" }, { "docid": "81768959b73d23eeb232b279bcb80209", "score": "0.5737243", "text": "public long getVersion(){\n return localVersion;\n }", "title": "" }, { "docid": "00edff168f0bb95e22fb1122f2593a94", "score": "0.5733399", "text": "String getDatabaseProductVersion();", "title": "" }, { "docid": "2c1e1a13f24fa3c06ea62df4870df95d", "score": "0.57326126", "text": "public String getVersion(){\r\n\t\treturn version;\r\n\t}", "title": "" }, { "docid": "7ea8e9401194191d5dc505f3ce752656", "score": "0.57273287", "text": "public int getVersion() {\n return version_;\n }", "title": "" }, { "docid": "7f476358f01956033accf6b6c7b78027", "score": "0.5726764", "text": "public String getVersion() {\n return version;\n }", "title": "" }, { "docid": "75855ed9819c190f07f28447dddd087a", "score": "0.5722167", "text": "public String getVersion() {\n return version;\n }", "title": "" }, { "docid": "75855ed9819c190f07f28447dddd087a", "score": "0.5722167", "text": "public String getVersion() {\n return version;\n }", "title": "" }, { "docid": "75855ed9819c190f07f28447dddd087a", "score": "0.5722167", "text": "public String getVersion() {\n return version;\n }", "title": "" }, { "docid": "c53bd6c654ca10d53be7fd95559ec22f", "score": "0.5722141", "text": "private static Version getVersion(Element element) {\r\n Version identifier = null; \r\n \r\n if (element.hasAttribute(\"version\")) {\r\n String version = element.getAttribute(\"version\");\r\n String[] versions = version.split(\"\\\\.\");\r\n String newVersion = versions[0] + \".\" + versions[1]; \r\n identifier = new Version(newVersion);\r\n }\r\n \r\n return identifier;\r\n }", "title": "" }, { "docid": "7da63468fb5e933d5806dca86b34c2f5", "score": "0.572117", "text": "public Long getVersion() {\n return 0L;\n }", "title": "" } ]
717c106e2376ac6f48a1944d75a91727
encryptB(Boolean isFromUrl) / BigO same than encryptA
[ { "docid": "473eb5ba38eeb4e56bd145b5886814fd", "score": "0.6866809", "text": "public void decryptB(Boolean isFromUrl)\n\t{\n\t\t// create queues\n\t\tBlockingQueue<CharSequence> qParseToEncrypt = new LinkedBlockingQueue<CharSequence>(queueSize);\n\t\tBlockingQueue<CharSequence> qEncryptToWrite = new LinkedBlockingQueue<CharSequence>(queueSize);\n\n\t\t// create runnable classes\n\t\tParseFile parseFile = new ParseFile(qParseToEncrypt);\n\t\tDecryptionB encryptFile = new DecryptionB(qParseToEncrypt, qEncryptToWrite, keyManager);\n\t\tWriteFile writeFile = new WriteFile(qEncryptToWrite);\n\n\t\t// set file name\n\t\tif (isFromUrl)\n\t\t{\n\t\t\tparseFile.setFileName(fileManager.getUrlFileName(), isFromUrl);\n\t\t} else\n\t\t{\n\t\t\tparseFile.setFileName(fileManager.getInputFileName(), isFromUrl);\n\t\t}\n\n\t\t// true);\n\n\t\twriteFile.inputFileName(fileManager.getOutputFileName());\n\n\t\t// create threads\n\t\tThread t1 = new Thread(parseFile);\n\t\tThread t2 = new Thread(encryptFile);\n\t\tThread t3 = new Thread(writeFile);\n\n\t\t// start timing\n\t\tSystem.out.println(\"Starting encryption.\");\n\t\tlong startTime = System.nanoTime();\n\n\t\tt1.start();// Time: O(n) , space: worst O(n) , normal O(1)\n\t\tt2.start();// Time: O(n) , space: worst O(n) , normal O(1)\n\t\tt3.start();// Time: O(n) , space: worst O(n) , normal O(1)\n\n\t\ttry\n\t\t{\n\t\t\tt3.join();\n\t\t} catch (InterruptedException e)\n\t\t{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// stop timing\n\t\tSystem.out.println(\"Encryption done.\");\n\t\tlong stopTime = System.nanoTime();\n\t\tSystem.out.println(\"Time in seconds: \" + (stopTime - startTime) / Math.pow(10, 9));\n\n\t\twaitForEnter();\n\n\t}", "title": "" } ]
[ { "docid": "3bb56850115d0564d3bc8889d11edf12", "score": "0.7046674", "text": "public void encryptB(Boolean isFromUrl)\n\t{\n\t\t// create queues\n\t\tBlockingQueue<CharSequence> qParseToEncrypt = new LinkedBlockingQueue<CharSequence>(queueSize);\n\t\tBlockingQueue<CharSequence> qEncryptToWrite = new LinkedBlockingQueue<CharSequence>(queueSize);\n\n\t\t// create runnable classes\n\t\tParseFile parseFile = new ParseFile(qParseToEncrypt);\n\t\tEncryptionB encryptFile = new EncryptionB(qParseToEncrypt, qEncryptToWrite, keyManager);\n\t\tWriteFile writeFile = new WriteFile(qEncryptToWrite);\n\n\t\t// set file name\n\t\tif (isFromUrl)\n\t\t{\n\t\t\tparseFile.setFileName(fileManager.getUrlFileName(), isFromUrl);\n\t\t} else\n\t\t{\n\t\t\tparseFile.setFileName(fileManager.getInputFileName(), isFromUrl);\n\t\t}\n\n\t\twriteFile.inputFileName(fileManager.getOutputFileName());\n\n\t\t// create threads\n\t\tThread t1 = new Thread(parseFile);\n\t\tThread t2 = new Thread(encryptFile);\n\t\tThread t3 = new Thread(writeFile);\n\n\t\t// start timing\n\t\tSystem.out.println(\"Starting encryption.\");\n\t\tlong startTime = System.nanoTime();\n\n\t\t// start threads\n\t\tt1.start();// Time: O(n) , space: worst O(n) , normal O(1)\n\t\tt2.start();// Time: O(n) , space: worst O(n) , normal O(1)\n\t\tt3.start();// Time: O(n) , space: worst O(n) , normal O(1)\n\n\t\t// yield last thread to main\n\t\ttry\n\t\t{\n\t\t\tt3.join();\n\n\t\t} catch (InterruptedException e)\n\t\t{\n\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// stop timing\n\t\tSystem.out.println(\"Encryption done.\");\n\t\tlong stopTime = System.nanoTime();\n\t\tSystem.out.println(\"Time in seconds: \" + (stopTime - startTime) / Math.pow(10, 9));\n\n\t\twaitForEnter();\n\n\t}", "title": "" }, { "docid": "12dfb6786a2e4f6cbccc122d1d812ede", "score": "0.6587732", "text": "public void encryptA(Boolean isFromUrl)\n\t{\n\n\t\t// create queues\n\t\tBlockingQueue<CharSequence> qParseToEncrypt = new LinkedBlockingQueue<CharSequence>(queueSize);\n\t\tBlockingQueue<CharSequence> qEncryptToWrite = new LinkedBlockingQueue<CharSequence>(queueSize);\n\n\t\t// create runnable classes\n\t\tParseFile parseFile = new ParseFile(qParseToEncrypt);\n\t\tEncryptionA encryptFile = new EncryptionA(qParseToEncrypt, qEncryptToWrite, keyManager);\n\t\tWriteFile writeFile = new WriteFile(qEncryptToWrite);\n\n\t\t// set file name\n\t\tif (isFromUrl)\n\t\t{\n\t\t\tparseFile.setFileName(fileManager.getUrlFileName(), isFromUrl);\n\t\t} else\n\t\t{\n\t\t\tparseFile.setFileName(fileManager.getInputFileName(), isFromUrl);\n\t\t}\n\n\t\twriteFile.inputFileName(fileManager.getOutputFileName());\n\n\t\t// create threads\n\t\tThread t1 = new Thread(parseFile);\n\t\tThread t2 = new Thread(encryptFile);\n\t\tThread t3 = new Thread(writeFile);\n\n\t\t// start timing\n\t\tSystem.out.println(\"Starting encryption.\");\n\t\tlong startTime = System.nanoTime();\n\n\t\t// start threads\n\t\tt1.start();// Time: O(n) , space: worst O(n) , normal O(1)\n\t\tt2.start();// Time: O(n) , space: worst O(n) , normal O(1)\n\t\tt3.start();// Time: O(n) , space: worst O(n) , normal O(1)\n\n\t\t// yield last thread to main\n\t\ttry\n\t\t{\n\t\t\tt3.join();\n\n\t\t} catch (InterruptedException e)\n\t\t{\n\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// stop timing\n\t\tSystem.out.println(\"Encryption done.\");\n\t\tlong stopTime = System.nanoTime();\n\t\tSystem.out.println(\"Time in seconds: \" + (stopTime - startTime) / Math.pow(10, 9));\n\n\t\twaitForEnter();\n\n\t}", "title": "" }, { "docid": "7d2b4c6ca8326e6134ea3ae4baf0b101", "score": "0.6225146", "text": "public void decryptA(Boolean isFromUrl)\n\t{\n\t\t// create queues\n\t\tBlockingQueue<CharSequence> qParseToEncrypt = new LinkedBlockingQueue<CharSequence>(queueSize);\n\t\tBlockingQueue<CharSequence> qEncryptToWrite = new LinkedBlockingQueue<CharSequence>(queueSize);\n\n\t\t// create runnable classes\n\t\tParseFile parseFile = new ParseFile(qParseToEncrypt);\n\t\tDecryptionA encryptFile = new DecryptionA(qParseToEncrypt, qEncryptToWrite, keyManager);\n\t\tWriteFile writeFile = new WriteFile(qEncryptToWrite);\n\n\t\t// set file name\n\t\tif (isFromUrl)\n\t\t{\n\t\t\tparseFile.setFileName(fileManager.getUrlFileName(), isFromUrl);\n\t\t} else\n\t\t{\n\t\t\tparseFile.setFileName(fileManager.getInputFileName(), isFromUrl);\n\t\t}\n\n\t\t// true);\n\n\t\twriteFile.inputFileName(fileManager.getOutputFileName());\n\n\t\t// create threads\n\t\tThread t1 = new Thread(parseFile);\n\t\tThread t2 = new Thread(encryptFile);\n\t\tThread t3 = new Thread(writeFile);\n\n\t\t// start timing\n\t\tSystem.out.println(\"Starting encryption.\");\n\t\tlong startTime = System.nanoTime();\n\n\t\t// start threads\n\t\tt1.start();// Time: O(n) , space: worst O(n) , normal O(1)\n\t\tt2.start();// Time: O(n) , space: worst O(n) , normal O(1)\n\t\tt3.start();// Time: O(n) , space: worst O(n) , normal O(1)\n\n\t\t// yield last thread to main\n\t\ttry\n\t\t{\n\t\t\tt3.join();\n\t\t} catch (InterruptedException e)\n\t\t{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// stop timing\n\t\tSystem.out.println(\"Decryption done.\");\n\t\tlong stopTime = System.nanoTime();\n\t\tSystem.out.println(\"Time in seconds: \" + (stopTime - startTime) / Math.pow(10, 9));\n\n\t\twaitForEnter();\n\n\t}", "title": "" }, { "docid": "8ed36fad0052bdf0536b8e6c1642aeda", "score": "0.6186832", "text": "Boolean isEncrypted();", "title": "" }, { "docid": "cc118eaa46caa7156d7ba04111e65216", "score": "0.5934404", "text": "String encrypt(User user);", "title": "" }, { "docid": "398b554ddff7141ccf4ce99380c2550d", "score": "0.58916533", "text": "public static byte[] encrypt(String toEncrypt, SecretKey key, BouncyCastleProvider a) throws Exception {\n\t\t Cipher cipher = Cipher.getInstance(\"RC5\", a);\r\n\t\t \r\n\t\t // initialize the cipher with the key\r\n\t\t cipher.init(Cipher.ENCRYPT_MODE, key);\r\n\t\t \r\n\t\t // enctypt!\r\n\t\t byte[] encrypted = cipher.doFinal(toEncrypt.getBytes());\r\n\t\t \r\n\t\t return encrypted;\r\n\t\t }", "title": "" }, { "docid": "6150dd9d8cefb7ca7150b1765ef70911", "score": "0.5821704", "text": "private static String m35171a(String str, String str2) {\n String str3 = \"UTF-8\";\n try {\n byte[] bytes = str.getBytes(str3);\n byte[] bArr = new byte[bytes.length];\n byte[] bytes2 = str2.getBytes(str3);\n for (int i = 0; i < bytes.length; i++) {\n bArr[i] = (byte) (bytes[i] ^ bytes2[i % bytes2.length]);\n }\n return new String(Base64.encode(bArr, 2), str3);\n } catch (UnsupportedEncodingException e) {\n return \"\";\n }\n }", "title": "" }, { "docid": "d49b3e620f25b881601d7a9237d1ae5e", "score": "0.57126474", "text": "String encrypt(final String input);", "title": "" }, { "docid": "cfea763e8e61d911b2370d2b55ef7bfa", "score": "0.56806135", "text": "void turnOnEncryption(String encryptKey);", "title": "" }, { "docid": "90fb42fa111a406a8b0891210018cf50", "score": "0.55952865", "text": "void mo35798a(String str, byte[] bArr, boolean z);", "title": "" }, { "docid": "0a4325e70b3c12b78c05d54e32e49a5f", "score": "0.5576895", "text": "public void encrypt()\n {\n int i;\n\n A = A + S[0];\n B = B + S[1];\n\n for(i = 1; i <= r; i++)\n {\n A = Integer.rotateLeft((A ^ B), B) + S[2 * i];\n B = Integer.rotateLeft((B ^ A), A) + S[(2 * i) + 1];\n }\n }", "title": "" }, { "docid": "0f18871ffffa5eedd9ec1e41d8573976", "score": "0.5530675", "text": "public String encryptTwoKeys(String input, int key1, int key2) {\n StringBuilder encrypted = new StringBuilder(input);\n //Write down the alphabet\n String alphabet = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n //Compute the shifted alphabet\n String shiftedAlphabet1 = alphabet.substring(key1)+\n alphabet.substring(0,key1);\n String shiftedAlphabet2 = alphabet.substring(key2)+\n alphabet.substring(0,key2);\n //Count from 0 to < length of encrypted, (call it i)\n for(int i = 0; i < encrypted.length(); i++) {\n //Look at the ith character of encrypted (call it currChar)\n char currChar = encrypted.charAt(i);\n boolean islowercase=Character.isLowerCase(currChar);\n boolean keyselect=i%2==0;\n //Find the index of currChar in the alphabet (call it idx)\n int idx = alphabet.indexOf(currChar);\n if(islowercase){\n idx = alphabet.indexOf(Character.toUpperCase(currChar));\n }\n //If currChar is in the alphabet\n if(idx != -1){\n \t//Get the idxth character of shiftedAlphabet (newChar)\n \t\n \tchar newChar = shiftedAlphabet2.charAt(idx);\n if(keyselect){\n \tnewChar = shiftedAlphabet1.charAt(idx);\n }\n if(islowercase){\n encrypted.setCharAt(i, Character.toLowerCase(newChar));\n }else{\n encrypted.setCharAt(i, newChar);\n }\n //Replace the ith character of encrypted with newChar\n }\n \n //Otherwise: do nothing\n }\n //Your answer is the String inside of encrypted\n return encrypted.toString();\n }", "title": "" }, { "docid": "4f1f7418cde0ddd31cec2004806b4580", "score": "0.5492899", "text": "public String encryptTwoKeys(String input, int key1, int key2) {\n String abc = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n String abcEncrypted1 = abc.substring(key1) + abc.substring(0, key1);\n String abcEncrypted2 = abc.substring(key2) + abc.substring(0, key2);\n \n // Make passed String dynamically mutable\n StringBuilder encrypted = new StringBuilder(input);\n // For each character\n for (int i = 0; i < encrypted.length(); i++) {\n // Get character\n char ch = encrypted.charAt(i);\n // If char is a letter\n if (Character.isLetter(ch)) {\n // Convert to uppercase (regardless if it is already)\n char chUpper = Character.toUpperCase(ch);\n // Find its position in normal abc\n int pos = abc.indexOf(chUpper);\n // Find it in one of the encrypted abcs, depending on index \n char replacee;\n if (i % 2 == 0) {\n replacee = abcEncrypted1.charAt(pos);\n } else {\n replacee = abcEncrypted2.charAt(pos);\n }\n // Replace it with letter found in encrypted abc (in correct case)\n if (chUpper == ch) {\n encrypted.setCharAt(i, replacee);\n } else {\n encrypted.setCharAt(i, Character.toLowerCase(replacee));\n }\n }\n }\n \n return encrypted.toString();\n }", "title": "" }, { "docid": "76fc6924fc1364697296fbb753fc5f8a", "score": "0.5477512", "text": "public static void doSimplePolicyTest() throws Exception{\n byte[] data = { 0x10, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07 };\n\n // create a 64 bit secret key from raw bytes\n\n SecretKey key64 = new SecretKeySpec(new byte[] { 0x00, 0x01, 0x02,\n 0x03, 0x04, 0x05, 0x06, 0x07 }, \"Blowfish\");\n\n // create a cipher and attempt to encrypt the data block with our key\n\n Cipher c = Cipher.getInstance(\"Blowfish/ECB/NoPadding\");\n\n c.init(Cipher.ENCRYPT_MODE, key64);\n c.doFinal(data);\n System.out.println(\"64 bit test: passed\");\n\n // create a 128 bit secret key from raw bytes\n\n SecretKey key128 = new SecretKeySpec(new byte[] { 0x00, 0x01, 0x02,\n 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c,\n 0x0d, 0x0e, 0x0f}, \"Blowfish\");\n\n // now try encrypting with the larger key\n\n c.init(Cipher.ENCRYPT_MODE, key128);\n System.out.println(\"128 bit test: passed [\"+ ((byte[]) c.doFinal(data)).toString()+\"]\");\n\n // create a 192 bit secret key from raw bytes\n\n SecretKey key192 = new SecretKeySpec(new byte[] { 0x00, 0x01, 0x02,\n 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c,\n 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16,\n 0x17 }, \"Blowfish\");\n\n // now try encrypting with the larger key\n\n c.init(Cipher.ENCRYPT_MODE, key192);\n c.doFinal(data);\n System.out.println(\"192 bit test: passed\");\n\n System.out.println(\"Tests completed\");\n }", "title": "" }, { "docid": "131eaf5ed635dff163d2ee624c22b1f4", "score": "0.54733896", "text": "abstract boolean isEncryptedByMe(int heroID);", "title": "" }, { "docid": "004fd4516e46ad4beefa1625d94cf727", "score": "0.5444474", "text": "byte[] encrypt(byte[] bytes) throws Exception;", "title": "" }, { "docid": "282f03ab5c3e00066d9e05d672cb84c0", "score": "0.5433468", "text": "public String encrypt (String message);", "title": "" }, { "docid": "675651e9d5bd72e9178b4ab03d2c8eb4", "score": "0.5418716", "text": "public abstract byte[] encrypt (byte[] input, byte[] iv);", "title": "" }, { "docid": "0d1361342ef51997c3f51ca6454e80ba", "score": "0.53967965", "text": "public void dataEncryptionAlgorithm(int b) throws JposException;", "title": "" }, { "docid": "2d90d9135fac4d6689393e343652aa57", "score": "0.53689027", "text": "public byte[] encryptString(String input);", "title": "" }, { "docid": "fbd6aa0dc1a3627b7c29929691442ff5", "score": "0.53520644", "text": "public static String encryption(String inputText, SecretKey secretkey) throws Exception {\n\t\t\tcipher = Cipher.getInstance(\"Blowfish\");\n\t\t // initialise cipher to with secret key\n\t\t cipher.init(Cipher.ENCRYPT_MODE, secretkey);\n\t\t base64 = new Base64(true);\n\t\t // encrypt message\n\t\t byte[] encrypted = cipher.doFinal(inputText.getBytes());\n\t\t //return encrypted;\n\t\t return base64.encodeToString(cipher.doFinal(inputText.getBytes(\"UTF8\")));\n\t\t\n\t}", "title": "" }, { "docid": "f8531e116f3c390abc9e3d2ee20e20e1", "score": "0.5346751", "text": "WithCreate withIsEncrypted(Boolean isEncrypted);", "title": "" }, { "docid": "1d4eefe5717854b301d784790665f9f5", "score": "0.5311919", "text": "EncryptedData encrypt(SecretKey secretKey, ImmutableByteArray data);", "title": "" }, { "docid": "ed1a268ee85fb47f8e88ccd8729ddd2f", "score": "0.52904385", "text": "public abstract int encrypt(int text);", "title": "" }, { "docid": "9076d8ec323cdb1f96eabf18af207b89", "score": "0.5289725", "text": "public static void main(String[] args) {\n// String jdkEncode = base64Util.jdkBase64Encode(str);\n// base64Util.jdkBase64Decoder(jdkEncode);\n// System.out.println(\"=============================\");\n// String bcEncode = base64Util.bouncyCastleBase64Encode(str);\n// base64Util.bouncyCastleBase64Decoder(bcEncode.getBytes());\n// System.out.println(\"=============================\");\n// String commonsEncode = base64Util.commonsBase64Encode(str);\n// base64Util.commonsBase64Decoder(commonsEncode.getBytes());\n// System.out.println(\"=============================\");\n\n// DesUtil desUtil = new DesUtil();\n// System.out.println(\"=============================\");\n// Key jdkKey = desUtil.jdkDesKey();\n// byte[] jdkEncode = desUtil.jdkDesEncode(str, jdkKey);\n// desUtil.jdkDesDecode(jdkEncode, jdkKey);\n// System.out.println(\"=============================\");\n// Key bdKey = desUtil.bcDesKey();\n// byte[] bcEncode = desUtil.bcDesEncode(str, bdKey);\n// desUtil.bcDesDecode(bcEncode, bdKey);\n// System.out.println(\"=============================\");\n\n// Des3Util desUtil = new Des3Util();\n// System.out.println(\"=============================\");\n// Key jdkKey = desUtil.jdk3DesKey();\n// byte[] jdkEncode = desUtil.jdk3DesEncode(str, jdkKey);\n// desUtil.jdk3DesDecode(jdkEncode, jdkKey);\n// System.out.println(\"=============================\");\n// Key bdKey = desUtil.bc3DesKey();\n// byte[] bcEncode = desUtil.bc3DesEncode(str, bdKey);\n// desUtil.bc3DesDecode(bcEncode, bdKey);\n// System.out.println(\"=============================\");\n\n// AesUtil aesUtil = new AesUtil();\n// System.out.println(\"=============================\");\n// Key jdkKey = aesUtil.jdkAesKey();\n// byte[] jdkEncode = aesUtil.jdkAesEncode(str, jdkKey);\n// aesUtil.jdkAesDecode(jdkEncode, jdkKey);\n// System.out.println(\"=============================\");\n// Key bdKey = aesUtil.bcAesKey();\n// byte[] bcEncode = aesUtil.bcAesEncode(str, bdKey);\n// aesUtil.bcAesDecode(bcEncode, bdKey);\n// System.out.println(\"=============================\");\n\n// PbeUtil pbeUtil = new PbeUtil();\n// byte[] salt = pbeUtil.initPbeSalt();\n// System.out.println(\"=============================\");\n// Key jdkKey = pbeUtil.jdkPbeKey(password);\n// byte[] jdkEncode = pbeUtil.jdkPbeEncode(str, jdkKey, salt);\n// pbeUtil.jdkPbeDecode(jdkEncode, jdkKey, salt);\n// System.out.println(\"=============================\");\n// Key bdKey = pbeUtil.bcPbeKey(password);\n// byte[] bcEncode = pbeUtil.bcPbeEncode(str, bdKey, salt);\n// pbeUtil.bcPbeDecode(bcEncode, bdKey, salt);\n// System.out.println(\"=============================\");\n\n// DhUtil dhUtil = new DhUtil();\n// System.out.println(\"=============================\");\n// KeyPair sendKeyPair = dhUtil.initSendKey();\n// System.out.println(\"=============================\");\n// Map map = dhUtil.initRecvKey(sendKeyPair);\n// System.out.println(\"=============================\");\n// Map<String, SecretKey> keys = dhUtil.createKey(sendKeyPair, map);\n// System.out.println(\"=============================\");\n// byte[] bytes = dhUtil.dhEncode(str, keys);\n// System.out.println(\"=============================\");\n// String s = dhUtil.dhDecode(bytes, keys);\n// System.out.println(\"=============================\");\n\n// RsaUtil rsaUtil = new RsaUtil();\n// System.out.println(\"=============================\");\n// KeyPair keyPair = rsaUtil.initRsaKey();\n// RSAPrivateKey rsaPrivateKey = rsaUtil.initRsaPrivateKey(keyPair);\n// RSAPublicKey rsaPublicKey = rsaUtil.initRsaPublicKey(keyPair);\n// System.out.println(\"=============================\");\n// byte[] bytes = rsaUtil.privateEncode(rsaPrivateKey, str);\n// rsaUtil.publicDecode(rsaPublicKey, bytes);\n// System.out.println(\"=============================\");\n// byte[] bytes1 = rsaUtil.publicEncode(rsaPublicKey, str);\n// rsaUtil.privateDecode(rsaPrivateKey, bytes1);\n// System.out.println(\"=============================\");\n\n// MdUtil mdUtil = new MdUtil();\n// System.out.println(\"=============================\");\n// mdUtil.jdkMd(str, \"MD5\");\n// mdUtil.jdkMd(str, \"MD2\");\n// System.out.println(\"=============================\");\n// mdUtil.bcMd5(str);\n// mdUtil.bcMd4(str);\n// System.out.println(\"=============================\");\n// mdUtil.ccMd5(str);\n// mdUtil.ccMd2(str);\n// System.out.println(\"=============================\");\n\n// ShaUtil shaUtil = new ShaUtil();\n// System.out.println(\"=============================\");\n// shaUtil.jdkSha(str);\n// System.out.println(\"=============================\");\n// shaUtil.bcSha(str);\n// System.out.println(\"=============================\");\n// shaUtil.bcSha224(str);\n// System.out.println(\"=============================\");\n// shaUtil.ccSha(str);\n// System.out.println(\"=============================\");\n\n// MacUtil macUtil = new MacUtil();\n// System.out.println(\"=============================\");\n// macUtil.jdkMacMd5(str, password);\n// System.out.println(\"=============================\");\n// macUtil.bcMacMd5(str, password);\n// System.out.println(\"=============================\");\n\n// RsaSzqmUtil rsaSzqmUtil = new RsaSzqmUtil();\n// System.out.println(\"=============================\");\n// KeyPair keyPair = rsaSzqmUtil.initRsaKey();\n// RSAPrivateKey rsaPrivateKey = rsaSzqmUtil.initRsaPrivateKey(keyPair);\n// RSAPublicKey rsaPublicKey = rsaSzqmUtil.initRsaPublicKey(keyPair);\n// System.out.println(\"=============================\");\n// byte[] bytes = rsaSzqmUtil.jdkEncode(rsaPrivateKey, str);\n// rsaSzqmUtil.jdkDecode(rsaPublicKey, str, bytes);\n// System.out.println(\"=============================\");\n\n// DsaUtil dsaUtil = new DsaUtil();\n// System.out.println(\"=============================\");\n// KeyPair keyPair = dsaUtil.initDsaKey();\n// DSAPrivateKey dsaPrivateKey = dsaUtil.initDsaPrivateKey(keyPair);\n// DSAPublicKey dsaPublicKey = dsaUtil.initDsaPublicKey(keyPair);\n// System.out.println(\"=============================\");\n// byte[] bytes = dsaUtil.jdkEncode(dsaPrivateKey, str);\n// dsaUtil.jdkDecode(dsaPublicKey, str, bytes);\n// System.out.println(\"=============================\");\n\n// EcDsaUtil ecDsaUtil = new EcDsaUtil();\n// System.out.println(\"=============================\");\n// KeyPair keyPair = ecDsaUtil.initEcDsaKey();\n// ECPrivateKey ecPrivateKey = ecDsaUtil.initEcDsaPrivateKey(keyPair);\n// ECPublicKey ecPublicKey = ecDsaUtil.initEcDsaPublicKey(keyPair);\n// System.out.println(\"=============================\");\n// byte[] bytes = ecDsaUtil.jdkEncode(ecPrivateKey, str);\n// ecDsaUtil.jdkDecode(ecPublicKey, str, bytes);\n// System.out.println(\"=============================\");\n\n }", "title": "" }, { "docid": "f414b376f3d71fd11d99b56d789e6195", "score": "0.52594787", "text": "public String encryptBin(String m, String key) {\n \n String[] messageSplit = m.split(\"(?!^)\");\n KeyGenDES kgd = new KeyGenDES(key);\n String[] subKeys = kgd.generateSubKeys();\n String ip = \"\";\n int[] ipTable = {58, 50, 42, 34, 26, 18, 10, 2,\n 60, 52, 44, 36, 28, 20, 12, 4,\n 62, 54, 46, 38, 30, 22, 14, 6,\n 64, 56, 48, 40, 32, 24, 16, 8,\n 57, 49, 41, 33, 25, 17, 9, 1,\n 59, 51, 43, 35, 27, 19, 11, 3,\n 61, 53, 45, 37, 29, 21, 13, 5,\n 63, 55, 47, 39, 31, 23, 15, 7};\n \n for (int i = 0; i < ipTable.length; i++) {\n ip = ip + messageSplit[ipTable[i] - 1];\n }\n \n String[] l = new String[16];\n String[] r = new String[16];\n String l0 = ip.substring(0, ip.length() / 2);\n String r0 = ip.substring(ip.length() / 2);\n \n for (int i = 0; i < 16; i++) {\n if (i == 0) {\n l[i] = r0;\n r[i] = xor(l0, (function(r0, subKeys[0])));\n } else {\n l[i] = r[i - 1];\n r[i] = xor(l[i - 1], function(r[i - 1], subKeys[i]));\n }\n }\n \n String rlInverse = r[15] + l[15];\n String ipFinal = ipPermutation(rlInverse);\n \n return ipFinal;\n }", "title": "" }, { "docid": "b51ca90581e5260c468b6c28d66e0c3e", "score": "0.52547795", "text": "private static String encrypt(String sValue, String secretKey) {\r\n\t\tif (secretKey == null) {\r\n\t\t\tsecretKey = SYM_KEY_STR;\r\n\t\t}\r\n\r\n\t\tif (sValue == null || sValue.equals(\"\")) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\r\n\t\tString textEncode = null;\r\n\t\tCipher encryptCipher = null;\r\n\r\n\t\ttry {\r\n\t\t\tSecretKeySpec skeySpec = decodeKey(secretKey);\r\n\t\t\tencryptCipher = Cipher.getInstance(TRANSFORMATION);\r\n\t\t\tencryptCipher.init(Cipher.ENCRYPT_MODE, skeySpec);\r\n\r\n\t\t\tbyte[] plainText = sValue.trim().getBytes(CHARSET);\r\n\r\n\t\t\t// do the actual encryption\r\n\t\t\tbyte[] cipherText = encryptCipher.doFinal(plainText);\r\n\r\n\t\t\t// Changed to encode() to avoid <cr> on end of string\r\n\t\t\t// textEncode = base64Encoder.encodeBuffer(cipherText);\r\n\t\t\ttextEncode = new Base64().encodeAsString(cipherText);\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace(System.err);\r\n\t\t}\r\n\r\n\t\treturn textEncode;\r\n\t}", "title": "" }, { "docid": "ad9b60c355cb15359016e4a607649277", "score": "0.5250111", "text": "private String m16841a(String str) throws Throwable {\n OutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n DataOutputStream dataOutputStream = new DataOutputStream(byteArrayOutputStream);\n dataOutputStream.writeLong(this.f14913f.nextLong());\n dataOutputStream.writeLong(this.f14913f.nextLong());\n dataOutputStream.flush();\n dataOutputStream.close();\n byte[] toByteArray = byteArrayOutputStream.toByteArray();\n OutputStream byteArrayOutputStream2 = new ByteArrayOutputStream();\n GZIPOutputStream gZIPOutputStream = new GZIPOutputStream(byteArrayOutputStream2);\n gZIPOutputStream.write(str.getBytes(\"utf-8\"));\n gZIPOutputStream.flush();\n gZIPOutputStream.close();\n byte[] AES128Encode = Data.AES128Encode(toByteArray, byteArrayOutputStream2.toByteArray());\n toByteArray = new MobRSA(1024).encode(toByteArray, new BigInteger(\"ceeef5035212dfe7c6a0acdc0ef35ce5b118aab916477037d7381f85c6b6176fcf57b1d1c3296af0bb1c483fe5e1eb0ce9eb2953b44e494ca60777a1b033cc07\", 16), new BigInteger(\"191737288d17e660c4b61440d5d14228a0bf9854499f9d68d8274db55d6d954489371ecf314f26bec236e58fac7fffa9b27bcf923e1229c4080d49f7758739e5bd6014383ed2a75ce1be9b0ab22f283c5c5e11216c5658ba444212b6270d629f2d615b8dfdec8545fb7d4f935b0cc10b6948ab4fc1cb1dd496a8f94b51e888dd\", 16));\n OutputStream byteArrayOutputStream3 = new ByteArrayOutputStream();\n DataOutputStream dataOutputStream2 = new DataOutputStream(byteArrayOutputStream3);\n dataOutputStream2.writeInt(toByteArray.length);\n dataOutputStream2.write(toByteArray);\n dataOutputStream2.writeInt(AES128Encode.length);\n dataOutputStream2.write(AES128Encode);\n dataOutputStream2.flush();\n dataOutputStream2.close();\n return Base64.encodeToString(byteArrayOutputStream3.toByteArray(), 2);\n }", "title": "" }, { "docid": "b4427efdb4f4d02ed7803c49f684bd07", "score": "0.5220536", "text": "@Test\n public void testEncodeDecodeWithSeparateKey(){\n char[] key = \"testkey\".toCharArray();\n DefaultCipherHandler cipher = new DefaultCipherHandler(\"somekey\");\n assertEquals(\"hallo123\", cipher.decode(key, cipher.encode(key, \"hallo123\")));\n }", "title": "" }, { "docid": "100ad101d9ed8739438a345d312764ef", "score": "0.51949036", "text": "private static byte encrypt(final byte b)\n {\n return (byte)((b >= 0 ? Byte.MAX_VALUE : Byte.MIN_VALUE - 1) - b);\n }", "title": "" }, { "docid": "d994e54b9b204580257c6bd2010c4a9c", "score": "0.51918346", "text": "@Test\n public void testEncrypt() throws NoSuchAlgorithmException {\n Account testAccount = accountMapper.findAccountByName(\"test1\");\n String encodePassword = bootcampPasswordEncoder.encode(testAccount.getPassword());\n Assert.assertEquals(encodePassword, \"141def44fa4b0d0f2aab58509eee8ffc3e41b11d51b57764adb71e45f9920f59\");\n }", "title": "" }, { "docid": "913b08f9317c92a75333c168c2205c9d", "score": "0.5176657", "text": "private String EncryptPass(String passwordString) {\n try {\n String originalInput = passwordString;\n Base64 base64 = new Base64();\n String encodedString = new String(base64.encode(originalInput.getBytes()));\n return encodedString;\n } catch (Exception e) {\n System.out.println(\"Password encryption failed\");\n }\n return null;\n }", "title": "" }, { "docid": "954854ee8260fded51c3c284246b3966", "score": "0.5160124", "text": "public String encrypt(String plaintext) throws CryptoException;", "title": "" }, { "docid": "df3ff6143e2848539ddc0c8fbb8688b5", "score": "0.5157702", "text": "public static String encrypt(final String text) {\n\t\tbyte[] b = xor(text.getBytes());\n\t\tString s = org.apache.commons.codec.binary.Base64.encodeBase64String(b);\n\t\tString end = new String(s.getBytes());\n\t\treturn end;\n\t}", "title": "" }, { "docid": "e63ab8f1b742270bdeea2299708b4bba", "score": "0.51506525", "text": "public String encode(String secretkey, String password) {\n String passwordEncriptado = \"\";\n try {\n MessageDigest md5 = MessageDigest.getInstance(\"MD5\");\n byte[] llavePassword = md5.digest(secretkey.getBytes(\"utf-8\"));\n byte[] BytesKey = Arrays.copyOf(llavePassword, 24);\n SecretKey key = new SecretKeySpec(BytesKey, \"DESede\");\n Cipher cifrado = Cipher.getInstance(\"DESede\");\n cifrado.init(Cipher.ENCRYPT_MODE, key);\n byte[] plainTextBytes = password.getBytes(\"utf-8\");\n byte[] buf = cifrado.doFinal(plainTextBytes);\n byte[] base64Bytes = Base64.encodeBase64(buf);\n passwordEncriptado = new String(base64Bytes);\n } catch (Exception e) {\n }\n return passwordEncriptado;\n }", "title": "" }, { "docid": "c89dd9baffef53ba160e8b38670e63f9", "score": "0.51476145", "text": "public static String encrypt(final String text) \n\t {\n\t\t return new String(org.apache.commons.codec.binary.Base64.encodeBase64String(xor(text.getBytes())).getBytes());\n\t }", "title": "" }, { "docid": "8bbc45db8d4ce417ac0537cd2d299fec", "score": "0.51360226", "text": "private void feistel(boolean encrypt) throws UnsupportedEncodingException\n {\n // inisialisasi right left\n byte [] Left = new byte[init.length / 2];\n byte [] Right = new byte[init.length / 2];\n System.arraycopy(this.init, 0, Left, 0, init.length / 2);\n System.arraycopy(this.init, init.length / 2 , Right, 0, init.length / 2);\n \n int [] shiftRandomNumber = Tools.getShuffledInts(this.key, 7, 14);\n int [] internalKeyRandomNumber = Tools.getShuffledInts(this.key, 0, 7);\n \n // Mulai feistel per 16 byte\n for(int i = 0; i < 16; i++)\n {\n // simpan initial state\n byte [] LeftTemp = new byte[Left.length];\n System.arraycopy(Left, 0, LeftTemp, 0, Left.length);\n byte [] RightTemp = new byte[Right.length];\n System.arraycopy(Right, 0, RightTemp, 0, Right.length);\n \n // L = R-1\n System.arraycopy(Right, 0, Left, 0, Right.length);\n \n // R = L-1 XOR R-1\n // Tambahkan fungsi F ke sini\n if(encrypt)\n {\n RightTemp = ClassicCipherTools.encryptByte(RightTemp, keyhandler.getInternalKey(internalKeyRandomNumber[(i % 8)]));\n RightTemp = Tools.getShuffled(keyhandler.getInternalKey(i % 8), RightTemp);\n // shifting\n RightTemp = Tools.shiftLeft(RightTemp, shiftRandomNumber[i % 8]);\n }\n else\n {\n RightTemp = ClassicCipherTools.encryptByte(RightTemp, keyhandler.getInternalKey(internalKeyRandomNumber[7 - (i % 8)]));\n RightTemp = Tools.getShuffled(keyhandler.getInternalKey(7 - (i % 8)), RightTemp);\n RightTemp = Tools.shiftLeft(RightTemp, shiftRandomNumber[7 - (i % 8)]);\n }\n \n for(int idxbyte = 0; idxbyte < Right.length; idxbyte++)\n {\n byte temp = (byte) (LeftTemp[idxbyte] ^ RightTemp[idxbyte]);\n Right[idxbyte] = temp;\n }\n }\n \n // Gabungkan ke array result, dan diswap right left nya\n this.result = new byte[this.init.length];\n System.arraycopy(Right, 0, this.result, 0, Right.length);\n System.arraycopy(Left, 0, this.result, Right.length, Right.length);\n }", "title": "" }, { "docid": "de62382124f2c41f171011800c2dc825", "score": "0.51342666", "text": "abstract void encrypt(\n\tbyte[] clearText, int clearOff,\n\tbyte[] cipherText, int cipherOff );", "title": "" }, { "docid": "af922b7526cbdc097703ca580358180c", "score": "0.5115806", "text": "@Test\n public void encryption(){\n FileInputStream fis = null;\n FileOutputStream fos = null;\n try {\n fis = new FileInputStream(\"Cat03.jpg\");\n fos = new FileOutputStream(\"Cat03-ept.jpg\");\n\n byte[] buffer = new byte[512];\n\n int len;\n while((len = fis.read(buffer))!= -1){\n for (int i = 0; i < len; i++) {\n int afterEncp = buffer[i] ^ MAGICNUM;\n fos.write(afterEncp);\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n if (fis != null) fis.close();\n if (fos != null) fos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "47ff9599748b2ec486bfc0adfe4a247d", "score": "0.51123273", "text": "public int crypto_kem_enc(byte[] ct, byte[] ss, byte[] pk, SecureRandom random)\n {\n if(isCompressed)\n {\n byte[] ephemeralsk = new byte[params.SECRETKEY_B_BYTES];\n byte[] jinvariant = new byte[params.FP2_ENCODED_BYTES];\n byte[] h = new byte[params.MSG_BYTES];\n byte[] temp = new byte[params.CRYPTO_CIPHERTEXTBYTES + params.MSG_BYTES];\n\n // Generate ephemeralsk <- G(m||pk) mod oB\n byte[] tmp = new byte[params.MSG_BYTES];\n random.nextBytes(tmp);\n System.arraycopy(tmp, 0, temp, 0, params.MSG_BYTES);\n System.arraycopy(pk, 0, temp, params.MSG_BYTES, params.CRYPTO_PUBLICKEYBYTES);\n\n Xof digest = new SHAKEDigest(256);\n digest.update(temp, 0, params.CRYPTO_PUBLICKEYBYTES + params.MSG_BYTES);\n digest.doFinal(ephemeralsk, 0, params.SECRETKEY_B_BYTES);\n\n sidhCompressed.FormatPrivKey_B(ephemeralsk);\n\n // Encrypt\n sidhCompressed.EphemeralKeyGeneration_B_extended(ephemeralsk, ct, 1);\n sidhCompressed.EphemeralSecretAgreement_B(ephemeralsk, pk, jinvariant);\n\n digest.update(jinvariant, 0, params.FP2_ENCODED_BYTES);\n digest.doFinal(h, 0, params.MSG_BYTES);\n\n for (int i = 0; i < params.MSG_BYTES; i++)\n {\n ct[i + params.PARTIALLY_COMPRESSED_CHUNK_CT] = (byte) (temp[i] ^ h[i]);\n }\n\n // Generate shared secret ss <- H(m||ct)\n System.arraycopy(ct, 0, temp, params.MSG_BYTES, params.CRYPTO_CIPHERTEXTBYTES);\n\n digest.update(temp, 0, params.CRYPTO_CIPHERTEXTBYTES + params.MSG_BYTES);\n digest.doFinal(ss, 0, params.CRYPTO_BYTES);\n return 0;\n }\n else\n {\n byte[] ephemeralsk = new byte[params.SECRETKEY_A_BYTES];\n byte[] jinvariant = new byte[params.FP2_ENCODED_BYTES];\n byte[] h = new byte[params.MSG_BYTES];\n byte[] temp = new byte[params.CRYPTO_CIPHERTEXTBYTES + params.MSG_BYTES];\n\n // Generate ephemeralsk <- G(m||pk) mod oA\n byte[] tmp = new byte[params.MSG_BYTES];\n random.nextBytes(tmp);\n System.arraycopy(tmp, 0, temp, 0, params.MSG_BYTES);\n System.arraycopy(pk, 0, temp, params.MSG_BYTES, params.CRYPTO_PUBLICKEYBYTES);\n\n Xof digest = new SHAKEDigest(256);\n digest.update(temp, 0, params.CRYPTO_PUBLICKEYBYTES + params.MSG_BYTES);\n digest.doFinal(ephemeralsk, 0, params.SECRETKEY_A_BYTES);\n ephemeralsk[params.SECRETKEY_A_BYTES - 1] &= params.MASK_ALICE;\n\n // Encrypt\n sidh.EphemeralKeyGeneration_A(ephemeralsk, ct);\n sidh.EphemeralSecretAgreement_A(ephemeralsk, pk, jinvariant);\n\n digest.update(jinvariant, 0, params.FP2_ENCODED_BYTES);\n digest.doFinal(h, 0, params.MSG_BYTES);\n\n for (int i = 0; i < params.MSG_BYTES; i++)\n {\n ct[i + params.CRYPTO_PUBLICKEYBYTES] = (byte) (temp[i] ^ h[i]);\n }\n\n // Generate shared secret ss <- H(m||ct)\n System.arraycopy(ct, 0, temp, params.MSG_BYTES, params.CRYPTO_CIPHERTEXTBYTES);\n\n digest.update(temp, 0, params.CRYPTO_CIPHERTEXTBYTES + params.MSG_BYTES);\n digest.doFinal(ss, 0, params.CRYPTO_BYTES);\n\n return 0;\n }\n }", "title": "" }, { "docid": "0277ed8f7776f9d6f39b34c6faf210eb", "score": "0.51105857", "text": "public static String encryptAndDecryptXor(String input) {\n if (Config.getEncryption()) {\n char[] key = {'L', 'Y', 'N'};\n StringBuilder output = new StringBuilder();\n\n for (int i = 0; i < input.length(); i++) {\n output.append((char) (input.charAt(i) ^ key[i % key.length]));\n }\n\n return output.toString();\n } else {\n return input;\n }\n\n\n }", "title": "" }, { "docid": "442428b6b2594a0a22123068544277ce", "score": "0.50965405", "text": "@Override\n public int encrypt(int workingByte) {\n if (k == 8)\n {\n encryptor.encrypt (keystream);\n k = 0;\n }\n int returnVal = workingByte ^ keystream[k];\n keystream[k] = (byte) returnVal;\n k++;\n return returnVal;\n }", "title": "" }, { "docid": "7eb9c3ac2765375fabf01bbb5cf301e7", "score": "0.509516", "text": "public String encryptText(String text);", "title": "" }, { "docid": "6c2dbc445af3af07539285dbaff77489", "score": "0.5094942", "text": "private String encrypt(String s) {\r\n return PasswordHash.encrypt(s);\r\n }", "title": "" }, { "docid": "f203b838f8a4053e9b29193b7698b270", "score": "0.50944185", "text": "public static byte[] a(String str, Object obj, boolean z, int i, d.a aVar) throws Exception {\n HttpURLConnection httpURLConnection;\n Throwable th;\n String key = a.aK().getKey();\n InputStream inputStream = null;\n if (TextUtils.isEmpty(key) || !W(key) || X(key)) {\n HashMap hashMap = new HashMap();\n hashMap.put(\"aid\", h.aO().M(b(e.getContext(), true)));\n try {\n byte[] b = b(i.hn + \"/api/token\", hashMap, false, d.fd, d.a.HashMap);\n if (b == null) {\n return null;\n }\n String str2 = new String(b, \"UTF-8\");\n JSONObject jSONObject = new JSONObject(str2);\n jSONObject.put(\"aid\", b(e.getContext(), true));\n jSONObject.put(gP, (System.currentTimeMillis() + (jSONObject.getLong(\"expire\") * 1000)) - 10000);\n a.aK().setKey(jSONObject.toString());\n key = str2;\n } catch (Throwable th2) {\n throw new Exception(th2.getMessage());\n }\n }\n try {\n JSONObject jSONObject2 = new JSONObject(key);\n if (jSONObject2.has(\"secret\")) {\n if (jSONObject2.has(\"rnd\")) {\n String string = jSONObject2.getString(\"rnd\");\n String string2 = jSONObject2.getString(\"secret\");\n try {\n httpURLConnection = (HttpURLConnection) new URL(str).openConnection();\n try {\n httpURLConnection.setReadTimeout(d.fd);\n httpURLConnection.setConnectTimeout(d.fd);\n httpURLConnection.setRequestProperty(\"Accept-Encoding\", \"gzip\");\n httpURLConnection.setRequestProperty(\"User-Agent\", gS);\n httpURLConnection.setRequestProperty(\"rnd\", string);\n String b2 = b(e.getContext(), true);\n if (TextUtils.isEmpty(b2)) {\n Object a2 = j.a(d.fp, d.a.String);\n if (a2 == null || !(a2 instanceof String)) {\n if (httpURLConnection != null) {\n httpURLConnection.disconnect();\n }\n return null;\n }\n b2 = (String) a2;\n } else {\n j.a(d.fp, b2, d.a.String);\n }\n if (TextUtils.isEmpty(b2)) {\n if (httpURLConnection != null) {\n httpURLConnection.disconnect();\n }\n return null;\n }\n httpURLConnection.setRequestProperty(\"aid\", h.aO().M(b2));\n httpURLConnection.setDoOutput(true);\n httpURLConnection.setRequestMethod(\"POST\");\n if (aVar == d.a.JSONObject || aVar == d.a.JSONArray) {\n httpURLConnection.setRequestProperty(\"Content-Type\", \"application/json\");\n new StringBuilder(\"report params \").append(obj.toString());\n }\n String str3 = \"\";\n if (aVar == d.a.JSONArray) {\n str3 = ((JSONArray) obj).toString();\n } else if (aVar == d.a.JSONObject) {\n str3 = ((JSONObject) obj).toString();\n } else if (aVar == d.a.HashMap) {\n ArrayList arrayList = new ArrayList();\n for (Map.Entry entry : ((HashMap) obj).entrySet()) {\n arrayList.add(new Pair(entry.getKey(), entry.getValue()));\n }\n str3 = b((List<Pair<String, String>>) arrayList, false);\n } else if (aVar == d.a.ArrayList) {\n str3 = b((List<Pair<String, String>>) ((ArrayList) obj), false);\n }\n byte[] f = h.aO().f(str3, string2);\n OutputStream outputStream = httpURLConnection.getOutputStream();\n if (f != null) {\n outputStream.write(f);\n }\n outputStream.close();\n int responseCode = httpURLConnection.getResponseCode();\n if (responseCode == 200) {\n InputStream inputStream2 = httpURLConnection.getInputStream();\n byte[] b3 = b(a(inputStream2));\n if (inputStream2 != null) {\n inputStream2.close();\n }\n if (httpURLConnection != null) {\n httpURLConnection.disconnect();\n }\n return b3;\n } else if (responseCode == 301 || responseCode == 302 || responseCode == 303) {\n byte[] b4 = b(httpURLConnection.getHeaderField(\"Location\"), obj, false, d.fd, aVar);\n if (httpURLConnection != null) {\n httpURLConnection.disconnect();\n }\n return b4;\n } else {\n throw new HttpRetryException(new String(b(httpURLConnection.getErrorStream()), \"UTF-8\"), responseCode);\n }\n } catch (Throwable th3) {\n th = th3;\n if (0 != 0) {\n inputStream.close();\n }\n if (httpURLConnection != null) {\n httpURLConnection.disconnect();\n }\n throw th;\n }\n } catch (Throwable th4) {\n th = th4;\n httpURLConnection = null;\n if (0 != 0) {\n }\n if (httpURLConnection != null) {\n }\n throw th;\n }\n }\n }\n } catch (Throwable unused) {\n }\n return null;\n }", "title": "" }, { "docid": "63109edd9ac50a46e59c48eee7d213b8", "score": "0.50937796", "text": "private boolean smbencrypt(String strFile, String passString) {\n\t\ttry {\r\n\t\t\tSmbFile f = new SmbFile(strFile);\r\n\t\t\tSmbRandomAccessFile raf = new SmbRandomAccessFile(f, \"rw\");\r\n\t\t\t// long totalLen = raf.length();\r\n\r\n\t\t\t// if (totalLen < passString.length())\r\n\t\t\t// len = (int) totalLen;\r\n\r\n\t\t\t// FileChannel channel = raf.getChannel();\r\n\t\t\t// MappedByteBuffer buffer = channel.map(\r\n\t\t\t// FileChannel.MapMode.READ_WRITE, 0, f.length());\r\n\r\n\t\t\tbyte[] b = new byte[56];\r\n\t\t\traf.read(b, 0, 56);\r\n\r\n\t\t\tbyte tmp;\r\n\t\t\tfor (int i = 0; i < 56; ++i) {\r\n\t\t\t\tbyte rawByte = b[i];\r\n\t\t\t\tint j = i % 5;\r\n\t\t\t\tchar[] arrysStrings = passString.toCharArray();\r\n\t\t\t\ttmp = (byte) (rawByte ^ (int) arrysStrings[j]);\r\n\t\t\t\tb[i] = tmp;\r\n\t\t\t}\r\n\t\t\traf.write(b);\r\n\t\t\traf.close();\r\n\t\t\tLog.e(\"smb加密代码++++++++++++++++++++++++++++++++++++=============\",\r\n\t\t\t\t\t\"smb代码执行完毕\");\r\n\t\t\treturn true;\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8f34a6905a54ee888802b7063099d022", "score": "0.5093652", "text": "@Test\n public void encodeDecode() throws Exception {\n\n String password = \"Tojest moje hasełko.\";\n\n assertEquals(password, Crypto.decode(Crypto.encode(password)));\n }", "title": "" }, { "docid": "939be6427cb9f862fd7ac239c5897799", "score": "0.5086654", "text": "public String encrypt(int r,int s,int a,String message)\r\n {\n int ka=(int)Math.pow(a,r)%26;\r\n int kb=(int)Math.pow(a,s)%26;\r\n //Generation of Shared Secret Key\r\n int sk1=(int)Math.pow(ka,s)%26;\r\n int sk2=(int)Math.pow(kb,r)%26;\r\n String mes=message.toLowerCase();\r\n String answer=\"\";\r\n String template=\"abcdefghijklmnopqrstuvwxyz\";\r\n for(int i=0;i<message.length();i++)\r\n {\r\n if(Character.isLetter(mes.charAt(i)))\r\n {\r\n int xx=template.indexOf(mes.charAt(i));\r\n int crypt=(xx*sk1)%26;\r\n answer=answer+template.charAt(crypt);\r\n }\r\n else\r\n answer=answer+mes.charAt(i);\r\n }\r\n return answer;\r\n }", "title": "" }, { "docid": "314ed5b0f5557fcb92dbca27b607db78", "score": "0.50617456", "text": "public static boolean compare(String str1, String str2, String key) {\n\tInteger temp;\n\tString[] strs1 = str1.split(\",\");\n\tbyte[] block1 = new byte[strs1.length];\n\tString[] strs2 = str2.split(\",\");\n\tbyte[] block2 = new byte[strs2.length];\n\tString[] keys = key.split(\",\");\n\tbyte[] key1 = new byte[keys.length];\n\tfor (int i = 0; i < block1.length; i++) {\n\t if (!strs1[i].equals(\"\")) {\n\t\ttemp = Integer.parseInt(strs1[i]);\n\t\tblock1[i] = temp.byteValue();\n\t }\n\t}\n\tfor (int i = 0; i < block2.length; i++) {\n\t if (!strs2[i].equals(\"\")) {\n\t\ttemp = Integer.parseInt(strs2[i]);\n\t\tblock2[i] = temp.byteValue();\n\t }\n\t}\n\tfor (int i = 0; i < key1.length; i++) {\n\t if (!keys[i].equals(\"\")) {\n\t\ttemp = Integer.parseInt(keys[i]);\n\t\tkey1[i] = temp.byteValue();\n\t }\n\t}\n\tif (block1.length == block2.length) {\n\t Enc enc = new Enc();\n\t //byte[] key1 = \"this can be any size we want\".getBytes();\n\t byte[] Ci = Enc.xor(block1, block2);\n\t\n\t System.out.println(bytesToIntStr(block1) + \"\\n\" + bytesToIntStr(block2) + \"\\n\" + bytesToIntStr(Enc.getT(Enc.getNM(Ci), key1)) + \"\\n\" + bytesToIntStr(Ci) + \"\\n\");\n\t return (bytesToIntStr(Enc.getT(Enc.getNM(Ci), key1)).equals(bytesToIntStr(Ci)));\n\t} else {\n\t return false;\n\t}\n }", "title": "" }, { "docid": "0026ea5012785cb38bf264e2f356457a", "score": "0.50589156", "text": "private void encryptActionPerformed(java.awt.event.ActionEvent evt) {\ntry\r\n{\r\nstrToEncrypt=text1.getText(); secret=msg1.getText();\r\n setKey(secret);\r\nCipher cipher = Cipher.getInstance(\"AES/ECB/PKCS5Padding\"); \r\ncipher.init(Cipher.ENCRYPT_MODE, secretKey);\r\ntext2.setText(Base64.getEncoder().encodeToString(cipher.doFinal(strToEncrypt.getBytes(\"UTF-8\"))));\r\n}\r\ncatch (Exception e)\r\n{\r\ntext2.setText(\"Please fill up the right secret key\");\r\n}\r\n}", "title": "" }, { "docid": "230142b85fa53a19e3523e490790c179", "score": "0.5057211", "text": "public char encrypt(char character,int i,boolean bool){\n\t\tif(bool){\n\t\t\tcharacter = (char) (character ^ (14 + i % 37));\t//encryption method\n\t\t}\n\t\treturn character;\n\t}", "title": "" }, { "docid": "5038e7ffabc1f4a90480adb0cfcb4dc8", "score": "0.50521255", "text": "public String encrypt(String s){\n return super.encrypt(s);\n }", "title": "" }, { "docid": "f612dde57332c3dce64b279ae50abe6c", "score": "0.5045495", "text": "private static byte[] m48305a(byte[] bArr, String str, boolean z) throws NoSuchAlgorithmException, UnsupportedEncodingException {\n byte[] bArr2;\n int i = z ? 239 : NormalGiftView.ALPHA_255;\n if (bArr.length > i) {\n bArr = m48299a(zzd.PSN_ENCODE_SIZE_FAIL).mo40082g();\n }\n if (bArr.length < i) {\n byte[] bArr3 = new byte[(i - bArr.length)];\n new SecureRandom().nextBytes(bArr3);\n bArr2 = ByteBuffer.allocate(i + 1).put((byte) bArr.length).put(bArr).put(bArr3).array();\n } else {\n bArr2 = ByteBuffer.allocate(i + 1).put((byte) bArr.length).put(bArr).array();\n }\n if (z) {\n bArr2 = ByteBuffer.allocate(256).put(m48304a(bArr2)).put(bArr2).array();\n }\n byte[] bArr4 = new byte[256];\n for (bcz a : new bcx().f41629cN) {\n a.mo40515a(bArr2, bArr4);\n }\n if (str != null && str.length() > 0) {\n if (str.length() > 32) {\n str = str.substring(0, 32);\n }\n new awb(str.getBytes(\"UTF-8\")).mo40079a(bArr4);\n }\n return bArr4;\n }", "title": "" }, { "docid": "618abab463696aafc6936aeab8f76d13", "score": "0.50454086", "text": "abstract void setEncryptionAlgorithm(EncryptionAlgorithm encrypt);", "title": "" }, { "docid": "95e64ca5e5d8b053b198a4f2230f04c9", "score": "0.5021167", "text": "boolean hasIv();", "title": "" }, { "docid": "02a5a4481358e501d09ad188841f4cad", "score": "0.50207025", "text": "Cipher m17224OooO00o(String str) throws NoSuchAlgorithmException, NoSuchPaddingException, NoSuchProviderException;", "title": "" }, { "docid": "76bef235cc801ddb5585801568a0173d", "score": "0.5009244", "text": "private static byte[] encodeAsByteArray(byte[] data)\r\n {\r\n int i = 0, j = 0;\r\n int len = data.length;\r\n int delta = len % 3;\r\n int outlen = ((len + 2) / 3) * 4 + (len == 0 ? 2 : 0);\r\n byte[] output = new byte[outlen];\r\n byte a, b, c;\r\n\r\n for (int count = len / 3; count > 0; count--)\r\n {\r\n a = data[i++];\r\n b = data[i++];\r\n c = data[i++];\r\n output[j++] = (byte) (ENCRYPTION_TABLE[(a >>> 2) & 0x3F]);\r\n output[j++] = (byte) (ENCRYPTION_TABLE[((a << 4) & 0x30) + ((b >>> 4) & 0x0F)]);\r\n output[j++] = (byte) (ENCRYPTION_TABLE[((b << 2) & 0x3C) + ((c >>> 6) & 0x03)]);\r\n output[j++] = (byte) (ENCRYPTION_TABLE[c & 0x3F]);\r\n }\r\n\r\n if (delta == 1)\r\n {\r\n a = data[i++];\r\n output[j++] = (byte) (ENCRYPTION_TABLE[(a >>> 2) & 0x3F]);\r\n output[j++] = (byte) (ENCRYPTION_TABLE[((a << 4) & 0x30)]);\r\n output[j++] = (byte) '=';\r\n output[j++] = (byte) '=';\r\n }\r\n else if (delta == 2)\r\n {\r\n a = data[i++];\r\n b = data[i++];\r\n output[j++] = (byte) (ENCRYPTION_TABLE[(a >>> 2) & 0x3F]);\r\n output[j++] = (byte) (ENCRYPTION_TABLE[((a << 4) & 0x30) + ((b >>> 4) & 0x0F)]);\r\n output[j++] = (byte) (ENCRYPTION_TABLE[((b << 2) & 0x3C)]);\r\n output[j++] = (byte) '=';\r\n }\r\n\r\n if (j != outlen)\r\n {\r\n throw new InternalError(\"Bug: incorrect length calculated for base64 output\");\r\n }\r\n\r\n return output;\r\n }", "title": "" }, { "docid": "4aa36123f7cf838e04fa65e299b3dbfc", "score": "0.49944028", "text": "public interface SecurityInterface {\n \n /**\n * Methode permettant de crypter\n * @param text\n * @return \n */\n public String encryptText(String text);\n \n /**\n * Methode permettant de decrypter\n * @param text\n * @return \n */\n public String decryptText(String text);\n \n /**\n * \n * @param key\n * @return true si key doit Ítre encryte false sinon\n */\n public boolean include(String key);\n}", "title": "" }, { "docid": "cb2d2447f9b25183ca2f9ae9844872ee", "score": "0.49892178", "text": "private static boolean slowEquals(byte[] a, byte[] b)\n {\n int diff = a.length ^ b.length;\n for(int i = 0; i < a.length && i < b.length; i++)\n diff |= a[i] ^ b[i];\n return diff == 0;\n }", "title": "" }, { "docid": "7cc30e9e70a9185e4a8adaed4a061e6f", "score": "0.49805638", "text": "public static String encrypt(String plaintext, String key_in){\n\t\tString ciphertext = \"\";\n\t\t//System.out.print(\"Please enter the key:\\n\");\n\t\tArrayList<Integer> hash = new ArrayList();\n\t\t\n\t\thash(key_in,hash);\n\t\tint c = IV;\n\t\tint i,key;\n\t\tfor (i=0;i<plaintext.length();i++){\n\t\t\tkey = hash.get(i%hash.size());\n\t\t\t//System.out.println(i%hash.size());\n\t\t\t//System.out.println(Integer.toBinaryString(plaintext.charAt(i)));\n\t\t\t//System.out.printf(\"Before XORed: %d\\n\" ,(int)plaintext.charAt(i));p\n\t\t\t//System.out.printf(\"After XORed: %d\\n\",plaintext.charAt(i)^c);\n\t\t\tc = shift(plaintext.charAt(i)^c,key,1);\n\t\t\t//System.out.printf(\"After shifting: %d\\n\",c);\n\t\t\t//System.out.println(c_string(c));\n\t\t\tciphertext += c_string(c);\n\t\t}\n\t\n\t\treturn c_string(IV)+ciphertext;\n\t}", "title": "" }, { "docid": "16158e8028cb6ee4962d5b2d0e00ea91", "score": "0.49790868", "text": "private String encryptString(String text) {\n MessageDigest msgDig;\n String encrypted = null;\n\n try {\n msgDig = MessageDigest.getInstance(\"SHA-256\");\n msgDig.update(text.getBytes());\n encrypted = new String(msgDig.digest());\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n\n return encrypted;\n }", "title": "" }, { "docid": "28fd271d73f961bcf3a63258367965cf", "score": "0.4978697", "text": "public byte [] encode(String S)\r\n\t{\r\n\t\tSystem.out.println(\"Original Message : \" + S);\r\n\t\t//Convert string to byte array\r\n\t\tbyte[] array = S.getBytes();\r\n\t\t//Encode bytes\r\n\t\tSystem.out.println(\"Array of Bytes : \" + Arrays.toString(array));\r\n\t\tencrypt = new byte[array.length];\r\n\r\n\t\t//Look up each number in Array1\r\n\t\t//See which number in Array2 matches that number\r\n\t\t//Output that value\r\n\t\tfor(int i = 0; i < array.length; i++)\r\n\t\t{\r\n\t\t\tfor(int j = 0; j < temp.length; j++)\r\n\t\t\t{\r\n\t\t\t\tif(array[i] == temp[j])\r\n\t\t\t\t{\r\n\t\t\t\t\tencrypt[i] = key[j];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Encrypted Array of Bytes : \" + Arrays.toString(encrypt));\r\n\t\treturn encrypt;\r\n\t}", "title": "" }, { "docid": "aca02aa1cd35129c14dd6d7af471f9dc", "score": "0.4974696", "text": "public static String encrypt(final String text, String key) \n\t {\n\t\t return new String(org.apache.commons.codec.binary.Base64.encodeBase64String(xor(text.getBytes(), key)).getBytes());\n\t }", "title": "" }, { "docid": "b40e8d05875e0067a5715fd711067c75", "score": "0.49719402", "text": "private static boolean slowEquals(byte[] a, byte[] b) {\n int diff = a.length ^ b.length;\n for (int i = 0; i < a.length && i < b.length; i++) {\n diff |= a[i] ^ b[i];\n }\n return diff == 0;\n }", "title": "" }, { "docid": "4a641074af5239418ad6d661487f6356", "score": "0.4967715", "text": "String encryptor (String data, int shifter);", "title": "" }, { "docid": "3fe70a3563002a6db800f7249811cad5", "score": "0.49671388", "text": "private String encrypt(String password) {\n\t\tString encPass = new String();\n\t\t\n\t\ttry {\n\t\t\tbyte[] utf8 = password.getBytes(\"UTF8\");\n\t\t\tbyte[] enc = ecipher.doFinal(utf8);\n\t\t\t\n\t\t\t// Encode to base64\n\t\t\tenc = BASE64EncoderStream.encode(enc);\n\t\t\t\n\t\t\tencPass = new String(enc);\n\t\t}catch(Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t\treturn encPass;\n\t}", "title": "" }, { "docid": "67c00977e5e1b9e7a4e1da4a577d448b", "score": "0.49662456", "text": "private String encrypt(byte[] byteArrayToEncrypt) {\n\n\t\ttry {\n\t\t\tCipher cipher = Cipher.getInstance(\"AES\");\n\t\t\tcipher.init(Cipher.ENCRYPT_MODE, secretKey);\n\t\t\treturn Base64.getEncoder().encodeToString(cipher.doFinal(byteArrayToEncrypt));\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error while encrypting: \" + e.toString());\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "0a3a8d57e98be26c443add48e729d907", "score": "0.49657458", "text": "public void testCaesar() {\n int key1 = 21;\n int key2 = 8;\n String message = \"At noon be in the conference room with your hat on for a surprise party. YELL LOUD!\";\n message = \"Can you imagine life WITHOUT the internet AND computers in your pocket?\";\n //key1 = 15;\n String encrypted = encrypt(message, key1);\n System.out.println(\"encrypted:\" + encrypted);\n String decrypted = encrypt(encrypted, 26-key1);\n System.out.println(decrypted);\n String encryptTwoKeys = encryptTwoKeys(message, key1, key2);\n System.out.println(encryptTwoKeys);\n }", "title": "" }, { "docid": "f9a758fc027690d3f745ead42b565526", "score": "0.49591884", "text": "@Override\n public void onClick(View arg0) {\n RSA rsa = new RSA(1024);\n\n String text1 = texttoencrypt.getText().toString();\n System.out.println(\"Plaintext: \" + text1);\n\n BigInteger plaintext = new BigInteger(text1.getBytes());\n BigInteger ciphertext = rsa.encrypt(plaintext);\n //System.out.println(\"Ciphertext: \" + ciphertext);\n Toast.makeText(getBaseContext(), \"Ciphertext: \" + ciphertext, Toast.LENGTH_SHORT).show();\n Intent intent = new Intent(MainActivity.this, EncActivity.class);\n intent.putExtra(\"Encrypt\", ciphertext.toString());\n startActivity(intent);\n\n }", "title": "" }, { "docid": "4d749a03fb49e3d3a0cdcde6cb5098fa", "score": "0.4951717", "text": "boolean isSecure();", "title": "" }, { "docid": "6db11e9ac4bcab7f8f374d093847e981", "score": "0.49467582", "text": "public String encriptar(String texto) {\n\t\tString resultado = \"\";\n\t\ttry {\n\t\t\tCipher cipher = Cipher.getInstance(cI);\n\t\t\tSecretKeySpec skeySpec = new SecretKeySpec(key.getBytes(), alg);\n\t\t\tIvParameterSpec ivParameterSpec = new IvParameterSpec(iv.getBytes());\n\t\t\tcipher.init(Cipher.ENCRYPT_MODE, skeySpec, ivParameterSpec);\n\t\t\tbyte[] encrypted = cipher.doFinal(texto.getBytes());\n\t\t\tresultado = new String(Base64.encodeBase64(encrypted));\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 resultado;\n\t}", "title": "" }, { "docid": "24253f8ff9c43462def68df1a7c1782c", "score": "0.49464393", "text": "@Test\n public void testCBCModeCompliance() {\n AES crypt = new AES();\n int[][] initKey = {\n {0x2b, 0x7e, 0x15, 0x16},\n {0x28, 0xae, 0xd2, 0xa6},\n {0xab, 0xf7, 0x15, 0x88},\n {0x09, 0xcf, 0x4f, 0x3c}};\n int[][] iv = {\n {0x00, 0x01, 0x02, 0x03},\n {0x04, 0x05, 0x06, 0x07},\n {0x08, 0x09, 0x0a, 0x0b},\n {0x0c, 0x0d, 0x0e, 0x0f}};\n int[][] plainTextOne = {\n {0x6b, 0xc1, 0xbe, 0xe2},\n {0x2e, 0x40, 0x9f, 0x96},\n {0xe9, 0x3d, 0x7e, 0x11},\n {0x73, 0x93, 0x17, 0x2a}};\n int[][] outputOne = {\n {0x76, 0x49, 0xab, 0xac},\n {0x81, 0x19, 0xb2, 0x46},\n {0xce, 0xe9, 0x8e, 0x9b},\n {0x12, 0xe9, 0x19, 0x7d}};\n int[][] plainTextTwo = {\n {0xae, 0x2d, 0x8a, 0x57},\n {0x1e, 0x03, 0xac, 0x9c},\n {0x9e, 0xb7, 0x6f, 0xac},\n {0x45, 0xaf, 0x8e, 0x51}};\n int[][] outputTwo = {\n {0x50, 0x86, 0xcb, 0x9b},\n {0x50, 0x72, 0x19, 0xee},\n {0x95, 0xdb, 0x11, 0x3a},\n {0x91, 0x76, 0x78, 0xb2}};\n\n crypt.setState(rowsToColumns(plainTextOne));\n crypt.initializeRoundKeys(initKey);\n \n crypt.keyExpansion();\n crypt.setInitializationVector(rowsToColumns(iv));\n\n crypt.xorVectorWithState(); // xor the IV, or the previous ciphertext block with the state\n crypt.cipher();\n\n Assert.assertArrayEquals(crypt.getStateArray(), rowsToColumns(outputOne));\n\n crypt.setInitializationVector(crypt.getStateArray());\n crypt.setState(rowsToColumns(plainTextTwo));\n crypt.xorVectorWithState();\n crypt.cipher();\n\n Assert.assertArrayEquals(crypt.getStateArray(), rowsToColumns(outputTwo));\n }", "title": "" }, { "docid": "c87d88423d7b8e928a76bceb1ca8ad4f", "score": "0.49428764", "text": "public void doDecryption(String ciphertxt, boolean isFastDecryption){\r\n\tloadFiles(ciphertxt, outtxt);\r\n String temp_str = \" \";\r\n\r\n try {\r\n //read each line of plaintext and encode it with the keys provided\r\n while((temp_str = bufreader.readLine()) != null){\r\n\r\n \t BigInteger ciphertext = new BigInteger(temp_str);\r\n \t BigInteger M;\r\n\r\n \t if(isFastDecryption)\r\n \t M = fastdecryptText(ciphertext, publickey_d, publickey_p, publickey_q);\r\n \t else\r\n \t M = decryptText(ciphertext, publickey_d, publickey_p.multiply(publickey_q));\r\n\r\n \t M = removePadding(M);\r\n writer.write(M.toByteArray());\r\n }\r\n bufreader.close();\r\n writer.close(); //close output file\r\n }\r\n catch(IOException ex) {\r\n ex.printStackTrace();\r\n }\r\n}", "title": "" }, { "docid": "8b57bb62331cfb6c90917ab0cf9614ef", "score": "0.49424422", "text": "public static String encryptDecryptXOR(String rawString) {\n if (Config.getEncryption()) {\n\n // The key is predefined and hidden in code\n // TODO: Create a more complex code and store it somewhere better FIX\n char[] key = Config.getKEY().toCharArray();\n\n // Stringbuilder enables you to play around with strings and make useful stuff\n StringBuilder thisIsEncrypted = new StringBuilder();\n\n // TODO: This is where the magic of XOR is happening. Are you able to explain what is going on?\n /**\n *\n\n -\tDet er først år rawstring ikke indeholder flere karaktere at for-loopet forstætter med at køre\n -\tDer sker en omdannelse af karakteren, der er placeret på i’ ets plads i charArray.\n - Den omdannes til en binære værdi ved at bruge følgende ”^”.\n -\tSom det kan ses i koden bruges XOR vil at lægge begge binære værdier sammen\n - og derfor sker der det at en ny binær værdi, som bliver omdannet til en char.\n - Det er i ThisIsEncrypted at denne char værdi tilføjes og den tilføjes ved at anvende følgende : thisIsEncrypted.append\n -\t”%” er brugt til at starte charArray igen i tilfælde af at man er nået til endelsen af charArray.\n - Dog starter charArray kun igen hvis rawString længden er større end CharArray keys længde.\n\n\n\n\n */\n for (int i = 0; i < rawString.length(); i++) {\n thisIsEncrypted.append((char) (rawString.charAt(i) ^ key[i % key.length]));\n }\n\n // We return the encrypted string\n return thisIsEncrypted.toString();\n\n } else {\n // We return without having done anything\n return rawString;\n }\n }", "title": "" }, { "docid": "d84d6e93c6cf602d0c059cbe7484169f", "score": "0.49415645", "text": "public String encrypt(String message, String key) {\n try{\n byte[] _message = message.getBytes(\"UTF-16LE\");\n byte [] _key = key.getBytes(\"UTF-16LE\");\n\n byte[] encData = encryptorAES.encrypt(_key,_message);\n String stringEnData = Base64.encodeToString(encData,Base64.DEFAULT);\n return stringEnData;\n }catch (Exception e){\n return null;\n }\n }", "title": "" }, { "docid": "af0cadc70fb173124e77f30b74e6d50d", "score": "0.49359414", "text": "public CryptographerAES(String key){\r\n keyValue = key.getBytes();\r\n }", "title": "" }, { "docid": "c1065256b3c9fe36ffeac1e0ded84b32", "score": "0.49359226", "text": "public interface CryptoService {\n\n public byte[] encryptTicket(byte[] data) throws Exception;\n public byte[] encryptDatabaseData(byte[] data) throws Exception;\n public byte[] encrypt(byte[] data, String key) throws Exception;\n public byte[] encrypt(byte[] data, SecretKey key, byte[] ivParameterSpec) throws Exception;\n public byte[] decryptTicket(byte[] data) throws Exception;\n public byte[] decryptDatabaseData(byte[] data) throws Exception;\n public byte[] decrypt(byte[] data, String key) throws Exception;\n public byte[] decrypt(byte[] data, SecretKey key, byte[] ivParameterSpec) throws Exception;\n public SecretKey generateKey() throws Exception;\n public byte[] generateIv();\n}", "title": "" }, { "docid": "7a859363ccd993f7287655b3a8980ac2", "score": "0.49310714", "text": "private static BitSet encrypt(BitSet plainBits, Keygen keygen) {\n\n // Начальная перестановка\n BitSet initialPermutedBits = permuteBits(plainBits, Utils.IP);\n\n // Делим начальный набор битов на две половины\n BitSet rightBits = initialPermutedBits.get(0, 32);\n BitSet leftBits = initialPermutedBits.get(32, 64);\n\n for (int i = 0; i < 16; i++) {\n leftBits.xor(f(rightBits, keygen.getKey(i)));\n BitSet rightBits2 = BitSet.valueOf(leftBits.toByteArray());\n BitSet leftBits2 = BitSet.valueOf(rightBits.toByteArray());\n rightBits = rightBits2;\n leftBits = leftBits2;\n }\n\n BitSet result = combineBitSets(leftBits, rightBits);\n\n return permuteBits(result, Utils.IIP);\n }", "title": "" }, { "docid": "e0d7b9cdb4cc7b2053557069aad9b2d6", "score": "0.49111137", "text": "Base64SecretKey secretKeyToBase64(SecretKey key);", "title": "" }, { "docid": "3dfeef9c1ba31a66892f416ab893c29b", "score": "0.49067375", "text": "private static byte[] encrypt(byte[] plaintext, byte[] key, byte[] guessedIv) throws Exception {\n IvParameterSpec ivspec = new IvParameterSpec(guessedIv);\n SecretKeySpec secretKeySpec = new SecretKeySpec(key, \"AES\");\n\n Cipher cipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\n cipher.init(ENCRYPT_MODE, secretKeySpec, ivspec);\n return cipher.doFinal(plaintext);\n }", "title": "" }, { "docid": "d533710b1110f4328aa3eb84262d30c1", "score": "0.4904002", "text": "public String encode(String password, String text) throws EnCryptoException {\r\n if (password == null || password.length() == 0) {\r\n throw new EnCryptoException(\"Please give Password\");\r\n }\r\n if (password.length() < 16) {\r\n throw new EnCryptoException(\"Please a 16 length Password\");\r\n }\r\n\r\n if (text == null || text.length() == 0) {\r\n throw new EnCryptoException(\"Sorry you must give a text\");\r\n }\r\n\r\n try {\r\n SecretKeySpec skeySpec = getKey(password);\r\n byte[] clearText = text.getBytes(\"UTF8\");\r\n final byte[] iv = ivStr.getBytes(\"UTF8\");\r\n IvParameterSpec ivParameterSpec = new IvParameterSpec(iv);\r\n Cipher cipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\r\n cipher.init(Cipher.ENCRYPT_MODE, skeySpec, ivParameterSpec);\r\n String encrypedValue = Base64.encodeToString(cipher.doFinal(clearText), Base64.NO_WRAP);\r\n return encrypedValue;\r\n } catch (InvalidKeyException e) {\r\n e.printStackTrace();\r\n } catch (UnsupportedEncodingException e) {\r\n e.printStackTrace();\r\n } catch (NoSuchAlgorithmException e) {\r\n e.printStackTrace();\r\n } catch (BadPaddingException e) {\r\n e.printStackTrace();\r\n } catch (NoSuchPaddingException e) {\r\n e.printStackTrace();\r\n } catch (IllegalBlockSizeException e) {\r\n e.printStackTrace();\r\n } catch (InvalidAlgorithmParameterException e) {\r\n e.printStackTrace();\r\n }\r\n throw new EnCryptoException(\"加密失败\");\r\n }", "title": "" }, { "docid": "4e3daf5f925620bcf60e50cd970a0b0c", "score": "0.49035713", "text": "private static boolean slowEquals(byte[] a, byte[] b) {\n\t\tint diff = a.length ^ b.length; // Make sure hashes are same length.\n\t\tfor (int i = 0; i < a.length && i < b.length; i++) {\n\t\t\tdiff |= a[i] ^ b[i]; // XOR between bytes at all positions in hash.\n\t\t}\n\n\t\treturn diff == 0; // Is there a difference in the hashes?\n\t}", "title": "" }, { "docid": "b3c07bc90e2d26b68bbffd7de39d2874", "score": "0.4895691", "text": "public static void main(String[] args) throws Exception {\n\n String texto = \"Texto sin password\";\n\n SecretKey sk = Claus.keygenKeyGeneration(192);\n byte[] cifrado = Claus.encryptData(sk, texto.getBytes());\n\n System.out.println(cifrado);\n System.out.println(\"El algoritmo usado es: \" + sk.getAlgorithm());\n System.out.println(\"La longitud del codigo encriptado es: \" + sk.getEncoded().length);\n System.out.println(\"El formato es: \" + sk.getFormat());\n\n byte[] descifrado = Claus.decryptData(sk, cifrado);\n\n System.out.println(new String(descifrado));\n\n //Ejercicio 1 parte 2\n\n String textoPassword = \"Texto con password\";\n\n\n sk = ClausPassword.passwordKeyGeneration(\"tripaloski\",192);\n\n try {\n\n byte[] cifradoPassword = ClausPassword.encryptData(sk, textoPassword.getBytes());\n\n byte[] descifradoPassword = Claus.decryptData(sk, cifradoPassword);\n\n System.out.println(new String(descifradoPassword ));\n\n\n }catch (BadPaddingException b){\n System.out.println();\n }\n\n\n\n // Ejercicio 2\n\n Path textAmagat = Paths.get(\"/home/dam2a/Baixades/textamagat\");\n byte[] textenbytes = Files.readAllBytes(textAmagat);\n\n Path claus = Paths.get(\"/home/dam2a/Baixades/ClausA4.txt\");\n List<String> clausenstring = Files.readAllLines(claus);\n\n int i = 0;\n\n boolean acierto = false;\n\n while (!acierto){\n\n try {\n if(clausenstring.size() < i) return;\n SecretKey cp = ClausPassword.passwordKeyGeneration(clausenstring.get(i),128);\n ClausPassword.decryptData(cp,textenbytes);\n acierto = true;\n System.out.println(clausenstring.get(i));\n System.out.println(new String(ClausPassword.decryptData(cp,textenbytes)));\n }catch (Exception ex){\n System.out.println(\"Contraseña incorrecta\");\n i++;\n }\n\n\n\n }\n\n\n }", "title": "" }, { "docid": "158501e58535006a3538c590f3a5f28f", "score": "0.48950607", "text": "public String encriptaSenha(String senha){\n MessageDigest md = null;\n try {\n md = MessageDigest.getInstance(\"SHA-256\");\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n if (md != null) {\n md.update(senha.getBytes());\n return new sun.misc.BASE64Encoder().encode(md.digest());\n }\n return senha;\n }", "title": "" }, { "docid": "c7897332d345a4ad4ff49c2e7af984c0", "score": "0.4891464", "text": "protected void coreCrypt(byte[] in, int inOffset, byte[] out, int outOffset)\r\n {\r\n if(decrypt)\r\n blockDecrypt(in, inOffset, out, outOffset);\r\n else\r\n blockEncrypt(in, inOffset, out, outOffset);\r\n }", "title": "" }, { "docid": "8f3860d7de07433d056ebaede9616579", "score": "0.48862785", "text": "private void encryptBlock(byte[] r1, int r2, byte[] r3, int r4) {\n /*\n // Can't load method instructions: Load method exception: null in method: com.android.org.bouncycastle.crypto.engines.BlowfishEngine.encryptBlock(byte[], int, byte[], int):void, dex: in method: com.android.org.bouncycastle.crypto.engines.BlowfishEngine.encryptBlock(byte[], int, byte[], int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.crypto.engines.BlowfishEngine.encryptBlock(byte[], int, byte[], int):void\");\n }", "title": "" }, { "docid": "3b87fe44b16de657deee6cfafa5bf3ea", "score": "0.4881841", "text": "public String encyrpt(){\n\t\t\n\t\t// Variable Declaration\n\t\tSecretKeyFactory skf = null;\n\t\tPBEKeySpec spec = null;\n\t\tSecretKey secretKey = null;\n\t\tSecretKeySpec key = null;\n\t\tCipher cipher =null;\n\t\tbyte[] encryptedText = null;\n\t\t\n\t\t//generate salt portion of key\n\t\tbyte[] saltBytes = getSaltBytes();\n\t\t\n\t\t// Set the SecretKeyFactory algorithm using the private class setting.\n\t\ttry {\n\t\t\tskf = SecretKeyFactory.getInstance(this.secretKeyFactoryAlgorithm);\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tthis.StatusMessage = \"Secret Key Factory Algorithm does not exist: \" + this.secretKeyFactoryAlgorithm;\n\t\t\tthis.StatusCode = 100;\n\t\t}\n\t\t\n\t\tspec = new PBEKeySpec(this.passphrase.toCharArray(), saltBytes, this.pwdIterations, this.keySize);\n\t\ttry {\n\t\t\tsecretKey = skf.generateSecret(spec);\n\t\t} catch (InvalidKeySpecException e) {\n\t\t\tthis.StatusMessage = \"Invalid Key Specification\";\n\t\t\tthis.StatusCode = 101;\n\t\t}\n\t\t\n\t\tkey = new SecretKeySpec(secretKey.getEncoded(), keyAlgorithm);\n\t\t\n\t\t//AES initialization\n\t\t\n\t\ttry {\n\t\t\tcipher = Cipher.getInstance(this.encryptAlgorithm);\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tthis.StatusMessage = \"No Such Algorithm: \" + this.encryptAlgorithm;\n\t\t\tthis.StatusCode = 102;\n\t\t} catch (NoSuchPaddingException e) {\n\t\t\tthis.StatusMessage = \"No Such Padding\" + this.encryptAlgorithm;\n\t\t\tthis.StatusCode = 103;\n\t\t}\n\t\ttry {\n\t\t\tcipher.init(Cipher.ENCRYPT_MODE, key);\n\t\t} catch (InvalidKeyException e) {\n\t\t\tthis.StatusMessage = \"Invalid Key\";\n\t\t\tthis.StatusCode = 104;\n\t\t}\n\t\t\n\t\t//generate IV\n\t\ttry {\n\t\t\tthis.ivBytes = cipher.getParameters().getParameterSpec(IvParameterSpec.class).getIV();\n\t\t} catch (InvalidParameterSpecException e) {\n\t\t\tthis.StatusMessage = \"Invalid IV Parameter Exception\";\n\t\t\tthis.StatusCode = 105;\n\t\t}\n\t\tthis.IV64 = new Base64().encodeAsString(this.ivBytes); \n\t\t\n\t\ttry {\n\t\t\tencryptedText = cipher.doFinal(this.ClearDataText.getBytes(\"UTF-8\"));\n\t\t} catch (IllegalBlockSizeException e) {\n\t\t\tthis.StatusMessage = \"Illegal Block Size Exception\";\n\t\t\tthis.StatusCode = 106;\n\t\t} catch (BadPaddingException e) {\n\t\t\tthis.StatusMessage = \"Bad Padding Exception\";\n\t\t\tthis.StatusCode = 107;\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\tthis.StatusMessage = \"Unsupported Encoding\";\n\t\t\tthis.StatusCode = 108;\n\t\t}\n\t\t\n\t\tthis.encryptedData64 = new Base64().encodeAsString(encryptedText);\n\t\treturn this.encryptedData64; \n\t}", "title": "" }, { "docid": "f9df0c5762d297dbd662cc38278de778", "score": "0.48798257", "text": "@PostConstruct\n private void encodeSecret() {\n byte[] values = new byte[124];\n //remplissage du tableau avec bytes généré aléatoirement via un algorithme sécurisé(imprédictible)\n new SecureRandom().nextBytes(values);\n //on ajoute en base64 les bytes qui nous ...\n secret = Base64.getEncoder().encodeToString(values);\n\n }", "title": "" }, { "docid": "430e5261c9088e3f942062a418734373", "score": "0.4877596", "text": "public static String encrypt(String text ) \n {\n String encryptedText = null;\n try\n {\n byte[] cipherText = encrypt(text.getBytes(\"ISO-8859-1\"));\n encryptedText = encodeBASE64(cipherText);\n }\n catch (Exception e){\n SipLog.getLogger().error(e);\n }\n return encryptedText;\n }", "title": "" }, { "docid": "b28618c488aef81a336664b26faef953", "score": "0.48665786", "text": "public interface ISettingEncryption {\n String encrypt(String str);\n String decrypt(String str);\n}", "title": "" }, { "docid": "e072b29e922cd5d5f695e9525e9fe8c9", "score": "0.48652205", "text": "public static String encUserFile() {\n // judge available\n if(!isUserInfoSet())\n return \"\"; // empty, not null\n\n String result = \"\";\n\n // username, password enc to base64\n char[] temp_username = LightBase64.EncodeBase64(username).toCharArray();\n char[] temp_password = LightBase64.EncodeBase64(password).toCharArray();\n\n // cap to uncap, uncap to cap\n for(int i = 0; i < temp_username.length; i ++) {\n if('a' <= temp_username[i] && temp_username[i] <= 'z' )\n temp_username[i] -= ('a' - 'A');\n else if('A' <= temp_username[i] && temp_username[i] <= 'Z')\n temp_username[i] += ('a' - 'A');\n }\n for(int i = 0; i < temp_password.length; i ++) {\n if('a' <= temp_password[i] && temp_password[i] <= 'z' )\n temp_password[i] -= ('a' - 'A');\n else if('A' <= temp_password[i] && temp_password[i] <= 'Z')\n temp_password[i] += ('a' - 'A');\n }\n\n // twice base64, exchange char position, beg to end, end to beg\n int equal_pos;\n temp_username = LightBase64.EncodeBase64(new String(temp_username)).toCharArray();\n result = new String(temp_username);\n equal_pos = result.indexOf('=');\n for(int i = 0, j = equal_pos == -1 ? temp_username.length - 1 : equal_pos - 1; i < j; i ++, j --) {\n char temp = temp_username[i];\n temp_username[i] = temp_username[j];\n temp_username[j] = temp;\n }\n\n temp_password = LightBase64.EncodeBase64(new String(temp_password)).toCharArray();\n result = new String(temp_password);\n equal_pos = result.indexOf('=');\n for(int i = 0, j = equal_pos == -1 ? temp_password.length - 1 : equal_pos - 1; i < j; i ++, j --) {\n char temp = temp_password[i];\n temp_password[i] = temp_password[j];\n temp_password[j] = temp;\n }\n\n // three times base64\n result = LightBase64.EncodeBase64(new String(temp_username)) + \"|\" + LightBase64.EncodeBase64(new String(temp_password));\n\n // return value\n return result;\n }", "title": "" }, { "docid": "2e3c0c0aea3de80e82ee0236c9a9b26e", "score": "0.4863752", "text": "private static void testMode(){\n\t\t\n\t\t\n\t\tString txt = \"00112233445566778899aabbccddeeff11\", key = \"000102030405060708090a0b0c0d0e0f\", encryptedTxt = \"\";\n\t\t//Test Using block size of 128\n\t\tSystem.out.println(\"\\nPlaintext :\\t\" + txt);\n\t\tSystem.out.println(\"Key :\\t\\t\" + key);\n\t\tAESAlgo aes = new AESAlgo(128);\t\n\n\t\tSystem.out.println(\"AES-128 plaintext :\\t\\t\" + txt);\n\t\tencryptedTxt = aes.Encrypt(txt, key);\n\t\tSystem.out.println(\"AES-128 Encrypted text :\\t\" + encryptedTxt);\n\t\ttxt = aes.Decrypt(encryptedTxt, key);\n\t\tSystem.out.println(\"AES-128 Decrypted text :\\t\" + txt);\n\t\t\n\t\t//Test Using block size of 192;\t\t\n\t\tSystem.out.println(\"\\nPlain text :\" + txt);\n\t\tSystem.out.println(\"Key : \" + key);\n\t\taes = new AESAlgo(192); key = key + \"1011121314151617\";\n\t\t\n\t\tSystem.out.println(\"AES-192 plaintext :\\t\\t\" + txt);\n\t\tencryptedTxt = aes.Encrypt(txt, key);\n\t\tSystem.out.println(\"AES-192 Encrypted text :\\t\" + encryptedTxt);\n\t\ttxt = aes.Decrypt(encryptedTxt, key);\n\t\tSystem.out.println(\"AES-192 Decrypted text :\\t\" + txt);\n\t\t\n\t\t//Test Using block size of 256;\n\t\tSystem.out.println(\"\\nPlain text : \" + txt);\n\t\tSystem.out.println(\"Key : \" + key);\n\t\taes = new AESAlgo(256); key = key + \"18191a1b1c1d1e1f\";\n\t\t\n\t\tSystem.out.println(\"AES-256 plaintext :\\t\\t\" + txt);\n\t\tencryptedTxt = aes.Encrypt(txt, key);\n\t\tSystem.out.println(\"AES-256 Encrypted text :\\t\" + encryptedTxt);\n\t\ttxt = aes.Decrypt(encryptedTxt, key);\n\t\tSystem.out.println(\"AES-256 Decrypted text :\\t\" + txt);\n\n\t}", "title": "" }, { "docid": "7e17247cdce85daf08daa8367457a25b", "score": "0.4859609", "text": "public String mo15184a(byte[] bArr, boolean z) {\n return Base64.encodeToString(bArr, z ? 11 : 2);\n }", "title": "" }, { "docid": "5295ba4e61affc1d7db9f437799f80ce", "score": "0.4852143", "text": "private static byte[] encryptByKey(byte[] data, String encodedKey, boolean usePrivateKey) throws Exception{\n\t\tKey key = decodeEncodedKey(encodedKey, usePrivateKey);\n\n\t\tCipher cipher = Cipher.getInstance(KEY_ALGORITHM);\n\t\tcipher.init(Cipher.ENCRYPT_MODE, key);\n\n\t\treturn cipher.doFinal(data);\n\t}", "title": "" }, { "docid": "a644edb6da483a92310046c4696c8b09", "score": "0.48437124", "text": "public String mEncrypt(String userPassword, String key) {\n try {\n Key clef = new SecretKeySpec(key.getBytes(\"ISO-8859-2\"), \"Blowfish\");\n Cipher cipher = Cipher.getInstance(\"Blowfish\");\n cipher.init(Cipher.ENCRYPT_MODE, clef);\n return new String(cipher.doFinal(userPassword.getBytes()));\n } catch (Exception e) {\n return null;\n }\n }", "title": "" }, { "docid": "7145fff532ceab4790ee2d2c71ef381b", "score": "0.48420033", "text": "public interface Crypto\n{\n /**\n * Decrypts the cipher text and returns the result.\n *\n * @param ciphertext base64 encoded encrypted data\n * @return decrypted data\n * @throws CryptoException when the ciphertext cannot be decrypted with the\n * key or on decryption error.\n */\n public String decrypt(String ciphertext) throws CryptoException;\n\n /**\n * Encrypts the plain text and returns the result.\n *\n * @param plaintext data to be encrypted\n * @return base64 encoded encrypted data\n * @throws CryptoException on encryption error\n */\n public String encrypt(String plaintext) throws CryptoException;\n}", "title": "" }, { "docid": "64557cc200f411df35449ebc7b359970", "score": "0.48381507", "text": "protected abstract boolean m587b(C0167f c0167f);", "title": "" }, { "docid": "82e66396666f6f4aa2e378176b1261c7", "score": "0.4829843", "text": "@Override\n protected void encode(ChannelHandlerContext ctx, MessageBuilder msg, ByteBuf out) throws Exception {\n ByteBuf internal = msg.buffer();\n int value = internal.getByte(0) + encryptor.getKey();\n internal.setByte(0, value);\n out.writeBytes(internal);\n }", "title": "" }, { "docid": "1195d6bf0c48527c155f03a31425d3c7", "score": "0.48263612", "text": "void encryptSegment(\n ByteBuffer part1,\n ByteBuffer part2,\n boolean isLastSegment,\n ByteBuffer ciphertext)\n throws GeneralSecurityException;", "title": "" }, { "docid": "2af0269ba0c12a28d96512925d9260cb", "score": "0.4824482", "text": "public static String encryptTwo(String message, int rotation) {\nStringBuilder SB = new StringBuilder (message);\n for (int i=0; i<message.length();i++){\n SB.insert(i,letterOperation(message.charAt(i),rotation));\n \n }\n return SB.substring(0,message.length());\n}", "title": "" } ]
fe21192459cfbdeb6e6eed3eae6cce91
Encodes a tree to a single string.
[ { "docid": "96540a620e08423e3845280a8b2b9acc", "score": "0.61056274", "text": "public String serialize(TreeNode root) {\n StringBuilder preOrderStr = new StringBuilder(\"\");\n Deque<TreeNode> stack = new LinkedList<TreeNode>();\n TreeNode dummy = new TreeNode(0);\n dummy.right = root;\n stack.add(dummy);\n while(!stack.isEmpty()){\n TreeNode node = stack.pollLast();\n if(node.right == null){\n preOrderStr.append(\"#_\");\n }else{\n node = node.right;\n while(node != null){\n stack.add(node);\n preOrderStr.append(Integer.toString(node.val) + \"_\");\n node = node.left;\n }\n preOrderStr.append(\"#_\");\n }\n }\n return preOrderStr.toString();\n }", "title": "" } ]
[ { "docid": "e3a4cbdf30e6ba7e61f446fffd68b12a", "score": "0.7120963", "text": "public String serialize(TreeNode root);", "title": "" }, { "docid": "28240d1054708416eac544ff94c82626", "score": "0.69165933", "text": "public static String serialize(TreeNode root) {\n \n }", "title": "" }, { "docid": "c520e63768822246fff60878307865f3", "score": "0.6601408", "text": "public String serialize(TreeNode root) {\n StringBuilder sb = new StringBuilder();\n if (root == null) {\n return NULL;\n }\n Stack<TreeNode> st = new Stack<>();\n st.push(root);\n while (!st.empty()) {\n root = st.pop();\n sb.append(root.val).append(SEP);\n if (root.right != null) {\n st.push(root.right);\n }\n if (root.left != null ) {\n st.push(root.left);\n }\n }\n return sb.toString();\n }", "title": "" }, { "docid": "eaf0bb9af4d48e6199e91b5bf0a6d762", "score": "0.6560134", "text": "public String serialize(TreeNode root) {\n List<Integer> list = LevelOrderTraversal(root);\n return list.toString().replace(\"null\", \"#\").replace('[', '{').replace(']', '}');\n }", "title": "" }, { "docid": "12d18fad7bd1c8844b8c3c375453ddbb", "score": "0.65488136", "text": "public String serialize(TreeNode root) {\n\n StringBuilder inOrderString = new StringBuilder();\n inOrder(root, inOrderString);\n\n StringBuilder preOrderString = new StringBuilder();\n preOrder(root, preOrderString);\n\n return inOrderString.toString() + preOrderString.toString();\n }", "title": "" }, { "docid": "8d1cb713cbb49a2eaff8cdb5b8856b18", "score": "0.6474963", "text": "public String serialize(TreeNode root) {\n // Because we expect the encoded string should be as compact as possible, we just utilize pre-order\n if(root == null){\n \treturn null;\n }\n String left = serialize(root.left);\n String right = serialize(root.right);\n if(left == null && right == null){\n return root.val + \"\";\n }\n StringBuilder sb = new StringBuilder();\n sb.append(root.val);\n if(left != null){\n sb.append(\",\" + left);\n }\n if(right != null){\n sb.append(\",\" + right);\n }\n return sb.toString();\n }", "title": "" }, { "docid": "0e5de11a3f0b29613b7914c5e94110c3", "score": "0.64655334", "text": "public String serialize() {\n\t\tif (overallRoot == null) return \"null, null\";\n\t\t// convert tree to array representation\n\t\tint height = height(overallRoot);\n\t\tint size = 1 << height; // 2^height is 1 more than the number of elements in the tree\n//\t\tSystem.out.println(\"Using size: \" + size);\n\t\tInteger[] a = new Integer[size]; // null = null node, 0 = node with val 0\n\t\t// bfs traversal saving vals to corresponding index\n\t\tQueue<TreeNode> q = new LinkedList<>();\n\t\tQueue<Integer> indexes = new LinkedList<>();\n\t\tq.add(overallRoot);\n\t\tindexes.add(1);\n\t\twhile (!q.isEmpty()) {\n\t\t\tTreeNode n = q.remove();\n\t\t\tInteger index = indexes.remove();\n\t\t\ta[index] = n.val;\n\t\t\tif (n.left != null) {\n\t\t\t\tq.add(n.left);\n\t\t\t\tindexes.add(index * 2);\n\t\t\t}\n\t\t\tif (n.right != null) {\n\t\t\t\tq.add(n.right);\n\t\t\t\tindexes.add(index * 2 + 1);\n\t\t\t}\n\t\t}\n\t\tString result = Arrays.toString(a);\n\t\treturn result.substring(1, result.length()-1);\n\t}", "title": "" }, { "docid": "0f327b989a51ca8cd905c9c02e84fe0c", "score": "0.64638877", "text": "public String serialize(TreeNode root) {\n StringBuilder tree = new StringBuilder();\n buildStr(root, tree);\n return tree.toString();\n }", "title": "" }, { "docid": "cfbd3366761891db312de1281fe9e98c", "score": "0.6444771", "text": "private String serialize(TreeNode root) {\n StringBuilder sb = new StringBuilder();\n Deque<TreeNode> stack = new ArrayDeque<TreeNode>();\n \n stack.push(root);\n \n while(!stack.isEmpty()){\n TreeNode n = stack.pop();\n sb.append(n.val + \", \");\n \n if(n.left != null) stack.push(n.left);\n else sb.append(\"r-null, \");\n \n if(n.right != null) stack.push(n.right);\n else sb.append(\"l-null, \");\n }\n \n return sb.toString();\n }", "title": "" }, { "docid": "4069b7954799a6e5c9eab0fdc2774061", "score": "0.6434681", "text": "public String serialize(TreeNode root) {\n StringBuilder sb = new StringBuilder();\n buildString(root,sb);\n return sb.toString();\n \n }", "title": "" }, { "docid": "fe590d8c2dd8163ceea66ce9ae2d589d", "score": "0.6415316", "text": "public String serialize(TreeNode root) {\n\t\tList<Integer> values = new ArrayList<>(), parents = new ArrayList<>();\n\t\tList<Boolean> posotions = new ArrayList<>();\n\t\twriteToList(root, -1, values, parents);\n\n\t\tbyte[] bytes = new byte[12 * (values.size()+parents.size())];\n\t\tfor (int i = 0; i < values.size(); ++i) addInt(bytes, i<<2, values.get(i));\n\t\tfor (int i = 0; i < parents.size(); ++i) addInt(bytes, (values.size()+i)<<2, values.get(i));\n\t\treturn new String(bytes);\n\t}", "title": "" }, { "docid": "4eee5689879b01846f370bc33ae1023b", "score": "0.64093846", "text": "public String serialize(TreeNode root) {\n if(root == null){\n return \" \";\n }\n StringBuilder sb = new StringBuilder();\n ser(root, sb);\n return sb.toString();\n }", "title": "" }, { "docid": "0ee7bba38ff3d2696620edd0a595a9ec", "score": "0.64058566", "text": "public String serialize(TreeNode root) {\n StringBuilder sb = new StringBuilder();\n serHelper(root, sb);\n System.out.println(sb.toString());\n return sb.toString(); \n }", "title": "" }, { "docid": "088a0d0ba3079858e09a92282371c8aa", "score": "0.63866", "text": "public String serialize(TreeNode root) {\n if (root == null){\n return \"#!\";\n }\n Queue<TreeNode> queue = new LinkedList<>();\n String res = root.val + \"!\";\n queue.offer(root);\n while (!queue.isEmpty()) {\n TreeNode temp = queue.poll();\n\n if (temp.left != null){\n queue.offer(temp.left);\n res += temp.left.val + \"!\";\n }else {\n res += \"#!\";\n }\n\n\n if (temp.right != null){\n queue.offer(temp.right);\n res += temp.right.val + \"!\";\n }else {\n res += \"#!\";\n }\n }\n return res;\n }", "title": "" }, { "docid": "14989a984a313c33d7b34e84683490b4", "score": "0.63813096", "text": "String serialize(PlainTree root) {\n if (root == null) {\n return null;\n }\n final StringBuilder builder = new StringBuilder(16);\n final Queue<PlainTree> queue = new LinkedList<>();\n queue.add(root);\n while (!queue.isEmpty()) {\n final int size = queue.size();\n final StringBuilder temp = new StringBuilder(16);\n boolean anyAdded = false;\n for (int i = 0; i < size; i++) {\n final PlainTree current = queue.poll();\n if (builder.length() == 0) {\n builder.append(current.val);\n }\n if (current.left != null) {\n temp.append(',').append(current.left.val);\n queue.add(current.left);\n anyAdded = true;\n } else {\n temp.append(\",null\");\n }\n if (current.right != null) {\n temp.append(',').append(current.right.val);\n queue.add(current.right);\n anyAdded = true;\n } else {\n temp.append(\",null\");\n }\n }\n if (anyAdded) {\n builder.append(temp);\n }\n }\n return builder.toString();\n }", "title": "" }, { "docid": "5f379ad1869bf98a7d527e5e203c9039", "score": "0.63692886", "text": "public String serialize(TreeNode root) {\n StringBuilder sb = new StringBuilder();\n buildString(root, sb);\n return sb.toString();\n }", "title": "" }, { "docid": "5f379ad1869bf98a7d527e5e203c9039", "score": "0.63692886", "text": "public String serialize(TreeNode root) {\n StringBuilder sb = new StringBuilder();\n buildString(root, sb);\n return sb.toString();\n }", "title": "" }, { "docid": "5f379ad1869bf98a7d527e5e203c9039", "score": "0.63692886", "text": "public String serialize(TreeNode root) {\n StringBuilder sb = new StringBuilder();\n buildString(root, sb);\n return sb.toString();\n }", "title": "" }, { "docid": "5f379ad1869bf98a7d527e5e203c9039", "score": "0.63692886", "text": "public String serialize(TreeNode root) {\n StringBuilder sb = new StringBuilder();\n buildString(root, sb);\n return sb.toString();\n }", "title": "" }, { "docid": "aa4144b835d5e8f50d1aaa61f804bc12", "score": "0.63146746", "text": "public String serialize(TreeNode root) {\n if (root == null) return \"\";\n StringBuilder sb = new StringBuilder(); // we want to modify without creating a new object\n traverse(root, sb); // preOrder traverse\n String res = sb.toString();\n return res.substring(1); // because in traverse, the first char is \",\", which we don't need\n }", "title": "" }, { "docid": "110018bc677b1a0b87f55412236b9ffe", "score": "0.6276611", "text": "public static String serialize(TreeNode root) {\n if (root == null) return \"\";\n StringBuffer sb = new StringBuffer();\n serialize(root, sb);\n\n // remove trailing nulls\n int i = sb.length() - 2;\n while (sb.charAt(i) == 'N') i -= 2;\n return sb.delete(i + 1, sb.length()).toString().trim();\n }", "title": "" }, { "docid": "906be4c2bd949f0c31e3ce50facfe526", "score": "0.6270523", "text": "public String serialize(TreeNode root) {\n StringBuilder builder = new StringBuilder();\n sHelper(root, builder);\n return builder.toString();\n }", "title": "" }, { "docid": "0108992483328a2908865aea8fad0b62", "score": "0.626703", "text": "public String serialize(TreeNode root) {\n StringBuilder sb = new StringBuilder();\n serialize(root, sb);\n return sb.toString();\n\n }", "title": "" }, { "docid": "3cdb3bf0635aa2cb9fe86af1531da306", "score": "0.6246462", "text": "@Override\r\n\tpublic synchronized String toString() {\r\n\t\treturn \"Tree{\" + nodeString(head) + \"}\";\r\n\t}", "title": "" }, { "docid": "a639265e012dca59e738cb24751d6822", "score": "0.62346333", "text": "public String serialize(TreeNode root) {\n if(root==null){\n return \"#!\";\n }\n LinkedList<TreeNode> queue = new LinkedList<TreeNode>();\n queue.add(root);\n String str = root.val+\"!\";\n while(!queue.isEmpty()){\n TreeNode head = queue.remove();\n if(head.left!=null){\n str+=head.left.val+\"!\";\n queue.offer(head.left);\n }else{\n str+=\"#!\";\n }\n if(head.right!=null){\n str+=head.right.val+\"!\";\n queue.offer(head.right);\n }else{\n str+=\"#!\";\n }\n }\n return str;\n }", "title": "" }, { "docid": "71cba36758751ef86b1688bf7cbf81e9", "score": "0.62322366", "text": "public String serialize(TreeNode root) {\r\n StringBuilder sb = new StringBuilder();\r\n serialize(root, sb);\r\n return sb.toString();\r\n }", "title": "" }, { "docid": "d2bfdd1504209c9956d720a832ec5ce5", "score": "0.62290734", "text": "public String serialize(TreeNode root) {\n StringBuilder builder = new StringBuilder();\n doSerialize(root, builder);\n return builder.toString();\n }", "title": "" }, { "docid": "d2bfdd1504209c9956d720a832ec5ce5", "score": "0.62290734", "text": "public String serialize(TreeNode root) {\n StringBuilder builder = new StringBuilder();\n doSerialize(root, builder);\n return builder.toString();\n }", "title": "" }, { "docid": "2cbb254eea3b5ea472aeee3d4f492776", "score": "0.6224547", "text": "public String serialize(TreeNode root) {\n if (root == null) {\n return \"\";\n }\n StringBuilder sb = new StringBuilder();\n helper1(root, sb);\n sb.setLength(sb.length() - 1);\n return sb.toString();\n }", "title": "" }, { "docid": "802dda9b5ac034e626cac42f8a06001b", "score": "0.62230873", "text": "public String serialize(TreeNode root) {\n StringBuilder sb = new StringBuilder();\n serialize(root, sb);\n return sb.toString();\n }", "title": "" }, { "docid": "802dda9b5ac034e626cac42f8a06001b", "score": "0.62230873", "text": "public String serialize(TreeNode root) {\n StringBuilder sb = new StringBuilder();\n serialize(root, sb);\n return sb.toString();\n }", "title": "" }, { "docid": "ed23a1673d5044c1a29f6d5674df7f23", "score": "0.62222236", "text": "public String serialize(TreeNode root) {\r\n StringBuilder builder = new StringBuilder();\r\n serialize(root, builder);\r\n return builder.toString();\r\n }", "title": "" }, { "docid": "8dbb356ad01fd71305e96e89bf15c9d0", "score": "0.6216972", "text": "public String serialize(TreeNode root) {\r\n StringBuilder sb=new StringBuilder();\r\n \r\n constructString(root, sb);\r\n \r\n sb.deleteCharAt(sb.length()-1);\r\n \r\n return sb.toString();\r\n }", "title": "" }, { "docid": "89cdcb03ad1cc30d30218d4e00bda281", "score": "0.6215656", "text": "public String serialize(TreeNode root) {\n return serializeHelper(root);\n }", "title": "" }, { "docid": "bdab299b7fa77b68fb7b3da87cd8a059", "score": "0.6212496", "text": "public String serialize(TreeNode root) {\n if (root == null) return \"null\";\n return root.val + \" \" + serialize(root.left) + \" \" + serialize(root.right);\n }", "title": "" }, { "docid": "facfef58dff437f9bcf50e3c888216a3", "score": "0.6174439", "text": "public String serialize(TreeNode root) {\n StringBuilder s = new StringBuilder(\"\");\n preOrderSerial(root, s);\n return s.toString();\n }", "title": "" }, { "docid": "198c7d8085bac06c0389f89a3042d5e6", "score": "0.6172601", "text": "public String serialize(TreeNode root) {\n\t \tif(root==null){\n\t \t\treturn null;\n\t \t}\n\t \tLinkedList<TreeNode> queue = new LinkedList<>();\n\t \tqueue.add(root);\n\t \tStringBuilder sb = new StringBuilder();\n\t \twhile(!queue.isEmpty()){\n\t \t\tTreeNode cur = queue.removeFirst();\n\t \t\tif(cur==null){\n\t \t\t\tsb.append(\"null,\");\n\t \t\t}else{\n\t \t\t\tsb.append(cur.val+\",\");\t\n\t \t\t\tqueue.add(cur.left);\n\t \t\t\tqueue.add(cur.right);\n\t \t\t}\n\t \t}\n\t \treturn sb.subSequence(0, sb.length()-1).toString();\n\t }", "title": "" }, { "docid": "3263e1b3e0594d3e07621d341f2a0846", "score": "0.61689043", "text": "public String serialize(TreeNode root) {\n // write your code here\n StringBuilder sb = new StringBuilder();\n if (root == null) {\n return sb.toString();\n }\n serializeCore(root, sb);\n sb.setLength(sb.length() - 1);\n return sb.toString();\n }", "title": "" }, { "docid": "9203c07e16e5f7dbfbaf85306e7c511e", "score": "0.6143397", "text": "public static String serialize(TreeNode root) {\n if(root==null) return \"null\";\n Queue<TreeNode> queue=new LinkedList<>();\n List<StringBuilder> sb=new LinkedList<>();\n queue.offer(root);\n int cursize=1;\n while(!queue.isEmpty()){\n cursize=queue.size();\n for (int i=0;i<cursize;i++){\n TreeNode tmp=queue.poll();\n if(tmp!=null) {\n sb.add(new StringBuilder(\"\"+tmp.val));\n queue.offer(tmp.left);\n queue.offer(tmp.right);\n }\n else sb.add(new StringBuilder(\"null\"));\n }\n }\n StringBuilder nullstr=new StringBuilder(\"null\");\n return sb.toString().replaceAll(\"((, null)+)]\",\"]\");\n }", "title": "" }, { "docid": "11b573dc50e562d7caa3b7130f89447c", "score": "0.61387175", "text": "public String serialize(TreeNode root) {\n StringBuilder sb = new StringBuilder();\n serializeHelper(root,sb);\n return sb.toString();\n }", "title": "" }, { "docid": "8fe3a3b493b369bad141715520163541", "score": "0.613853", "text": "public String preorderToString() {\n StringBuilder stb = new StringBuilder();\n preorderToString(stb, root);\n return stb.toString();\n }", "title": "" }, { "docid": "076f4dae4e2dfbd8112ff1f0ec2cf4ed", "score": "0.61370665", "text": "protected String encodeNode(String name) {\n\t\treturn nameCoder.encodeNode(name);\n\t}", "title": "" }, { "docid": "ae946b2241dbacbd2be3eaf83a682cec", "score": "0.6130376", "text": "public String toString(){\r\n\t\t\r\n\t\tStringBuilder s = new StringBuilder();\r\n\t\t\r\n\t\tfor(int i = 1; i <= this.height() + 1; i++){\r\n\t\t\tprintLevel(s, this.root, i); //print each level, start with level 1 of the tree\r\n\t\t\ts.append(\"\\n\");\r\n\t\t}\r\n\t\t\r\n\t\treturn s.toString();\r\n\t}", "title": "" }, { "docid": "229688cb69fb5ea8197c7fd529fe6a28", "score": "0.6122037", "text": "public static String makeString(RedBlackTree t)\r\n \t{\r\n \t\t\r\n \t\tclass MyVisitor implements RedBlackTree.Visitor \r\n \t\t{\r\n \t\t\t\r\n \t\t\tString result = \"\";\r\n \t\t\tpublic void visit(RedBlackTree.Node n)\r\n \t\t\t{\r\n \t\t\t\t\r\n \t\t\t\tresult = result + n.data;\r\n \t\t\t\tSystem.out.println(result);\r\n \t\t\t}\r\n \t\t};\r\n \t\r\n \t\tSystem.out.println(\"-----------\");\r\n \t\tMyVisitor v = new MyVisitor();\r\n \t\t\r\n \t\tt.preOrderVisit(v);\r\n \t\tSystem.out.println(v.result);\r\n \t\treturn v.result;\r\n \t}", "title": "" }, { "docid": "a54bfb8bf76ea80bf440510478211179", "score": "0.6080187", "text": "public String serialize(TreeNode root) {\n //存空值,从而知道分支是否已经结束\n List<String> seq = new ArrayList<String>();\n dfs(seq, root);\n return String.join(\",\", seq);\n }", "title": "" }, { "docid": "17b4463ab4d0cf5388f6cb1793d95ca7", "score": "0.60771614", "text": "public String serialize(TreeNode root) {\n String res = \"\";\n if(root == null){\n return res;\n }\n Queue<TreeNode> que = new LinkedList();\n que.offer(root);\n res += root.val + \",\";\n while(!que.isEmpty()){\n int size = que.size();\n for(int i = 0 ; i < size ; i++){\n TreeNode cur = que.poll();\n if(cur.left == null){\n res += \"#,\"; \n }\n else{\n res += cur.left.val + \",\";\n que.offer(cur.left);\n }\n if(cur.right == null){\n res += \"#,\"; \n }\n else{\n res += cur.right.val + \",\";\n que.offer(cur.right);\n }\n\n }\n }\n return res.substring(0 , res.length() - 1);\n }", "title": "" }, { "docid": "867268b50249b365ca59070bcb305623", "score": "0.60729015", "text": "public String serialize(TreeNode root) {\n //bfs 走一波\n LinkedList<TreeNode> queue = new LinkedList<>();\n queue.offer(root);\n\n LinkedList<TreeNode> res = new LinkedList<>(); // 用来承接结果的\n while (!queue.isEmpty()){\n\n int count = queue.size();\n for (int i = 0; i < count; i++) {\n TreeNode curnode = queue.poll();\n res.offer(curnode); //res 接住抛出的结果\n\n if (curnode != null){\n queue.offer(curnode.left); // null 也要保留住结果\n queue.offer(curnode.right);\n }\n\n }\n }\n // res 怎么转化为 string\n StringBuilder builder = new StringBuilder();\n builder.append(\"[\");\n for (int i = 0; i < res.size(); i++) {\n TreeNode node = res.get(i);\n if (node != null){\n builder.append(node.val);\n }else {\n builder.append(\"null\");\n }\n if (i != res.size()-1){\n builder.append(\",\");\n }\n }\n builder.append(\"]\");\n System.out.println(builder.toString());\n return builder.toString();\n }", "title": "" }, { "docid": "8147457739e8451d5884b053684b10ac", "score": "0.6068302", "text": "public String serialize(TreeNode root) {\n Queue<TreeNode> queue = new LinkedList<>();\n StringBuilder data = new StringBuilder();\n int childSize = 0;\n int parentSize = 1;\n\n if (root != null)\n queue.add(root);\n while (!queue.isEmpty()) {\n if (parentSize == 0 && childSize == 0)\n break;\n TreeNode node = queue.poll();\n if (node != null)\n data.append(node.val + \",\");\n else {\n data.append(\"#,\");\n continue;\n }\n parentSize--;\n if (node.left != null) {\n queue.add(node.left);\n childSize++;\n } else {\n queue.add(null);\n }\n if (node.right != null) {\n queue.add(node.right);\n childSize++;\n } else {\n queue.add(null);\n }\n System.out.print(node.val + \" \");\n if (parentSize == 0) {\n System.out.println();\n parentSize = childSize;\n childSize = 0;\n }\n }\n return data.toString();\n }", "title": "" }, { "docid": "4c2f7f1d0af898b05208df39d1dcd9ea", "score": "0.6064568", "text": "public String inorderToString() {\n StringBuilder stb = new StringBuilder();\n inorderToString(stb, root);\n return stb.toString();\n }", "title": "" }, { "docid": "b20294764d80cc83b551af7d56383564", "score": "0.6030386", "text": "public String serialize(TreeNode root) {\n if(root == null) return \"\";\n\n StringBuilder sb = new StringBuilder();\n postOrder(root, sb);\n return sb.substring(0, sb.length()-1);\n }", "title": "" }, { "docid": "a55995fd04627f06a7d094cf21831a92", "score": "0.6021895", "text": "public String toString()\n\t{\n\t\tStringBuilder sb=new StringBuilder();\n\t\tpreorderTraversal(root,1,sb);\n\t\treturn sb.toString();\n\t}", "title": "" }, { "docid": "d748bda59e2bfdbb8d87317ae7af05ac", "score": "0.6016587", "text": "private static String serialize(TreeNode root) {\n List<String> output = new ArrayList<>();\n serializeHelper(root, output);\n return String.join(\",\", output);\n }", "title": "" }, { "docid": "8799fd4e9879a37d0e3f4c867db6c7e6", "score": "0.6012574", "text": "public String serialize(TreeNode root) {\n if (root == null) {\n return \"\";\n }\n StringBuilder sb = new StringBuilder();\n sb.append(root.val).append(\"(0)\");\n nodeToList(root, 0, sb);\n return sb.toString();\n }", "title": "" }, { "docid": "048c6a0bb1c5260dedbffa8b4614da7d", "score": "0.60075516", "text": "public String entradaTreeListToString() {\n\n\t\tString _ret = \"\";\n\t\t\n//\t\tIterator<Entrada> entradaIterator = treeList.iterator();\n//\t\t\n//\t\twhile(entradaIterator.hasNext()) {\n//\t\t\tEntrada e = (Entrada)entradaIterator.next();\n//\t\t\t_ret += e.toString();\n//\t\t\t\n//\t\t}\n\t\t\n\t\tfor(Entrada e : treeList) {\n\t\t\t_ret+= e.toString();\n\t\t}\n\t\t\n\t\treturn _ret;\n\t}", "title": "" }, { "docid": "492079de5e061c986f70808d1ceab16c", "score": "0.5995637", "text": "public String serialize(TreeNode root) {\n return null;\n }", "title": "" }, { "docid": "8f4111553083c0e8d6b8150e1cdacda0", "score": "0.5978167", "text": "public String serialize(TreeNode root) {\n return reserialize(root, \"\");\n }", "title": "" }, { "docid": "ffa2da72d434797f8122595108870a87", "score": "0.5976005", "text": "public String serialize(TreeNode root) {\n if (root == null) {\n return \"#\";\n }\n StringBuilder sb = new StringBuilder();\n LinkedList<TreeNode> queue = new LinkedList<>();\n queue.add(root);\n sb.append(root.val);\n while (!queue.isEmpty()) {\n TreeNode cur = queue.poll();\n if (cur.left != null) {\n queue.offer(cur.left);\n sb.append(\",\" + cur.left.val);\n }else {\n sb.append(\",#\");\n }\n if (cur.right != null) {\n queue.offer(cur.right);\n sb.append(\",\"+cur.right.val);\n }else {\n sb.append(\",#\");\n }\n }\n return sb.toString();\n }", "title": "" }, { "docid": "9e345f4f59adad7dda2d82e6444aa0db", "score": "0.59727854", "text": "public String serialize(TreeNode root) {\r\n\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "b72889554fb98905c264bd719d204674", "score": "0.59650195", "text": "public String serialize(TreeNode root) {\n StringBuilder res = new StringBuilder(\"[\");\n Queue<TreeNode> queue = new LinkedList();\n\n queue.add(root);\n\n while(!queue.isEmpty()) {\n TreeNode currNode = queue.remove();\n if(currNode == null) {\n res.append(\"null,\");\n } else {\n res.append(currNode.val + \",\");\n //左右孩子入队\n queue.add(currNode.left);\n queue.add(currNode.right);\n }\n }\n\n //去掉最后面多出来的一个逗号\n res.setLength(res.length() - 1);\n //追加右中括号,闭合树\n res.append(\"]\");\n\n return res.toString();\n }", "title": "" }, { "docid": "c452c0a4cd1e887c4c8adb15d72f68b9", "score": "0.59438425", "text": "public String serialize(NNode root) {\n if(root==null){\n return \"\";\n }\n Queue<NNode> queue = new LinkedList<>();\n StringBuffer res = new StringBuffer();\n queue.offer(root);\n if(root==null){\n System.out.print(\"root null\");\n }\n while(!queue.isEmpty()){\n int size = queue.size();\n while(size-->0){\n NNode cur = queue.poll();\n\n// System.out.print(cur.val+\" \");\n //assume children not null\n if(cur.children==null){\n res.append(cur.val+\",\"+0+\",\");\n }else{\n res.append(cur.val+\",\"+cur.children.size()+\",\");\n for(NNode child : cur.children){\n queue.offer(child);\n }\n }\n\n }\n// System.out.println(\" \");\n }\n\n// System.out.println(\" Ser\");\n\n return res.toString();\n }", "title": "" }, { "docid": "f9d264975c2415c4eb4cd0ebc15fd260", "score": "0.5941421", "text": "public static String serialize(TreeNode root) {\r\n\t\tif (root == null) {\r\n\t\t\treturn \"#_\";\r\n\t\t}\r\n\t\treturn root.val + \"_\" + serialize(root.left) + serialize(root.right);\r\n\t}", "title": "" }, { "docid": "9ef21b3d6a024e759e9c382aef4f6323", "score": "0.5938467", "text": "public String serialize(TreeNode root) {\n StringBuilder sb = serializeRecursive(root, new StringBuilder());\n if(sb.length() > 0) {\n return sb.substring(0, sb.length());\n }\n return sb.toString();\n }", "title": "" }, { "docid": "bdb2663dbceb2000eb9d06549a6d5f29", "score": "0.5928833", "text": "public String serialize(TreeNode root) {\n if (root == null) {\n return \"\";\n }\n StringBuilder sb = new StringBuilder();\n Queue<TreeNode> qu = new LinkedList<>();\n qu.offer(root);\n boolean nextNum = true;\n while (!qu.isEmpty() && nextNum) {\n nextNum = false;\n int n = qu.size();\n for (int i = 0;i < n;++i) {\n TreeNode cur = qu.poll();\n if (cur == null) {\n sb.append(\"n,\");\n continue;\n }\n sb.append(cur.val);\n sb.append(',');\n if (cur.left != null || cur.right != null) {\n nextNum = true;\n }\n qu.offer(cur.left);\n qu.offer(cur.right);\n }\n }\n return sb.substring(0, sb.length() - 1);\n }", "title": "" }, { "docid": "49519373788b3ff8a5abd3c3f9de508c", "score": "0.58959544", "text": "public String toString()\r\n {\r\n StringBuilder sb = new StringBuilder();\r\n preOrderTraverse(root, 1, sb);\r\n\r\n return sb.toString();\r\n }", "title": "" }, { "docid": "f6f5fb4f3527207ecc55d28778d33c27", "score": "0.58878833", "text": "public String inorderToString(BinaryNode node);", "title": "" }, { "docid": "7d268dd6d0b204a613880b2b3c3d10f5", "score": "0.5835805", "text": "public String preorderToString(BinaryNode node);", "title": "" }, { "docid": "b9c38ceec94a1c4e197d7b1370152ea1", "score": "0.5814994", "text": "public String serialize(Node root) {\n if (root == null) return \"\";\n\n StringBuilder sb = new StringBuilder();\n sb.append(\"(\" + root.val);\n if (root.children != null) {\n for (Node child : root.children) sb.append(serialize(child));\n }\n sb.append(\")\");\n\n return sb.toString();\n }", "title": "" }, { "docid": "1540725f45a011ae125e71f6bc8058ac", "score": "0.5813922", "text": "public String serialize(Node root) {\n StringBuilder rst = new StringBuilder();\n buildString(rst, root);\n return rst.toString();\n }", "title": "" }, { "docid": "5aa9fc8ce5033c96290519c8ac869a35", "score": "0.581332", "text": "public String serialize(BinaryNode root) {\n validateInputTree(root);\n return serializeInner(root);\n }", "title": "" }, { "docid": "919b9cf319549c783c1b852333537c95", "score": "0.5809793", "text": "public String toString() {\r\n String builder = \"\";\r\n if (root != null) {\r\n if (root.left_node != null) { builder = toString(root.left_node, builder); }\r\n builder += \"[\" + root.data + \"]\";\r\n if (root.right_node != null) {builder = toString(root.right_node, builder); }\r\n }\r\n return builder;\r\n\r\n }", "title": "" }, { "docid": "96e9c268a38eff2c03befe6ddce086c1", "score": "0.5807811", "text": "public String encode() {\n return State.encodeStateSet(states) + \"/\" +\n alphabet.encode() + \"/\" +\n transitions.encode() + \"/\" +\n initialState.encode() + \"/\" +\n State.encodeStateSet(acceptingStates);\n }", "title": "" }, { "docid": "342977529365f4603de519968dd4b089", "score": "0.5799882", "text": "public String serialize(TreeNode root) {\n LinkedList<TreeNode> list=new LinkedList<>();\n StringBuilder result=new StringBuilder();\n if (root == null) {\n return \"\";\n }\n list.add(root);\n while (!list.isEmpty()) {\n int size = list.size();\n while (size-- > 0) {\n TreeNode node = list.pop();\n if(node==null){\n result.append(\"null,\");\n }else {\n result.append(node.val).append(\",\");\n list.add(node.left);\n list.add(node.right);\n }\n }\n }\n return result.toString();\n }", "title": "" }, { "docid": "7111bfbfde8e5d2f24168c35c483bbb8", "score": "0.5795137", "text": "public String toString() {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tpreOrderTraverse(root, 1, sb);\r\n\t\treturn sb.toString();\r\n\t}", "title": "" }, { "docid": "21dd2d2bf649b0746722fc6e75561cf8", "score": "0.5791886", "text": "private void btn_encodeActionPerformed(ActionEvent evt) {\n if(tree == null) {\n JOptionPane.showMessageDialog(rootPane, \"Create Huffman tree first to encode text\");\n return;\n }\n String input = taInput.getText();\n List<Boolean> binary = calc.encodeTree(input, tree);\n \n StringBuilder sb = new StringBuilder();\n for(boolean b : binary) {\n sb.append(b ? '1':'0');\n }\n taOutput.setText(sb.toString()); \n }", "title": "" }, { "docid": "3f1ba4fdd90216e8d1f42e07f97a89bb", "score": "0.57863736", "text": "public String serialize2(TreeNode node) {\n if (node == null) {\n return \"#\";\n\n }\n String left = serialize2(node.left);\n String right = serialize2(node.right);\n StringBuilder sb = new StringBuilder();\n sb.append(node.val).append(\",\").append(left).append(\",\").append(right);\n return sb.toString();\n }", "title": "" }, { "docid": "9748e047df0b806b9a5a7ff32d2bde49", "score": "0.57760465", "text": "public static String getTree(TreeNode m, Boolean left){\n //preorder\n if (m == null){\n if (left)\n return \"#lnull\";\n else\n return \"rnull\";\n }\n return \"#\"+m.val +getTree(m.left,true) + getTree(m.right, false);\n }", "title": "" }, { "docid": "820afb1a8ac3b020c585ec60f888b81e", "score": "0.5759228", "text": "public String toString() {\n TreeIterator itr = iterator();\n StringBuilder builder = new StringBuilder();\n\n while (itr.hasNext()) {\n T entry = itr.next();\n int depth = itr.getDepth();\n\n for (int i = 0; i < depth; ++i) {\n builder.append(\"----\");\n }\n\n String str;\n if (isRoot(entry)) {\n str = \"Root\";\n } else {\n str = entry.toString();\n }\n\n builder.append(str);\n builder.append('\\n');\n }\n\n return builder.toString();\n }", "title": "" }, { "docid": "d9a685ffe30685e03557d1809bb6f442", "score": "0.5756813", "text": "@Test\n void serializeBinaryTree() {\n String expectedSerializedBT = \"{10,5,1,#,#,#,12,11,#,#,15,#,#}\";\n String serializedBT = SerializeBinaryTree.serializeBinaryTree(this.simpleBST.getRoot());\n assertEquals(expectedSerializedBT, serializedBT);\n }", "title": "" }, { "docid": "0642ef6eb7254bc0a9ad1f321d8b6361", "score": "0.57496184", "text": "protected String treeString(ComponentNode node) {\r\n\tif (showLabels) {\r\n\t\treturn node.toString();\r\n\t} else {\r\n\t\treturn node.toStringWithoutLabels();\r\n\t}\r\n}", "title": "" }, { "docid": "6b5ca00b25b5afb5aee070e78e10921b", "score": "0.57473004", "text": "public static String simonTreeString(Simon simon) {\n \t\tStringBuilder sb = new StringBuilder();\n \t\tprintSimonTree(0, simon, sb);\n \t\treturn sb.toString();\n \t}", "title": "" }, { "docid": "2f6a0ee3eb7bd07e57651f2a273d3241", "score": "0.5746312", "text": "private int treeToString(StringBuffer text, int nn) {\n\n nn++;\n text.append(\"\\n\\nNode number: \" + nn + \"\\n\\n\");\n if (m_FilteredClassifier != null) {\n text.append(m_FilteredClassifier);\n } else {\n text.append(\"null\");\n }\n if (m_FirstSuccessor != null) {\n nn = m_FirstSuccessor.treeToString(text, nn);\n nn = m_SecondSuccessor.treeToString(text, nn);\n }\n return nn;\n }", "title": "" }, { "docid": "ef0edf9e8e1f11a9aab866016502ac3f", "score": "0.574383", "text": "public java.lang.String getTreeCode() { \n return this.treeCode; \n }", "title": "" }, { "docid": "2d97a67eb5559315b09667972590dcef", "score": "0.5714792", "text": "public void serialize_(TreeNode root, StringBuilder sb) {\n if (root == null) {\n sb.append(\"null#\");\n return;\n }\n sb.append(root.val + \"#\");\n serialize_(root.left, sb);\n serialize_(root.right, sb);\n }", "title": "" }, { "docid": "5884d0529bfc0f7c8cd64473bd846ba6", "score": "0.568942", "text": "public String toString (Tree.Node node) {\n if (node == null)\n return \"Empty tree\";\n else\n return node.toString();\n }", "title": "" }, { "docid": "dc9e9eb4722f1e1c265a6d970359e2ca", "score": "0.5654793", "text": "private void binaryTreeEncoding(Node node, String s){\n if (node.left == null && node.right == null){\n node.binaryCode = s;\n huffman.add(node);\n return;\n }\n\n binaryTreeEncoding(node.left, s + \"0\");\n binaryTreeEncoding(node.right, s + \"1\");\n }", "title": "" }, { "docid": "cfde465884707bf8ac39c3525fb95023", "score": "0.5649264", "text": "String encode();", "title": "" }, { "docid": "e95ae6bcd33c82d41e3dc07baf6b1bb2", "score": "0.56487465", "text": "public String toString(){\n\t\tString result = \"\";\n\t\tif(head == null){\n\t\t\treturn result;\n\t\t} else {\n\t\t\treturn traverseTree(head);\n\t\t}\n\t}", "title": "" }, { "docid": "4578bb8af4ae354c540dc9e0ab448210", "score": "0.5647638", "text": "private static void serializeHelper(TreeNode node, List<String> output) {\n if (node == null) {\n output.add(\"NULL\");\n } else {\n output.add(String.valueOf(node.val));\n serializeHelper(node.left, output);\n serializeHelper(node.right, output);\n }\n }", "title": "" }, { "docid": "74849eac7a2509a837616e803fee7313", "score": "0.5642261", "text": "private String toString(String treeString,Node node, int height) {\n String s = \"\";\n if (node == null) {\n return \"\";\n }\n else {\n s = indent(height);\n s = s.concat(node.prefix);\n if (node.isWord) {\n s = s.concat(\"*\");\n }\n s = s.concat(System.lineSeparator());\n }\n treeString = treeString.concat(s);\n\n for (int i = 0; i < node.children.length; i ++) {\n treeString = treeString.concat(toString(\"\",node.children[i], height + 1));\n }\n\n return treeString;\n }", "title": "" }, { "docid": "27b6e2654e06f64adb61e19dfcdd48cc", "score": "0.56404495", "text": "public String toString(TreeOutputOrder order) {\n List<T> list = this.root.toList(order);\n\n return Arrays.toString(list.toArray());\n }", "title": "" }, { "docid": "3095316120880e33c7150c0d886fd605", "score": "0.56327856", "text": "public String toString () {\n \treturn toString(root);\n }", "title": "" }, { "docid": "b01bbca70a427f0e04197bcc64874296", "score": "0.5631493", "text": "public String printInOrder() {\r\n\r\n\t\tString chain = \"\";\r\n\r\n\r\n\t\tif(root.left != null)chain += \"(\" + getLeftSubTree().printInOrder();\r\n\t\tchain += root.data;\r\n\t\tif(root.right != null)chain += getRightSubTree().printInOrder() + \")\";\r\n\r\n\t\treturn chain;\r\n\t}", "title": "" }, { "docid": "beb241a9bf4f635df19d2477efbce4e2", "score": "0.5621831", "text": "public String toString()\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\trecurseToString(root, sb, \"\");\n\t\treturn sb.toString();\n\t}", "title": "" }, { "docid": "d2f5a959e89a5ba85deb04881ac38cf0", "score": "0.5611474", "text": "public String serialize(TreeNode root) {\n if(root == null) {\n return \"[]\";\n }\n \n StringBuffer sb = new StringBuffer(\"[\");\n \n serializeHelper(sb, root);\n \n sb.substring(0, sb.length() - 1); //StringBuffer 可以直接substring\n sb.append(\"]\");\n return sb.toString();\n \n }", "title": "" }, { "docid": "25950d8b7c6c46d43f58893891adbd88", "score": "0.5597772", "text": "public String encode() {\n return decoder.encode(this);\n }", "title": "" }, { "docid": "ee6cd54a27574b42676f823fc240d63c", "score": "0.55833197", "text": "public String toString() {\n if (root == null) {\n return \"\";\n } else {\n /* Most of the work is done by Tree234Node.toString(). */\n return root.toString();\n }\n }", "title": "" }, { "docid": "ee6cd54a27574b42676f823fc240d63c", "score": "0.55833197", "text": "public String toString() {\n if (root == null) {\n return \"\";\n } else {\n /* Most of the work is done by Tree234Node.toString(). */\n return root.toString();\n }\n }", "title": "" }, { "docid": "80fb3e9e0cf8e926658d267143942279", "score": "0.55775625", "text": "public static void main(String[] args){\n TreeNode root = new TreeNode(8);\n root.left = new TreeNode(3);\n root.right = new TreeNode(10);\n root.left.left = new TreeNode(1);\n root.left.right = new TreeNode(6);\n root.right.right = new TreeNode(14);\n root.left.right.left = new TreeNode(4);\n root.left.right.right = new TreeNode(7);\n root.right.right.left = new TreeNode(13);\n Codec codec = new Codec();\n codec.deserialize(codec.serialize(root)); \n }", "title": "" }, { "docid": "38d10b17b479ed7cf8700619d6fd607b", "score": "0.5573185", "text": "@Override\r\n\t\tpublic String toString() {\r\n\t\t\tString[] ans = new String[1];\r\n\t\t\tans[0] = \"\";\r\n\t\t\ttoString(root,ans);\r\n\t\t\treturn ans[0];\r\n\t\t}", "title": "" }, { "docid": "5a8e4741a15f5d9efd32cb324e7fe365", "score": "0.5567093", "text": "public String decode(String code, Tree tree) {\n\n StringBuilder result = new StringBuilder();\n\n Node node = _root;\n int counter = 0;\n\n for (int i = 0; i < code.length(); i++) {\n\n if (!node.hasChar()) {\n if (code.charAt(i) == '1') {\n node = node.getLeft();\n }\n if (code.charAt(i) == '0') {\n node = node.getRight();\n }\n\n counter++;\n } else {\n result.append(node.getCodechar());\n node = _root;\n i--;\n }\n }\n result.append(node.getCodechar());\n return result.toString();\n }", "title": "" } ]
04a16646bb07f3ca96cf1e8acbc8c9f4
Add data to sent to a Message object
[ { "docid": "ac4ed3c51f61523519a9710eabf202c4", "score": "0.0", "text": "private Message createMessage() {\r\n\t\treturn null;\r\n\t}", "title": "" } ]
[ { "docid": "50b300c26c0998169b50d908186fbab7", "score": "0.68505186", "text": "void addMessage(Message message);", "title": "" }, { "docid": "8ed30a33ed37a023bf8362ab2e1d5475", "score": "0.66786814", "text": "@Override\n\tpublic void messageAdd(message message) throws Exception {\n\t\tmd.messageAdd(message);\n\t}", "title": "" }, { "docid": "53c3577c6b266f37f05df0be8225f47f", "score": "0.6525323", "text": "com.transerainc.aha.gen.agent.MessageDocument.Message addNewMessage();", "title": "" }, { "docid": "f1d29854170260e6165f5af249a0f4aa", "score": "0.64013875", "text": "void addMessage(String message);", "title": "" }, { "docid": "6c8eee464580d433327f5271178b4c62", "score": "0.6394937", "text": "void addPersistentMessage(MessageObject message);", "title": "" }, { "docid": "4f1803c96c4311f608c26e94e6ce131a", "score": "0.6392933", "text": "void addMessage(ConnectionContext context, Message message) throws IOException;", "title": "" }, { "docid": "bf3362ff2d76af9c954d514ffc228714", "score": "0.63723165", "text": "public void addMessage( String message );", "title": "" }, { "docid": "9c463975ea2371fe0392ffac90a3f776", "score": "0.63215506", "text": "@Override\n\tpublic void setData() throws IOException\n\t{\n\t\tint result=sendToServer(\"DATA\");\n\t\tif(result!=354)\n\t\t{\n\t\t\tthrow new IOException(\"不能发送数据\");\n\t\t\t\n\t\t}\n\t\tthis.getOutput().write(\"FROM:\"+this.getMessage().getDataFrom());\n\t\tthis.getOutput().newLine();\n\t\tthis.getOutput().write(\"TO:\"+this.getMessage().getDataTo());\n\t\tthis.getOutput().newLine();\n\t\tthis.getOutput().write(\"SUBJECT:\"+this.getMessage().getSubject());\n\t\tthis.getOutput().newLine();\n\t\t//注意,主题和内容之间应该换两行。\n\t\tthis.getOutput().newLine();\n\t\tthis.getOutput().write(this.getMessage().getContent());\n\t\tthis.getOutput().newLine();\n\t\t//句点加回车结束邮件内容\n\t\tresult=sendToServer(\".\");\n\t\tif(result!=250)\n\t\t{\n\t\t\tthrow new IOException(\"发送数据失败\");\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "acc78ee951360cf331f9cb79aad77b58", "score": "0.6313823", "text": "public void addChatMessage(ChatMsg msg);", "title": "" }, { "docid": "ea6e2b87d10685e3703accbc9915bfe5", "score": "0.63011533", "text": "public void addMessage() {\n messageDAO.save(message);\n }", "title": "" }, { "docid": "b3facd3e7340e1a0908909cd5b343036", "score": "0.6290823", "text": "@DataPoint\n public void addMessageToTheChat() {\n callOnApiIdl.increment();\n MessageHelper.createMessage(\"messageTest\", userTest).addOnCompleteListener(task -> {\n taskIsSuccessful = task.isSuccessful();\n if (task.getResult() != null) {\n messageCreateForTest = task.getResult().getId();\n }\n callOnApiIdl.decrement();\n });\n onIdle();\n }", "title": "" }, { "docid": "b85a47f44edd08ae23060fb4b8888c39", "score": "0.62748444", "text": "public void addMessage(String message){\n this.message = message;\n }", "title": "" }, { "docid": "e917b31401be5100ca7c699ab91de475", "score": "0.61665505", "text": "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tgetData();\n\t\t}", "title": "" }, { "docid": "2e3eeff733a5bceb718cc484fd27a18d", "score": "0.6157586", "text": "@Override\n public void saveMessage(MqttMessageWrapper[] data, int size) {\n\n }", "title": "" }, { "docid": "262b388ce8fa20b82e8f5678cb3f78a1", "score": "0.61420345", "text": "public void addMsg(){\n\t\tSolitaire.msg.selectCards(false);\n\t\tif (canTake(Solitaire.msg.top()))\n\t\t\tpush(Solitaire.msg.top());\n\t\telse\n\t\t\tSolitaire.getSender().push(Solitaire.msg.top());\n\t\tSolitaire.msg.clear();\n//\t\tSolitaire.sender = null; //unnecessary\n\n\t}", "title": "" }, { "docid": "759a793e903c95140e0f532cc4de320e", "score": "0.607447", "text": "private void addInfo(Message msg, NodeProxy myProxy, boolean sendAnyhow) {\n\t\tModelHistory history = getHistory();\n\t\tif (sendAnyhow) {\n\t\t\tmsg.withSendAnyHow(sendAnyhow);\n\t\t}\n\t\tif (myProxy == null) {\n\t\t\tmyProxy = getMyNode();\n\t\t}\n\t\tString messageId = msg.getMessageId(this, myProxy);\n\t\tmsg.withPrevChange(history.getPrevChangeId(messageId));\n\t\t/* Add Receiver if possible */\n\t\tmsg.withAddToReceived(myProxy);\n\t\tif (msg instanceof ReceivingTimerTask) {\n\t\t\t((ReceivingTimerTask) msg).withSpace(this);\n\t\t}\n\t}", "title": "" }, { "docid": "1f358684e11a86918be34aeeab4a2563", "score": "0.6057489", "text": "public abstract Memory add(Message message) throws Exception;", "title": "" }, { "docid": "062bc1b2753e914a920bd587337f5d49", "score": "0.6034136", "text": "public void add(final String message) {\r\n content.add(message);\r\n }", "title": "" }, { "docid": "ded3ba31dfcc95aa1deb199018602119", "score": "0.5916418", "text": "public void sendMessage(Object message)\n {\n if (!validateId(message))\n return;\n final String text = key + converter.toXML(message);\n sendRawMessage(text);\n }", "title": "" }, { "docid": "380c05c56e4e21aeddc582ed8d4537f0", "score": "0.5904745", "text": "protected void addMessage(InetAddress address, Message message){\n\t\ttry {\n\t\t\tString username = this.agent.getUsernameManager().getUsername(address);\n\t\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\t ObjectOutputStream oos = new ObjectOutputStream(baos);\n\t\t oos.writeObject(message);\n\t\t // serialize the employee object into a byte array\n\t\t byte[] messageAsBytes = baos.toByteArray();\n\t\t PreparedStatement pstmt = this.agent.getDatabaseManager().getConnection().prepareStatement\n\t\t (\"INSERT INTO messages_\"+username+\" (message) VALUES(?)\");\n\t\t ByteArrayInputStream bais = new ByteArrayInputStream(messageAsBytes);\n\t\t // bind our byte array to the message column\n\t\t pstmt.setBinaryStream(1,bais, messageAsBytes.length);\n\t\t pstmt.executeUpdate();\n\t\t} catch (Exception e) {\n\t Agent.errorMessage(String.format(\"ERROR when trying to get messages from address %s in the database\\n\",address), e);\n\t\t}\n\t}", "title": "" }, { "docid": "c32783885ac20e723b99a84732e3e1aa", "score": "0.5894238", "text": "public void addMessage(AeOnMessage aMessage)\r\n {\r\n getEventHandlers().addMessage(aMessage);\r\n }", "title": "" }, { "docid": "c5f46d84c421bd56e160de2b308a452f", "score": "0.5885931", "text": "public MessageClypeData() {\r\n\t\tsuper();\r\n\t\tmessage = \"\";\r\n\t}", "title": "" }, { "docid": "fbcdbda087727fd9885ddc4444d0c830", "score": "0.58721715", "text": "RawResponse addMessage(String ticketId,Transcript transcript);", "title": "" }, { "docid": "5b52f99fb4a35a18fb32bf8754095b9b", "score": "0.5860728", "text": "@Override\n public void send(Msg msg) {\n output.add(msg);\n }", "title": "" }, { "docid": "050412961188ce299ed0cdd844c47d0b", "score": "0.58499765", "text": "public MBChatData() {\r\n messages.add(new Message(new Date(),\"Carlos\",\"ola\"));\r\n messages.add(new Message(new Date(),\"john\",\"ola\"));\r\n messages.add(new Message(new Date(),\"lol\",\"ola\")); \r\n \r\n }", "title": "" }, { "docid": "9a84a281d169fcfe4447d11849e86364", "score": "0.58421767", "text": "protected void sendData(String command)\r\n\t{\r\n\t\toutgoing.enque(command);\r\n\t\trun();\r\n\t}", "title": "" }, { "docid": "78e3c76d8061375927e4ae56dce85746", "score": "0.5835055", "text": "@Override\n\tprotected void sendMessage(String msg) {\n\t\tmediator.operation(this,msg);\n\t}", "title": "" }, { "docid": "7e12ccf95b65a873c75f47cf1b965c69", "score": "0.5792434", "text": "@Override\n public void add(ChatMessage object) {\n //chatMessageList.add(object);\n super.add(object);\n // count++;\n }", "title": "" }, { "docid": "2e34a04ab7cad0073403d8498f25bfc9", "score": "0.5791149", "text": "synchronized void addMessage(Message message) {\r\n if (messages.containsKey(message.getRecipient())) {\r\n Vector msgList = (Vector) messages.get(message.getRecipient());\r\n msgList.add(message);\r\n } else {\r\n Vector msgList = new Vector();\r\n msgList.add(message);\r\n messages.put(message.getRecipient(), msgList);\r\n }\r\n }", "title": "" }, { "docid": "13cdde1c1e9bc8b95e9afaa585ebbc05", "score": "0.57909393", "text": "@Override\n\tpublic void addMessage(MessageDom message) {\n\t\t\n\t\tmessageDao.addMessage(message);\n\t}", "title": "" }, { "docid": "bd1ade6f1636567f9e07a0360dac223b", "score": "0.5776282", "text": "@Override\n\tpublic void addChatMessage(ChatMessage message) {\n\t\tmongoTemplate.insert(message);\n\t}", "title": "" }, { "docid": "6c4f29ed6636fcb51a81568b46fd65bb", "score": "0.5775747", "text": "public void put(DataOutputStream dos) throws IOException {\n\t\t//synchronized (dos) {\n\t\t\t//System.out.println(\"in put method\");\n\t\t\t//System.out.println(\"Message type: \" + this.getMessageType().name());\n\t\t\t//System.out.println(\"Message: \" + this.getMessage());\n\t\t\tdos.writeUTF(this.getMessageType().name());\n\t\t\tdos.writeUTF(this.getMessage());\n\t\t//}\n\n\t}", "title": "" }, { "docid": "1c8582f9d572f57555c3c05080f78b7b", "score": "0.57659864", "text": "public void addData(T data);", "title": "" }, { "docid": "d19406fc6d8d5d111471dd0353c65a74", "score": "0.576198", "text": "protected void addMessage(ChatMessage message) {\r\n\r\n //check if this message is empty\r\n if (isMessageEmpty(message.getMessage()) || chatMessages.containsKey(message.getId())) {\r\n return;\r\n }\r\n\r\n // add to adapter and display it\r\n chatMessages.put(message.getId(),message);\r\n adapter.add(message);\r\n adapter.notifyDataSetChanged();\r\n\r\n // scroll the message layout container\r\n scroll();\r\n\r\n }", "title": "" }, { "docid": "862533946f7a2449c05bf6a0d953bd2e", "score": "0.57566565", "text": "public void send(Object data);", "title": "" }, { "docid": "f154a7d099b8464d3c8bd138830af695", "score": "0.57488203", "text": "protected void addMessageToBuffer(LogMessage msg) \n\t{\n\t\tsynchronized (messageBuffer) \n\t\t{\n\t\t\t// If the maximum size of the buffer has been exceeded, remove oldest message\n\t\t\tif (messageBuffer.size() > MAX_BUFFER_SIZE)\n\t\t\t{\n\t\t\t\tmessageBuffer.poll();\n\t\t\t}\n\n\t\t\tmessageBuffer.add(msg);\n\t\t}\n\t}", "title": "" }, { "docid": "3fdf3d6fbea5fd0621012b5a444e9b88", "score": "0.5748172", "text": "@Override\r\n\t\tpublic void handleMessage(Message msg)\r\n\t\t{\n\t\t\tswitch (msg.what)\r\n\t\t\t{\r\n\t\t\t\tcase UConstants.MESSAGE_DATA_OK:\r\n\t\t\t\t{\r\n\t\t\t\t\tupdateUserData((HashMap<String, Object>) msg.obj);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase UConstants.MESSAGE_DATA_ERROR:\r\n\t\t\t\t{\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "cb3ace6e3be7aa90ab9c7e4a173af658", "score": "0.5747059", "text": "public void sendMessage(ChatMessage msg);", "title": "" }, { "docid": "3c833195a1790dcfe1f5a7dd9f24579c", "score": "0.57361585", "text": "public void sendMeassge(int id, String name,Date date, String type, String message){\n\t\tthis.MessgeQueue.add(new Protocol(id, name, date, type, message));\n\t\tsynchronized (this){\n\t\t\tthis.notify();\n\t\t}\n\t}", "title": "" }, { "docid": "9d6fd26c624a7a1f33ac936424ade00c", "score": "0.57305855", "text": "void addReply(Message msg);", "title": "" }, { "docid": "295b90efd6b1de0e864681b3df927849", "score": "0.57280505", "text": "public synchronized void addMessage(Message message) {\n \tif(message.containsTag(\"global\")) {\n \t\taddRequestedGlobal(message);\n \t\tmessage = Message.replaceTags(message, new String[] {\"global\"}, new String[] {\"requested\"});\n \t}\n \tgetFutureMessageList().add(message);\n }", "title": "" }, { "docid": "7dffe51eade531d8cb7bf39ed44376a5", "score": "0.57246274", "text": "@Override\n\tpublic void sendMessage() {\n\t\t\n\t}", "title": "" }, { "docid": "44ad33cc21a83a24a16e0c1d73ab0c5b", "score": "0.5724174", "text": "void addVolatileMessage(MessageObject message);", "title": "" }, { "docid": "fb4ac1600ee71bd1dfb9c426eb1bd312", "score": "0.5723493", "text": "void encode(Message paramMessage, Appendable paramAppendable);", "title": "" }, { "docid": "6e1d0eafb3fd0f2ee983cf5c1dd318d0", "score": "0.5722337", "text": "@Override\n public void messageSent(User recipient, Message message) {\n }", "title": "" }, { "docid": "5ee42d9674e29ca32dbdf66b53810f8f", "score": "0.5710534", "text": "public Message addMessage(Integer sessionId, \n\t\t\tMessage message);", "title": "" }, { "docid": "d428f0c30385c9767f1043680781b0bb", "score": "0.5696374", "text": "public synchronized void addMessage(SubsystemMessage msg) {\n\n log.info(\"Received \" + msg.getMessageName() + \" subsystem message\");\n\n // Add the message\n messages.add(msg);\n\n // Notify the threads\n notifyAll();\n }", "title": "" }, { "docid": "8af731f26369a22a55693399492de620", "score": "0.56889635", "text": "void storeMessage(String messageId, XMLObject message);", "title": "" }, { "docid": "3d48bbfe9ebd250649148e07a44fd469", "score": "0.56828", "text": "@Override\n\t\t\t\t\t\t\tpublic void onMessageSendSuccess(Chat chat,\n\t\t\t\t\t\t\t\t\tString message) {\n\n\t\t\t\t\t\t\t\tMyData md = new MyData();\n\t\t\t\t\t\t\t\tDBChatData d = new DBChatData();\n\n\t\t\t\t\t\t\t\tCalendar c = Calendar.getInstance();\n\t\t\t\t\t\t\t\tDate today = c.getTime();\n\t\t\t\t\t\t\t\tmd.date = \"\" + today.getTime();\n\n\t\t\t\t\t\t\t\tmd.description = message;\n\t\t\t\t\t\t\t\t// 본인 사진의 Url가 들어가야됨\n\t\t\t\t\t\t\t\tmd.imageUrl = PropertyManager.getInstance()\n\t\t\t\t\t\t\t\t\t\t.getProperties()\n\t\t\t\t\t\t\t\t\t\t.split(PropertyManager.SPLITE_STRING)[6];\n\t\t\t\t\t\t\t\tmd.name = \"Me\";\n\t\t\t\t\t\t\t\tmd.email = PropertyManager.getInstance()\n\t\t\t\t\t\t\t\t\t\t.getId();\n\t\t\t\t\t\t\t\tmAdapter.add(md);\n\t\t\t\t\t\t\t\tmList.setSelection(mAdapter.getCount() - 1);\n\n\t\t\t\t\t\t\t\t// DB에 바로바로 저장\n\t\t\t\t\t\t\t\td.email = md.email;\n\t\t\t\t\t\t\t\td.message = md.description;\n\t\t\t\t\t\t\t\td.time = \"\" + today.getTime();\n\t\t\t\t\t\t\t\tDBModel.getInstance()\n\t\t\t\t\t\t\t\t\t\t.insert(d, targetTableName);\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "2aa5d945d1942979ecb7fe5ac0f3c71d", "score": "0.56700665", "text": "@Override\n public void handleAction(Object someData) {\n Message msg = (Message) someData;\n\n // Generate the tag to add to the map.\n MarkerOptions mo = new MarkerOptions();\n mo.position(new LatLng(msg.getLatitude(), msg.getLongitude()));\n mo.title(msg.getContent());\n mo.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE));\n\n // Add it to the map.\n Marker marker = mMap.addMarker(mo);\n\n // Add it to the list of markers so we can keep track of it.\n allMarkersMap.put(marker, msg);\n }", "title": "" }, { "docid": "c031f008aaa65ffc4c00674e68a9af30", "score": "0.5657432", "text": "@Override\n public void update(MessageToClient message) throws NullPointerException {\n if (message == null)\n throw new NullPointerException(\"msg\");\n sendUpdates(message);\n System.out.println(\"Send message \" + message.getType() + \" to \" + message.getClient());\n }", "title": "" }, { "docid": "f4aa3953ca02f68f93021c50b60cd2eb", "score": "0.56546015", "text": "public String getData(){\n return message;\n }", "title": "" }, { "docid": "fa4346e56e1f4f813520e14de8fb585c", "score": "0.5641567", "text": "public synchronized void addMessage(byte msgdata[])\n throws InvalidMessageException {\n try {\n\n Class impl =\n (Class) registeredMessages.get(new Integer(msgdata[0]));\n\n SubsystemMessage msg = (SubsystemMessage) impl.newInstance();\n\n msg.fromByteArray(msgdata);\n\n addMessage(msg);\n\n return;\n } catch (IllegalAccessException iae) {\n } catch (InstantiationException ie) {\n }\n\n throw new InvalidMessageException(\"Could not instantiate message class\");\n }", "title": "" }, { "docid": "219fc0fdeede0f352e8a955e115429fa", "score": "0.5632862", "text": "public void addMessage(final int theChatID, final ChatMessage theMessage) {\n List<ChatMessage> list = getMessageListByChatId(theChatID);\n list.add(theMessage);\n getOrCreateMapEntry(theChatID).setValue(list);\n }", "title": "" }, { "docid": "aaf207907b3af2e824cb57dae4994f21", "score": "0.5629859", "text": "void sendMessage(T message);", "title": "" }, { "docid": "58806e2bf5818f05d846ad90f944dc7d", "score": "0.5628203", "text": "public void putMessage(String message) {\n buffer[freePosIndex] = message;\n tempBuffer = \"\"; // limpa o buffer temporario\n freePosIndex = (freePosIndex + 1) % bufferSize;\n }", "title": "" }, { "docid": "c455cbff6aa2eb505005b0d780d0bfec", "score": "0.5616898", "text": "public void addMessageDetail(Message msg) throws Exception {\n /*insert code for inserting a new Message to table Message*/\n String insert = \"insert into MessageDetail values(?,?,?,?,?)\";\n Connection con = new DBContext().getConnection();\n\n PreparedStatement ps = con.prepareStatement(insert);\n ps.setString(1, msg.getFrom());\n ps.setString(2, msg.getTo());\n ps.setDate(3, new Date(msg.getDateCreated().getTime()));\n ps.setString(4, msg.getContent());\n\n switch (msg.getType()) {\n case LOG_IN:\n ps.setString(5, \"Login\");\n break;\n case LOG_OUT:\n ps.setString(5, \"Logout\");\n break;\n case NORMAL:\n ps.setString(5, \"Message\");\n break;\n case PROFILE:\n ps.setString(5, \"Profile\");\n break;\n case HISTORY:\n ps.setString(5, \"History\");\n break;\n default:\n break;\n }\n\n ps.executeUpdate();\n ps.close();\n con.close();\n }", "title": "" }, { "docid": "61275a8d01348352cc50b962dc98ae7c", "score": "0.56084645", "text": "void update(T type, Object... message);", "title": "" }, { "docid": "9af51148e4eb8ce66218ae51c9ee95f7", "score": "0.56062406", "text": "public void sendMessage(User user, String message) {\n\t\tuser.getMessages().add(message);\n\t}", "title": "" }, { "docid": "143d6dc57a952d61774b2b0fbe6f05af", "score": "0.5606022", "text": "public synchronized void addIncomingMessage(String message){\n this.messageLogs.addMessage(message);\n this.display.addMessage(message);\n }", "title": "" }, { "docid": "6b9a9a0b255f175672a1efe3a2a7a918", "score": "0.56002545", "text": "public void add(Message aMessage) {\r\n\t\tif(isFull()) expandList(); \r\n\t\tassert(!isFull()) : \"List is full and something happened in expandList()\";\r\n\t\telements[tail] = aMessage;\r\n\t\ttail = (tail + 1) % elements.length;\r\n\t\tcount++;\r\n\t}", "title": "" }, { "docid": "91cfafffabed680b3385148dd0b9a690", "score": "0.5595428", "text": "public void add(String content) {\n Message message = new Message(status, content);\n messages.add(message);\n }", "title": "" }, { "docid": "770f3695639f5e58c64837b7032b1253", "score": "0.5590617", "text": "void sendMessage(ChatMessage msg) {\n\t\ttry {\n\t\t\toutputStream.writeObject(msg);\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tdisplay(\"Exception writing to server: \" + e);\n\t\t}\n\t}", "title": "" }, { "docid": "84237b8f2ef58bda951479efb04562dc", "score": "0.55847484", "text": "public synchronized void addMsg(String msg)\r\n\t{\r\n\t\tchatroom.add(msg);\r\n\t}", "title": "" }, { "docid": "20f90c050bd651b30e5ac35e5c053e70", "score": "0.5584171", "text": "@Override\r\n\tpublic void messageSent(IoSession session, Object message) throws Exception {\n\t\tsuper.messageSent(session, message);\r\n\t}", "title": "" }, { "docid": "0789c9c8222bebac2e4538fd83cde7a6", "score": "0.5577644", "text": "public void addData(@NonNull T data) {\n mData.add(data);\n notifyItemInserted(mData.size());\n compatibilityDataSizeChanged(1);\n }", "title": "" }, { "docid": "84e782d661fd849ee283296046112b41", "score": "0.55721956", "text": "public void addLogMessage(String message) {\n\t\tchatModel.addmessagetoDatabase(message, this.userID);\n\t}", "title": "" }, { "docid": "d83f615e4ede79947dd364b80a7b1c4a", "score": "0.5569837", "text": "public Message(byte[] data) {\n this.data = ByteBuffer.wrap(data);\n }", "title": "" }, { "docid": "12ddf887d8b197af8a34a4683317bb09", "score": "0.5561037", "text": "public void add(Message m) {\n if (m != null) {\n queue.add(m);\n }\n }", "title": "" }, { "docid": "93cfe630b695d8086b6745d4a90dc3d2", "score": "0.5559031", "text": "@SuppressWarnings(\"rawtypes\")\n\tpublic DCMessage(int message, Object data){\n\t\tthis.data = data;\n\t\t//We make some type controls to increase the validity of provided data.\n\t\tif(data != null){\n\t\t\tswitch(message){\n\t\t\tcase(MESSAGE)\t: if(data.getClass().equals(String.class)) \t{this.message = MESSAGE;} else{this.message = UNDEFINED;} break;\n\t\t\tcase(ERROR)\t\t: if(data.getClass().equals(String.class))\t{this.message = ERROR;} else{this.message = UNDEFINED;} break;\n\t\t\tcase(DATABASE_GAMES): \n\t\t\t\tif(data instanceof List){\n\t\t\t\t\tif(!((List) data).isEmpty()){\n\t\t\t\t\t\tif(((List) data).iterator().next().getClass().equals(Game.class)){\n\t\t\t\t\t\t\tthis.message = message;\n\t\t\t\t\t\t} else{\n\t\t\t\t\t\t\tthis.message = UNDEFINED;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else{\n\t\t\t\t\t\t//If the list is empty, we can safely ignore containing type\n\t\t\t\t\t\tthis.message = message;\n\t\t\t\t\t}\n\t\t\t\t} else{this.message = UNDEFINED;} break;\n\t\t\tcase(INVITATIONS): \n\t\t\t\tif(data instanceof List){\n\t\t\t\t\tif(!((List) data).isEmpty()){\n\t\t\t\t\t\tif(((List) data).iterator().next().getClass().equals(Invitation.class)){\n\t\t\t\t\t\t\tthis.message = message;\n\t\t\t\t\t\t} else{\n\t\t\t\t\t\t\tthis.message = UNDEFINED;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else{\n\t\t\t\t\t\t//If the list is empty, we can safely ignore containing type\n\t\t\t\t\t\tthis.message = message;\n\t\t\t\t\t}\n\t\t\t\t} else{ this.message = UNDEFINED;} break;\n\t\t\tdefault: this.message = UNDEFINED; break;\n\t\t\t}\n\t\t} else{\n\t\t\tthis.message = UNDEFINED;\n\t\t}\n\t}", "title": "" }, { "docid": "399dc8c13255087ab3ecd349a1150e32", "score": "0.55581665", "text": "public void addMessage(AddMessageDTO dto) {\n metricsService.updateLatest(dto.latest);\n\n if(dto.username == null){\n if (!requests.isUserLoggedIn(dto.userId)) {\n halt(401, \"You need to sign in to post a message\");\n }\n }\n else {\n var userIdRes = userRepository.getUserId(dto.username);\n\n if (!userIdRes.isSuccess()) {\n responses.setStatus(HttpStatus.NO_CONTENT_204);\n return;\n }\n\n dto.userId = userIdRes.get();\n }\n\n var rs = messageRepository.addMessage(dto.content, dto.userId);\n if (rs.isSuccess()){\n if (requests.isFromSimulator(dto.authorization)) {\n responses.setStatus(HttpStatus.NO_CONTENT_204);\n } else {\n requests.putAttribute(FLASH, \"Your message was recorded\");\n presentationController.redirect(\"/\");\n }\n } else {\n if (requests.isFromSimulator(dto.authorization)) {\n responses.setStatus(HttpStatus.FORBIDDEN_403);\n } else {\n presentationController.redirect(\"/\");\n }\n }\n\n }", "title": "" }, { "docid": "5fe26fb385989ca6d515924a4475437f", "score": "0.55552256", "text": "public void userAdd (String data) \r\n {\r\n String message, add = \": :Connect\", done = \"Server: :Done\", name = data;\r\n //ta_chat.append(\"Before \" + name + \" added. \\n\");\r\n users.add(name);\r\n //ta_chat.append(\"After \" + name + \" added. \\n\");\r\n String[] tempList = new String[(users.size())];\r\n users.toArray(tempList);\r\n }", "title": "" }, { "docid": "e59aa1f69743df8956489fc7edcc7e24", "score": "0.55525595", "text": "private void addData(TransmissionData data) {\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n\n values.put(JSON, data.getData().toString());\n values.put(METHOD, data.getMethod().toString());\n values.put(PATH, data.getPath());\n values.put(POST_FUNCTION_TYPE, data.getPostFuntionType().toString());\n\n db.insert(TABLE_DATA, null, values);\n\n this.mCursor = db.rawQuery(\"SELECT \" + KEY_ID + \" FROM \" + TABLE_DATA + \" ORDER BY \" + KEY_ID + \" DESC LIMIT 1\", null);\n if (this.mCursor.moveToFirst()) {\n data.setId(Integer.parseInt(this.mCursor.getString(0)));\n }\n this.mCursor.close();\n\n this.notifyDBEventObservers(new DBEvent(DBEvent.EventType.CREATED, data));\n }", "title": "" }, { "docid": "c481bafed1ba71ab43209462fa1a9868", "score": "0.55468595", "text": "public String put(ByteMessage message) throws IOException;", "title": "" }, { "docid": "67a5b9bb7d506b022e670a9ef3b33fb2", "score": "0.55431634", "text": "public void addGlobalInfoMessage(String messageId, Object... arguments);", "title": "" }, { "docid": "dd8aef1f9a5e5ab380a7b6d525038b88", "score": "0.55380154", "text": "@Override\n\tpublic void sendMessage( String channel, Object data )\n\t{\n\t\tif( isReady() )\n\t\t\tendpointSupport.sendMessage( channel, data );\n\t}", "title": "" }, { "docid": "02c43e818efa141ba5ae776e57631ff4", "score": "0.55370444", "text": "private void receiveDataMessage(RouterDataMessage message) {\n tracker++;\n RoutingPlan plan = new RoutingPlan(message.getBranch(), self);\n // TODO: Is this right, or do we need to increment here?\n sendData(plan, message.getTracker());\n }", "title": "" }, { "docid": "9dce434cd56986fa2f471395904efef0", "score": "0.55349547", "text": "public void ajouterMessage() {\n message.setUtilisateur(utilisateur);\n message.setDateMessage(new Date());\n// FacesContext.getCurrentInstance().addMessage(\"connexionForm:msLogin\", new FacesMessage(\"pid : \" + pid));\n Tache tache = tacheEJB.findTache(pid);\n message.setTache(tache);\n message = messageEJB.creerMessage(message, tache);\n }", "title": "" }, { "docid": "eb719dce38d49ceffadd4f1a7dffb7c0", "score": "0.55348796", "text": "public void addComponentInfoMessage(String clientId, String messageId, Object... arguments);", "title": "" }, { "docid": "d4c1c7400758a064233481d72e28b3db", "score": "0.5533845", "text": "public MessageClypeData(){\n super();\n this.message = \"NULL\";\n }", "title": "" }, { "docid": "6c5b32515410f4b74e7a0be2495723eb", "score": "0.5533698", "text": "public abstract void sendMessage(Message message);", "title": "" }, { "docid": "44f0635bf80e1ba4503e823ea8f19cc4", "score": "0.5530915", "text": "@Override\n public void sendLogMessage(final LogMessageDTO logMessage) {\n this.observableList.add(new TableEntryOfLogMessages(logMessage.getServerTimestamp(),\n logMessage.getLogTimestamp(), logMessage.getIdentifier(),\n logMessage.getLogLevel(), logMessage.getLoggingClass(), logMessage.getLogMessage()));\n }", "title": "" }, { "docid": "9594ed1870a82a37bede25fb335c4e58", "score": "0.5530417", "text": "private synchronized void addMessageNow(LogNode node) {\r\n objectModel.addMessage(node);\r\n processModel.addMessage(node);\r\n waypointModel.addMessage(node);\r\n allMessageModel.addMessage(node);\r\n }", "title": "" }, { "docid": "115ccbdb71904900bb4dcf1653407069", "score": "0.5529783", "text": "void sendMessage(ServerMessage message);", "title": "" }, { "docid": "281d750c94b0157f809f9e67030bf1e2", "score": "0.5528069", "text": "public synchronized void setMessage (Object message)\n {\n\tmyMessage = message;\n }", "title": "" }, { "docid": "347aefc8745a4e987e74cad9d7d8aa48", "score": "0.55268145", "text": "Object get_msg_data(){\n\t\t return msg_data;\n\t\t}", "title": "" }, { "docid": "0aa9023594b321127327c55f5014b13e", "score": "0.5524091", "text": "public MessageReference addContent(final Object... content) {\n if (this.content == null) {\n return new SimpleMessageReference(key, content);\n } else {\n final List<Object> mergedContent = new ArrayList<Object>(this.content.size() + content.length);\n mergedContent.addAll(this.content);\n mergedContent.addAll(Arrays.asList(content));\n return new SimpleMessageReference(key, mergedContent);\n }\n }", "title": "" }, { "docid": "2d9f79b817463790d3de61ed96887e29", "score": "0.5523744", "text": "public abstract void onCustomPayload(EntityPlayerMP sender, String channel, PacketBuffer data);", "title": "" }, { "docid": "0f59d27ddfa53d14510a4468d3f61f7e", "score": "0.5522801", "text": "@Override\n public void handleAction(Object someData) {\n Message msg = (Message) someData;\n\n // Generate the tag on the map.\n MarkerOptions mo = new MarkerOptions();\n mo.position(new LatLng(msg.getLatitude(), msg.getLongitude()));\n mo.title(msg.getContent());\n mo.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE));\n\n // Add it to the map.\n Marker marker = mMap.addMarker(mo);\n\n // Add it to the list of markers we have added to the map.\n allMarkersMap.put(marker, msg);\n }", "title": "" }, { "docid": "4bc6916254224786bf9b6134d7bc5773", "score": "0.5521175", "text": "@Override //new message inserted\n public void onChildAdded(@NonNull DataSnapshot dataSnapshot, @Nullable String s) {\n FriendlyMessage mFriendlyMessage = dataSnapshot.getValue(FriendlyMessage.class);\n mMessageAdapter.add(mFriendlyMessage);\n }", "title": "" }, { "docid": "e0b751cdd9687b85cc17061092495201", "score": "0.55030584", "text": "void send(Message message);", "title": "" }, { "docid": "c7c142781ec2c1b41ff07e3eebd3745f", "score": "0.5502449", "text": "public void setMessage(Object requestor, String message, MessageType messageType);", "title": "" }, { "docid": "b0be67f63e93b626ee1f4b7dfc67bafb", "score": "0.55021703", "text": "public void setMessage(){\n memberChangeInfo.sug_fName.setText(member.getFirstName());\n memberChangeInfo.sug_lName.setText(member.getLastName());\n memberChangeInfo.sug_eMail.setText(member.geteMail());\n memberChangeInfo.sug_telephone.setText(member.getTelephone());\n memberChangeInfo.membershipNumber.setText(member.getMembershipId());\n memberChangeInfo.coupon.setText(\"\" + member.getStamps());\n if(member.getLastOrder().equals(\"null\")){\n memberChangeInfo.consumptionTime.setText(\"\");\n memberChangeInfo.consumptionCost.setText(\"\");\n memberChangeInfo.consumptionUseCoupon.setText(\"\");\n return;\n }\n OrderData orderData = new OrderData();\n OrderList orderList = orderData.loadInfo();\n for(Order each:orderList.getOrders()){\n if(each.getOrderId().equals(member.getLastOrder())){\n memberChangeInfo.consumptionTime.setText(each.getDate());\n memberChangeInfo.consumptionCost.setText(\"\" + each.getAmountMoney());\n memberChangeInfo.consumptionUseCoupon.setText(each.getPayingMethod());\n return;\n }\n }\n }", "title": "" }, { "docid": "380d217d53e2fccdf97fb1c6ce311cc4", "score": "0.5499843", "text": "void generateSendDataEvent()\n {\n final NetworkEvent event = new NetworkEvent();\n\n final long eventTime = createTravelTime();\n event.setEventTime(eventTime);\n event.setEventType(EventType.FromApplication);\n\n // if sending data in both directions, randomly select the side.\n if (isBidirectional() && random.nextDouble() < 0.50)\n {\n event.setRecipient(getSideB());\n }\n else\n {\n event.setRecipient(getSideA());\n }\n\n eventQueue.add(event);\n }", "title": "" }, { "docid": "0513a35bf68721af8f56b23cb18586b3", "score": "0.54947627", "text": "com.google.protobuf.ByteString getMsgData();", "title": "" }, { "docid": "5cd1e4046bdf3c468e13222eb23b1b4a", "score": "0.5491223", "text": "public void addBreedMessage(String message)\n {\n breedMessages.add(message);\n }", "title": "" }, { "docid": "63e47f8269c5bcda800b37f9b95f7f1b", "score": "0.5486748", "text": "public void post(Message message) throws java.rmi.RemoteException;", "title": "" }, { "docid": "51f1bb55603f9c7fc225dc490852d51f", "score": "0.54837525", "text": "public ChannelMessage data() {\n return msg;\n }", "title": "" }, { "docid": "3378b4226a7432baddb219f1a769f040", "score": "0.54836905", "text": "public void addMessage(SMTPServerMessage message) {\n smtpProcessingList.put(message.getMessageServiceId(),message);\n }", "title": "" }, { "docid": "7900d487d29a8509d7968bb865f4fae1", "score": "0.54770446", "text": "HttpStatus addMessage(String text, List<String> recipients, String userId);", "title": "" }, { "docid": "ce308d10b0dbb692954b313db1c745b0", "score": "0.547622", "text": "private void addNewSupportMessage(String message) {\n //Add a new blank message to the database\n try {\n if (message != null) {\n message = \"\";\n }\n // if Table has messages,\n if(acrQuery.getMaxMessageID() >= 0) {\n acrQuery.addMessage((acrQuery.getMaxMessageID() + 1), message);\n }else{\n acrQuery.addMessage(0, message);\n }\n } catch (Exception e) {\n Log.e(\"EXCEPTION IS : \", String.valueOf(e.getMessage()));\n }\n updateMessagesFromDB();\n }", "title": "" } ]
20a530469e470921173541b9e40bed08
Return screen resolution(width x height)
[ { "docid": "7b5063fb6e9be76ebabfbd2af0ca454f", "score": "0.81309724", "text": "public String getScreenResolution() {\n return mInfoMap.get(SCREEN_WIDTH) + \"x\" + mInfoMap.get(SCREEN_HEIGHT);\n }", "title": "" } ]
[ { "docid": "f483c749cb82cf766078354aac2c6c8c", "score": "0.8193752", "text": "public double getScreenResolution() { return 72; }", "title": "" }, { "docid": "a177a302f3683d5a8ff8d3e277a2ac05", "score": "0.77317405", "text": "public point2D getScreenResolution() {\n\t\treturn screenResolution;\n\t}", "title": "" }, { "docid": "b60b9e83f0bb339f5ff0948e1400abc1", "score": "0.75780106", "text": "public int getScreenSize()\r\n {\r\n return screenSize;\r\n }", "title": "" }, { "docid": "c599456a1a34a1ebef3f7905f3dbe6e7", "score": "0.75375277", "text": "public static void getDeviceSize(Context context){\n WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);\n Display display = wm.getDefaultDisplay();\n //int widthInPixel = display.getWidth();\n //int heightInPixel = display.getHeight();\n\n DisplayMetrics displayMetrics = new DisplayMetrics();\n ((WindowManager) context.getSystemService(Context.WINDOW_SERVICE))\n .getDefaultDisplay().getMetrics(displayMetrics);\n double x = Math.pow(displayMetrics.widthPixels/displayMetrics.xdpi,2);\n double y = Math.pow(displayMetrics.heightPixels/displayMetrics.ydpi,2);\n double screenInches = Math.sqrt(x+y);\n Log.d(\"debug\",\"Screen inches : \" + screenInches);\n\n Point size = new Point();\n display.getSize(size);\n //int height = size.y;\n width = size.x;\n\n screenSize = screenInches;\n }", "title": "" }, { "docid": "945458f0830116b4cc99d2e3bdc2f9e2", "score": "0.74759465", "text": "public Dimension getScreenSize(){\n\t\treturn device.getFullScreenWindow().getSize();\n\t}", "title": "" }, { "docid": "d4a54c083dbe5e7e759beb89e6e99f31", "score": "0.747358", "text": "public static Point getScreenSize() {\n Object displayManager = InternalApi.getSingleton(\"android.hardware.display.DisplayManagerGlobal\");\n try {\n Object displayInfo = displayManager.getClass().getMethod(\"getDisplayInfo\", int.class)\n .invoke(displayManager, Display.DEFAULT_DISPLAY);\n Class<?> cls = displayInfo.getClass();\n int width = cls.getDeclaredField(\"logicalWidth\").getInt(displayInfo);\n int height = cls.getDeclaredField(\"logicalHeight\").getInt(displayInfo);\n return new Point(width, height);\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n } catch (NoSuchMethodException e) {\n e.printStackTrace();\n } catch (NoSuchFieldException e) {\n e.printStackTrace();\n }\n return null;\n }", "title": "" }, { "docid": "3db724b235ec89bc616bf6cc27b75c87", "score": "0.7404716", "text": "public static void getAndroiodScreenProperty() {\n DisplayMetrics dm = new DisplayMetrics();\n //wm.getDefaultDisplay().getMetrics(dm);\n int width = dm.widthPixels; // 屏幕宽度(像素)\n int height = dm.heightPixels; // 屏幕高度(像素)\n float density = dm.density; // 屏幕密度(0.75 / 1.0 / 1.5)\n int densityDpi = dm.densityDpi; // 屏幕密度dpi(120 / 160 / 240)\n // 屏幕宽度算法:屏幕宽度(像素)/屏幕密度\n int screenWidth = (int) (width / density); // 屏幕宽度(dp)\n int screenHeight = (int) (height / density);// 屏幕高度(dp)\n\n\n Log.d(\"h_bl\", \"屏幕宽度(像素):\" + width);\n Log.d(\"h_bl\", \"屏幕高度(像素):\" + height);\n Log.d(\"h_bl\", \"屏幕密度(0.75 / 1.0 / 1.5):\" + density);\n Log.d(\"h_bl\", \"屏幕密度dpi(120 / 160 / 240):\" + densityDpi);\n Log.d(\"h_bl\", \"屏幕宽度(dp):\" + screenWidth);\n Log.d(\"h_bl\", \"屏幕高度(dp):\" + screenHeight);\n }", "title": "" }, { "docid": "42692e17f10ce09f96c64184e3dfa4e2", "score": "0.74004996", "text": "public Rectangle getScreenSize() {\n \t\tif (screenSize == null) {\n \t\t\tGraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();\n \t\t\tscreenSize = env.getMaximumWindowBounds(); \n \t\t}\n \t\t\n \t\treturn screenSize;\n \n \t}", "title": "" }, { "docid": "3b73ee08f35839debdfbe203c0aa250f", "score": "0.7380875", "text": "private void getWidthAndHeight() {\n DisplayMetrics displaymetrics = new DisplayMetrics();\n getActivity().getWindowManager().getDefaultDisplay().getMetrics(displaymetrics);\n screenHeight = displaymetrics.heightPixels;\n screenWidth = displaymetrics.widthPixels;\n }", "title": "" }, { "docid": "f669be7abc7fd8ca6aa237c1220caecf", "score": "0.7380303", "text": "private static Point getDisplaySize(Context context) {\n if (Util.SDK_INT < 25) {\n if (\"Sony\".equals(Util.MANUFACTURER) && Util.MODEL != null && Util.MODEL.startsWith(\"BRAVIA\")\n && context.getPackageManager().hasSystemFeature(\"com.sony.dtv.hardware.panel.qfhd\")) {\n return new Point(3840, 2160);\n } else if (\"NVIDIA\".equals(Util.MANUFACTURER) && Util.MODEL != null\n && Util.MODEL.contains(\"SHIELD\")) {\n // Attempt to read sys.display-size.\n String sysDisplaySize = null;\n try {\n Class<?> systemProperties = Class.forName(\"android.os.SystemProperties\");\n Method getMethod = systemProperties.getMethod(\"get\", String.class);\n sysDisplaySize = (String) getMethod.invoke(systemProperties, \"sys.display-size\");\n } catch (Exception e) {\n Log.e(TAG, \"Failed to read sys.display-size\", e);\n }\n // If we managed to read sys.display-size, attempt to parse it.\n if (!TextUtils.isEmpty(sysDisplaySize)) {\n try {\n String[] sysDisplaySizeParts = sysDisplaySize.trim().split(\"x\");\n if (sysDisplaySizeParts.length == 2) {\n int width = Integer.parseInt(sysDisplaySizeParts[0]);\n int height = Integer.parseInt(sysDisplaySizeParts[1]);\n if (width > 0 && height > 0) {\n return new Point(width, height);\n }\n }\n } catch (NumberFormatException e) {\n // Do nothing.\n }\n Log.e(TAG, \"Invalid sys.display-size: \" + sysDisplaySize);\n }\n }\n }\n\n WindowManager windowManager = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);\n Display display = windowManager.getDefaultDisplay();\n Point displaySize = new Point();\n if (Util.SDK_INT >= 23) {\n getDisplaySizeV23(display, displaySize);\n } else if (Util.SDK_INT >= 17) {\n getDisplaySizeV17(display, displaySize);\n } else if (Util.SDK_INT >= 16) {\n getDisplaySizeV16(display, displaySize);\n } else {\n getDisplaySizeV9(display, displaySize);\n }\n return displaySize;\n }", "title": "" }, { "docid": "e0efe4ec02e31b49b71e956c4533a53b", "score": "0.7281943", "text": "public static int getAndroiodScreenPropertyWidth() {\n DisplayMetrics dm = new DisplayMetrics();\n //wm.getDefaultDisplay().getMetrics(dm);\n int width = dm.widthPixels; // 屏幕宽度(像素)\n int height = dm.heightPixels; // 屏幕高度(像素)\n float density = dm.density; // 屏幕密度(0.75 / 1.0 / 1.5)\n int densityDpi = dm.densityDpi; // 屏幕密度dpi(120 / 160 / 240)\n // 屏幕宽度算法:屏幕宽度(像素)/屏幕密度\n int screenWidth = (int) (width / density); // 屏幕宽度(dp)\n int screenHeight = (int) (height / density);// 屏幕高度(dp)\n\n\n Log.d(\"h_bl\", \"屏幕宽度(像素):\" + width);\n Log.d(\"h_bl\", \"屏幕高度(像素):\" + height);\n Log.d(\"h_bl\", \"屏幕密度(0.75 / 1.0 / 1.5):\" + density);\n Log.d(\"h_bl\", \"屏幕密度dpi(120 / 160 / 240):\" + densityDpi);\n Log.d(\"h_bl\", \"屏幕宽度(dp):\" + screenWidth);\n Log.d(\"h_bl\", \"屏幕高度(dp):\" + screenHeight);\n return screenWidth;\n }", "title": "" }, { "docid": "f1eb1ce5bd4ef98432620d74a8865181", "score": "0.72758794", "text": "public abstract int getScreenWidth();", "title": "" }, { "docid": "2b811374f6a01fb2bd414440f32b73b3", "score": "0.72441036", "text": "public static Dimension getScreenDimension() {\n\t\tif (OSValidator.isMac()) {\n\t\t\treturn Toolkit.getDefaultToolkit().getScreenSize();\n\t\t}\n\t\treturn new Dimension(PCScreenWidth, PCScreenHeight);\n\t}", "title": "" }, { "docid": "00185cb0beac651e705547a65861a341", "score": "0.70954764", "text": "public static Dimension getMultiMonitorScreenSize() {\r\n Dimension screenSize = new Dimension();\r\n\r\n GraphicsEnvironment gEnvironment = GraphicsEnvironment.getLocalGraphicsEnvironment();\r\n GraphicsDevice[] devices = gEnvironment.getScreenDevices();\r\n for (GraphicsDevice device : devices) {\r\n DisplayMode displayMode = device.getDisplayMode();\r\n screenSize.height = Math.max(displayMode.getHeight(), screenSize.height);\r\n screenSize.width += displayMode.getWidth();\r\n }\r\n\r\n return screenSize;\r\n }", "title": "" }, { "docid": "b60d8a47eed2df7f5d762d6be5595ce7", "score": "0.70864785", "text": "public static int w_screen(){\n return App.getAppContext().getCurActivity().getWindowManager().getDefaultDisplay().getWidth();\n //return dm.widthPixels;\n }", "title": "" }, { "docid": "b7b0b64edade742673d8ac0756c6c878", "score": "0.7078936", "text": "public int getScreenW()\r\n/* 86: */ {\r\n/* 87:117 */ return this.gproperties.width;\r\n/* 88: */ }", "title": "" }, { "docid": "1dff6fe65ef29f34b0a5bd628c2a2c58", "score": "0.70778364", "text": "public interface IScreenInfoProvider {\n int getScreenHeight();\n int getScreenWidth();\n}", "title": "" }, { "docid": "68a9240eaf5d8d399f8180a81da9fc28", "score": "0.7028272", "text": "public static long getResolution() {\n return resolution;\n }", "title": "" }, { "docid": "7c3b6306de650123b131006c4b2b5b97", "score": "0.69906926", "text": "public static Point getDisplayDimensions(Context context) {\n DisplayMetrics metrics = context.getResources()\n .getDisplayMetrics();\n Point displayDimensions = new Point();\n displayDimensions.x = metrics.widthPixels;\n displayDimensions.y = (int) (metrics.heightPixels - 25 * metrics.density);\n\n\n return displayDimensions;\n }", "title": "" }, { "docid": "fc155bd6197307e2dc72cb323d92eaa0", "score": "0.69731814", "text": "public static int[] getScreenSize(Activity context) {\n Rect displayRect = new Rect();\n context.getWindow().getDecorView().getWindowVisibleDisplayFrame(displayRect);\n return new int[]{\n displayRect.left, displayRect.top,\n displayRect.right, displayRect.bottom};\n }", "title": "" }, { "docid": "3cc9f0ede1d1a2b44ec03399caa211f4", "score": "0.68966883", "text": "public static int getDisplaySize() {\n\t\tPoint p = new Point();\n\t\tgetDefaultDisplay().getSize(p);\n\t\treturn Math.max(p.x, p.y);\n\t}", "title": "" }, { "docid": "27d9fdcf46dc17c3d68a20c42e6d5655", "score": "0.6847557", "text": "private int getScreenImageSize() {\n DisplayMetrics outMetrics = new DisplayMetrics();\n getWindowManager().getDefaultDisplay().getMetrics(outMetrics);\n return (int) Math.max(outMetrics.heightPixels, outMetrics.widthPixels);\n }", "title": "" }, { "docid": "52ba57b10b2d5082eb547414a9ffc70c", "score": "0.68349093", "text": "public int mScreenWidthInPixels() {\n return mScreenWidthInPixels;\n }", "title": "" }, { "docid": "090ff0b67a7ba7a2ce55457c3b7044f8", "score": "0.68262976", "text": "public static DisplayMetrics getDisplayMetrics() {\n// if(windowManager == null) windowManager = (WindowManager) XApp.getContext().getSystemService(Context.WINDOW_SERVICE);\n// if(displayMetrics == null) displayMetrics = new DisplayMetrics();\n// windowManager.getDefaultDisplay().getMetrics(displayMetrics);\n return XApp.getContext().getResources().getDisplayMetrics();\n }", "title": "" }, { "docid": "4fcac6965b8a0c157630d824c6c00818", "score": "0.6817034", "text": "public static int h_screen(){\n return App.getAppContext().getCurActivity().getWindowManager().getDefaultDisplay().getHeight();\n }", "title": "" }, { "docid": "990ff5533dd6e81d3dcde16b70c9e79a", "score": "0.67994595", "text": "final public Vector2 getPhysicalScreenSize(final com.org.multigear.general.utils.Measure measure) {\r\n\t\tfinal float physicalWidth = Measure.Inch.convertTo(mWidthPixels / mDPI, measure);\r\n\t\tfinal float physicalHeight = Measure.Inch.convertTo(mHeightPixels / mDPI, measure);\r\n\t\treturn new Vector2(physicalWidth, physicalHeight);\r\n\t}", "title": "" }, { "docid": "7727373435d38da7d8abb066831544ee", "score": "0.67834634", "text": "private double getDPcm() {\n Window w = pMap.getScene().getWindow();\n Rectangle2D windowCentre = new Rectangle2D((w.getX() + w.getWidth()) / 2, (w.getY() + w.getHeight()) / 2, 1, 1);\n Screen screen = Screen.getScreensForRectangle(windowCentre).get(0);\n double dpi = screen.getDpi();\n\n return dpi / 2.54;\n }", "title": "" }, { "docid": "5215e2bedb0babe4098c31780017e69a", "score": "0.6748209", "text": "static public Vector2 getScreenScale(){\r\n\t\treturn screenScale;\r\n\t}", "title": "" }, { "docid": "d6f2e81feecd1ce1be8edf1d98ad5fda", "score": "0.67418534", "text": "public final int getScreenWidth()\n\t{\n\t\treturn fScreenWidth;\n\t}", "title": "" }, { "docid": "58448c869952c813d8ec852be5eb2f70", "score": "0.6739357", "text": "@SuppressWarnings(\"deprecation\")\n\tpublic static Point getScreenDimensions(Context context) {\n\t\tboolean oldWay = true;\n\t\tPoint size = new Point();\n\n\t\tWindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);\n\t\tDisplay display = wm.getDefaultDisplay();\n\t\tif (Compatibility.isCompatible(Build.VERSION_CODES.HONEYCOMB_MR2)) {\n\t\t\ttry {\n\t\t\t\tMethod method = Display.class.getDeclaredMethod(\"getSize\",\n\t\t\t\t\t\tnew Class[] { Point.class });\n\t\t\t\tmethod.invoke(display, size);\n\t\t\t\toldWay = false;\n\t\t\t} catch (Exception e) {\n\t\t\t\toldWay = true;\n\t\t\t}\n\t\t}\n\t\tif (oldWay) {\n\t\t\tsize.set(display.getWidth(), display.getHeight());\n\t\t}\n\t\treturn size;\n\t}", "title": "" }, { "docid": "5afa79bc5f1c532b1b9d9d295f50660a", "score": "0.6729692", "text": "public int getScreenH()\r\n/* 96: */ {\r\n/* 97:128 */ return this.gproperties.height;\r\n/* 98: */ }", "title": "" }, { "docid": "2c12177ceb78c583c596b4641022566e", "score": "0.67238414", "text": "final public Vector2 getScreenSize() {\r\n\t\treturn super.getScreenSize().clone();\r\n\t}", "title": "" }, { "docid": "31386bfdc68c09b1b2da3a4b14994834", "score": "0.6713718", "text": "public double getResolution() {\n return resolution;\n }", "title": "" }, { "docid": "87cb2ad07c089427feac002445e83495", "score": "0.6694616", "text": "public static int getScreenSize(Context context) {\n return context.getResources().getConfiguration().screenLayout\n & Configuration.SCREENLAYOUT_SIZE_MASK;\n }", "title": "" }, { "docid": "bbe558fbd0a5605d80d659ce2e62a58b", "score": "0.66879654", "text": "public static int getScreenWidth(Context context) {\n Resources resources = context.getResources();\n DisplayMetrics dm = resources.getDisplayMetrics();\n float density = dm.density;\n int width = dm.widthPixels;\n int height = dm.heightPixels;\n return width;\n }", "title": "" }, { "docid": "cc54eb609022033c574c8584da196a35", "score": "0.6669609", "text": "public static int StagetScreenWidth() {\n return StaticStatusService.screenWidth;\n }", "title": "" }, { "docid": "89fe1f603a4d7fdb0fa9986cf6418d4e", "score": "0.66524315", "text": "public final Dimension getScreenBounds()\n\t{\n\t\treturn fScreenBounds;\n\t}", "title": "" }, { "docid": "d4fce2a178ef6c66d8922e5f1f52c4dc", "score": "0.6649176", "text": "public abstract int getScreenHeight();", "title": "" }, { "docid": "5009ce715fa70f12527253b674de26d9", "score": "0.66338164", "text": "public String getResolution() {\n return resolution;\n }", "title": "" }, { "docid": "5009ce715fa70f12527253b674de26d9", "score": "0.66338164", "text": "public String getResolution() {\n return resolution;\n }", "title": "" }, { "docid": "5009ce715fa70f12527253b674de26d9", "score": "0.66338164", "text": "public String getResolution() {\n return resolution;\n }", "title": "" }, { "docid": "f5f6c642600759df31d0c00ddcdae5f4", "score": "0.65914977", "text": "int getWindowSizeInKb();", "title": "" }, { "docid": "16d486161475926e6e6481157ca0dfc7", "score": "0.6584238", "text": "public int calculateRoomSize() {\n DisplayMetrics dm = new DisplayMetrics();\n getWindowManager().getDefaultDisplay().getMetrics(dm);\n return (dm.widthPixels + dm.heightPixels) / 70;\n }", "title": "" }, { "docid": "dde989502017233cd8a9f653239a29c2", "score": "0.6574308", "text": "int calcScreenWidth(double percentW);", "title": "" }, { "docid": "dcfcb66504445b9a64be13e9750e919d", "score": "0.6541509", "text": "public Point getRoughDeviceDimensions(){\n\t\treturn getRoughDeviceDimensions(isPortrait());\n\t}", "title": "" }, { "docid": "5676cd73ec92d57678529ebcd0465193", "score": "0.65239716", "text": "public static int getScreenWidth(Context context) {\n\t\t WindowManager wm = (WindowManager) context .getSystemService(Context.WINDOW_SERVICE);\n\t\t//(WindowManager)context.getWindowManager().getDefaultDisplay().getMetrics(metric);\n\t\tPoint pp=new Point();\n\t\t wm.getDefaultDisplay().getSize(pp); // 屏幕宽度(像素)\n\t\tint width =pp.x;\n\t\treturn width;\n\t}", "title": "" }, { "docid": "74645b6669e83efa0d3e162378c43299", "score": "0.6515612", "text": "public String getResolution() {\n return resolution;\n }", "title": "" }, { "docid": "b4c38a02e862bb351c62c2cc8c9ab331", "score": "0.6502945", "text": "public static int getScreenWidth(Context context) {\n WindowManager windowManager = context.getSystemService(WindowManager.class);\n if (windowManager == null) {\n Log.e(TAG, \"Cannot retrieve window manager for screen size, unexpected behaviour may occur.\");\n return context.getResources().getDimensionPixelSize(R.dimen.default_screen_width);\n }\n\n Display display = windowManager.getDefaultDisplay();\n Point size = new Point();\n display.getSize(size);\n return size.x;\n }", "title": "" }, { "docid": "1aa15412887f0dad6eaadf11b61bec82", "score": "0.6490208", "text": "public void getWidthHeight()\n {\n Display display = getWindowManager().getDefaultDisplay();\n Point size = new Point();\n display.getSize(size);\n width = size.x;\n height = size.y;\n }", "title": "" }, { "docid": "599c660c28cd93cf1ce809c8b2ba57db", "score": "0.6480658", "text": "public Point getRoughDeviceDimensions(boolean portrait){\n\t\tWindowManager wm = null;\n\n\t\ttry{\n\t\t\twm = (WindowManager) context.getApplicationContext().getSystemService(Context.WINDOW_SERVICE);\n\t\t} catch(NullPointerException e){\n\t\t\ttry{\n\t\t\t\twm = (WindowManager) getApplicationContext().getSystemService(Context.WINDOW_SERVICE);\n\t\t\t} catch(Exception ex){\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\t// create our point\n\t\tPoint point = new Point();\n\n\t\t// if our version supports our preferred method (it seems more accurate for our purposes)\n\t\tif(Build.VERSION.SDK_INT > 16){\n\t\t\t// set our point the the real size of the screen\n\t\t\twm.getDefaultDisplay().getRealSize(point);\n\t\t} else{\n\t\t\t// otherwise use displaymetrics to get rough size of screen\n\t\t\tDisplayMetrics metrics = new DisplayMetrics();\n\t\t\twm.getDefaultDisplay().getMetrics(metrics);\n\n\t\t\t// put values into our point\n\t\t\tpoint.x = metrics.widthPixels;\n\t\t\tpoint.y = metrics.heightPixels;\n\t\t}\n\n\t\t// check screen orientation (since we are assuming phones, height should be larger than width)\n\t\tif(point.x > point.y && portrait){\n\t\t\t// portrait specified, but width was larger than height\n\t\t\t// swap\n\t\t\tint t = point.y;\n\t\t\tpoint.y = point.x;\n\t\t\tpoint.x = t;\n\t\t} else if(point.y > point.x && !portrait){\n\t\t\t// landscape specified, but height was larger than width\n\t\t\t// swap\n\t\t\tint t = point.y;\n\t\t\tpoint.y = point.x;\n\t\t\tpoint.x = t;\n\t\t}\n\n\t\t// return our point\n\t\treturn point;\n\t}", "title": "" }, { "docid": "9f298447ccc8dd552d1d1513f37865f8", "score": "0.6471667", "text": "public String getResolution() {\n return this.resolution;\n }", "title": "" }, { "docid": "6638b94ff739a8373632f114516d38cf", "score": "0.64540225", "text": "@Override\n\tpublic double getResolution() {\n\t\treturn this.resolution;\n\t}", "title": "" }, { "docid": "88622fd3738cea78bfee77999e6f64c6", "score": "0.6429399", "text": "void screenResize(int width, int height);", "title": "" }, { "docid": "0df040695f12538dc2acb5e2443706ea", "score": "0.64082366", "text": "public void sizingSetUp()\n {\n // Display sizing set-up\n Display display = getWindowManager().getDefaultDisplay();\n Point screenSize = new Point();\n display.getSize(screenSize);\n width = screenSize.x;\n height = screenSize.y;\n\n HEIGHT_UNIT = height / 10;\n }", "title": "" }, { "docid": "1d52d08eb444d090073ae8659aa6f0cb", "score": "0.6385648", "text": "private void getScreenWidth(Context context) {\n WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);\n Display display = wm.getDefaultDisplay();\n int screenWidth = display.getWidth();\n boardWidth = screenWidth;\n }", "title": "" }, { "docid": "2bcce4b0d06c79b49b5edb757e87c4f4", "score": "0.6371996", "text": "public float screenHighinDp() {\n if (screenHighDp == 0) {\n DisplayMetrics displayMetrics = context.getResources().getDisplayMetrics();\n screenHighDp = displayMetrics.heightPixels / displayMetrics.density;\n }\n return screenHighDp;\n }", "title": "" }, { "docid": "9d8626e7b6c97c27f1229b493f2223bc", "score": "0.63642853", "text": "public Resolution getResolution() {\n return resolution;\n }", "title": "" }, { "docid": "7c1587537a9e7d382ebdf551d4f87ff2", "score": "0.63629174", "text": "public SNSize displaySize() {\r\n Display mDisplay = null;\r\n if (manager instanceof Activity)\r\n mDisplay = getActivity().getWindowManager().getDefaultDisplay();\r\n else mDisplay = getDialog().getWindow().getWindowManager().getDefaultDisplay();\r\n Point point = new Point();\r\n DisplayMetrics displayMetrics = new DisplayMetrics();\r\n mDisplay.getMetrics(displayMetrics);\r\n int w = displayMetrics.widthPixels;\r\n int h = displayMetrics.heightPixels;\r\n return new SNSize(w, h);\r\n }", "title": "" }, { "docid": "943ad52aed6550d7856ba8a48808209f", "score": "0.63473874", "text": "public int getScreenWidth()\r\n/* 403: */ {\r\n/* 404:455 */ return super.getScreenWidth();\r\n/* 405: */ }", "title": "" }, { "docid": "e2bb9b90d3635589fbd67cc87c14985a", "score": "0.6337847", "text": "public static int getScreenWidth(Context context) {\n DisplayMetrics metrics = context.getResources().getDisplayMetrics();\n return metrics.widthPixels;\n }", "title": "" }, { "docid": "bb12ace8c7810ac4533350f1f6fb3989", "score": "0.63362885", "text": "public ResolutionFix(){\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tsetWidth((int) Math.floor(screenSize.getWidth()));\n\t\tsetHeight((int) Math.floor(screenSize.getHeight()));\t\t\n\t\tsetDefaultFontSize((int) (width*0.01)); \t\t\n\t\tsetscreenX((int) (width *.4));\n\t\tsetscreenY((int) (height *.4));\n\t\tsetfontSize(defaultFontSize);\n\t\t\n\t\tjSwingAdjust(); //Calls adjuster for Java Swing objects\n\t\t\n\n\t}", "title": "" }, { "docid": "39467f636099625fd7044fac16c1849f", "score": "0.63272285", "text": "public int getScreenHeightInPixels() {\n return mScreenHeightInPixels;\n }", "title": "" }, { "docid": "a9bdbc3926920e20503d4a032160a380", "score": "0.63134176", "text": "public static float getScreenWidth(Activity c) {\n Display display = c.getWindowManager().getDefaultDisplay();\n Point size = new Point();\n display.getSize(size);\n return size.x;\n }", "title": "" }, { "docid": "64ec0f4ef8945752dfcebdef754703c6", "score": "0.63113797", "text": "public float screenWithinDp() {\n\n if (screenWithDp == 0) {\n DisplayMetrics displayMetrics = context.getResources().getDisplayMetrics();\n this.screenWithDp = displayMetrics.widthPixels / displayMetrics.density;\n }\n return screenWithDp;\n }", "title": "" }, { "docid": "e9454406341dea51d870de42243999a8", "score": "0.6307577", "text": "public Resolution getResolution() {\n\t\treturn res;\n\t}", "title": "" }, { "docid": "97ca176fe9c80c209d457f6cf0f69564", "score": "0.6295744", "text": "public DisplayMetrics getDisplayMetrics()\n {\n return displayMetrics;\n }", "title": "" }, { "docid": "26bbb219d228f1ee92d72dbcd563eee2", "score": "0.624828", "text": "public abstract int getWindowSize();", "title": "" }, { "docid": "81cd94e8cd19d81c70395eed94dd90d9", "score": "0.62438583", "text": "public String getScreenDensity(Activity activity){\n \tfloat density = activity.getResources().getDisplayMetrics().density;\n \tif (density >= 4.0) {\n return \"xxxhdpi\";\n }\n if (density >= 3.0) {\n return \"xxhdpi\";\n }\n if (density >= 2.0) {\n return \"xhdpi\";\n }\n if (density >= 1.5) {\n return \"hdpi\";\n }\n if (density >= 1.0) {\n return \"mdpi\";\n }\n return \"ldpi\";\n }", "title": "" }, { "docid": "deb3674fa6711ab853ec8093a801019f", "score": "0.6232399", "text": "private void initScreenParameters() {\n\t\t// Gets the union bounds of all the graphics configurations.\n\t\tRectangle2D result = new Rectangle2D.Double();\n\t\tGraphicsEnvironment localGE = GraphicsEnvironment.getLocalGraphicsEnvironment();\n\t\tfor (GraphicsDevice gd : localGE.getScreenDevices()) {\n\t\t\tfor (GraphicsConfiguration graphicsConfiguration : gd.getConfigurations()) {\n\t\t\t\tRectangle2D.union(result, graphicsConfiguration.getBounds(), result);\n\t\t\t}\n\t\t}\n\t\tscreenWidth = (int) result.getWidth();\n\t\tscreenHeight = (int) result.getHeight();\n\t\t\n\t\ttry {\n\t\t\trobot = new Robot();\n\t\t} catch (AWTException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "00f5bbd0ea6702f2aa7f7f1f4ec8baaa", "score": "0.6228917", "text": "int getCurrentWindowWidth();", "title": "" }, { "docid": "f7651f75d0bd817cde5f9a60a6b79bb6", "score": "0.62129915", "text": "public String getResolution() {\n\t\treturn mResolution;\n\t}", "title": "" }, { "docid": "2efbb43d8a1266602758b87c9bd007c0", "score": "0.61910015", "text": "public int getMaxResolution() {\r\n return Integer.parseInt(getAttribute(\"maxResolution\"));\r\n }", "title": "" }, { "docid": "f3f295a3df204c76aa9c8a67164ec5fc", "score": "0.6188494", "text": "public static int getPhoneWidth() {\n return Constants.PHONE_WIDTH;\r\n// return ScreenUtil.getRealScreenWidth(MyApplication.getInstance().getCurrentActivity());\r\n }", "title": "" }, { "docid": "b57baaf73e2ff6377afd30cd390c694f", "score": "0.6187934", "text": "public String getDimensions(){\n return String.format(\"%.2f X %.2f\", this.height, this.width);\n }", "title": "" }, { "docid": "d6c8b0ec3edebe128399f87535a30936", "score": "0.6174965", "text": "public interface ScreenSpec {\n\n public String getResolution();\n\n public int getRefreshRate();\n\n public int getResponseTime();\n\n}", "title": "" }, { "docid": "2aface9b6d909e5df16730ce8c7ac68e", "score": "0.6166332", "text": "public ScreenBounds getBounds();", "title": "" }, { "docid": "c82d2a0f4438cdc3785a852d083e614e", "score": "0.616462", "text": "public int getMinResolution() {\r\n return Integer.parseInt(getAttribute(\"minResolution\"));\r\n }", "title": "" }, { "docid": "4c7cb18bee98463ae3a1d7bdeb014252", "score": "0.61544967", "text": "public double[] getResolution() \t{ return resolution; }", "title": "" }, { "docid": "3a2b0532837c89cbabeac4eac8cddf93", "score": "0.61293447", "text": "public static int getScreenWidth(Context ctx) {\n int w = 0;\n if (Build.VERSION.SDK_INT > 13) {\n Point p = new Point();\n ((WindowManager) ctx.getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay().getSize(p);\n w = p.x;\n } else {\n w = ((WindowManager) ctx.getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay().getWidth();\n }\n return w;\n }", "title": "" }, { "docid": "d942793b1bd424becf835e89c65ef6fa", "score": "0.60938156", "text": "private void someTests(){\n\n DisplayMetrics displayMetrics = getResources().getDisplayMetrics();\n float dpWidth = displayMetrics.widthPixels / displayMetrics.density;\n\n Log.d(TAG, \"Density \" + Float.toString(dpWidth));\n }", "title": "" }, { "docid": "71594fc6b6c886692491ab8095a3b392", "score": "0.6090051", "text": "int getWorldPixelWidth();", "title": "" }, { "docid": "8bf89f4414839a59ae518a998a35a083", "score": "0.607449", "text": "private DisplayMetrics displayMetrics(Context context) {\n Resources resources = context.getResources();\n DisplayMetrics displayMetrics = resources.getDisplayMetrics();\n return displayMetrics;\n }", "title": "" }, { "docid": "486bf2f02673f86f31b49e5ba6489923", "score": "0.60730886", "text": "public int getWidth()\n\t{\n\t\treturn Display.getWidth();\n\t}", "title": "" }, { "docid": "406cf178df71e36d2207d76d81fb6557", "score": "0.6061848", "text": "public static int getScreenHeight() {\n return StaticStatusService.screenHeight;\n }", "title": "" }, { "docid": "858f5ba710c07b1d1576f5ec36311c55", "score": "0.60589373", "text": "public static int getWidthScreenDevice(Context pContext) {\n DisplayMetrics mDisplayMetrics = pContext.getResources().getDisplayMetrics();\n return mDisplayMetrics.widthPixels;\n }", "title": "" }, { "docid": "41c69e092618df1010144aee4ec5aca4", "score": "0.6053556", "text": "public DisplayMetrics mo44751i() {\n DisplayMetrics displayMetrics = new DisplayMetrics();\n ((WindowManager) this.f41682b.getSystemService(\"window\")).getDefaultDisplay().getMetrics(displayMetrics);\n return displayMetrics;\n }", "title": "" }, { "docid": "b418264dddab0bfbde9bf332f906ac01", "score": "0.6047849", "text": "private static void setScreenSize(Activity activity) {\n DisplayMetrics metrics = new DisplayMetrics();\n activity.getWindowManager().getDefaultDisplay().getMetrics(metrics);\n\n int statusBarHeight = 0;\n int resourceId = activity.getResources().getIdentifier\n (\"status_bar_height\", \"dimen\", \"android\");\n if (resourceId > 0) {\n statusBarHeight = activity.getResources().getDimensionPixelSize(resourceId);\n }\n\n sScreenWidth = metrics.widthPixels;\n sScreenHeight = metrics.heightPixels - statusBarHeight;\n sScreenScale = sScreenWidth / 1080f;\n }", "title": "" }, { "docid": "018b11beab77f63c753c0c15cfd01d7e", "score": "0.60476345", "text": "public static Point getFirstScreenCenter() {\r\n GraphicsEnvironment gEnvironment = GraphicsEnvironment.getLocalGraphicsEnvironment();\r\n GraphicsDevice[] devices = gEnvironment.getScreenDevices();\r\n if (devices.length < 1) {\r\n return new Point(0, 0);\r\n }\r\n DisplayMode displayMode = devices[0].getDisplayMode();\r\n return new Point(displayMode.getWidth() / 2, displayMode.getHeight() / 2);\r\n\r\n }", "title": "" }, { "docid": "652734641d63849316f0e213388d8e7d", "score": "0.60395926", "text": "public int getCurrentWorkspaceScreen() {\n if (mWorkspace != null) {\n return mWorkspace.getCurrentPage();\n } else {\n return SCREEN_COUNT / 2;\n }\n }", "title": "" }, { "docid": "65eeb115f4882cfdb4545ae71aa23aa6", "score": "0.6015788", "text": "public double getDisplaySize() {\n return DisplaySize;\n }", "title": "" }, { "docid": "31c5bbe6a2c9bffcd1223118a2c6d128", "score": "0.60116535", "text": "public static int getLongestScreenSize(FragmentActivity context) {\n final DisplayMetrics displayMetrics = new DisplayMetrics();\n context.getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);\n final int height = displayMetrics.heightPixels;\n final int width = displayMetrics.widthPixels;\n\n // For this sample we'll use half of the longest width to resize our images. As the\n // image scaling ensures the image is larger than this, we should be left with a\n // resolution that is appropriate for both portrait and landscape. For best image quality\n // we shouldn't divide by 2, but this will use more memory and require a larger memory\n // cache.\n // TODO\n\n return Math.max(height, width);\n }", "title": "" }, { "docid": "3dad45fe22c4900325793747a71bd714", "score": "0.59988713", "text": "final public float getRealDPI() {\r\n\t\treturn mDPI;\r\n\t}", "title": "" }, { "docid": "8bd5ae234ee9e08fad3608185bdf4d2a", "score": "0.5973768", "text": "public Dimension getPixelSize () {\n Dimension res = new Dimension(\n mySize.width * mySpriteSize,\n mySize.height * mySpriteSize);\n \n return res;\n }", "title": "" }, { "docid": "41feebba6dc6e8f396508fdae0214527", "score": "0.5970002", "text": "private Dimension getWindowSize() {\n Double maxX = 600.0;\n Double maxY = 600.0;\n for (Shape s : shapes) {\n maxX = Math.max(s.getLocationPoint().getX() + s.getXLength(), maxX);\n maxY = Math.max(s.getLocationPoint().getY() + s.getYLength(), maxY);\n }\n return new Dimension(maxX.intValue(), maxY.intValue());\n }", "title": "" }, { "docid": "5979c609eaa413dee12b0bc7f52f95de", "score": "0.59672827", "text": "public static Rectangle getMaximumWindowBounds() {\n/* 131 */ localGraphicsEnvironment = GraphicsEnvironment.getLocalGraphicsEnvironment();\n/* */ \n/* */ try {\n/* 134 */ Method method = GraphicsEnvironment.class.getMethod(\"getMaximumWindowBounds\", (Class[])null);\n/* 135 */ return (Rectangle)method.invoke(localGraphicsEnvironment, (Object[])null);\n/* */ }\n/* 137 */ catch (Exception e) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 142 */ Dimension s = Toolkit.getDefaultToolkit().getScreenSize();\n/* 143 */ return new Rectangle(false, false, s.width, s.height);\n/* */ } \n/* */ }", "title": "" }, { "docid": "11c7f96cf391a0648a64eef76539bd6c", "score": "0.59661216", "text": "public Rectangle getZoomDims() {\n\t\treturn new Rectangle(zoomy,zoomx,zoomwidth,zoomheight);\n\t}", "title": "" }, { "docid": "48c534215ea4b531ef2ee4de6e65941a", "score": "0.5965484", "text": "long getWidth();", "title": "" }, { "docid": "8e2ad112cd8b862a1d7e437222a50eb5", "score": "0.5946922", "text": "public static double getScale () {\n return Math.min( (double) mDeviceHeight / mCameraPreview.getPreviewWidth(), (double) mDeviceWidth / mCameraPreview.getPreviewHeight() );\n }", "title": "" }, { "docid": "23e26e4450e15f3297fc6a22f67a67cf", "score": "0.5941595", "text": "public final int getScreenHeight()\n\t{\n\t\treturn fScreenHeight;\n\t}", "title": "" }, { "docid": "873a2fd55928a4c26a249e95aae92b81", "score": "0.5933003", "text": "public int getScreenWidth() {\n int columnWidth;\n WindowManager wm = (WindowManager) _context\n .getSystemService(Context.WINDOW_SERVICE);\n Display display = wm.getDefaultDisplay();\n\n final Point point = new Point();\n try {\n display.getSize(point);\n } catch (java.lang.NoSuchMethodError ignore) { // Older device\n point.x = display.getWidth();\n point.y = display.getHeight();\n }\n columnWidth = point.x;\n return columnWidth;\n }", "title": "" } ]
54ac449a256c1fcf99d26b9cb7b94b98
Immutable. The ID of the app analytics provider. This field should not be empty when creating a new third party app analytics link. It is unable to be modified after the creation of the link. optional int64 app_analytics_provider_id = 4 [(.google.api.field_behavior) = IMMUTABLE];
[ { "docid": "ab0913489584e9a2f38dfa74c6ced099", "score": "0.77401245", "text": "long getAppAnalyticsProviderId();", "title": "" } ]
[ { "docid": "2b31783e45923be4f124f93b401d25e0", "score": "0.65736216", "text": "boolean hasAppAnalyticsProviderId();", "title": "" }, { "docid": "e39136f7ac7f23e7666f68c406b7a957", "score": "0.58173937", "text": "public String getProviderId() {\n return providerId;\n }", "title": "" }, { "docid": "fd7df881f33e4f915bc61cce36588e5b", "score": "0.55458176", "text": "public abstract String getOAuthProviderId();", "title": "" }, { "docid": "2b6ee1d6199f46b22610165c2d62db43", "score": "0.5509149", "text": "@Override\n\tprotected String getAppId() {\n\t\treturn \"APP_ID\";\n\t}", "title": "" }, { "docid": "10c6a75157839c992f48ba9d52fd220c", "score": "0.5370441", "text": "java.lang.String getImpersonatedGaiaId();", "title": "" }, { "docid": "9a209514e92f46479e8e06ae77003db4", "score": "0.5296623", "text": "protected abstract String getProviderId();", "title": "" }, { "docid": "2a0f3e622350fe7b05b2e7f18f8e5761", "score": "0.5291522", "text": "public String getProviderId() {\n\t\tString id = null;\n\t\tif (this.providerIdStmt != null){\n\t\t\tValue vId = providerIdStmt.getObject();\n\t\t\tid = vId.stringValue();\n\t\t}\n\t\treturn id;\n\t}", "title": "" }, { "docid": "c82bf70c3f9a81fc34f89854df6f9b3d", "score": "0.5266923", "text": "public java.lang.String getImpersonatedGaiaId() {\n java.lang.Object ref = impersonatedGaiaId_;\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 impersonatedGaiaId_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "8b4cd774018fac34007f2bf562d4dfe2", "score": "0.5222205", "text": "public java.lang.String getObfuscatedGaiaId() {\n java.lang.Object ref = obfuscatedGaiaId_;\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 obfuscatedGaiaId_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "a1a12c59e6f2e30929ebb719fa1bb7f7", "score": "0.5220138", "text": "public java.lang.String getAppId() {\n java.lang.Object ref = appId_;\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 appId_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "bd8b78c7a98dea3f1bc7acdea9a951ff", "score": "0.52069753", "text": "com.google.protobuf.ByteString\n getImpersonatedGaiaIdBytes();", "title": "" }, { "docid": "a43bdee2736ab0063b64ab1fe97e74f1", "score": "0.51955277", "text": "public java.lang.String getAppId() {\n java.lang.Object ref = appId_;\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 appId_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "f118a42ef021c673db753970268051b0", "score": "0.519143", "text": "public com.google.protobuf.ByteString\n getObfuscatedGaiaIdBytes() {\n java.lang.Object ref = obfuscatedGaiaId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n obfuscatedGaiaId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "9e271b2e1d3feaeb43857be010c490cc", "score": "0.51397794", "text": "@java.lang.Override\n public com.google.protobuf.ByteString\n getObfuscatedGaiaIdBytes() {\n java.lang.Object ref = obfuscatedGaiaId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n obfuscatedGaiaId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "beb98fa1886c7d898b10a6f9529b1184", "score": "0.5134446", "text": "public String getAppid() {\r\n return appid;\r\n }", "title": "" }, { "docid": "a4423bbe3316bed95ee5461c9b953079", "score": "0.5127948", "text": "@java.lang.Override\n public java.lang.String getImpersonatedGaiaId() {\n java.lang.Object ref = impersonatedGaiaId_;\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 impersonatedGaiaId_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "270135e3758751f2b4d4e96eb20d5355", "score": "0.51223695", "text": "java.lang.String getApplicationId();", "title": "" }, { "docid": "072716bef7959a07fdee08f45dd51c59", "score": "0.5104023", "text": "@ApiModelProperty(example = \"1\", required = true, value = \"Unique ID assigned by Qualpay to this application.\")\n public Long getAppId() {\n return appId;\n }", "title": "" }, { "docid": "c2ccd06911ab172ea508fe61899fa633", "score": "0.5101892", "text": "public int getAppid() {\n return appid_;\n }", "title": "" }, { "docid": "3bb1cf19cadff9e5346d7ceda8797989", "score": "0.51018053", "text": "public com.google.protobuf.ByteString\n getImpersonatedGaiaIdBytes() {\n java.lang.Object ref = impersonatedGaiaId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n impersonatedGaiaId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "0349337d65d37ef6c2099ba247dae761", "score": "0.5092538", "text": "public int getAppid() {\n return appid_;\n }", "title": "" }, { "docid": "4849a21eecd4b7f96b63c21747c7c99c", "score": "0.5087991", "text": "public String getApplicationId();", "title": "" }, { "docid": "5acc5e2bb6a780a841af74ce1e646543", "score": "0.50841856", "text": "public java.lang.CharSequence getAppId() {\n return appId;\n }", "title": "" }, { "docid": "967b441ed8336d054abc4a21434f322e", "score": "0.5070632", "text": "public String getAppId() {\n return appId;\n }", "title": "" }, { "docid": "967b441ed8336d054abc4a21434f322e", "score": "0.5070632", "text": "public String getAppId() {\n return appId;\n }", "title": "" }, { "docid": "967b441ed8336d054abc4a21434f322e", "score": "0.5070632", "text": "public String getAppId() {\n return appId;\n }", "title": "" }, { "docid": "967b441ed8336d054abc4a21434f322e", "score": "0.5070632", "text": "public String getAppId() {\n return appId;\n }", "title": "" }, { "docid": "967b441ed8336d054abc4a21434f322e", "score": "0.5070632", "text": "public String getAppId() {\n return appId;\n }", "title": "" }, { "docid": "72bd19cc082a3a19ba839dd23879a1ce", "score": "0.50668144", "text": "int getAppServiceId();", "title": "" }, { "docid": "6a735063fd20496b2cfca8c0e34acb43", "score": "0.5065903", "text": "public java.lang.CharSequence getAppId() {\n return appId;\n }", "title": "" }, { "docid": "36cc59ff8072ca8210f6f49005714b20", "score": "0.5065494", "text": "public static String getAppID() {\n\t\tString appID = \"appID\";\n\t\tAppIDFactory appIDFactory = new AppIDFactory(MyApplication.getContext());\n\t\tappID = appIDFactory.getAppID();\n\t\treturn appID;\n\t}", "title": "" }, { "docid": "8af545339f6d43d425a0e8bc4f9dff03", "score": "0.5063717", "text": "@java.lang.Override\n public java.lang.String getObfuscatedGaiaId() {\n java.lang.Object ref = obfuscatedGaiaId_;\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 obfuscatedGaiaId_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "c4ebe4e70557f4589ae43baff103f984", "score": "0.5062858", "text": "java.lang.String getGoogleId();", "title": "" }, { "docid": "c4ebe4e70557f4589ae43baff103f984", "score": "0.50624645", "text": "java.lang.String getGoogleId();", "title": "" }, { "docid": "79dfb332d4f36403748de5beb02ec524", "score": "0.5047303", "text": "public static String getAppId(){\n\t\treturn NetposaConstant.appId;\n\t}", "title": "" }, { "docid": "1cce892021840c33f14926d65594f67d", "score": "0.50455433", "text": "@java.lang.Override\n public com.google.protobuf.ByteString\n getImpersonatedGaiaIdBytes() {\n java.lang.Object ref = impersonatedGaiaId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n impersonatedGaiaId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "97691f221b6138dd5da135eb04aa50f9", "score": "0.5043883", "text": "public ApplicationId getAppId() {\n return appId;\n }", "title": "" }, { "docid": "ff227fb2df1629d3dd5656aee3a9fc1c", "score": "0.5043631", "text": "public String getAppId() {\r\n\t\treturn appId;\r\n\t}", "title": "" }, { "docid": "0f78da508a6c6e3143bf2870df425e70", "score": "0.5038151", "text": "public java.lang.String getApplicationId() {\n java.lang.Object ref = applicationId_;\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 applicationId_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "0cfe1e7539548f65adb997acced6a19d", "score": "0.5004613", "text": "String getApplicationId();", "title": "" }, { "docid": "ee6736f9b9e76e35bcce8b6343613541", "score": "0.49938613", "text": "java.lang.String getAppId();", "title": "" }, { "docid": "ee6736f9b9e76e35bcce8b6343613541", "score": "0.49938613", "text": "java.lang.String getAppId();", "title": "" }, { "docid": "1d7946748f19e095ba89fb4059a3b34c", "score": "0.49896038", "text": "@javax.annotation.Nonnull\n public String getAppId() {\n return appId;\n }", "title": "" }, { "docid": "5c024ef7e2d7c42328b722cdf21b8b8a", "score": "0.49692088", "text": "@java.lang.Override\n public java.lang.String getApplicationId() {\n java.lang.Object ref = applicationId_;\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 applicationId_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "88d4730d0228d9f224a1c908f4a98eb0", "score": "0.49217382", "text": "public long getAlgoId() {\n return algoId_;\n }", "title": "" }, { "docid": "393e14414e4b94bd9e2760563dbc5c85", "score": "0.49215868", "text": "com.google.protobuf.ByteString\n getAppIdBytes();", "title": "" }, { "docid": "1b5c6149c082b7017f398d60adce5fe0", "score": "0.49178538", "text": "com.google.protobuf.ByteString\n getObfuscatedGaiaIdBytes();", "title": "" }, { "docid": "f11eb1d36574519cc267abe7e620e3af", "score": "0.49171805", "text": "@Override\n public AddClientIDToOpenIDConnectProviderResult addClientIDToOpenIDConnectProvider(AddClientIDToOpenIDConnectProviderRequest request) {\n request = beforeClientExecution(request);\n return executeAddClientIDToOpenIDConnectProvider(request);\n }", "title": "" }, { "docid": "d2e1cf025193957a1c8c347a0803454b", "score": "0.48972985", "text": "public long getAlgoId() {\n return algoId_;\n }", "title": "" }, { "docid": "6690008e5be4fd4a381a912d2b476b63", "score": "0.4895234", "text": "com.google.protobuf.ByteString\n getAppIdBytes();", "title": "" }, { "docid": "7c85a3c40cc48e4132646118f87112f2", "score": "0.48947936", "text": "public String getAppId() { return appId; }", "title": "" }, { "docid": "6e87d999853a9319bde7cb0c2324b85f", "score": "0.48880374", "text": "public String getProviderUserId() {\n return providerUserId;\n }", "title": "" }, { "docid": "5623b7d55e2c57589b5b30a23b4361b0", "score": "0.48787227", "text": "@Id\n\t@Column(name = \"policy_provider_id\")\n\t@GeneratedValue(strategy = GenerationType.IDENTITY)\n\tpublic java.lang.Integer getPolicyProviderId() {\n\t\treturn policyProviderId;\n\t}", "title": "" }, { "docid": "2528e65cf1c7fd21d9288de410f9e6f1", "score": "0.4877698", "text": "public String getAndroidId() {\n return Settings.Secure.getString(getContentResolver(),\n Settings.Secure.ANDROID_ID);\n }", "title": "" }, { "docid": "4c97ac49139c0bce32935679806d3d91", "score": "0.4844793", "text": "public Builder setImpersonatedGaiaIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n impersonatedGaiaId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "e01800a61b49cdc74f1f9e8135ebe408", "score": "0.4819587", "text": "public String getId()\n {\n return applicationName + applicationGadget;\n }", "title": "" }, { "docid": "1dfb663fe3303e3b45c5bd39b26ed546", "score": "0.48195514", "text": "public String getAppId() {\n return appId;\n }", "title": "" }, { "docid": "7b9e10a78aa8c5d19b2197d1f665e84e", "score": "0.48123854", "text": "long getAlgoId();", "title": "" }, { "docid": "f69bfff6cee0b7d45d5fd2d7b36cbe98", "score": "0.4797036", "text": "public com.google.protobuf.ByteString\n getAppIdBytes() {\n java.lang.Object ref = appId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n appId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "67114cae1797b1f247c4fce413da0343", "score": "0.47862637", "text": "public Integer getAppid() {\n return appid;\n }", "title": "" }, { "docid": "fcffb5a38baf0923f7e77db697edcec3", "score": "0.475609", "text": "public String getApplicationId() {\n return applicationId;\n }", "title": "" }, { "docid": "abc2f2d2a37c5e0c396119cf7bf4ad1f", "score": "0.4755165", "text": "public com.google.protobuf.ByteString\n getAppIdBytes() {\n java.lang.Object ref = appId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n appId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "29e73eca365d8992534f6be675207d37", "score": "0.4736341", "text": "public Builder setImpersonatedGaiaId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n impersonatedGaiaId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "0e4807655e708ed3afc2e217da358e93", "score": "0.47339377", "text": "Field getServiceProviderId();", "title": "" }, { "docid": "10ed93e840b0d29b56eb4b4db3c271ed", "score": "0.47269353", "text": "public com.google.protobuf.ByteString\n getApplicationIdBytes() {\n java.lang.Object ref = applicationId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n applicationId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "7e0bfdb509b8665a9da37110bdb8958e", "score": "0.47178918", "text": "com.google.protobuf.ByteString\n getApplicationIdBytes();", "title": "" }, { "docid": "777cd6cfe5665b2da244e328567f0798", "score": "0.47104502", "text": "com.clarifai.grpc.api.UserAppIDSet getUserAppId();", "title": "" }, { "docid": "777cd6cfe5665b2da244e328567f0798", "score": "0.47104502", "text": "com.clarifai.grpc.api.UserAppIDSet getUserAppId();", "title": "" }, { "docid": "777cd6cfe5665b2da244e328567f0798", "score": "0.47104502", "text": "com.clarifai.grpc.api.UserAppIDSet getUserAppId();", "title": "" }, { "docid": "1e09c34f31053d4bf4702e141a8cf5a8", "score": "0.47074944", "text": "public void setAppId(String value) { appId = value; }", "title": "" }, { "docid": "5d04f1554c162c9a348cc02dcd2b6083", "score": "0.46953818", "text": "public java.lang.String getGoogleId() {\n java.lang.Object ref = googleId_;\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 googleId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "5d04f1554c162c9a348cc02dcd2b6083", "score": "0.46947497", "text": "public java.lang.String getGoogleId() {\n java.lang.Object ref = googleId_;\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 googleId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "f48ca4281346aa358b2b9a6bf2fa51b8", "score": "0.46813574", "text": "public String getGaTrackId() {\r\n return gaTrackId;\r\n }", "title": "" }, { "docid": "6698d3a01e03a133977a94ca9a9d7f9a", "score": "0.4677856", "text": "@java.lang.Override\n public com.google.protobuf.ByteString\n getApplicationIdBytes() {\n java.lang.Object ref = applicationId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n applicationId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "8cd37e36d46e7ab974e57f0f84bf05cb", "score": "0.46548665", "text": "public Builder setObfuscatedGaiaId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n obfuscatedGaiaId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "233ab6a7386d957d1fed4bc1c7b6a892", "score": "0.46531618", "text": "public String a(Context context) {\n return Secure.getString(context.getContentResolver(), \"android_id\");\n }", "title": "" }, { "docid": "a24f3e3b73f15c2ba412a08a85dc2eb1", "score": "0.46530032", "text": "public Builder setObfuscatedGaiaIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n obfuscatedGaiaId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "6990db7209c57f8b094a34d19a779189", "score": "0.46469054", "text": "java.lang.String getObfuscatedGaiaId();", "title": "" }, { "docid": "2bf63d45d3604985ff1ef23828b8652e", "score": "0.46408606", "text": "int getAppid();", "title": "" }, { "docid": "09b2017accfb041e59fd5ba5c116b6c9", "score": "0.46397787", "text": "public java.lang.String getGoogleId() {\n java.lang.Object ref = googleId_;\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 googleId_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "09b2017accfb041e59fd5ba5c116b6c9", "score": "0.46391177", "text": "public java.lang.String getGoogleId() {\n java.lang.Object ref = googleId_;\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 googleId_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "417afcf33508ed16ce6cfaba91de2f92", "score": "0.46191254", "text": "public String getApplicationId() {\n return this.applicationId;\n }", "title": "" }, { "docid": "417afcf33508ed16ce6cfaba91de2f92", "score": "0.46191254", "text": "public String getApplicationId() {\n return this.applicationId;\n }", "title": "" }, { "docid": "1f2c8eab5ab3ed86d16f66d61cbe6b5c", "score": "0.4596484", "text": "public String getApplicationId() {\n\t\treturn applicationId;\n\t}", "title": "" }, { "docid": "1ac0d1765349e2cb934acd3785aa2821", "score": "0.4594363", "text": "public String getAlternativeId() {\n var alternativeId = getUsername() + \"@\" + getOrganisationId();\n return alternativeId.toLowerCase();\n }", "title": "" }, { "docid": "cbef915695ca9df1d8590634916eaf70", "score": "0.4574903", "text": "public String getoAuthId() {\r\n return oAuthId;\r\n }", "title": "" }, { "docid": "8b59a76d8980b5f3877641b02e1342ec", "score": "0.4573791", "text": "public void setAppId(java.lang.CharSequence value) {\n this.appId = value;\n }", "title": "" }, { "docid": "de646104877c555645552f4276a145dd", "score": "0.45462003", "text": "@JsonIgnore\r\n public String getApplicationId() {\r\n return OptionalNullable.getFrom(applicationId);\r\n }", "title": "" }, { "docid": "865e296f0396c58d939dc2bd4429e020", "score": "0.4535094", "text": "@Override\n\tpublic String getID() {\n\t\treturn _RegisterProviders.class.getSimpleName() + \"id19\";\n\t}", "title": "" }, { "docid": "66e929d72b9e10f7680b09f7a3fe62ce", "score": "0.45160133", "text": "java.lang.String getPlatformId();", "title": "" }, { "docid": "3425c5a27b3d7bcef264cfcb7f682e0f", "score": "0.4503042", "text": "@Override\r\n\tpublic String getIDByApp(String app) {\n\t\t\r\n\t\tString id = \"\";\r\n\t\t\r\n\t\tConnection conn=DBUtil.getDBConnection();\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tPreparedStatement ps = conn.prepareStatement(\"select AppID from AppLookup where AppName=?\");\r\n\t\t\t\r\n\t\t\tps.setString(1,app);\r\n\t\t\t\r\n\t\t\tResultSet rs=ps.executeQuery();\r\n\t\t\t\r\n\t\t\tif(rs.next()){\r\n\t\t\t\t\r\n\t\t\t\tid=rs.getString(1);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (SQLException 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\r\n\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\treturn id;\r\n\t}", "title": "" }, { "docid": "c57a95846f01ad4a144db3ad217a80e7", "score": "0.44916865", "text": "static String getDefaultSenderId(FirebaseApp app) {\n String senderId = app.getOptions().getGcmSenderId();\n if (senderId != null) {\n return senderId;\n }\n String appId = app.getOptions().getApplicationId();\n if (!appId.startsWith(\"1:\")) {\n // Not v1, server should be updated to accept the full app ID now\n return appId;\n } else {\n // For v1 app IDs, fall back to parsing the project ID out\n String[] parts = appId.split(\":\");\n if (parts.length < 2) {\n return null; // Invalid format\n }\n String projectId = parts[1];\n if (projectId.isEmpty()) {\n return null; // No project ID\n }\n return projectId;\n }\n }", "title": "" }, { "docid": "281c44f83a1899306dfa01bee2ff1ce6", "score": "0.4491333", "text": "@Override\n\tpublic String getId() {\n\t\treturn this.getAccessToken();\n\t}", "title": "" }, { "docid": "fa335a0488e518d21fd295c889ff410b", "score": "0.44911972", "text": "@ApiModelProperty(example = \"322\", required = true, value = \"The ID of the application that owns this entity.\")\n\n public Integer getApplicationId() {\n return applicationId;\n }", "title": "" }, { "docid": "84029a9f13ce28e4e8f9b8d4eab6e580", "score": "0.44737288", "text": "public String getIdentityProviderType() {\n return this.identityProviderType;\n }", "title": "" }, { "docid": "3e6025374bc35de221cb894e2bbb677a", "score": "0.44654545", "text": "public Builder setAppId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n appId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "c29e5e0ecd306a4c8a940553da1a78a1", "score": "0.44599277", "text": "public AuthApplicationId getAuthApplicationId() {\r\n\t\treturn (AuthApplicationId)findAVP(AuthApplicationId.AVP_CODE);\r\n\t}", "title": "" }, { "docid": "97bb3731b5064d25c14a99d65bb5d103", "score": "0.44579768", "text": "public String getRegistrationId() {\n\n String registrationId = getRegistrationIdFromPreferences();\n if (registrationId.isEmpty()) {\n Log.i(TAG, \"Registration not found.\");\n return \"\";\n }\n // Check if app was updated; if so, it must clear the registration ID\n // since the existing regID is not guaranteed to work with the new\n // app version.\n int registeredVersion = sharedPreferences.getInt(PROPERTY_APP_VERSION, Integer.MIN_VALUE);\n int currentVersion = getAppVersion(context);\n if (registeredVersion != currentVersion) {\n Log.i(TAG, \"App version changed.\");\n return \"\";\n }\n return registrationId;\n }", "title": "" }, { "docid": "3c54fb2c5af8cc5bca1352d5297e54fb", "score": "0.44494548", "text": "private static String m11810b(FirebaseApp firebaseApp) {\n String gcmSenderId = firebaseApp.getOptions().getGcmSenderId();\n if (gcmSenderId != null) {\n return gcmSenderId;\n }\n String applicationId = firebaseApp.getOptions().getApplicationId();\n if (!applicationId.startsWith(\"1:\") && !applicationId.startsWith(\"2:\")) {\n return applicationId;\n }\n String[] split = applicationId.split(\":\");\n if (split.length != 4) {\n return null;\n }\n String str = split[1];\n if (str.isEmpty()) {\n return null;\n }\n return str;\n }", "title": "" }, { "docid": "56af44d54f061f3af3c2e2afe6c50524", "score": "0.44419867", "text": "private String getRegistrationId(Context applicationContext) {\n\t\tfinal SharedPreferences prefs = getGCMPreferences(_context);\n\t\tString registrationId = prefs.getString(PROPERTY_REG_ID, \"\");\n\t\tif (registrationId.isEmpty()) {\n\t\t\tLog.i(TAG, \"Registration not found.\");\n\t\t\treturn \"\";\n\t\t}\n\t\t// Check if app was updated; if so, it must clear the registration ID\n\t\t// since the existing regID is not guaranteed to work with the new\n\t\t// app version.\n\t\tint registeredVersion = prefs.getInt(PROPERTY_APP_VERSION,\n\t\t\t\tInteger.MIN_VALUE);\n\t\tint currentVersion = getAppVersion(getApplicationContext());\n\t\tif (registeredVersion != currentVersion) {\n\t\t\tLog.i(TAG, \"App version changed.\");\n\t\t\treturn \"\";\n\t\t}\n\t\treturn registrationId;\n\t}", "title": "" } ]
d4d1d8cb3db0260622aeb84d1dd6064a
optional .network_game.ObjectStateMessage user_state = 7;
[ { "docid": "4a1877c98e75c13aecf0e9872ce6ef09", "score": "0.0", "text": "public Builder clearUserState() {\n if (userStateBuilder_ == null) {\n userState_ = ccostello.game.shared.messages.GameMessages.ObjectStateMessage.getDefaultInstance();\n onChanged();\n } else {\n userStateBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x00000010);\n return this;\n }", "title": "" } ]
[ { "docid": "c4c38cda0447ba60cc829b74b7ade13f", "score": "0.7877219", "text": "ccostello.game.shared.messages.GameMessages.ObjectStateMessage getUserState();", "title": "" }, { "docid": "d41f2a95b47d4fa35e602881f21a1cc9", "score": "0.76897293", "text": "ccostello.game.shared.messages.GameMessages.ObjectStateMessageOrBuilder getUserStateOrBuilder();", "title": "" }, { "docid": "5bd240d2358f913fe5d51ffd275599a2", "score": "0.6862252", "text": "ccostello.game.shared.messages.GameMessages.ObjectStateMessage getObjectState(int index);", "title": "" }, { "docid": "2bc2c63997496115ea292e7be319c64d", "score": "0.6255199", "text": "PlayerState getUserState();", "title": "" }, { "docid": "f21f0c6a56b214366c71db5b031ebd7c", "score": "0.62230873", "text": "ccostello.game.shared.messages.GameMessages.ObjectStateMessage.Location getLocation();", "title": "" }, { "docid": "4be047f9ceec2255c265cc00306935ab", "score": "0.61551136", "text": "public ccostello.game.shared.messages.GameMessages.ObjectStateMessage getUserState() {\n return userState_;\n }", "title": "" }, { "docid": "e0e67688663f5a3f3d124b84c7e0f174", "score": "0.6080368", "text": "DotaGcmessagesCommon.DOTA_GameState getGameState();", "title": "" }, { "docid": "e0e67688663f5a3f3d124b84c7e0f174", "score": "0.60794336", "text": "DotaGcmessagesCommon.DOTA_GameState getGameState();", "title": "" }, { "docid": "8d55cc8ec77de67db8072d347baed2ff", "score": "0.6074756", "text": "public ccostello.game.shared.messages.GameMessages.ObjectStateMessage getUserState() {\n if (userStateBuilder_ == null) {\n return userState_;\n } else {\n return userStateBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "404b2cd392641376ca98730bae7f05c6", "score": "0.5993158", "text": "org.tron.tronj.proto.Response.Proposal.State getState();", "title": "" }, { "docid": "97386b06558aae0e0ad29209fb61af91", "score": "0.59914106", "text": "ccostello.game.shared.messages.GameMessages.ObjectStateMessage.LocationOrBuilder getLocationOrBuilder();", "title": "" }, { "docid": "12e3387ea84974a2d63d06aeb2debafd", "score": "0.595409", "text": "public int getState(){return state;}", "title": "" }, { "docid": "1514decb5b00e2c4023dde7d7992726e", "score": "0.5934643", "text": "public interface Protocolstate {\n\n\t\n\t public void handleEvent(String event, Actor c);\n\t public void printCurrentState();\n\t public Header createHeader(String event);\n\t \n\t/*\n\t * What are the possible States?\n\t * \t- Connected\n\t * \t\t- Send Txtmsg \n\t * \t\t\t- MsgWasAcknowledged\n\t * \t\t\t- Wait for incoming Msg\n\t * \t\t\t- Send a Msg\n\t * \t\t\t- MsgHasBeenSended \n\t * \t\t\t- Wait until DACK is send or timer runs out\n\t * \t\t- Close Connection (FIN-Handshake)\n\t * \t\t\t--> FINSent\n\t * \t\t\t--> FINRcvd\n\t * \t\t\t--> NotConnected\n\t * \t- NotConnected\n\t * \t\t- Establish Connection (Handshake) \n\t * \t\t\t--> SYNSent\n\t * \t\t\t--> SYNRcvd\n\t */\n\t\n\t\n}", "title": "" }, { "docid": "033bcb24183d2fa4ddcf0afd7bb30f6f", "score": "0.59293383", "text": "ccostello.game.shared.messages.GameMessages.ObjectCommandMessage getUserCommand();", "title": "" }, { "docid": "c7bb75e31742bfef5fcd0d335058a89e", "score": "0.59122014", "text": "public interface Message extends Serializable {\n\n\tpublic enum Preset {\n\t\tSYSTEM(-1, \"\"),\n\t\tDEFAULT(0, \"\"),\n\t\tSETTINGS(10, \"$SETTINGS\"),\n\t\tDUPLICATESESSION(50, \"$DUPLICATESESSION\"),\n\t\tREFRESH(51, null),\n\t\tTIMEOUT(75, \"$TIMEOUT\"),\n\t\tUNKNOWN_COMMAND(99, \"$UNKNOWN_COMMAND{cmd=%s}\"),\n\t\tWELCOME(100, \"$WELCOME{user=%s}\"), \n\t\tMOTD(101, \"$MOTD\"),\n\t\tCLEAR_LOG(102, \"$CLEAR_LOG\"),\n\t\tCLEAR_MEDIA(103, \"$CLEAR_MEDIA\"),\n\t\tSWITCH_CHANNEL(201, \"$SWITCH_CHANNEL{channel=%s}{background=%s}\"),\n\t\tUNKNOWN_CHANNEL(202, \"$UNKNOWN_CHANNEL{channel=%s}\"),\n\t\tJOIN_CHANNEL(203,\"$JOIN_CHANNEL{user=%s}\"),\n\t\tLEFT_CHANNEL(204, \"$LEFT_CHANNEL{user=%s}\"),\n\t\tCHANNEL_NOTALLOWED(205, \"$CHANNEL_NOTALLOWED{channel=%s}\"),\n\t\tUSER_AWAY(206, \"$USER_AWAY{user=%s}\"),\n\t\tUSER_BACK(207, \"$USER_BACK{user=%s}\"),\n\t\tUSER_ALIAS_SET(208, \"$USER_ALIAS_SET{user=%s}{alias=%s}\"),\n\t\tUSER_ALIAS_CLEARED(209, \"$USER_ALIAS_CLEARED{user=%s}\"),\n\t\tCREATE_NOGUEST(210, \"$CREATE_NOGUEST\"),\n\t\tCREATE_NAMEGIVEN(211, \"$CREATE_NAMEGIVEN{channel=%s}\"),\n\t\tCREATE_DONE(212, \"$CREATE_DONE{channel=%s}\"),\n\t\tOPEN_CHANNEL(213, \"$OPEN_CHANNEL{user=%s}\"),\n\t\tOPEN_CHANNEL_ALREADY(214, \"$OPEN_CHANNEL_ALREADY\"),\n\t\tCLOSE_CHANNEL(215, \"$CLOSE_CHANNEL{user=%s}\"),\n\t\tCLOSE_CHANNEL_ALREADY(216, \"$CLOSE_CHANNEL_ALREADY\"),\n\t\tCHANNEL_BG_CHANGED(217, \"$CHANNEL_BG_CHANGED\"),\n\t\tCHANNEL_FG_CHANGED(218, \"$CHANNEL_FG_CHANGED\"),\n\t\tCHANNEL_PRIVATE(219, \"$CHANNEL_PRIVATE{room=%s}\"),\n\t\tINVITE_NOGUEST(220, \"$INVITE_NOGUEST\"),\n\t\tINVITE_USER(221, \"$INVITE_USER{user=%s}{channel=%s}\"),\n\t\tINVITETO_USER(222, \"$INVITETO_USER{user=%s}\"),\n\t\tINVITETO_USER_ALREADY(223, \"$INVITETO_USER_ALREADY{user=%s}\"),\n\t\tMOTD_NOTALLOWED(224, \"$MOTD_NOTALLOWED\"),\n\t\tMOTD_SET(225, \"$MOTD_SET{user=%s}\"),\n\t\tUNKNOWN_USER(300, \"$UNKNOWN_USER{user=%s}\"),\n\t\tWHISPER(301, \"$WHISPER{user=%s}\"),\n\t\tWHISPERTO(302, \"$WHISPERTO{user=%s}\"), \n\t\tMESSAGE(303, \"$MESSAGE{user=%s}{subject=%s}\"),\n\t\tSEARCH_NOWHERE(311, \"$SEARCH_NOWHERE{user=%s}\"),\n\t\tSEARCH_PRIVATE(312, \"$SEARCH_PRIVATE{user=%s}\"),\n\t\tSEARCH_CHANNEL(313, \"$SEARCH_CHANNEL{user=%s}{channel=%s}\"),\n\t\tSEARCH_LAST(314, \"$SEARCH_LAST{user=%s}{date=%s}{time=%s}\"),\n\t\tPROFILE_OPEN(315, \"$PROFILE_OPEN{user=%s}\"),\n\t\t\n\t\t;\n\t\t\n\t\tprivate final int code;\n\t\tprivate final String content;\n\n\t\tprivate Preset(int code, String content) {\n\t\t\tthis.code = code;\n\t\t\tthis.content = content;\n\t\t}\n\t\t\n\t\tpublic int getCode() {\n\t\t\treturn code;\n\t\t}\n\t\t\n\t\tpublic String getContent() {\n\t\t\treturn content;\n\t\t}\n\t\t\n\t\tpublic static Preset getByCode(int code) {\n\t\t\tfor (Preset value : values()) {\n\t\t\t\tif (value.code == code) {\n\t\t\t\t\treturn value;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn DEFAULT;\n\t\t}\n\t\t\n\t}\n\t\n\t/**\n\t * unique id within a scope\n\t * @return long\n\t */\n\tpublic long getID();\n\t\n\t/**\n\t * Segments (in order) of which this message is made\n\t * @return Array of {@link Segment}\n\t */\n\tpublic Segment[] getSegments();\n\n\t/**\n\t * The Origin of this Message (usually a User)\n\t * @return User or null if the originator is the System itself\n\t */\n\tpublic User getOrigin();\n\t\n\tpublic int getCode();\n\t\n}", "title": "" }, { "docid": "0a66326bfb1e8bcfc4c238be3932a316", "score": "0.5835726", "text": "public GameSearchState get_State(){return state;}", "title": "" }, { "docid": "11e96fe6604b67402609fc29510b8964", "score": "0.58331615", "text": "private void sendInitialState()\n {\n NetworkMessage message = getInitialState();\n message.setMessageType(NetworkMessage.MessageType.INITIAL_GAME_STATE_MESSAGE);\n writeOut(message);\n }", "title": "" }, { "docid": "409302cb42981376443197ba13cc8dd3", "score": "0.58231115", "text": "public ccostello.game.shared.messages.GameMessages.ObjectStateMessageOrBuilder getUserStateOrBuilder() {\n if (userStateBuilder_ != null) {\n return userStateBuilder_.getMessageOrBuilder();\n } else {\n return userState_;\n }\n }", "title": "" }, { "docid": "6f12e593213133f3a9102fb8e421e47d", "score": "0.5817152", "text": "interface State {}", "title": "" }, { "docid": "fe83b97516869ea9042a9920a82c4fed", "score": "0.5784525", "text": "public interface ClientFrame {\n\n String KEEP_DICE = \"KEEP_DICE\";\n\n String SCORE_CHOICE = \"SCORE_CHOICE\";\n\n String ACK = \"ACK\";\n\n String PRINT_GAME_STATE = \"PRINT_GAME_STATE\";\n}", "title": "" }, { "docid": "955aec4fce8d3fe87b77ca24043649f0", "score": "0.57727474", "text": "public interface StateOrBuilder extends MessageLiteOrBuilder {\n C7337h3 getState(int i);\n\n int getStateCount();\n\n List<C7337h3> getStateList();\n\n C7188p1 getStatus();\n\n int getStatusValue();\n }", "title": "" }, { "docid": "5591fa37dc64fc2cdb04085fe66ecd55", "score": "0.57403606", "text": "public ccostello.game.shared.messages.GameMessages.ObjectStateMessageOrBuilder getUserStateOrBuilder() {\n return userState_;\n }", "title": "" }, { "docid": "f0c86a4aab3db15b9d6207d1e633b19c", "score": "0.5740131", "text": "ccostello.game.shared.messages.GameMessages.ObjectCommandMessageOrBuilder getUserCommandOrBuilder();", "title": "" }, { "docid": "ec088a4583a12b186b1d543cf7d567d6", "score": "0.5735897", "text": "protected abstract NetworkMessage getInitialState();", "title": "" }, { "docid": "5e27cc8b42424b5ba94fb372f7a3fe58", "score": "0.5732855", "text": "@Override\n protected void sendUpdatedStateTo(GamePlayer p) {\n //TODO You will implement this method\n\n aGame.toString();\n p.sendInfo(aGame);\n\n }", "title": "" }, { "docid": "31b2df141d1f8ed968c6558932d9aee1", "score": "0.5703901", "text": "@Override\n protected void sendUpdatedStateTo(GamePlayer p) {\n //TODO You will implement this method\n PigGameState gameState = pgs;\n p.sendInfo(pgs);\n\n }", "title": "" }, { "docid": "5e97249d9306a8de52140d4688b975a6", "score": "0.5700962", "text": "org.tron.tronj.proto.Response.MarketOrder.State getState();", "title": "" }, { "docid": "b3aed2205df02e6e5c4e8d18cb3aedc5", "score": "0.5690285", "text": "public void onGameStateReceive(GameState gs);", "title": "" }, { "docid": "68318676941af9dd7026d33de20f40b3", "score": "0.5678591", "text": "public native String getState() /*-{\n\tvar theInstance = this;\n\tif(this.chat==true) \n\t\t{return theInstance.@it.hourglass.myTalk.client.wrappers.PeerConnectionWrapper::sendChannel.readyState;}\n\t}-*/;", "title": "" }, { "docid": "81c20cc44bc760ac9aa6b942799c9baa", "score": "0.56761926", "text": "ccostello.game.shared.messages.GameMessages.ObjectStateMessageOrBuilder getObjectStateOrBuilder(\n int index);", "title": "" }, { "docid": "b688559cd38596f99f4513cea2c22adc", "score": "0.5673688", "text": "public void checkStateChange(Event event){\n /*\nwhen does it change?\n1) time\n2) finished action\n3) player action\n4) custom triggers\n\nThere is a natural cycle for this?\n */\n GroupAI group;\n\n }", "title": "" }, { "docid": "86f889d2bd1dfc914fc6b8145423f582", "score": "0.56726253", "text": "com.google.protobuf.ByteString getState();", "title": "" }, { "docid": "86f889d2bd1dfc914fc6b8145423f582", "score": "0.56726253", "text": "com.google.protobuf.ByteString getState();", "title": "" }, { "docid": "8a1bf268a226dd20d763d81c41e56d78", "score": "0.5671085", "text": "public void gameStatus(){}", "title": "" }, { "docid": "3f0a3181546251fcd1217c5f73131e72", "score": "0.5647228", "text": "public Builder setUserState(ccostello.game.shared.messages.GameMessages.ObjectStateMessage value) {\n if (userStateBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n userState_ = value;\n onChanged();\n } else {\n userStateBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n return this;\n }", "title": "" }, { "docid": "b0740edecd311bb593f40ec97ac2b34c", "score": "0.5624092", "text": "java.util.List<ccostello.game.shared.messages.GameMessages.ObjectStateMessage> \n getObjectStateList();", "title": "" }, { "docid": "bc4614da0721a9c7928202e85f0c2375", "score": "0.5599125", "text": "public StartPaymentGameMessage(){\n identifier = \"START_PAYMENT\";\n }", "title": "" }, { "docid": "33afb3b45ee4a46a748bbef78cad3b52", "score": "0.55921125", "text": "SAGA_STATE state();", "title": "" }, { "docid": "7692f9d12a86c2b8050621ddbdb44e11", "score": "0.5579559", "text": "void setPlayerState(Map<String, Object> gameApiState);", "title": "" }, { "docid": "544fe41b58e65504283368074ded6a5d", "score": "0.5578823", "text": "public void gameStarting(State s);", "title": "" }, { "docid": "f3a44b3bcb89a773a1aa0cf5b57cfa5b", "score": "0.55610126", "text": "private void changeState(int s)\r\n\t{\r\n\t\tstate = s;\r\n\t\tnew Packet(client, Packet.STATE, new Integer(state)).post(); // tell our client\r\n\t}", "title": "" }, { "docid": "fb0f1b18ae0dd460c7b0d651bd21de22", "score": "0.55350953", "text": "public UserState() {\r\n\t\t_InfoType = InfoType.UserState;\r\n\t}", "title": "" }, { "docid": "68eee82d9792f22199fcd0c94489029d", "score": "0.55232227", "text": "com.yanlong.im.utils.socket.MsgBean.ActiveStatChangeMessage.ActiveType getActiveType();", "title": "" }, { "docid": "35f5babd9dfd846034b81fa057b9ba00", "score": "0.551476", "text": "protocol.Protocol.GameOrBuilder getGameOrBuilder();", "title": "" }, { "docid": "b5873d2ed947afbe4d480110eea60d6c", "score": "0.54988575", "text": "void success(UserGame game);", "title": "" }, { "docid": "0ec32b1b87255ae6c0b3b31a23775ebf", "score": "0.54970235", "text": "public void startGame(){\r\n state=playerState.IN_GAME;\r\n }", "title": "" }, { "docid": "24712330742fec2728acc025ea350031", "score": "0.5476581", "text": "public interface IState {\n\n\t\n\tvoid solicitaAtencionDomicilio();\n\n\tvoid solicitaTrasladoClinica();\n\n\tvoid volverClinica();\n\n\tvoid repararAmbulancia();\n\t\n\tString estadoActual();\n\n\t\n}", "title": "" }, { "docid": "0aafab12d984900a605203722dc43d9c", "score": "0.546973", "text": "public interface State {\n\n int STATE_DISCONNECTED = 0;\n int STATE_CONNECTING = 1;\n int STATE_CONNECTED = 2;\n }", "title": "" }, { "docid": "34f56a8164974647563e5658faf1d1fa", "score": "0.5465911", "text": "public GameState getState();", "title": "" }, { "docid": "9148fcc07db516725212f4a74090e6e3", "score": "0.54645395", "text": "C6739d mo26954a(C6742e eVar, Draft draft, Socket socket);", "title": "" }, { "docid": "39ebc4b08ac47446bf53145bb898d90b", "score": "0.54627645", "text": "public abstract interface IGroupState {\n public static final int ENTRANCE = 1;\n public static final int OPEN = 2;\n public static final int LOCKPROTECTED = 4;\n public static final int MODERATED = 8;\n public static final int AUTO_SU_FIRST = 16;\n public static final int ALLOW_SU = 32;\n public static final int SND_PRF_USER = 64;\n public static final int SND_PRF_VIP = 128;\n public static final int SND_PRF_MODERATOR = 256;\n public static final int SND_PRF_GOD = 512;\n\tpublic static final int SND_PRF_GUEST = 1024;\n\tpublic static final int NO_SU_FIRST = 2048;\n\tpublic static final int DEACTIVATE_HITDICE = 4096;\n public static final int SU_CAN_BAN = 8192;\n public static final int SU_CAN_SETTHEME = 16384;\n public static final int CAN_SET_PUNISHABLE = 32768;\n public static final int ALLOW_USE_BBCODES = 65536;\n public static final int ALLOW_USE_SMILEY = 131072;\n public static final int NOT_ALLOW_JOIN_UNREG = 262144;\n public static final int JOIN_MEMBERSHIP_LOCKED = 524288;\n\n}", "title": "" }, { "docid": "071a90f6480cb6b6de6604c6c4175c2f", "score": "0.54569334", "text": "private void stateHandler(String message, String options){\n if (this.myState.equals(PLAYER_STATE.NOT_CONNECTED)){\n //Waiting to connect\n if (message.equals(\"ALL_READY\")){\n this.myState = PLAYER_STATE.WAITING; //Waiting on server\n return;\n } else if (message.equals(\"YOUR_TURN\")){\n this.myState = PLAYER_STATE.PLAYER_TURN;\n System.out.println(\"=== Round \" + options + \"===\");\n System.out.println(\"=== Your Turn! ===\");\n }\n return;\n }\n else if (this.myState.equals(PLAYER_STATE.PLAYER_TURN)){\n //it's our turn. Block thread here, take input, submit data, etc\n if (message.equals(\"SEND_TURN\")){\n this.myState = PLAYER_STATE.WAITING;\n sendMessageToServer(message + \" \" + options);\n }\n return;\n }\n else if (this.myState.equals(PLAYER_STATE.SUBMITTED_NAME)){\n //Submitted our name, waiting for READY_ALL\n if (message.equals(\"NAME_ACCEPT\")){\n this.myState = PLAYER_STATE.WAITING;\n }\n return;\n }\n else if (this.myState.equals(PLAYER_STATE.WAITING)){\n //Waiting for our turn, can give player input here? will need to\n //interrupt this thread when we get reply from server...\n if (message.equals(\"RECEIVED_POKEMON\")){\n selectPokemon();\n } else if (message.equals(\"YOUR_TURN\")){\n this.myState = PLAYER_STATE.PLAYER_TURN;\n System.out.println(\"=== Round \" + (int)Math.ceil(Double.valueOf(options)*0.5) + \" ===\");\n System.out.println(\"=== Your Turn! ===\");\n handleMyTurn();\n } else if (message.equals(\"POKEMON_READY\")){\n this.sendMessageToServer(\"POKEMON_READY \"+options);\n } else if(message.equals(\"DEAL_DAMAGE\")){\n damageNotificationDealt(options);\n } else if (message.equals(\"RECEIVE_DAMAGE\")){\n damageNotificationReceived(options);\n } else if(message.equals(\"YOU_WIN\")){\n youWin(options);\n } else if (message.equals(\"YOU_LOSE\")){\n youLose(options);\n }\n return;\n }\n }", "title": "" }, { "docid": "9b88badd11893b0a905f844cfa68b554", "score": "0.5456609", "text": "protocol.Protocol.Game getGame();", "title": "" }, { "docid": "7621335648f3eae974f1b7158fe14a92", "score": "0.54537314", "text": "NotificationState(int state, String error) {\n this.state = state;\n this.error = error;\n }", "title": "" }, { "docid": "819cca59d12d5940c089c717b025e76e", "score": "0.5452836", "text": "public interface ClientStateViewer {\n /**\n * Returns this client's SimplePlayerState\n * @return this client's SimplePlayerState\n */\n SimplePlayerState getSimplePlayerState();\n\n /**\n * Returns the SimplePlayerState belonging to the specified player\n * @param username, the username of the players whose SimplePlayerState is to be returned\n * @return the specified player's SimplePlayerState\n */\n SimplePlayerState getSimplePlayerState(String username);\n\n /**\n * Returns the SimpleGameState\n * @return the SimpleGameState\n */\n SimpleGameState getSimpleGameState();\n\n /**\n * Returns the username list of the players in the game\n * @return the username list of the players in the game\n */\n List<String> usernameList();\n\n /**\n * Returns the username list of the players in the game excluded this client's one\n * @return the username list of the players in the game excluded this client's one\n */\n List<String> otherPlayersUsername();\n\n /**\n * Returns the position that this client has in the turn list\n * @return the position that this client has in the turn list\n */\n int getPlayerTurnPosition();\n\n /**\n * Returns this client's username\n * @return this client's username\n */\n String getUsername();\n}", "title": "" }, { "docid": "9e73566794fb303deabc5b11a10985c3", "score": "0.5448969", "text": "@Override\npublic void updatestate(Connection c) {\n\t\n}", "title": "" }, { "docid": "a516e2e113c2a5df877c81865fe5e065", "score": "0.54449576", "text": "SimplePlayerState getSimplePlayerState();", "title": "" }, { "docid": "2c5166229ac26cf969dea9ff82108cf9", "score": "0.5444745", "text": "public interface LobbyState\n{\n\tvoid prepare(Player player);\n}", "title": "" }, { "docid": "3c697deb1add29d210906a3132d651e6", "score": "0.5444484", "text": "public void send_state_to_ui(int orden)\n{\n Message msg = my_Handler_to_ui.obtainMessage(ControlBtActivity.ERROR);\n Bundle bundle = new Bundle();\n bundle.putString(ControlBtActivity.STATE, Integer.toString(orden));\n msg.setData(bundle);\n my_Handler_to_ui.sendMessage(msg); \t \n}", "title": "" }, { "docid": "e16e62cd378f0ff8271f037ace5b15a8", "score": "0.5428746", "text": "interface GlobalClass_cabinThread_States {\n enum States {\n idle, mov, open\n }\n }", "title": "" }, { "docid": "bd1fb4a4b9505e80b52edab1858166f4", "score": "0.5423266", "text": "public interface State {\n\tpublic String ON = \"ON\";\n\tpublic String OFF = \"OFF\";\n\tpublic void action(StateContext context);\n}", "title": "" }, { "docid": "8d8c9e2afa0a792ad9bd3bb9d99d371d", "score": "0.54181755", "text": "NotificationState(int state) {\n this.state = state;\n this.error = null;\n }", "title": "" }, { "docid": "4296ce73417d73ab1c016793adf7a76b", "score": "0.5408966", "text": "public GameOverState(GameStateManager gsm) {\r\n\t\tsuper(gsm); //gets variable from the gamestate class\r\n\t}", "title": "" }, { "docid": "59c6c2dac7dbe1eee587773ec2357cf0", "score": "0.5405025", "text": "public void handle(int id, String type, String message) {\n\t\tif (!type.equals(\"game_update\")) return;\n\t\tGson gson = new Gson();\n\t\tGameState state = gson.fromJson(message, GameState.class);\n\n\t\t// Flip the state for the seconds player\n\t\tif (player == 1) state = state.flip();\n\t\t\n\t\t// Check if it is a disconnect event\n\t\t// These events are critical, therefore we force the buffer to accept this state.\n\t\tif (state.getStatus() == -1) { \n\t\t\t// We need to force the buffer to accept this\n\t\t\tSystem.out.println(\"Yes Clinet exit state :)\");\n\t\t\ttry {\n\t\t\t\tstateBuffer.put(state);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t//Otherwise, just try to offer the received packet to the buffer.\n\t\telse stateBuffer.offer(state);\n\t}", "title": "" }, { "docid": "dea95698a7da4c802f705321a487f2a5", "score": "0.54050213", "text": "@Override\n\tpublic void stateUpdated(BasicPlayerEvent event) {\n\t\t\n\t}", "title": "" }, { "docid": "40f06e1898b623adcbf12e29b3819bfc", "score": "0.54020196", "text": "java.util.List<? extends ccostello.game.shared.messages.GameMessages.ObjectStateMessageOrBuilder> \n getObjectStateOrBuilderList();", "title": "" }, { "docid": "d8bb4d3820a51b2645897ad7c6ba960e", "score": "0.53973603", "text": "SimplePlayerState getSimplePlayerState(String username);", "title": "" }, { "docid": "eafc7daf236523e611c5b33d57767a8b", "score": "0.5392437", "text": "void mo51520a(Message message);", "title": "" }, { "docid": "1aac1a5bafe0e9f13427961c5c13a385", "score": "0.538487", "text": "@Test\n public void testIsGameOnGoing_True() throws Exception {\n gameState = new GameState(ProtobufTest.getTestGameState_Playing().toByteArray());\n assertTrue(gameState.isGameOnGoing());\n }", "title": "" }, { "docid": "daf63801a8ba09ffcc7e3a0ae9dccec6", "score": "0.5377256", "text": "public abstract MessageType mo8112o();", "title": "" }, { "docid": "c34a6337e209d006c98c92481713baf7", "score": "0.537565", "text": "ccostello.game.shared.messages.GameMessages.GameMessage.MessageType getMsgType();", "title": "" }, { "docid": "6752945a3c6c9d1c1822d2ee2df0eae5", "score": "0.5374682", "text": "DotaGcmessagesServer.CMsgDOTALiveScoreboardUpdate.Team.Player.DOTAUltimateState getUltimateState();", "title": "" }, { "docid": "af060ec218fbf7fe9ddf21308aeb80a2", "score": "0.53631717", "text": "public Object getState();", "title": "" }, { "docid": "e8d599b728861cd09829a6c7cdab9724", "score": "0.53543067", "text": "public String getGameState() throws NetworkException;", "title": "" }, { "docid": "69f2cfa2504005cb16dd5412e16b9e72", "score": "0.53514796", "text": "boolean updateGame(ServerMessage message) throws RemoteException;", "title": "" }, { "docid": "6d8a41bc2b811b095a06ad8fed494101", "score": "0.53444093", "text": "public String getState() {return state;}", "title": "" }, { "docid": "48e392842757a4318a24f5245decd89c", "score": "0.5334698", "text": "void updateState(PublicGameState newState, PlayerState ownState);", "title": "" }, { "docid": "eafabddf9df278d7ceb5293ac6187484", "score": "0.5312587", "text": "com.yanlong.im.utils.socket.MsgBean.ActiveStatChangeMessage getActiveStatChange();", "title": "" }, { "docid": "e28363f57b1f1c8f76e4272ee6af029b", "score": "0.530597", "text": "public Sotdma getCommunicationState();", "title": "" }, { "docid": "1f489da7f292a36852ec440e19b9d66d", "score": "0.5305453", "text": "public void sendGameStateUpdate(NetworkMessage message) throws BufferOverflowException\n {\n message.setMessageType(NetworkMessage.MessageType.GAMESTATE_UPDATE_MESSAGE);\n writeOut(message);\n }", "title": "" }, { "docid": "f2a6c562c51287664a407e0183c53519", "score": "0.5294986", "text": "public ccostello.game.shared.messages.GameMessages.ObjectStateMessageOrBuilder getObjectStateOrBuilder(\n int index) {\n if (objectStateBuilder_ == null) {\n return objectState_.get(index); } else {\n return objectStateBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "e9551d1e8c2cd357a366647a7f33c504", "score": "0.5291825", "text": "public GameInfo() {\n setLastAction(0);\n }", "title": "" }, { "docid": "cde5c078c4a81deebc0331a23e05623c", "score": "0.52908367", "text": "pipe.work.Work.WorkStateOrBuilder getStateOrBuilder();", "title": "" }, { "docid": "cde5c078c4a81deebc0331a23e05623c", "score": "0.52908367", "text": "pipe.work.Work.WorkStateOrBuilder getStateOrBuilder();", "title": "" }, { "docid": "54dda50d41d2145a3ce9e8cc116e6419", "score": "0.5283676", "text": "private void initializeState() {\n myState = new PeerState();\n myState.setEndpointId(\"XD\");\n myState.setLevelOfPeer(4);\n myState.setFriendlyName(myFriendlyName);\n\n theState = new GameStateContainer();\n\n theState.getPeersLevel().add(myState);\n }", "title": "" }, { "docid": "d537481b5047fc50005b543292fcac4f", "score": "0.528116", "text": "network.message.PlayerResponses.BaseResponse getPlayerResponse();", "title": "" }, { "docid": "5b20caf0fa01cde34881c6d40750928a", "score": "0.5280087", "text": "@Override\r\n \tpublic void handleMessage(Message msgP) {\n \t\t\r\n \t}", "title": "" }, { "docid": "652c2bb4f00620649257d3ce2a761e0d", "score": "0.5272732", "text": "private CoaxialState(){}", "title": "" }, { "docid": "9203c1bd9d7f3a89f5ab39b5ba5697b6", "score": "0.52713555", "text": "public GameNetworkInt(){\n gs = null;\n gc = null;\n isServer = false;\n System.out.println(\"Creating Game Network Interface object.\");\n }", "title": "" }, { "docid": "971aa676650632eaa9a390e4a1c8a2ed", "score": "0.5263373", "text": "S getState();", "title": "" }, { "docid": "971aa676650632eaa9a390e4a1c8a2ed", "score": "0.5263373", "text": "S getState();", "title": "" }, { "docid": "06469c68f5bb83dc300d9de075bd2596", "score": "0.52619106", "text": "public ccostello.game.shared.messages.GameMessages.ObjectStateMessage getObjectState(int index) {\n if (objectStateBuilder_ == null) {\n return objectState_.get(index);\n } else {\n return objectStateBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "3399a8b447eb2a77282ffdf4a8b7c61b", "score": "0.5259053", "text": "int getRequestedStateValue();", "title": "" }, { "docid": "0feadb5dbf9da4a61cd57816cfbfedc8", "score": "0.5258489", "text": "public abstract void mo29022a(Message message);", "title": "" }, { "docid": "c206b0746bc27b04b50db7104e09f5cd", "score": "0.5257485", "text": "public interface GameUser {\n\n /**\n * Get user's family color\n *\n * @return Family color\n */\n FamilyColor getFamilyColor();\n\n /**\n * Get user comm link\n *\n * @return Comm link\n */\n CommLink getUserLink();\n\n /**\n * Get all user's domestics\n *\n * @return Domestic's map\n */\n Map<DomesticColor, Domestic> getDomestics();\n\n /**\n * Get current user state (state is not passed by reference)\n *\n * @return Current user state object\n */\n PlayerState getUserState();\n\n}", "title": "" }, { "docid": "931becf07154eeb4c500f50315527ac6", "score": "0.5252797", "text": "int getBState();", "title": "" }, { "docid": "8008c95d37f23a9e38a41d6ea558d4d7", "score": "0.52517027", "text": "State getState();", "title": "" }, { "docid": "8008c95d37f23a9e38a41d6ea558d4d7", "score": "0.52517027", "text": "State getState();", "title": "" }, { "docid": "4d10054b062682c2cb7417006c19cdd5", "score": "0.5239222", "text": "private void mesg(Stack<Token> s){\n\t\tint fromTeamMember = s.pop().ivalue;\n\t\tboolean hasMessage = Controller.mesg(robot, fromTeamMember);\n\t\ts.add(new Token(hasMessage));\n\t}", "title": "" }, { "docid": "d7e0ea67b9c2dfc6c3b7c325a0377762", "score": "0.5237414", "text": "State state();", "title": "" }, { "docid": "d7e0ea67b9c2dfc6c3b7c325a0377762", "score": "0.5237414", "text": "State state();", "title": "" } ]
545b57250ab4d879d906be4caa0f0a94
This is the method which verify department.
[ { "docid": "082ed392a744a275d24be5d58509f58f", "score": "0.0", "text": "@ApiResponses(value = {\n\t\t\t@ApiResponse(code = DepartmentConstants.SUCCESS_CODE, message = \"\"),\n\t\t\t@ApiResponse(code = DepartmentConstants.NON_AUTHORITATIVE_INFORMATION, message = DepartmentConstants.ISSUE_SEARCH_RESULT) })\n\t@ApiOperation(value = \"Search department\")\n\t@RequestMapping(value = \"/search/{department}\", method = GET)\n\tpublic ResponseEntity<Department> findByDepartment(\n\t\t\t@PathVariable String department) {\n\t\tList<Department> departmentRes = departmentService\n\t\t\t\t.findByDepartment(department);\n\n\t\ttry {\n\t\t\tif (departmentRes != null) {\n\t\t\t\tif (departmentRes.size() > 0) {\n\t\t\t\t\treturn new ResponseEntity<Department>(OK);\n\t\t\t\t} else {\n\t\t\t\t\treturn new ResponseEntity<Department>(\n\t\t\t\t\t\t\tHttpStatus.NON_AUTHORITATIVE_INFORMATION);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\treturn new ResponseEntity<Department>(\n\t\t\t\t\tHttpStatus.NON_AUTHORITATIVE_INFORMATION);\n\t\t}\n\t\treturn new ResponseEntity<Department>(\n\t\t\t\tHttpStatus.NON_AUTHORITATIVE_INFORMATION);\n\t}", "title": "" } ]
[ { "docid": "8c4f772ccb6b24e5f6a357f4094198df", "score": "0.7360042", "text": "boolean checkDepartmentValidation(String department);", "title": "" }, { "docid": "4d6c4bdeb64771143e639e21beed1443", "score": "0.68825513", "text": "public void TC_1_4_readDepartment() {\n System.out.print(\"Executing Test 1.4...\");\n mng = DepartmentManager.getInstance();\n Department degree = new Department(\"DIA\", \"Dipartimento di Informatica Applicata\", \"www.di.unisa.it\", \"bresvgsss2651vgdtgch\");\n assertTrue(degree.equals(mng.getDepartmentByAbbreviation(\"DIA\")));\n System.out.println(\"Done\");\n }", "title": "" }, { "docid": "0d270c907242efc1f95472c123d270a3", "score": "0.67185116", "text": "String checkCourseDepartmentExists();", "title": "" }, { "docid": "9622dcccb1853d89fdf24f03cd5d64ad", "score": "0.668659", "text": "public void TC_1_3_updateDepartment() {\n System.out.print(\"Executing Test 1.3...\");\n mng = DepartmentManager.getInstance();\n Department degree = new Department(\"DIA\", \"Dipartimento di Informatica Applicata\", \"www.di.unisa.it\", \"bresvgsss2651vgdtgch\");\n assertTrue(mng.updateDepartment(\"DI\", degree));\n System.out.println(\"Done\");\n }", "title": "" }, { "docid": "104b4cbca1451817f53991e6e3bf1e27", "score": "0.6686261", "text": "static boolean validateDepartment(int num) {\n\t\tList<Department> departmentList = DataRepository.getDepartmentList().values().stream()\n\t\t\t\t.collect(Collectors.toList());\n\t\tfor (Department department : departmentList) {\n\t\t\tif (department.getDepartmentId() == num)\n\t\t\t\treturn true;\n\t\t}\n\t\tSystem.out.println(\"Invalid Department Number!!\");\n\t\tSystem.out.println(\"*********Valid List of Departments Are*********\");\n\t\tdepartmentList.forEach(System.out::println);\n\t\treturn false;\n\t}", "title": "" }, { "docid": "f26cab7f2003b56796f15b15aa5743b7", "score": "0.64854145", "text": "public void TC_1_5_deleteDepartment() {\n System.out.print(\"Executing Test 1.5...\");\n mng = DepartmentManager.getInstance();\n assertTrue(mng.deleteDepartment(\"DIA\"));\n System.out.println(\"Done\");\n }", "title": "" }, { "docid": "f22c94fbd78084d59f3fd5f1ff534d6d", "score": "0.6418208", "text": "String storeDepartmentDetails(Department department);", "title": "" }, { "docid": "15d396a4e1ec543a5db814f5e83b7871", "score": "0.6393348", "text": "@Test\n\tpublic void testCreateDepartment() {\n\n\n\t\twhen(departmentService.createDepartment(any(Department.class))).thenReturn(d);\n\n\t\tResponseEntity<Object> response = departmentController.createDepartment(d, result);\n\t\tSystem.out.println(response);\n\t\t assertNotNull(response.getBody());\n\t\t// Department dd=departmentService.createDepartment(d);\n\t\t// System.out.println(dd.getId());\n\t\t// assertNotNull(dd);\n\n\t\tassertThat(response.getStatusCodeValue()).isEqualTo(201);\n\t\t//assertThat(response.getHeaders().getLocation().getPath()).isEqualTo(\"/1\");\n\n\t}", "title": "" }, { "docid": "5939997d56999527ce01a103d6290049", "score": "0.6334234", "text": "public void TC_1_2_createDepartment() {\n System.out.print(\"Executing Test 1.2...\");\n mng = DepartmentManager.getInstance();\n Department degree = new Department(\"DI\", \"Dipartimento Informatica\", \"www.di.unisa.it\", \"bresvgsss2651vgdtgch\");\n assertTrue(mng.add(degree));\n System.out.println(\"Done\");\n }", "title": "" }, { "docid": "79bacb4ca9fa14bf7fc0bb61b272afda", "score": "0.6250719", "text": "public void setDepartment(String department) {\n this.department = department;\n }", "title": "" }, { "docid": "79bacb4ca9fa14bf7fc0bb61b272afda", "score": "0.6250719", "text": "public void setDepartment(String department) {\n this.department = department;\n }", "title": "" }, { "docid": "f99b712e3ade3f1f6eacfaff28a72296", "score": "0.6246164", "text": "public Boolean departmentNameControlDAO(String department) {\n\n boolean result = true;\n ArrayList<String[]> arrayList;\n\n try {\n\n String query = \"SELECT * FROM `DEPARTMENT` WHERE `department`='\" +department+ \"'\";\n arrayList = DbConnection.getInstance().db_query(query);\n //|| !arrayList.get(0)[1].equals(department)\n if (arrayList.size() == 0 ) {\n result = false;\n }\n return result;\n } catch (Exception e) { return result; }\n }", "title": "" }, { "docid": "a6e13fc532f332f423e5c0448d739c72", "score": "0.6235394", "text": "public void setDepartment(String department)\n {\n this.department = department;\n }", "title": "" }, { "docid": "17e7bc306bcdd27a2bb2179d6e2bfcfd", "score": "0.61753803", "text": "@Test(testName = \"Verify the list of Department in drop down items\", dataProvider = \"CommonCreateDelete\", dataProviderClass=CommonDataProvider.class, enabled = true)\n\t@DataProviderArguments({\"filePath=RegistrationPage/registrationpage.csv\",\"testName=departmenttype\"})\n\tpublic void validateDepartmentType(Map<String, String> testData) {\n\t\n\t\tlogger.info(\"********************************************\t\tStarting Test validateDepartmentType\t\t********************************************\");\n\n\t\tString[] str = testData.get(\"department\").split(\";\");\n\t\t\t\n\t\tList<String> list = task.getListOfDepartments();\n\t\t\t\n\t\tfor (int i = 0; i < str.length; i++) {\n\t\t\tassert str[i].equals(list.get(i)) : \"Failed to validate the department list\";\n\t\t}\n\t\t\t\n\t}", "title": "" }, { "docid": "26438c76c16c41702af98250a3b30ad9", "score": "0.6114891", "text": "public void setDept(String department){\n\t\tthis.department=department;\n\t}", "title": "" }, { "docid": "9f438af4b4e36486ddbf4574cb36427d", "score": "0.6035855", "text": "public void setdepartment(String depart){\r\n department = depart;\r\n }", "title": "" }, { "docid": "d30c7c7ed7c7f2e3c2b88e33dc6c9cda", "score": "0.6023622", "text": "boolean isSetDeptCode();", "title": "" }, { "docid": "0323723d4c31d604812ae01bb28afb0a", "score": "0.6018915", "text": "public void setDepartment(java.lang.String value) {\n this.department = value;\n }", "title": "" }, { "docid": "0323723d4c31d604812ae01bb28afb0a", "score": "0.6018915", "text": "public void setDepartment(java.lang.String value) {\n this.department = value;\n }", "title": "" }, { "docid": "c985a7f306c890e0f67c2b6e1b7f9ee0", "score": "0.5977055", "text": "@Test\n\tpublic void numberOfEmployeesForDepts() throws SQLException {\n\n\t\tDBUtility.establishConnection(DBType.ORACLE);\n\t\tdeptEmpPage = new HRAppDeptEmpPage();\n\t\tUIDepartmentData = new HashMap<>();\n\t\tdeptEmpPage.i_search_for_department_id(50);\n\t\tdeptEmpPage.detach.click();\n\t\tBrowserUtils.waitFor(2);\n//\t\tBrowserUtils.scrollDown();\n\t\tUIDepartmentData.put(\"EMPLOYEES_COUNT\", String.valueOf(deptEmpPage.employeesCount.size()));\n\n\t\tString sql = \"SELECT COUNT(*) AS EMPLOYEES_COUNT FROM employees WHERE department_id=50\";\n\t\tList<Map<String, Object>> dBDataList = DBUtility.runSQLQuery(sql);\n\t\tDBDepartmentData = dBDataList.get(0);\n\t\tDBUtility.closeConnections();\n\n\t\tfor (String key : DBDepartmentData.keySet()) {\n\t\t\tassertEquals(UIDepartmentData.get(key), String.valueOf(DBDepartmentData.get(key)));\t\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "f823b0a95ce5368491224cc45bc1db8c", "score": "0.58830345", "text": "@Override\n\tpublic String addDepartment(Department department) {\n\t\tConnection connection = dbUtils.getConnection();\n\t\tPreparedStatement preparedStatement = null;\n\t\t\n\t\tString insertEmployee = \n\t\t\t\t\"insert into DEPARTMENT (departmentId,organizationId,name) values(?,?,?)\";\n\t\tint result = 0;\n\t\ttry {\n\t\t\tpreparedStatement = connection.prepareStatement(insertEmployee);\n\t\t\tpreparedStatement.setLong(1, department.getId());\n\t\t\tpreparedStatement.setLong(2, department.getId());\n\t\t\tpreparedStatement.setString(3, department.getName());\n\t\t\t\n\t\t\tresult = preparedStatement.executeUpdate();\n\t\t\t\n\t\t\tif(result>0) {\n\t\t\t\tconnection.commit();\n\t\t\t\t\n\t\t\t\treturn \"success\";\n\t\t\t}else return \"fail\";\n\t\t\t\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t\n\t\t\ttry {\n\t\t\t\tconnection.rollback();\n\t\t\t} catch (SQLException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn \"fail\";\n\t\t}\n\t\tfinally {DBUtils.closeConnection(connection);}\n\n\t}", "title": "" }, { "docid": "7876468f4fb026c55567e1248650b890", "score": "0.58757037", "text": "public void setDepartmentId(int value) {\n this.departmentId = value;\n }", "title": "" }, { "docid": "c0e786194c33225cb66b5360406ca2fc", "score": "0.5841255", "text": "public void setDepartment(Integer department) {\n this.department = department;\n }", "title": "" }, { "docid": "10ad800eec58058a0b3ee0b97893483c", "score": "0.58020484", "text": "public void addDepartment(Department department) throws Exception {\n if (department != null) {\n for (Department d : listDepartment) {\n if (d.getName().equals(department.getName()))\n throw new Exception(\"this Department is already in the company\");\n }\n listDepartment.add(department);\n }else{\n throw new Exception(\"argument null\");\n }\n }", "title": "" }, { "docid": "5c4b6663a2a03204878555ee16d22f84", "score": "0.5768288", "text": "Department getDepartment(String departmentName);", "title": "" }, { "docid": "0f3fbbb596305d9f8eaa4ab058cc0e60", "score": "0.57554466", "text": "private String setDepartment() {\r\n\t\tSystem.out.println(\"DEPARTMENT CODES \\n1 for Sales \\n2 for Development \\n3 for Accounting \\n0 for none\\nEnter the Department Code:\");\r\n\t\tScanner sc=new Scanner(System.in);\r\n\t\tint depChoice =sc.nextInt();\r\n\t\t\r\n\t\tif(depChoice==1)\r\n\t\t\treturn \"sales\";\r\n\t\telse if(depChoice==2)\r\n\t\t\treturn \"Development\";\r\n\t\telse if(depChoice==3)\r\n\t\t\treturn \"Accounting\";\r\n\t\telse\r\n\t\t\treturn \"None\";\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "570f0197f4e1802f1473c70fdb3138c3", "score": "0.5742974", "text": "private void updateDepartmentCode(DataObject obj)\n\t{\n\t\tboolean lboolRoleIdProvided = obj.getData(\"USER_ROLE_FL\").getboolean();\n\t\tString lsUserId = null;\n\t\t\n\t\tif (lboolRoleIdProvided )\n\t\t{\n\t\t\t//role id provided - use department code of current user\n\t\t\tlsUserId = getSession().getUserID(); \n\t\t}\n\t\telse\n\t\t{\n\t\t\t//user Id provided\n\t\t\tlsUserId = obj.getData(\"USER_ID\").getString();\t \n\t\t}\n\t\t\n\t\tAMSUser loAMSUser = AMSSecurity.getUser( lsUserId ) ;\n\t\t\n\t\tString msDeptCode = loAMSUser.getHomeOrgCodeLevels()[DEPT_CODE_POSITION] ;\n\t\tobj.getData(\"DEPT_CD\").setString(msDeptCode );\t\n\t}", "title": "" }, { "docid": "cb5b6f063cb492f40475e4c9410567ed", "score": "0.573165", "text": "public String getDepartment()\n {\n return this.department;\n }", "title": "" }, { "docid": "7bb228fc1b06539545894c2514b597d1", "score": "0.56970835", "text": "public int getDepartmentId() {\n return departmentId;\n }", "title": "" }, { "docid": "5887fede9af4ea0d7f49bfe4c25572b3", "score": "0.56900007", "text": "@Override\n\tpublic Department updateDepartment(Department dept)\n\t{\n\t\treturn null;\n\t}", "title": "" }, { "docid": "fcd27b8ad3be481e00a7438c4c47eafa", "score": "0.56899166", "text": "public boolean hasDepartment() {\n return fieldSetFlags()[1];\n }", "title": "" }, { "docid": "26a2d2ef34c8f9a487c73ba33da0f21a", "score": "0.56856537", "text": "public String getDepartment() {\n return department;\n }", "title": "" }, { "docid": "26a2d2ef34c8f9a487c73ba33da0f21a", "score": "0.56856537", "text": "public String getDepartment() {\n return department;\n }", "title": "" }, { "docid": "26a2d2ef34c8f9a487c73ba33da0f21a", "score": "0.56856537", "text": "public String getDepartment() {\n return department;\n }", "title": "" }, { "docid": "26c3243caf623c36fd5dacb6b23f225c", "score": "0.5669101", "text": "public Department findDepartment(int departmentId){\n\t\tDepartment dept = deptDao.findDepartment(departmentId);\r\n\t\treturn dept;\r\n}", "title": "" }, { "docid": "d87feac2c9eb4c619e9e804703a6cf17", "score": "0.56637377", "text": "public void removeDepartment(Department department) throws Exception {\n for (Department d : listDepartment) {\n if (d.getName().equals(department.getName())) {\n if (department.getListEmployees().size() != 0)\n throw new Exception(\"To remove a department, only its chief must be inside\");\n if (department.getListManagers().size() > 1)\n throw new Exception(\"To remove a department, only its chief must be inside\");\n listDepartment.remove(department);\n return;\n }\n }\n\n throw new Exception(\"this department isn't in the company\");\n\n\n }", "title": "" }, { "docid": "f34112fef32676ac3e949ab012a1d095", "score": "0.56622237", "text": "public boolean hasDepartment() {\n return fieldSetFlags()[5];\n }", "title": "" }, { "docid": "cf71956bbc474eae098fbe4fc381a8ab", "score": "0.56522226", "text": "public String getdepartment(){\r\n return department;\r\n }", "title": "" }, { "docid": "4956a8aeaf31db3955cf694958dd3df6", "score": "0.56425446", "text": "public Vector<Department> findDepartmentAcro(String name) {\r\n\t\tVector<Department> validDep = new Vector<Department>();\r\n\t\tfor (int i = 0; i < departments.size(); i++) {\r\n\t\t\tif (departments.get(i).acronym.toLowerCase().contentEquals(name)) {\r\n\t\t\t\tvalidDep.add(departments.get(i));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn validDep;\r\n\t}", "title": "" }, { "docid": "666443a3b2a0a52fd339258d3f234e6a", "score": "0.5628403", "text": "protected boolean verify() {return true;}", "title": "" }, { "docid": "029274cfe85cf8a8104ad388223f0fd4", "score": "0.5588592", "text": "public boolean deleteDepartment() {\r\n// TODO Auto-generated method stub\r\nif (searchDepartment(false)) {\r\nSystem.out.println(\"\\n Do you want to delete this Department(yes|no):\");\r\nString userChoiceString=scanInputScanner.next();\r\nwhile (!(userChoiceString.equals(\"yes\")|userChoiceString.equals(\"no\"))) {\r\nSystem.out.println(\"\\nPlease enter valid option(yes|no): \");\r\nuserChoiceString=scanInputScanner.next();\r\n}\r\nif (userChoiceString.equals(\"yes\")) {\r\ncolumns=new ArrayList<String>();\r\ncolumns.add(ConstantsClass.department_col_1);\r\nvalues=new LinkedHashMap<Object, String>();\r\nvalues.put(new Integer(department_id),department_id);\r\nDbConnectorClass.getInstanceClass().deleteRecords(ConstantsClass.Department_TABLE,\r\ncolumns, values);\r\nSystem.out.print(\"\\n\\t\\tDepartment Deleted\");\r\nreturn true;\r\n} \r\nSystem.out.print(\"\\n\\t\\tDepartment Deletion failed\");\r\nreturn false;\r\n}\r\nelse {\r\nSystem.out.println(\"\\n Department not found!\");\r\nreturn false;\r\n}\r\n}", "title": "" }, { "docid": "04f319b5cadaced16625a5d21e675d1e", "score": "0.5585346", "text": "public String getDept(){\n\t\treturn department;\n\t}", "title": "" }, { "docid": "87e3500084b15e8e6e397d5c39c42fb4", "score": "0.55823237", "text": "private int updateCompletedept(int deptno, String dname, String loc) {\n\treturn 0;\r\n}", "title": "" }, { "docid": "f55f7edb0469d2127aa08348b5be83e2", "score": "0.55816656", "text": "private String setDepartment() {\n\t\tSystem.out.print(\"Enter the department: \\n 1 for Sales \\n 2 for Accounting \\n 0 for None \\n\");\n\t\tScanner in = new Scanner(System.in);\n\t\tint depChoice = in.nextInt();\n\t\t\n\t\tif (depChoice == 1 ) {return \"sales\";}\n\t\telse if (depChoice == 2) {return \"accounting\";}\n\t\telse { return \"\";}\n\t\t\n\t}", "title": "" }, { "docid": "42d1bcddc3ab36ddb2f1c8cd3e2e50bc", "score": "0.5573791", "text": "@Override\n\tpublic void deleteDepartment(String id)\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "b8a14d3149c272dc3d81e76c4c6bc945", "score": "0.5565743", "text": "@BeforeClass\n public static void setUpDepartment() {\n dept = new Department(\"Racing Department\");\n for (int i = 1; i <= EMPS_PER_DEPT; i++) {\n Employee emp = new Employee(\"Employee-\" + i, STARTING_SALARY, dept);\n dept.addEmployee(emp);\n }\n }", "title": "" }, { "docid": "3894df8086b80d96728739f0da841945", "score": "0.5535901", "text": "private String setDepartment() {\r\n\t\tSystem.out.print(\"Enter the department code\\n1 for Sales\\n2 for Administration\\n3 for Accounting\\n\");\r\n\t\tScanner dep = new Scanner(System.in);\r\n\t\tint choice = dep.nextInt();\r\n\t\tif(choice == 1) {return \"Sales\";}\r\n\t\telse if(choice == 2) {return \"Admin\";}\r\n\t\telse if(choice == 3) {return \"Acct\";}\r\n\t\telse {return \"\";}\r\n\t}", "title": "" }, { "docid": "160f3c28189ab1c545decff28f67b6d9", "score": "0.55347276", "text": "public Department getDepartment() {\n\t\treturn department;\n\t}", "title": "" }, { "docid": "b9a1b64730b5a52d9eace8e541cfe827", "score": "0.5529125", "text": "public static Specification<Trip> hasDepartmentOptional(int departmentId) {\n if(departmentId == 0){\n return (trip, cq, cb) -> {\n return cb.equal(trip.get(\"city\").get(\"department\").get(\"id\"), trip.get(\"city\").get(\"department\").get(\"id\"));\n };\n } else {\n return (trip, cq, cb) -> {\n return cb.equal(trip.get(\"city\").get(\"department\").get(\"id\"), departmentId);\n };\n }\n }", "title": "" }, { "docid": "80e843da767218f9c5d280d64d3bdc3b", "score": "0.55244803", "text": "private void departmentDelete(HttpServletRequest request,HttpServletResponse response) throws IOException{\n\t\tDepartment dep=new Department();\n\t\tdep.setDepartmentID(request.getParameter(\"departmentID\"));\n\t\tdepartmentMgrInterface dmi=departmentFactory.getInstance();\n\t\tdmi.delete(dep);\n\t}", "title": "" }, { "docid": "37d5fd14e0eabef3e148b766526bc985", "score": "0.5520168", "text": "private Profile profileValidator(String name, String department, String strDate) {\n\n boolean departmentChecked, dateChecked;\n Date date = new Date(strDate);\n\n departmentChecked = department.equals(\"ECE\") || department.equals(\"IT\") || department.equals(\"CS\");\n dateChecked = date.isValid();\n\n if(!departmentChecked){\n System.out.println(\"'\"+ department + \"' is not a valid department code\");\n return null;\n }\n if(!dateChecked){\n System.out.println(strDate + \" is not a valid date!\");\n return null;\n }\n\n return new Profile(name, department, date);\n\n\n }", "title": "" }, { "docid": "629f4649868bdb6704b4f8b02c1e0741", "score": "0.55140835", "text": "public String getDepartment(){\n return department;\n }", "title": "" }, { "docid": "14bae1d3ed17d0226cae03ebb3767e32", "score": "0.55136144", "text": "@Override\n\tpublic boolean modificar(Departamento dpto) {\n\t\treturn dptoDao.modificar(dpto);\n\t}", "title": "" }, { "docid": "6a3d378d1e70245f5e2d7d9737c678bd", "score": "0.5502765", "text": "Department getDepartmentByID(Long departmentID);", "title": "" }, { "docid": "f864a2f3219eb3ed73fb18c3e27e941d", "score": "0.5495921", "text": "public Integer getDepartment() {\n return department;\n }", "title": "" }, { "docid": "4d6891814f6600a039c875a489617292", "score": "0.5492866", "text": "public String getDepartment(){\n return this.department;\n }", "title": "" }, { "docid": "41998dd69d439128db9d8e8e7fa2973b", "score": "0.545949", "text": "public java.lang.String getDepartment() {\n return department;\n }", "title": "" }, { "docid": "41998dd69d439128db9d8e8e7fa2973b", "score": "0.545949", "text": "public java.lang.String getDepartment() {\n return department;\n }", "title": "" }, { "docid": "a7fc28ff11745afaa1fafb96845dfa2a", "score": "0.5452821", "text": "public static void main(String[] args) {\n Employee employee=new Employee(\"Sumit\", \"Patel\");\r\n System.out.println(\"Enter your Department\");\r\n System.out.println(\"1.Technical\\n2.Legal\\n3. HR\\n4. Manager\");\r\n Scanner sc = new Scanner(System.in);\r\n int choice = sc.nextInt();\t\r\n Department department=new Department();\r\n CredentialService service=new CredentialService();\r\n switch (choice) {\r\n case 1:\r\n department.setDepName(\"Technical\");\r\n String Email= service.generateEmail(employee, department);\r\n String Password=service.generatePassword();\r\n service.showCredentials(Email, Password, employee.getFirstname());\r\n break;\r\n case 2:\r\n \tdepartment.setDepName(\"Legal\");\r\n \tString Email1= service.generateEmail(employee, department);\r\n \tString Password1= service.generatePassword();\r\n \tservice.showCredentials(Email1, Password1, employee.getFirstname());\r\n \tbreak;\r\n case 3:\r\n \tdepartment.setDepName(\"HR\");\r\n \tString Email2= service.generateEmail(employee, department);\r\n \tString Password2= service.generatePassword();\r\n \tservice.showCredentials(Email2, Password2, employee.getFirstname());\r\n \tbreak;\r\n case 4:\r\n \tdepartment.setDepName(\"Manager\");\r\n \tString Email3= service.generateEmail(employee, department);\r\n \tString Password3= service.generatePassword();\r\n \tservice.showCredentials(Email3, Password3, employee.getFirstname());\r\n \tbreak;\r\n default:\r\n\t\t\tSystem.out.println(\"Please give a valid department no.\");\r\n\t\t}\r\n\t\tsc.close();\r\n \r\n }", "title": "" }, { "docid": "99cc20aa159e8b683a1535c69f852289", "score": "0.5438743", "text": "public java.lang.String getDepartment() {\n return department;\n }", "title": "" }, { "docid": "99cc20aa159e8b683a1535c69f852289", "score": "0.5438743", "text": "public java.lang.String getDepartment() {\n return department;\n }", "title": "" }, { "docid": "ebfc7a707ef4887676003175e6655f67", "score": "0.54340684", "text": "public Departments[] findWhereDepartmentIdEquals(int departmentId) throws DepartmentsDaoException;", "title": "" }, { "docid": "d764cb05342af2ca382709628e94b1a2", "score": "0.5432408", "text": "@Override\n\tpublic String updateDepartment(long id) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "27d662eb2bd094d48f4bbcc91c37e938", "score": "0.5425939", "text": "@Override\n\tpublic String deleteDepartment(long id) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "981899386222f089b924c2f4094db284", "score": "0.53973943", "text": "@Test\r\n\t//小技巧,修改或者删除一个新的部门的时候不要假设这个用例依赖于之前的case\r\n\t//也就是修改前同时先建一个专门用于修改的case\r\n\t\r\n\t//这里会发现,如果在新建前该部门已经存在,那么新建就会报错,后面的更新和删除则无法执行\r\n\t//这里可以使用时间戳,随机生成机构名称,保证每次新建的部门不冲突。时间戳定义在前面\r\n\tvoid update() {\n\t\tString nameOld = \"forChange\"+random;\r\n department.create(nameOld,\"1\");\r\n String id = department.list(\"\")\r\n \t\t.path(\"department.find{it.name == '\"+nameOld+\"'}.id\").toString();\r\n department.update(id, nameOld).then()\r\n .body(\"errcode\", equalTo(0))\r\n .body(\"errmsg\", equalTo(\"updated\"));\r\n }", "title": "" }, { "docid": "5b25fb57f7ad586f82bec4052d009208", "score": "0.5392677", "text": "@PostMapping(\"/v1/departments\")\n ResponseEntity<Department> create(@Valid @RequestBody Department department);", "title": "" }, { "docid": "6df86c2a4816e8335504ad0418d15cfe", "score": "0.5390858", "text": "public String getDepartmentName() {\r\n return departmentName;\r\n }", "title": "" }, { "docid": "3c65f74876ab93a5d2d33e84782a63d7", "score": "0.5366092", "text": "@Test\n\tpublic void test_getDept() {\n\tUCSBCourse cs56 = new UCSBCourse(\"CMPSC\",\"56\",4);\n\tassertEquals(\"CMPSC\",cs56.getDept());\n }", "title": "" }, { "docid": "05d8cb5a08d7cae61d904ffbabe41459", "score": "0.53605014", "text": "public DepartmentBean saveDepartment(DepartmentBean departmentBean);", "title": "" }, { "docid": "5a38b3f053701bba03a943da9c607b44", "score": "0.53493845", "text": "public boolean isInADepartment(Manager manager) throws Exception {\n if (manager == null)\n throw new Exception(\"Company : isInADepartment : null arguments\");\n for (Department d : listDepartment) {\n if (d.isManagerIn(manager))\n return true;\n }\n\n return false;\n\n }", "title": "" }, { "docid": "5bb0190881676a9c2599adfdc16eaaf3", "score": "0.53411", "text": "public String getEmployeeDepartment()\r\n {\r\n return employeeDepartment;\r\n }", "title": "" }, { "docid": "83002e919b32b7ebc67b62926882cb21", "score": "0.53246725", "text": "public void setUserDepartment(String userDepartment) {\n this.userDepartment = userDepartment;\n }", "title": "" }, { "docid": "9c187b7f2124db006780e520be2470f6", "score": "0.5322328", "text": "public String getDepartmentName() {\n return departmentName;\n }", "title": "" }, { "docid": "4622be11bd4e7e34989ddd56483512d0", "score": "0.53187144", "text": "@Override\n\tpublic Department addDepartment(Department dept)\n\t{\n\t\treturn null;\n\t}", "title": "" }, { "docid": "e03f24f949ee662039f1c086931e4574", "score": "0.53182936", "text": "public boolean deleteDept(int depno) {\n try {\n CallableStatement cstmt = connection.prepareCall(\"{ call PR_delete_Deptno( ? )}\");\n //cstmt.registerOutParameter(1, OracleTypes.CURSOR);\n cstmt.setInt(1, depno);\n cstmt.execute();\n return true;\n } catch (Exception e) {\n System.out.println(\"Exception: \" + e);\n return false;\n }\n }", "title": "" }, { "docid": "0aa8fa08cfc6fbbeb27a48ae057f3a7c", "score": "0.5307595", "text": "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Department)) {\r\n return false;\r\n }\r\n Department other = (Department) object;\r\n if ((this.departmentID == null && other.departmentID != null) || (this.departmentID != null && !this.departmentID.equals(other.departmentID))) {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "ccd947f45bcbbc86df98358b10399c6b", "score": "0.53061974", "text": "public Departments[] findWhereDepartmentNameEquals(String departmentName) throws DepartmentsDaoException;", "title": "" }, { "docid": "89af0ed00f0ab623384b4c21eaeaf9b2", "score": "0.52964467", "text": "public boolean doCreate(Department department) throws Exception {\n\t\tboolean flag = false;\n\t\tPreparedStatement pstmt = null;\n\t\tString sql = \"INSERT INTO department(departmentname,departmentinfo) VALUES (?,?) \";\n\t\ttry {\n\t\t\tpstmt = this.conn.prepareStatement(sql);\n\t\t\tpstmt.setString(1, department.getDepartmentName());\n\t\t\tpstmt.setString(2, department.getDepartmentInfo());\n\n\t\t\t// check if the creation is successful\n\t\t\tif (pstmt.executeUpdate() > 0) {\n\t\t\t\tflag = true;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tthrow e;\n\t\t} finally {\n\t\t\tif (pstmt != null) {\n\t\t\t\ttry {\n\t\t\t\t\tpstmt.close();\n\t\t\t\t} catch (Exception e1) {\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn flag;\n\t}", "title": "" }, { "docid": "c00f6e5f0071975d4f9e1f8257e14b00", "score": "0.52798474", "text": "public void setDepartmentkey (java.lang.String departmentkey) {\n\t\tthis.departmentkey = departmentkey;\n\t}", "title": "" }, { "docid": "d3a110a84b60f7b11745ce911693a2eb", "score": "0.5275252", "text": "@Test\r\n\t//小技巧,删除一个新的部门的时候不要假设这个用例依赖于之前的case\r\n\t//也就是删除前同时先建一个专门用于修改的case\r\n\tvoid delete() {\n\t\tString nameOld = \"forDelete\"+random;\r\n\t\tdepartment.create(nameOld,\"1\");\r\n\t\tString id = department.list(\"\")\r\n\t\t.path(\"department.find{it.name == '\"+nameOld+\"'}.id\").toString();\r\n\t\tdepartment.delete(id).then().log().all().statusCode(200)\r\n\t\t.body(\"errcode\", equalTo(0))\r\n\t\t.body(\"errmsg\",equalTo(\"deleted\"));\r\n\t\t//下面是修改前,不新增直接删除的\r\n\t\t//department.delete(\"5\").then().log().all().statusCode(200)\r\n\t\t//.body(\"errmsg\",equalTo(\"deleted\"));\r\n\t}", "title": "" }, { "docid": "91767453a29539d2895724225941431f", "score": "0.52748525", "text": "public DepartmentDotNet getDepartment() {\n\t\treturn departmentDotNet;\n\t}", "title": "" }, { "docid": "75c7d81d0a3712e20005f3c77a39b8fa", "score": "0.52659655", "text": "public void verifyAgreement()\n\t{\n\t\tAssert.assertTrue(verifyElementIsDisplayed(\"PatronAgree\", \"id\"));\n\t}", "title": "" }, { "docid": "924d1aed2ccab0a584fec1e0232b096f", "score": "0.52659005", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Department)) {\n return false;\n }\n Department other = (Department) object;\n if ((this.departmentId == null && other.departmentId != null)\n || (this.departmentId != null && !this.departmentId.equals(other.departmentId))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "b4b70111f0f8deeadd244ae0f110a173", "score": "0.5263187", "text": "private void departmentUpdate(HttpServletRequest request,HttpServletResponse response) throws IOException{\n\t\tDepartment dep=new Department();\n\t\tCollege col=new College();\n\t\tcol.setCollegeID(request.getParameter(\"collegeID\"));\n\t\tdep.setCollege(col);\n\t\tdep.setDepartmentID(request.getParameter(\"departmentID\"));\n\t\tdep.setDepartmentName(request.getParameter(\"departmentName\"));\n\t\tdep.setRemark(request.getParameter(\"Remark\"));\n\t\tdepartmentMgrInterface dmi=departmentFactory.getInstance();\n\t\tdmi.update(dep);\n\t}", "title": "" }, { "docid": "34bd73fa706cadd9648c67879f1dafc8", "score": "0.5259194", "text": "private void validar(PlanMantenimiento planMantenimiento)\r\n/* 198: */ throws AS2ExceptionMantenimiento\r\n/* 199: */ {\r\n/* 200:204 */ for (DetallePlanMantenimiento detallePlanMantenimiento : planMantenimiento.getListaDetallePlanMantenimiento()) {\r\n/* 201:205 */ if (detallePlanMantenimiento.getListaDetallePlanMantenimientoFrecuenciaView().size() == 0) {\r\n/* 202:206 */ throw new AS2ExceptionMantenimiento(\"com.asinfo.as2.mantenimiento.configuracion.servicio.impl.ServicioPlanMantenimientoImpl.ERROR_NO_EXISTE_FRECUENCIA_DETALLE_MANTENIMIENTO\", new String[] { \"\" });\r\n/* 203: */ }\r\n/* 204: */ }\r\n/* 205: */ }", "title": "" }, { "docid": "ac0b1c85eff1d587060c310a27516167", "score": "0.5257674", "text": "void updateDepartmentInfo(int planId, DepartmentInfo departmentInfo);", "title": "" }, { "docid": "089d6f3ae3a6feee37adb561c154afee", "score": "0.5254507", "text": "java.lang.String getDeptCode();", "title": "" }, { "docid": "9183e6e4579fab7935d88338c693e41d", "score": "0.52510417", "text": "@Override\n public boolean dismissEmployeesFromDepartment(Integer depID) {\n if (depID == null) return false;\n Session session = null;\n try {\n session = sessionFactory.openSession();\n List<Employee> employees = session.createCriteria(Employee.class).\n add(Restrictions.eq(\"department.id\", depID)).list();\n for (Employee emp : employees) {\n emp.setDepartment(null);\n System.out.println(emp.getId());\n if (!update(emp))\n return false;\n }\n } catch (Exception e) {\n logger.error(\"dismissEmployeesFromDepartment exception!\", e);\n return false;\n } finally {\n closeSession(session);\n }\n return true;\n }", "title": "" }, { "docid": "eb6c2f27426fb7efc7a605484704d7f3", "score": "0.5250696", "text": "public void setDepartmentName(String departmentName) {\r\n this.departmentName = departmentName == null ? null : departmentName.trim();\r\n }", "title": "" }, { "docid": "417ee605677dab8ff337364661375d20", "score": "0.5239918", "text": "public void setDeptName(String deptName) {\n\t\tthis.deptName = deptName;\n\t}", "title": "" }, { "docid": "9899defb908497c7f615eeec06a07ea8", "score": "0.52395767", "text": "public boolean verifyDesignationValidate() {\n\t\tdriver.findElement(signup).click();\n\t\tdriver.findElement(email).sendKeys(\"har@\");\n\t\tdriver.findElement( firstName).sendKeys(\"har\");\n\t\tdriver.findElement(lastName).sendKeys(\"kaur\");\n\t\tdriver.findElement(signbtn).click();\n\t\ttry {\n\t\t\t// to locate the alert using switch statement\n\t\t\tAlert al = driver.switchTo().alert();\n\n\t\t\t// to get text from alert and store into string variable\n\t\t\tString alertText = al.getText();\n\n\t\t\t// to check actual text equals to expected text\n\t\t\tif (alertText.equals(\"designation required\"))\n\t\t\t\t// In oder to handle the alert message click on OK button\n\t\t\t\tal.accept();\n\t\t\t\n\t\t\t} catch(Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t\tString designationtxt = driver.findElement(designation).getText();\n\t\tif (designationtxt.isEmpty()) {\n\t\t\t\treturn true;\n\t\t}\n\t\t\treturn false;\n\t\t}", "title": "" }, { "docid": "95626722d9d3323530ba76ed9f5c63a6", "score": "0.5237776", "text": "private void setDeptId() {\n\n String id = getId();\n if(validId(id)) {\n this.deptId = reverseString(id);\n }else {\n this.deptId = \"None01\";\n }\n\n }", "title": "" }, { "docid": "a38be2417e821f39ffea5da9c2f24e0b", "score": "0.52366936", "text": "public void setDeptId(Integer deptId) {\n\t\tthis.deptId = deptId;\n\t}", "title": "" }, { "docid": "f6e33579d41af54f1c6d038f06592496", "score": "0.5236375", "text": "public com.malsolo.kafka.purchase.model.avro.Purchase.Builder setDepartment(java.lang.String value) {\n validate(fields()[5], value);\n this.department = value;\n fieldSetFlags()[5] = true;\n return this;\n }", "title": "" }, { "docid": "1c045c5b32b3e9c7b98b8a08461d0bac", "score": "0.5234362", "text": "protected void verify() throws Exception {\n }", "title": "" }, { "docid": "6f6a84684ba2923df0c4cc9b3f2bc25b", "score": "0.5232148", "text": "public Departments findByPrimaryKey(int departmentId) throws DepartmentsDaoException;", "title": "" }, { "docid": "90921125882aac041827eb19ac18041e", "score": "0.52316254", "text": "@Test\n\tpublic void testAddNewDept() {\n\t\tDepartmentsDto dDto = new DepartmentsDto();\n\t\tdDto.setDeptId(23);\n\t\tdDto.setDeptName(\"NewTestData\");\n\t\tdDto.setLocation(\"TestDataLocation\");\n\t\tdDto.setEmployees(null);\n\t\t\n\t\twhen(dsi.addNewDept(Mockito.any(DepartmentsDto.class))).thenReturn(dDto);\n\t\tDepartmentsDto deptDto = dsi.addNewDept(dDto);\n\t\tassertNotNull(deptDto);\n\t}", "title": "" }, { "docid": "633538425e1234d560f44c04901fd017", "score": "0.52264494", "text": "private void deleteDept(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tresponse.setContentType(\"text/html\");\n\t\tPrintWriter out = response.getWriter();\n\t\tint departmentID = Integer.parseInt(request.getParameter(\"departmentID\"));\n\t\t\n\t\tboolean result = biz.deleteDept(departmentID);\n\t\t\n\t\tout.print(result);\n\t\tout.flush();\n\t\tout.close();\n\t}", "title": "" }, { "docid": "6b1c6aa293db4b3bd17426d03ec3abb7", "score": "0.5214328", "text": "void verifySingle(VerificationPhase phase, DataModel dataModel, CatalogueElement element);", "title": "" }, { "docid": "4c3a2f372fc58f443079c8fb044b21e2", "score": "0.52060115", "text": "@Test(priority=6)\r\n\tpublic void TC15_verify_SuccessfulInquiry() throws Exception\r\n\t{\n\t\t\r\n\t\tnew LoginPage().login().Quicknavigation(\"BSTL\").navigatetoBatchErrors().verifySuccessfulInquiry();\r\n\t\t//new BatchStatusLogs_page().VerifyFieldspresent();\r\n\t}", "title": "" }, { "docid": "327944ed4771120019505d397a493353", "score": "0.5200806", "text": "@Nullable\n public String getDepartment() {\n return this.department;\n }", "title": "" } ]
d8cfd57f4402db37ce93ef4b5e0ab00f
Sets the price of the product (in the view).
[ { "docid": "73838d8137af68494bd417db3b321091", "score": "0.7985014", "text": "public void setPrice (Product product) {\n\t\tpriceLbl.setText(product.getPrice() + \"\");\n\t\tpriceLbl.repaint();\n\t}", "title": "" } ]
[ { "docid": "d7c890c8da9c6dd45076bfde64ee834b", "score": "0.810862", "text": "public void setProductPrice(double productPrice) {\n this.productPrice = productPrice;\n }", "title": "" }, { "docid": "a0365ee71716cb825f33121768ae84c9", "score": "0.78178215", "text": "public void setPrice(double price) {\r\n this.price = price;\r\n }", "title": "" }, { "docid": "a0365ee71716cb825f33121768ae84c9", "score": "0.78178215", "text": "public void setPrice(double price) {\r\n this.price = price;\r\n }", "title": "" }, { "docid": "a0365ee71716cb825f33121768ae84c9", "score": "0.78178215", "text": "public void setPrice(double price) {\r\n this.price = price;\r\n }", "title": "" }, { "docid": "666f7b9afb160e0f5852e5aeba9a0161", "score": "0.7815795", "text": "public void setPrice(double price) \n\t{\n\t\tthis.price = price * quantity;\n\t}", "title": "" }, { "docid": "d89758a165985822c8446dcbac2b6c01", "score": "0.77971566", "text": "public void setPrice(double price) {\n this.price = price;\n }", "title": "" }, { "docid": "d89758a165985822c8446dcbac2b6c01", "score": "0.77971566", "text": "public void setPrice(double price) {\n this.price = price;\n }", "title": "" }, { "docid": "d89758a165985822c8446dcbac2b6c01", "score": "0.77971566", "text": "public void setPrice(double price) {\n this.price = price;\n }", "title": "" }, { "docid": "d89758a165985822c8446dcbac2b6c01", "score": "0.77971566", "text": "public void setPrice(double price) {\n this.price = price;\n }", "title": "" }, { "docid": "d89758a165985822c8446dcbac2b6c01", "score": "0.77971566", "text": "public void setPrice(double price) {\n this.price = price;\n }", "title": "" }, { "docid": "d89758a165985822c8446dcbac2b6c01", "score": "0.77971566", "text": "public void setPrice(double price) {\n this.price = price;\n }", "title": "" }, { "docid": "d89758a165985822c8446dcbac2b6c01", "score": "0.77971566", "text": "public void setPrice(double price) {\n this.price = price;\n }", "title": "" }, { "docid": "500d9d8643394f991816628c42b5ac19", "score": "0.7787801", "text": "public void setPrice(double p)\r\n\t{\r\n\t\tprice = p;\r\n\t}", "title": "" }, { "docid": "dbd35841f8c46fe4aacd71d7a87ba219", "score": "0.77787703", "text": "public void setPrice(double price)\n {\n this.price = price;\n }", "title": "" }, { "docid": "b618eb0a84292a2c6475dcc180f276e5", "score": "0.7778089", "text": "@Override\r\n\tpublic void setPrice(double p) {\n\t\tprice = p;\r\n\t}", "title": "" }, { "docid": "dc3b9e9357b320a5b22517c98b3dab7d", "score": "0.7757416", "text": "public void setPrice(double value) {\n this.price = value;\n }", "title": "" }, { "docid": "dc3b9e9357b320a5b22517c98b3dab7d", "score": "0.7757416", "text": "public void setPrice(double value) {\n this.price = value;\n }", "title": "" }, { "docid": "6e96c68ecbfccaf1cb5b12e75cf7ac4d", "score": "0.77541316", "text": "public void setPrice(double price)\n {\n this.price = price;\n }", "title": "" }, { "docid": "962e7d3b5f1ea781558c530e1c4ed325", "score": "0.7706912", "text": "public void setPrice(Double price) {\r\n this.price = price;\r\n }", "title": "" }, { "docid": "40e7b9f7798958a934fafd1e0332ccff", "score": "0.76712644", "text": "public void setPrice(double price) {\r\n\t\tthis.price = price;\r\n\t}", "title": "" }, { "docid": "40e7b9f7798958a934fafd1e0332ccff", "score": "0.76712644", "text": "public void setPrice(double price) {\r\n\t\tthis.price = price;\r\n\t}", "title": "" }, { "docid": "74324331454555de51ece7ac654525d2", "score": "0.76641315", "text": "public void setPrice(Double price) {\n this.price = price;\n }", "title": "" }, { "docid": "74324331454555de51ece7ac654525d2", "score": "0.76641315", "text": "public void setPrice(Double price) {\n this.price = price;\n }", "title": "" }, { "docid": "986b2cbae435504eb8fa2128bf498bca", "score": "0.76595443", "text": "public void setPrice(double p) {\n\t\tprice = p;\n\t}", "title": "" }, { "docid": "04c9128dfa4ee503234099d75c261366", "score": "0.76325405", "text": "public void setPrice(double p){\n\t\t// store into the instance variable price the value of the parameter p\n\t\tprice = p;\n\t}", "title": "" }, { "docid": "57d25b286cfbe2fa6a0400af0d6e364e", "score": "0.76033616", "text": "public void setPrice(double newPrice) {\r\n price = newPrice;\r\n }", "title": "" }, { "docid": "b3521e2616473dd494adb55148ef9aab", "score": "0.75996214", "text": "public void setPrice(double price) \n\t{\n\t\tthis.price = price;\n\t}", "title": "" }, { "docid": "01cc0b62a0d0fd1de7c0d55d287bce29", "score": "0.75365734", "text": "public void setPrice(double price) {\n\t\tthis.price = price;\n\t}", "title": "" }, { "docid": "01cc0b62a0d0fd1de7c0d55d287bce29", "score": "0.75365734", "text": "public void setPrice(double price) {\n\t\tthis.price = price;\n\t}", "title": "" }, { "docid": "01cc0b62a0d0fd1de7c0d55d287bce29", "score": "0.75365734", "text": "public void setPrice(double price) {\n\t\tthis.price = price;\n\t}", "title": "" }, { "docid": "c9de939886b7758d62e28496dafc60ce", "score": "0.7533041", "text": "public void setPrice(Double price);", "title": "" }, { "docid": "13905088a937fd7a4b41968e29cd7621", "score": "0.7486519", "text": "public void setPrice(int price) {\n this.price = (double)price;\n }", "title": "" }, { "docid": "c780e0f9086b87ae6ccde9dbceb4523e", "score": "0.74734145", "text": "public void setPrice(float price) {\n this.price = price;\n }", "title": "" }, { "docid": "c780e0f9086b87ae6ccde9dbceb4523e", "score": "0.74734145", "text": "public void setPrice(float price) {\n this.price = price;\n }", "title": "" }, { "docid": "52f0ef83bfb4fa25e0820f1745dbf7bd", "score": "0.7472419", "text": "public void setPrice(int price) {\r\n this.price = price;\r\n }", "title": "" }, { "docid": "5b065919232f226c36bcea9a9d17b093", "score": "0.74464226", "text": "protected void setPrice(float price) {\n\t\t\tthis.price = price;\n\t\t}", "title": "" }, { "docid": "be47573dd218bb88d7a1519d72924e15", "score": "0.7441057", "text": "public void setPrice(int price) {\n this.price = price;\n }", "title": "" }, { "docid": "6bf2229e8504acbe0f2464409158e9a3", "score": "0.7407669", "text": "public void setPrice(Float price) {\r\n this.price = price;\r\n }", "title": "" }, { "docid": "8b95a3caeb9d269f1b2abdb07133e34b", "score": "0.7394393", "text": "public void setPrice(Double price) {\n\t\tthis.price = price;\n\t}", "title": "" }, { "docid": "0b1447d2e161c97bec7ca709503c1416", "score": "0.73935145", "text": "public void setPrice(Float price) {\n this.price = price;\n }", "title": "" }, { "docid": "6dbe63ca9f09e84d32f0a9a76b6c89bd", "score": "0.7391072", "text": "@Override\n\tpublic void setPrice(double price) {\n\t\tconstantPO.setPrice(price);\n\t}", "title": "" }, { "docid": "23bfe13d01ebe0f02298b8b8fd9d89a7", "score": "0.7386568", "text": "public void setPrice(int value) {\n this.price = value;\n }", "title": "" }, { "docid": "74c99ee9839b389fd29dd5e06f81ba63", "score": "0.7381648", "text": "public void setProduct(Product product) {\n this.product = product;\n this.updateTotalPrice();\n }", "title": "" }, { "docid": "6372a753fc7152159a63123090760bc3", "score": "0.7380298", "text": "public void setProductPrice (java.lang.Double productPrice) {\r\n\t\tthis.productPrice = productPrice;\r\n\t}", "title": "" }, { "docid": "8928c0009a7c8e3392c917cca930617d", "score": "0.7337774", "text": "public void setPrice(java.math.BigDecimal price) {\n this.price = price;\n }", "title": "" }, { "docid": "2f652ce12bddc6966f5ca9c9460cb48d", "score": "0.7335009", "text": "public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }", "title": "" }, { "docid": "2f652ce12bddc6966f5ca9c9460cb48d", "score": "0.7335009", "text": "public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }", "title": "" }, { "docid": "1b2101cb2e54252eca45b1ac049fb57e", "score": "0.7334782", "text": "@Override\n\tpublic void setPrice() {\n\t\tprice = 24.99;\n\n\t}", "title": "" }, { "docid": "48f45e5df57b8eb301a0a55a9ce08878", "score": "0.7323976", "text": "public void setPrice(BigDecimal price) {\n this.price = price;\n }", "title": "" }, { "docid": "48f45e5df57b8eb301a0a55a9ce08878", "score": "0.7323976", "text": "public void setPrice(BigDecimal price) {\n this.price = price;\n }", "title": "" }, { "docid": "f7dca7bb1f59f0ac9c013b369037e418", "score": "0.73172987", "text": "public void setPrice(final BigDecimal price) {\n this.price = price;\n }", "title": "" }, { "docid": "5858b9316cf8f5bab864993c0d21b658", "score": "0.7313498", "text": "public void setPrice(int newPrice){\n productRelation.setCost(newPrice);\n }", "title": "" }, { "docid": "e8e776f40108f5ee7ad2f5eb5e6d0fff", "score": "0.7311653", "text": "public void changePrice(Product p, int price){\r\n\t\tp.price = price;\r\n\t}", "title": "" }, { "docid": "ad2ba8f6abf68ee22f0912a6a1c9267a", "score": "0.7304942", "text": "public void setPrice(Money price) {\n this.price = price;\n }", "title": "" }, { "docid": "19646f16f0555daab8226878be409200", "score": "0.72879434", "text": "public void setPrice(float itemPrice) \n {\n price = itemPrice;\n }", "title": "" }, { "docid": "f88cc40fe62db22c4499c70a482ddcc0", "score": "0.72579116", "text": "public void setPrice(int price) {\n\t\tthis.price = price;\n\t\tlbl.setText(price+\" C\");\n\t}", "title": "" }, { "docid": "85a82a6bcb1c84a94373d6442b1005d0", "score": "0.72505146", "text": "public void setPrice(Number value) {\n setAttributeInternal(PRICE, value);\n }", "title": "" }, { "docid": "23e18235c616bc3616206cc95b3904c8", "score": "0.72370493", "text": "public void setPrice (double ticketPrice)\r\n {\r\n price = ticketPrice;\r\n }", "title": "" }, { "docid": "4db141b8221a3e0d2f480ab1bb2f3719", "score": "0.7229985", "text": "public void setPrice(double price){this.price=price;}", "title": "" }, { "docid": "01e7462954b61518f9a754c34b9b5152", "score": "0.7228262", "text": "public void setPrice(int price) {\n\tthis.price = price;\n}", "title": "" }, { "docid": "8a7c7b037576583f727af260b63c9c3e", "score": "0.715684", "text": "protected void setItemPrice(Double itemPrice) {\n this.itemPrice = itemPrice;\n }", "title": "" }, { "docid": "f248c6c354a191c6f391a5d016ea3927", "score": "0.71443933", "text": "void setPrice(int price) {\n mPriceTextView.setText(StoreUtils.getPriceString(price, mCurrency));\n }", "title": "" }, { "docid": "d5bae581b09662872cc399de6f69722e", "score": "0.7134109", "text": "public void setpPrice(double pPrice) {\n this.pPrice = pPrice;\n }", "title": "" }, { "docid": "c929a8aa244e8b5972bcd79a60013148", "score": "0.7119847", "text": "public void setPrice(java.lang.Integer _price)\n {\n price = _price;\n }", "title": "" }, { "docid": "dff451a5c7f0e4067405c96eb26ab7c4", "score": "0.7110269", "text": "public void setPrice(double price) {\n\t\tif(price > 0 )\n\t\t\tthis.price=price;\n\t}", "title": "" }, { "docid": "fe38d1459c7484a618a14f2a4b4da63c", "score": "0.7107811", "text": "public void setPurchasePrice(double p)\n {\n this.purchasePrice = p;\n }", "title": "" }, { "docid": "db953c9129b2b34c5623dc460b5f2ce8", "score": "0.70972466", "text": "public void setProductPrice(Integer productPrice) {\n\t\tthis.productPrice = productPrice;\n\t}", "title": "" }, { "docid": "d89efa5caf02ee2f9a6c6822151207de", "score": "0.70700264", "text": "protected void setPrice(DukatAmount price){\r\n\t\tif(canHaveAsPrice(price))\r\n\t\t\tthis.price = price;\r\n\t}", "title": "" }, { "docid": "3a60052b7e4ab90716a14bc35047b0fc", "score": "0.70615804", "text": "public void setPrice(double price) {\n this.price = price;\n if (this.price < 0) {\n this.price = 0;\n }\n }", "title": "" }, { "docid": "357e3db310ab5133aa92460de073297c", "score": "0.7057324", "text": "public void setPrice(Integer price) {\r\n this.price = price;\r\n }", "title": "" }, { "docid": "357e3db310ab5133aa92460de073297c", "score": "0.7057324", "text": "public void setPrice(Integer price) {\r\n this.price = price;\r\n }", "title": "" }, { "docid": "594f0c36a2a5cccbb120f54265bc7264", "score": "0.7037103", "text": "public void setPrice(Integer price) {\n this.price = price;\n }", "title": "" }, { "docid": "594f0c36a2a5cccbb120f54265bc7264", "score": "0.7037103", "text": "public void setPrice(Integer price) {\n this.price = price;\n }", "title": "" }, { "docid": "594f0c36a2a5cccbb120f54265bc7264", "score": "0.7037103", "text": "public void setPrice(Integer price) {\n this.price = price;\n }", "title": "" }, { "docid": "594f0c36a2a5cccbb120f54265bc7264", "score": "0.7037103", "text": "public void setPrice(Integer price) {\n this.price = price;\n }", "title": "" }, { "docid": "3c202d44999cdfc2c819d4d51d30ce84", "score": "0.7029198", "text": "public void setShopItemPrice(Double price) {\n\t\tlblPrice.setText(\"Price : \" + price + \" NTD\");\n\t}", "title": "" }, { "docid": "34733d5b85c2a9be3bedf1884dbac58e", "score": "0.7026203", "text": "public void setPrice(double x){\n\t\t\tprice = x;\t\n\t\t}", "title": "" }, { "docid": "8ca0700644753a5daf3483a17afaf623", "score": "0.70032495", "text": "public Builder setPrice(double value) {\n bitField0_ |= 0x00000010;\n price_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "e9c7b2b3c298386e085f2a60d21eec2e", "score": "0.69719833", "text": "public void setPotatoesPrice(double p);", "title": "" }, { "docid": "67f2309d8b38b667c34a8d12ea7abf25", "score": "0.6953939", "text": "public void setPrice(Long price) {\n this.price = price;\n }", "title": "" }, { "docid": "14a503888433baaa55a3c73faecf7827", "score": "0.69385874", "text": "@Override\n\tpublic void setPrice(int price) {\n\t\t\n\t}", "title": "" }, { "docid": "9e4ae3501017233f540a40b100c95e27", "score": "0.6919064", "text": "public void setPrice(Date price) {\n this.price = price;\n }", "title": "" }, { "docid": "b9f0a3c57589179b3370be68f57527f7", "score": "0.69040006", "text": "public void setPrice(java.lang.String price) {\n this.price = price;\n }", "title": "" }, { "docid": "3dcf5874e4192e0897f253341134fd87", "score": "0.6903524", "text": "public void setPrice(String price) {\n\t\tthis.price = price;\n\t}", "title": "" }, { "docid": "c4e1609b7f42e010268c9a0dcd206609", "score": "0.6881032", "text": "public void editProductPrice(String price){\r\n\t\twdlib.waitForElement(getProductText());\r\n\t\tif(getProductText().getText().equals(\"None Included\")){\r\n\t\t\tselPproductBtn.click();\r\n\t\t\tProductsPage pdpage=new ProductsPage();\r\n\t\t\tpdpage.selectProducts();\r\n\t\t\tdriver.navigate().refresh();\r\n\t\t\tselProductOpt.click();\r\n\t\t\twdlib.waitForElement(getProductText());\r\n\t\t\teditBtn.click();\r\n\t\t\taddNewPrice(price);\r\n\t\t}\r\n\t\telse{\r\n\t\t\t\r\n\t\t\teditBtn.click();\r\n\t\t\taddNewPrice(price);\r\n\t\t}\r\n\t\tdriver.navigate().refresh();\r\n\t}", "title": "" }, { "docid": "fac9225319776130f0ab1823ff21eea2", "score": "0.6851863", "text": "public Builder setPrice(int value) {\n bitField0_ |= 0x00000020;\n price_ = value;\n \n return this;\n }", "title": "" }, { "docid": "a22e144ceeff90f4314973423e71bdd8", "score": "0.68472457", "text": "public void setPrice(BigDecimal value) {\n setAttributeInternal(PRICE, value);\n }", "title": "" }, { "docid": "9811e93b06fdec5014be06f0ff34776f", "score": "0.6685599", "text": "public void setPurchasePrice(Double purchasePrice) {\r\n this.purchasePrice = purchasePrice;\r\n }", "title": "" }, { "docid": "baefc7335dceac1cf38836f24d26bcaf", "score": "0.66275156", "text": "public void setPrice(int price)\n {\n if(checker.isString(Integer.toString(price)))\n this.price = price;\n else\n this.price = 0;\n }", "title": "" }, { "docid": "dccdda52e94dc7d46a1f7068702b53a7", "score": "0.661842", "text": "public void setpPrice(BigDecimal pPrice) {\n this.pPrice = pPrice;\n }", "title": "" }, { "docid": "14a159b31ca2ad772eada9cd47aab620", "score": "0.6607785", "text": "public void setPotatoesPrice(double p) {\n this.potatoesPrice = p;\n }", "title": "" }, { "docid": "39138aed38e463da9ee12760e3d6e8fb", "score": "0.6601081", "text": "public double getProductPrice() {\n return productPrice;\n }", "title": "" }, { "docid": "c703b84417a550b74ffa98d1c018886d", "score": "0.65568346", "text": "public void setPrice(Money price) {\n\t\tif (price == null) {\n\t\t\tthis.price = new Money(0, 0);\n\t\t} else {\n\t\t\tthis.price = price;\n\t\t}\n\t}", "title": "" }, { "docid": "945b316d0a8d880a637f7d1274ecfbd0", "score": "0.652402", "text": "public void setProduct(Product product) {\n this.product = product;\n }", "title": "" }, { "docid": "ed9d13e1cde829e5f0481143b8d3fda9", "score": "0.65232617", "text": "public static void setPrice() {\n double summe = 0.0;\n for (Object obj : dlm.getDisplayedArtikel()) {\n if (obj instanceof Article) {\n Article art = (Article) obj;\n if (!art.isIsAbfrage()) {\n if (((art.isJugendSchutz() && art.isJugendSchutzOk())) || !art.isJugendSchutz()) {\n if (art.isEloadingAmmountOk() && !art.isPriceZero()) {\n summe += ((Article) ((obj))).getPreis() * ((Article) ((obj))).getAmount();\n }\n }\n }\n } else if (obj instanceof Karte) {\n Karte card = (Karte) obj;\n summe += card.getAufladung() / 100;\n }\n }\n for (Object obj : dlm.getRemovedObjects()) {\n if (obj instanceof Article) {\n if (!((Article) ((obj))).isStorno_error()) {\n summe -= ((Article) ((obj))).getPreis() * ((Article) ((obj))).getAmount();\n }\n } else if (obj instanceof Karte) {\n Karte card = (Karte) obj;\n summe -= card.getAufladung() / 100;\n }\n }\n if (Math.round(summe) == 0) {\n summe = 0;\n }\n if (GUIOperations.isTraining()) {\n summe += 1000;\n }\n tfSumme.setText(String.format(\"%.2f\", summe));\n }", "title": "" }, { "docid": "65661f59855cdd71edb88af07f613b27", "score": "0.650749", "text": "private void changeProductPrice(Product product, int position) {\n if (position == -1) {\n for (int i=0; i<productList.size();i++) {\n if (productList.get(i).getProductName().equals(product.getProductName())) {\n position = i;\n }\n }\n }\n\n //set new price\n productList.get(position).setPrice(product.getPrice());\n\n //update user\n user.setShoppingLists(shoppingLists);\n dataController.saveUser(user);\n\n //set total price\n totalPriceTextView.setText(utils.calculateTotalPrice(productList));\n }", "title": "" }, { "docid": "0b57e5d4aa9f391f378441e45fb70f4a", "score": "0.6503761", "text": "public double getPrice(){\n\t\treturn Price; // Return the product's price\n\t}", "title": "" }, { "docid": "f8250f5b28d1e136e273243ffa1d66cd", "score": "0.64820194", "text": "public void setMprice(int value) {\r\n this.mprice = value;\r\n }", "title": "" }, { "docid": "240f04a01bf6100281531aa5c49bc1ad", "score": "0.64741576", "text": "@Element \n public void setPrice(Long price) {\n this.price = price;\n }", "title": "" }, { "docid": "8a2d7477b885cfab719c8dca458519eb", "score": "0.645102", "text": "public abstract void setTotalPrice();", "title": "" } ]
132036183a8f4f2b95fdd361ac56a62e
Where (e.g. module, line number) the error came from
[ { "docid": "3f05b7527618cca06bf0f17641966aa7", "score": "0.0", "text": "public emException setSource(String Source) {\n this.Source = Source;\n return this;\n }", "title": "" } ]
[ { "docid": "4615c3e546dcc7875dc6173a167d241d", "score": "0.6570838", "text": "public String getErrorLine() {return errorLine;}", "title": "" }, { "docid": "74d4dcfb1bb4a04a26e855675b5a4b95", "score": "0.6570706", "text": "@Override\n\tpublic int getLineNumber() throws DebugException {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "69f89fa20be1465caee0d1cb47a9d19d", "score": "0.65160495", "text": "@Override\n\t@Exported\n\tpublic String getErrorStackTrace() {\n\t\tString result = null;\n\t\ttry {\n\t\t\tJUnitTestDetailInfo junitTestDetailInfo = junitDB.readTestDetail(testInfo.getBuildNumber(), testInfo.getProjectName(), testInfo.getModuleName(), testInfo.getPackageName(), testInfo.getClassName(), testInfo.getCaseName(), null, null);\n\t\t\tresult = junitTestDetailInfo.getErrorStackTrace();\n\t\t}\n\t\tcatch(SQLException sE) {\n\t\t\tLOGGER.log(Level.SEVERE, sE.getMessage(), sE);\n\t\t}\n\t\tcatch(IOException iE) {\n\t\t\tLOGGER.log(Level.SEVERE, iE.getMessage(), iE);\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "acae3623f3626c5e18a159fb63a3ee15", "score": "0.6512467", "text": "private int getLineNumber() {\r\n\t\t\tint lineNumber = -1;\r\n\r\n\t\t\t// get the stack trace //\r\n\t\t\tStackTraceElement[] trace = Thread.currentThread().getStackTrace();\r\n\t\t\t// get the package name //\r\n\t\t\tString packageName = mContext.getPackageName();\r\n\r\n\t\t\t// cycle through the stack trace //\r\n\t\t\tfor (int i = 0; i < trace.length; i++) {\r\n\t\t\t\t// get the element //\r\n\t\t\t\tStackTraceElement elm = trace[i];\r\n\r\n\t\t\t\t// check if the element is in the package //\r\n\t\t\t\tif (elm.getClassName().contains(packageName)) {\r\n\t\t\t\t\t// get the line number //\r\n\t\t\t\t\tlineNumber = elm.getLineNumber();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn lineNumber;\r\n\t\t}", "title": "" }, { "docid": "1be0f7b975c993418e936a2d623e140e", "score": "0.6501486", "text": "int errPos();", "title": "" }, { "docid": "fabf428ab9a0df288b47afecb59ffb8f", "score": "0.63740337", "text": "public int getErrorPosition() {\n return position;\n }", "title": "" }, { "docid": "a0cb25e332142b5cce350ee9a0afe2ab", "score": "0.63639575", "text": "public int getLineNumber()\n/* */ {\n/* 109 */ return this.lineNumber;\n/* */ }", "title": "" }, { "docid": "7fc96d45b4d088a01a8e2e6dab69a1b0", "score": "0.6361658", "text": "String getLineNumber();", "title": "" }, { "docid": "9aa2fb80630e80675b6209278fb3b364", "score": "0.6314427", "text": "java.lang.String getStackTrace();", "title": "" }, { "docid": "1e6278aef0c10c51563e05e38cc3e1b3", "score": "0.62389094", "text": "public int getLineNumber() {\n return Thread.currentThread().getStackTrace()[2].getLineNumber();\n }", "title": "" }, { "docid": "a02aa3bbc421db956fb390bed74292f7", "score": "0.6238378", "text": "int getLineNumber();", "title": "" }, { "docid": "a02aa3bbc421db956fb390bed74292f7", "score": "0.6238378", "text": "int getLineNumber();", "title": "" }, { "docid": "ad6c1bdc6d334e6334c1d2a87a3b5d7e", "score": "0.6193687", "text": "int getLineNumber() {\n\t\tif (msType instanceof UserDefinedTypeSourceAndLineMsType) {\n\t\t\treturn ((UserDefinedTypeSourceAndLineMsType) msType).getLineNumber();\n\t\t}\n\t\treturn ((UserDefinedTypeModuleSourceAndLineMsType) msType).getLineNumber();\n\t}", "title": "" }, { "docid": "33f6daa67220ad6cd03c92d10b7ff9f0", "score": "0.6049984", "text": "private static String causeLine(JSONException e) {\r\n\t\t\tif (e==null) return \"\";\r\n\t\t\tStackTraceElement[] st = e.getStackTrace();\r\n\t\t\tfor (StackTraceElement ste : st) {\r\n\t\t\t\tif (ste.getClassName().contains(\"JSON\")) continue;\r\n\t\t\t\treturn \" caused by \"+ste;\r\n\t\t\t}\r\n\t\t\treturn \"\";\r\n\t\t}", "title": "" }, { "docid": "6ce21625d3fea80cea400e9e3c141527", "score": "0.59459996", "text": "void errPos(int pos);", "title": "" }, { "docid": "b4b6cc1848cc1621371622d336c4fbe1", "score": "0.5907176", "text": "protected String getCallingMethodAndLineNumber() {\r\n\t\tStackTraceElement[] stackTraceElements = Thread.currentThread()\r\n\t\t\t\t.getStackTrace();\r\n\r\n\t\tString callingMethodWithLineNumber = stackTraceElements[3]\r\n\t\t\t\t.getClassName()\r\n\t\t\t\t+ dot\r\n\t\t\t\t+ stackTraceElements[3].getMethodName()\r\n\t\t\t\t+ dot + stackTraceElements[3].getLineNumber();\r\n\r\n\t\treturn callingMethodWithLineNumber;\r\n\t}", "title": "" }, { "docid": "e2cf00c9d0b50b1d4510bc186c13331e", "score": "0.58916944", "text": "public int getLineNumber() {\n return this.brr + 1;\n }", "title": "" }, { "docid": "100077cf0d06fbad15d6e3bcb4c0ea06", "score": "0.5863018", "text": "String getExceptionStackTrace();", "title": "" }, { "docid": "3f10d5c16bd9700b5fcc3be568d62d8f", "score": "0.5830297", "text": "public int getLineNumber()\n {\n return line;\n }", "title": "" }, { "docid": "0b49e4971e57998db1993dd22f10be75", "score": "0.5816881", "text": "java.math.BigInteger getLineNumber();", "title": "" }, { "docid": "0b49e4971e57998db1993dd22f10be75", "score": "0.5816881", "text": "java.math.BigInteger getLineNumber();", "title": "" }, { "docid": "0b49e4971e57998db1993dd22f10be75", "score": "0.5816881", "text": "java.math.BigInteger getLineNumber();", "title": "" }, { "docid": "d89d6d2bd7330c68c4900284ec70a667", "score": "0.58148426", "text": "java.lang.String getError();", "title": "" }, { "docid": "d89d6d2bd7330c68c4900284ec70a667", "score": "0.58148426", "text": "java.lang.String getError();", "title": "" }, { "docid": "f4cfe3141d305098e9c938668be16269", "score": "0.5746762", "text": "private String getCallOrigin() {\n StackTraceElement[] st = Thread.currentThread().getStackTrace();\n\n // The call stack should look like:\n // n [a variable number of calls depending on the vm used]\n // +0 getCallOrigin()\n // +1 privateLogFunction: verbose or debug\n // +2 logFunction: v or d\n // +3 caller\n\n int callerStackIndex;\n String logClassName = Log.class.getName();\n for (callerStackIndex = 0; callerStackIndex < st.length; callerStackIndex++) {\n if (st[callerStackIndex].getClassName().equals(logClassName)) {\n callerStackIndex += 3;\n break;\n }\n }\n\n return st[callerStackIndex].getFileName() + \":\" + st[callerStackIndex].getLineNumber();\n }", "title": "" }, { "docid": "08f7d7752daaf8a57d9600f3c5f9609a", "score": "0.5740961", "text": "String getCallStack();", "title": "" }, { "docid": "c18fa253df09c89d1ca3b8b107216aae", "score": "0.5737812", "text": "public void setErrorLine(String errorLine) {this.errorLine = errorLine;}", "title": "" }, { "docid": "88f5e5bdc5b03b8022cb18e7411961cd", "score": "0.57245386", "text": "public void printStackTrace() {\n }", "title": "" }, { "docid": "8b9b5057a6e76b594b31fce157c00228", "score": "0.57217467", "text": "public int getLineNumber(){return this.line.getNumber();}", "title": "" }, { "docid": "2a4afaca48c9c30ea97dc2b5f0611a8d", "score": "0.5717402", "text": "public int getErrorIndex() {\n return errorIndex;\n }", "title": "" }, { "docid": "64e400edca8289ac5c75b965127cd807", "score": "0.5705189", "text": "public int getLineNumber() {\n Throwable cause = getCause();\n if (cause instanceof XPathException) {\n Location loc = ((XPathException) cause).getLocator();\n return loc == null ? -1 : loc.getLineNumber();\n } else {\n return -1;\n }\n }", "title": "" }, { "docid": "5d2daf6474e804ca1981395dc1ec1e4c", "score": "0.57042897", "text": "public int getErroOffset() {\n return this.errorOffset;\n }", "title": "" }, { "docid": "9587a3856f35c78d846fdd38be076586", "score": "0.5703227", "text": "public int getErrorLevel( int index );", "title": "" }, { "docid": "1520559109ac4e96222e1ed69f4c4e74", "score": "0.5697219", "text": "public int get_assert_line_number() {\r\n\t\treturn assert_line_number;\r\n\t}", "title": "" }, { "docid": "e4b37495567d0ba415cf8f1238cd2b9f", "score": "0.56943434", "text": "protected void failed(Throwable error)\n/* 46: */ {\n/* 47: 87 */ error.printStackTrace();\n/* 48: */ }", "title": "" }, { "docid": "b938ae0598b11418ef44959706b00a5e", "score": "0.56896394", "text": "public int getLineNumber()\r\n {\r\n return lineNumber;\r\n }", "title": "" }, { "docid": "f5fd1fa9be823bb5b8df09e064289715", "score": "0.56673974", "text": "private static SourceCode sourceOf(StackTraceElement e) {\n AnnotatedClass c = AnnotatedClass.of(e);\n int line = e.getLineNumber();\n if (c.source.size() > line && line > 0) {\n return c.source.get(line - 1);\n }\n return SourceCode.UNAVAILABLE;\n }", "title": "" }, { "docid": "b61eba6cd906dc6ee04ad0bbaf79b884", "score": "0.56435764", "text": "public int getSourceLine() {\n return this.sourceLineNumber;\n }", "title": "" }, { "docid": "57e9f0ea03e6cd938bf99f084880e97a", "score": "0.56425685", "text": "@Override\n @Nullable\n protected String matchForError(String line) {\n return (Pattern.matches(\"^([\\\\w_$.])*(Exception|Error|error).*$\", line) ||\n line.contains(\"am: not found\")) ? line : null;\n }", "title": "" }, { "docid": "118fbd62776c0909af5352afdc6d3a31", "score": "0.5641297", "text": "public int getLineNumber()\n {\n return lineNumber;\n }", "title": "" }, { "docid": "82a9ef13cd71ec5b5be401022e9405c0", "score": "0.56258595", "text": "private static Location\r\n getLocation() {\r\n Exception e = new Exception();\r\n StackTraceElement ste = e.getStackTrace()[1]; //we only care about our caller\r\n return new Location(\r\n ste.getFileName(),\r\n ste.getLineNumber(),\r\n 0\r\n );\r\n }", "title": "" }, { "docid": "ac88dc901afb99af6cdd7d931f324a25", "score": "0.56167924", "text": "public int getLineNumber()\n\t{\n\t\treturn numerolinee;\n\t}", "title": "" }, { "docid": "29eaa7ddce8a7e01602402e714896b8f", "score": "0.56146634", "text": "public int getLineNumber() {\r\n\treturn lineNumber;\r\n}", "title": "" }, { "docid": "d25eee812bf052ea7d51c3b48dcfa680", "score": "0.5600429", "text": "private static void m21911b(int i, Throwable th) {\n Map linkedHashMap = new LinkedHashMap();\n linkedHashMap.put(\"error\", Integer.valueOf(4));\n String str = \"error_stack\";\n String message = th.getMessage();\n if (message == null) {\n message = \"null stack message\";\n }\n linkedHashMap.put(str, message);\n linkedHashMap.put(\"reason\", Integer.valueOf(i));\n StringBuilder sb = new StringBuilder(\"RelationFetchManager monitorDbException: \");\n sb.append(linkedHashMap);\n C6921a.m21555a(sb.toString());\n C7074e.m22070b(\"spotlight_relation_load_error\", linkedHashMap);\n }", "title": "" }, { "docid": "a58873235dc405bf3633b0e638668e0a", "score": "0.55885726", "text": "protected int getStartLine( ASTNode n){\n //\t\tif ( n instanceof AbstractVariableDeclaration ) return getStartLine( (AbstractVariableDeclaration)n);\n //\t\tif ( n instanceof AbstractMethodDeclaration ) return getStartLine( (AbstractMethodDeclaration)n);\n //\t\tif ( n instanceof TypeDeclaration ) return getStartLine( (TypeDeclaration)n);\n \t\treturn ProblemHandler.searchLineNumber(lineseps,\n //\t\t\tcurrCompilationResult.lineSeparatorPositions,\n \t\t\tn.sourceStart);\t\t\n \t}", "title": "" }, { "docid": "09ac9e6f3cb26f1518befedf35f05c21", "score": "0.557398", "text": "void fatalError(String msg, int lineNo, int colNo);", "title": "" }, { "docid": "50d5196cd14f9d4deaa7311f11e1826b", "score": "0.5568588", "text": "private int getSourceLine(IBytecodeMethod bMethod, int instructionIndex){\n int sourceLineNum = -1;\n try {\n sourceLineNum = bMethod.getLineNumber(bMethod.getBytecodeIndex(instructionIndex));\n } catch (InvalidClassFileException e) {\n e.printStackTrace();\n }\n return sourceLineNum;\n }", "title": "" }, { "docid": "3c3e7b8d72459852fb7bf7568c1cc417", "score": "0.5553791", "text": "@Override\n public EvaluatorException runtimeError(String message, String sourceName, int line, String lineSource,\n int lineOffset) {\n System.out.println(message + \" \" + lineSource + \" \" + line + \" \" + lineOffset);\n return new EvaluatorException(\"Test error msg\" + message);\n }", "title": "" }, { "docid": "d0e07879bc7a6df865a750c8d53ecab7", "score": "0.55532986", "text": "java.lang.String getErrorInfo();", "title": "" }, { "docid": "d0e07879bc7a6df865a750c8d53ecab7", "score": "0.55532986", "text": "java.lang.String getErrorInfo();", "title": "" }, { "docid": "e96b7a107c951ed364abb8d84e3dccb9", "score": "0.55519986", "text": "private int getTokenLineNumber() {\n return this.getTokensList().get(this.tokenIndex - 1).getLineNumber();\n }", "title": "" }, { "docid": "0d1e96e78a77d1d0da09d6bbfcc4bc05", "score": "0.5517482", "text": "public void report_error(String message, Object info) {\n StringBuilder m = new StringBuilder(\"Error\");\n if (info instanceof java_cup.runtime.Symbol) {\n java_cup.runtime.Symbol s = ((java_cup.runtime.Symbol) info);\n m.append(\" \" + s.value.toString());\n if (s.left >= 0) { \n m.append(\" in line \"+(s.left));\n if (s.right >= 0)\n m.append(\", column \"+(s.right));\n }\n }\n m.append(\" : \"+message);\n System.err.println(m);\n }", "title": "" }, { "docid": "7f8f38ea59f644df21ae15c5d8b10b2d", "score": "0.54954875", "text": "java.lang.String getErrmsg();", "title": "" }, { "docid": "5973476a2ef25735a96b92cce6b1c7a9", "score": "0.54927206", "text": "private int _lineNumber(String sw, String classname) {\n // TODO: use stack trace elements to find line number\n int lineNum;\n int idxClassname = sw.indexOf(classname);\n if (idxClassname == -1) return -1;\n \n String theLine = sw.substring(idxClassname, sw.length());\n \n theLine = theLine.substring(theLine.indexOf(classname), theLine.length());\n theLine = theLine.substring(theLine.indexOf(\"(\") + 1, theLine.length());\n theLine = theLine.substring(0, theLine.indexOf(\")\"));\n \n try {\n int i = theLine.indexOf(\":\") + 1;\n lineNum = Integer.parseInt(theLine.substring(i, theLine.length())) - 1;\n }\n catch (NumberFormatException e) { lineNum = 0; } // may be native method\n \n return lineNum;\n }", "title": "" }, { "docid": "7cca3cda74b01946d7f08d92adb851cd", "score": "0.5485716", "text": "public int getLineNumber () {\r\n\t\treturn lineNumber;\r\n\t}", "title": "" }, { "docid": "34eaa60266078dc91c63c367f9905d45", "score": "0.54635507", "text": "void reportError(int line, int charInLine, String Message);", "title": "" }, { "docid": "d1de375f703e9c24200c02ea5ce8faee", "score": "0.54584074", "text": "google.protobuf.Descriptor.SourceCodeInfo.Location getLocation(int index);", "title": "" }, { "docid": "8f0b160d4c0ef3a859df41693c48fa4c", "score": "0.54506516", "text": "private static String getTool()\n {\n String stacktrace = getStackTrace();\n\n // Find the highest stack frame that contains org.dspace.\n try\n {\n BufferedReader reader = new BufferedReader(new StringReader(\n stacktrace));\n String line = null;\n String match = null;\n\n while ((line = reader.readLine()) != null)\n {\n if (line.indexOf(\"org.dspace\") != -1)\n {\n match = line.trim();\n }\n }\n\n // If nothing matched, maybe the stacktrace will give a clue\n return (match == null) ? stacktrace : match;\n }\n // Should never get here -- no real I/O\n catch (Exception e)\n {\n return stacktrace;\n }\n }", "title": "" }, { "docid": "629ea40bb2d6ab8dfa97aee686d61fd8", "score": "0.5445544", "text": "public interface IStackTraceInfo {\n}", "title": "" }, { "docid": "99f5fc2e63645ec037b41f5c5c2c42d8", "score": "0.5439754", "text": "public int getLineNumber() {\n return lineNumber_;\n }", "title": "" }, { "docid": "c11a3fc658f24ec60163ffd728f8bdf4", "score": "0.5438793", "text": "org.jetbrains.r.rinterop.ExceptionInfo getException();", "title": "" }, { "docid": "b83c1a5af02ce234c1850aa96296c342", "score": "0.54368347", "text": "public Integer getLineNumber(Member member) {\n checkArgument(type == member.getDeclaringClass(),\n \"Member %s belongs to %s, not %s\", member, member.getDeclaringClass(), type);\n return lines.get(MoreTypes.memberKey(member));\n }", "title": "" }, { "docid": "e3bb2e77a695bea72ca27c29fd433773", "score": "0.54287934", "text": "public int getLineNumber() {\n\t\treturn startLineNumber;\n\t}", "title": "" }, { "docid": "2a8c42d7bfeb23912ed8d3de6e762150", "score": "0.5409421", "text": "public int getLineNumber() {\n return lineNumber;\n }", "title": "" }, { "docid": "4864472fc1bc90d9397c8b4aac482bc1", "score": "0.5395387", "text": "public void error(String msg) {\n String name = getClass().toString();\n name = name.substring(name.lastIndexOf('.') + 1);\n System.err.println(name + (id != null ? \"(\" + id + \")\" : \"\") + \": \" + msg);\n }", "title": "" }, { "docid": "2c0049fa0cc2abb0e9de6b7392fb2367", "score": "0.5390097", "text": "private static void printException(String path, SAXParseException e) {\n System.err.println(\"[FATAL]file:\" + path + \"line:\" + e.getLineNumber() + \", \" +\n \"column:\" + e.getColumnNumber() + \", \" + e.getMessage());\n }", "title": "" }, { "docid": "4b961827540a74f90837b465fbacee95", "score": "0.5385624", "text": "public int getLineNumber() {\n \treturn reader.getLineNumber();\n }", "title": "" }, { "docid": "1b59e9a6ccfb3d92ef4f68bbee9d8a02", "score": "0.5383364", "text": "protected int parseError(String reason) throws AdmFastLexerException {\n StringBuilder message = new StringBuilder();\n message.append(reason).append(\"\\n\");\n message.append(\"Line: \").append(line).append(\"\\n\");\n message.append(\"Row: \").append(column).append(\"\\n\");\n throw new AdmFastLexerException(message.toString());\n }", "title": "" }, { "docid": "54827b1a02a9933270876c3fac2bf5e1", "score": "0.5381803", "text": "public void printError(RubyException excp) {\n if (excp == null || excp.isNil()) {\n return;\n }\n \n ThreadContext context = getCurrentContext();\n IRubyObject backtrace = excp.callMethod(context, \"backtrace\");\n \n PrintStream errorStream = getErrorStream();\n if (backtrace.isNil() || !(backtrace instanceof RubyArray)) {\n if (context.getFile() != null) {\n errorStream.print(context.getFile() + \":\" + context.getLine());\n } else {\n errorStream.print(context.getLine());\n }\n } else if (((RubyArray) backtrace).getLength() == 0) {\n printErrorPos(context, errorStream);\n } else {\n IRubyObject mesg = ((RubyArray) backtrace).first();\n \n if (mesg.isNil()) {\n printErrorPos(context, errorStream);\n } else {\n errorStream.print(mesg);\n }\n }\n \n RubyClass type = excp.getMetaClass();\n String info = excp.toString();\n \n if (type == getRuntimeError() && (info == null || info.length() == 0)) {\n errorStream.print(\": unhandled exception\\n\");\n } else {\n String path = type.getName();\n \n if (info.length() == 0) {\n errorStream.print(\": \" + path + '\\n');\n } else {\n if (path.startsWith(\"#\")) {\n path = null;\n }\n \n String tail = null;\n if (info.indexOf(\"\\n\") != -1) {\n tail = info.substring(info.indexOf(\"\\n\") + 1);\n info = info.substring(0, info.indexOf(\"\\n\"));\n }\n \n errorStream.print(\": \" + info);\n \n if (path != null) {\n errorStream.print(\" (\" + path + \")\\n\");\n }\n \n if (tail != null) {\n errorStream.print(tail + '\\n');\n }\n }\n }\n \n excp.printBacktrace(errorStream);\n }", "title": "" }, { "docid": "91fbc27cb72daf505cd99abf36cd27f8", "score": "0.53606814", "text": "public int getStepLineNumber()\n\t{\n\t\treturn this.stepLineNumber;\n\t}", "title": "" }, { "docid": "91fbc27cb72daf505cd99abf36cd27f8", "score": "0.53606814", "text": "public int getStepLineNumber()\n\t{\n\t\treturn this.stepLineNumber;\n\t}", "title": "" }, { "docid": "91fbc27cb72daf505cd99abf36cd27f8", "score": "0.53606814", "text": "public int getStepLineNumber()\n\t{\n\t\treturn this.stepLineNumber;\n\t}", "title": "" }, { "docid": "23d23358eb3cd1770560ec0f9c329549", "score": "0.5356169", "text": "private static void m21900a(int i, Throwable th) {\n Map linkedHashMap = new LinkedHashMap();\n linkedHashMap.put(\"error\", Integer.valueOf(3));\n String str = \"error_stack\";\n String message = th.getMessage();\n if (message == null) {\n message = \"null stack message\";\n }\n linkedHashMap.put(str, message);\n linkedHashMap.put(\"reason\", Integer.valueOf(i));\n StringBuilder sb = new StringBuilder(\"RelationFetchManager monitorLoadException: \");\n sb.append(linkedHashMap);\n C6921a.m21555a(sb.toString());\n C7074e.m22070b(\"spotlight_relation_load_error\", linkedHashMap);\n }", "title": "" }, { "docid": "1ce9d5228ce3608ffafb20bba09f01c2", "score": "0.5353887", "text": "public void printStackTrace() {\n printStackTrace(System.err);\n }", "title": "" }, { "docid": "90e5d949daeaaa08d2cbb2be1c5de985", "score": "0.5347254", "text": "protected synchronized Throwable getError()\n/* 63: */ {\n/* 64:121 */ return this.error;\n/* 65: */ }", "title": "" }, { "docid": "67186600277b2d3341b1336613655f05", "score": "0.5334998", "text": "public long getLineNumber() {\n return lineNumber;\n }", "title": "" }, { "docid": "17d9585b93807c82f6a96252f7513726", "score": "0.5316504", "text": "public static String getStackTrace(Exception e){\n\t\tStringWriter errors = new StringWriter();\n\t\te.printStackTrace(new PrintWriter(errors));\n\t\treturn errors.toString();\n\t}", "title": "" }, { "docid": "89931a0cad07ddeb9f9d61a8e05d56ef", "score": "0.5310953", "text": "public CompileError(Error e, int line, int pos, String[] details, boolean fatal){\n this.errorType = e;\n this.line = line;\n this.pos = pos;\n this.details = details;\n if(fatal){\n //throw new FatalCompileError(toString());\n System.out.println(toString());\n System.exit(e.value());\n }\n }", "title": "" }, { "docid": "f306cedd8c5d2d8fc8d4a267e0d99b71", "score": "0.53092265", "text": "public void printStackTrace() {\n super.printStackTrace();\n if (cause != null) {\n System.err.println(\"Caused by:\");\n cause.printStackTrace();\n }\n }", "title": "" }, { "docid": "19dd04354f70be8c35316d1b2a47470d", "score": "0.53048605", "text": "@Array({4}) \n\t@Field(18) \n\tpublic Pointer<Long > error() {\n\t\treturn this.io.getPointerField(this, 18);\n\t}", "title": "" }, { "docid": "d4035feec2bab4d2cee64dbe6868cc27", "score": "0.5299304", "text": "public int getLineNo() { return lineNo; }", "title": "" }, { "docid": "6d29042eae5b8ac1bea902728cf5048d", "score": "0.5296006", "text": "static public void extract(LocationInfo li, Throwable t, String fqnOfInvokingClass) {\n if (PlatformInfo.isOnAS400()) {\n fqnOfInvokingClass = fqnOfInvokingClass.replace('.', '/');\n }\n String s;\n\n // Protect against multiple access to sw.\n synchronized (sw) {\n t.printStackTrace(pw);\n s = sw.toString();\n sw.getBuffer().setLength(0);\n }\n\n //System.out.println(\"s is [\"+s+\"].\");\n int ibegin;\n\n //System.out.println(\"s is [\"+s+\"].\");\n int iend;\n\n // Given the current structure of log4j, the line \n // containing 'fqnOfCallingClass', usually \"org.apache.log4j.Logger.\" \n // should be printed just before the caller.\n // This method of searching may not be fastest but it's safer\n // than counting the stack depth which is not guaranteed to be\n // constant across JVM implementations.\n ibegin = s.lastIndexOf(fqnOfInvokingClass);\n\n if (ibegin == -1) {\n return;\n }\n\n ibegin = s.indexOf(Layout.LINE_SEP, ibegin);\n\n if (ibegin == -1) {\n return;\n }\n\n ibegin += Layout.LINE_SEP_LEN;\n\n // determine end of line\n iend = s.indexOf(Layout.LINE_SEP, ibegin);\n\n if (iend == -1) {\n return;\n }\n\n // VA has a different stack trace format which doesn't\n // need to skip the inital 'at'. The same applied to AS400.\n if ((!PlatformInfo.isInVisualAge()) && (!PlatformInfo.isOnAS400())) {\n // back up to first blank character\n ibegin = s.lastIndexOf(\"at \", iend);\n\n if (ibegin == -1) {\n return;\n }\n\n // Add 3 to skip \"at \";\n ibegin += 3;\n }\n\n // everything between is the requested stack item\n li.fullInfo = s.substring(ibegin, iend);\n setFileName(li, li.fullInfo );\n setClassName(li, li.fullInfo );\n setMethodName(li, li.fullInfo );\n setLineNumber(li, li.fullInfo );\n }", "title": "" }, { "docid": "5fa467a04a3ba27ac5309ba287eaa15d", "score": "0.52925676", "text": "public void printStackTrace() {\r\r if (internalFlag) {\r\r System.err.println(super.toString());\r\r internal.printStackTrace();\r\r } else super.printStackTrace();\r\r }", "title": "" }, { "docid": "93308519c172414e41c06f281818bc31", "score": "0.52876365", "text": "private static String classNameOfCaller(int callStackDepth){\n return new Exception().getStackTrace()[callStackDepth].getClassName();\n }", "title": "" }, { "docid": "dc6e28e418239a71ed2bc1d5b2df8d02", "score": "0.5281447", "text": "static String getCode(int line, int bc, int ec){\n try{\n return cLinesReadOnly.get(line-1).substring(bc-1, ec);\n }catch(Exception ex){\n if(line -1 >= 0)\n System.out.println(\"exception\" + cLinesReadOnly.get(line-1) \n + \"zzzz bc-1=\" + Integer.toString(bc-1) + \"ec=\" + Integer.toString(ec));\n else\n System.out.println(\"exception\");\n }\n return \"\";\n }", "title": "" }, { "docid": "fc9f2ffb4b48d2eccddf59b80909bbb4", "score": "0.5279536", "text": "public static void errorOut(Exception e) { \n\t\tSystem.err.println(e.getClass().getSimpleName() + \":\");\n\t\tSystem.err.println(e.getLocalizedMessage());\n\t\tSystem.err.println(\"at\\t\" + ErrorOut.someStackTrace(4, e));\n\t}", "title": "" }, { "docid": "001a26f98fbb3598580f39603406976e", "score": "0.52685595", "text": "public int getLineNumber () {\n\t\treturn this.lineNumber;\n\t}", "title": "" }, { "docid": "24d9508203d6e80bce89e775b9118439", "score": "0.5265809", "text": "public String getError() {\n boolean[] $jacocoInit = $jacocoInit();\n String str = this.error;\n $jacocoInit[5] = true;\n return str;\n }", "title": "" }, { "docid": "2012921a9a42787bdbaba00dd7b1566c", "score": "0.5260669", "text": "public int getLineNumber() {\n return lineNumber_;\n }", "title": "" }, { "docid": "3f102818566cf31bca1925e53948cdb0", "score": "0.52539486", "text": "@Override\r\n\tpublic String getErrorPath() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "1e0a69746f012a6be96b782cc7052b9a", "score": "0.5243334", "text": "public int lineNumber() {\n return this.number;\n }", "title": "" }, { "docid": "909448066bcfa850df67dcb9579b3eeb", "score": "0.5235409", "text": "public void report_error(String message, Object info)\n {\n System.err.print(message);\n System.err.flush();\n if (info instanceof Symbol)\n\tif (((Symbol)info).left != -1)\n\t System.err.println(\" at line \" + ((Symbol)info).left +\n\t\t\t \" of input\");\n\telse System.err.println(\"\");\n else System.err.println(\"\");\n }", "title": "" }, { "docid": "62422b63c6f81b6a7c4c26cd8a07584f", "score": "0.52346486", "text": "public static void dump(){\n for(CompileError e: errors){\n System.out.println(e.toString());\n }\n }", "title": "" }, { "docid": "002890b15b5cc911da732bb0cd67ec11", "score": "0.5233862", "text": "public int getErrorClass()\n{\n return errorClass;\n}", "title": "" }, { "docid": "b31ad7768a988c40daee45b0a393629c", "score": "0.521429", "text": "public String getError_info() {\r\n\t\treturn this.error_info;\r\n\t}", "title": "" }, { "docid": "4ebddc398a5eb3797701b4072262baca", "score": "0.5211988", "text": "protected int getFlowStackIndex() {\n/* 745 */ return this.flowStackIndex;\n/* */ }", "title": "" }, { "docid": "a0585d1fad9828374982b2cdf6a85508", "score": "0.520685", "text": "com.salesforce.keystone.coyote.protobuf.generated.RpcMessages.StackTraceEntry getStack(int index);", "title": "" }, { "docid": "09961eecadc7b8f1f05c91fdc04016ea", "score": "0.52015495", "text": "public String getError();", "title": "" }, { "docid": "22ec93968d9d74955f3504a584eed3c2", "score": "0.5201277", "text": "private static void addSourcePositionTo_undefined(final ParseTreeNode errorCallNode, final ErrorInfo errorInfo){\r\n \r\n final ParseTreeNode firstChild = errorCallNode.firstChild();\r\n firstChild.setErrorInfoForErrorCall(errorInfo);\r\n \r\n // Change the undefined call to an error2 call\r\n \r\n firstChild.getChild(1).setText(CAL_Prelude.Functions.error.getUnqualifiedName());\r\n \r\n // Create the literal with the error message\r\n \r\n final String encodedErrorMessage = StringEncoder.encodeString( CAL_Prelude.Functions.undefined.getQualifiedName() + \" called.\" );\r\n final ParseTreeNode errorMessageNode = new ParseTreeNode(CALTokenTypes.STRING_LITERAL, encodedErrorMessage, null);\r\n \r\n // preserve the following arguments\r\n \r\n final ParseTreeNode secondChild = firstChild.nextSibling();\r\n if (secondChild != null){\r\n errorMessageNode.setNextSibling(secondChild);\r\n }\r\n \r\n // add the source position as the first arguement\r\n \r\n firstChild.setNextSibling(errorMessageNode);\r\n }", "title": "" }, { "docid": "645f3d3442fbf8f23ca8374cc5c1d514", "score": "0.5197033", "text": "public synchronized ErrorInfo getErrorInfo()\r\n/* 172: */ {\r\n/* 173:140 */ return new ErrorInfoImpl(getErrorInfo(this.mNativePtr));\r\n/* 174: */ }", "title": "" }, { "docid": "6551444249c1f9d1287678b27a5f2630", "score": "0.519249", "text": "private void exception(TokenMgrError e) {\r\n String eol = System.getProperty(\"line.separator\", \"\\u005cn\");\r\n this.error ++;\r\n this.errorMsg += \"Configuration [\"+this.error+\"]. \"+e.getMessage()+eol;\r\n }", "title": "" } ]
c6cbcfec29506a688479cea342899acc
This method was generated by MyBatis Generator. This method corresponds to the database table server
[ { "docid": "ae9d39e1ed39d74e68667003dda47383", "score": "0.0", "text": "public Criteria andHostnameNotEqualToColumn(Server.Column column) {\n addCriterion(new StringBuilder(\"hostname <> \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "title": "" } ]
[ { "docid": "d7a8a12fb3d5b363886c1c13d4eced4d", "score": "0.6253433", "text": "@Override\n protected String getTableName() {\n return TABLE_NAME;\n }", "title": "" }, { "docid": "726d82aeb59e1469e4adbeff2730571e", "score": "0.61301696", "text": "@Select({\n \"select\",\n \"ROW_ID, COIN_TYPE_ID, REC_TIME, USER_ID, RECLAIM_NUM, REQ_NUM, CHANGED_NUM, \",\n \"LOCK_ID, CHANNEL_ID, PRODUCT_ID, FLOW_NUMBER, USER_IP, SERVER_IP, GAME_ID\",\n \"from TFC_USER_COIN_RECLAIM_DETAIL\",\n \"where ROW_ID = #{rowId,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"ROW_ID\", property=\"rowId\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"COIN_TYPE_ID\", property=\"coinTypeId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"REC_TIME\", property=\"recTime\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"USER_ID\", property=\"userId\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"RECLAIM_NUM\", property=\"reclaimNum\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"REQ_NUM\", property=\"reqNum\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"CHANGED_NUM\", property=\"changedNum\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"LOCK_ID\", property=\"lockId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHANNEL_ID\", property=\"channelId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"PRODUCT_ID\", property=\"productId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FLOW_NUMBER\", property=\"flowNumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"USER_IP\", property=\"userIp\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"SERVER_IP\", property=\"serverIp\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"GAME_ID\", property=\"gameId\", jdbcType=JdbcType.VARCHAR)\n })\n TFCUserCoinReclaimDetail selectByPrimaryKey(TFCUserCoinReclaimDetailKey key);", "title": "" }, { "docid": "4e6a36cbaee0e4aafc25b66ed960425d", "score": "0.6053301", "text": "public interface SourceTableMapper {\n @Select(\"SELECT * FROM source_table WHERE table_id = #{tableId}\")\n public SourceTable get(String tableId);\n @Select(\"SELECT * FROM source_table WHERE table_name = #{tableName} AND connection_id=#{connectionId}\")\n public SourceTable getByTableName(SourceTable sourceTable);\n\n @Select(\"SELECT * FROM source_table\")\n public List<SourceTable> getAll();\n @Select(\"SELECT * FROM source_table WHERE connection_id IN(\" +\n \"SELECT connection_id FROM source_connection WHERE connection_name=#{connName}) \")\n public List<SourceTable> getByConnName(String connName);\n @Select(\"SELECT * FROM source_table WHERE table_id IN (\" +\n \"SELECT table_id FROM table_rule_tmp WHERE rule_id=#{ruleId})\")\n public SourceTable getByRuleId(String ruleId);\n @Select(\"SELECT * FROM source_table WHERE table_id IN (\" +\n \"SELECT table_id FROM table_rule_tmp WHERE rule_id IN (\" +\n \"SELECT rule_id FROM rule WHERE rule_name=#{ruleName}))\")\n public List<SourceTable> getByRuleName(String ruleName);\n\n\n @Insert(\"INSERT INTO source_table(table_id, table_name, connection_id, table_schema, author) \" +\n \"VALUES(UUID(),#{tableName}, #{connectionId}, #{tableSchema}, #{author})\")\n @Options(useGeneratedKeys = true, keyProperty = \"tableId\")\n public void insert(SourceTable sourceTable);\n\n @Delete(\"DELETE FROM source_table WHERE table_id = #{tableId}\")\n public void delete(String tableId);\n\n\n @Update(\"UPDATE source_table SET table_schema=#{tableSchema}, author=#{author}, updated_at=current_timestamp() \" +\n \"WHERE table_id=#{tableId}\")\n public void update(SourceTable sourceTable);\n}", "title": "" }, { "docid": "8d0c5079e4a350840edf6a4e015b575a", "score": "0.6049266", "text": "@Override\n protected String getTableName() {\n return \"adks_operation\";\n }", "title": "" }, { "docid": "e2cac938dc1d170b02ad3144f8f5de32", "score": "0.6014116", "text": "@Override\n protected String getTableName() {\n return TABLE_NAME;\n }", "title": "" }, { "docid": "05d617ff261445b10e285e77714bfb67", "score": "0.5955192", "text": "@Override\r\n public String getTableName() {\n return null;\r\n }", "title": "" }, { "docid": "fc51de70b2f8c492aa1eaecf3343e1f9", "score": "0.59455854", "text": "@MappedJdbcTypes({JdbcType.VARCHAR})\n@MappedTypes({Date.class})\npublic interface UserMapper {\n\n @Select(\"select * from user4 \")\n @Results({\n @Result(id = true,property = \"id\",column = \"id\"),\n @Result(property = \"username\",column = \"username\"),\n @Result(property = \"password\",column = \"password\"),\n @Result(property = \"regTime\",column = \"regTime\",\n typeHandler = MyDateTypeHandler.class,javaType = Date.class,\n jdbcType = JdbcType.VARCHAR)\n })\n public List<User> getAll();\n\n @Insert(\"insert into user4(username,password,regTime) values ( #{username},\" +\n \"#{password},#{regTime}\")\n @Options(useGeneratedKeys = true,keyColumn = \"id\")\n public int insertUser(User user);\n}", "title": "" }, { "docid": "84c32db48e312778b0170ba31686eb58", "score": "0.5853468", "text": "@Select({\r\n \"select\",\r\n \"CHECK_DATE, ORG_CD, BRANCH_CD, SITE_CD, MAC_IN_CLEAN, MAC_OUT_CLEAN, INTERPHONE_CLEAN, \",\r\n \"GROUND_CLEAN, GARBAGE_CLEAN, GLASS_CLEAN, PORTFOLIO_CNT, JUNUL_CNT, RIBBON_CNT, \",\r\n \"GUIDE_STATE, STICKER_STATE, INTERPHONE_STATE, DVR_STATE, LAMP_STATE, AIRCON_STATE, \",\r\n \"HEATER_STATE, BOOTH_CHECK, CHECK_REMAIN, COLLECTION_CHECK, SIGN_LAMP_CHECK, \",\r\n \"PHOTO_URL, OUT_SIGN_PHOTO, GATE_PHOTO, FLOOR_PHOTO, LEFT_BOOTH_PHOTO, RIGHT_BOOTH_PHOTO, \",\r\n \"UP_PHOTO, MAC_UP_PHOTO, MAC_DOWN_PHOTO, REMARK, MEMBER_ID, PHOTO_YN, ORG_SEND_YN, \",\r\n \"ORG_SEND_DATE, UPDATE_DATE, UPDATE_UID\",\r\n \"from OP.T_CM_SITE_CHECK_DAY\",\r\n \"where CHECK_DATE = #{checkDate,jdbcType=VARCHAR}\",\r\n \"and ORG_CD = #{orgCd,jdbcType=VARCHAR}\",\r\n \"and BRANCH_CD = #{branchCd,jdbcType=VARCHAR}\",\r\n \"and SITE_CD = #{siteCd,jdbcType=VARCHAR}\"\r\n })\r\n @Results({\r\n @Result(column=\"CHECK_DATE\", property=\"checkDate\", jdbcType=JdbcType.VARCHAR, id=true),\r\n @Result(column=\"ORG_CD\", property=\"orgCd\", jdbcType=JdbcType.VARCHAR, id=true),\r\n @Result(column=\"BRANCH_CD\", property=\"branchCd\", jdbcType=JdbcType.VARCHAR, id=true),\r\n @Result(column=\"SITE_CD\", property=\"siteCd\", jdbcType=JdbcType.VARCHAR, id=true),\r\n @Result(column=\"MAC_IN_CLEAN\", property=\"macInClean\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"MAC_OUT_CLEAN\", property=\"macOutClean\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"INTERPHONE_CLEAN\", property=\"interphoneClean\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"GROUND_CLEAN\", property=\"groundClean\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"GARBAGE_CLEAN\", property=\"garbageClean\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"GLASS_CLEAN\", property=\"glassClean\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"PORTFOLIO_CNT\", property=\"portfolioCnt\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"JUNUL_CNT\", property=\"junulCnt\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"RIBBON_CNT\", property=\"ribbonCnt\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"GUIDE_STATE\", property=\"guideState\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"STICKER_STATE\", property=\"stickerState\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"INTERPHONE_STATE\", property=\"interphoneState\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"DVR_STATE\", property=\"dvrState\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"LAMP_STATE\", property=\"lampState\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"AIRCON_STATE\", property=\"airconState\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"HEATER_STATE\", property=\"heaterState\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"BOOTH_CHECK\", property=\"boothCheck\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"CHECK_REMAIN\", property=\"checkRemain\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"COLLECTION_CHECK\", property=\"collectionCheck\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"SIGN_LAMP_CHECK\", property=\"signLampCheck\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"PHOTO_URL\", property=\"photoUrl\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"OUT_SIGN_PHOTO\", property=\"outSignPhoto\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"GATE_PHOTO\", property=\"gatePhoto\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"FLOOR_PHOTO\", property=\"floorPhoto\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"LEFT_BOOTH_PHOTO\", property=\"leftBoothPhoto\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"RIGHT_BOOTH_PHOTO\", property=\"rightBoothPhoto\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"UP_PHOTO\", property=\"upPhoto\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"MAC_UP_PHOTO\", property=\"macUpPhoto\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"MAC_DOWN_PHOTO\", property=\"macDownPhoto\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"REMARK\", property=\"remark\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"MEMBER_ID\", property=\"memberId\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"PHOTO_YN\", property=\"photoYn\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"ORG_SEND_YN\", property=\"orgSendYn\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"ORG_SEND_DATE\", property=\"orgSendDate\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"UPDATE_DATE\", property=\"updateDate\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"UPDATE_UID\", property=\"updateUid\", jdbcType=JdbcType.VARCHAR)\r\n })\r\n TCmSiteCheckDay selectByPrimaryKey(TCmSiteCheckDayKey key);", "title": "" }, { "docid": "18e885a29471ce0f675c10b8b7bb4790", "score": "0.58492345", "text": "public java.lang.String getTableName(){\r\n return localTableName;\r\n }", "title": "" }, { "docid": "18e885a29471ce0f675c10b8b7bb4790", "score": "0.58492345", "text": "public java.lang.String getTableName(){\r\n return localTableName;\r\n }", "title": "" }, { "docid": "b07c21d104c4f8c7aa909abfb8812c54", "score": "0.5825422", "text": "public String getTableName() { return this.tableName; }", "title": "" }, { "docid": "f76ff65056e0b8f791befa27c4ecd40c", "score": "0.58218604", "text": "@Override\n\tpublic void createTable() {\n\t\t\n\t}", "title": "" }, { "docid": "e0fbbffa130a3c4409c7438f2f71b2bb", "score": "0.5819565", "text": "@Override\n public String getTable() {\n return TABLE_NAME;\n }", "title": "" }, { "docid": "00c19d416fc2453769053ddb901c41d0", "score": "0.5805356", "text": "@Select({\n \"select\",\n \"airport_id, city_id, city_name, country_name, name, code, is_view, location, \",\n \"updated_at, created_at\",\n \"from `basedata_airport`\",\n \"where airport_id = #{airportId,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"airport_id\", property=\"airportId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"city_id\", property=\"cityId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"city_name\", property=\"cityName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"country_name\", property=\"countryName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"code\", property=\"code\", jdbcType=JdbcType.CHAR),\n @Result(column=\"is_view\", property=\"isView\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"location\", property=\"location\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"updated_at\", property=\"updatedAt\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"created_at\", property=\"createdAt\", jdbcType=JdbcType.TIMESTAMP)\n })\n AirportBean selectByPrimaryKey(Integer airportId);", "title": "" }, { "docid": "13226d2553ac57f716637d8e529e8e0d", "score": "0.5790596", "text": "public abstract String tableName();", "title": "" }, { "docid": "3d828222d950156ddec8c3283e1b3f88", "score": "0.57827115", "text": "public interface DCAEServiceTypesDAO extends InventoryDAO {\n\n @SqlQuery(\"select exists (select * from information_schema.tables where table_name = \\'dcae_service_types\\')\")\n Boolean checkIfTableExists();\n\n /**\n * Note that service_ids and service_locations are nullable fields. This might not be the right decision but because\n * the resource model allows for nulls, thought it should consistent.\n */\n @SqlUpdate(\"create table dcae_service_types (type_id varchar not null, type_version integer not null, \" +\n \"type_name varchar not null, owner varchar not null, blueprint_template text not null, \" +\n \"vnf_types varchar[] not null, service_ids varchar[], service_locations varchar[], \" +\n \"asdc_service_id varchar, asdc_resource_id varchar, \" +\n \"created timestamp not null, deactivated timestamp, constraint pk_type_created primary key (type_id))\")\n void createTable();\n\n // REVIEW: asdcServiceId and asdcResourceId is implicitly part of the unique key and thus shouldn't be updated.\n @SqlUpdate(\"insert into dcae_service_types(type_id, type_version, type_name, owner, blueprint_template, vnf_types, \" +\n \"service_ids, service_locations, asdc_service_id, asdc_resource_id, created, deactivated) \" +\n \"values (:typeId, :typeVersion, :typeName, :owner, :blueprintTemplate, :vnfTypes, :serviceIds, \" +\n \":serviceLocations, :asdcServiceId, :asdcResourceId, :created, null)\")\n void insert(@BindBean DCAEServiceTypeObject serviceObject);\n\n @SqlUpdate(\"update dcae_service_types set \" +\n \"owner = :owner, blueprint_template = :blueprintTemplate, vnf_types = :vnfTypes, \" +\n \"service_ids = :serviceIds, service_locations = :serviceLocations, created = :created, \" +\n \"deactivated = null where type_id = :typeId\")\n void update(@BindBean DCAEServiceTypeObject serviceObject);\n\n @SqlUpdate(\"update dcae_service_types set deactivated = (now() at time zone 'utc') where type_id = :typeId\")\n void deactivateExisting(@Bind(\"typeId\") String typeId);\n\n @Mapper(DCAEServiceTypeObjectMapper.class)\n @SqlQuery(\"select * from dcae_service_types where type_id = :it\")\n DCAEServiceTypeObject getByTypeId(@Bind String typeId);\n\n @Mapper(DCAEServiceTypeObjectMapper.class)\n @SqlQuery(\"select * from dcae_service_types where deactivated is null and type_id = :it\")\n DCAEServiceTypeObject getByTypeIdActiveOnly(@Bind String typeId);\n\n @Mapper(DCAEServiceTypeObjectMapper.class)\n @SqlQuery(\"select * from dcae_service_types where type_name = :typeName and type_version = :typeVersion \" +\n \"and asdc_service_id is null and asdc_resource_id is null\")\n DCAEServiceTypeObject getByRequestFromNotASDC(@BindBean DCAEServiceTypeRequest serviceTypeObject);\n\n @Mapper(DCAEServiceTypeObjectMapper.class)\n @SqlQuery(\"select * from dcae_service_types where type_name = :typeName and type_version = :typeVersion \" +\n \"and asdc_service_id = :asdcServiceId and asdc_resource_id = :asdcResourceId\")\n DCAEServiceTypeObject getByRequestFromASDC(@BindBean DCAEServiceTypeRequest serviceTypeObject);\n\n}", "title": "" }, { "docid": "3837f9d530490f7a8d3a82d56bb1e714", "score": "0.57814294", "text": "@Select({\n \"select\",\n \"guideOrderId, guideId, orderId, noticeNum, flag, status, failType, demandDeal, \",\n \"viewResult, refuseReson, other, updated_at, created_at\",\n \"from `guideorder`\",\n \"where guideOrderId = #{guideorderid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"guideOrderId\", property=\"guideorderid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"guideId\", property=\"guideid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"orderId\", property=\"orderid\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"noticeNum\", property=\"noticenum\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"flag\", property=\"flag\", jdbcType=JdbcType.TINYINT),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"failType\", property=\"failtype\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"demandDeal\", property=\"demanddeal\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"viewResult\", property=\"viewresult\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"refuseReson\", property=\"refusereson\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"other\", property=\"other\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"updated_at\", property=\"updatedAt\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"created_at\", property=\"createdAt\", jdbcType=JdbcType.TIMESTAMP)\n })\n FinalGuideorder selectByPrimaryKey(String guideorderid);", "title": "" }, { "docid": "b220787b7d51a24010b5a8af06b6921f", "score": "0.57668334", "text": "abstract public String getTable();", "title": "" }, { "docid": "2b78bd4d46afe250899bb62b4d863010", "score": "0.5725712", "text": "@Override\n\tpublic int getTableId() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "bf459b2b682b7efdd0caa35fc2da1eae", "score": "0.57185996", "text": "public String getTableName();", "title": "" }, { "docid": "bf459b2b682b7efdd0caa35fc2da1eae", "score": "0.57185996", "text": "public String getTableName();", "title": "" }, { "docid": "bf459b2b682b7efdd0caa35fc2da1eae", "score": "0.57185996", "text": "public String getTableName();", "title": "" }, { "docid": "3c580eef31313a88a9f5ccd4e2f6aaff", "score": "0.5711043", "text": "@Override\r\n\tpublic String getTableName() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "93b667ecb8c45f4f6df2bdcf5f9119e7", "score": "0.57091445", "text": "long getTableId();", "title": "" }, { "docid": "b296139bf4575fd2a7081c08c15e9111", "score": "0.5676008", "text": "public KzlNetzones2NRIAccessBeanTable () {\n super();\n }", "title": "" }, { "docid": "62330c74027d707eb78eba32dc81dc27", "score": "0.56699", "text": "String getTableName();", "title": "" }, { "docid": "9579d2f01c0e07f3f069970f37d52777", "score": "0.5664252", "text": "public void testTable() {\n TestDAO.testChangeTable();\n }", "title": "" }, { "docid": "055ea942972875d5039dbffda01a8d8b", "score": "0.5655208", "text": "public interface UserMapper {\r\n @Select(\"select * from t_bd_user\")\r\n public List<TBdUser> queryUsers();\r\n}", "title": "" }, { "docid": "56a0b34940bd0abd829a3e851c519573", "score": "0.565282", "text": "@Override\n\tprotected String getTableName() {\n\t\treturn tableName;\n\t}", "title": "" }, { "docid": "dabeb10bc07a5cba84460c0ca83d8c13", "score": "0.5642089", "text": "@Override\n\tpublic String table() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "7807711fa63367ba42e63894aba00468", "score": "0.5634331", "text": "int getTableId();", "title": "" }, { "docid": "7807711fa63367ba42e63894aba00468", "score": "0.5634331", "text": "int getTableId();", "title": "" }, { "docid": "be14eae4b17facc24d70cf3754eee880", "score": "0.5634057", "text": "@MetaData(size = 25)\r\n\tpublic String getTableId();", "title": "" }, { "docid": "0dc2ec63f55610cf6d42ea20ba399197", "score": "0.5632829", "text": "public void getGeneratedQuery(){\n }", "title": "" }, { "docid": "c14c4f5d1e8c396318e900cc4f723531", "score": "0.563211", "text": "@Select({\n \"select\",\n \"ID, CLUSTER_ID, NAMESPACE, POD_LIMIT, CPU_LIMIT, MEMORY_LIMIT, RC_LIMIT, SERVICE_LIMIT, \",\n \"PV_LIMIT, NOTE, LAST_UPDATED\",\n \"from ku8_res_partion\",\n \"where ID = #{id,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"ID\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"CLUSTER_ID\", property=\"clusterId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"NAMESPACE\", property=\"namespace\", jdbcType=JdbcType.CHAR),\n @Result(column=\"POD_LIMIT\", property=\"podLimit\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"CPU_LIMIT\", property=\"cpuLimit\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"MEMORY_LIMIT\", property=\"memoryLimit\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"RC_LIMIT\", property=\"rcLimit\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"SERVICE_LIMIT\", property=\"serviceLimit\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"PV_LIMIT\", property=\"pvLimit\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"NOTE\", property=\"note\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"LAST_UPDATED\", property=\"lastUpdated\", jdbcType=JdbcType.TIMESTAMP)\n })\n Ku8ResPartion selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "1718f959d5c293680479fb6969adfec6", "score": "0.561825", "text": "@Select({\n \"select\",\n \"id, k8order_id, create_time, k8order_type, status, user_id, start_time, end_time\",\n \"from k8order\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"k8order_id\", property=\"k8orderId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"k8order_type\", property=\"k8orderType\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"start_time\", property=\"startTime\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"end_time\", property=\"endTime\", jdbcType=JdbcType.TIMESTAMP)\n })\n K8Order selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "aa5e0181c2b472402fa97d8b652fe873", "score": "0.56181", "text": "@Override\n\tpublic String getTableName() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "65004835cbd0e99a4444bf96e74c74eb", "score": "0.5603924", "text": "public interface DBQuery {\n\n String TABLE_NAME_PROFILE = \"Customer_Profile\";\n\n String CREATE_TABLE_PROFILE = \"CREATE TABLE \" + TABLE_NAME_PROFILE + \"(_id long PRIMARY KEY, ProfilePicURI varchar, \" +\n \"FirstName varchar, LastName varchar, MobileNo varchar, PricePerCan float, ProfileCreatedTime long);\";\n String GET_CUSTOMER_PROFILE = \"SELECT * FROM \" + TABLE_NAME_PROFILE;\n String GET_PROFILE_ON_DATE = \"SELECT * FROM \" + TABLE_NAME_PROFILE + \" WHERE ProfileCreatedTime <= %d\";\n\n\n /*<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Database version 2 Schema >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/\n\n String ALTER_TABLE_PROFILE_VERSION_2 = \"ALTER TABLE \" + TABLE_NAME_PROFILE + \" ADD COLUMN Email varchar\";\n\n}", "title": "" }, { "docid": "0724bf02174acd966a57acf9ae921108", "score": "0.55858797", "text": "public interface SocialTopicMapper {\n\n @Options(useGeneratedKeys = true, keyProperty = \"id\")\n @Insert(\"insert into social_topic (id, shop_id, title,attr, is_top, weight,user_id, circle_id, \" +\n \"reply_count,click_count, up_count, collect_count,topic_time, update_time, audit_status,audit_user, audit_time, contents,\" +\n \"create_date,update_date,remarks,user_type)\" +\n \"values (#{socialTopicId.id}, #{shopId}, #{title},#{attr}, #{isTop}, #{weight},#{userId}, #{circleId}, \" +\n \"#{replyCount},#{clickCount}, #{upCount}, #{collectCount},#{topicTime}, #{updateTime}, #{auditStatus},#{auditUser}, #{auditTime}, #{contents}\" +\n \",#{createDate}, #{updateDate}, #{remarks}, #{userType})\")\n int create(SocialTopic socialTopic);\n\n\n @Results(\n id = \"socialTopicResult\",\n value = {\n @Result(column=\"id\" , property=\"socialTopicId.id\" ),\n @Result(column=\"shop_id\" , property=\"shopId\" ),\n @Result(column=\"title\" , property=\"title\" ),\n @Result(column=\"attr\" , property=\"attr\" ),\n @Result(column=\"is_top\" , property=\"isTop\" ),\n @Result(column=\"weight\" , property=\"weight\" ),\n @Result(column=\"user_type\" , property=\"userType\" ),\n @Result(column=\"user_id\" , property=\"userId\" ),\n @Result(column=\"circle_id\" , property=\"circleId\" ),\n @Result(column=\"reply_count\" , property=\"replyCount\" ),\n @Result(column=\"click_count\" , property=\"clickCount\" ),\n @Result(column=\"up_count\" , property=\"upCount\" ),\n @Result(column=\"collect_count\" , property=\"collectCount\" ),\n @Result(column=\"topic_time\" , property=\"topicTime\" ),\n @Result(column=\"update_time\" , property=\"updateTime\" ),\n @Result(column=\"audit_status\" , property=\"auditStatus\" ),\n @Result(column=\"audit_user\" , property=\"auditUser\" ),\n @Result(column=\"audit_time\" , property=\"auditTime\" ),\n @Result(property = \"status.code\", column = \"status\"),\n @Result(property = \"version\", column = \"version\"),\n @Result(property = \"remarks\", column = \"remarks\"),\n @Result(property = \"createDate\", column = \"create_date\"),\n @Result(property = \"updateDate\", column = \"update_date\")\n }\n )\n @Select(\"SELECT * FROM social_topic WHERE status = 1 AND id=#{id} LIMIT 1\")\n SocialTopic queryById(@Param(\"id\") Long id);\n\n @ResultMap(\"socialTopicResult\")\n @SelectProvider(type = SocialDynamicSql.class, method = \"queryTopicByExmple\")\n List<SocialTopic> queryTopicByExmple(SocialTopicQry qry);\n\n @Update(\"UPDATE social_topic SET status=4 WHERE id = #{id}\")\n int deleteById(@Param(\"id\") Long id);\n\n @Update(\"UPDATE social_topic SET title = #{title},contents = #{contents},update_time = #{updateTime},update_date = #{updateDate} \" +\n \"WHERE id = #{socialTopicId.id}\")\n int update(SocialTopic socialTopic);\n\n @Update(\"UPDATE social_topic SET up_count = #{upCount},update_date = #{updateDate} \" +\n \"WHERE id = #{socialTopicId.id}\")\n int up(SocialTopic socialTopic);\n\n @Update(\"UPDATE social_topic SET collect_count = #{collectCount},update_date = #{updateDate} \" +\n \"WHERE id = #{socialTopicId.id}\")\n int collect(SocialTopic socialTopic);\n\n @Update(\"UPDATE social_topic SET reply_count = #{replyCount},update_date = #{updateDate} \" +\n \"WHERE id = #{socialTopicId.id}\")\n int reply(SocialTopic socialTopic);\n\n @Update(\"UPDATE social_topic SET audit_status = #{auditStatus},audit_user = #{auditUser},\" +\n \"audit_time = #{auditTime},\" +\n \"update_date = #{updateDate} \" +\n \"WHERE id = #{socialTopicId.id}\")\n int review(SocialTopic socialTopic);\n\n\n @ResultMap(\"socialTopicResult\")\n @SelectProvider(type = SocialDynamicSql.class, method = \"queryMyCollecttopic\")\n List<SocialTopic> queryMyCollecttopic(SocialTopicQry qry);\n\n @ResultMap(\"socialTopicResult\")\n @Select(\"SELECT * FROM social_topic WHERE status = 1 AND user_id=#{userId} AND up_count>0 ORDER BY create_date DESC \")\n List<SocialTopic> quryMyUpedPage(@Param(\"userId\") Long userId);\n\n\n @Update(\"UPDATE social_topic SET attr = #{attr},update_date = #{updateDate} \" +\n \"WHERE id = #{socialTopicId.id}\")\n int recommendTopic(SocialTopic socialTopic);\n}", "title": "" }, { "docid": "e119084f2e5d5c7d99c613be134aa207", "score": "0.55854946", "text": "@Override\n\tprotected void initTable() {\n\n\t}", "title": "" }, { "docid": "1e6479d58644cdaba5c88a5b4be57f23", "score": "0.5580941", "text": "public String getTableName()\n {\n return sqlTable;\n }", "title": "" }, { "docid": "015cded5db2c26c983545fd98be1c320", "score": "0.5573118", "text": "@Override\r\n\tpublic void createTable(Table table) {\n\t\t\r\n\t}", "title": "" }, { "docid": "d08450b9720a5608906ac11f0b52847c", "score": "0.5571734", "text": "TableId table();", "title": "" }, { "docid": "e94ceb6783eb5869c14750848baf2d62", "score": "0.5558254", "text": "java.lang.String getTableName();", "title": "" }, { "docid": "7efccffded284cc735cedaec30da577f", "score": "0.55328655", "text": "@Select({\n \"select\",\n \"id, k8order_id, create_time, k8order_type, status, user_id, start_time, end_time\",\n \"from k8order\",\n \"order by start_time desc\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"k8order_id\", property=\"k8orderId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"k8order_type\", property=\"k8orderType\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"start_time\", property=\"startTime\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"end_time\", property=\"endTime\", jdbcType=JdbcType.TIMESTAMP)\n })\n List<K8Order> selectAll();", "title": "" }, { "docid": "77a5dd4c206fb6aac604bdce57447a60", "score": "0.5518962", "text": "public MyBatisDataTableModel() {\n\n\t\ttry {\n\t\t\tInputStream inputStream = Resources\n\t\t\t\t\t.getResourceAsStream(\"mybatis-config.xml\");\n\n\t\t\tsqlSessionFactory = new SqlSessionFactoryBuilder()\n\t\t\t\t\t.build(inputStream); //definiujemy fabryke, ktora poslozy do otwierania poszczegolnych polaczen (session) do bazy\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tfilterByName(\"\"); //odpowiada za odsiwerzenie tabelki z ksiazkami, gdzies w srodku wywoluje getValueAt\n\t}", "title": "" }, { "docid": "57ef5ba861416d95e14f97a661cf7e96", "score": "0.5505323", "text": "@Override\n\tprotected Map<String, String> getTableMap() {\n\t\treturn mColumnMap;\n\t}", "title": "" }, { "docid": "a6b518f552f90c195e5cef085e6e9a17", "score": "0.55020106", "text": "@Override\n public DBSTable getTable() {\n return null;\n }", "title": "" }, { "docid": "944f1069acbb3ab6d76de44cb6bc267a", "score": "0.549185", "text": "@Select({\n \"select\",\n \"ID, CLUSTER_ID, NAMESPACE, POD_LIMIT, CPU_LIMIT, MEMORY_LIMIT, RC_LIMIT, SERVICE_LIMIT, \",\n \"PV_LIMIT, NOTE, LAST_UPDATED\",\n \"from ku8_res_partion\"\n })\n @Results({\n @Result(column=\"ID\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"CLUSTER_ID\", property=\"clusterId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"NAMESPACE\", property=\"namespace\", jdbcType=JdbcType.CHAR),\n @Result(column=\"POD_LIMIT\", property=\"podLimit\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"CPU_LIMIT\", property=\"cpuLimit\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"MEMORY_LIMIT\", property=\"memoryLimit\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"RC_LIMIT\", property=\"rcLimit\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"SERVICE_LIMIT\", property=\"serviceLimit\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"PV_LIMIT\", property=\"pvLimit\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"NOTE\", property=\"note\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"LAST_UPDATED\", property=\"lastUpdated\", jdbcType=JdbcType.TIMESTAMP)\n })\n List<Ku8ResPartion> selectAll();", "title": "" }, { "docid": "328dd0d1dacc0aa6d552de43fd6e82fa", "score": "0.54879713", "text": "@Select({\n \"select\",\n \"id, goods_flash_id, goods_price_stock, format_name, market_price, member_price, \",\n \"flash_member_price, img, price, goods_price_stock_bak\",\n \"from xxd_goods_price_flash\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"goods_flash_id\", property=\"goodsFlashId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"goods_price_stock\", property=\"goodsPriceStock\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"format_name\", property=\"formatName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"market_price\", property=\"marketPrice\", jdbcType=JdbcType.DECIMAL),\n @Result(column=\"member_price\", property=\"memberPrice\", jdbcType=JdbcType.DECIMAL),\n @Result(column=\"flash_member_price\", property=\"flashMemberPrice\", jdbcType=JdbcType.DECIMAL),\n @Result(column=\"img\", property=\"img\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"price\", property=\"price\", jdbcType=JdbcType.DECIMAL),\n @Result(column=\"goods_price_stock_bak\", property=\"goodsPriceStockBak\", jdbcType=JdbcType.INTEGER)\n })\n XxdGoodsPriceFlash selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "2576d30ed40fbffb1b28a3b609a68532", "score": "0.5477692", "text": "public interface SkuCargoOwnerMapper {\r\n\r\n List<TWmsSkuCargoOwnerEntity> selectAll(@Param(\"splitTableKey\") String splitTableKey);\r\n\r\n Integer insertSkuCargoOwner(@Param(\"entity\") TWmsSkuCargoOwnerEntity skuCargoOwnerEntity,@Param(\"splitTableKey\") String splitTableKey);\r\n\r\n TWmsSkuCargoOwnerEntity selectBySkuIdAndCargoOwnerId(@Param(\"skuId\")Long skuId,@Param(\"cargoOwnerId\") Long cargoOwnerId,@Param(\"splitTableKey\")String splitTableKey);\r\n\r\n Integer updateSkuCargoOwnerBySkuId(@Param(\"entity\")TWmsSkuCargoOwnerEntity skuCargoOwnerEntity,@Param(\"splitTableKey\")String splitTableKey);\r\n\r\n TWmsSkuEntity selectByCargoOwnerBarcode(Map map);\r\n\r\n List<Long> selectSkuIdByCargoOwnerId(@Param(\"cargoOwnerId\")Long cargoOwnerId,@Param(\"splitTableKey\")String splitTableKey);\r\n\r\n List<TWmsSkuCargoOwnerEntity> selectEntitysByCargoOwnerId(@Param(\"cargoOwnerId\")Long cargoOwnerId,@Param(\"splitTableKey\")String splitTableKey);\r\n\r\n List<TWmsSkuCargoOwnerEntity> selectBysku(@Param(\"skuId\") Long skuId,@Param(\"splitTableKey\")String splitTableKey);\r\n\r\n}", "title": "" }, { "docid": "828269e4d4b9d5461c182464ebd5b13e", "score": "0.5474715", "text": "public JdbcColMapping() {}", "title": "" }, { "docid": "1ca51cb12018ad584bbdff114b5a35d8", "score": "0.54522026", "text": "public String getTableDbName() { return \"COLLECTION_STATUS\"; }", "title": "" }, { "docid": "3230320faac91195dec3a93f90aba6c6", "score": "0.54461455", "text": "@Select({\n \"select\",\n \"LOG_UUID, FROM_FUND_NO, TO_FUND_NO, FLAG_CANCEL, RELATED_TRANS_ID, STATUS, CREATE_TIME, \",\n \"UPDATE_TIME\",\n \"from T_ACT_TRANS_LOGS_DEBT\",\n \"where LOG_UUID = #{logUuid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"LOG_UUID\", property=\"logUuid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"FROM_FUND_NO\", property=\"fromFundNo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"TO_FUND_NO\", property=\"toFundNo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FLAG_CANCEL\", property=\"flagCancel\", jdbcType=JdbcType.CHAR),\n @Result(column=\"RELATED_TRANS_ID\", property=\"relatedTransId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CREATE_TIME\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"UPDATE_TIME\", property=\"updateTime\", jdbcType=JdbcType.TIMESTAMP)\n })\n TActTransLogsDebt selectByPrimaryKey(TActTransLogsDebtKey key);", "title": "" }, { "docid": "56ad3c4713586268c540c0f34abaf96f", "score": "0.5444149", "text": "@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_GJBZHY\";\n\t}", "title": "" }, { "docid": "5bcca6402e057e921c5d41b3f5d54d25", "score": "0.5431478", "text": "protected abstract String getMainTableName();", "title": "" }, { "docid": "23117235834a76f62d8a51c5930ad089", "score": "0.54267627", "text": "@Override\n protected void defineTable()\n {\n table.addColumn(\"ID\", Types.VARCHAR, 36, true);\n table.addColumn(\"CREATED_DATE\", Types.TIMESTAMP, true);\n table.addColumn(\"UPDATED_DATE\", Types.TIMESTAMP, false);\n table.addColumn(\"CODE\", Types.VARCHAR, 5, true);\n table.addColumn(\"NAME\", Types.VARCHAR, 60, true);\n table.addColumn(\"ATTRIBUTES\", Types.LONGVARCHAR, true);\n table.addColumn(\"CREATED_BY\", Types.VARCHAR, 15, true);\n table.setPrimaryKey(\"ORGANISATIONS_PK\", new String[] {\"ID\"});\n table.addIndex(\"ORGANISATIONS_CODE_IDX\", new String[] {\"CODE\"});\n table.setInitialised(true);\n }", "title": "" }, { "docid": "3593cee6071cb613f71b7362bc0dcbae", "score": "0.54165816", "text": "public abstract Set<String> listTableName();", "title": "" }, { "docid": "24f9b57bcfe1915ff4e35eb1c758b305", "score": "0.54132974", "text": "@Override\n\tpublic String getTableName() {\n\t\treturn TABLE_NAME;\n\t}", "title": "" }, { "docid": "14c09d7427491a4f5440c65c11ced1be", "score": "0.5413233", "text": "public void setTableId(String value);", "title": "" }, { "docid": "d1dfd93b6627f1929126e1c157bad568", "score": "0.5408392", "text": "public String getTableName() {\n return this.tableName;\n }", "title": "" }, { "docid": "d1dfd93b6627f1929126e1c157bad568", "score": "0.5408392", "text": "public String getTableName() {\n return this.tableName;\n }", "title": "" }, { "docid": "6e91f48eed6d734aac7c6054092c9ab6", "score": "0.5406248", "text": "public String generateMappings() {\n\n\t\tSystem.out.println(\"Regenerando mapeos tablas/entities...\");\n\n\t\tmappingService.generateTableMappings();\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "d0c8c2557f7cba6dc72cdff999cf2bb7", "score": "0.5396822", "text": "@Mapper\npublic interface EntryMapper {\n\n @DataSource(\"bigdata1_passport\")\n @Select(\"SELECT * FROM entry_${table_index} WHERE id < #{id} order by id desc LIMIT 1000\")\n List<Entry> find(@Param(\"table_index\") String table_index,\n @Param(\"id\") long id);\n\n @DataSource(\"bigdata1_passport\")\n @Select(\"SELECT * FROM entry_${table_index} order by id desc LIMIT 1\")\n Entry getLast(@Param(\"table_index\") String table_index);\n\n @DataSource(\"dmp\")\n @Insert(\"INSERT INTO entry (id,UUID,entryId,entryLevel,entryMobile,entryPass,salt,entryUserName,entryIdentity,entryEmail,entryRegistTime,\" +\n \"validateFlag,LastloginTime,entryImg,privacies,bind_card_status,id_encrypt,face_status,ac_code) values(#{id},#{UUID},#{entryId},\" +\n \"#{entryLevel},#{entryMobile},#{entryPass},#{salt},#{entryUserName},#{entryIdentity},#{entryEmail},#{entryRegistTime},#{validateFlag},\" +\n \"#{LastloginTime},#{entryImg},#{privacies},#{bind_card_status},#{id_encrypt},#{face_status},#{ac_code})\")\n void insert(Entry entry);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM entry WHERE id=#{id}\")\n Entry getById(@Param(\"id\") long id);\n\n @DataSource(\"dmp\")\n @Delete(\"DELETE FROM entry where entryRegistTime<#{entryRegistTime}\")\n void delete(@Param(\"entryRegistTime\") String entryRegistTime);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM entry WHERE uuid=#{uuid}\")\n Entry getByUuid(@Param(\"uuid\") String uuid);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM entry\")\n List<Entry> getAll();\n}", "title": "" }, { "docid": "a4ca0bfa7270fb1804bde7bdc4d2bb13", "score": "0.5392463", "text": "@Override\r\n public String getTableDbName() {\r\n return \"impasse_execution_histories\";\r\n }", "title": "" }, { "docid": "f94c3c670bd7e2d2a32ed20b28ae8899", "score": "0.5390443", "text": "private void Update_table() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "title": "" }, { "docid": "c58dcaa4264a9749c514015255a0a7a7", "score": "0.5383718", "text": "@Override\r\n\tpublic String getTableName() {\n\t\t\r\n\t\treturn \"vw_pta_sale_contract_bs\"; // йсм╪\r\n\t}", "title": "" }, { "docid": "40ab88ab27a4f71df3321e09e98e26a7", "score": "0.53754914", "text": "@Override\n\tprotected String getTableName() {\n\t\treturn model.Constants.EPISODIO_TABLE ;\n\t}", "title": "" }, { "docid": "d76ea43b8e9c1728330faad2a203c965", "score": "0.53725374", "text": "@Override\r\n\tpublic String getTableName() {\n\t\treturn TABLENAME;\r\n\t}", "title": "" }, { "docid": "4ae2b445f836b1bed3a5c012aa5cfe91", "score": "0.53679913", "text": "public interface AccountBookSelfMapper extends AccountBookMapper {\n\n @Select({\n \"<script>\",\n \"select a.id,b.id as storeTypeId,b.name,b.income,a.serial_number,a.pay_type,a.cost,a.content,DATE_FORMAT(a.create_time,'%Y-%m-%d %T') as create_time\",\n \"from account_book a left join store_type b on a.store_type_id = b.id\",\n \"where a.is_delete = 0 and b.is_delete = 0 and a.user_id = #{userId}\",\n \"<if test=\\\"entity.storeTypeId != null and entity.storeTypeId.size() > 0\\\">\",\n \"and a.store_type_id in\",\n \"<foreach collection='entity.storeTypeId' item='entity' open='(' close=')' separator=','>\",\n \"#{entity}\",\n \"</foreach>\",\n \"</if>\",\n \"<if test=\\\"entity.payType != null and entity.payType != ''\\\">\",\n \"and a.pay_type = #{entity.payType}\",\n \"</if>\",\n \"<if test=\\\"entity.cost != null\\\">\",\n \"and a.cost &lt;= #{entity.cost}\",\n \"</if>\",\n \"<if test=\\\"entity.content != null and entity.content != ''\\\">\",\n \"and a.content like '%${entity.content}%'\",\n \"</if>\",\n \"<if test=\\\"entity.startTime != null and entity.startTime != ''\\\">\",\n \"and a.create_time &gt;= #{entity.startTime}\",\n \"</if>\",\n \"<if test=\\\"entity.endTime != null and entity.endTime != ''\\\">\",\n \"and a.create_time &lt;= #{entity.endTime}\",\n \"</if>\",\n \"order by create_time desc\",\n \"</script>\"\n })\n List<Map<String,Object>> selectAllAccountByCondition(@Param(\"entity\") AccountListRequest entity,@Param(\"userId\")Long userId);\n\n @Select({\n \"<script>\",\n \"select sum(a.cost) as cost,a.store_type_id,b.name from account_book a left join\",\n \"store_type b on a.store_type_id = b.id where DATE_FORMAT(a.create_time,'%Y-%m') = #{month}\",\n \"and a.user_id = #{userId} and a.is_delete = 0 and b.is_delete = 0\",\n \"<if test=\\\"list != null and list.size() > 0\\\">\",\n \"and a.store_type_id in\",\n \"<foreach collection='list' item='entity' open='(' close=')' separator=','>\",\n \"#{entity}\",\n \"</foreach>\",\n \"</if>\",\n \"group by store_type_id\",\n \"</script>\"\n })\n List<Map<String,Object>> selectAllListByMonth(@Param(\"userId\")Long userId,@Param(\"month\")String month,@Param(\"list\")List<Long> list);\n\n @Select({\n \"<script>\",\n \"select sum(a.cost) as cost,a.store_type_id,b.name from account_book a left join\",\n \"store_type b on a.store_type_id = b.id where DATE_FORMAT(a.create_time,'%Y') = #{year}\",\n \"and a.user_id = #{userId} and a.is_delete = 0 and b.is_delete = 0\",\n \"<if test=\\\"list != null and list.size() > 0\\\">\",\n \"and a.store_type_id in\",\n \"<foreach collection='list' item='entity' open='(' close=')' separator=','>\",\n \"#{entity}\",\n \"</foreach>\",\n \"</if>\",\n \"group by store_type_id\",\n \"</script>\"\n })\n List<Map<String,Object>> selectAllListByYear(@Param(\"userId\")Long userId,@Param(\"year\")String year,@Param(\"list\")List<Long> list);\n}", "title": "" }, { "docid": "38caced23b5fa2f2c061a33d344eec83", "score": "0.536176", "text": "@RegisterMapper(BrandInfoMapper.class)\n @SqlQuery(\"SELECT * FROM brand_info\")\n List<BrandInfo> getAllBrands();", "title": "" }, { "docid": "5c1f697fd3e5d7d76820c0b1356eadc5", "score": "0.5357845", "text": "@Override\r\n\tprotected String getSqlString() {\n\t\treturn \" select sreg.*, d.value dkindserv, sgr.servcode, sgr.name from servgroup sgr \\n\"+\r\n\t\t\t\t\" join servicereg sreg on sgr.servgroup_id = sreg.servgroup_id\\n\"+\r\n\t\t\t\t\" join decode d on d.code = sreg.kindserv and lower(d.columnname) = 'kind_serv'\\n\";\r\n\r\n\t}", "title": "" }, { "docid": "15cc98a2b6ee80c98c43238cfa2aa9d8", "score": "0.53561676", "text": "@Service\npublic interface TeacherInfoDao {\n\n /**\n * 查询所有老师的工号,这里没有考虑老师是否离职\n * @return\n */\n @Select({\n \"SELECT teachercode FROM eas_teacherinfo;\"\n })\n Set<String> getAllTeacherCode();\n}", "title": "" }, { "docid": "efb0a21dfc5e17ca78a35ec9758fc3f6", "score": "0.53480935", "text": "public interface NoticeInfomationMapper {\n\n @Select(\"select * from notice_info\")\n @Results({\n @Result(property = \"id\",column = \"id\"),\n @Result(property = \"title\",column = \"title\"),\n @Result(property = \"link\",column = \"link\"),\n @Result(property = \"content\",column = \"content\"),\n @Result(property = \"date\",column = \"date_time\")\n })\n List<NoticeInformation> getAllNoticeInfomations();\n\n\n @Select(\"select * from notice_info order by date_time desc\")\n @Results({\n @Result(property = \"id\",column = \"id\"),\n @Result(property = \"title\",column = \"title\"),\n @Result(property = \"link\",column = \"link\"),\n @Result(property = \"content\",column = \"content\"),\n @Result(property = \"date\",column = \"date_time\")\n })\n List<NoticeInformation> getAllNoticeInfomationsOrderByDate();\n\n\n @Insert(\"insert into notice_info (title,link,content,date_time) values (#{title},#{link},#{content},#{date})\")\n void insert(NoticeInformation noticeInformation);\n\n @Delete(\"delete from notice_info\")\n void deleteAll();\n\n\n\n}", "title": "" }, { "docid": "6a2aa1abee93f9851c1ff8b97e0533cd", "score": "0.5347396", "text": "String getSqlSelect();", "title": "" }, { "docid": "641f207aa126b37d7582e39a8ac4aab2", "score": "0.5343863", "text": "@Override\n protected void initResultTable() {\n }", "title": "" }, { "docid": "b4bc67982fe81ec7a6e18a0826d5f4e4", "score": "0.5343427", "text": "@SqlMapper\npublic interface PortalSysAppIconsListMapper {\n Integer add(PortalSysAppIconsListCondition condition);\n Integer getPageCount(PortalSysAppIconsListCondition condition);\n Integer update(PortalSysAppIconsListCondition condition);\n Integer delete(PortalSysAppIconsListCondition condition);\n List<PortalSysAppIconsList> getPageList(PortalSysAppIconsListCondition condition);\n List<PortalSysAppIconsList> getList(PortalSysAppIconsListCondition condition);\n Integer getCountByPackage(PortalSysAppIconsListCondition condition);\n}", "title": "" }, { "docid": "d99ed2a5579bea31babaafb1a07fc424", "score": "0.5343057", "text": "@Select({\n \"select\",\n \"scheme_code, division_sn_code, div_level, name, scheme_type, description, scheme_version, \",\n \"submitter, version_date, status, scheme_path, scheme_attach\",\n \"from div_cons_scheme\",\n \"where scheme_code = #{schemeCode,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"scheme_code\", property=\"schemeCode\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"division_sn_code\", property=\"divisionSnCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"div_level\", property=\"divLevel\", jdbcType=JdbcType.CHAR),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"scheme_type\", property=\"schemeType\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"description\", property=\"description\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"scheme_version\", property=\"schemeVersion\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"submitter\", property=\"submitter\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"version_date\", property=\"versionDate\", jdbcType=JdbcType.DATE),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"scheme_path\", property=\"schemePath\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"scheme_attach\", property=\"schemeAttach\", jdbcType=JdbcType.VARCHAR)\n })\n DivConsScheme selectByPrimaryKey(String schemeCode);", "title": "" }, { "docid": "5e23b875f495cdbd7bd0d596a9d71fe1", "score": "0.5323975", "text": "@Select({\n \"select\",\n \"ID, USERNAME, DESCRIPTION\",\n \"from t_user\",\n \"where ID = #{id,jdbcType=BIGINT}\"\n })\n @ResultMap(\"com.spring.springtest.dao.TUserMapper.BaseResultMap\")\n TUser selectByPrimaryKey(Long id);", "title": "" }, { "docid": "4087bee5e7651643bc0190406f91eab0", "score": "0.5320817", "text": "public abstract int getSqlType();", "title": "" }, { "docid": "4ca8b0a720f1eaf41ab9efd3f9f2249d", "score": "0.5310153", "text": "@Override\n public String[] getTableNames()\n {\n return new String[]{\"MOVEMENT_BATCH_ROUTE_XREF\", \"BATCH_ROUTE_CONF\"};\n }", "title": "" }, { "docid": "d32abaf82765905a77a62668293e2417", "score": "0.53082854", "text": "@SqlUpdate(\"create table dcae_service_types (type_id varchar not null, type_version integer not null, \" +\n \"type_name varchar not null, owner varchar not null, blueprint_template text not null, \" +\n \"vnf_types varchar[] not null, service_ids varchar[], service_locations varchar[], \" +\n \"asdc_service_id varchar, asdc_resource_id varchar, \" +\n \"created timestamp not null, deactivated timestamp, constraint pk_type_created primary key (type_id))\")\n void createTable();", "title": "" }, { "docid": "77aa9c01d712e8bd106d401f97600226", "score": "0.53037053", "text": "IDbEntityTable<B, P> getBaseTable();", "title": "" }, { "docid": "d5a168a93f3d262eda0c86bdd35b235b", "score": "0.53031266", "text": "public String getTableName() {\n return tableName;\n }", "title": "" }, { "docid": "d5a168a93f3d262eda0c86bdd35b235b", "score": "0.53031266", "text": "public String getTableName() {\n return tableName;\n }", "title": "" }, { "docid": "c1774b86295bd6eb22b144dc70bb3805", "score": "0.53003144", "text": "@SelectProvider(type=TCmSiteCheckDaySqlProvider.class, method=\"selectBySpec\")\r\n @Results({\r\n @Result(column=\"CHECK_DATE\", property=\"checkDate\", jdbcType=JdbcType.VARCHAR, id=true),\r\n @Result(column=\"ORG_CD\", property=\"orgCd\", jdbcType=JdbcType.VARCHAR, id=true),\r\n @Result(column=\"BRANCH_CD\", property=\"branchCd\", jdbcType=JdbcType.VARCHAR, id=true),\r\n @Result(column=\"SITE_CD\", property=\"siteCd\", jdbcType=JdbcType.VARCHAR, id=true),\r\n @Result(column=\"MAC_IN_CLEAN\", property=\"macInClean\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"MAC_OUT_CLEAN\", property=\"macOutClean\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"INTERPHONE_CLEAN\", property=\"interphoneClean\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"GROUND_CLEAN\", property=\"groundClean\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"GARBAGE_CLEAN\", property=\"garbageClean\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"GLASS_CLEAN\", property=\"glassClean\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"PORTFOLIO_CNT\", property=\"portfolioCnt\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"JUNUL_CNT\", property=\"junulCnt\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"RIBBON_CNT\", property=\"ribbonCnt\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"GUIDE_STATE\", property=\"guideState\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"STICKER_STATE\", property=\"stickerState\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"INTERPHONE_STATE\", property=\"interphoneState\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"DVR_STATE\", property=\"dvrState\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"LAMP_STATE\", property=\"lampState\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"AIRCON_STATE\", property=\"airconState\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"HEATER_STATE\", property=\"heaterState\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"BOOTH_CHECK\", property=\"boothCheck\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"CHECK_REMAIN\", property=\"checkRemain\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"COLLECTION_CHECK\", property=\"collectionCheck\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"SIGN_LAMP_CHECK\", property=\"signLampCheck\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"PHOTO_URL\", property=\"photoUrl\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"OUT_SIGN_PHOTO\", property=\"outSignPhoto\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"GATE_PHOTO\", property=\"gatePhoto\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"FLOOR_PHOTO\", property=\"floorPhoto\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"LEFT_BOOTH_PHOTO\", property=\"leftBoothPhoto\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"RIGHT_BOOTH_PHOTO\", property=\"rightBoothPhoto\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"UP_PHOTO\", property=\"upPhoto\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"MAC_UP_PHOTO\", property=\"macUpPhoto\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"MAC_DOWN_PHOTO\", property=\"macDownPhoto\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"REMARK\", property=\"remark\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"MEMBER_ID\", property=\"memberId\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"PHOTO_YN\", property=\"photoYn\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"ORG_SEND_YN\", property=\"orgSendYn\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"ORG_SEND_DATE\", property=\"orgSendDate\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"UPDATE_DATE\", property=\"updateDate\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"UPDATE_UID\", property=\"updateUid\", jdbcType=JdbcType.VARCHAR)\r\n })\r\n List<TCmSiteCheckDay> selectBySpec(TCmSiteCheckDaySpec spec);", "title": "" }, { "docid": "a18cc72ea2e4b62a3f507231a47de5cb", "score": "0.5297476", "text": "@Transient\n\t@Override\n\tpublic String getTableName() {\n\t\treturn \"标准品清单\";\n\t}", "title": "" }, { "docid": "bd3407ce613a1104d5c4e4e64f72bd8b", "score": "0.52930826", "text": "@Mapper\npublic interface PersonMapper {\n\n @Select(\"SELECT * FROM PERSON WHERE USERNAME = #{userName}\")\n Person findByUserName(@Param(\"userName\") String username);\n\n @Select(\"SELECT * FROM PERSON\")\n List<Person> findAll();\n\n\n @Insert(\"INSERT INTO PERSON(ID,USERNAME,FIRSTNAME,LASTNAME,BIRTHDATE) values(#{id},#{username},#{firstName},#{lastName},#{birthDate})\")\n @SelectKey(statement = \"SELECT SEQ_PERSON.Nextval as ID from DUAL\",resultType = Long.class,before = true,keyProperty = \"id\",keyColumn = \"ID\")\n void save(Person person);\n\n}", "title": "" }, { "docid": "d156a816998d2a95783562e130c1e7c8", "score": "0.52901936", "text": "@Override\n public String asTableDbName() {\n return \"duplicate_host\";\n }", "title": "" }, { "docid": "88ddb50d60296f062f6f6de189bd11c7", "score": "0.5282159", "text": "@Override\r\n public String tableName()\r\n {\r\n return \"USEREXP\";\r\n }", "title": "" }, { "docid": "4d1aa1e3bd26cf0f8a0186780e447073", "score": "0.52794594", "text": "@Select({\n \"select\",\n \"coupon_distirct_id, coupon_batch_id, district_type, district_id, district_name, \",\n \"update_time, create_time\",\n \"from `coupon_district`\",\n \"where coupon_distirct_id = #{couponDistirctId,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"coupon_distirct_id\", property=\"couponDistirctId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"coupon_batch_id\", property=\"couponBatchId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"district_type\", property=\"districtType\", jdbcType=JdbcType.TINYINT),\n @Result(column=\"district_id\", property=\"districtId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"district_name\", property=\"districtName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"update_time\", property=\"updateTime\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\n })\n CouponDistrict selectByPrimaryKey(Integer couponDistirctId);", "title": "" }, { "docid": "2c59868c7de5daaa3c48716545ced8c1", "score": "0.5275624", "text": "mrtech.smarthome.rpc.Models.IndexCodeTable getTable();", "title": "" }, { "docid": "1a85944911185bae99dd2035b9b56181", "score": "0.52736884", "text": "private void TransferCommon(mycommons.db.Table para_fromTable,mycommons.db.Table para_toTable){\n\t\ttry{\n\t\t\t\n\t\t\tthis.statementLocal=connectionLocal.getConnection().createStatement();\n\t\t\tthis.statementRemote=connectionRemote.getConnection().createStatement();\n\t\t\tthis.rstLocal=this.statementLocal.executeQuery(\"select * from \"+para_fromTable.getName());\n\t\t\t\n\t\t\t//get fields\n\t\t\tjava.util.ArrayList<mycommons.db.Field> fields=mycommons.routines.db.Generic.getFields(rstLocal);\n\t\t\t//create table\n\t\t\t//mycommons.routines.db.Manipulate.DeleteTable(connectionRemote, para_toTable);\n\t\t\t//mycommons.routines.db.Definition.createTable(statementRemote, para_toTable, fields);\n\t\t\tmycommons.routines.db.Definition.createTable(connectionRemote, para_toTable, fields);\n\t\t\t// test fields start\n\t\t\t/***\n\t\t\tfor(int i=0;i<fields.size();i++){\n\t\t\t\tmycommons.db.Field fld=new mycommons.db.Field();\n\t\t\t\tfld=fields.get(i);\n\t\t\t\tSystem.out.println((i+1)+\" name is \"+fld.getName().getName());\n\t\t\t\tSystem.out.println(\"type is \"+fld.getType().getType());\n\t\t\t\tSystem.out.println(\"length is \"+fld.getLength().getLength());\n\t\t\t\tSystem.out.println(\"type sql is \"+fld.getTypeSQL().getTypeSQLString(fld.getType()));\n\t\t\t\tString buff=mycommons.constants.Generic.CS_SPACE;\n\t\t\t\tif(fld.getIsNullable().getIsNullale()==java.sql.ResultSetMetaData.columnNoNulls){\n\t\t\t\t\tbuff=\"null not abelable.\";\n\t\t\t\t}\n\t\t\t\tif(fld.getIsNullable().getIsNullale()==java.sql.ResultSetMetaData.columnNullable){\n\t\t\t\t\tbuff=\"null is ok.\";\n\t\t\t\t}\n\t\t\t\tif(fld.getIsNullable().getIsNullale()==java.sql.ResultSetMetaData.columnNullableUnknown){\n\t\t\t\t\tbuff=\"ok or not is unknown.\";\n\t\t\t\t}\n\t\t\t\tSystem.out.println(buff);\n\t\t\t}\n\t\t\t***/\n\t\t\t//test fields end\n\t\t\t\n\t\t\t//create remote table at here\n\t\t\t//mycommons.db.SQLString sqlobj=mycommons.routines.db.Definition.createSqlStringCreateTable(para_toTable, fields);\n\t\t\t//System.out.println(sqlobj.toString());\n\t\t\t//statementRemote.execute(sqlobj.toString());\n\n\t\t\t// add records to remote\n\t\t\tint i=0;\n\t\t\t//Integer j=1;\n\t\t\twhile(rstLocal.next()){\n\n\t\t\t\t//mycommons.routines.db.Manipulate.insertRecord(statementRemote, para_toTable, fields, rstLocal);\n\t\t\t\tmycommons.routines.db.Manipulate.insertRecord(statementRemote, para_toTable, rstLocal);\t\t\t\t\n\t\t\t\t\n\t\t\t\ti=i+1;\n\t\t\t\t\n\t\t\t\tif((i%1000)==0){\n\t\t\t\t\tSystem.out.println(\"add \"+Integer.toString(i));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t//if(mycommons.routines.generic.Compare.isEqual(i, 0)){\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(i==10000){\t\n\t\t\t\t\tSystem.out.println(\"exit program. cause by limiter.\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t//459803\n\t\t\t\t\n\n\t\t\t}\n\n\t\t\t// at last. end.\n\t\t\tmycommons.logging.Logging.info(\"ok\");\n\t\t}catch(Exception e){\n\n\t\t\tmycommons.logging.Logging.severe(\"failed in trasfering from local to remote.stop program.\");\n\t\t\tmycommons.logging.Logging.severe(e.toString());\n\t\t\tSystem.exit(mycommons.constants.System.CS_EXIT_ERROR);\n\t\t\t\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "862108697c1498508ad400e3b781e9e5", "score": "0.52687794", "text": "@Override\n public String getTableName()\n {\n return \"TF_B_TRADE_PLATSVC\";\n }", "title": "" }, { "docid": "acafce6aae32111b61df59f5fa59b407", "score": "0.52640605", "text": "protected String getTableName()\n {\n return name;\n }", "title": "" }, { "docid": "e662d9ec2e3cce2e8691a3dfb79e417d", "score": "0.5264034", "text": "public interface StocktakingHeaderMapper {\r\n\r\n List<TWmsStocktakingHeaderEntity> queryStocktakingHeaderPages(@Param(\"entity\") TWmsStocktakingHeaderEntity stocktakingHeaderEntity, @Param(\"splitTableKey\") String splitTableKey);\r\n\r\n Integer queryStocktakingHeaderPageCount(@Param(\"entity\") TWmsStocktakingHeaderEntity stocktakingHeaderEntity,@Param(\"splitTableKey\") String splitTableKey);\r\n\r\n TWmsStocktakingHeaderEntity selectByPrimaryKey(@Param(\"id\") Long id,@Param(\"splitTableKey\") String splitTableKey);\r\n\r\n Integer insertStocktakingHeader(@Param(\"entity\") TWmsStocktakingHeaderEntity stocktakingHeaderEntity,@Param(\"splitTableKey\") String splitTableKey);\r\n\r\n Integer deleteStocktakingHeader(@Param(\"id\") Long id,@Param(\"splitTableKey\") String splitTableKey);\r\n\r\n Integer updateStocktakingHeader(@Param(\"entity\") TWmsStocktakingHeaderEntity stocktakingHeaderEntity,@Param(\"splitTableKey\") String splitTableKey);\r\n\r\n}", "title": "" }, { "docid": "106029fba90a7c5718d808ff94917260", "score": "0.52627003", "text": "Server selectByPrimaryKey(Long id);", "title": "" }, { "docid": "5223c661ba5adcaf4fba8f6ed8628717", "score": "0.52473587", "text": "@Override\n public void executeQuery() {\n }", "title": "" }, { "docid": "4dec3436d39decd691177e0d849571ec", "score": "0.5240567", "text": "@Insert({\n \"insert into t_entity (name, crete_time, \",\n \"update_time)\",\n \"values (#{name,jdbcType=VARCHAR}, #{creteTime,jdbcType=TIMESTAMP}, \",\n \"#{updateTime,jdbcType=TIMESTAMP})\"\n })\n @SelectKey(statement=\"SELECT LAST_INSERT_ID()\", keyProperty=\"id\", before=false, resultType=Integer.class)\n int insert(Entity record);", "title": "" }, { "docid": "02421a17eba0be1c20038d59d9f1197b", "score": "0.52357465", "text": "public String getTableName() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "26a1871782c0246b68723862496a87bc", "score": "0.5235736", "text": "@Override\r\n\tpublic Object TableToClass(ResultSet rs) {\n\t\treturn null;\r\n\t}", "title": "" } ]
f8202c72210496c046df69176bf94a70
pop my dictionary item
[ { "docid": "64916fb5bc2a1f674a8665256c98fe1f", "score": "0.6635652", "text": "public void popMyDicItem(DictionaryItem item){\r\n\t\t\r\n\t\tint did = item.getID();\r\n\t\tint pos = 0;\r\n\t\t\r\n\t\tfor(DictionaryItem single_item : this.myDicItemsList){\r\n\t\t\tif(did == single_item.getID()){\r\n\t\t\t\tmyDicItemsList.remove(pos);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t++pos;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tButton b = (Button) my_view.findViewById(R.id.my_del_sel_word);\r\n\t\t\r\n\t\tif(this.myDicItemsList.size() == 0){\r\n\t\t\tListView lv = (ListView) my_view.findViewById(R.id.my_dictionary_list);\r\n\t\t\tLinearLayout.LayoutParams params = (LinearLayout.LayoutParams) lv.getLayoutParams();\r\n\t\t\tparams.weight = 0f;\r\n\t\t\tlv.setLayoutParams(params);\r\n\t\t\t\r\n\t\t\tLinearLayout.LayoutParams p = (LinearLayout.LayoutParams) b.getLayoutParams();\r\n\t\t\tp.weight = 1f;\r\n\t\t\tb.setLayoutParams(p);\r\n\t\t\tb.setVisibility(View.GONE);\r\n\t\t}\r\n\t\t\r\n\t\tString counter = String.valueOf(this.myDicItemsList.size());\r\n\t\tb.setText(\"Delete \" + counter);\r\n\t}", "title": "" } ]
[ { "docid": "9477a20c621678900999404cb3db6c81", "score": "0.72235847", "text": "public XMLDictionary popXMLDictionary();", "title": "" }, { "docid": "3d9d2803151af2c5163d0458c48de8aa", "score": "0.69893384", "text": "public void removeItem()\n\t{\n\t\t//Implement here\n\t\tstack.pop();\n\t}", "title": "" }, { "docid": "f15c63b334cf923350cf1417d66deeac", "score": "0.6727565", "text": "@Override\n\tpublic String rpop(String key) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "858c8475538fb8d4ce30b7b882cf8389", "score": "0.67044455", "text": "public Object pop();", "title": "" }, { "docid": "f4532ad3252faaffa08414348992f6b1", "score": "0.66940254", "text": "Object rpop(String key) throws RemoteException;", "title": "" }, { "docid": "69b668d635af8a12d8a2f595f91c4626", "score": "0.66150296", "text": "Object lpop(String key) throws RemoteException;", "title": "" }, { "docid": "1fc59eb88612985656404c889c2c867d", "score": "0.65469784", "text": "@Override\n\tpublic String lpop(String key) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "10a1dfbe91458d78f5b10809d12dbc4f", "score": "0.65104985", "text": "public ValueWrapper pop(String keyName) {\r\n\t\tValueWrapper out = peek(keyName);\r\n\t\tmap.put(keyName,\r\n\t\t\t\tmap.get(keyName).next);\r\n\t\t\r\n\t\treturn out;\r\n\t}", "title": "" }, { "docid": "07e3b5248fb9b0e4d0d07e2d69154fb4", "score": "0.6454309", "text": "public String pop(){\n String item = first.item;\n first = first.next;\n size--;\n return item;\n }", "title": "" }, { "docid": "f198e0c2138324c08523bb2dc3788392", "score": "0.6404136", "text": "public Object pop() {\n if (size == 0) {\n return null;\n }\n\n Object ret = items[first];\n items[first] = null;\n first = (first + 1) % items.length;\n\n size--;\n\n return ret;\n }", "title": "" }, { "docid": "e19883c9c1a381c78d30f9a9c8a6487b", "score": "0.63784254", "text": "@Override\n\tpublic Object pop() {\n\t\treturn target.pop();\n\t}", "title": "" }, { "docid": "8336f82ed374d094f3f27eaad24b7c36", "score": "0.63463974", "text": "@Override\n\tpublic E pop()\t{\n\t\treturn data.remove(size()-1);\n\t}", "title": "" }, { "docid": "2f423c67d187c7756d1fac5ff3666a31", "score": "0.62894154", "text": "public Object remove(String key)\n {\n int idx;\n Object value;\n\n if (LF < ((double)(numItems)/(double)(hashTable.length)))\n {\n reSize(hashTable.length);\n }\n //END IF\n\n idx = find(key);\n\n value = hashTable[idx].getValue();\n hashTable[idx].setState(-1);\n numItems--;\n\n return value;\n }", "title": "" }, { "docid": "c724aa0a13ba53a44f3306ef951a7fb6", "score": "0.62328815", "text": "public void pop() {\r\n\t\tmystack.removeFirst();\r\n\t\ttop=mystack.getSize();\t//updating value of top\r\n\t}", "title": "" }, { "docid": "32f9a4029b5d67487486962bf98b6b4e", "score": "0.62324905", "text": "@Override\r\n\tpublic void remove() {\r\n\t\ttry {\r\n\t\t\tStack<String> temp = book.pop();\r\n\t\t\tthis.popElement(temp);\r\n\t\t} catch (EmptyStackException e) {\r\n\t\t\tSystem.out.println(\"The stack is empty\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "988a1299a9e1aa7b359b33a2a374e4b2", "score": "0.6228106", "text": "public Object pop() {\n\n Object item;\n item = stack.delectFromFront();\n\n return item;\n }", "title": "" }, { "docid": "339c8ffa93399f7213c48b9e0ff8a50f", "score": "0.62111706", "text": "public void removeAKey() {\n\t\tnumberOfKeys--;\n\t\t// find a key object\n\t\tfor (Item i : items) {\n\t\t\tif (i.getDescription().equals(\"A key\")) {\n\t\t\t\tremove(i);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ca4abfbcdb795899a31ecfe1aa4f5579", "score": "0.6194634", "text": "Entry<Item, Integer> remove() {\n return ((TreeMap<Item, Integer>) order.Map()).pollFirstEntry();\n }", "title": "" }, { "docid": "3086a91cea543b7f894818dedd6c249a", "score": "0.6177018", "text": "public abstract void pop ();", "title": "" }, { "docid": "b5a4c5bd384ab8c44b039766fd83bb3d", "score": "0.617305", "text": "@Override\n public V remove(K key) {\n int index = linearSearch(key);\n if (index == -1) return null; //do nothing\n V temp = dictionary[index].value; //stores value\n dictionary[index] = dictionary[topIndex]; //replace the entry with the last available one\n dictionary[topIndex] = null;\n topIndex--;\n return temp; //returns stored value\n }", "title": "" }, { "docid": "318ab07756368e80f48321cf9460b242", "score": "0.6164345", "text": "@Override\n public int pop() {\n \n }", "title": "" }, { "docid": "ad0c058a78fb32a21c6e793128d76160", "score": "0.6157019", "text": "@Override\n public Object pop() {\n LinkListWrite.LinkListWriteIterator iter=readlist.iterator();\n LinkListWrite.LinkListWriteIterator iter1=deletelist.iterator();\n if (iter.size()<0){\n return null;\n }\n while (iter.hasNext()){\n if (iter.nexttonext())\n break;\n iter.next();\n }\n iter.next();\n E temp=(E) iter.takenext();\n iter1.insertHere(temp);\n iter.delete();\n return temp;\n }", "title": "" }, { "docid": "ee9609031f6bde330eb420aff6562fb6", "score": "0.6137161", "text": "public Object pop() {\n\t\treturn getLast(true);\n\t}", "title": "" }, { "docid": "974c4d2286db65bf5f2da590ba13fe67", "score": "0.61299783", "text": "void pop();", "title": "" }, { "docid": "7bd49c3114848b87415cdee15f1accbd", "score": "0.61213434", "text": "public T pop();", "title": "" }, { "docid": "7bd49c3114848b87415cdee15f1accbd", "score": "0.61213434", "text": "public T pop();", "title": "" }, { "docid": "7bd49c3114848b87415cdee15f1accbd", "score": "0.61213434", "text": "public T pop();", "title": "" }, { "docid": "1f39ed339d520297cde032127a6eb58c", "score": "0.6099376", "text": "@Override\n\tpublic T pop() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "50f4b05181cdea587cb38393634050d6", "score": "0.6095278", "text": "public V remove(K key)\n {\n if (contains(key))\n {\n V tempVal = getValue(key);\n int i = index(key);\n while (!key.equals(dict[i].getKey()) && dict[i].getFlag())\t//while key doesn't match and node has been used\n {\n i = (i+1) % dict.length;\t\t//exits while that is not true\n }\n dict[i].setKey(null);\n dict[i].setValue(null);\n numOfItems--;\n return tempVal;\n }\n return null;\n }", "title": "" }, { "docid": "9c82ee603611dd4dcfeb8e813c201124", "score": "0.60825235", "text": "public Object removeLastItem(){\n if(this.theBag.size() < 1)\n return null;\n else {\n this.uses.remove(this.uses.size()-1);\n return this.theBag.remove(this.theBag.size()-1);\n }\n }", "title": "" }, { "docid": "1a1faca0a800d1f52ac1a1c96d356913", "score": "0.6080718", "text": "@Override\n public E pop() {\n //Most recently pushed item is removed and returned\n return vector.remove(0);\n }", "title": "" }, { "docid": "9fb34be3ac5bb29df9bcb3502a97ce1a", "score": "0.60589916", "text": "BufferItem remove_item();", "title": "" }, { "docid": "bed55c9697fa58c7e8555d2c1816cef2", "score": "0.6054355", "text": "public Object remove(int key);", "title": "" }, { "docid": "882ffeb4f7391b99425a538e261bfd2d", "score": "0.60439414", "text": "public Object remove(String key) {\n return peek().remove(key);\n }", "title": "" }, { "docid": "1166ccd8a6e44e243d8dbe9a93dd12c6", "score": "0.60329217", "text": "public Object pop(){\r\n\t\tif(stack.isEmpty() == true) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tObject item = stack.get(stack.size()-1);\r\n\t\tstack.remove(stack.size()-1);\r\n\t\treturn item;\r\n\t}", "title": "" }, { "docid": "d1bf080aa96560e1b5184c16f392f7c2", "score": "0.6030882", "text": "Object remove(String key);", "title": "" }, { "docid": "d75d926b1da9407b096f50db4b378abf", "score": "0.60075116", "text": "public Object pop() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tif(len>0) {\r\n\t\tObject p = top.value; // get value \r\n\t\ttop = top.next; // remove this element\r\n\t\tlen--; \r\n\t\treturn p;}\r\n\t\telse {\r\n\t\t\tthrow new RuntimeException(); // stack is Empty\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9e9e779feb11f3317d4168af63a86b94", "score": "0.6006458", "text": "@Override\n\tpublic E pop() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "a30f61636ae4891b2f900293e8b43a7c", "score": "0.6003881", "text": "public void pop() {\n m_toSend.remove();\n }", "title": "" }, { "docid": "13733e4b43112d8f9db28cf602ef65eb", "score": "0.59943414", "text": "public D remove(K key) {\r\n\t\t\tCount pair = content.get(key);\r\n\t\t\tif (pair == null)\r\n\t\t\t\treturn null;\r\n\t\t\tif (pair.isLast()) {\r\n\t\t\t\treturn removeAllOf(key);\r\n\t\t\t}\r\n\t\t\treturn content.put(key, content.get(key).decrease()).getValue();\r\n\t\t}", "title": "" }, { "docid": "382f6e21f672c2893be7530c38cceae0", "score": "0.59792864", "text": "public int pop() {\n Node node = stack.pop();\n List<Node> nodeList = map.get(node.val);\n int x = nodeList.remove(nodeList.size() - 1).val;\n if (nodeList.isEmpty()) {\n map.remove(node.val);\n }\n return x;\n }", "title": "" }, { "docid": "e608e2176320c49d5dbf46c86f038b15", "score": "0.59778655", "text": "public E pop() {\r\n int len = list.size();\r\n E obj = peek();\r\n list.remove(len - 1);\r\n return obj;\r\n }", "title": "" }, { "docid": "8c37bd4866acab29659f884175e559ce", "score": "0.59758526", "text": "public void remove() {\n\t\t\tisModified();\n\t\t\tif(!(containsKey(returnEntry.key))) {\n\t\t\t\tthrow new IllegalStateException();\n\t\t\t}\n\t\t\tSimpleHashtable.this.remove(returnEntry.key);\n\t\t\tactiveModificationCount++;\n\t\t\tposition--;\n\t\t}", "title": "" }, { "docid": "538c60e128c9cfef524db34b593e325e", "score": "0.5973695", "text": "public Object pop(){\n\t\tNode node = top;\n\t\ttop = node.getNext();\n\t\treturn node.getObj();\n\t}", "title": "" }, { "docid": "8e78b1ef2ebff5b8aa3d8dd5e46af9ee", "score": "0.5965134", "text": "public void popSection() {\n sections.popCurrentSection();\n }", "title": "" }, { "docid": "8a90a1354b68e396b5345d9e8674c664", "score": "0.5955945", "text": "E pop();", "title": "" }, { "docid": "8a90a1354b68e396b5345d9e8674c664", "score": "0.5955945", "text": "E pop();", "title": "" }, { "docid": "7a24a1842405329adb3d768478a61373", "score": "0.5926892", "text": "public Card pop(){\r\n\t\tCard ejected;\r\n\t\tif(isEmpty())\r\n\t\t\tthrow new IllegalArgumentException(\"\");\r\n\t\tejected = data[top];\r\n\t\tdata[top] = null;\r\n\t\ttop--;\r\n\t\treturn ejected;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "99411d14295fadcde461adbefe89e9bd", "score": "0.5924918", "text": "public Object pop() {\n\t\t// Ask the linked list to remove the last object in the list.\n\t\t// (Remove returns the removed item. and index minus 1 due to starting at 0 and\n\t\t// size starts at 1)\n\t\treturn linkedList.remove(linkedList.size() - 1);\n\t}", "title": "" }, { "docid": "e6d9a07c1e4e0702d29af84b6566244d", "score": "0.5919426", "text": "Minion pop();", "title": "" }, { "docid": "250c701313ec4f02144f227bf1e7a365", "score": "0.5915315", "text": "public Object removeFirstItem(){\n if(this.theBag.size() < 1)\n return null;\n else {\n this.uses.remove(0);\n return this.theBag.remove(0);\n }\n }", "title": "" }, { "docid": "7a8f15c869896861eb1b974305c06652", "score": "0.59136623", "text": "public E pop();", "title": "" }, { "docid": "7a8f15c869896861eb1b974305c06652", "score": "0.59136623", "text": "public E pop();", "title": "" }, { "docid": "7a8f15c869896861eb1b974305c06652", "score": "0.59136623", "text": "public E pop();", "title": "" }, { "docid": "60f10761971c98805de0511a57bb957d", "score": "0.5912702", "text": "public void remove(int key) {\n\t\tObjData entry = get(key);\n\t\tif(entry!=null)\n\t\t\tlist.get(hash(key)).remove(entry);\n\t}", "title": "" }, { "docid": "f6bacd83a662b8588e85e94fb813281a", "score": "0.5902848", "text": "public void pop_back()\n\t{\n\t\tif(size>0)\n\t\t{\n\t\t\ttype.remove(type.size()-1);\n\t\t\treferenceid.remove(referenceid.size()-1);\n\t\t\tmessages.remove(messages.size()-1);\n\t\t\tsize--;\n\t\t}\n\t}", "title": "" }, { "docid": "01bf2ddd4a0b0260e14a961405617f7a", "score": "0.5897269", "text": "protected RMItem removeData(int id, String key) {\n synchronized(m_itemHT) {\n return (RMItem)m_itemHT.remove(key);\n }\n }", "title": "" }, { "docid": "7f57b0b33ad52b25e1206bc1736c0ac7", "score": "0.5890963", "text": "public synchronized void remove(int p_id) {\n\t\tif (itemsMap.containsKey(p_id)) {\n\t\t\tCart scItem = itemsMap.get(p_id);\n\t\t\tif (scItem.getQuantity() <= 1) {\n\t\t\t\titemsMap.remove(p_id);\n\t\t\t}\n\t\t\tnumberOfItems--;\n\t\t}\n\t}", "title": "" }, { "docid": "d25990d13ebfccbcb1b3df22453909d6", "score": "0.58900464", "text": "public abstract Object remove(Object key);", "title": "" }, { "docid": "344ff15892b1eab8abb076e7b1fd64f1", "score": "0.58888584", "text": "@Override\r\n\tpublic T pop() {\n\t\tObject temp = a[count-1];\r\n\t\ta[count-1] = null;\r\n\t\tcount--;\r\n\t\treturn (T)temp;\r\n\t}", "title": "" }, { "docid": "57791451c4c19b42bf2452dd701cc2c5", "score": "0.5888692", "text": "public void pop() {\n if(!empty()) {\n getLast(true);\n }\n return;\n }", "title": "" }, { "docid": "c2c67ced135b7c7ab96bf84efc166cc0", "score": "0.5873311", "text": "public void remove_from_basket(MenuItem item){\n basket.remove(item);\n }", "title": "" }, { "docid": "cfb1472a0340196d4448b08031dd456c", "score": "0.58693033", "text": "public MMapValue remove(Object key) throws TypeException {\n\tProbeAttributeType keyType = ProbeAttributeType.lookup(key);\n\n\tif (keyType.equals(this.keyType)) {\n return (theMap.remove(new DefaultMMapValue(key)));\n\t} else {\n\t throw new TypeException(\"Object key: '\" + key +\n\t\t\t\t \"' cannot be of type \" + keyType +\n\t\t\t\t \" in MMap of type \" + this.keyType + \" -> \" + this.valueType);\n\t}\n\n }", "title": "" }, { "docid": "b1a7c0f91f0fc374ce7ba5b2cf1eb0ae", "score": "0.58639175", "text": "@Override\n\tpublic boolean remove(Object e) {\n\t\tObject res\t=\tHashMap.replace((T)e,HashMap.get(e)-1);\n\t\tif (res == null )\n\t\t\t\treturn false;\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "84891e4577e6600ba376d0e2dbaf5a36", "score": "0.5857746", "text": "@Override\n\tpublic Object remove(Object key) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "912f9784b89e01e1f9db002c2c395c8b", "score": "0.58574504", "text": "JSONValue<?> remove(int index);", "title": "" }, { "docid": "b832b292766d715053d0e56c1d534355", "score": "0.5842105", "text": "public Link pop(){\n return list.deleteFirst();\n }", "title": "" }, { "docid": "2712a0555ebe5b1fe23d1c9b11b7f96a", "score": "0.58338094", "text": "public Object remove(Object key) {\r\n\t\tif (key == null)\r\n\t\t\tthrow new NullPointerException(\"key may not be null\");\r\n\r\n\t\tif (key instanceof URI) {\r\n\t\t\ttry {\r\n\t\t\t\tObject oldValue = FORD.get(this.id, (URI) key, Object.class);\r\n\t\t\t\tFORD.removeAll(this.id, (URI) key);\r\n\t\t\t\treturn oldValue;\r\n\t\t\t} catch (RDFDataException e) {\r\n\t\t\t\t// TODO: is this what users want?\r\n\t\t\t\tthrow new RuntimeException(e);\r\n\t\t\t}\r\n\t\t} else\r\n\t\t\tthrow new ClassCastException(\"an instance of \" + key.getClass()\r\n\t\t\t\t\t+ \" can never be contained in this map, only URIs can\");\r\n\t}", "title": "" }, { "docid": "8b1aa6590d13d6ea093651f8d1d62212", "score": "0.5828723", "text": "public void remove(E value){\n if(map.remove(value) != null)size--;\n }", "title": "" }, { "docid": "af757f5a658d6f7a354009e318faf12d", "score": "0.5818222", "text": "public void removeItem() {\n this.roomItem = null;\n }", "title": "" }, { "docid": "99a74b36bbfd30ab6ee0ae414633badc", "score": "0.581607", "text": "R pop();", "title": "" }, { "docid": "beb63bb2dbd2fb9bf940f0c9c4e1c09c", "score": "0.58095497", "text": "public void unsetSuppliedItem()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(SUPPLIEDITEM$8, 0);\n }\n }", "title": "" }, { "docid": "39db9cb47913fe01640f3a4106b2043b", "score": "0.5809232", "text": "@Override\n public E pop() {\n E item = peek();\n top = top.next;\n return item;\n }", "title": "" }, { "docid": "2e89ae69ff16e84db05c9854b44a8a32", "score": "0.58091056", "text": "public Object pop() {\n\t\tif(!isEmpty()) { //if the arraylist is not emptyu\n\t\t\tObject obj = list.get(list.size()-1);\n\t\t\tlist.remove(list.size()-1);\n\t\t\treturn obj;\n\t\t}else {\n\t\t\tSystem.out.println(\"the dynamic list is null\");\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "4ecab800469d0b52f2fae409bd8e7519", "score": "0.58027625", "text": "V remove(Object key);", "title": "" }, { "docid": "9a1226dab6b272ed2f751b71470252b2", "score": "0.5801469", "text": "public T pop() {\n\t\t\r\n\t\tif( isEmpty( ) ) \r\n\t\t\treturn null; \r\n\t\t\r\n\t\tT x = peek(); \r\n\t\tif(x != null){\r\n\t\t\titems[top] = null;\r\n\t\t\ttop--; \r\n\t\t\tsize--;\r\n\t\t}\r\n\t\treturn x;\r\n\t}", "title": "" }, { "docid": "70cdbf8342ad7a750b69dea93bb31192", "score": "0.58003646", "text": "public T pop() {\n T tmp = this.get();\n this.clear();\n assert(this.isEmpty() == true);\n return tmp;\n }", "title": "" }, { "docid": "6d1269877c6271447b9e4498162077df", "score": "0.57966274", "text": "public T pop() \n\tthrows NoSuchElementException {\n\t\tif (items.isEmpty()) {\n\t\t\t//return null;\n\t\t\tthrow new NoSuchElementException(\"can't pop from an empty stack\");\n\t\t}\n\t\treturn items.remove(items.size()-1);\n\t}", "title": "" }, { "docid": "f9ceee506f4f28dc9d54f12eccde4e9c", "score": "0.5795518", "text": "public T pop() {\r\n return remove(size() - 1);\r\n }", "title": "" }, { "docid": "f54ce44857fabb09ea0cf38a1a1add6f", "score": "0.578179", "text": "public Item removeItem(String name){\n return (Item) items.remove(name);\n }", "title": "" }, { "docid": "013e2528ac60c598d18ad2f57a126d62", "score": "0.5779892", "text": "protected RMItem removeData(int id, String key) {\n synchronized(m_itemHT) {\n return (RMItem) m_itemHT.remove(key);\n }\n }", "title": "" }, { "docid": "594428ab732401935ab5df39726ca1a6", "score": "0.57792836", "text": "@Override\n\tpublic E pop() {\n\t\treturn stack.remove(size()-1);\n\n\t}", "title": "" }, { "docid": "9bb2833d4f5f499b5860b7f1b6204927", "score": "0.57783526", "text": "@Override\n\tpublic Object removeItem(int index) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "26f7483a02b982e75d28f1f969ec9abb", "score": "0.57779443", "text": "public V remove(Object key)\n\t{\n\t\tV value = forwardMap.remove(key);\n\t\treverseMap.remove(value);\n\t\treturn value;\n\t}", "title": "" }, { "docid": "f769b3f1a30785deede1b0b82c861c2e", "score": "0.5770254", "text": "public void removeitem () {\n\n }", "title": "" }, { "docid": "19d41fc8f9e453f418587df35f7876f1", "score": "0.576869", "text": "public void remove(Item item) {\n\n\t\t}", "title": "" }, { "docid": "1d6bcf7499469951d33922aba101521b", "score": "0.57563347", "text": "public Object remove(Object key)\n {\n ComparableAssociation target = \n new ComparableAssociation((Comparable)key,null);\n target = (ComparableAssociation)data.remove(target);\n if (target == null) return null;\n else return target.getValue();\n }", "title": "" }, { "docid": "9bbdec7d99b1848c7d0e09de39aac5d7", "score": "0.5754002", "text": "public void pop(){\n\t\tif(first == null)\n\t\t\tthrow new IllegalArgumentException(\"Cannot pop from empty list\");\n\t\telse\n\t\t\tfirst = first.getNext();\n\t}", "title": "" }, { "docid": "6530577c2eb9f20ef640e3404cf79eaa", "score": "0.574682", "text": "public V remove(K key) {\n\t\t// TODO Complete this!\n\t\tint index = hashCode(key);\n\t\tif (myMap.get(index) == null) {\n\t\t\treturn null;\n\t\t}\n\t\tV rtnValue = get(key);\n\t\tLinkedList<KVPair> list = myMap.get(index);\n\t\tfor (KVPair pair : list) {\n\t\t\tif (pair.key.equals(key)) {\n\t\t\t\tlist.remove(pair);\n\t\t\t\tsize--;\n\t\t\t\treturn rtnValue;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "c929ebc9c76610921ec4b25a4ab594f5", "score": "0.5740064", "text": "public String pop()\n\t{\n\t\tif(head == null)\n\t\t{\n\t\t\tthrow new IllegalStateException();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString returnItem = head.item;\n\t\t\thead = head.link;\n\t\t\treturn returnItem;\n\t\t}\n\t}", "title": "" }, { "docid": "c90cae125acc051aca074db3e8681722", "score": "0.5737529", "text": "public void onPop() throws IOException {\n if (this.mode) {\n throw new ProtocolException(\"Incomplete JSON map, expected a value\");\n }\n }", "title": "" }, { "docid": "54b46867c4567e55037e0b57b7a41135", "score": "0.57374936", "text": "public node popItem() {\n node temp = head;\n head = head.next;\n count--;\n return temp;\n }", "title": "" }, { "docid": "77c9b58ec6f18d827bea0ec2641234f8", "score": "0.573737", "text": "public T pop() {\n\t\treturn linkedList.pop();\n\t}", "title": "" }, { "docid": "d8db0d3d68c3186948387665031e6e44", "score": "0.57359815", "text": "protected void remove(Object oPrev)\n {\n SegmentedHashMap.this.remove(((Map.Entry) oPrev).getKey());\n }", "title": "" }, { "docid": "4e502d1b6837fda7620ab6c041428ce7", "score": "0.5732072", "text": "public E pop() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "8df57629e89740d4e59462c2ad0ad6b0", "score": "0.5723308", "text": "public Item pop() {\n if (isEmpty()) throw new NoSuchElementException(\"Stack underflow\");\n Item item = first.item; // save item to return\n first = first.next; // delete first node\n N--;\n return item; // return the saved item\n }", "title": "" }, { "docid": "795935f7f690708bf7de013e2d0a011d", "score": "0.5719634", "text": "@Override\r\n public E remove() {\r\n E product = data.get(0);\r\n data.remove(product);\r\n return product;\r\n }", "title": "" }, { "docid": "780d72865a180d34766d7d5b0c74817e", "score": "0.571431", "text": "public void pop() {\n\t\tif (topIndex > -1) {\n\t\t\ttopIndex--;\n\t\t}\n\t}", "title": "" }, { "docid": "e1e72d32faaf7212e73dbb499f75894f", "score": "0.5710947", "text": "public E pop() {\n return list.remove(0);\n }", "title": "" }, { "docid": "138920824c1b968a6d20a1ebdc5d4822", "score": "0.57097214", "text": "@Override\r\n public Object pop() {\r\n Object poppedObjected;\r\n if(isEmpty()) {\r\n throw new EmptyStackException();\r\n }\r\n poppedObjected = top.getData();\r\n top = top.getNext();\r\n return poppedObjected;\r\n }", "title": "" } ]
4f56f192a0810c5867f5312bae23d82c
Create a dialog with a parent frame and its modality set by the user.
[ { "docid": "efbd8a1cb0ca08947bfc9606be4345a9", "score": "0.6865008", "text": "protected AbstractDefaultDialog(Frame owner, boolean modal){\n\t\tsuper();\n\t\tthis.owner = owner;\n\t\tdialog = createDialog(owner, modal);\n\t}", "title": "" } ]
[ { "docid": "ef90c4cc2370ca7fe266706e682d5684", "score": "0.7603075", "text": "private JDialog createDialog(Frame owner, boolean modal){\n\t\tJDialog dialog = new JDialog(owner);\n\t\tdialog.setModal(modal);\n\t\tdialog.setTitle(createTitleBarText());\n\t\tdialog.setIconImage(createIcon().getImage());\n\t\tdialog.setContentPane(new JPanel(new MigLayout()));\n\t\t\n\t\treturn dialog;\n\t}", "title": "" }, { "docid": "e2ad4648c65019f362615ce835dd53bf", "score": "0.7542408", "text": "public JDialog makeDialog( JFrame parent, String title, boolean modal) {\n return new Dialog( frame, title, modal);\n }", "title": "" }, { "docid": "6b962cbafd8020187082e142cdcec7e9", "score": "0.71464276", "text": "public NewJDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "title": "" }, { "docid": "74aeecab3e118c0dac345e3bb4f12a8c", "score": "0.7137439", "text": "public ParolesDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "title": "" }, { "docid": "630a16c0a6b9092f564350ddf78bc8a2", "score": "0.7042588", "text": "private ShowReceiverDialog(MainFrame parent, boolean modal) {\r\n this((JFrame)parent, modal);\r\n this.parent = parent;\r\n }", "title": "" }, { "docid": "dd3b8d4747f7d7095a27747dd90b9bc2", "score": "0.70082444", "text": "public NewAnimationDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n initialize();\n\n }", "title": "" }, { "docid": "fb6a553a7a297deea85bc90492c6a2fe", "score": "0.69989645", "text": "public WorkspaceDialog(javax.swing.JFrame parent, boolean modal) {\n super(parent, modal);\n this.parent = parent;\n initComponents();\n prepareComponents();\n }", "title": "" }, { "docid": "9bb762c3c1b6e723ef45c54d16ff2d4f", "score": "0.6994995", "text": "public ScriptDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "title": "" }, { "docid": "f31c9ed83ea116a441664c50f79a77f6", "score": "0.69702077", "text": "public caja_crear(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n this.setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "e4b26edfc582126d0354b2caec073c51", "score": "0.69607735", "text": "public VisibleDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "title": "" }, { "docid": "2f96757bc796d6942c6ec7e7b0ab369c", "score": "0.6883696", "text": "public ComposerDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "title": "" }, { "docid": "c5539d74f12ea6d80b24a6611ecdaae3", "score": "0.67717135", "text": "public ManualFightDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n this.setLocationRelativeTo(null);\n this.getRootPane().setDefaultButton(okButton);\n }", "title": "" }, { "docid": "fc610e4904223530ab68516eee84d8d0", "score": "0.67560333", "text": "public EditarFornecedorDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n this.setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "0947d729b9cab388e3610929a61a2a0b", "score": "0.6720824", "text": "public HostRenderDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "title": "" }, { "docid": "17cbc2557f8bee797c993eb77c73339e", "score": "0.6706584", "text": "public JDialogAuthentification(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n\n setTitle(\"Authentification\");\n setLocationRelativeTo(null);\n\n setVisible(true);\n\n }", "title": "" }, { "docid": "c5f3bdd85b794de23d93f2b37215c607", "score": "0.66982317", "text": "public Aide(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "title": "" }, { "docid": "bab110e9f984e38ddeb7133d50a5fd31", "score": "0.6692099", "text": "public JDialog23(java.awt.Frame parent, boolean modal, String user) {\n super(parent, modal);\n this.user=user;\n initComponents();\n }", "title": "" }, { "docid": "74b4389a768e9f9bee58357e41ce1157", "score": "0.6672223", "text": "public AddIncidentDialog(Frame parent) {\n super(parent);\n\n setTitle(\"Add New Incidents\");\n setModal(true);\n \n setSize(new Dimension(600, 350));\n setResizable(false);\n \n initComponents(); \n }", "title": "" }, { "docid": "01644e468103b92f17681ea16c5e5f84", "score": "0.66657186", "text": "protected Control createDialogArea(Composite parent) {\n\t\tComposite composite = new Composite(parent, SWT.NONE);\n\t\tPOPUP_LAYOUT_FACTORY.applyTo(composite);\n\t\tLAYOUTDATA_GRAB_BOTH.applyTo(composite);\n\t\treturn composite;\n\t}", "title": "" }, { "docid": "a3d17f3a14302665baedc927d506f847", "score": "0.66656345", "text": "public dlgAuthentication(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "title": "" }, { "docid": "161a8ce93fd819f74a728c9ee7c5f19e", "score": "0.6662952", "text": "public jdHabitacion(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n this.setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "b2b898f931f02f21262b7eed592f12e1", "score": "0.66571337", "text": "public JDSobre(java.awt.Frame parent, boolean modal) {\n super(parent, modal); \n }", "title": "" }, { "docid": "717988864fce53684fadc84b886ed5a3", "score": "0.665128", "text": "public InboxDialogue(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "title": "" }, { "docid": "736506e07690dd2f517eec230b715c78", "score": "0.6634627", "text": "public PhotoViewDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "title": "" }, { "docid": "cc02f1c1aacab2a04b82a54a4f8ae4b2", "score": "0.659611", "text": "public GphWorkingDlg(JFrame parent) {\r\n \r\n \tsuper(parent,true);\r\n\t\towner = parent;\r\n\t\tsetDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);\r\n\t\t\r\n\t\taddWindowListener(new WindowAdapter() {\r\n \t\tpublic void windowClosing(WindowEvent we) {\r\n \t\t//setTitle(\"Thwarted user attempt to close window.\");\r\n \t\t}\r\n\t\t});\r\n\r\n\t\t\r\n\t\tsetSize(300,120);\r\n\t\tcenterWindow();\r\n\t\tbuildDlg();\r\n\t\tsetResizable(false);\r\n\t\tbtnCancel.addActionListener(this);\r\n\t\t//setVisible(true);\r\n }", "title": "" }, { "docid": "dd833113b3faf0e2097da33d39cc89f8", "score": "0.6586465", "text": "public VentanaAgregarAvanceProyeco(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "title": "" }, { "docid": "c781370fb1242ae17cfdbc866e33e7c7", "score": "0.65850514", "text": "public GenerateDialog() {\n setContentPane(contentPane);\n setModal(true);\n getRootPane().setDefaultButton(buttonOK);\n\n buttonOK.addActionListener(e -> onOK());\n\n buttonCancel.addActionListener(e -> onCancel());\n\n // call onCancel() when cross is clicked\n setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);\n addWindowListener(new WindowAdapter() {\n public void windowClosing(final WindowEvent e) {\n onCancel();\n }\n });\n\n // call onCancel() on ESCAPE\n contentPane.registerKeyboardAction(e -> onCancel(),\n KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);\n }", "title": "" }, { "docid": "098f04b0dfedce35d8618e3292839a16", "score": "0.6584935", "text": "protected GridCreationDialog(JFrame parent, boolean promptForGridChoice)\n {\n this.promptForGridChoice = promptForGridChoice;\n dialog = new JDialog(parent, \"Create new grid\", true);\n\n JPanel myControls = new JPanel();\n myControls.setLayout(new BoxLayout(myControls, BoxLayout.Y_AXIS));\n\n // Add grid choice drop-down menu, if appropriate.\n if ( promptForGridChoice )\n makeGridChoiceMenu(myControls);\n\n // Make dimensions choice panel.\n makeDimensionsFields(myControls);\n\n // Add Create/Cancel buttons.\n JOptionPane optPane = new JOptionPane(myControls, JOptionPane.QUESTION_MESSAGE);\n optButtons = new JButton[] { new JButton(\"Create\"), new JButton(\"Cancel\")};\n optPane.setOptions(optButtons);\n optPane.setInitialValue(optButtons[0]);\n optButtons[0].addActionListener( new ActionListener() {\n public void actionPerformed(ActionEvent e) { okClicked(); }});\n optButtons[1].addActionListener( new ActionListener() { \n public void actionPerformed(ActionEvent e) { cancelClicked(); }});\n\n dialog.setContentPane(optPane);\n dialog.pack();\n dialog.setResizable(false);\n }", "title": "" }, { "docid": "f0025e74693c9ad1c5892b13a13d30b0", "score": "0.65793484", "text": "public Prikaz(java.awt.Frame parent, boolean modal) {\n initComponents();\n }", "title": "" }, { "docid": "16e89e752bf1f3532184de5224b8c718", "score": "0.6558954", "text": "public WelcomeDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n try {\n try {\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }catch (Exception ex) {\n ex.printStackTrace();\n }\n\n initComponents();\n this.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);\n this.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n System.exit(0);\n }\n });\n }", "title": "" }, { "docid": "be91268e996f5621207e1462fe04eb64", "score": "0.6558765", "text": "public StartupDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "title": "" }, { "docid": "31a9d47eaa09f7ca759465227a7332ed", "score": "0.65461975", "text": "public AboutBox(java.awt.Frame parent) {\n super(parent);\n initComponents();\n setLocationRelativeTo(parent);\n setModal(true);\n setVisible(true);\n }", "title": "" }, { "docid": "5aa2e486ec8d50d6c73ba75d27b415fd", "score": "0.6541822", "text": "public DatabaseManagerDialog(Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "title": "" }, { "docid": "7744fe47b252302d5d4bd2781b3ea886", "score": "0.6538643", "text": "public NewMenu(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "title": "" }, { "docid": "fb910c0c7d3d72baa8a5e99e393ad98e", "score": "0.65330666", "text": "public static GridCreationDialog makeGridChoiceDialog(JFrame parent)\n {\n GridCreationDialog d = new GridCreationDialog(parent, true);\n return d;\n }", "title": "" }, { "docid": "e8698aedd7e2bcd64a97b8274848a4a7", "score": "0.6509463", "text": "public LancDesp(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "title": "" }, { "docid": "924ed7bcc84a5929bec5be4a4fd7d42a", "score": "0.65079075", "text": "private static JDialog createDialog(String title, JOptionPane optionPane) {\r\n /*JFrame appFrame = (Toolkit.getApplicationWindow() != null)\r\n ? Toolkit.getApplicationWindow().getFrame()\r\n : null;*/\r\n JDialog dialog = optionPane.createDialog(getDialogParent(), title);\r\n dialog.setResizable(false);\r\n return dialog;\r\n }", "title": "" }, { "docid": "060ba6be6eb9f3ea62789b5f77a84430", "score": "0.6507387", "text": "public ChildDialog(Main parent, boolean modal) {\n super(parent, modal);\n console = parent;\n initComponents();\n }", "title": "" }, { "docid": "ace2c1e2fadf5826a9110a167611d94e", "score": "0.6506263", "text": "public void showOpenDialog(JFrame parent) {\n Simulator.showOpenDialog(parent);\n }", "title": "" }, { "docid": "55d91610198065aa9e9983a00f6110b6", "score": "0.6505651", "text": "public ConfigureDetectorsDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n postInitComponents();\n }", "title": "" }, { "docid": "0aa99693c130423fcea73836af6e7137", "score": "0.6502575", "text": "public PanelDisplayDialog(java.awt.Frame parent, boolean modal, JPanel content) {\n super(parent, modal);\n initComponents();\n //LayoutManager layout = new FlowLayout(FlowLayout.LEADING); \n LayoutManager layout = new GridLayout(1,1);\n this.contentPanel.setLayout(layout);\n this.contentPanel.add(content);\n pack();\n this.setLocationRelativeTo(parent);\n }", "title": "" }, { "docid": "950eff9756ac957c697d3bbd6f369771", "score": "0.6488096", "text": "private PluginManagerDialog() {\n super(DialogUtils.getFrontWindow(), \"Plugin Manager\", Dialog.ModalityType.APPLICATION_MODAL);\n initComponents();\n ClientMiscUtils.registerCancelButton(closeButton);\n setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n setLocationRelativeTo(getParent());\n setResizable(false);\n browser = new PluginBrowser();\n browserPanel.add(new JScrollPane(browser), BorderLayout.CENTER);\n }", "title": "" }, { "docid": "99269ba52b8cafc6ce688b61d707d0f8", "score": "0.6471929", "text": "public ImagemDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "title": "" }, { "docid": "fb7ecc37872329c2275f2cbf772b078b", "score": "0.6457009", "text": "public FED(java.awt.Frame parent, boolean modal) {\n super(parent, modal); \n initComponents();\n }", "title": "" }, { "docid": "53f3cd8522cfd771299d364092034f24", "score": "0.6447899", "text": "public V_Persona(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "title": "" }, { "docid": "e259157a29fe2eae997e4aebc7760e2a", "score": "0.64457566", "text": "public SDHMInfoDialog(java.awt.Frame parent, boolean modal) {\r\n super(parent, modal);\r\n initComponents();\r\n }", "title": "" }, { "docid": "ca46592fad1476e07180444bcc13dbd7", "score": "0.6444368", "text": "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\tObject ob = arg0.getSource();\n\t\t\tif(ob == btnHi){\n\t\t\t\tJFrame jf = new jframe2();\n\t\t\t\tJDialog dialog = new JDialog(jf);\n\t\t dialog.setTitle(\"Dialog created without extending JDialog class.\");\n\t\t dialog.setSize(new Dimension(500, 500));\n\t\t dialog.setLocationRelativeTo(jf);\n\t\t dialog.setModal(true);\n\t\t dialog.setVisible(true);\n\t\t\t\t//jf.setSize(500, 500);\n\t\t\t\t//jf.setVisible(true);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "bd47397ea1e2b64fb3b10bc87740fe7f", "score": "0.64379615", "text": "public Mesas(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n this.setTitle(\"Mikhuna\");\n this.setSize(1000,600);\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "d21ccc71d8f67028e2ca9bf79530d330", "score": "0.6431655", "text": "public DlgMerk(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "title": "" }, { "docid": "2d2e082fe0b40cd7088717aadb1e5889", "score": "0.64302886", "text": "public MainGUIView(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "title": "" }, { "docid": "f2cfe2344e58f4bb90d1c33df140dc34", "score": "0.6418153", "text": "public TelaAtendente(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "title": "" }, { "docid": "f413a3c90e092d58c92c7f66b1222921", "score": "0.6399537", "text": "public VelocityDlg(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n\n }", "title": "" }, { "docid": "2dad34febe49cbecf0b7e34a6efdf779", "score": "0.6385882", "text": "public static JDialog createDialog(String title, boolean modal) {\r\n final JFrame f = (JFrame) getDialogParent();\r\n JDialog dialog = new JDialog(f, title, modal);\r\n return dialog;\r\n }", "title": "" }, { "docid": "271d83d0f05ac46c0a5e3bce1516d28d", "score": "0.6384755", "text": "public ProdutoInserirJDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n salao=Salao.getInstance();\n }", "title": "" }, { "docid": "1fa042f3d84c5f4fa60d48d967f80a82", "score": "0.6384709", "text": "public DiceFrame(java.awt.Frame parent, boolean modal) {\n\t\tsuper(parent, modal);\n\t\tinitComponents();\n\t}", "title": "" }, { "docid": "a0004aecc1ed2ba5fcc79c2c98ef7e3d", "score": "0.6383796", "text": "public TelaUsuario(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "title": "" }, { "docid": "64458e96ff598e0d91ed52d12459426c", "score": "0.637827", "text": "public sifreDegistir(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n int width = getWidth();\n int height = getHeight();\n Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();\n int x = (screen.width - width) / 2;\n int y = (screen.height - height) / 2;\n setBounds(x, y, width, height);\n }", "title": "" }, { "docid": "a3ece95a03f25ddc47b11f53173bc5a8", "score": "0.637604", "text": "public EditMovieDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n setLocationRelativeTo(null);\n addActionListener();\n homeFrm = (HomeFrm) parent;\n }", "title": "" }, { "docid": "8c61c13925007c824b99f9544cd301cc", "score": "0.6362906", "text": "private void makeDialogue() {\n editTimes.setModal(true);\n editTimes.setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n editTimes.setPreferredSize(new Dimension(YearProcess.WIDTH, YearProcess.HEIGHT));\n ((JPanel) getContentPane()).setBorder(new EmptyBorder(13, 13, 13, 13));\n editTimes.setLayout(new GridBagLayout());\n editTimes.setResizable(true);\n initialize();\n editTimes.pack();\n editTimes.setLocationRelativeTo(null);\n editTimes.setVisible(true);\n }", "title": "" }, { "docid": "a92b480b4f46181f95d4b61133f98671", "score": "0.6359311", "text": "private static Window createDefaultDialogParent() {\r\n\r\n if (defaultDialogParent == null) {\r\n // Create a dummy frame with normal app title and icon:\r\n defaultDialogParent = new JFrame(AppEnvironment.getTitle());\r\n defaultDialogParent.setIconImage(\r\n AppEnvironment.getIcon(AppEnvironment.appIcon).getImage());\r\n\r\n // Center it:\r\n Dimension screen =\r\n java.awt.Toolkit.getDefaultToolkit().getScreenSize();\r\n Dimension size = defaultDialogParent.getSize();\r\n defaultDialogParent.setLocation(\r\n (screen.width + size.width) / 2,\r\n (screen.height + size.height) / 2);\r\n }\r\n\r\n // Iconify it before making it visible\r\n defaultDialogParent.setState(Frame.ICONIFIED);\r\n\r\n // Make it visible so icon will be active:\r\n defaultDialogParent.setVisible(true);\r\n\r\n // A modal dialog will be shown on top of the frame\r\n // and the frame will be disposed when the dialog is disposed,\r\n // but it is important that the user never sees it, si it must be minimized.\r\n\r\n defaultDialogParentInvocations++;\r\n return defaultDialogParent;\r\n }", "title": "" }, { "docid": "ad2bca4d0ada6f9712ae284b19156c0f", "score": "0.63572556", "text": "public void showNewWizard(JFrame owner)\n\t{\n\t\tWizard wizard = new NotifyingCompositeWizard(owner);\n\n\t\tif (modal) {\n\t\t\twizard.showModalDialog();\n\t\t} else {\n\t\t\twizard.showDialog();\n\t\t}\n\t}", "title": "" }, { "docid": "2a1daeddfc96d4a67ca1695da365f58d", "score": "0.63546056", "text": "public frmPEE(java.awt.Frame parent, boolean modal)\n {\n super(parent, modal);\n initComponents();\n }", "title": "" }, { "docid": "a06f8a499ef92412e3bdd425e2d9f7c9", "score": "0.63485825", "text": "public AddClientDocFrame(java.awt.Frame parent, boolean modal) {\n \n super(parent, modal);\n setTitle(\"AddClientDocFrame\");\n initComponents();\n this.setIconImage(new ImageIcon(\"legal.gif\").getImage());\n // centre the user interface on the screen\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n setLocation((screenSize.width - getWidth()) / 2,\n (screenSize.height - getHeight()) / 2);\n }", "title": "" }, { "docid": "70e2df6b6cd76e30815ba51f587681aa", "score": "0.63445425", "text": "public static GridCreationDialog makeDimensionsDialog(JFrame parent)\n {\n GridCreationDialog d = new GridCreationDialog(parent, false);\n return d;\n }", "title": "" }, { "docid": "744570cb74929d90c57a9b26f1cfd8b6", "score": "0.6340385", "text": "public CadastrarVeiculoView(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n this.setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "112b24db697d7c24cc9cbbf056380778", "score": "0.6340159", "text": "public frmNMFarmacia(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "title": "" }, { "docid": "70a9b6fc78e546eb363c18043e0a5521", "score": "0.63314754", "text": "public elegir_ultrasonido(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n AWTUtilities.setOpaque(this, false);\n Ubicar(0);\n }", "title": "" }, { "docid": "ea6c03c886f4ee81a6ad5580f6972a3d", "score": "0.6331008", "text": "public CadastrarCliente(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n this.setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "c89ccdb0217343828d2e094c919a1edf", "score": "0.63157123", "text": "public DepositForm(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "title": "" }, { "docid": "a6dcfbd98c9afc1aa33ff4d0b79ab7e3", "score": "0.6315387", "text": "public QuanLyKhachHangTT(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n this.init();\n }", "title": "" }, { "docid": "de4f1e8b3db42f7a00bb2c858706c371", "score": "0.6313652", "text": "public TelaBuscaPaciente(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n setLocationRelativeTo(null);\n\n }", "title": "" }, { "docid": "1ef0e77ee497282771f9842e5f1f6e01", "score": "0.6309369", "text": "public AddUserToProjectDialog(Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n center();\n }", "title": "" }, { "docid": "b3fa7a33145652ab05e352e7f19988e8", "score": "0.6304158", "text": "public IUCadastroDepartamento(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n msgLabel.setVisible(false);\n }", "title": "" }, { "docid": "f4ea963d16051d4375edbebe4018ea13", "score": "0.62995577", "text": "public AddStatementDialog(JFrame parent, boolean modal) {\n\t\t\n\t\tsuper(parent, modal);\n\t\t//zobrazit dialog nad hlavnim oknem\n\t\tthis.setLocationRelativeTo(parent);\n\t\tthis.setLocation(this.getX() - 200, this.getY() - 200);\n\t\t\n\t\tokButtonClicked= false;\n\t\t//this.newStatementId= newStatementId;\n\t\tinitComponents();\n\t\t//vychozi oznaceni tlacitka Ok\n\t\tthis.getRootPane().setDefaultButton(okButton);\n\t}", "title": "" }, { "docid": "8153d6411dfd4b75f23134145eccdd21", "score": "0.62980556", "text": "public Nouveau(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n this.getContentPane().setBackground(Color.white);\n }", "title": "" }, { "docid": "442091919fb4bb39e2dab55db6c68f51", "score": "0.6291314", "text": "public SaveDialod(java.awt.Frame parent, boolean modal) {\r\n super(parent, modal);\r\n initComponents();\r\n }", "title": "" }, { "docid": "4437ec927f64cba4fa9dbd0ba12a341e", "score": "0.6288932", "text": "public PlayersDialog(java.awt.Frame parent, boolean modal) {\n\t\tsuper(parent, modal);\n\t\tinitComponents();\n\t}", "title": "" }, { "docid": "167dfa5a63072391869f1cde594a7132", "score": "0.6275293", "text": "public DialogCreatePerson(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n personModel = new ModelCreatePerson();\n personModel.setName(\"\");\n personModel.setRole(\"Spectator\");\n okay = false;\n initComponents();\n\n personModel.setUpdater(new UIUpdater() {\n\n @Override\n public void updateUI(String partToUpdate) {\n switch (partToUpdate) {\n case \"Message\":\n jLabelMsg.setText(personModel.getMessage());\n break;\n default:\n assert false;\n break;\n }\n }\n });\n jButtonOk.setEnabled(personModel.isValid());\n }", "title": "" }, { "docid": "ae9774e056e52f2e99a642ee71d5b172", "score": "0.62748474", "text": "public NouveauCompteUtil(java.awt.Frame parent, boolean modal) {\n \n super(parent, modal);\n getContentPane().setBackground(Color.white);\n initComponents();\n }", "title": "" }, { "docid": "0d1e5c2bf8b6d5df980f021e5b1f896d", "score": "0.62679803", "text": "protected menuDialog(JFrame parent) {\r\n\t\t\tsuper(parent, \"Order ID: \" + order.getOrderID());\r\n\t\t\tsetLayout(new FlowLayout());\r\n\t\t\tbuttonListener buttonPressed = new buttonListener();\r\n\t\t\taddMeal.addActionListener(buttonPressed);\r\n\t\t\taddSubscription.addActionListener(buttonPressed);\r\n\t\t\tviewOrder.addActionListener(buttonPressed);\r\n\t\t\tadd(addMeal);\r\n\t\t\tadd(addSubscription);\r\n\t\t\tadd(viewOrder);\r\n\t\t\tpack();\r\n\t\t}", "title": "" }, { "docid": "0dfd74cb4b505e919bbf43337b75637f", "score": "0.6264741", "text": "public DialogChangedTutor() {\n super();\n initComponents();\n setBackground(java.awt.Color.WHITE);\n setModal(true);\n }", "title": "" }, { "docid": "ba6e6c7b81ad294ce9f2a265df10929e", "score": "0.6264359", "text": "public FormularioRegistrarCliente(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n this.setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "220035f4cd8e70a05369b8ad7bea29e6", "score": "0.62607324", "text": "public CreerDept(java.awt.Frame parent, boolean modal) {\n\t\tsuper(parent, modal);\n\t\tinitComponents();\n\t}", "title": "" }, { "docid": "0eda78b133201c96b655a9b3f4d97a72", "score": "0.62582976", "text": "public AddProcDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "title": "" }, { "docid": "7a2e58de318653eec9fd2085c908121a", "score": "0.6248203", "text": "@Override\n\t\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\t\treturn mDialog;\n\t\t}", "title": "" }, { "docid": "7a2e58de318653eec9fd2085c908121a", "score": "0.6248203", "text": "@Override\n\t\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\t\treturn mDialog;\n\t\t}", "title": "" }, { "docid": "7a2e58de318653eec9fd2085c908121a", "score": "0.6248203", "text": "@Override\n\t\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\t\treturn mDialog;\n\t\t}", "title": "" }, { "docid": "897067bc8e0774798d0099b5c8ba1b01", "score": "0.6226117", "text": "public NotaForm(java.awt.Frame parent, boolean modal) {\n\t\tsuper(parent, modal);\n\t\tinitComponents();\n\t}", "title": "" }, { "docid": "f8ee79d42757f32f431dc9e6832fa97a", "score": "0.6216586", "text": "public crearPaquete(java.awt.Frame parent, boolean modal, Casillero casillero) {\r\n super(parent, modal);\r\n this.casillero = casillero;\r\n initComponents();\r\n }", "title": "" }, { "docid": "fd6cf4e9a9367defc9de61cdbede0e28", "score": "0.62143797", "text": "public SobreOSistema(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "title": "" }, { "docid": "2be7495e1c9a0ae83d4cbab349a1fade", "score": "0.6203227", "text": "public SignInDialog(JFrame frame) {\n\t\tsuper(frame, Dialog.ModalityType.APPLICATION_MODAL);\n\t\tinitGUI();\n\n\t\tsetVisible(true);\n\t\tsetModal(true);\n\t}", "title": "" }, { "docid": "bfb6088af742bb1f715099853baac6ea", "score": "0.6202663", "text": "private void createDialog(SetupWindow firstWindow) {\n\t\t_dialog = new JDialog();\n\t\t_dialog.setModal(true);\n\t \n\t\t// JDialog sizing seems to work differently with some Unix\n\t\t// systems, so we'll just make it resizable.\n\t\tif(!CommonUtils.isUnix())\n\t\t _dialog.setResizable(false);\n\t\t\n _dialog.addWindowListener(new WindowAdapter() {\n public void windowClosing(WindowEvent e) {\n cancelSetup();\n }\n });\n\n\t\t// set the layout of the content pane\n\t\tContainer container = _dialog.getContentPane();\n\t\tBoxLayout containerLayout = new BoxLayout(container, BoxLayout.Y_AXIS);\n container.setLayout(containerLayout);\n\n\t\t// create the main panel\n\t\tJPanel setupPanel = new JPanel();\n\t\tBoxLayout layout = new BoxLayout(setupPanel, BoxLayout.Y_AXIS);\n\t\tsetupPanel.setLayout(layout);\n\n\n\t\t// compare against a little bit less than the screen size,\n\t\t// as the screen size includes the taskbar\n Dimension d = new Dimension(SetupWindow.SETUP_WIDTH, \n\t\t\t\t\t\t\t\t\tSetupWindow.SETUP_HEIGHT);\n\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n _dialog.setLocation((screenSize.width-d.width)/2,\n\t\t\t\t\t\t\t(screenSize.height-d.height)/2);\n\n \t// create the setup buttons panel\n\t\t_setupButtons = new SetupButtons(this);\n\t\tsetupPanel.add(_setupWindowHolder);\n\t\tsetupPanel.add(Box.createVerticalStrut(17));\n\t\tsetupPanel.add(_setupButtons);\n\t\t\n show(firstWindow);\t\t\n\n\t\t// add the panel and make it visible\t\t\n\t\tcontainer.add(setupPanel);\n\n\t\t_dialog.pack();\n\t\t_dialog.toFront();\n\t\tSplashWindow.instance().toBack();\n\t\t_dialog.setVisible(true);\n\n\t}", "title": "" }, { "docid": "a914f82639d79504e4bf8f1903755a83", "score": "0.61944056", "text": "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(internal_message)\n .setPositiveButton(\"selected positive button\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n }\n })\n .setNegativeButton(\"selected negative button\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n }\n }).show();\n // Create the AlertDialog object and return it\n\n return builder.create();\n }", "title": "" }, { "docid": "d796b90fea79572f2cfdcbb1b9405344", "score": "0.6179604", "text": "private void setUpFrame ()\n {\n //window set up\n label.setSize (800, 565); \n frame.setSize (800, 600);\n frame.setLayout (null); \n frame.setResizable (false);\n frame.add (label);\n frame.setVisible (true);\n frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);\n \n //version 4.0 June 8 addition, sets the win/lose JDialog and instructions JDialog centered in the parent even when it is moved\n frame.addComponentListener(new ComponentAdapter()\n {\n public void componentMoved (ComponentEvent e)\n {\n if (rulesDialog != null)\n rulesDialog.setLocationRelativeTo (frame);\n if (endDialog != null) {\n endDialog.setLocationRelativeTo(frame);\n }\n }\n });\n }", "title": "" }, { "docid": "62d7cd70ac043ecd5495a4bd72c4738b", "score": "0.6170454", "text": "public BuscaForm(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "title": "" }, { "docid": "dfb59bcbe8102b5c43b7d075cd330d28", "score": "0.6163764", "text": "public MenuClaveCajero2(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n this.setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "2af1622d8c95370b832e3e927b2cd791", "score": "0.6162638", "text": "public LoadingOrganismsDialog(java.awt.Frame parent) {\n super(parent, true);\n initComponents();\n setLocationRelativeTo(parent);\n setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);\n }", "title": "" }, { "docid": "226b01a6d1bbb033439b753c158613d0", "score": "0.61623615", "text": "public EditActorsDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n init();\n }", "title": "" }, { "docid": "87417839ae6d764dca868f4ddadc1b7b", "score": "0.61572427", "text": "public Gui_leer_comandos(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "title": "" }, { "docid": "9b9953b041e07f7a77203f1796c92088", "score": "0.6155136", "text": "public Competicao(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n centralizar();\n }", "title": "" } ]
6a5e85797685ac03d24b5039c4c9775c
Show the effect selector
[ { "docid": "18168ab4af4fef9f73ee7df038b3fcfa", "score": "0.6138561", "text": "private void selectEffect() {\r\n\t\tAudioTrack track = getAudioTrack();\r\n\t\tif (track == null) return;\r\n\t\tAudioEffect effect = getAudioEffect();\r\n\t\tAudioEffect newEffect = EffectManager.chooseEffect(main.getGlobals(),\r\n\t\t\t\tchannelstrip, track, effect);\r\n\t\tif (effect != newEffect) {\r\n\t\t\tfor (AudioEffect e : track.getEffects()) {\r\n\t\t\t\te.exit();\r\n\t\t\t}\r\n\t\t\ttrack.clearEffects();\r\n\t\t\tif (newEffect != null) {\r\n\t\t\t\ttrack.addEffect(newEffect);\r\n\t\t\t}\r\n\t\t\tdisplayFX();\r\n\t\t}\r\n\t}", "title": "" } ]
[ { "docid": "b1378c228c2654ede6885b6fb2af97ba", "score": "0.72368413", "text": "public void displayFX() {\r\n\t\tAudioEffect effect = getAudioEffect();\r\n\t\tif (FXselect == null) return;\r\n\t\tif (effect != null) {\r\n\t\t\tFXselect.setText(effect.getShortName());\r\n\t\t\tFXsettings.setEnabled(effect.hasSettingsWindow());\r\n\t\t} else {\r\n\t\t\tFXselect.setText(EffectManager.EFFECT_NONE);\r\n\t\t\tFXsettings.setEnabled(true);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "927076ed43eb5a86116be47108d432fb", "score": "0.6758173", "text": "public final JQueryUI show(Effect effect) {\r\n\t\treturn show(effect.name());\r\n\t}", "title": "" }, { "docid": "623013544c0ba101a967687204cf974e", "score": "0.66075164", "text": "public final JQueryUI show(Effect effect,EffectOptions options) {\r\n\t\treturn show(effect.name(),options);\r\n\t}", "title": "" }, { "docid": "cb03d78c325de1f58beeade6f6876959", "score": "0.63460106", "text": "public final JQueryUI show(Effect effect,EffectOptions options,int duration) {\r\n\t\treturn show(effect.name(),options,duration);\r\n\t}", "title": "" }, { "docid": "5b83a5f36565e1b61bb4c0445dcb9b33", "score": "0.617797", "text": "public final JQueryUI show(Effect effect,EffectOptions options,Duration duration) {\r\n\t\treturn show(effect.name(),options,duration.name());\r\n\t}", "title": "" }, { "docid": "38a628e87376a3919536ae0c605dc315", "score": "0.6127563", "text": "public void show() {\n animate().scaleX(1.0f).scaleY(1.0f).setDuration(300).setInterpolator(new OvershootInterpolator()).start();\n }", "title": "" }, { "docid": "735cfbb95be502bea3ebe1c483d32b6f", "score": "0.6101446", "text": "public final JQueryUI show(Effect effect,EffectOptions options,int duration, ExecuteCurrentUIHandler callback){\r\n\t\treturn show(effect.name(),options,duration,callback);\r\n\t}", "title": "" }, { "docid": "2632240b715d0198c901148f96b54400", "score": "0.5904943", "text": "public void effect() {\r\n\t}", "title": "" }, { "docid": "d81b48187c7aba835d2a6c648c6bb536", "score": "0.5904335", "text": "public final JQueryUI show(Effect effect,EffectOptions options,Duration duration, ExecuteCurrentUIHandler callback){\r\n\t\treturn show(effect.name(),options,duration.name(),callback);\r\n\t}", "title": "" }, { "docid": "5354e23bcd712d121836e0707f3948b1", "score": "0.58653206", "text": "private void setupEffects() {\n // Set effect image for player selected Pokemon\n labelPokemon[2].setIcon(new ImageIcon(\"images/damage.png\"));\n labelPokemon[2].setBounds(0, 0, 720, 1000);\n subpanels[4].add(labelPokemon[2]);\n subpanels[4].setBounds(145, 320, 100, 100);\n subpanels[4].setOpaque(false);\n subpanels[4].setVisible(false);\n // Set effect image for opponent selected Pokemon\n labelPokemon[3].setIcon(new ImageIcon(\"images/useItem.png\"));\n labelPokemon[3].setBounds(0, 0, 720, 1000);\n subpanels[5].add(labelPokemon[3]);\n subpanels[5].setBounds(485, 110, 100, 100);\n subpanels[5].setOpaque(false);\n subpanels[5].setVisible(false);\n }", "title": "" }, { "docid": "0059ef35018d399e09065a87ea5e7d7b", "score": "0.5848461", "text": "public final JQueryUI effect(Effect effect,EffectOptions options) {\r\n\t\treturn effect(effect.name(),options);\r\n\t}", "title": "" }, { "docid": "bd8bb87a4a49f7c75edba01dbda04d2f", "score": "0.5724266", "text": "public final JQueryUI effect(Effect effect) {\r\n\t\treturn effect(effect.name());\r\n\t}", "title": "" }, { "docid": "d0ad2fd02762aa05c82529086cc9d48b", "score": "0.57074964", "text": "protected boolean initEffect() { return true; }", "title": "" }, { "docid": "2af4605ccb89afde1801d3f7f4a332cf", "score": "0.56751525", "text": "private PickEffectFragment(){}", "title": "" }, { "docid": "4f49e49f6da2d45cf1c090953f3700eb", "score": "0.5606418", "text": "public void show() {\n\t\t/**\n\t\t * Bitte vervollständigen\n\t\t */\n\t\tstage.show();\n\t}", "title": "" }, { "docid": "ff22c57a6b1ae8ff460077c070a7dbb2", "score": "0.55611086", "text": "public void setEffect(String effect) {\n this.effect = effect;\n }", "title": "" }, { "docid": "e7f13335ba5a4abe7be147546689c7b4", "score": "0.5559823", "text": "@Override\n public void onClick(View arg0) {\n selectheadimg1.setVisibility(View.VISIBLE);\n selectheadimg1.getBackground().setAlpha(150);\n }", "title": "" }, { "docid": "14b80a05cbbee871970876f80b85f8a2", "score": "0.5524532", "text": "public void show() {\n this.active = true;\n }", "title": "" }, { "docid": "0a56a0d8acf03bfa86e0fcb2d18c54da", "score": "0.54911995", "text": "public void show() {\n isHidden = false;\n }", "title": "" }, { "docid": "2e064770e031d223e7d222b0c5f04b7f", "score": "0.5460007", "text": "void attachEffectViewEntry();", "title": "" }, { "docid": "d716c3ca3cee215167c2ac0275143573", "score": "0.54329664", "text": "public void show() {\n visible = true;\n }", "title": "" }, { "docid": "d718b8a0a7f029fcfebc490400bc8f52", "score": "0.54257685", "text": "public void showCaptionsTooltip() {\n ViewStub viewStub;\n if (!this.mHasSeenODICaptionsTooltip && (viewStub = this.mODICaptionsTooltipViewStub) != null) {\n View inflate = viewStub.inflate();\n this.mODICaptionsTooltipView = inflate;\n inflate.findViewById(C0015R$id.dismiss).setOnClickListener(new View.OnClickListener() {\n /* class com.android.systemui.volume.$$Lambda$VolumeDialogImpl$TUvPGuqHQwDl_z3hgYr3GMVgOs */\n\n public final void onClick(View view) {\n VolumeDialogImpl.this.lambda$showCaptionsTooltip$7$VolumeDialogImpl(view);\n }\n });\n this.mODICaptionsTooltipViewStub = null;\n rescheduleTimeoutH();\n }\n View view = this.mODICaptionsTooltipView;\n if (view != null) {\n view.setAlpha(0.0f);\n this.mODICaptionsTooltipView.animate().alpha(1.0f).setStartDelay(300).withEndAction(new Runnable() {\n /* class com.android.systemui.volume.$$Lambda$VolumeDialogImpl$j7bv45Q5uulCvMsn_IeT1Mv2PxI */\n\n public final void run() {\n VolumeDialogImpl.this.lambda$showCaptionsTooltip$8$VolumeDialogImpl();\n }\n }).start();\n }\n }", "title": "" }, { "docid": "5ad005030c72f9e68ce7d366097ff58f", "score": "0.5413002", "text": "public final JQueryUI effect(Effect effect,EffectOptions options,int duration) {\r\n\t\treturn effect(effect.name(),options,duration);\r\n\t}", "title": "" }, { "docid": "ad86aa6af75a4ffde05741d3f9beb915", "score": "0.5407971", "text": "@Override\n public void run() {\n doAnimatorToShow();//just visible\n }", "title": "" }, { "docid": "3afad3bbfd3e9d03207198bc9b1baaec", "score": "0.5407724", "text": "void showFab(boolean animate);", "title": "" }, { "docid": "caa3dd348d58284f772a952e5d0ae482", "score": "0.539863", "text": "public void onEffectChange(Effect effect){}", "title": "" }, { "docid": "aeb1da2c566c08328e26119b1f05a6e0", "score": "0.53947496", "text": "@Override\r\n\tpublic void shown() {\n\t\t\r\n\t}", "title": "" }, { "docid": "14b0c240e33ba0bebc011f6b76aa1b55", "score": "0.5385982", "text": "@Override\n public void show() {\n Gdx.input.setInputProcessor(stage);\n\n reset();\n\n parent.getResources().getParticleEffect().setPosition((float) stage.getViewport().getScreenWidth() / 2,\n (float) stage.getViewport().getScreenHeight() / 2);\n }", "title": "" }, { "docid": "9593e07b87458c73c5bacca4e646d8ad", "score": "0.5380703", "text": "public void playSoundEffect() {\n AudioManager am = (AudioManager) getActivity().getSystemService(Activity.AUDIO_SERVICE);\n am.playSoundEffect(AudioManager.FX_KEY_CLICK);\n }", "title": "" }, { "docid": "da957c07519308a28c99488e076f75a9", "score": "0.5368751", "text": "public void showToggle() {\n if (cantShowOverlay()) return;\n OverlayService.performAction(OverlayService.IntentAction.SHOW_TOGGLE);\n }", "title": "" }, { "docid": "c8008567a74d5ec128a8d50e398a6974", "score": "0.53408486", "text": "private void showActions() {\n\n\n // Hide\n if (mActionBar.isShowing()) {\n mActionBar.hide();\n Animation hideImageOptions = AnimationUtils.loadAnimation(getActivity(), R.anim.bottom_down);\n mImageOptions.startAnimation(hideImageOptions);\n mImageOptions.setVisibility(View.GONE);\n // Show\n } else {\n mActionBar.show();\n Animation showImageOptions = AnimationUtils.loadAnimation(getActivity(), R.anim.bottom_up);\n mImageOptions.startAnimation(showImageOptions);\n mImageOptions.setVisibility(View.VISIBLE);\n }\n }", "title": "" }, { "docid": "95a54a6f90e7af8c1e38f79887524341", "score": "0.5338674", "text": "public final JQueryUI toggle(Effect effect) {\r\n\t\treturn toggle(effect.name());\r\n\t}", "title": "" }, { "docid": "99bdda71f3b44ea9defaf3334f520ccb", "score": "0.5336507", "text": "public void show(){\n\n\tkitty.show();\n\n}", "title": "" }, { "docid": "1002a29938794ba865c7ebf04f8d3bff", "score": "0.5336369", "text": "public final JQueryUI toggle(Effect effect,EffectOptions options) {\r\n\t\treturn toggle(effect.name(),options);\r\n\t}", "title": "" }, { "docid": "75276116b89b7b95c00d98f7db8af1b2", "score": "0.531882", "text": "private void effectSettings() {\r\n\t\tAudioEffect effect = getAudioEffect();\r\n\t\tif (effect == null) {\r\n\t\t\tselectEffect();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (effect.hasSettingsWindow()) {\r\n\t\t\teffect.showSettingsWindow();\r\n\t\t} else {\r\n\t\t\tDebug.displayErrorDialog(channelstrip, \"No Settings\",\r\n\t\t\t\t\t\"This effect does not have a settings window.\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d2b5d13b3b25f7558311fe2ca33bf6dd", "score": "0.5313869", "text": "@Override\n public void show() {\n \n }", "title": "" }, { "docid": "0b005a732c749f93d95c4fe843c65ad9", "score": "0.5307631", "text": "@Override\r\n\tpublic void show() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0b005a732c749f93d95c4fe843c65ad9", "score": "0.5307631", "text": "@Override\r\n\tpublic void show() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0b005a732c749f93d95c4fe843c65ad9", "score": "0.5307631", "text": "@Override\r\n\tpublic void show() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0b005a732c749f93d95c4fe843c65ad9", "score": "0.5307631", "text": "@Override\r\n\tpublic void show() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0b005a732c749f93d95c4fe843c65ad9", "score": "0.5307631", "text": "@Override\r\n\tpublic void show() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0b005a732c749f93d95c4fe843c65ad9", "score": "0.5307631", "text": "@Override\r\n\tpublic void show() {\n\t\t\r\n\t}", "title": "" }, { "docid": "17e09f5825ba0bf94b686c9c6b88b64f", "score": "0.53036946", "text": "public void spawn() {\r\n FMLClientHandler.instance().getClient().effectRenderer.addEffect(this);\r\n }", "title": "" }, { "docid": "03fc5032ee2b19dd5816073490ea40ef", "score": "0.5292795", "text": "private void fadeIn()\n {\n registrationPane.setScaleX(0);\n registrationPane.setScaleY(0);\n ScaleTransition animate = new ScaleTransition(Duration.millis(700), registrationPane);\n animate.setToX(1);\n animate.setToY(1);\n animate.play();\n\n }", "title": "" }, { "docid": "bd7a7b64c736f81b06a4fcfd19ac5a92", "score": "0.5286339", "text": "@FXML\n public void hoverSoundFx() {\n SoundSystem.buttonSoundEffect.play(0.3);\n }", "title": "" }, { "docid": "e279f4f1beee517d81c4ab194a13a03e", "score": "0.5283152", "text": "@Override\n public void show() {\n super.show();\n\n }", "title": "" }, { "docid": "cf78ab47379f05f9c83a416e81ae5a06", "score": "0.52828074", "text": "@Override\n public void doCharSelectScreenSelectEffect() {\n CardCrawlGame.sound.playA(\"ATTACK_DAGGER_1\", 1.25f);\n CardCrawlGame.screenShake.shake(ScreenShake.ShakeIntensity.LOW, ScreenShake.ShakeDur.SHORT, false); // Effect\n }", "title": "" }, { "docid": "b0ad50d493d0777d6b04ccf6aa89cc02", "score": "0.52822524", "text": "public String getAction() {\n return super.getEffect();\n }", "title": "" }, { "docid": "a36ab6c2d4486739e339b4a280872ce3", "score": "0.52803123", "text": "public boolean effectsTexture() {\n return true;\n }", "title": "" }, { "docid": "043b279886ec71ee8233124f797125f9", "score": "0.5278594", "text": "private void showFABMenu() {\n mIsFABOpen = true;\n mFabMenu.animate().rotation(-180);\n mFabEdit.setVisibility(View.VISIBLE);\n mFabDelete.setVisibility(View.VISIBLE);\n mFabWater.setVisibility(View.VISIBLE);\n mFabEdit.startAnimation(mFab_open);\n mFabDelete.startAnimation(mFab_open);\n mFabWater.startAnimation(mFab_open);\n }", "title": "" }, { "docid": "10d0958e6131781331b00be01e637993", "score": "0.5273769", "text": "@Override\n\tpublic void show() {\n\t\tsuper.show();\n\t}", "title": "" }, { "docid": "1ecaad3697738c3a98b89b0a7c359555", "score": "0.527133", "text": "public void showHit(){\n originalBackground = getBackground();\n setBackground(hitBackground);\n }", "title": "" }, { "docid": "63a75a9d43da7bb09fc0b3e214fdd110", "score": "0.52678776", "text": "@Override\n public void show() {\n scene.lockScene();\n }", "title": "" }, { "docid": "a1d489b7004997b8b3ac0468c9e39b03", "score": "0.5266323", "text": "public abstract void useEffect(Effects activeEffects);", "title": "" }, { "docid": "76f80e85c4ab3f22011b979319c0b786", "score": "0.5259658", "text": "public void showOptionsMenu() {\r\n\t\toptionBox.setVisible(true);\r\n\t}", "title": "" }, { "docid": "0cc069b8cc8256999c693a3a26cd4e28", "score": "0.5258135", "text": "public void act() \n {\n fade();\n }", "title": "" }, { "docid": "735f18ac9aa93d63ebf148d9f8b52e95", "score": "0.5257058", "text": "public void reveal()\r\n {\r\n this.hideUtility.revealObject();\r\n }", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.52565473", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.52565473", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.52565473", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.52565473", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.52565473", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.52565473", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.52565473", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.52565473", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.52565473", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.52565473", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.52565473", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.52565473", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.52565473", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.52565473", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.52565473", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.52565473", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.52565473", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.52565473", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "a5f51fdd454f3124a962449184f5d9df", "score": "0.5249089", "text": "public void showFilterButton() {\r\n doneContainer.setVisibility(View.GONE);\r\n filterContainer.setVisibility(View.VISIBLE);\r\n }", "title": "" }, { "docid": "6e5dd6de8538a992ce56a07ad595b481", "score": "0.52399594", "text": "@Override\n\tpublic void show() {\n\n\t}", "title": "" }, { "docid": "6e5dd6de8538a992ce56a07ad595b481", "score": "0.52399594", "text": "@Override\n\tpublic void show() {\n\n\t}", "title": "" }, { "docid": "6e5dd6de8538a992ce56a07ad595b481", "score": "0.52399594", "text": "@Override\n\tpublic void show() {\n\n\t}", "title": "" }, { "docid": "6e5dd6de8538a992ce56a07ad595b481", "score": "0.52399594", "text": "@Override\n\tpublic void show() {\n\n\t}", "title": "" }, { "docid": "d3e8e42ab6f00c8d3cc767b727507004", "score": "0.5238518", "text": "public final JQueryUI effect(Effect effect,EffectOptions options,Duration duration) {\r\n\t\treturn effect(effect.name(),options,duration.name());\r\n\t}", "title": "" }, { "docid": "9cef93c9990be16e62a28faf96c7c939", "score": "0.52288085", "text": "@Override\r\n\tpublic void show()\r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "99a18ca977172bab5e4eee2c666dbfbc", "score": "0.52282023", "text": "public final JQueryUI toggle(Effect effect,EffectOptions options,int duration) {\r\n\t\treturn toggle(effect.name(),options,duration);\r\n\t}", "title": "" }, { "docid": "118c1ea5bca69df21cf764e681330338", "score": "0.5224811", "text": "public void act() \n {\n if (!mouseOver && Greenfoot.mouseMoved(this)){\n mouseOverSound.play();\n setImage(\"Controls2.png\");\n mouseOver = true;\n }\n if (mouseOver && Greenfoot.mouseMoved(null) && ! Greenfoot.mouseMoved(this)){\n setImage(\"Controls.png\");\n mouseOver = false;\n }\n if(Greenfoot.mouseClicked(this)){\n select.play();\n Greenfoot.setWorld(new ControlScreen());\n }\n }", "title": "" }, { "docid": "46994b6f73e604ea326d97a05d2f896f", "score": "0.52178437", "text": "public final JQueryUI hide(Effect effect,EffectOptions options) {\r\n\t\treturn hide(effect.name(),options);\r\n\t}", "title": "" }, { "docid": "b1531838155c838fe0d55b8d71c7c6a7", "score": "0.51928514", "text": "public void show(){\n\t\t//Stage primaryStage = new Stage();\n\t\tprimaryStage.setTitle(TITLE);\n\t\tGroup root = new Group();\n\n\t\tMenu level = initLevelMenu();\n\t\tMenu setting = initSettingMenu();\n\t\tMenu help = initHelpMenu();\n\t\tmenuBar = new MenuBar(level, setting, help);\n\t\troot.getChildren().add(menuBar);\n\t\t\n\t\tAnimationImage im = new AnimationImage();\t\t\n\t\t\n\t\tScene scene = new Scene(root);\n\t\tImage image = new Image(getClass().getClassLoader().getResourceAsStream(myResources.getString(\"levelChoiceImagePath\")));\n\t\tscene.setFill(new ImagePattern(image));\t\t\n\t\tscene.getStylesheets().setAll(CSS_LOCATION);\n\t\t\n\t\tHBox hBox = new HBox();\n\t\thBox.getChildren().add(im.getImageView(SEED));\n\t\thBox.setLayoutX(300);\n\t\thBox.setLayoutY(200);\n\t\troot.getChildren().add(hBox);\n\n\t\tButton starting = createButton();\t\t\n\t\troot.getChildren().add(starting);\n\t\t\n\t\tprimaryStage.setScene(scene);\n\t\tprimaryStage.setFullScreen(true);\n\t\tprimaryStage.setFullScreenExitHint(\"\");\n\t\tprimaryStage.setFullScreenExitKeyCombination(null);\n\t\tprimaryStage.show();\n\t}", "title": "" }, { "docid": "578634a7ff98483947effd3ee716b38d", "score": "0.51908773", "text": "public void displayComponentSelection(){\n if(!isComponentSelectionDisplayed){\n sideButtons.getChildren().add(domeIcon);\n sideButtons.getChildren().add(blockIcon);\n isComponentSelectionDisplayed = true;\n }\n }", "title": "" }, { "docid": "c0aba2e4207f95caeed1f2492c1e5c14", "score": "0.51896375", "text": "public void showAsChosen() {\r\n\t\t// if (this.drawn) System.out.println(\"Line.showAsChosen() ALREADY DRAWN\r\n\t\t// \"\r\n\t\t// + this);\r\n\t\t// else System.out.println(\"Line.showAsChosen() \" + this);\r\n\r\n\t\t// set our flags and color\r\n\t\tthis.drawn = false;\r\n\t\tthis.visible = true;\r\n\t\tthis.color = this.chosenColor;\r\n\r\n\t\t// request a redraw of ourself\r\n\t\tthis.repaint();\r\n\t}", "title": "" }, { "docid": "e8d9516560b75859c6fe41c8b205d0c9", "score": "0.5183725", "text": "void setup() {\n show();\n hide();\n }", "title": "" }, { "docid": "5f41741a19fa1e36a90e1afae8df2c92", "score": "0.51809365", "text": "protected void effects(Button button) {\r\n\t\tbutton.setStyle(\r\n\t\t\t\t\"-fx-background-color: green; -fx-font-size: 14pt; -fx-font-family: Serif; -fx-text-fill: white; \"\r\n\t\t\t\t\t\t+ \"-fx-border-color: black; -fx-effect: dropshadow( one-pass-box , black , 8 , 0.0 , 2 , 0 ) ;\");\r\n\r\n\t}", "title": "" }, { "docid": "cfb19b83ecba796f4f9ea8123437c6e4", "score": "0.5176976", "text": "@Override\n public void show() {\n super.show();\n\n }", "title": "" }, { "docid": "2713a249ef52d15cd3a2f5b0f11bf129", "score": "0.51690197", "text": "@Override\r\n\tpublic void show() {\n\r\n\t}", "title": "" }, { "docid": "2713a249ef52d15cd3a2f5b0f11bf129", "score": "0.51690197", "text": "@Override\r\n\tpublic void show() {\n\r\n\t}", "title": "" }, { "docid": "52982200949b901f860db3a4a351530c", "score": "0.51689464", "text": "@Override\n public void show() {\n }", "title": "" }, { "docid": "52982200949b901f860db3a4a351530c", "score": "0.51689464", "text": "@Override\n public void show() {\n }", "title": "" }, { "docid": "52982200949b901f860db3a4a351530c", "score": "0.51689464", "text": "@Override\n public void show() {\n }", "title": "" }, { "docid": "52982200949b901f860db3a4a351530c", "score": "0.51689464", "text": "@Override\n public void show() {\n }", "title": "" }, { "docid": "827baf7f5ea928465066ba6ab02fe649", "score": "0.51668584", "text": "@Override\r\n\tpublic void show()\r\n\t{\n\r\n\t}", "title": "" }, { "docid": "f1ec08e2a0972a25a74057c558261bdb", "score": "0.5165507", "text": "@Override\n\tpublic void show() {\n\t}", "title": "" }, { "docid": "6535ae6a577905166d3e1e39352a3dff", "score": "0.51622736", "text": "void setEffectViewEntry(View view);", "title": "" } ]
991c7fc1ad5c19569214ab6ec1a3a6d5
Get the value of attribute.
[ { "docid": "6423f377824b6fdda88498d362b88613", "score": "0.72006565", "text": "public String getAttribute() {return attribute;}", "title": "" } ]
[ { "docid": "d53040d4a0574a81c25d6dfc86172d2b", "score": "0.8033344", "text": "public Object getValue(String attribute);", "title": "" }, { "docid": "2f428d771fbb337a22de749e3a7cdbf4", "score": "0.7437078", "text": "public String getValue() {\n return super.getAttributeValue();\n }", "title": "" }, { "docid": "76e8070274a788e468e2deda9daf4b2a", "score": "0.73295206", "text": "public String getAttrValue() {\n return attrValue;\n }", "title": "" }, { "docid": "dfe3692e70d7d8617c8647aa4c9f3ac7", "score": "0.72979945", "text": "@Override\r\n public Object getAttribute() {\r\n return this.attribute;\r\n }", "title": "" }, { "docid": "9e308541749f117b6145bc0a4db9e306", "score": "0.7282884", "text": "public String getAttribute() {\n return this.attribute;\n }", "title": "" }, { "docid": "b353d4128ff309ebd580d47bfafc01ca", "score": "0.7267451", "text": "public String getValue(Object element, String attribute) throws AgentException;", "title": "" }, { "docid": "cc318526c8ce4443c4a2f62d789e1798", "score": "0.7252068", "text": "public Object get(String attribute);", "title": "" }, { "docid": "b0e490ef9f2477efd4e195cb67be3a69", "score": "0.7204671", "text": "public String getAttribute() {\n return attribute;\n }", "title": "" }, { "docid": "2d7fa17074246397a0a737dfe5cc1e93", "score": "0.7185837", "text": "public String getAttribute(String name)\n {\n return getValue(name);\n }", "title": "" }, { "docid": "ab35e41e1f516bb41763cc5a41a0b317", "score": "0.7156036", "text": "public String get(T attribute) {\n return getProperty(attribute.toString());\n }", "title": "" }, { "docid": "df9a36c0e7ecad5a8882df451179b5d4", "score": "0.7127163", "text": "public String get (String attribute)\n {\n return properties.get(attribute);\n }", "title": "" }, { "docid": "cbcefdd05ba2b3399432a80dff24ca89", "score": "0.7106408", "text": "public String getAttribute()\n\t{\n\t\treturn attribute;\n\t}", "title": "" }, { "docid": "37476cee0ddd2c4439ab1beeb3f3ccbf", "score": "0.70132774", "text": "public String getAttr(String attr);", "title": "" }, { "docid": "d6fffc114a887453f9475ae029227fd1", "score": "0.6992404", "text": "public String getAttribute() {\n if (this.attribute == null) {\n return (this.name);\n } else {\n return (this.attribute);\n }\n }", "title": "" }, { "docid": "82b2df5b14b1e8b04d74717a4cd9e654", "score": "0.69807196", "text": "public final Value get(String name) {\n return (Value)this.attributes.get(name);\n }", "title": "" }, { "docid": "ec56ff67624b1fd752464fdf29207458", "score": "0.69146466", "text": "public Attribute getAttribute() {\n\t\treturn attribute;\n\t}", "title": "" }, { "docid": "8cc578db81c469608be7e6dfbacb14a5", "score": "0.68626624", "text": "public AttributeImpl<? super Z, X> getAttribute() {\n \t\treturn this.attribute;\n \t}", "title": "" }, { "docid": "1c64ec3fffc945fde481dc4beebe751c", "score": "0.6860384", "text": "private String getAttributeValue(Attributes attr, String name) {\n String value = attr.getValue(\"\", name);\n if (value == null) {\n value = attr.getValue(this.namespaceURI, name);\n }\n\n return value;\n }", "title": "" }, { "docid": "4d5193825c3c886a38d9d905a46395f1", "score": "0.68432176", "text": "public String getAttr(int attr);", "title": "" }, { "docid": "7f3a6199097c8d827eb72bfb73537476", "score": "0.6783838", "text": "public String getAttributeValue() \n{\nreturn (String)get_Value(\"AttributeValue\");\n}", "title": "" }, { "docid": "5fd997fb12f27733ad58e78e4ba86e26", "score": "0.67605233", "text": "public final String getAttribute(String key) { return attributes.get(key); }", "title": "" }, { "docid": "905751f28d1c2e24dfd79ee1f7963529", "score": "0.6732481", "text": "public String getValue(By element, String attribute) throws AgentException;", "title": "" }, { "docid": "e80cfbddd19bd37e3432dbdfa9f0fd2a", "score": "0.67323625", "text": "public String getSelectedAttribute() {\n return getPolymerElement().getSelectedAttribute();\n }", "title": "" }, { "docid": "419db837f35cd99417c26b39be92111a", "score": "0.67299473", "text": "Object getAttribute(String name);", "title": "" }, { "docid": "419db837f35cd99417c26b39be92111a", "score": "0.67299473", "text": "Object getAttribute(String name);", "title": "" }, { "docid": "24b6d78ea60a633c9e8a4a8e5182ce56", "score": "0.67297673", "text": "public String getValue (int index)\n {\n AttrImpl attr = getChildAttribute(index);\n if (null != attr)\n return attr.getValue();\n else \n return null;\n }", "title": "" }, { "docid": "aa7564f4a7e5db378d2282c71f277b26", "score": "0.66907877", "text": "public Attribute\t\tgetValue( ObjectName objectName, String valueName ) throws Exception;", "title": "" }, { "docid": "b6fcab9123edabce712034aed282b9d2", "score": "0.66561913", "text": "public String getValue(){\n\t\t\treturn value;\n\t\t}", "title": "" }, { "docid": "a3d7920fc116ce7c64a6d5271d7718b1", "score": "0.66412634", "text": "public abstract int getAttribute(Attribute attr);", "title": "" }, { "docid": "f461a6fdac3f3e4f1296de4f631c7046", "score": "0.66389775", "text": "public Object getAttribute (String name) {\r\n\t\treturn (attributes.get(name));\r\n\t}", "title": "" }, { "docid": "62683e19d96c44ff391c791133f1c55d", "score": "0.66334546", "text": "public String getValue(){\r\n\t\treturn value;\r\n\t}", "title": "" }, { "docid": "b2a3a5416d6df72780d340606f3e3101", "score": "0.66325486", "text": "org.erdc.cobie.cobielite.core.AttributeIntegerValueType getAttributeIntegerValue();", "title": "" }, { "docid": "60cdfa9240c8754f86010c695d2ca441", "score": "0.6623091", "text": "org.erdc.cobie.cobielite.core.AttributeStringValueType getAttributeStringValue();", "title": "" }, { "docid": "9038e3d859f73aa12c6ef33441bd2225", "score": "0.6619885", "text": "public String get(String key) {\n\t\treturn attributes.get(key);\n\t}", "title": "" }, { "docid": "8b89cf3cfdd873bdfc7b3273cb8bdf2b", "score": "0.6616347", "text": "public String getValue() {\n \t\treturn value;\n \t}", "title": "" }, { "docid": "0354c8f7c0ca9786522e66c9d458a07d", "score": "0.66161954", "text": "public String getValue() {\r\n \t\t\treturn value;\r\n \t\t}", "title": "" }, { "docid": "d68c630e4eca93d8271a38936477c7b5", "score": "0.65676266", "text": "public final Session.Attribute getAttribute()\n {\n return attribute;\n }", "title": "" }, { "docid": "9ab35c83a3d2a2bc65666ad0c2e75418", "score": "0.65606153", "text": "public String getValue()\r\n\t{\r\n\t\treturn value;\r\n\t}", "title": "" }, { "docid": "e9d71c431d13640ff59abea5b6bda887", "score": "0.6552234", "text": "public String getValue() {\r\n return this.value;\r\n }", "title": "" }, { "docid": "63a5e41ab1e4ec6a4156b1fce8a7e446", "score": "0.6549709", "text": "public String getValue() {\r\n return value;\r\n }", "title": "" }, { "docid": "63a5e41ab1e4ec6a4156b1fce8a7e446", "score": "0.6549709", "text": "public String getValue() {\r\n return value;\r\n }", "title": "" }, { "docid": "63a5e41ab1e4ec6a4156b1fce8a7e446", "score": "0.6549709", "text": "public String getValue() {\r\n return value;\r\n }", "title": "" }, { "docid": "c4c17733859c2fc4cf275f40914313ea", "score": "0.6547471", "text": "com.google.cloud.dataplex.v1.DataAttribute getDataAttribute();", "title": "" }, { "docid": "77077b64c9250c6949692feecee94d38", "score": "0.6546259", "text": "public String getValue() {\n\t\t\treturn this.value;\n\t\t}", "title": "" }, { "docid": "bcf4f4caa48bc33f0321fae27711d4f9", "score": "0.6539152", "text": "public String getValue() {\n return value;\n }", "title": "" }, { "docid": "bcf4f4caa48bc33f0321fae27711d4f9", "score": "0.6539152", "text": "public String getValue() {\n return value;\n }", "title": "" }, { "docid": "bcf4f4caa48bc33f0321fae27711d4f9", "score": "0.6539152", "text": "public String getValue() {\n return value;\n }", "title": "" }, { "docid": "bcf4f4caa48bc33f0321fae27711d4f9", "score": "0.6539152", "text": "public String getValue() {\n return value;\n }", "title": "" }, { "docid": "bcf4f4caa48bc33f0321fae27711d4f9", "score": "0.6539152", "text": "public String getValue() {\n return value;\n }", "title": "" }, { "docid": "dc2eeee20775e5b4e3c5e91867813a4a", "score": "0.6538534", "text": "public String getValue()\n {\n return _value;\n }", "title": "" }, { "docid": "962ed26faa26b4f066e1174443b7ebd5", "score": "0.65384424", "text": "public String getValue()\n {\n return this.value;\n }", "title": "" }, { "docid": "f6cbfcbc3ee86c86ccdeeac1585a6804", "score": "0.65372574", "text": "public String getValue()\r\n {\r\n return value;\r\n }", "title": "" }, { "docid": "26b7220ee02912190462ba8839fc3ed1", "score": "0.6526674", "text": "public String getValue()\n\t{\n\t\treturn value;\n\t}", "title": "" }, { "docid": "f68539fde11b96bec78397009d208a99", "score": "0.65228426", "text": "public String getValue() {\r\n\t\t\treturn _value;\r\n\t\t}", "title": "" }, { "docid": "bbb1e3578f4e01aba7bf782f4f08c6f8", "score": "0.651943", "text": "public String getValue() {\r\n\t\treturn value;\r\n\t}", "title": "" }, { "docid": "bbb1e3578f4e01aba7bf782f4f08c6f8", "score": "0.651943", "text": "public String getValue() {\r\n\t\treturn value;\r\n\t}", "title": "" }, { "docid": "bbb1e3578f4e01aba7bf782f4f08c6f8", "score": "0.651943", "text": "public String getValue() {\r\n\t\treturn value;\r\n\t}", "title": "" }, { "docid": "7e3b875723692fddbfb6b80f89ed1106", "score": "0.65165865", "text": "public String getValue() {\n return value;\n }", "title": "" }, { "docid": "7e3b875723692fddbfb6b80f89ed1106", "score": "0.65165865", "text": "public String getValue() {\n return value;\n }", "title": "" }, { "docid": "7e3b875723692fddbfb6b80f89ed1106", "score": "0.65165865", "text": "public String getValue() {\n return value;\n }", "title": "" }, { "docid": "7e3b875723692fddbfb6b80f89ed1106", "score": "0.65165865", "text": "public String getValue() {\n return value;\n }", "title": "" }, { "docid": "7e3b875723692fddbfb6b80f89ed1106", "score": "0.65165865", "text": "public String getValue() {\n return value;\n }", "title": "" }, { "docid": "2fdaba530b7417ecd2a1dd31a86dc4d4", "score": "0.65163726", "text": "public String getValue() {\n\t\treturn this.value;\n\t}", "title": "" }, { "docid": "2fdaba530b7417ecd2a1dd31a86dc4d4", "score": "0.65163726", "text": "public String getValue() {\n\t\treturn this.value;\n\t}", "title": "" }, { "docid": "2fdaba530b7417ecd2a1dd31a86dc4d4", "score": "0.65163726", "text": "public String getValue() {\n\t\treturn this.value;\n\t}", "title": "" }, { "docid": "398b6b967da09c2fba99c6c962e16987", "score": "0.651068", "text": "public String getAttribute(String name) {\n\t\treturn attributes.get(name);\n\t}", "title": "" }, { "docid": "0a18273cf3de660ce999d7272d3343df", "score": "0.6510497", "text": "public String getValue() {\n\t\treturn value;\n\t}", "title": "" }, { "docid": "0a18273cf3de660ce999d7272d3343df", "score": "0.6510497", "text": "public String getValue() {\n\t\treturn value;\n\t}", "title": "" }, { "docid": "0a18273cf3de660ce999d7272d3343df", "score": "0.6510497", "text": "public String getValue() {\n\t\treturn value;\n\t}", "title": "" }, { "docid": "0a18273cf3de660ce999d7272d3343df", "score": "0.6510497", "text": "public String getValue() {\n\t\treturn value;\n\t}", "title": "" }, { "docid": "0a18273cf3de660ce999d7272d3343df", "score": "0.6510497", "text": "public String getValue() {\n\t\treturn value;\n\t}", "title": "" }, { "docid": "0a18273cf3de660ce999d7272d3343df", "score": "0.6510497", "text": "public String getValue() {\n\t\treturn value;\n\t}", "title": "" }, { "docid": "0a18273cf3de660ce999d7272d3343df", "score": "0.6510497", "text": "public String getValue() {\n\t\treturn value;\n\t}", "title": "" }, { "docid": "7bf0667e38aaaf99b26587dc81da1692", "score": "0.65096235", "text": "public java.lang.String getValue()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(VALUE$2);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "title": "" }, { "docid": "618d6ce358738a1db45b8f503bcc12fd", "score": "0.6508758", "text": "public String getValue() {\n return _value;\n }", "title": "" }, { "docid": "618d6ce358738a1db45b8f503bcc12fd", "score": "0.6508758", "text": "public String getValue() {\n return _value;\n }", "title": "" }, { "docid": "d4fbeb5ae878d0808ad6eb91823f43ac", "score": "0.65051806", "text": "@Override\n\t\tpublic String getValue() {\n\t\t\treturn _value;\n\t\t}", "title": "" }, { "docid": "066dc545bc535a91d435e0eb17c83a95", "score": "0.650048", "text": "public String getValue()\n {\n return this.value;\n }", "title": "" }, { "docid": "066dc545bc535a91d435e0eb17c83a95", "score": "0.650048", "text": "public String getValue()\n {\n return this.value;\n }", "title": "" }, { "docid": "970fc7744d645aca4730494d970500ed", "score": "0.64880925", "text": "String getValue() {\r\n return this.value;\r\n }", "title": "" }, { "docid": "f54a7fac17d3ad6c63ff6e6311e2efd5", "score": "0.648756", "text": "public String getValue() {\n return this.value;\n }", "title": "" }, { "docid": "f54a7fac17d3ad6c63ff6e6311e2efd5", "score": "0.648756", "text": "public String getValue() {\n return this.value;\n }", "title": "" }, { "docid": "f54a7fac17d3ad6c63ff6e6311e2efd5", "score": "0.648756", "text": "public String getValue() {\n return this.value;\n }", "title": "" }, { "docid": "f54a7fac17d3ad6c63ff6e6311e2efd5", "score": "0.648756", "text": "public String getValue() {\n return this.value;\n }", "title": "" }, { "docid": "f54a7fac17d3ad6c63ff6e6311e2efd5", "score": "0.648756", "text": "public String getValue() {\n return this.value;\n }", "title": "" }, { "docid": "f54a7fac17d3ad6c63ff6e6311e2efd5", "score": "0.648756", "text": "public String getValue() {\n return this.value;\n }", "title": "" }, { "docid": "57458d40496824cc60e7ad1f0c60894f", "score": "0.64867955", "text": "public String getValue()\n {\n return _value;\n }", "title": "" }, { "docid": "f582bb4db3dcdfa71c179def490f0ed7", "score": "0.64833724", "text": "public Object getValue() {\n\t\treturn this.value;\n\t}", "title": "" }, { "docid": "79f08db807ddff11ab8ca352ef1116fe", "score": "0.6483072", "text": "public Value getAttributeValue(int i) {\n\t\treturn attributeValues.get(i);\n\t}", "title": "" }, { "docid": "f464c810f0a407aa5f23e3ce38435c85", "score": "0.6482351", "text": "public String getValue() {\n return (val);\n }", "title": "" }, { "docid": "826eb610f472d113790c0786e2087cdd", "score": "0.6481394", "text": "public String getValue() {\n return value;\n }", "title": "" }, { "docid": "826eb610f472d113790c0786e2087cdd", "score": "0.6481394", "text": "public String getValue() {\n return value;\n }", "title": "" }, { "docid": "826eb610f472d113790c0786e2087cdd", "score": "0.6481394", "text": "public String getValue() {\n return value;\n }", "title": "" }, { "docid": "826eb610f472d113790c0786e2087cdd", "score": "0.6481394", "text": "public String getValue() {\n return value;\n }", "title": "" }, { "docid": "826eb610f472d113790c0786e2087cdd", "score": "0.6481394", "text": "public String getValue() {\n return value;\n }", "title": "" }, { "docid": "826eb610f472d113790c0786e2087cdd", "score": "0.6481394", "text": "public String getValue() {\n return value;\n }", "title": "" }, { "docid": "826eb610f472d113790c0786e2087cdd", "score": "0.6481394", "text": "public String getValue() {\n return value;\n }", "title": "" }, { "docid": "826eb610f472d113790c0786e2087cdd", "score": "0.6481394", "text": "public String getValue() {\n return value;\n }", "title": "" }, { "docid": "826eb610f472d113790c0786e2087cdd", "score": "0.6481394", "text": "public String getValue() {\n return value;\n }", "title": "" }, { "docid": "826eb610f472d113790c0786e2087cdd", "score": "0.6481394", "text": "public String getValue() {\n return value;\n }", "title": "" } ]
648fa0a0a44c2c2449c456b3a4a9f21e
initialises the blocks (tiles & walls) which make up the current level. The tiles are recieved from the passed GameWorld parameter.
[ { "docid": "fc3586765bde066ec16ab5650c5a2f3d", "score": "0.8011883", "text": "public void initBlocks(GameWorld game) {\n\n\t\tallWalls.clear();\n\t\tallTiles.clear();\n\t\tblocks.clear();\n\n\t\tTile[][] tiles = game.getGameTiles();\n\t\tfor(int r=0; r!=levelBlocks.length; r++){\n\t\t\tfor(int c=0; c!=levelBlocks[0].length; c++){\n\t\t\t\t// getting the gameworld model tile\n\t\t\t\t//Tile tile = tiles[c][r];\n\t\t\t\tTile tile = tiles[r][c];\n\t\t\t\t// the block to be created\n\t\t\t\tBlock b = null;\n\n\t\t\t\tif(tile==null){\n\t\t\t\t\tSystem.out.println(r + \" \" + c);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Creating a Tile block for rendering\n\t\t\t\tif(tile.getTileType() == GameMap.TileType.TILE){\n\n\t\t\t\t\t// getting the x & y position of the tile\n\t\t\t\t\tint x = c * tileWidth;\n\t\t\t\t\tint y = r * tileHeight;\n\t\t\t\t\t// converting 2d point to isometic\n\t\t\t\t\tPoint pos = twoDToIso(new Point(x, y));\n\t\t\t\t\t// adjusting the position of the render\n\t\t\t\t\tb = new RenderTile(0, pos.x+50, pos.y+65);\n\t\t\t\t\t// setting the tile item if one\n\t\t\t\t\tif(tile.getItem()!=null){\n\t\t\t\t\t\t((RenderTile)b).setItem(tile.getItem());\n\t\t\t\t\t}\n\t\t\t\t\tfor(Map.Entry<Integer, Player> p: players.entrySet()){\n\t\t\t\t\t\tPlayer player = p.getValue();\n\t\t\t\t\t\tTile loc = player.getLocation();\n\t\t\t\t\t\tif(r==loc.X()&&c==loc.Y()){\n\t\t\t\t\t\t\t((RenderTile)b).setPlayer(player);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tallTiles.add((RenderTile) b);\n\t\t\t\t\t// adding blocks in order for painters algorithm\n\t\t\t\t\tblocks.add(b);\n\t\t\t\t\tlevelBlocks[c][r] = b;\n\n\t\t\t\t// creating a cracked tile block for rendering\n\t\t\t\t} else if (tile.getTileType() == GameMap.TileType.TILE_CRACKED){\n\t\t\t\t\t// getting the x & y position of the tile\n\t\t\t\t\tint x = c * tileWidth;\n\t\t\t\t\tint y = r * tileHeight;\n\t\t\t\t\t// converting 2d point to isometric\n\t\t\t\t\tPoint pos = twoDToIso(new Point(x, y));\n\t\t\t\t\t// adjusting the position of the render\n\t\t\t\t\tb = new RenderTile(1, pos.x+50, pos.y+65);\n\t\t\t\t\t// setting the tile item if one\n\t\t\t\t\tif(tile.getItem()!=null){\n\t\t\t\t\t\t((RenderTile)b).setItem(tile.getItem());\n\t\t\t\t\t}\n\t\t\t\t\tfor(Map.Entry<Integer, Player> p: players.entrySet()){\n\t\t\t\t\t\tPlayer player = p.getValue();\n\t\t\t\t\t\tTile loc = player.getLocation();\n\t\t\t\t\t\tif(r==loc.X()&&c==loc.Y()){\n\t\t\t\t\t\t\t((RenderTile)b).setPlayer(player);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tallTiles.add((RenderTile) b);\n\t\t\t\t\t// adding blocks in order for painters algorithm\n\t\t\t\t\tblocks.add(b);\n\t\t\t\t\tlevelBlocks[c][r] = b;\n\n\t\t\t\t// Creating a Wall block for rendering\n\t\t\t\t} else if(tile.getTileType() == GameMap.TileType.WALL){\n\t\t\t\t\t// getting the x & y position of the tile\n\t\t\t\t\tint x = c * tileWidth;\n\t\t\t\t\tint y = r * tileHeight;\n\t\t\t\t\t// converting 2d point to isometic\n\t\t\t\t\tPoint pos = twoDToIso(new Point(x, y));\n\t\t\t\t\t// setting the wall direction in the level data\n\t\t\t\t\tif(r==levelBlocks.length-1){\n\t\t\t\t\t\t// west wall\n\t\t\t\t\t\tb = new Wall('W', pos.x+50, pos.y-170);\n\t\t\t\t\t} else if(c==levelBlocks.length-1){\n\t\t\t\t\t\t// south wall\n\t\t\t\t\t\tb = new Wall('S', pos.x+50, pos.y-170);\n\t\t\t\t\t} else if(r==0){\n\t\t\t\t\t\t// east wall\n\t\t\t\t\t\tb = new Wall('E', pos.x+50, pos.y-170);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// north wall\n\t\t\t\t\t\tb = new Wall('N', pos.x+50, pos.y-170);\n\t\t\t\t\t}\n\t\t\t\t\tallWalls.add((Wall) b);\n\t\t\t\t\t// adding blocks in order for painters algorithm\n\t\t\t\t\tblocks.add(b);\n\t\t\t\t\tlevelBlocks[c][r] = b;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "b537418706fe2579a75b7154248bd741", "score": "0.70819646", "text": "public void createLevel()\n\t{\n\t\t//Bottom\n\t\tfor(int xx = 0; xx < Main.WIDTH+32; xx += 32)\n\t\t{\n\t\t\taddObject(new Block(xx, Main.HEIGHT-32, ObjectID.Block));\n\t\t}\n\t\t//Right Wall\n\t\tfor(int yy = 0; yy < Main.HEIGHT+32; yy += 32)\n\t\t{\n\t\t\taddObject(new Block(Main.WIDTH - 32, yy, ObjectID.Block));\n\t\t}\n\t\t//Left Wall\n\t\tfor(int yy = 0; yy < Main.HEIGHT+32; yy += 32)\n\t\t{\n\t\t\taddObject(new Block(0, yy, ObjectID.Block));\n\t\t}\n\t\t//Middle Wall\n\t\tfor(int xx = 160; xx < Main.WIDTH - 160; xx += 32)\n\t\t{\n\t\t\taddObject(new Block(xx, 450, ObjectID.Block));\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "cb8fc72ef5e3d28d23cf14c8a8ebb0a0", "score": "0.6907903", "text": "private void setTiles() {\r\n\t\t// Set blocked (non-buildable) tiles\r\n\t\t\r\n\t\t// starting with the ocean to the north\r\n\t\tgameBoard.get(0).get(0).setBuild(false);\r\n\t\tgameBoard.get(1).get(0).setBuild(false);\r\n\t\tgameBoard.get(2).get(0).setBuild(false);\r\n\t\tgameBoard.get(3).get(0).setBuild(false);\r\n\t\tgameBoard.get(4).get(0).setBuild(false);\r\n\t\tgameBoard.get(5).get(0).setBuild(false);\r\n\t\tgameBoard.get(6).get(0).setBuild(false);\r\n\t\tgameBoard.get(7).get(0).setBuild(false);\r\n\t\tgameBoard.get(8).get(0).setBuild(false);\r\n\t\tgameBoard.get(9).get(0).setBuild(false);\r\n\t\tgameBoard.get(10).get(0).setBuild(false);\r\n\t\tgameBoard.get(11).get(0).setBuild(false);\r\n\t\tgameBoard.get(12).get(0).setBuild(false);\r\n\t\tgameBoard.get(13).get(0).setBuild(false);\r\n\t\tgameBoard.get(14).get(0).setBuild(false);\r\n\t\tgameBoard.get(15).get(0).setBuild(false);\r\n\t\tgameBoard.get(16).get(0).setBuild(false);\r\n\t\tgameBoard.get(17).get(0).setBuild(false);\r\n\t\tgameBoard.get(18).get(0).setBuild(false);\r\n\t\tgameBoard.get(19).get(0).setBuild(false);\r\n\t\t\r\n\t\tgameBoard.get(0).get(1).setBuild(false);\r\n\t\tgameBoard.get(1).get(1).setBuild(false);\r\n\t\tgameBoard.get(2).get(1).setBuild(false);\r\n\t\tgameBoard.get(3).get(1).setBuild(false);\r\n\t\tgameBoard.get(4).get(1).setBuild(false);\r\n\t\tgameBoard.get(5).get(1).setBuild(false);\r\n\t\tgameBoard.get(6).get(1).setBuild(false);\r\n\t\tgameBoard.get(7).get(1).setBuild(false);\r\n\t\tgameBoard.get(8).get(1).setBuild(false);\r\n\t\tgameBoard.get(9).get(1).setBuild(false);\r\n\t\tgameBoard.get(10).get(1).setBuild(false);\r\n\t\tgameBoard.get(11).get(1).setBuild(false);\r\n\t\tgameBoard.get(12).get(1).setBuild(false);\r\n\t\tgameBoard.get(13).get(1).setBuild(false);\r\n\t\tgameBoard.get(14).get(1).setBuild(false);\r\n\t\tgameBoard.get(15).get(1).setBuild(false);\r\n\t\tgameBoard.get(16).get(1).setBuild(false);\r\n\t\tgameBoard.get(17).get(1).setBuild(false);\r\n\t\tgameBoard.get(18).get(1).setBuild(false);\r\n\t\tgameBoard.get(19).get(1).setBuild(false);\r\n\t\t\r\n\t\tgameBoard.get(0).get(2).setBuild(false);\r\n\t\tgameBoard.get(1).get(2).setBuild(false);\r\n\t\tgameBoard.get(2).get(2).setBuild(false);\r\n\t\tgameBoard.get(3).get(2).setBuild(false);\r\n\t\tgameBoard.get(4).get(2).setBuild(false);\r\n\t\tgameBoard.get(5).get(2).setBuild(false);\r\n\t\tgameBoard.get(6).get(2).setBuild(false);\r\n\t\tgameBoard.get(7).get(2).setBuild(false);\r\n\t\tgameBoard.get(8).get(2).setBuild(false);\r\n\t\tgameBoard.get(9).get(2).setBuild(false);\r\n\t\tgameBoard.get(10).get(2).setBuild(false);\r\n\t\tgameBoard.get(11).get(2).setBuild(false);\r\n\t\tgameBoard.get(12).get(2).setBuild(false);\r\n\t\tgameBoard.get(13).get(2).setBuild(false);\r\n\t\tgameBoard.get(14).get(2).setBuild(false);\r\n\t\tgameBoard.get(15).get(2).setBuild(false);\r\n\t\tgameBoard.get(16).get(2).setBuild(false);\r\n\t\tgameBoard.get(17).get(2).setBuild(false);\r\n\t\tgameBoard.get(18).get(2).setBuild(false);\r\n\t\tgameBoard.get(19).get(2).setBuild(false);\r\n\t\t\r\n\t\t// south-east corner tree\r\n\t\tgameBoard.get(0).get(13).setBuild(false);\r\n\t\tgameBoard.get(0).get(14).setBuild(false);\r\n\r\n\t\t// trees immediately west of SPAWN2\r\n\t\tgameBoard.get(3).get(13).setBuild(false);\r\n\t\tgameBoard.get(4).get(13).setBuild(false);\r\n\t\tgameBoard.get(3).get(14).setBuild(false);\r\n\t\tgameBoard.get(4).get(14).setBuild(false);\r\n\t\tgameBoard.get(5).get(14).setBuild(false);\r\n\t\tgameBoard.get(6).get(14).setBuild(false);\r\n\t\tgameBoard.get(7).get(14).setBuild(false);\r\n\r\n\t\t// tree south of the paths near where the diverge and combine\r\n\t\tgameBoard.get(11).get(12).setBuild(false);\r\n\t\tgameBoard.get(11).get(11).setBuild(false);\r\n\t\tgameBoard.get(12).get(12).setBuild(false);\r\n\t\tgameBoard.get(12).get(11).setBuild(false);\r\n\r\n\t\t// tree south of U-turn heading for final approach to base\r\n\t\tgameBoard.get(17).get(14).setBuild(false);\r\n\t\tgameBoard.get(16).get(14).setBuild(false);\r\n\t}", "title": "" }, { "docid": "610d0c53657ef5c5013165841e9e3695", "score": "0.6815425", "text": "public void initialize() {\n //set Background\n this.addSprite(this.level.getBackground());\n //truck the score\n ScoreTrackingListener scoreListener = new ScoreTrackingListener(this.showScore.getScore());\n //create the Blocks pattern\n this.blockRemover = new BlockRemover(this, new Counter(this.level.numberOfBlocksToRemove()));\n for (Block object : this.level.blocks()) {\n object.addHitListener(scoreListener);\n object.addHitListener(this.blockRemover);\n object.addToGame(this);\n }\n //create the Walls.\n this.levleName = new LevelIndicator(new Block(new Rectangle(new Point((WIDTH / 3) * 2, 0), WIDTH / 3,\n BORDER_WIDTH), Color.WHITE), this.level.levelName());\n Block borderUp = new Block(new Rectangle(new Point(0, 0 + BORDER_WIDTH), WIDTH, BORDER_WIDTH), Color.gray);\n Block borderRight = new Block(new Rectangle(new Point(WIDTH - BORDER_WIDTH, BORDER_WIDTH),\n BORDER_WIDTH, HEIGHT - BORDER_WIDTH), Color.gray);\n Block borderLeft = new Block(new Rectangle(new Point(0, BORDER_WIDTH),\n BORDER_WIDTH, HEIGHT - BORDER_WIDTH), Color.gray);\n Block borderDown = new Block(new Rectangle(new Point(0, HEIGHT + 1), WIDTH, BORDER_WIDTH), Color.gray);\n this.ballRemover = new BallRemover(this, new Counter(BALLSNUM));\n borderDown.addHitListener(this.ballRemover);\n this.lifeLeft.addToGame(this);\n this.levleName.addToGame(this);\n this.showScore.addToGame(this);\n borderUp.addToGame(this);\n borderDown.addToGame(this);\n borderRight.addToGame(this);\n borderLeft.addToGame(this);\n this.running = !shouldStop();\n }", "title": "" }, { "docid": "84978667f207746281a783af847203c1", "score": "0.6807697", "text": "public Level() {\n\t\trand = new Random();\n\t\tgameEntities = new Hashtable<String, GameEntity>();\n\t\tgrid = new Tile[MAPHEIGHT][MAPWIDTH];\n\t\tfillGridForDefaultMap();\n\t}", "title": "" }, { "docid": "1e9104ad576f1f949966651d39494c41", "score": "0.678449", "text": "public void init() {\n for (int x = 0; x < Game.HORIZONTAL_AMOUNT; x++) {\n for (int y = 0; y < Game.VERTICAL_AMOUNT; y++) {\n COORDINATES.add(new Coordinate(x, y));\n }\n }\n\n // Fill the entire array with the value of -1 in order to track the 'empty' level tiles.\n for (Coordinate c : COORDINATES) {\n LEVEL[c.getX()][c.getY()] = -1;\n }\n\n // Generate the level according to the difficulty setting.\n switch (DIFFICULTY) {\n case TEST:\n generateTest();\n break;\n case EASY:\n generateEasy();\n break;\n case NORMAL:\n generateNormal();\n break;\n case HARD:\n generateHard();\n break;\n case IMPOSSIBLE:\n generateImpossible();\n break;\n }\n\n generatePoints();\n }", "title": "" }, { "docid": "30e4cff3fa17bf4c9238f8560bf7d55b", "score": "0.66629684", "text": "private void loadWorld(int xBlock, int yBlock)\n {\n int x, y = 220,screenSpawn=13;\n if(yBlock!=0)\n {\n y=20;\n screenSpawn=18;\n }\n for(int i=yBlock; i < (yBlock+screenSpawn); i++)\n {\n x=20;\n for(int j = xBlock; j <(xBlock+27)&&j<600; j++)\n {\n if(map[i][j]!=0)\n addObject(new Block(i,j,map[i][j]),x,y);\n x+=40;\n }\n y+=40;\n }\n for(int i=yBlock; i < (yBlock+screenSpawn); i++)\n {\n x=20;\n for(int j = xBlock; j <(xBlock+27)&&j<600; j++)\n {\n if(map[i][j]==0)\n {\n // Monsters are spawned.\n if(Greenfoot.getRandomNumber(100) < 25)\n {\n addObject(new Charger(), x, y);\n } \n else if(Greenfoot.getRandomNumber(100) > 25 && Greenfoot.getRandomNumber(100) < 50)\n {\n addObject(new Spider(), x, y);\n } \n else if(Greenfoot.getRandomNumber(100) > 50 && Greenfoot.getRandomNumber(100) < 75)\n {\n addObject(new Dragonfly(), x, y);\n }\n }\n }\n }\n loadedWorld = true;\n }", "title": "" }, { "docid": "66c48c1e9b24a8add6e163c05c16f9a8", "score": "0.6638619", "text": "public void Init() \n { \n\tBlockCell.Init( GameControl.IMAGE_BLOCK_CELLS, \n (int)(BlockGameEngine.CELL_WIDTH_PIXELS * GameControl.ImageScaleRelative_Default_Res[GameControl.IMAGE_BLOCK_CELLS]), \n (int)(BlockGameEngine.CELL_HEIGHT_PIXELS * GameControl.ImageScaleRelative_Default_Res[GameControl.IMAGE_BLOCK_CELLS]), 0 );\n\t\n\t CreateMenuA();\n\t \n GameGlobals.BackDrop = new SimpleBackGround();\n GameGlobals.BackDrop.SetProperties( SimpleBackGround.STYLE_PICTURE_TILED, Color.rgb(0,100,0), GameControl.IMAGE_TILES_BACKGROUND, \n GameGlobals.BACKGROUND_TILE_WIDTH_PIXELS, GameGlobals.BACKGROUND_TILE_HEIGHT_PIXELS);\t \n \n GameGlobals.ChangeBackGround(); \n BlockCell.ChangeRow(gg.CellLookIndex); \n }", "title": "" }, { "docid": "476fceeeb5c58abdd312ba650541adfd", "score": "0.6622912", "text": "private void createNewMap(){\n\t\tfor (int i = 0; i < defaultBlockHeight; i++) {\n\t\t\tArrayList<Block> currentBlockRow = new ArrayList<Block>();\n\t\t\tfor (int j = 0; j < defaultBlockLength; j++) {\n\t\t\t\t//currentBlockRow.add(Blocks.EARTH_BLOCK.clone(j*64, 1200-(i+1)*64));\n\t\t\t\t//System.out.println(\"x: \"+j*64+\" y: \"+ (1200-(i+1)*64));\n\t\t\t}\n\t\t//\tTerrain.get().addBlockRow(currentBlockRow);\n\t\t}\n\t}", "title": "" }, { "docid": "e7a991f221c7d341a89f08f04c9a6697", "score": "0.661232", "text": "@Override\n\tprotected void buildUniverse() \n\t{\n\t\tITexture tile = gfx.LoadTexture(\"gfx/Environment/grass.png\", 1);\n\t\t\n\t\t// create a tile drawing class for drawing a portion of the level.\n\t\tTileDraw tileTexture = new TileDraw(tile);\n\t\t// draw an 8x8 array of tiles.\n\t\ttileTexture.setRows(8);\n\t\ttileTexture.setCols(8);\n\t\t// make a 30x30 array of 8x8 arrays totaling 57,600 tiles!\n\t\tfor(int i = -5; i < 5; i++)\n\t\t{\n\t\t\tfor(int j = -5; j < 5; j++)\n\t\t\t{\n\t\t\t\t// create a tileArrayNode\n\t\t\t\tGameObject tileObj = new GameObject();\n\t\t\t\t// set it to draw an array of tiles\n\t\t\t\ttileObj.setDrawingInterface(tileTexture);\n\t\t\t\t// translate it to line up with other tiles\n\t\t\t\ttileObj.translate(i*8, j*8);\n\t\t\t\t// set its proxemity so it doesn't get drawn unless it needs to. \n\t\t\t\t// (without this game would not be playable).\n\t\t\t\ttileObj.setProxemityBounds(new AABB(8,8));\n\t\t\t\t// add it to the background\n\t\t\t\tbackgroundNode.addChild(tileObj);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 20; i++)\n\t\t{\n\t\t\t\n\t\t\tWall w1 = new Wall(this);\n\t\t\tw1.setStartingLoc(-10, -10 + i);\n\t\t\taddEntity(w1);\n\t\t\tWall w2 = new Wall(this);\n\t\t\tw2.setStartingLoc(10, 10 - i);\n\t\t\taddEntity(w2);\n\t\t\tWall w3 = new Wall(this);\n\t\t\tw3.setStartingLoc(-10 + i, 10);\n\t\t\taddEntity(w3);\n\t\t\tWall w4 = new Wall(this);\n\t\t\tw4.setStartingLoc(10 - i, -10);\n\t\t\taddEntity(w4);\n\t\t\t\n\t\t\t\n\t\t}\n\t\tKillPlayer k1 = new KillPlayer(this);\n\t\tk1.setBounds(new AABB(1,20));\n\t\tk1.setStartingLoc(-10.5f, 0);\n\t\taddEntity(k1);\n\t\tKillPlayer k2 = new KillPlayer(this);\n\t\tk2.setBounds(new AABB(1,20));\n\t\tk2.setStartingLoc(10.5f, 0);\n\t\taddEntity(k2);\n\t\tKillPlayer k3 = new KillPlayer(this);\n\t\tk3.setBounds(new AABB(20,1));\n\t\tk3.setStartingLoc(0, 10.5f);\n\t\taddEntity(k3);\n\t\tKillPlayer k4 = new KillPlayer(this);\n\t\tk4.setBounds(new AABB(20, 1));\n\t\tk4.setStartingLoc(0, -10.5f);\n\t\taddEntity(k4);\n\t\t\n\t\tGraveYard g = new GraveYard(this);\n\t\tg.setStartingLoc(5, -6f);\n\t\t//addEntity(g);\n\n\t\tfor(int i = -4; i < 5; i++)\n\t\t{\n\t\t\tGate gate = new Gate(this);\n\t\t\tgate.setStartingLoc(-10, (float)i * .31f + 1f);\n\t\t\taddEntity(gate);\n\t\t\tCollision[] c = CollisionDetection.getCollisions(gate.getRootNode(), getHandle());\n\t\t\tfor(int j = 0; j < c.length; j++)\n\t\t\t{\n\t\t\t\tc[j].collidingObject.getEntity().destroy();\n\t\t\t}\n\t\t}\n\t\t\n\n\t\tfor(int i = -4; i < 5; i++)\n\t\t{\n\t\t\tGate gate = new Gate(this);\n\t\t\tgate.setStartingLoc(10, (float)i * .31f + 1);\n\t\t\taddEntity(gate);\n\t\t\tCollision[] c = CollisionDetection.getCollisions(gate.getRootNode(), getHandle());\n\t\t\tfor(int j = 0; j < c.length; j++)\n\t\t\t{\n\t\t\t\tc[j].collidingObject.getEntity().destroy();\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tBuilding b1 = new Building(this);\n\t\tb1.setStartingLoc(-7, 5);\n\t\tb1.setBlend(.5f);\n\t\tb1.setColor(new Vector4f(.2f,.2f,.4f,1));\n\t\tBuilding b2 = new Building(this);\n\t\tb2.setStartingLoc(0, 5);\n\t\tb2.setBlend(.5f);\n\t\tb2.setColor(new Vector4f(.2f,.4f,.2f,1));\n\t\tBuilding b3 = new Building(this);\n\t\tb3.setStartingLoc(7, 5);\n\t\tb3.setBlend(.5f);\n\t\tb3.setColor(new Vector4f(.4f,.2f,.2f,1));\n\t\tfor(int i = -25; i < 25; i++)\n\t\t{\n\t\t\tRoadSegment r = new RoadSegment(this);\n\t\t\tr.setStartingLoc(i*3, 1f);\n\t\t}\n\t\tfor(int i = 0; i < 20; i++)\n\t\t{\n\t\t\tTreeLeaves t = new TreeLeaves(this);\n\t\t\tt.setStartingLoc((float)(Math.random())*10-10, (float)(Math.random())*10-10);\n\t\t\t\n\t\t\tt.getRootNode().setBoundingBox(new AABB(3,3));\n\t\t\tif(CollisionDetection.getCollisions(t.getRootNode(), getHandle()).length > 0)\n\t\t\t{\n\t\t\t\tt.destroy();\n\t\t\t}\n\t\t\tt.getRootNode().setBoundingBox(new AABB(.65f,.65f));\n\t\t}\n\t\t\n\n\t}", "title": "" }, { "docid": "da65f8bfb07f2bf8c5b695e341dfed58", "score": "0.65811324", "text": "public void init() {\n mines.putMines();\n\n for (int i = 0; i < tiles.length; i++) {\n tiles[i] = Tile.NEW;\n }\n\n blownUp = false;\n }", "title": "" }, { "docid": "e18cc44b07fcb683744e10dec2608ba8", "score": "0.65556574", "text": "private void initTiles() {\n System.out.println(\"Initializing tiles...\");\n for (int y = 0; y < NO_OF_TILES_Y; y++) {\n for (int x = 0; x < NO_OF_TILES_X; x++) {\n// tiles[y][x] = new Tile(x * Tile.TILE_WIDTH, y * Tile.TILE_HEIGHT,\n// Tile.TILE_WIDTH, Tile.TILE_HEIGHT);\n\n tiles[y][x] = new Tile(\n x * Tile.TILE_WIDTH + Tile.TILE_WIDTH / 2,\n y * Tile.TILE_HEIGHT + Tile.TILE_HEIGHT / 2,\n new Point(x, y));\n }\n }\n }", "title": "" }, { "docid": "3b568e8cfbfd7672bfaef5aee4d415c7", "score": "0.650679", "text": "public void initGame() {\r\n johnnyLeft = 3;\r\n power = 0;\r\n for (int i = 0; i < N_BLOCKS * N_BLOCKS; i++) {\r\n screenData[i] = levelData[i];\r\n }\r\n for (int j = 0; j < NUM_OF_TREASURES; j++) {\r\n randomTreasureLocation();\r\n }\r\n johnny_x = 14 * BLOCK_SIZE;\r\n johnny_y = 14 * BLOCK_SIZE;\r\n johnnyd_x = 0;\r\n johnnyd_y = 0;\r\n req_dx = 0;\r\n req_dy = 0;\r\n view_dx = 0;\r\n view_dy = 0;\r\n dying = false;\r\n }", "title": "" }, { "docid": "9fd69e9c7e48c425ef7017028ea40c0d", "score": "0.64933187", "text": "private void placeInitialTiles() {\r\n\t\tList<Tile> initialTiles = TileBankOperations.getInitialTiles();\r\n\t\tfor (int i = 0; i < initialTiles.size(); i++) {\r\n\t\t\tRandomPlayer obj = new RandomPlayer();\r\n\t\t\tBlocks block = obj.getRandomEmptyBlock();\r\n\t\t\tblock.setTile(initialTiles.get(i).getTile_name());\r\n\t\t\tplaceobjectonboard(block);\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "bac433e4a0b9dd4ad84b17b11710ec49", "score": "0.64799935", "text": "private void initBlockTerrain(){\r\n CubesTestAssets.registerBlocks();\r\n CubesSettings blockSettings = CubesTestAssets.getSettings(this);\r\n blockSettings.setBlockSize(5);\r\n blockTerrain = new BlockTerrainControl(blockSettings, new Vector3Int(2, 1, 2));\r\n blockTerrain.setBlockArea(new Vector3Int(0, 0, 0), new Vector3Int(32, 1, 32), CubesTestAssets.BLOCK_STONE);\r\n blockTerrain.setBlocksFromNoise(new Vector3Int(0, 1, 0), new Vector3Int(32, 5, 32), 0.5f, CubesTestAssets.BLOCK_GRASS);\r\n terrainNode = new Node();\r\n terrainNode.addControl(blockTerrain);\r\n rootNode.attachChild(terrainNode);\r\n }", "title": "" }, { "docid": "53675d8d37e6e2c8449f23ac34390f16", "score": "0.64782834", "text": "public void generateMap() {\n\t\tSystem.out.println(\"Creating a world with \" + numColumns + \" columns and \" + numRows + \" rows.\");\n\n\t\tmap = new Tile[numColumns][numRows];\n\n\t\t// set up the tiles and ores\n\t\tfor (int columnIterator = 0; columnIterator < numColumns; columnIterator++) {\n\n\t\t\tmap[columnIterator] = new Tile[numRows]; // each column in map will have -numRows- number of tiles\n\n\t\t\t// determine the ground height of the current row\n\t\t\t// NOTE: the Math.sin() is there just to create mountainlike features\n\t\t\t// and should be replaced if a better terrain generation function\n\t\t\t// is implemented\n\t\t\tint localGroundHeight = (int) (Math.sin(columnIterator) * (Math.random() * 3) + minGroundDepth);\n\n\t\t\t// instantiate the tiles in the column\n\t\t\tfor (int rowIterator = 0; rowIterator < map[columnIterator].length; rowIterator++) {\n\n\t\t\t\t// set the x/y coordinates of each tile as well as the side length\n\t\t\t\t// TODO Fix the below code so I don't have to use + sideLength / 8 in the y\n\t\t\t\t// value\n\t\t\t\tmap[columnIterator][rowIterator] = new Tile(columnIterator * sideLength,\n\t\t\t\t\t\tdisplayHeight - sideLength - (rowIterator + 1) * sideLength + sideLength / 8, sideLength);\n\n\t\t\t\t// give all the blocks at or below the row's local ground height a solid state\n\t\t\t\t// and appropriate color\n\t\t\t\tif (rowIterator <= localGroundHeight) {\n\t\t\t\t\tmap[columnIterator][rowIterator].setType(\"DIRT\");\n\t\t\t\t} else {\n\t\t\t\t\tmap[columnIterator][rowIterator].setState(\"AIR\");\n\t\t\t\t\tmap[columnIterator][rowIterator].setColor(skyColor);\n\t\t\t\t}\n\n\t\t\t\t// top block of the column is a dirt block, all other blocks below it\n\t\t\t\t// have a chance of being an ore(diamond, coal, etc.)\n\t\t\t\tif (rowIterator <= localGroundHeight - 1) {\n\t\t\t\t\tspawnOre(columnIterator, rowIterator);\n\t\t\t\t}\n\t\t\t}\n\t\t\tmap[columnIterator][0].setType(\"INVINCIBLE\"); // bottom block can't be destroyed by player\n\t\t}\n\n\t\tspawnTrees();\n\t}", "title": "" }, { "docid": "22b9be54a82982f2724424efcd365902", "score": "0.6471403", "text": "abstract void initialize(TETile[][] worldP, TETile floorP, TETile wallP);", "title": "" }, { "docid": "3e4ce22c9fc9ac3d487e4b1ac6b38c29", "score": "0.6395197", "text": "public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n\n _ball = new Ball();\n _ball.getImage().scale(25, 25);\n this.addObject(_ball, 100, 100);\n\n _board = new Board();\n _board.getImage().scale(100, 20);\n int posBoardX = getWidth() / 2;\n int posBoardY = getHeight() - 15;\n this.addObject(_board, posBoardX, posBoardY);\n \n initBlocks();\n\n }", "title": "" }, { "docid": "a1760297f7763b9b72d34991aaa124be", "score": "0.6368654", "text": "private void init(int level)\n {\n //level based #conditions set the enemies #array, items array, and map to whatever they should be based on that level\n if (level == 1)\n {\n horiEnemies = new int[][]{{816,1152, 1032, 48*8, 6},{526,1200, 1032, 192, 9},{574,872, 630, 96, 6}};\n vertEnemies = new int[][]{{0, 96, 1152, 80, -4},{0, 384, 1440, 192, -6},{0, 384, 1536, 192, 6},\n {0, 384, 1632, 192, -6},{0, 384, 1728, 192, 6},{0, 192, 1968, 192, 5},\n {0, 192, 2208, 0, -5}};\n items = new int[][]{{960,48*2,1},{2352,48,1}};\n map = new byte[][] \n { {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,0,0,0,0,0,0,0,0,3,0,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,0,2,2,2,2,2,2,2,2,2,2,0,2,2,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,2,2,0,0,0,0,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,1,0,0,0,2,0,0,0,2,0,0,0,0,0,2,2,0,4,4,0,0,0,0,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,0,0,0,0,0,0,0,0,4,4,0,4,4,0,0,0,1,0,0,0,4,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,3,0,0,0,3,0,0,0,3,0,1,1,2,2,0,0,0,0,0,0,0,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,2,0,0,0,2,0,0,0,2,0,3,0,2,2,3,0,0,0,0,0,0,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}};\n }\n else if (level == 2)\n {\n horiEnemies = new int[][]{{574,872, 630, 96, 6},{720,1056,800,384,6},{1632,2112, 1700, 240,9},\n {1728,2160, 1800, 0,6}};\n vertEnemies = new int[][]{{144,240,912, 200, -4}, {0, 384, 1296, 192, 6},{0,240, 1536, 192, 4}};\n items = new int[][]{{1392,96,1},{1776,48,1}};\n map = new byte[][] \n { {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,0,0,0,0,0,0,0,0,0,4,4,4,4,2,2,1,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,0,0,2,1,1,1,2,2,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,2,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,2,1,2,1,1,0,0,0,2,3,3,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,3,0,0,0,0,0,0,0,0,0,0,0,4,2,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,2,1,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,1,2,0,1,0,3,0,2,0,1,0,0,0,4,0,1,0,2,0,0,0,0,2,2,1,1,1,2,0,4,0,2,2,2,2,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,0,0,0,2,2,1,0,1,0,2,2,0,0,0,3,2,0,4,0,0,3,0,3,0,0,0,0,0,0,1,0,0,0,0,1,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,0,0,0,0,4,0,0,0,1,1,4,0,0,0,2,0,0,0,0,0,2,2,2,0,0,2,2,2,1,1,1,1,0,0,1,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,2,2,0,0,0,0,1,1,1,1,0,0,4,4,1,4,2,4,4,2,0,1,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,1,1,2,2,0,0,0,0,0,0,0,0,3,4,4,0,0,0,3,2,1,1,1,2,0,0,0,0,0,0,0,0,0,0,1,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,0,0,1,1,1,0,3,2,3,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,1,0,1,1,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}};\n }\n else if (level == 3)\n {\n horiEnemies = new int[][]{{1104,1632, 1200, 144,6},{1584,1920, 1600, 96, 10},{2016,2352, 2300, 96,6},\n {1872,2064,2000, 144,6}};\n vertEnemies = new int[][]{{0,336, 576, 200, 6}};\n items = new int[][]{{2352,96,1},{672,48,1}};\n map = new byte[][] \n { {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,4,0,0,4,1,0,0,0,0,0,0,0,0,0,0,0,0,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,0,0,1,2,2,0,1,2,0,0,1,1,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,0,0,0,0,0,0,1,4,0,0,2,2,0,0,0,0,3,0,0,0,0,0,0,0,2,3,0,1,0,0,0,0,0,2,0,0,0,1,2,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,2,0,0,1,2,1,0,0,0,0,1,2,0,1,0,0,2,2,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,0,0,1,1,0,0,0,0,0,0,1,1,0,4,2,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,0,0,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,4,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,2,2,1,1,2,3,0,0,0,1,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,2,0,0,0,0,0,0,0,0,0,0,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,1,1,1,1,1,1,3,3,3,3,1,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}};\n }\n else if (level == 4)\n {\n horiEnemies = new int[][]{{528,912, 600, 336,6},{528,768, 672, 240,-6},{1104,1440,1200,384,6},\n {1920,2352,2000,384,6},{1584,1920,1700,48,6}};\n vertEnemies = new int[][]{{96,192, 912, 160, 4}};\n items = new int[][]{{2112,384,1},{1584,48,1}};\n map = new byte[][] \n { {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,1,1,2,4,2,1,2,2,2,0,0,4,0,0,0,0,0,0,0,0,1,1,0,0,2,1,2,2,2,1,0,0,0,0,0,0,0,0,0,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,1,2,0,0,4,0,1,4,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,1,0,0,0,0,0,2,0,0,0,0,0,0,3,0,0,0,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,0,0,1,2,2,2,1,1,0,1,0,2,2,0,0,1,1,2,0,0,0,1,2,1,2,1,1,2,1,1,0,0,0,2,1,2,0,0,2,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,2,0,0,0,0,0,0,2,0,1,0,0,0,0,0,3,0,3,0,0,0,2,0,0,0,0,0,0,0,0,2,0,0,0,2,0,0,0,0,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,0,0,0,0,0,0,0,0,0,1,0,0,0,3,0,2,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,2,0,0,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,1,2,1,2,2,1,0,0,0,1,0,0,0,4,0,4,0,0,2,0,0,0,0,0,0,0,0,2,2,0,0,0,0,0,1,0,4,0,0,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,0,0,0,0,0,0,0,0,0,1,3,0,0,0,0,2,1,2,1,0,3,2,0,0,0,3,0,0,4,0,1,2,2,1,2,0,0,2,0,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,0,0,0,0,1,0,0,2,2,2,2,0,0,0,0,0,0,0,0,0,1,2,3,3,0,2,2,1,2,0,0,0,0,0,0,0,0,0,0,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,1,1,1,0,4,0,2,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,2,2,1,1,1,0,2,0,1,1,0,1,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}};\n }\n //resets the x position of the background image and animation counter\n backX = -10;\n animCount = 0;\n }", "title": "" }, { "docid": "9cf51a94d1a8bcc59d31de108d8433be", "score": "0.63470364", "text": "private void init() {\n display = new Display(title, getWidth(), getHeight());\n Assets.init();\n Assets.Background.setLooping(true);\n Assets.Background.play();\n map = new Layout();\n map.generateWorld(15,25);\n minimumTime = (int)(Math.random()*3.0);\n\n\n menu = new Menu(this);\n grid = new NodeGrid(this);\n\n int playerX = (int) (Math.random() * map.getMaxWidth());\n int playerY = (int) (Math.random() * map.getMaxHeight());\n\n while (grid.getNode(playerY, playerX).isOccupied() ||\n !grid.getNode(playerY, playerX).isWalkable() ||\n map.getTileTexture(playerY, playerX).getId() == 17) {\n playerX = (int) (Math.random() * map.getMaxWidth());\n playerY = (int) (Math.random() * map.getMaxHeight());\n }\n player = new Player(playerX * 32, playerY * 32, TILEWIDTH, TILEHEIGHT, this, 1);\n\n\n\n multi = new Multipliers(this);\n multi.setAvgTurns();\n\n enemies = new ArrayList<>();\n enemyGen();\n \n items = new ArrayList<>();\n itemGen();\n\n enemyBullets = new ArrayList<>();\n\n guardiaChance = 100;\n copChance = 0;\n swatChance = 0;\n\n pause = new Pause(this);\n hud = new HUD(this);\n\n multi.setInitialEnemies(enemies.size());\n\n display.getJframe().addKeyListener(keyManager);\n display.getJframe().addMouseListener(mouseManager);\n display.getCanvas().addMouseListener(mouseManager);\n }", "title": "" }, { "docid": "7682a5f222853496d27490c8f30db7ed", "score": "0.62971795", "text": "public CityBlockManager(float appWorldWidth){\n\t\tcityBlocks = new ArrayList<CityBlock>(); // Initialize\n\t\tfloat blockWidth = appWorldWidth / blocks; // Calculate block width\n\t\t\n\t\t// Spreads all city blocks evenly along the bottom of the world\n\t\tfor(int i = 0; i < blocks; i++)\n\t\t{\n\t\t\t//cityBlocks.add(new CityBlock(-blockWidth*((-blocks/2f)+i), blockWidth));\n\t\t\tcityBlocks.add(new CityBlock((i - (blocks/2))*blockWidth + blockWidth/2, blockWidth/2));\n\t\t}\n\t}", "title": "" }, { "docid": "7cdbb2964e47b9e0a5e4d9476cbbc62f", "score": "0.62716997", "text": "private void loadMap() {\r\n\r\n\t\t\t// opens the level files\r\n\t\t\t// each file contains (on seperate lines):\r\n\t\t\t// -a letter (a for small level, b for big)\r\n\t\t\t// -for numbers for the starting x,y coordiantes\r\n\t\t\t// and the finish x,y coordinates, each on seperate\r\n\t\t\t// lines.\r\n\t\t\t// -an array of chars as a tile map:\r\n\t\t\t// '1' means block\r\n\t\t\t// '0' means nothing\r\n\t\t\t// 'u'/'d'/'l'/'r' means a ramp\r\n\t\t\t//\t\t'b' means iceblock\r\n\t\t\tInputStream ins = null;\r\n\r\n\t\t\ttry {\r\n\t\t\t\t// new input stream created\r\n\t\t\t\tins = AndroidGame.fileIO.readAsset(\"level\" + String.valueOf(Slide.level) + \".txt\");\r\n\t\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(ins));\r\n\t\t\t\t//Read File Line By Line\r\n\t\t\t\tString strLine = br.readLine();\r\n\r\n\t\t\t\tif (strLine.charAt(0) == 'a') {\r\n\t\t\t\t\tsize = 'a';\r\n\t\t\t\t}\r\n\t\t\t\telse if (strLine.charAt(0) == 'b') {\r\n\t\t\t\t\tsize = 'b';\r\n\t\t\t\t}\r\n\t\t\t\telse if (strLine.charAt(0) == 'c') {\r\n\t\t\t\t\tsize = 'c';\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//start of level x and y\r\n\t\t\t\tstrLine = br.readLine();\r\n\t\t\t\tstartX = Integer.valueOf(strLine);\r\n\r\n\t\t\t\tthis.block.setCenterX(startX);\r\n\r\n\t\t\t\tstrLine = br.readLine();\r\n\t\t\t\tstartY = Integer.valueOf(strLine);\r\n\t\t\t\tthis.block.setCenterY(startY);\r\n\r\n\t\t\t\t//end of level x and y\r\n\t\t\t\tstrLine = br.readLine();\r\n\t\t\t\tendX = Integer.valueOf(strLine);\r\n\r\n\t\t\t\tstrLine = br.readLine();\r\n\t\t\t\tendY = Integer.valueOf(strLine);\r\n\r\n\t\t\t\tif (size == 'a') {\r\n\t\t\t\t\tisize = 8;\r\n\t\t\t\t\tjsize = 32;\r\n\t\t\t\t\txincrement = 60;\r\n\t\t\t\t\tyincrement = 50;\r\n\t\t\t\t}\r\n\t\t\t\telse if (size == 'b') {\r\n\t\t\t\t\tisize = 12;\r\n\t\t\t\t\tjsize = 50;\r\n\t\t\t\t\txincrement = 40;\r\n\t\t\t\t\tyincrement = 32;\r\n\t\t\t\t}\r\n\t\t\t\telse if (size == 'c') {\r\n\t\t\t\t\tisize = 16;\r\n\t\t\t\t\tjsize = 64;\r\n\t\t\t\t\txincrement = 30;\r\n\t\t\t\t\tyincrement = 25;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfor (int i = 0; i<isize; i++) {\r\n\t\t\t\t\tstrLine = br.readLine();\r\n\t\t\t\t\tfor (int j = 0; j<jsize; j+=2){\r\n\t\t\t\t\t\t//game tiles:\r\n\t\t\t\t\t\t//no block\r\n\t\t\t\t\t\tif (strLine.charAt(j) == '0') {\r\n\t\t\t\t\t\t\tarray[i][counter] = '0';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//block\r\n\t\t\t\t\t\telse if (strLine.charAt(j) == '1') {\r\n\t\t\t\t\t\t\tarray[i][counter] = '1';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//up ramp\r\n\t\t\t\t\t\telse if (strLine.charAt(j) == 'u') {\r\n\t\t\t\t\t\t\tarray[i][counter] = 'u';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//down ramp\r\n\t\t\t\t\t\telse if (strLine.charAt(j) == 'd') {\r\n\t\t\t\t\t\t\tarray[i][counter] = 'd';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//left ramp\r\n\t\t\t\t\t\telse if (strLine.charAt(j) == 'l') {\r\n\t\t\t\t\t\t\tarray[i][counter] = 'l';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//right ramp\r\n\t\t\t\t\t\telse if (strLine.charAt(j) == 'r') {\r\n\t\t\t\t\t\t\tarray[i][counter] = 'r';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//on switch\r\n\t\t\t\t\t\telse if (strLine.charAt(j) == 'g') {\r\n\t\t\t\t\t\t\tarray[i][counter] = 'g';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//off switch\r\n\t\t\t\t\t\telse if (strLine.charAt(j) == 'o') {\r\n\t\t\t\t\t\t\tarray[i][counter] = 'o';\r\n\t\t\t\t\t\t\t//since these switches are off, we add one to\r\n\t\t\t\t\t\t\t//switchcounter. the exit to the level will only\r\n\t\t\t\t\t\t\t//be active if all the switches are on (when\r\n\t\t\t\t\t\t\t//switchcounter = 0\r\n\t\t\t\t\t\t\tswitchcounter++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//ice block\r\n\t\t\t\t\t\telse if (strLine.charAt(j) == 'b') {\r\n\t\t\t\t\t\t\ticeblockarray[iceblockcounter].setCenterX(i*xincrement);\r\n\t\t\t\t\t\t\ticeblockarray[iceblockcounter].setCenterY(counter*yincrement);\r\n\t\t\t\t\t\t\ticeblockcounter++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcounter++;\r\n\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t\tcounter = 0;\r\n\t\t\t\t\t//sets the number of switches that need to be turned on\r\n\t\t\t\t\tblock.setSwitches(switchcounter);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//i set the rest of the blocks out of bounds so we know not to draw them\r\n\t\t\t\tfor (int i = iceblockcounter; i<20; i++) {\r\n\t\t\t\t\ticeblockarray[i].setCenterX(1000);\r\n\t\t\t\t\ticeblockarray[i].setCenterY(1000);\r\n\t\t\t\t\ticeblockarray[i].setSize(size, isize, jsize, xincrement, yincrement);\r\n\t\t\t\t}\r\n\r\n\t\t\t\ticeblockcounter = 0;\r\n\r\n\t\t\t\t//sends the completed level to the block class\r\n\t\t\t\t//(for collision detection purposes)\r\n\t\t\t\tblock.setArray(array);\r\n\t\t\t\tblock.setSize(size, isize, jsize, xincrement, yincrement);\r\n\r\n\t\t\t\t//Close the input stream\r\n\t\t\t\tins.close();\r\n\r\n\t\t\t}\r\n\t\t\tcatch (IOException e) {\r\n\t\t\t\tSystem.out.println(\"no\");\r\n\t\t\t}\r\n\r\n\t\tcurrentlevel = level;\r\n\t\t//increase currentlevel to indicate we are in a new level\r\n\r\n\t\t//we change the reset variable back to false\r\n\t\tresetlevel = false;\r\n\t\tscore = 0;\r\n\t\tswitchcounter = 0;\r\n\t}", "title": "" }, { "docid": "37ed32bb2a5a5646384950270ddd883a", "score": "0.62650096", "text": "public Board(int[][] blocks) {\n N = blocks.length;\n tiles = new int[N][N];\n for (int i = 0; i < N; ++i) {\n for (int j = 0; j < N; ++j) {\n tiles[i][j] = blocks[i][j];\n if (tiles[i][j] == 0) {\n blankX = i;\n blankY = j;\n }\n }\n }\n }", "title": "" }, { "docid": "858e705365c65ae512c2c052ce78ce0e", "score": "0.6255947", "text": "@RequiresApi(api = Build.VERSION_CODES.HONEYCOMB)\r\n private void createBlock(){\r\n spawnLocationX = rand.nextInt(4);\r\n spawnLocationY = rand.nextInt(4);\r\n number = (rand.nextInt(2)+1)*2;\r\n spawnLocationX = (225*spawnLocationX)-80;\r\n spawnLocationY = (225*spawnLocationY)-80;\r\n while (isTarget(spawnLocationX,spawnLocationY)) {\r\n spawnLocationX = rand.nextInt(4);\r\n spawnLocationY = rand.nextInt(4);\r\n number = (rand.nextInt(2)+1)*2;\r\n spawnLocationX = (225*spawnLocationX)-80;\r\n spawnLocationY = (225*spawnLocationY)-80;\r\n }\r\n final boolean[] moving = {false};\r\n newBlock = new GameBlock(myActivity,myContext,myRL,spawnLocationX, spawnLocationY,number,this); //Create a block at the top left of the screen\r\n addBlock(newBlock);\r\n if (!toAdd.isEmpty()){\r\n blockList.addAll(toAdd);\r\n toAdd.clear();\r\n }\r\n if (!toRemove.isEmpty()){\r\n blockList.removeAll(toRemove);\r\n toRemove.clear();\r\n }\r\n if (blockList.size() == 16){\r\n lose = true;\r\n endGame = true;\r\n }\r\n }", "title": "" }, { "docid": "3bf2b69e9ab2a9d8e1ad05d581548d28", "score": "0.6245331", "text": "public static final void init() {\n GameRegistry.registerBlock(SolidRed = new SolidRedBlocks(\"SolidRedBlocks\", Material.rock), ItemSolidBlock.class, \"SolidRedBlocks\");\n GameRegistry.registerBlock(SolidPurple = new SolidPurpleBlocks(\"SolidPurpleBlocks\", Material.rock), ItemSolidBlock.class, \"SolidPurpleBlocks\");\n GameRegistry.registerBlock(SolidBlue = new SolidBlueBlocks(\"SolidBlueBlocks\", Material.rock), ItemSolidBlock.class, \"SolidBlueBlocks\");\n GameRegistry.registerBlock(SolidCyan = new SolidCyanBlocks(\"SolidCyanBlocks\", Material.rock), ItemSolidBlock2.class, \"SolidCyanBlocks\");\n GameRegistry.registerBlock(SolidGreen = new SolidGreenBlocks(\"SolidGreenBlocks\", Material.rock), ItemSolidBlock.class, \"SolidGreenBlocks\");\n GameRegistry.registerBlock(SolidYellow = new SolidYellowBlocks(\"SolidYellowBlocks\", Material.rock), ItemSolidBlock.class, \"SolidYellowBlocks\");\n GameRegistry.registerBlock(SolidBrown = new SolidBrownBlocks(\"SolidBrownBlocks\", Material.rock), ItemSolidBlock.class, \"SolidBrownBlocks\");\n GameRegistry.registerBlock(SolidGray = new SolidGrayBlocks(\"SolidGrayBlocks\", Material.rock), ItemSolidBlock.class, \"SolidGrayBlocks\");\n\n //Registering The Diagonally Dotted Blocks\n GameRegistry.registerBlock(DiagonallyDottedRed = new DiagonallyDottedRed(\"DiagonallyDottedRed\", Material.wood), ItemSolidBlock.class, \"DiagonallyDottedRed\");\n GameRegistry.registerBlock(DiagonallyDottedPurple = new DiagonallyDottedPurple(\"DiagonallyDottedPurple\", Material.wood), ItemSolidBlock.class, \"DiagonallyDottedPurple\");\n GameRegistry.registerBlock(DiagonallyDottedBlue = new DiagonallyDottedBlue(\"DiagonallyDottedBlue\", Material.wood), ItemSolidBlock.class, \"DiagonallyDottedBlue\");\n GameRegistry.registerBlock(DiagonallyDottedCyan = new DiagonallyDottedCyan(\"DiagonallyDottedCyan\", Material.wood), ItemSolidBlock2.class, \"DiagonallyDottedCyan\");\n GameRegistry.registerBlock(DiagonallyDottedGreen = new DiagonallyDottedGreen(\"DiagonallyDottedGreen\", Material.wood), ItemSolidBlock.class, \"DiagonallyDottedGreen\");\n GameRegistry.registerBlock(DiagonallyDottedYellow = new DiagonallyDottedYellow(\"DiagonallyDottedYellow\", Material.wood), ItemSolidBlock.class, \"DiagonallyDottedYellow\");\n GameRegistry.registerBlock(DiagonallyDottedBrown = new DiagonallyDottedBrown(\"DiagonallyDottedBrown\", Material.wood), ItemSolidBlock.class, \"DiagonallyDottedBrown\");\n GameRegistry.registerBlock(DiagonallyDottedGray = new DiagonallyDottedGray(\"DiagonallyDottedGray\", Material.wood), ItemSolidBlock.class, \"DiagonallyDottedGray\");\n \n //Registering The Dotted Blocks\n GameRegistry.registerBlock(DottedRed = new DottedRed(\"DottedRed\", Material.wood), ItemSolidBlock.class, \"DottedRed\");\n GameRegistry.registerBlock(DottedPurple = new DottedPurple(\"DottedPurple\", Material.wood), ItemSolidBlock.class, \"DottedPurple\");\n GameRegistry.registerBlock(DottedBlue = new DottedBlue(\"DottedBlue\", Material.wood), ItemSolidBlock.class, \"DottedBlue\");\n GameRegistry.registerBlock(DottedCyan = new DottedCyan(\"DottedCyan\", Material.wood), ItemSolidBlock2.class, \"DottedCyan\");\n GameRegistry.registerBlock(DottedGreen = new DottedGreen(\"DottedGreen\", Material.wood), ItemSolidBlock.class, \"DottedGreen\");\n GameRegistry.registerBlock(DottedYellow = new DottedYellow(\"DottedYellow\", Material.wood), ItemSolidBlock.class, \"DottedYellow\");\n GameRegistry.registerBlock(DottedBrown = new DottedBrown(\"DottedBrown\", Material.wood), ItemSolidBlock.class, \"DottedBrown\");\n GameRegistry.registerBlock(DottedGray = new DottedGray(\"DottedGray\", Material.wood), ItemSolidBlock.class, \"DottedGray\");\n \n //Registering The Striped Blocks\n GameRegistry.registerBlock(StripedRed = new StripedRed(\"StripedRed\", Material.wood), ItemSolidBlock.class, \"StripedRed\");\n GameRegistry.registerBlock(StripedPurple = new StripedPurple(\"StripedPurple\", Material.wood), ItemSolidBlock.class, \"StripedPurple\");\n GameRegistry.registerBlock(StripedBlue = new StripedBlue(\"StripedBlue\", Material.wood), ItemSolidBlock.class, \"StripedBlue\");\n GameRegistry.registerBlock(StripedCyan = new StripedCyan(\"StripedCyan\", Material.wood), ItemSolidBlock2.class, \"StripedCyan\");\n GameRegistry.registerBlock(StripedGreen = new StripedGreen(\"StripedGreen\", Material.wood), ItemSolidBlock.class, \"StripedGreen\");\n GameRegistry.registerBlock(StripedYellow = new StripedYellow(\"StripedYellow\", Material.wood), ItemSolidBlock.class, \"StripedYellow\");\n GameRegistry.registerBlock(StripedBrown = new StripedBrown(\"StripedBrown\", Material.wood), ItemSolidBlock.class, \"StripedBrown\");\n GameRegistry.registerBlock(StripedGray = new StripedGray(\"StripedGray\", Material.wood), ItemSolidBlock.class, \"StripedGray\");\n \n\t\t// Registering The Floral Blocks\n GameRegistry.registerBlock(FloralRed = new FloralRed(\"FloralRed\", Material.wood), ItemSolidBlock.class, \"FloralRed\");\n GameRegistry.registerBlock(FloralPurple = new FloralPurple(\"FloralPurple\", Material.wood), ItemSolidBlock.class, \"FloralPurple\");\n GameRegistry.registerBlock(FloralBlue = new FloralBlue(\"FloralBlue\", Material.wood), ItemSolidBlock.class, \"FloralBlue\");\n GameRegistry.registerBlock(FloralCyan = new FloralCyan(\"FloralCyan\", Material.wood), ItemSolidBlock2.class, \"FloralCyan\");\n GameRegistry.registerBlock(FloralGreen = new FloralGreen(\"FloralGreen\", Material.wood), ItemSolidBlock.class, \"FloralGreen\");\n GameRegistry.registerBlock(FloralYellow = new FloralYellow(\"FloralYellow\", Material.wood), ItemSolidBlock.class, \"FloralYellow\");\n GameRegistry.registerBlock(FloralBrown = new FloralBrown(\"FloralBrown\", Material.wood), ItemSolidBlock.class, \"FloralBrown\");\n GameRegistry.registerBlock(FloralGray = new FloralGray(\"FloralGray\", Material.wood), ItemSolidBlock.class, \"FloralGray\");\n \n // Registering The Damask Blocks\n GameRegistry.registerBlock(DamaskRed = new DamaskRed(\"DamaskRed\", Material.wood), ItemSolidBlock.class, \"DamaskRed\");\n GameRegistry.registerBlock(DamaskPurple = new DamaskPurple(\"DamaskPurple\", Material.wood), ItemSolidBlock.class, \"DamaskPurple\");\n GameRegistry.registerBlock(DamaskBlue = new DamaskBlue(\"DamaskBlue\", Material.wood), ItemSolidBlock.class, \"DamaskBlue\");\n GameRegistry.registerBlock(DamaskCyan = new DamaskCyan(\"DamaskCyan\", Material.wood), ItemSolidBlock2.class, \"DamaskCyan\");\n GameRegistry.registerBlock(DamaskGreen = new DamaskGreen(\"DamaskGreen\", Material.wood), ItemSolidBlock.class, \"DamaskGreen\");\n GameRegistry.registerBlock(DamaskYellow = new DamaskYellow(\"DamaskYellow\", Material.wood), ItemSolidBlock.class, \"DamaskYellow\");\n GameRegistry.registerBlock(DamaskBrown = new DamaskBrown(\"DamaskBrown\", Material.wood), ItemSolidBlock.class, \"DamaskBrown\");\n GameRegistry.registerBlock(DamaskGray = new DamaskGray(\"DamaskGray\", Material.wood), ItemSolidBlock.class, \"DamaskGray\");\n \n\t\t// Registering The Clay Blocks\n GameRegistry.registerBlock(ClayRed = new ClayRed(\"ClayRed\", Material.rock), ItemSolidBlock.class, \"ClayRed\");\n GameRegistry.registerBlock(ClayPurple = new ClayPurple(\"ClayPurple\", Material.rock), ItemSolidBlock.class, \"ClayPurple\");\n GameRegistry.registerBlock(ClayBlue = new ClayBlue(\"ClayBlue\", Material.rock), ItemSolidBlock.class, \"ClayBlue\");\n GameRegistry.registerBlock(ClayCyan = new ClayCyan(\"ClayCyan\", Material.rock), ItemSolidBlock2.class, \"ClayCyan\");\n GameRegistry.registerBlock(ClayGreen = new ClayGreen(\"ClayGreen\", Material.rock), ItemSolidBlock.class, \"ClayGreen\");\n GameRegistry.registerBlock(ClayYellow = new ClayYellow(\"ClayYellow\", Material.rock), ItemSolidBlock.class, \"ClayYellow\");\n GameRegistry.registerBlock(ClayBrown = new ClayBrown(\"ClayBrown\", Material.rock), ItemSolidBlock.class, \"ClayBrown\");\n GameRegistry.registerBlock(ClayGray = new ClayGray(\"ClayGray\", Material.rock), ItemSolidBlock.class, \"ClayGray\");\n \n // Registering The Brick Blocks\n GameRegistry.registerBlock(BrickRed = new BrickRed(\"BrickRed\", Material.rock), ItemSolidBlock.class, \"BrickRed\");\n GameRegistry.registerBlock(BrickPurple = new BrickPurple(\"BrickPurple\", Material.rock), ItemSolidBlock.class, \"BrickPurple\");\n GameRegistry.registerBlock(BrickBlue = new BrickBlue(\"BrickBlue\", Material.rock), ItemSolidBlock.class, \"BrickBlue\");\n GameRegistry.registerBlock(BrickCyan = new BrickCyan(\"BrickCyan\", Material.rock), ItemSolidBlock2.class, \"BrickCyan\");\n GameRegistry.registerBlock(BrickGreen = new BrickGreen(\"BrickGreen\", Material.rock), ItemSolidBlock.class, \"BrickGreen\");\n GameRegistry.registerBlock(BrickYellow = new BrickYellow(\"BrickYellow\", Material.rock), ItemSolidBlock.class, \"BrickYellow\");\n GameRegistry.registerBlock(BrickBrown = new BrickBrown(\"BrickBrown\", Material.rock), ItemSolidBlock.class, \"BrickBrown\");\n GameRegistry.registerBlock(BrickGray = new BrickGray(\"BrickGray\", Material.rock), ItemSolidBlock.class, \"BrickGray\");\n \n // Registering The Stone Brick Blocks\n GameRegistry.registerBlock(StoneBrickRed = new StoneBrickRed(\"StoneBrickRed\", Material.rock), ItemSolidBlock.class, \"StoneBrickRed\");\n GameRegistry.registerBlock(StoneBrickPurple = new StoneBrickPurple(\"StoneBrickPurple\", Material.rock), ItemSolidBlock.class, \"StoneBrickPurple\");\n GameRegistry.registerBlock(StoneBrickBlue = new StoneBrickBlue(\"StoneBrickBlue\", Material.rock), ItemSolidBlock.class, \"StoneBrickBlue\");\n GameRegistry.registerBlock(StoneBrickCyan = new StoneBrickCyan(\"StoneBrickCyan\", Material.rock), ItemSolidBlock2.class, \"StoneBrickCyan\");\n GameRegistry.registerBlock(StoneBrickGreen = new StoneBrickGreen(\"StoneBrickGreen\", Material.rock), ItemSolidBlock.class, \"StoneBrickGreen\");\n GameRegistry.registerBlock(StoneBrickYellow = new StoneBrickYellow(\"StoneBrickYellow\", Material.rock), ItemSolidBlock.class, \"StoneBrickYellow\");\n GameRegistry.registerBlock(StoneBrickBrown = new StoneBrickBrown(\"StoneBrickBrown\", Material.rock), ItemSolidBlock.class, \"StoneBrickBrown\");\n GameRegistry.registerBlock(StoneBrickGray = new StoneBrickGray(\"StoneBrickGray\", Material.rock), ItemSolidBlock.class, \"StoneBrickGray\");\n \n // Registering The Coloured Brick Blocks\n GameRegistry.registerBlock(ColouredBrickRed = new ColouredBrickRed(\"ColouredBrickRed\", Material.rock), ItemSolidBlock.class, \"ColouredBrickRed\");\n GameRegistry.registerBlock(ColouredBrickPurple = new ColouredBrickPurple(\"ColouredBrickPurple\", Material.rock), ItemSolidBlock.class, \"ColouredBrickPurple\");\n GameRegistry.registerBlock(ColouredBrickBlue = new ColouredBrickBlue(\"ColouredBrickBlue\", Material.rock), ItemSolidBlock.class, \"ColouredBrickBlue\");\n GameRegistry.registerBlock(ColouredBrickCyan = new ColouredBrickCyan(\"ColouredBrickCyan\", Material.rock), ItemSolidBlock2.class, \"ColouredBrickCyan\");\n GameRegistry.registerBlock(ColouredBrickGreen = new ColouredBrickGreen(\"ColouredBrickGreen\", Material.rock), ItemSolidBlock.class, \"ColouredBrickGreen\");\n GameRegistry.registerBlock(ColouredBrickYellow = new ColouredBrickYellow(\"ColouredBrickYellow\", Material.rock), ItemSolidBlock.class, \"ColouredBrickYellow\");\n GameRegistry.registerBlock(ColouredBrickBrown = new ColouredBrickBrown(\"ColouredBrickBrown\", Material.rock), ItemSolidBlock.class, \"ColouredBrickBrown\");\n GameRegistry.registerBlock(ColouredBrickGray = new ColouredBrickGray(\"ColouredBrickGray\", Material.rock), ItemSolidBlock.class, \"ColouredBrickGray\");\n \n // Registering The Stone Lamp Blocks\n GameRegistry.registerBlock(StoneLampRed = new StoneLampRed(\"StoneLampRed\", Material.rock), ItemSolidBlock.class, \"StoneLampRed\");\n GameRegistry.registerBlock(StoneLampPurple = new StoneLampPurple(\"StoneLampPurple\", Material.rock), ItemSolidBlock.class, \"StoneLampPurple\");\n GameRegistry.registerBlock(StoneLampBlue = new StoneLampBlue(\"StoneLampBlue\", Material.rock), ItemSolidBlock.class, \"StoneLampBlue\");\n GameRegistry.registerBlock(StoneLampCyan = new StoneLampCyan(\"StoneLampCyan\", Material.rock), ItemSolidBlock2.class, \"StoneLampCyan\");\n GameRegistry.registerBlock(StoneLampGreen = new StoneLampGreen(\"StoneLampGreen\", Material.rock), ItemSolidBlock.class, \"StoneLampGreen\");\n GameRegistry.registerBlock(StoneLampYellow = new StoneLampYellow(\"StoneLampYellow\", Material.rock), ItemSolidBlock.class, \"StoneLampYellow\");\n GameRegistry.registerBlock(StoneLampBrown = new StoneLampBrown(\"StoneLampBrown\", Material.rock), ItemSolidBlock.class, \"StoneLampBrown\");\n GameRegistry.registerBlock(StoneLampGray = new StoneLampGray(\"StoneLampGray\", Material.rock), ItemSolidBlock.class, \"StoneLampGray\");\n \n // Registering The Rippled Blocks\n GameRegistry.registerBlock(RippledRed = new RippledRed(\"RippledRed\", Material.wood), ItemSolidBlock.class, \"RippledRed\");\n GameRegistry.registerBlock(RippledPurple = new RippledPurple(\"RippledPurple\", Material.wood), ItemSolidBlock.class, \"RippledPurple\");\n GameRegistry.registerBlock(RippledBlue = new RippledBlue(\"RippledBlue\", Material.wood), ItemSolidBlock.class, \"RippledBlue\");\n GameRegistry.registerBlock(RippledCyan = new RippledCyan(\"RippledCyan\", Material.wood), ItemSolidBlock2.class, \"RippledCyan\");\n GameRegistry.registerBlock(RippledGreen = new RippledGreen(\"RippledGreen\", Material.wood), ItemSolidBlock.class, \"RippledGreen\");\n GameRegistry.registerBlock(RippledYellow = new RippledYellow(\"RippledYellow\", Material.wood), ItemSolidBlock.class, \"RippledYellow\");\n GameRegistry.registerBlock(RippledBrown = new RippledBrown(\"RippledBrown\", Material.wood), ItemSolidBlock.class, \"RippledBrown\");\n GameRegistry.registerBlock(RippledGray = new RippledGray(\"RippledGray\", Material.wood), ItemSolidBlock.class, \"RippledGray\");\n \n // Registering The Fancy Tiles\n GameRegistry.registerBlock(FancyTilesRed = new FancyTilesRed(\"FancyTilesRed\", Material.wood), ItemSolidBlock.class, \"FancyTilesRed\");\n GameRegistry.registerBlock(FancyTilesPurple = new FancyTilesPurple(\"FancyTilesPurple\", Material.wood), ItemSolidBlock.class, \"FancyTilesPurple\");\n GameRegistry.registerBlock(FancyTilesBlue = new FancyTilesBlue(\"FancyTilesBlue\", Material.wood), ItemSolidBlock.class, \"FancyTilesBlue\");\n GameRegistry.registerBlock(FancyTilesCyan = new FancyTilesCyan(\"FancyTilesCyan\", Material.wood), ItemSolidBlock2.class, \"FancyTilesCyan\");\n GameRegistry.registerBlock(FancyTilesGreen = new FancyTilesGreen(\"FancyTilesGreen\", Material.wood), ItemSolidBlock.class, \"FancyTilesGreen\");\n GameRegistry.registerBlock(FancyTilesYellow = new FancyTilesYellow(\"FancyTilesYellow\", Material.wood), ItemSolidBlock.class, \"FancyTilesYellow\");\n GameRegistry.registerBlock(FancyTilesBrown = new FancyTilesBrown(\"FancyTilesBrown\", Material.wood), ItemSolidBlock.class, \"FancyTilesBrown\");\n GameRegistry.registerBlock(FancyTilesGray = new FancyTilesGray(\"FancyTilesGray\", Material.wood), ItemSolidBlock.class, \"FancyTilesGray\");\n \n // Registering the Stamp Pattern Blocks\n GameRegistry.registerBlock(Stamp = new Stamp(\"Stamp\", Material.wood), ItemSolidBlock3.class, \"Stamp\");\n \n // Registering the Jewel Pattern Blocks\n GameRegistry.registerBlock(Jewel = new Jewel(\"Jewel\", Material.wood), ItemSolidBlock3.class, \"Jewel\");\n \n // Registering The Wood Planks\n GameRegistry.registerBlock(WoodPlankRed = new WoodPlankRed(\"WoodPlankRed\", Material.wood), ItemSolidBlock.class, \"WoodPlankRed\");\n GameRegistry.registerBlock(WoodPlankPurple = new WoodPlankPurple(\"WoodPlankPurple\", Material.wood), ItemSolidBlock.class, \"WoodPlankPurple\");\n GameRegistry.registerBlock(WoodPlankBlue = new WoodPlankBlue(\"WoodPlankBlue\", Material.wood), ItemSolidBlock.class, \"WoodPlankBlue\");\n GameRegistry.registerBlock(WoodPlankCyan = new WoodPlankCyan(\"WoodPlankCyan\", Material.wood), ItemSolidBlock2.class, \"WoodPlankCyan\");\n GameRegistry.registerBlock(WoodPlankGreen = new WoodPlankGreen(\"WoodPlankGreen\", Material.wood), ItemSolidBlock.class, \"WoodPlankGreen\");\n GameRegistry.registerBlock(WoodPlankYellow = new WoodPlankYellow(\"WoodPlankYellow\", Material.wood), ItemSolidBlock.class, \"WoodPlankYellow\");\n GameRegistry.registerBlock(WoodPlankBrown = new WoodPlankBrown(\"WoodPlankBrown\", Material.wood), ItemSolidBlock.class, \"WoodPlankBrown\");\n GameRegistry.registerBlock(WoodPlankGray = new WoodPlankGray(\"WoodPlankGray\", Material.wood), ItemSolidBlock.class, \"WoodPlankGray\");\n \n // Registering The Wool Blocks\n GameRegistry.registerBlock(WoolRed = new WoolRed(\"WoolRed\", Material.cloth), ItemSolidBlock.class, \"WoolRed\");\n GameRegistry.registerBlock(WoolPurple = new WoolPurple(\"WoolPurple\", Material.cloth), ItemSolidBlock.class, \"WoolPurple\");\n GameRegistry.registerBlock(WoolBlue = new WoolBlue(\"WoolBlue\", Material.cloth), ItemSolidBlock.class, \"WoolBlue\");\n GameRegistry.registerBlock(WoolCyan = new WoolCyan(\"WoolCyan\", Material.cloth), ItemSolidBlock2.class, \"WoolCyan\");\n GameRegistry.registerBlock(WoolGreen = new WoolGreen(\"WoolGreen\", Material.cloth), ItemSolidBlock.class, \"WoolGreen\");\n GameRegistry.registerBlock(WoolYellow = new WoolYellow(\"WoolYellow\", Material.cloth), ItemSolidBlock.class, \"WoolYellow\");\n GameRegistry.registerBlock(WoolBrown = new WoolBrown(\"WoolBrown\", Material.cloth), ItemSolidBlock.class, \"WoolBrown\");\n GameRegistry.registerBlock(WoolGray = new WoolGray(\"WoolGray\", Material.cloth), ItemSolidBlock.class, \"WoolGray\");\n \n // Registering The Checkered Wool Blocks\n GameRegistry.registerBlock(CheckeredWoolRed = new CheckeredWoolRed(\"CheckeredWoolRed\", Material.cloth), ItemSolidBlock.class, \"CheckeredWoolRed\");\n GameRegistry.registerBlock(CheckeredWoolPurple = new CheckeredWoolPurple(\"CheckeredWoolPurple\", Material.cloth), ItemSolidBlock.class, \"CheckeredWoolPurple\");\n GameRegistry.registerBlock(CheckeredWoolBlue = new CheckeredWoolBlue(\"CheckeredWoolBlue\", Material.cloth), ItemSolidBlock.class, \"CheckeredWoolBlue\");\n GameRegistry.registerBlock(CheckeredWoolCyan = new CheckeredWoolCyan(\"CheckeredWoolCyan\", Material.cloth), ItemSolidBlock2.class, \"CheckeredWoolCyan\");\n GameRegistry.registerBlock(CheckeredWoolGreen = new CheckeredWoolGreen(\"CheckeredWoolGreen\", Material.cloth), ItemSolidBlock.class, \"CheckeredWoolGreen\");\n GameRegistry.registerBlock(CheckeredWoolYellow = new CheckeredWoolYellow(\"CheckeredWoolYellow\", Material.cloth), ItemSolidBlock.class, \"CheckeredWoolYellow\");\n GameRegistry.registerBlock(CheckeredWoolBrown = new CheckeredWoolBrown(\"CheckeredWoolBrown\", Material.cloth), ItemSolidBlock.class, \"CheckeredWoolBrown\");\n GameRegistry.registerBlock(CheckeredWoolGray = new CheckeredWoolGray(\"CheckeredWoolGray\", Material.cloth), ItemSolidBlock.class, \"CheckeredWoolGray\");\n \n // Registering The Aura Lamp Blocks\n GameRegistry.registerBlock(AuraLampRed = new AuraLampRed(\"AuraLampRed\", Material.glass), ItemSolidBlock.class, \"AuraLampRed\");\n GameRegistry.registerBlock(AuraLampPurple = new AuraLampPurple(\"AuraLampPurple\", Material.glass), ItemSolidBlock.class, \"AuraLampPurple\");\n GameRegistry.registerBlock(AuraLampBlue = new AuraLampBlue(\"AuraLampBlue\", Material.glass), ItemSolidBlock.class, \"AuraLampBlue\");\n GameRegistry.registerBlock(AuraLampCyan = new AuraLampCyan(\"AuraLampCyan\", Material.glass), ItemSolidBlock2.class, \"AuraLampCyan\");\n GameRegistry.registerBlock(AuraLampGreen = new AuraLampGreen(\"AuraLampGreen\", Material.glass), ItemSolidBlock.class, \"AuraLampGreen\");\n GameRegistry.registerBlock(AuraLampYellow = new AuraLampYellow(\"AuraLampYellow\", Material.glass), ItemSolidBlock.class, \"AuraLampYellow\");\n GameRegistry.registerBlock(AuraLampBrown = new AuraLampBrown(\"AuraLampBrown\", Material.glass), ItemSolidBlock.class, \"AuraLampBrown\");\n GameRegistry.registerBlock(AuraLampGray = new AuraLampGray(\"AuraLampGray\", Material.glass), ItemSolidBlock.class, \"AuraLampGray\");\n \n // Registering The Tinted Glass Blocks\n GameRegistry.registerBlock(TintedGlassRed = new TintedGlassRed(\"TintedGlassRed\", Material.glass), ItemSolidBlock.class, \"TintedGlassRed\");\n GameRegistry.registerBlock(TintedGlassPurple = new TintedGlassPurple(\"TintedGlassPurple\", Material.glass), ItemSolidBlock.class, \"TintedGlassPurple\");\n GameRegistry.registerBlock(TintedGlassBlue = new TintedGlassBlue(\"TintedGlassBlue\", Material.glass), ItemSolidBlock.class, \"TintedGlassBlue\");\n GameRegistry.registerBlock(TintedGlassCyan = new TintedGlassCyan(\"TintedGlassCyan\", Material.glass), ItemSolidBlock2.class, \"TintedGlassCyan\");\n GameRegistry.registerBlock(TintedGlassGreen = new TintedGlassGreen(\"TintedGlassGreen\", Material.glass), ItemSolidBlock.class, \"TintedGlassGreen\");\n GameRegistry.registerBlock(TintedGlassYellow = new TintedGlassYellow(\"TintedGlassYellow\", Material.glass), ItemSolidBlock.class, \"TintedGlassYellow\");\n GameRegistry.registerBlock(TintedGlassBrown = new TintedGlassBrown(\"TintedGlassBrown\", Material.glass), ItemSolidBlock.class, \"TintedGlassBrown\");\n GameRegistry.registerBlock(TintedGlassGray = new TintedGlassGray(\"TintedGlassGray\", Material.glass), ItemSolidBlock.class, \"TintedGlassGray\"); \n \n // Registering The Textured Glass Blocks\n GameRegistry.registerBlock(TexturedGlassRed = new TexturedGlassRed(\"TexturedGlassRed\", Material.glass), ItemSolidBlock.class, \"TexturedGlassRed\");\n GameRegistry.registerBlock(TexturedGlassPurple = new TexturedGlassPurple(\"TexturedGlassPurple\", Material.glass), ItemSolidBlock.class, \"TexturedGlassPurple\");\n GameRegistry.registerBlock(TexturedGlassBlue = new TexturedGlassBlue(\"TexturedGlassBlue\", Material.glass), ItemSolidBlock.class, \"TexturedGlassBlue\");\n GameRegistry.registerBlock(TexturedGlassCyan = new TexturedGlassCyan(\"TexturedGlassCyan\", Material.glass), ItemSolidBlock2.class, \"TexturedGlassCyan\");\n GameRegistry.registerBlock(TexturedGlassGreen = new TexturedGlassGreen(\"TexturedGlassGreen\", Material.glass), ItemSolidBlock.class, \"TexturedGlassGreen\");\n GameRegistry.registerBlock(TexturedGlassYellow = new TexturedGlassYellow(\"TexturedGlassYellow\", Material.glass), ItemSolidBlock.class, \"TexturedGlassYellow\");\n GameRegistry.registerBlock(TexturedGlassBrown = new TexturedGlassBrown(\"TexturedGlassBrown\", Material.glass), ItemSolidBlock.class, \"TexturedGlassBrown\");\n GameRegistry.registerBlock(TexturedGlassGray = new TexturedGlassGray(\"TexturedGlassGray\", Material.glass), ItemSolidBlock.class, \"TexturedGlassGray\"); \n \n // Registering The Frosted Glass Blocks\n GameRegistry.registerBlock(FrostedGlassRed = new FrostedGlassRed(\"FrostedGlassRed\", Material.glass), ItemSolidBlock.class, \"FrostedGlassRed\");\n GameRegistry.registerBlock(FrostedGlassPurple = new FrostedGlassPurple(\"FrostedGlassPurple\", Material.glass), ItemSolidBlock.class, \"FrostedGlassPurple\");\n GameRegistry.registerBlock(FrostedGlassBlue = new FrostedGlassBlue(\"FrostedGlassBlue\", Material.glass), ItemSolidBlock.class, \"FrostedGlassBlue\");\n GameRegistry.registerBlock(FrostedGlassCyan = new FrostedGlassCyan(\"FrostedGlassCyan\", Material.glass), ItemSolidBlock2.class, \"FrostedGlassCyan\");\n GameRegistry.registerBlock(FrostedGlassGreen = new FrostedGlassGreen(\"FrostedGlassGreen\", Material.glass), ItemSolidBlock.class, \"FrostedGlassGreen\");\n GameRegistry.registerBlock(FrostedGlassYellow = new FrostedGlassYellow(\"FrostedGlassYellow\", Material.glass), ItemSolidBlock.class, \"FrostedGlassYellow\");\n GameRegistry.registerBlock(FrostedGlassBrown = new FrostedGlassBrown(\"FrostedGlassBrown\", Material.glass), ItemSolidBlock.class, \"FrostedGlassBrown\");\n GameRegistry.registerBlock(FrostedGlassGray = new FrostedGlassGray(\"FrostedGlassGray\", Material.glass), ItemSolidBlock.class, \"FrostedGlassGray\");\n \n // Registering The Tinted Glass Panes\n GameRegistry.registerBlock(TintedPaneRed = new TintedPaneRed(), ItemSolidBlock.class, \"TintedPaneRed\");\n GameRegistry.registerBlock(TintedPanePurple = new TintedPanePurple(), ItemSolidBlock.class, \"TintedPanePurple\");\n GameRegistry.registerBlock(TintedPaneBlue = new TintedPaneBlue(), ItemSolidBlock.class, \"TintedPaneBlue\");\n GameRegistry.registerBlock(TintedPaneCyan = new TintedPaneCyan(), ItemSolidBlock2.class, \"TintedPaneCyan\");\n GameRegistry.registerBlock(TintedPaneGreen = new TintedPaneGreen(), ItemSolidBlock.class, \"TintedPaneGreen\");\n GameRegistry.registerBlock(TintedPaneYellow = new TintedPaneYellow(), ItemSolidBlock.class, \"TintedPaneYellow\");\n GameRegistry.registerBlock(TintedPaneBrown = new TintedPaneBrown(), ItemSolidBlock.class, \"TintedPaneBrown\");\n GameRegistry.registerBlock(TintedPaneGray = new TintedPaneGray(), ItemSolidBlock.class, \"TintedPaneGray\"); \n \n // Registering The Textured Glass Panes\n GameRegistry.registerBlock(TexturedPaneRed = new TexturedPaneRed(), ItemSolidBlock.class, \"TexturedPaneRed\");\n GameRegistry.registerBlock(TexturedPanePurple = new TexturedPanePurple(), ItemSolidBlock.class, \"TexturedPanePurple\");\n GameRegistry.registerBlock(TexturedPaneBlue = new TexturedPaneBlue(), ItemSolidBlock.class, \"TexturedPaneBlue\");\n GameRegistry.registerBlock(TexturedPaneCyan = new TexturedPaneCyan(), ItemSolidBlock2.class, \"TexturedPaneCyan\");\n GameRegistry.registerBlock(TexturedPaneGreen = new TexturedPaneGreen(), ItemSolidBlock.class, \"TexturedPaneGreen\");\n GameRegistry.registerBlock(TexturedPaneYellow = new TexturedPaneYellow(), ItemSolidBlock.class, \"TexturedPaneYellow\");\n GameRegistry.registerBlock(TexturedPaneBrown = new TexturedPaneBrown(), ItemSolidBlock.class, \"TexturedPaneBrown\");\n GameRegistry.registerBlock(TexturedPaneGray = new TexturedPaneGray(), ItemSolidBlock.class, \"TexturedPaneGray\"); \n \n // Registering The Frosted Glass Panes\n GameRegistry.registerBlock(FrostedPaneRed = new FrostedPaneRed(), ItemSolidBlock.class, \"FrostedPaneRed\");\n GameRegistry.registerBlock(FrostedPanePurple = new FrostedPanePurple(), ItemSolidBlock.class, \"FrostedPanePurple\");\n GameRegistry.registerBlock(FrostedPaneBlue = new FrostedPaneBlue(), ItemSolidBlock.class, \"FrostedPaneBlue\");\n GameRegistry.registerBlock(FrostedPaneCyan = new FrostedPaneCyan(), ItemSolidBlock2.class, \"FrostedPaneCyan\");\n GameRegistry.registerBlock(FrostedPaneGreen = new FrostedPaneGreen(), ItemSolidBlock.class, \"FrostedPaneGreen\");\n GameRegistry.registerBlock(FrostedPaneYellow = new FrostedPaneYellow(), ItemSolidBlock.class, \"FrostedPaneYellow\");\n GameRegistry.registerBlock(FrostedPaneBrown = new FrostedPaneBrown(), ItemSolidBlock.class, \"FrostedPaneBrown\");\n GameRegistry.registerBlock(FrostedPaneGray = new FrostedPaneGray(), ItemSolidBlock.class, \"FrostedPaneGray\"); \n \n // Registering The Wool Carpets\n GameRegistry.registerBlock(WoolCarpetRed = new WoolCarpetRed(\"WoolCarpetRed\", Material.carpet), ItemSolidBlock.class, \"WoolCarpetRed\");\n GameRegistry.registerBlock(WoolCarpetPurple = new WoolCarpetPurple(\"WoolCarpetPurple\", Material.carpet), ItemSolidBlock.class, \"WoolCarpetPurple\");\n GameRegistry.registerBlock(WoolCarpetBlue = new WoolCarpetBlue(\"WoolCarpetBlue\", Material.carpet), ItemSolidBlock.class, \"WoolCarpetBlue\");\n GameRegistry.registerBlock(WoolCarpetCyan = new WoolCarpetCyan(\"WoolCarpetCyan\", Material.carpet), ItemSolidBlock2.class, \"WoolCarpetCyan\");\n GameRegistry.registerBlock(WoolCarpetGreen = new WoolCarpetGreen(\"WoolCarpetGreen\", Material.carpet), ItemSolidBlock.class, \"WoolCarpetGreen\");\n GameRegistry.registerBlock(WoolCarpetYellow = new WoolCarpetYellow(\"WoolCarpetYellow\", Material.carpet), ItemSolidBlock.class, \"WoolCarpetYellow\");\n GameRegistry.registerBlock(WoolCarpetBrown = new WoolCarpetBrown(\"WoolCarpetBrown\", Material.carpet), ItemSolidBlock.class, \"WoolCarpetBrown\");\n GameRegistry.registerBlock(WoolCarpetGray = new WoolCarpetGray(\"WoolCarpetGray\", Material.carpet), ItemSolidBlock.class, \"WoolCarpetGray\");\n \n // Registering The Checkered Carpets\n GameRegistry.registerBlock(CheckeredCarpetRed = new CheckeredCarpetRed(\"CheckeredCarpetRed\", Material.carpet), ItemSolidBlock.class, \"CheckeredCarpetRed\");\n GameRegistry.registerBlock(CheckeredCarpetPurple = new CheckeredCarpetPurple(\"CheckeredCarpetPurple\", Material.carpet), ItemSolidBlock.class, \"CheckeredCarpetPurple\");\n GameRegistry.registerBlock(CheckeredCarpetBlue = new CheckeredCarpetBlue(\"CheckeredCarpetBlue\", Material.carpet), ItemSolidBlock.class, \"CheckeredCarpetBlue\");\n GameRegistry.registerBlock(CheckeredCarpetCyan = new CheckeredCarpetCyan(\"CheckeredCarpetCyan\", Material.carpet), ItemSolidBlock2.class, \"CheckeredCarpetCyan\");\n GameRegistry.registerBlock(CheckeredCarpetGreen = new CheckeredCarpetGreen(\"CheckeredCarpetGreen\", Material.carpet), ItemSolidBlock.class, \"CheckeredCarpetGreen\");\n GameRegistry.registerBlock(CheckeredCarpetYellow = new CheckeredCarpetYellow(\"CheckeredCarpetYellow\", Material.carpet), ItemSolidBlock.class, \"CheckeredCarpetYellow\");\n GameRegistry.registerBlock(CheckeredCarpetBrown = new CheckeredCarpetBrown(\"CheckeredCarpetBrown\", Material.carpet), ItemSolidBlock.class, \"CheckeredCarpetBrown\");\n GameRegistry.registerBlock(CheckeredCarpetGray = new CheckeredCarpetGray(\"CheckeredCarpetGray\", Material.carpet), ItemSolidBlock.class, \"CheckeredCarpetGray\");\n \n \n \n //OreDict Registration.\n OreDictionary.registerOre(\"solidWPBlocks\", new ItemStack(SolidRed, 1, OreDictionary.WILDCARD_VALUE));\n OreDictionary.registerOre(\"solidWPBlocks\", new ItemStack(SolidPurple, 1, OreDictionary.WILDCARD_VALUE));\n OreDictionary.registerOre(\"solidWPBlocks\", new ItemStack(SolidBlue, 1, OreDictionary.WILDCARD_VALUE));\n OreDictionary.registerOre(\"solidWPBlocks\", new ItemStack(SolidCyan, 1, OreDictionary.WILDCARD_VALUE));\n OreDictionary.registerOre(\"solidWPBlocks\", new ItemStack(SolidGreen, 1, OreDictionary.WILDCARD_VALUE));\n OreDictionary.registerOre(\"solidWPBlocks\", new ItemStack(SolidYellow, 1, OreDictionary.WILDCARD_VALUE));\n OreDictionary.registerOre(\"solidWPBlocks\", new ItemStack(SolidBrown, 1, OreDictionary.WILDCARD_VALUE));\n OreDictionary.registerOre(\"solidWPBlocks\", new ItemStack(SolidGray, 1, OreDictionary.WILDCARD_VALUE));\n \n\n\n \n }", "title": "" }, { "docid": "5b6c158d34e5a3a0593b3bed3a220262", "score": "0.6216038", "text": "private void gameInitialize()\r\n { \r\n\t// set to fullscreen to use the entire display or false\r\n // to only use the area inbetween the two bars on the \r\n // display\r\n\tsetFullScreenMode(true);\r\n\r\n // initialize our worldGroup \r\n // so we can add to it later\r\n worldGroup = new Group();\r\n \r\n try\r\n {\r\n // creating our menu system screens\r\n splashScreen = Image.createImage(\"/Menus/startgame/screen.png\");\r\n gameStartOptions = new Sprite(Image.createImage(\"/Menus/gameOptions240x68.png\"), 240, 68);\r\n gameStartOptions.setPosition(0, SCREEN_HEIGHT-gameStartOptions.getHeight());\r\n mRenderState = RENDERSTATE_STARTMENU; // set the starting render state\r\n\r\n // game won and game over screens\r\n gameOverScreen = Image.createImage(\"/Menus/gameover/Death.png\");\r\n gameWonScreen = Image.createImage(\"/Menus/gamewon/Win.png\");\r\n gameOptions = new Sprite(Image.createImage(\"/Menus/gameOptions240x68.png\"), 240, 68);\r\n gameOptions.setPosition(0, SCREEN_HEIGHT-gameOptions.getHeight());\r\n \r\n // now we load our 3D level and break it up into room\r\n // objects that we can mainpulate later\r\n Object3D[] buffer = Loader.load(\"/Level/Level.m3g\");\r\n for(int i = 0; i < buffer.length; i++)\r\n {\r\n if(buffer[i] instanceof World)\r\n {\r\n World worldObject = (World)buffer[i]; \r\n \r\n // Create the rooms and set bounding squares\r\n // on the room's x and z coordinates. This\r\n // will allow us to determine where if the \r\n // player is in each room. Notice the \r\n // over lap in some locations. This is \r\n // so when you walk into antoher room it \r\n // doesn't just appear \r\n room1 = new Room((Mesh)worldObject.find(5), 5, -10, -10, 12);\r\n room2 = new Room((Mesh)worldObject.find(22), 18.6f, -15, 6.09f, -1.1f);\r\n room3 = new Room((Mesh)worldObject.find(35), 28, -1.6f, 16.8f, 11);\r\n room4 = new Room((Mesh)worldObject.find(48), 20, -8.5f, 3.2f, 3.5f);\r\n \r\n // load in the doors as mesh objects\r\n door1 = (Mesh)worldObject.find(61);\r\n door2 = (Mesh)worldObject.find(74);\r\n door3 = (Mesh)worldObject.find(85);\r\n \r\n // Here we remove each object from the world\r\n // so each object no longer belongs to a parent\r\n // object.\r\n worldObject.removeChild(room1.getMesh());\r\n worldObject.removeChild(room2.getMesh());\r\n worldObject.removeChild(room3.getMesh());\r\n worldObject.removeChild(room4.getMesh());\r\n worldObject.removeChild(door1);\r\n worldObject.removeChild(door2);\r\n worldObject.removeChild(door3);\r\n \r\n // Now we add our objects to our own\r\n // collision group.\r\n worldGroup.addChild(room1.getMesh());\r\n worldGroup.addChild(room2.getMesh());\r\n worldGroup.addChild(room3.getMesh());\r\n worldGroup.addChild(room4.getMesh());\r\n worldGroup.addChild(door1);\r\n worldGroup.addChild(door2);\r\n worldGroup.addChild(door3);\r\n break;\r\n }\r\n }\r\n }\r\n catch(Exception e) { System.out.println(\"Canvas Loading error: \" + e.getMessage()); }\r\n\r\n // Here we get the instance to our graphics object\r\n mG3D = Graphics3D.getInstance();\r\n \r\n // We create our background that will be used to clear\r\n // the screen and we set it to black\r\n background = new Background();\r\n background.setColor(254 << 24 | 0 << 16 | 0 << 8 | 0);\r\n \r\n // The doors use their position data\r\n // from the m3G file\r\n doorsTrans = new Transform();\r\n \r\n // when doing collision detection we don't want to pick\r\n // the door objects. This is a speed enhancement\r\n door1.setPickingEnable(false);\r\n door2.setPickingEnable(false);\r\n door3.setPickingEnable(false);\r\n \r\n // Lighting extremely slows down rendering so we just\r\n // turn off lighting. To do this we set each mesh's\r\n // texture blending to FUNC_REPLACE and then \r\n // we do not create or add lights like we did in \r\n // the past.\r\n Appearance appearance = door1.getAppearance(0);\r\n Texture2D texture = appearance.getTexture(0);\r\n texture.setBlending(Texture2D.FUNC_REPLACE);\r\n\r\n appearance = door2.getAppearance(0);\r\n texture = appearance.getTexture(0);\r\n texture.setBlending(Texture2D.FUNC_REPLACE);\r\n\r\n appearance = door3.getAppearance(0);\r\n texture = appearance.getTexture(0);\r\n texture.setBlending(Texture2D.FUNC_REPLACE);\r\n \r\n // Setup our entities to initial locations and properties\r\n healthEntity = new HealthEntity(16.19f, -1.0f, 0.22f);\r\n gunEntity = new WeaponEntity(24.5f, -1.0f, 7.67f);\r\n nestEntity = new NestEntity(-8f, -2.5f, -9.5f, 0);\r\n SpearEntity.initialize(-2.24f, -1.5f, 0.422f);\r\n\r\n // Setup our games camera which will also\r\n // act as the player\r\n gameCam = new GameCamera();\r\n \r\n // Setup our HUD and Frames per sec calc\r\n SavageHUD.Initialize();\r\n SavageCounter.Initialize();\r\n }", "title": "" }, { "docid": "b1a9fa4b9d26ee047b2451b947222ac8", "score": "0.62141454", "text": "private void paintBlocks(Graphics g) {\n\t\tfinal int TILE_MARGIN = 400;\n\t\ttry{\n\t \tBufferedImage image = null;\n\t\t for(Block b: blocks){\n\t\t \t\n\t\t \t// the level block is a wall tile\n\t\t \tif(b instanceof Wall){\n\t\t \t\tWall w = ((Wall)b);\n\t\t \t\t// only render the north & east wall\n\t\t \t\tif(w.getWallType() == 'N' || w.getWallType() == 'E'){\n\t\t \t\t\timage = ImageIO.read(new File(IMAGE_PATH + \"grey-wall.png\"));\n\t\t \t\t// west & south walls are not rendered\n\t\t \t\t} else { continue; }\n\t\t \t// the level block is a floor tile\n\t\t \t} else {\n\t\t \t\tint type = ((RenderTile) b).getTileType();\n\t\t \t\tswitch(type){\n\t\t \t\t\tcase 0:\n\t\t \t\t\t\timage = ImageIO.read(new File(IMAGE_PATH + \"blue-tile.png\"));\n\t\t \t\t\t\tbreak;\n\t\t \t\t\tcase 1:\n\t\t \t\t\t\timage = ImageIO.read(new File(IMAGE_PATH + \"crack-tile.png\"));\n\t\t \t\t\t\tbreak;\n\t\t \t\t}\n\t\t \t}\n\t\t \t// drawing the block image to the screen\n\t\t \tif(image != null){\n\t\t \t\tg.drawImage(image, b.X() + TILE_MARGIN, b.Y() + (TILE_MARGIN/8), this);\n\t\t \t}\n\t\t \t// checking if block was a tile & contained an item\n\t\t \tif(b instanceof RenderTile){\n\t\t \t\t// getting the item contained in the tile\n\t\t \t\tItem token = ((RenderTile)b).getItem();\n\t\t\t \tif(token != null){\n\t\t\t \t\tBufferedImage itemImg = null;\n\t\t\t \t\t// getting the item image\n\t\t\t \t\tswitch(token.getName()){\n\t\t\t \t\t\tcase \"Coin\":\n\t\t\t \t\t\t\titemImg = ImageIO.read(new File(IMAGE_PATH + \"coin.png\"));\n\t\t\t \t\t\t\tbreak;\n\t\t\t \t\t\tcase \"Key\":\n\t\t\t \t\t\t\titemImg = ImageIO.read(new File(IMAGE_PATH + \"cube2.png\"));\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t \t\t}\n\t\t\t \t\t// draw the item image if not null\n\t\t\t \t\tif(itemImg != null){\n\t\t\t\t \t\tg.drawImage(itemImg, b.X() + TILE_MARGIN, b.Y() + (TILE_MARGIN/8), this);\n\t\t\t\t \t}\n\t\t\t \t}\n\n\t\t \t\t// getting the player on this tile if one\n\t\t \t\tPlayer user = ((RenderTile)b).getPlayer();\n\t\t\t \tif(user != null){\n\t\t\t \t\tBufferedImage playerImg = null;\n\t\t\t \t\tswitch(user.getfacingDirection()){\n\t\t\t\t \t\tcase NORTH:\n\t\t\t\t \t\t\tplayerImg = ImageIO.read(new File(IMAGE_PATH + \"east1-avatar\"+user.getUserId()+\".png\"));\n\t\t\t\t \t\t\tbreak;\n\t\t\t\t \t\tcase EAST:\n\t\t\t\t \t\t\tplayerImg = ImageIO.read(new File(IMAGE_PATH + \"south1-avatar\"+user.getUserId()+\".png\"));\n\t\t\t\t \t\t\tbreak;\n\t\t\t\t \t\tcase SOUTH:\n\t\t\t\t \t\t\tplayerImg = ImageIO.read(new File(IMAGE_PATH + \"west1-avatar\"+user.getUserId()+\".png\"));\n\t\t\t\t \t\t\tbreak;\n\t\t\t\t \t\tcase WEST:\n\t\t\t\t \t\t\tplayerImg = ImageIO.read(new File(IMAGE_PATH + \"north1-avatar\"+user.getUserId()+\".png\"));\n\t\t\t\t \t\t\tbreak;\n\t\t\t \t\t}\n\t\t\t \t\t// draw the item image if not null\n\t\t\t \t\tif(playerImg != null){\n\t\t\t\t \t\tg.drawImage(playerImg, b.X() + TILE_MARGIN, b.Y() + (TILE_MARGIN/8)-75, this);\n\t\t\t\t \t}\n\t\t\t \t}\n\t\t \t}\n\t\t }\n\t\t} catch(IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch(ConcurrentModificationException e){}\n\t}", "title": "" }, { "docid": "3f0ff8ebc1966ca243789e2b67901e1f", "score": "0.6196861", "text": "public static void loadTiles()\n\t{\n\t\ttry\n\t\t{\n\t\t\t// Grid\n\t\t\ttileGrid = new RSTile(RSIds.tileGrid, ResourceLoader.scaleImage(RSResources.grid, TILE_WIDTH, TILE_HEIGHT), \n\t\t\t\t\tfalse, new Color(255, 255, 255), GameObject.NO_COLLIDE, \"Grid\", RSTile.FLOOR);\n\t\t\ttiles.add(tileGrid); \n\t\t\t\n\t\t\t/*\n\t\t\t * Floor\n\t\t\t */\n\t\t\t\n\t\t\t// Wood floor 1\n\t\t\ttileWoodFloor1 = new RSTile(RSIds.tileWoodFloor1, ResourceLoader.scaleImage(RSResources.woodFloor1, TILE_WIDTH, TILE_HEIGHT), \n\t\t\t\t\tfalse, new Color(175, 150, 112), GameObject.NO_COLLIDE, \"Rough Wood Floor\", RSTile.FLOOR);\n\t\t\ttiles.add(tileWoodFloor1);\n\t\t\t\n\t\t\t// Wood Floor 2\n\t\t\ttileWoodFloor2 = new RSTile(RSIds.tileWoodFloor2, ResourceLoader.scaleImage(RSResources.woodFloor2, TILE_WIDTH, TILE_HEIGHT), \n\t\t\t\t\tfalse, new Color(255, 255, 255), GameObject.NO_COLLIDE, \"Light Wood Floor\", RSTile.FLOOR);\n\t\t\ttiles.add(tileWoodFloor2);\n\t\t\t\n\t\t\t// Wood Floor 3\n\t\t\ttileWoodFloor3 = new RSTile(RSIds.tileWoodFloor3, ResourceLoader.scaleImage(RSResources.woodFloor3, TILE_WIDTH, TILE_HEIGHT), \n\t\t\t\t\tfalse, new Color(255, 255, 255), GameObject.NO_COLLIDE, \"Nice Wood Floor\", RSTile.FLOOR);\n\t\t\ttiles.add(tileWoodFloor3);\n\t\t\t\n\t\t\t// Wood Floor 4\n\t\t\ttileWoodFloor4 = new RSTile(RSIds.tileWoodFloor4, ResourceLoader.scaleImage(RSResources.woodFloor4, TILE_WIDTH, TILE_HEIGHT), \n\t\t\t\t\tfalse, new Color(255, 255, 255), GameObject.NO_COLLIDE, \"Dark Wood Floor\", RSTile.FLOOR);\n\t\t\ttiles.add(tileWoodFloor4);\n\t\t\t\n\t\t\t// Wood Floor 5\n\t\t\ttileWoodFloor5 = new RSTile(RSIds.tileWoodFloor5, ResourceLoader.scaleImage(RSResources.woodFloor5, TILE_WIDTH, TILE_HEIGHT), \n\t\t\t\t\tfalse, new Color(255, 255, 255), GameObject.NO_COLLIDE, \"Disarray Wood Floor\", RSTile.FLOOR);\n\t\t\ttiles.add(tileWoodFloor5);\n\t\t\t\n\t\t\t// Wood Floor 6\n\t\t\ttileWoodFloor6 = new RSTile(RSIds.tileWoodFloor6, ResourceLoader.scaleImage(RSResources.woodFloor6, TILE_WIDTH, TILE_HEIGHT), \n\t\t\t\t\tfalse, new Color(255, 255, 255), GameObject.NO_COLLIDE, \"Elegant Wood Floor\", RSTile.FLOOR);\n\t\t\ttiles.add(tileWoodFloor6);\n\t\t\t\n\t\t\t// Carpet Black\n\t\t\ttileCarpetFloorBlack = new RSTile(RSIds.tileCarpetFloorBlack, ResourceLoader.scaleImage(RSResources.carpetFloorBlack, TILE_WIDTH, TILE_HEIGHT), \n\t\t\t\t\tfalse, new Color(255, 255, 255), GameObject.NO_COLLIDE, \"Black Carpet\", RSTile.FLOOR);\n\t\t\ttiles.add(tileCarpetFloorBlack);\n\t\t\t\n\t\t\t// Carpet Blue\n\t\t\ttileCarpetFloorBlue = new RSTile(RSIds.tileCarpetFloorBlue, ResourceLoader.scaleImage(RSResources.carpetFloorBlue, TILE_WIDTH, TILE_HEIGHT), \n\t\t\t\t\tfalse, new Color(255, 255, 255), GameObject.NO_COLLIDE, \"Blue Carpet\", RSTile.FLOOR);\n\t\t\ttiles.add(tileCarpetFloorBlue);\n\t\t\t\n\t\t\t// Carpet Green\n\t\t\ttileCarpetFloorGreen = new RSTile(RSIds.tileCarpetFloorGreen, ResourceLoader.scaleImage(RSResources.carpetFloorGreen, TILE_WIDTH, TILE_HEIGHT), \n\t\t\t\t\tfalse, new Color(255, 255, 255), GameObject.NO_COLLIDE, \"Green Carpet\", RSTile.FLOOR);\n\t\t\ttiles.add(tileCarpetFloorGreen);\n\t\t\t\n\t\t\t// Carpet Orange\n\t\t\ttileCarpetFloorOrange = new RSTile(RSIds.tileCarpetFloorOrange, ResourceLoader.scaleImage(RSResources.carpetFloorOrange, TILE_WIDTH, TILE_HEIGHT), \n\t\t\t\t\tfalse, new Color(255, 255, 255), GameObject.NO_COLLIDE, \"Orange Carpet\", RSTile.FLOOR);\n\t\t\ttiles.add(tileCarpetFloorOrange);\n\t\t\t\n\t\t\t// Carpet Pink\n\t\t\ttileCarpetFloorPink = new RSTile(RSIds.tileCarpetFloorPink, ResourceLoader.scaleImage(RSResources.carpetFloorPink, TILE_WIDTH, TILE_HEIGHT), \n\t\t\t\t\tfalse, new Color(255, 255, 255), GameObject.NO_COLLIDE, \"Pink Carpet\", RSTile.FLOOR);\n\t\t\ttiles.add(tileCarpetFloorPink);\n\t\t\t\n\t\t\t// Carpet Purple\n\t\t\ttileCarpetFloorPurple = new RSTile(RSIds.tileCarpetFloorPurple, ResourceLoader.scaleImage(RSResources.carpetFloorPurple, TILE_WIDTH, TILE_HEIGHT), \n\t\t\t\t\tfalse, new Color(255, 255, 255), GameObject.NO_COLLIDE, \"Purple Carpet\", RSTile.FLOOR);\n\t\t\ttiles.add(tileCarpetFloorPurple);\n\t\t\t\n\t\t\t// Carpet Red\n\t\t\ttileCarpetFloorRed = new RSTile(RSIds.tileCarpetFloorRed, ResourceLoader.scaleImage(RSResources.carpetFloorRed, TILE_WIDTH, TILE_HEIGHT), \n\t\t\t\t\tfalse, new Color(255, 255, 255), GameObject.NO_COLLIDE, \"Red Carpet\", RSTile.FLOOR);\n\t\t\ttiles.add(tileCarpetFloorRed);\n\t\t\t\n\t\t\t// Carpet Tan\n\t\t\ttileCarpetFloorTan = new RSTile(RSIds.tileCarpetFloorTan, ResourceLoader.scaleImage(RSResources.carpetFloorTan, TILE_WIDTH, TILE_HEIGHT), \n\t\t\t\t\tfalse, new Color(255, 255, 255), GameObject.NO_COLLIDE, \"Tan Carpet\", RSTile.FLOOR);\n\t\t\ttiles.add(tileCarpetFloorTan);\n\t\t\t\n\t\t\t// Carpet White\n\t\t\ttileCarpetFloorWhite = new RSTile(RSIds.tileCarpetFloorWhite, ResourceLoader.scaleImage(RSResources.carpetFloorWhite, TILE_WIDTH, TILE_HEIGHT), \n\t\t\t\t\tfalse, new Color(255, 255, 255), GameObject.NO_COLLIDE, \"Black Carpet\", RSTile.FLOOR);\n\t\t\ttiles.add(tileCarpetFloorWhite);\n\t\t\t\n\t\t\t// Carpet Yellow\n\t\t\ttileCarpetFloorYellow = new RSTile(RSIds.tileCarpetFloorYellow, ResourceLoader.scaleImage(RSResources.carpetFloorYellow, TILE_WIDTH, TILE_HEIGHT), \n\t\t\t\t\tfalse, new Color(255, 255, 255), GameObject.NO_COLLIDE, \"Black Carpet\", RSTile.FLOOR);\n\t\t\ttiles.add(tileCarpetFloorYellow);\n\t\t\t\n\t\t\t// Tile 1\n\t\t\ttileTileFloor1 = new RSTile(RSIds.tileTileFloor1, ResourceLoader.scaleImage(RSResources.tileFloor1, TILE_WIDTH, TILE_HEIGHT), \n\t\t\t\t\tfalse, new Color(255, 255, 255), GameObject.NO_COLLIDE, \"Generic Tile\", RSTile.FLOOR);\n\t\t\ttiles.add(tileTileFloor1);\n\t\t\t\n\t\t\t// Tile 2\n\t\t\ttileTileFloor2 = new RSTile(RSIds.tileTileFloor2, ResourceLoader.scaleImage(RSResources.tileFloor2, TILE_WIDTH, TILE_HEIGHT), \n\t\t\t\t\tfalse, new Color(255, 255, 255), GameObject.NO_COLLIDE, \"Diamond Tile\", RSTile.FLOOR);\n\t\t\ttiles.add(tileTileFloor2);\n\t\t\t\n\t\t\t// Tile 3\n\t\t\ttileTileFloor3 = new RSTile(RSIds.tileTileFloor3, ResourceLoader.scaleImage(RSResources.tileFloor3, TILE_WIDTH, TILE_HEIGHT), \n\t\t\t\t\tfalse, new Color(255, 255, 255), GameObject.NO_COLLIDE, \"Large Tile\", RSTile.FLOOR);\n\t\t\ttiles.add(tileTileFloor3);\n\t\t\t\n\t\t\t// Tile Black\n\t\t\ttileTileFloorBlack = new RSTile(RSIds.tileTileFloorBlack, ResourceLoader.scaleImage(RSResources.tileFloorBlack, TILE_WIDTH, TILE_HEIGHT), \n\t\t\t\t\tfalse, new Color(255, 255, 255), GameObject.NO_COLLIDE, \"Black Small Tile\", RSTile.FLOOR);\n\t\t\ttiles.add(tileTileFloorBlack);\n\t\t\t\n\t\t\t// Tile Blue\n\t\t\ttileTileFloorBlue = new RSTile(RSIds.tileTileFloorBlue, ResourceLoader.scaleImage(RSResources.tileFloorBlue, TILE_WIDTH, TILE_HEIGHT), \n\t\t\t\t\tfalse, new Color(255, 255, 255), GameObject.NO_COLLIDE, \"Blue Small Tile\", RSTile.FLOOR);\n\t\t\ttiles.add(tileTileFloorBlue);\n\t\t\t\n\t\t\t// Tile Tan\n\t\t\ttileTileFloorTan = new RSTile(RSIds.tileTileFloorTan, ResourceLoader.scaleImage(RSResources.tileFloorTan, TILE_WIDTH, TILE_HEIGHT), \n\t\t\t\t\tfalse, new Color(255, 255, 255), GameObject.NO_COLLIDE, \"Tan Small Tile\", RSTile.FLOOR);\n\t\t\ttiles.add(tileTileFloorTan);\n\t\t\t\n\t\t\t// Tile White\n\t\t\ttileTileFloorWhite = new RSTile(RSIds.tileTileFloorWhite, ResourceLoader.scaleImage(RSResources.tileFloorWhite, TILE_WIDTH, TILE_HEIGHT), \n\t\t\t\t\tfalse, new Color(255, 255, 255), GameObject.NO_COLLIDE, \"White Small Tile\", RSTile.FLOOR);\n\t\t\ttiles.add(tileTileFloorWhite);\n\t\t\t\n\t\t\t/*\n\t\t\t * Wall\n\t\t\t */\n\t\t\t\n\t\t\t// Plaster Wall White\n\t\t\ttileWallPlasterWhite = new RSTile(RSIds.tileWallPlasterWhite, ResourceLoader.scaleImage(RSResources.plasterWallWhite, TILE_WIDTH, TILE_HEIGHT), \n\t\t\t\t\tfalse, new Color(125, 115, 100), GameObject.NO_COLLIDE, \"White Plaster Wall\", RSTile.WALL);\n\t\t\ttiles.add(tileWallPlasterWhite);\n\t\t\t\n\t\t\t// Brick Wall 1\n\t\t\ttileWallBrick1 = new RSTile(RSIds.tileWallBrick1, ResourceLoader.scaleImage(RSResources.brickWall1, TILE_WIDTH, TILE_HEIGHT), \n\t\t\t\t\tfalse, new Color(255, 255, 255), GameObject.NO_COLLIDE, \"Limestone Brick Wall\", RSTile.WALL);\n\t\t\ttiles.add(tileWallBrick1);\n\t\t\t\n\t\t\t// Brick Wall 1\n\t\t\ttileWallBrick2 = new RSTile(RSIds.tileWallBrick2, ResourceLoader.scaleImage(RSResources.brickWall2, TILE_WIDTH, TILE_HEIGHT), \n\t\t\t\t\tfalse, new Color(255, 255, 255), GameObject.NO_COLLIDE, \"Cinder Brick Wall\", RSTile.WALL);\n\t\t\ttiles.add(tileWallBrick2);\n\t\t\t\n\t\t\t/*\n\t\t\t * Furniture\n\t\t\t */\n\t\t\t\n\t\t\t// Chair 1\n\t\t\ttileFurnitureChair1 = new RSTile(RSIds.tileFurnitureChair1, RSResources.woodChair1, \n\t\t\t\t\tfalse, new Color(255, 255, 255), GameObject.NO_COLLIDE, \"Basic Wood Chair\", RSTile.FURNITURE);\n\t\t\t\n\t\t\t// Chair 2\n\t\t\ttileFurnitureChair2 = new RSTile(RSIds.tileFurnitureChair2, RSResources.woodChair2, \n\t\t\t\t\tfalse, new Color(255, 255, 255), GameObject.NO_COLLIDE, \"Padded Wood Chair\", RSTile.FURNITURE);\n\t\t\ttiles.add(tileFurnitureChair2);\n\t\t\t\n\t\t\t// Chair 3\n\t\t\ttileFurnitureChair3 = new RSTile(RSIds.tileFurnitureChair3, RSResources.woodChair3, \n\t\t\t\t\tfalse, new Color(255, 255, 255), GameObject.NO_COLLIDE, \"Country Wood Chair\", RSTile.FURNITURE);\n\t\t\ttiles.add(tileFurnitureChair3);\n\t\t\t\n\t\t\t// Table 1\n\t\t\ttileFurnitureTable1 = new RSTile(RSIds.tileFurnitureTable1, RSResources.woodTable1, \n\t\t\t\t\tfalse, new Color(255, 255, 255), GameObject.NO_COLLIDE, \"Small Wood Table\", RSTile.FURNITURE);\n\t\t\ttiles.add(tileFurnitureTable1);\n\t\t\t\n\t\t\t// Table 2\n\t\t\ttileFurnitureTable2 = new RSTile(RSIds.tileFurnitureTable2, RSResources.woodTable2, \n\t\t\t\t\tfalse, new Color(255, 255, 255), GameObject.NO_COLLIDE, \"Medium Wood Table\", RSTile.FURNITURE);\n\t\t\t\n\t\t\t// Table 3\n\t\t\ttileFurnitureTable3 = new RSTile(RSIds.tileFurnitureTable3, RSResources.woodTable3, \n\t\t\t\t\tfalse, new Color(255, 255, 255), GameObject.NO_COLLIDE, \"Circle Wood Table\", RSTile.FURNITURE);\n\t\t\ttiles.add(tileFurnitureTable3);\n\t\t\t\n\t\t\t/*\n\t\t\t * Exterior\n\t\t\t */\n\t\t\t\n\t\t\t// Grass\n\t\t\ttileGrass = new RSTile(RSIds.tileGrass, ResourceLoader.scaleImage(RSResources.grass, TILE_WIDTH, TILE_HEIGHT), \n\t\t\t\t\tfalse, new Color(32, 160, 50), GameObject.NO_COLLIDE, \"Grass\", RSTile.UNEDITABLE);\n\t\t\ttiles.add(tileGrass);\n\t\t\t\n\t\t\t// Road\n\t\t\ttileRoad = new RSTile(RSIds.tileRoad, ResourceLoader.scaleImage(RSResources.road, TILE_WIDTH, TILE_HEIGHT), \n\t\t\t\t\tfalse, new Color(27, 27, 27), GameObject.NO_COLLIDE, \"Road\", RSTile.UNEDITABLE);\n\t\t\ttiles.add(tileRoad);\n\t\t\t\n\t\t\t// Sidewalk\n\t\t\ttileSidewalk = new RSTile(RSIds.tileSidewalk, ResourceLoader.scaleImage(RSResources.sidewalk, TILE_WIDTH, TILE_HEIGHT), \n\t\t\t\t\tfalse, new Color(77, 77, 77), GameObject.NO_COLLIDE, \"Sidewalk\", RSTile.UNEDITABLE);\n\t\t\ttiles.add(tileSidewalk);\n\t\t}\n\t\tcatch(IllegalArgumentException e)\n\t\t{\n\t\t\tSystem.out.println(\"A tile failed to load. This is most likely because a texture was not found.\");\n\t\t}\n\t}", "title": "" }, { "docid": "839a150920248c228973b716ed9ccf96", "score": "0.61922324", "text": "public void newLevel() {\n\t\t// create a new LevelGenerator instance\n\t\tLevelGenerator gen = new LevelGenerator();\n\t\t// intialise the game's matrix based on the generated level\n\t\t// (the \"-2\" accounts for the fact that the path tracer doesn't\n\t\t// recognise outside walls)\n\t\tthis.matrix = gen.generateLevel(this.row - 2, this.column - 2);\n\t\t// copy the new level to \"resetState\" (holds the original state of the game)\n\t\tthis.resetState = copyMatrix(this.matrix);\n\t\t// initialise the new player\n\t\tthis.player = new Player(gen.getPlayer());\n\t\t// initialise the new player to be the original player\n\t\tthis.resetPlayer = new Player(this.player);\n\t\t// creating a list of boxes for the map\n\t\tthis.boxes = new ArrayList<Box>();\n\t\t// populating the list from the new level's list of boxes\n\t\tfor (Coordinate box : gen.getBox()) {\n\t\t\tthis.boxes.add(new Box(box.getRow(), box.getColumn()));\n\t\t}\n\t\t// initialising resetBoxes to be equal to the original boxes\n\t\tthis.resetBoxes = getBoxes();\n\t\t// creating a new list for the berries\n\t\tthis.berries = new ArrayList<Berry>();\n\t\tthis.generateBerry = false;\n\t\twhile(!generateBerry){\n\t\t\tint berryRow = 2 + (int) (Math.random() * ((this.row - 6) + 1));\n\t\t\tint berryColumn = 2 + (int) (Math.random() * ((this.column - 6) + 1));\n\t\t\tif(!isBox(berryRow, berryColumn) && !isWall(berryRow, berryColumn)){\n\t\t\t\tthis.berries.add(new Berry(berryRow,berryColumn));\n\t\t\t\tgenerateBerry = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tthis.resetBerries = getBerries();\n\t\t// the berries have not been triggered yet\n\t\tthis.berryState = false;\n\t\t// no berries have been triggered yet\n\t\tthis.berryCount = 0;\n\t\tthis.player.setIsBox(false);\n\t}", "title": "" }, { "docid": "c7ab8319179b7a632d8508bf9174176d", "score": "0.61883414", "text": "public void assembleHeatMapBlocks(){\n\t\tmaxValue = 0;\n\t\tminValue = 0;\n\t\t//find windowed block\n\t\tint startIndex = 0;\n\t\tint endIndex = 0;\n\t\tWindow leftWindow = chromosomeWindows[chrWinIndex][startIndex];\n\t\tfor (int i=1; i< chromosomeWindows[chrWinIndex].length; i++){\n\t\t\tWindow rightWindow = chromosomeWindows[chrWinIndex][i];\n\t\t\t//do they overlap?\n\t\t\t//no block found!\n\t\t\tif (overlapOrAbut(leftWindow, rightWindow) == false){\t\t\t\n\t\t\t\tendIndex = i;\n\t\t\t\t//note endIndex is not included when making heatMap blocks\n\t\t\t\taddHeatMapBlocks(startIndex, endIndex);\n\t\t\t\t//start new block\n\t\t\t\tstartIndex = i;\n\t\t\t\t\n\t\t\t}\n\t\t\tleftWindow = rightWindow;\n\t\t}\n\t\t//find last\n\t\taddHeatMapBlocks(startIndex, chromosomeWindows[chrWinIndex].length);\n\t}", "title": "" }, { "docid": "7a5fddc9793c4a805f9540326c7be209", "score": "0.61874104", "text": "protected void initializeWorld() \n\t{\n\t\tbounds = new AxisAlignedBounds(25, 25);\n\t\tworld = new World(bounds);\n\t\tpermanent_count = 0;\n\t\t\n\t\t/* Create the goal, a rectangle */\n\t\tRectangle floorRect = new Rectangle(8.00, 2.00);\n\t\tGameObject goal_floor = new GameObject();\n\t\tgoal_floor.addFixture(new BodyFixture(floorRect));\n\t\tgoal_floor.setMass(MassType.INFINITE);\n\t\tgoal_floor.translate(-7.0, 6.0);\n\t\tgoal_floor.setAsPermanent(this);\n\t\tgoal_floor.setColor(Color.ORANGE);\n\t\tgoal = goal_floor;\n\t\tworld.addBody(goal);\n\t\t\n\t\t/*Rectangle p1 = new Rectangle(4.00, 2.00);\n\t\tGameObject platform1 = new GameObject();\n\t\tplatform1.addFixture(new BodyFixture(p1));\n\t\tplatform1.setMass(MassType.INFINITE);\n\t\tplatform1.translate(7.00, 3.00);\n\t\tplatform1.setAsPermanent(this);\n\t\tplatform1.setColor(Color.BLACK);\n\t\tworld.addBody(platform1);*/\n\t\t\n\t\tRectangle b1 = new Rectangle(8.00, 2.00);\n\t\tBoosterBlock booster1 = new BoosterBlock('s');\n\t\tbooster1.addFixture(new BodyFixture(b1));\n\t\tbooster1.setMass(MassType.INFINITE);\n\t\tbooster1.translate(-4.00, -7.00);\n\t\tbooster1.setColor(Color.CYAN);\n\t\tworld.addBody(booster1);\n\t\t\n\t\tRectangle s1 = new Rectangle(8.00, 1.00);\n\t\tGameObject standard1 = new GameObject();\n\t\tstandard1.addFixture(s1);\n\t\tstandard1.setMass(MassType.NORMAL);\n\t\tstandard1.translate(-4.00, -5.50);\n\t\tworld.addBody(standard1);\n\t\t\n\t\tGameObject s2 = new GameObject();\n\t\ts2.addFixture(s1);\n\t\ts2.setMass(MassType.NORMAL);\n\t\ts2.translate(-4.00, -6.00);\n\t\tworld.addBody(s2);\n\t\t\n\t\t/* Create the player, a circle */\n\t\tCircle cirShape = new Circle(0.6);\n\t\tGameObject worldplayer = new GameObject();\n\t\tworldplayer.addFixture(cirShape);\n\t\tworldplayer.setMass(MassType.NORMAL);\n\t\tworldplayer.translate(-6.0, 0.0);\n\t\tworldplayer.setAsPermanent(this);\n\t\tColor playercolor = new Color(244 / 255.0f, 66 / 255.0f, 66 / 255.0f);\n\t\tworldplayer.setColor(playercolor);\n\t\tplayer = worldplayer;\n\t\tworld.addBody(player);\n\t\t\n\t\tGameObject rightTri = new GameObject();\n\t\trightTri.addFixture(Geometry.createTriangle(new Vector2(-3.0, 2.0), new Vector2(-9.0, 2.0), new Vector2(-9.0, 0.0)));\n\t\trightTri.setMass(MassType.INFINITE);\n\t\trightTri.setAsPermanent(this);\n\t\trightTri.setColor(Color.BLACK);\n\t\tworld.addBody(rightTri);\n\t\t\n\t\tRectangle floor2 = new Rectangle(5.00, 1.00);\n\t\tGameObject f2 = new GameObject();\n\t\tf2.addFixture(new BodyFixture(floor2));\n\t\tf2.setMass(MassType.INFINITE);\n\t\tf2.translate(-0.5, 2.5);\n\t\tf2.setAsPermanent(this);\n\t\tf2.setColor(Color.BLACK);\n\t\tworld.addBody(f2);\n\t\t\n\t\tRectangle floor3 = new Rectangle(7.00, 2.00);\n\t\tGameObject f3 = new GameObject();\n\t\tf3.addFixture(new BodyFixture(floor3));\n\t\tf3.setMass(MassType.INFINITE);\n\t\tf3.translate(5.5, -6.0);\n\t\tf3.setAsPermanent(this);\n\t\tf3.setColor(Color.BLACK);\n\t\tworld.addBody(f3);\n\t\t\n\t\tRectangle b2 = new Rectangle(6.00, 1.00);\n\t\tBoosterBlock booster2 = new BoosterBlock('s');\n\t\tbooster2.addFixture(new BodyFixture(b2));\n\t\tbooster2.setMass(MassType.INFINITE);\n\t\tbooster2.translate(-6.00, 2.50);\n\t\tbooster2.setColor(Color.CYAN);\n\t\tworld.addBody(booster2);\n\t\t\n\t\tRectangle b3 = new Rectangle(3.00, 3.00);\n\t\tBoosterBlock booster3 = new BoosterBlock('u');\n\t\tbooster3.addFixture(new BodyFixture(b3));\n\t\tbooster3.setMass(MassType.INFINITE);\n\t\tbooster3.translate(7.50, -0.50);\n\t\tbooster3.setColor(Color.CYAN);\n\t\tworld.addBody(booster3);\n\t\t\n\t\tGameObject s3 = new GameObject();\n\t\ts3.addFixture(b3);\n\t\ts3.setMass(MassType.NORMAL);\n\t\ts3.translate(4.00, -3.50);\n\t\tworld.addBody(s3);\n\t\t\n\t\tRectangle standard4 = new Rectangle(4.0, 3.0);\n\t\tGameObject s4 = new GameObject();\n\t\ts4.addFixture(standard4);\n\t\ts4.setMass(MassType.NORMAL);\n\t\ts4.translate(7.00, -3.50);\n\t\tworld.addBody(s4);\n\t\t\n\t\tRectangle standard5 = new Rectangle(2.0, 4.0);\n\t\tGameObject s5 = new GameObject();\n\t\ts5.addFixture(standard5);\n\t\ts5.setMass(MassType.NORMAL);\n\t\ts5.translate(0.00, 5.00);\n\t\tworld.addBody(s5);\n\t\t\n\t\tGameObject rightTri2 = new GameObject();\n\t\trightTri2.addFixture(Geometry.createTriangle(new Vector2(9.0, 7.0), new Vector2(4.0, 7.0), new Vector2(9.0, 3.0)));\n\t\trightTri2.setMass(MassType.INFINITE);\n\t\trightTri2.setColor(Color.BLACK);\n\t\trightTri2.setAsPermanent(this);\n\t\tworld.addBody(rightTri2);\n\t\t\n\t\tGameObject rightTri3 = new GameObject();\n\t\trightTri3.addFixture(Geometry.createRightTriangle(4.0, 3.0, true));\n\t\trightTri3.translate(4.75, -1.0);\n\t\trightTri3.setMass(MassType.NORMAL);\n\t\tworld.addBody(rightTri3);\n\t\t\n\t\t\n\t\t/* attach the contact listener */\n\t\tworld.addListener(new WinDetection());\n\t}", "title": "" }, { "docid": "2f63c06855b208ef75e28a158ac99054", "score": "0.6186565", "text": "public void init() {\r\n\t\tworld.addListener(new CollisionEcho());\r\n\t\tviewPort.setTiledDimensions(this.width*Constants.TILE_WIDTH, this.height*Constants.TILE_HEIGHT);\r\n\t\tbuildBorders();\r\n\t\tbuildSimpleSection();\r\n\t\tbuildLayers();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "189e1951d80a5b3ca726720d94059d69", "score": "0.6179257", "text": "private void setUpBlankBoard() {\n for (int i = 0; i < 36; i++) {\n Tile newTile = new Tile(null);\n board.add(newTile);\n }\n // set up the bases\n board.get(0).setAgent(new SUBase(PLAYER2));\n board.get(5).setAgent(new SUBase(PLAYER2));\n board.get(30).setAgent(new USBase(PLAYER1));\n board.get(35).setAgent(new USBase(PLAYER1));\n }", "title": "" }, { "docid": "0fcb0f27cd1a947820caf51077ca5bf8", "score": "0.61707073", "text": "public Level()\r\n { \r\n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\r\n super(600, 400, 1); \r\n }", "title": "" }, { "docid": "9269d295aafe76835139153224c2c448", "score": "0.61581373", "text": "public Board(int[][] blocks) {\n ///tiles = blocks; \n N = blocks.length;\n tiles = new int[N][N];\n \n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++) {\n tiles[i][j] = blocks[i][j];\n }\n } \n }", "title": "" }, { "docid": "0eed113e0350cea53a780fcb001dce72", "score": "0.6154157", "text": "private void loadTiles() {\n int tI = 0;\n CCSprite character;\n tilesNode.removeAllChildren(true);\n\n for (int j = startY; j > startY - (tileSquareSize * numberOfRows); j -= tileSquareSize) {\n for (int i = startX; i < startX + (tileSquareSize * numberOfColumns); i += tileSquareSize) {\n if (tI >= (numberOfRows * numberOfColumns)) {\n break;\n }\n CCSprite tile;\n if (spritesResolution == 256) {\n tile = CCSprite.sprite(SpritePreferences.FLOOR_BLOCK_256);\n } else {\n tile = CCSprite.sprite(SpritePreferences.FLOOR_BLOCK_128);\n }\n // tile = getFloorSprite(true, gameMap, tI);\n CCNodeExt eachNode = new CCNodeExt();\n CCNodeExt heroNode = new CCNodeExt();\n\n int x = i; // i - j;\n int y = j; // (i + j) / 2;\n\n // Bottom tile.\n if (gameMap[tI] == SLIDE) {\n if (spritesResolution == 256) {\n tile = CCSprite.sprite(SpritePreferences.ICE_BLOCK_256);\n } else {\n tile = CCSprite.sprite(SpritePreferences.ICE_BLOCK_128);\n }\n } else if (gameMap[tI] == TELEP) {\n // Keep empty block.\n } else if (gameMap[tI] == EMPTY) {\n tile = CCSprite.sprite(SpritePreferences.EMPTY_BLOCK);\n }\n\n CCNode bottomTile = new CCNodeExt();\n bottomTile.setContentSize(tile.getContentSize());\n bottomTile.addChild(tile, -1, 1);\n bottomTile.setPosition(x, y);\n bottomTile.setScale(scaleFactor);\n tilesNode.addChild(bottomTile, Z2);\n\n // Hero tile.\n if (heroTable[tI]) {\n character = InGameHelper.getHeroSprite(appContext, spritesResolution);\n heroNode.setContentSize(character.getContentSize());\n heroNode.addChild(character, Z1);\n heroNode.setPosition(x, y);\n heroNode.setScale(scaleFactor);\n tilesNode.addChild(heroNode, Z4, HERO_TAG);\n } else if (skullsTable[tI]) {\n if (spritesResolution == 256) {\n character = CCSprite.sprite(SpritePreferences.WHITE_SKULL_BLOCK_256);\n } else {\n character = CCSprite.sprite(SpritePreferences.WHITE_SKULL_BLOCK_128);\n }\n heroNode.setContentSize(character.getContentSize());\n heroNode.addChild(character, Z1);\n heroNode.setPosition(x, y);\n heroNode.setScale(scaleFactor);\n tilesNode.addChild(heroNode, Z4, FIRST_SKULL_TAG + tI);\n }\n\n boolean addGas = false;\n // Front tile\n if (gameMap[tI] == TELEP) {\n addChild(ParticleHelper.portalEmitter(x, y, tileSquareSize), Z5);\n } else if (gameMap[tI] == DESTY) {\n if (spritesResolution == 256) {\n tile = CCSprite.sprite(SpritePreferences.DESTINATION_BLOCK_256);\n } else {\n tile = CCSprite.sprite(SpritePreferences.DESTINATION_BLOCK_128);\n }\n eachNode.setContentSize(tile.getContentSize());\n eachNode.addChild(tile, Z3);\n addGas = true;\n } else if (gameMap[tI] == BLOCK) {\n if (spritesResolution == 256) {\n tile = CCSprite.sprite(SpritePreferences.BLOCK_BLOCK_256);\n } else {\n tile = CCSprite.sprite(SpritePreferences.BLOCK_BLOCK_128);\n }\n eachNode.setContentSize(tile.getContentSize());\n eachNode.addChild(tile, Z3);\n }\n eachNode.setPosition(x, y);\n eachNode.setScale(scaleFactor);\n tilesNode.addChild(eachNode, Z3, tI);\n if (addGas) {\n addChild(ParticleHelper.gasEmitter(x, y,\n eachNode.getContentSize().width * eachNode.getScale() / 2.0f), Z5);\n }\n tI++;\n }\n }\n }", "title": "" }, { "docid": "33360dc0bbc64d8d36949462af0a7828", "score": "0.6149149", "text": "public void defineLevel() {\n\t\t\n\t\t//Once you've beaten all 9 levels you have won the game!\n\t\tif(level == maxLevel){\n\t\t\tpaintFrameInGame();\n\t\t}\n\t\t\n\t\t// remove any remaining objects\n\t\tremoveObjects(null,0);\n\t\t\n\t\t//Create player object\n\t\tnew Player(0, dimy/2,\n\t\t\t\t10.0,this);\n\n\t\t// create as many enemies as the level number\n\t\tfor (int i=0; i<=level; i++)\n\t\t\tnew Hound(dimx, this.random(20,pfHeight()),\n\t\t\t\t\t10.0,this);\n\t\tsetBGImage(\"level1\");\n\t}", "title": "" }, { "docid": "c01feca2a7b9fa77eb1b95376c5df91e", "score": "0.6148329", "text": "protected void rotateWorld() {\n\t\t//rotate int[][] 90 degrees into new 2d array\n\t\tfinal int M = levelBlocks.length;\n\t final int N = levelBlocks[0].length;\n\n\t // switching the game direction\n\t // & camera position\n\t switch(gameDir){\n\t\t case 'S':\n\t\t \tcamX = 0;\n\t\t \tcamY = 0;\n\t\t \tgameDir = 'E';\n\t\t \tbreak;\n\t\t case 'N':\n\t\t \tcamY = 0;\n\t\t \tcamX = 350;\n\t\t \tgameDir = 'W';\n\t\t \tbreak;\n\t\t case 'E':\n\t\t \tcamY = -350;\n\t\t \tcamX = 175;\n\t\t \tgameDir = 'N';\n\t\t \tbreak;\n\t\t case 'W':\n\t\t \tcamY = 350;\n\t\t \tcamX = 175;\n\t\t \tgameDir = 'S';\n\t\t \tbreak;\n\t }\n\t \n\t // rotate the array data\n\t Block[][] ret = new Block[M][N];\n\t for (int r = 0; r < M; r++) {\n\t for (int c = 0; c < N; c++) {\n\t \t // rotating the level 90 degree\n\t ret[c][M-1-r] = levelBlocks[r][c];\n\t }\n\t }\n\t //clear old lists, insert new rotated tile arrangement\n\t allTiles.clear();\n\t allWalls.clear();\n\t blocks.clear();\n\t for (int i = 0; i<ret.length; i++){\n\t\t\tfor (int j = 0; j<ret[0].length; j++){\n\t\t\t\t// getting the x & y position of the tile\n\t\t\t\tint x = j * tileWidth;\n\t\t\t\tint y = i * tileHeight;\n\t\t\t\tBlock b = ret[j][i];\n\t\t\t\t// block is a wall\n\t\t\t\tif(b instanceof Wall){\n\t\t\t\t\t// converting 2d point to isometic\n\t\t\t\t\tPoint pos = twoDToIso(new Point(x, y));\n\t\t\t\t\t// getting the new direction of the wall\n\t\t\t\t\tif(i==ret.length-1){\n\t\t\t\t\t\t// west wall\n\t\t\t\t\t\tb = new Wall('W', pos.x+50, pos.y-170);\n\t\t\t\t\t} else if(j==ret.length-1){\n\t\t\t\t\t\t// south wall\n\t\t\t\t\t\tb = new Wall('S', pos.x+50, pos.y-170);\n\t\t\t\t\t} else if(i==0){\n\t\t\t\t\t\t// east wall\n\t\t\t\t\t\tb = new Wall('E', pos.x+50, pos.y-170);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// north wall\n\t\t\t\t\t\tb = new Wall('N', pos.x+50, pos.y-170);\n\t\t\t\t\t}\n\t\t\t\t\t// adding wall to a list of all walls\n\t\t\t\t\tallWalls.add((Wall) b);\n\t\t\t\t\t// adding blocks in order for painters algorithm\n\t\t\t\t\tblocks.add(b);\n\t\t\t\t// block is a tile\n\t\t\t\t} else {\n\t\t\t\t\t// converting 2d point to isometic\n\t\t\t\t\tPoint pos = twoDToIso(new Point(x, y));\n\t\t\t\t\t// getting the tiles item if there is one\n\t\t\t\t\tItem item = null;\n\t\t\t\t\tPlayer player = null;\n\t\t\t\t\tint type = 0;\n\t\t\t\t\ttry{\n\t\t\t\t\t\tplayer = ((RenderTile)b).getPlayer();\n\t\t\t\t\t\titem = ((RenderTile)b).getItem();\n\t\t\t\t\t\ttype = ((RenderTile)b).getTileType();\n\t\t\t\t\t} catch (NullPointerException e){ }\n\t\t\t\t\t// getting the tile type\n\t\t\t\t\tswitch(type){\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t// blue tile\n\t\t\t\t\t\t\tb = new RenderTile(0, pos.x+50, pos.y+65);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t// cracked tile\n\t\t\t\t\t\t\tb = new RenderTile(1, pos.x+50, pos.y+65);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t// setting the tiles item if there is one\n\t\t\t\t\tif(item != null){\n\t\t\t\t\t\t((RenderTile)b).setItem(item);\n\t\t\t\t\t}\n\t\t\t\t\tif(player != null){\n\t\t\t\t\t\tDirection playerDir = player.getfacingDirection();\n\t\t\t\t\t\tswitch(playerDir){\n\t\t\t\t\t\tcase EAST:\n\t\t\t\t\t\t\tplayer.setfacingDirection(Direction.NORTH);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase NORTH:\n\t\t\t\t\t\t\tplayer.setfacingDirection(Direction.WEST);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase SOUTH:\n\t\t\t\t\t\t\tplayer.setfacingDirection(Direction.EAST);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase WEST:\n\t\t\t\t\t\t\tplayer.setfacingDirection(Direction.SOUTH);\n\t\t\t\t\t\t\tbreak;\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t((RenderTile)b).setPlayer(player);\n\t\t\t\t\t}\n\t\t\t\t\t// adding tile to a list of all tiles\n\t\t\t\t\tallTiles.add((RenderTile) b);\n\t\t\t\t\t// adding blocks in order for painters algorithm\n\t\t\t\t\tblocks.add(b);\n\t\t\t\t}\n\t\t\t}\n\t }\n\t //replace levelBlocks array with new 2d array for future rotations\n\t for(int a=0; a<levelBlocks.length; a++)\n\t \t for(int b=0; b<levelBlocks[0].length; b++)\n\t \t levelBlocks[a][b]=ret[a][b];\n\t}", "title": "" }, { "docid": "f868044f2f645b2d0de2c8badfd64d61", "score": "0.6124509", "text": "private void resetLevel() {\r\n\t\tcounter = 0;\r\n\t\tfor (int i = 0; i<16; i++) {\r\n\t\t\tfor (int j = 0; j<32; j++){\r\n\t\t\t\tarray[i][j] = '0';\r\n\t\t\t}\r\n\t\t}\r\n\t\tswitchcounter = 0;\r\n\t\tblock.setSwitches(0);\r\n\r\n\t\t//resets the iceblocks\r\n\t\tfor (int i = 0; i<20; i++) {\r\n\t\t\ticeblockarray[i].setCenterX(1000);\r\n\t\t\ticeblockarray[i].setCenterY(1000);\r\n\t\t}\r\n\t\ticeblockcounter = 0;\r\n\t\tloadMap();\r\n\t}", "title": "" }, { "docid": "a96c1921c043148b92cae00eedfc27ff", "score": "0.61215967", "text": "public void setBlocks() {\n for (int i = 0; i < positions.length; i++) {\n do {\n positions[i] = board.getRandomPosition();\n } while (board.getLockCell(positions[i]).isLocked());\n board.lock(positions[i]);\n LOG.info(String.format(\"Block №%d is mounted on the coordinates x=%d y=%d\",\n i,\n positions[i].getX(),\n positions[i].getY())\n );\n }\n }", "title": "" }, { "docid": "d19c3bed3c172824a8d9b8626d21a33e", "score": "0.61209655", "text": "public void fillBoard() {\n int blocksAdded = 0;\n for (int row = 0; row < 4; row++) {\n for (int col = 0; col < 4; col++) {\n if (Math.random() < 0.2) {\n board[row][col] = new Block(2);\n blocksAdded++;\n } else {\n board[row][col] = new Block(0); \n }\n }\n }\n if (blocksAdded < 2) {\n fillBoard();\n }\n }", "title": "" }, { "docid": "ac6f3ccdc393b2fe09a55e91c7484f70", "score": "0.61052114", "text": "public void populateLevels()\r\n\t{\r\n\t\t//first map representation\r\n\t\tString[] map1 = {\r\n\t\t\t\t\"XXXXXXXXXX\",\r\n\t\t\t\t\"XH I X X\",\r\n\t\t\t\t\"XXX XXX X\",\r\n\t\t\t\t\"X I I X X\",\r\n\t\t\t\t\"XXX XXX X\",\r\n\t\t\t\t\"I X\",\r\n\t\t\t\t\"I X\",\r\n\t\t\t\t\"XXX XXXX X\",\r\n\t\t\t\t\"X I I Xk X\",\r\n\t\t\"XXXXXXXXXX\"};\r\n\r\n\t\t//creates first level object\r\n\t\tLevel firstLevel = new Level(map1, 1);\r\n\r\n\t\t//creates a guard with the created routine\r\n\t\tGuard firstLevelGuard = getGuardForLevel('R', new Coordinates(8,1));\r\n\r\n\t\t//adds the created guard to level\r\n\t\tfirstLevel.addGuard(firstLevelGuard);\r\n\r\n\t\tString[] map2 = {\r\n\t\t\t\t\"XXXXXXXXXX\",\r\n\t\t\t\t\"I kX\",\r\n\t\t\t\t\"X X\",\r\n\t\t\t\t\"X X\",\r\n\t\t\t\t\"X X\",\r\n\t\t\t\t\"X X\",\r\n\t\t\t\t\"X X\",\r\n\t\t\t\t\"X X\",\r\n\t\t\t\t\"XH X\",\r\n\t\t \"XXXXXXXXXX\"};\r\n\r\n\t\tLevel secondLevel = new Level(map2, 2);\r\n\r\n\t\tArmedOgre secondLevelOgre = new ArmedOgre(new Coordinates(4, 1), 'O');\r\n\r\n\t\tsecondLevel.addArmedOgre(secondLevelOgre);\r\n\r\n\t\tsecondLevel.setExtraStep();\r\n\r\n\t\tsecondLevel.playerHasClub();\r\n\r\n\t\tgameProgress.addLevel(firstLevel);\r\n\r\n\t\tgameProgress.addLevel(secondLevel);\r\n\r\n\t\tif(gameProgress.initialize())\t\r\n\t\t\tgameIsUp = true;\r\n\t}", "title": "" }, { "docid": "88c5b942da1070d66105cd1d48e70fa7", "score": "0.6099668", "text": "public GameState_Level2() {\n\t\tsuper();\n\t\t// //actormanager = new ArrayList<Item>();\n\t\t// layer_back = new TileMap(sprites, \n\t\t// \"tilemap_level2_layer_back\");\n\t\t// layer_middle = new TileMap(sprites,\n\t\t// \"tilemap_level2_layer_middle\");\n\t\t// //layer_front = new TileMap(\"C:/Users/Casey R/Downloads/simple java game 3/32x32 tiles/16x16 tiles/spritesheet_test.png\",\n\t\t// //\t\"C:/Users/Casey R/Downloads/simple java game 3/tilemap_level2_layer_front.txt\", 1.0f);\n\t\t// init_player();\n\t\t// init_itemList();\n\t}", "title": "" }, { "docid": "25052d5424834a42ac6e92bae8a5a02a", "score": "0.6083589", "text": "public void setUpWorld() {\n\n\t\t// Opens input to the file containing the map data\n\t\tInputStream file = ClassLoader\n\t\t\t\t.getSystemResourceAsStream(\"Assets/Data/file.txt\");\n\t\tScanner scan = new Scanner(file);\n\n\t\t// Iterate over each character in the map and build a tile based on the\n\t\t// character\n\t\tfor (int j = 0; j < map.length; j++) {\n\t\t\tchar[] next = scan.next().toCharArray();\n\t\t\tfor (int i = 0; i < map[0].length; i++) {\n\t\t\t\tString img = \"\";\n\t\t\t\tString name = \"\";\n\t\t\t\tchar current = next[i];\n\t\t\t\tif (current == 'x') {\n\t\t\t\t\timg = \"sprites/tree3.png\";\n\t\t\t\t\tname = tree;\n\t\t\t\t}\n\t\t\t\tif (current == '-') {\n\t\t\t\t\timg = \"sprites/grass.png\";\n\t\t\t\t\tname = grass;\n\t\t\t\t}\n\t\t\t\tif (current == 'y') {\n\t\t\t\t\timg = \"sprites/flower.png\";\n\t\t\t\t\tname = flower;\n\t\t\t\t}\n\t\t\t\tif (current == 'w') {\n\t\t\t\t\timg = \"sprites/water.png\";\n\t\t\t\t\tname = water;\n\t\t\t\t}\n\t\t\t\tif (current == 'l') {\n\t\t\t\t\timg = \"sprites/wall.png\";\n\t\t\t\t\tname = wall;\n\t\t\t\t}\n\t\t\t\tif (current == '=') {\n\t\t\t\t\timg = \"sprites/wallOld.png\";\n\t\t\t\t\tname = mazeWall;\n\t\t\t\t}\n\t\t\t\tif (current == 'k') {\n\t\t\t\t\timg = \"sprites/keyYellow.png\";\n\t\t\t\t\tname = key;\n\t\t\t\t\tmap[i][j] = new Tile(new Key(img, name, true), i, j);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (current == 'd') {\n\t\t\t\t\timg = \"sprites/door.png\";\n\t\t\t\t\tname = door;\n\t\t\t\t\tmap[i][j] = new Tile(new Door(img, name, false, key), i, j);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (current == 'R') {\n\t\t\t\t\timg = \"sprites/doorRed.png\";\n\t\t\t\t\tname = door;\n\t\t\t\t\tmap[i][j] = new Tile(new Door(img, name, false, redkey), i,\n\t\t\t\t\t\t\tj);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (current == 'D') {\n\t\t\t\t\timg = \"sprites/doorBlue.png\";\n\t\t\t\t\tname = door;\n\t\t\t\t\tmap[i][j] = new Tile(new Door(img, name, false, bluekey),\n\t\t\t\t\t\t\ti, j);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (current == 'f') {\n\t\t\t\t\timg = \"sprites/floor.png\";\n\t\t\t\t\tname = floor;\n\t\t\t\t}\n\t\t\t\tif (current == 'L') {\n\t\t\t\t\timg = \"sprites/lockedchest.png\";\n\t\t\t\t\tname = lockedchest;\n\t\t\t\t\tmap[i][j] = new Tile(new Container(img, name, null, false),\n\t\t\t\t\t\t\ti, j);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (current == 'o') {\n\t\t\t\t\timg = \"sprites/boulder.png\";\n\t\t\t\t\tname = boulder;\n\t\t\t\t\tmap[i][j] = new Tile(new Boulder(img, name, false), i, j);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (current == 'r') {\n\t\t\t\t\timg = \"sprites/reviver.png\";\n\t\t\t\t\tname = reviver;\n\t\t\t\t\tmap[i][j] = new Tile(new EnvironmentObject(img, name), i, j);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (current == 'b') {\n\t\t\t\t\timg = \"sprites/boatDown.png\";\n\t\t\t\t\tname = boat;\n\t\t\t\t\tmap[i][j] = new Tile(new Boat(img, name, false), i, j);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (current == 's') {\n\t\t\t\t\timg = \"sprites/sign.png\";\n\t\t\t\t\tname = sign;\n\t\t\t\t\tmap[i][j] = new Tile(new Sign(img, name, \"A room\"), i, j);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (current == 'B') {\n\t\t\t\t\timg = \"sprites/keyBlue.png\";\n\t\t\t\t\tname = bluekey;\n\t\t\t\t\tmap[i][j] = new Tile(new Key(img, name, true), i, j);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (current == 'K') {\n\t\t\t\t\timg = \"sprites/keyRed.png\";\n\t\t\t\t\tname = redkey;\n\t\t\t\t\tmap[i][j] = new Tile(new Key(img, name, true), i, j);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tmap[i][j] = new Tile(new EnvironmentObject(img, name), i, j);\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\n\t\t// Add all NPC's\n\t\tnpcs.add(new NPC(gang, \"bob\", false, 15, 25, new Direction[] {\n\t\t\t\tDirection.DOWN, Direction.RIGHT, Direction.RIGHT,\n\t\t\t\tDirection.RIGHT, Direction.RIGHT, Direction.UP, Direction.LEFT,\n\t\t\t\tDirection.LEFT, Direction.LEFT, Direction.LEFT, },\n\t\t\t\t\"I'd rather be playing GTA...\"));\n\t\tnpcs.add(new NPC(green, \"bob\", false, 15, 15, new Direction[] {\n\t\t\t\tDirection.LEFT, Direction.LEFT, Direction.LEFT, Direction.LEFT,\n\t\t\t\tDirection.DOWN, Direction.RIGHT, Direction.RIGHT,\n\t\t\t\tDirection.RIGHT, Direction.RIGHT, Direction.UP },\n\t\t\t\t\"Congratulations! You won!\"));\n\t\tnpcs.add(new NPC(blue, \"bob\", false, 13, 17,\n\t\t\t\tnew Direction[] { Direction.LEFT, Direction.DOWN,\n\t\t\t\t\t\tDirection.RIGHT, Direction.LEFT, Direction.LEFT,\n\t\t\t\t\t\tDirection.LEFT, Direction.RIGHT, Direction.RIGHT,\n\t\t\t\t\t\tDirection.RIGHT, Direction.UP }, \"We rich!!!\"));\n\t\tnpcs.add(new NPC(girl, \"bob\", false, 13, 14, new Direction[] {\n\t\t\t\tDirection.LEFT, Direction.LEFT, Direction.UP, Direction.UP,\n\t\t\t\tDirection.RIGHT, Direction.RIGHT, Direction.DOWN,\n\t\t\t\tDirection.DOWN }, \"We millionaires baby!\"));\n\t\tnpcs.add(new NPC(blue, \"bob\", false, 15, 10, new Direction[] {\n\t\t\t\tDirection.LEFT, Direction.LEFT, Direction.LEFT, Direction.LEFT,\n\t\t\t\tDirection.DOWN, Direction.RIGHT, Direction.RIGHT,\n\t\t\t\tDirection.RIGHT, Direction.RIGHT, Direction.UP },\n\t\t\t\t\"My wife left me...\"));\n\t\tnpcs.add(new NPC(blue, \"bob\", false, 10, 60, new Direction[] {\n\t\t\t\tDirection.LEFT, Direction.LEFT, Direction.LEFT, Direction.LEFT,\n\t\t\t\tDirection.DOWN, Direction.RIGHT, Direction.RIGHT,\n\t\t\t\tDirection.RIGHT, Direction.RIGHT, Direction.UP },\n\t\t\t\t\"Ghosts can move through anything!\"));\n\t\tnpcs.add(new NPC(green, \"bob\", false, 45, 10, new Direction[] {\n\t\t\t\tDirection.LEFT, Direction.LEFT, Direction.LEFT, Direction.LEFT,\n\t\t\t\tDirection.DOWN, Direction.RIGHT, Direction.RIGHT,\n\t\t\t\tDirection.RIGHT, Direction.RIGHT, Direction.UP },\n\t\t\t\t\"Sponges are dangerous!\"));\n\t\tnpcs.add(new NPC(gang, \"bob\", false, 30, 40, new Direction[] {\n\t\t\t\tDirection.DOWN, Direction.RIGHT, Direction.RIGHT,\n\t\t\t\tDirection.RIGHT, Direction.RIGHT, Direction.UP, Direction.LEFT,\n\t\t\t\tDirection.LEFT, Direction.LEFT, Direction.LEFT, },\n\t\t\t\t\"Ghosts can open chests!\"));\n\n\t\t// Add all Enemies\n\t\tenemies.add(new Enemy(sponge, \"sponge\", false, 50, 50, new Direction[] {\n\t\t\t\tDirection.LEFT, Direction.LEFT, Direction.LEFT, Direction.LEFT,\n\t\t\t\tDirection.DOWN, Direction.RIGHT, Direction.RIGHT,\n\t\t\t\tDirection.RIGHT, Direction.RIGHT, Direction.UP }));\n\t\tenemies.add(new Enemy(sponge, \"sponge\", false, 30, 25, new Direction[] {\n\t\t\t\tDirection.LEFT, Direction.LEFT, Direction.LEFT, Direction.LEFT,\n\t\t\t\tDirection.DOWN, Direction.RIGHT, Direction.RIGHT,\n\t\t\t\tDirection.RIGHT, Direction.RIGHT, Direction.UP }));\n\t\tenemies.add(new Enemy(sponge, \"sponge\", false, 50, 10, new Direction[] {\n\t\t\t\tDirection.LEFT, Direction.LEFT, Direction.LEFT, Direction.LEFT,\n\t\t\t\tDirection.DOWN, Direction.RIGHT, Direction.RIGHT,\n\t\t\t\tDirection.RIGHT, Direction.RIGHT, Direction.UP }));\n\n\t\t// Create Enemy Puzzle in room\n\t\tDirection[] rightMovement = new Direction[24];\n\t\tfor (int i = 0; i < 24; i++) {\n\t\t\tif (i < 12) {\n\t\t\t\trightMovement[i] = Direction.RIGHT;\n\t\t\t} else {\n\t\t\t\trightMovement[i] = Direction.LEFT;\n\t\t\t}\n\t\t}\n\t\tDirection[] leftMovement = new Direction[24];\n\t\tfor (int i = 0; i < 24; i++) {\n\t\t\tif (i < 12) {\n\t\t\t\tleftMovement[i] = Direction.LEFT;\n\t\t\t} else {\n\t\t\t\tleftMovement[i] = Direction.RIGHT;\n\t\t\t}\n\t\t}\n\t\tDirection[] upMovement = new Direction[12];\n\t\tfor (int i = 0; i < 12; i++) {\n\t\t\tif (i < 6) {\n\t\t\t\tupMovement[i] = Direction.DOWN;\n\t\t\t} else {\n\t\t\t\tupMovement[i] = Direction.UP;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 7; i++) {\n\t\t\tif (i % 2 == 0) {\n\t\t\t\tenemies.add(new Enemy(sponge, \"sponge\", false, 15, 44 + i,\n\t\t\t\t\t\tleftMovement));\n\t\t\t} else {\n\t\t\t\tenemies.add(new Enemy(sponge, \"sponge\", false, 3, 44 + i,\n\t\t\t\t\t\trightMovement));\n\t\t\t}\n\t\t}\n\t\tenemies.add(new Enemy(sponge, \"sponge\", false, 3, 44, upMovement));\n\t\tenemies.add(new Enemy(sponge, \"sponge\", false, 15, 44, upMovement));\n\t\tenemies.add(new Enemy(sponge, \"sponge\", false, 9, 44, upMovement));\n\t\tenemies.add(new Enemy(sponge, \"sponge\", false, 6, 44, upMovement));\n\t\tenemies.add(new Enemy(sponge, \"sponge\", false, 12, 44, upMovement));\n\n\t}", "title": "" }, { "docid": "bdff0f51eb093ba3a65935faf4966d4f", "score": "0.6067616", "text": "private void setUp() {\n removeAll();\n isReleased = true;\n board = new Board(Misc.getCurrentLevel(), Misc.getScoreContainer(), board.getTimer());\n board.setDifficulty(mode);\n\n wallCell = new ArrayList<>();\n pathCell = new ArrayList<>();\n trapACell = new ArrayList<>();\n trapBCell = new ArrayList<>();\n rewardACell = new ArrayList<>();\n rewardBCell = new ArrayList<>();\n this.map = board.getBoardArrayManager().getBoard();\n\n\n player = new DrawLive(board.getPlayerPos(), step, DrawLive.CellType.PLAYER);\n exit = new DrawDead(board.getBoardArrayManager().getExit().getPosition(), step, DrawDead.CellType.EXIT);\n for (int i = 0; i < Math.min(Misc.getCurrentLevel(), 3); i++) {\n enemy.add(new DrawLive(board.getBoardArrayManager().getEnemyPos(i), step, DrawLive.CellType.ENEMY));\n add(enemy.get(i));\n }\n\n add(player);\n add(exit);\n\n createBoard();\n setBackground(Color.decode(\"#483b3a\"));\n setLayout(new OverlayLayout(this));\n\n setFocusable(true);\n setVisible(false);\n repaint();\n }", "title": "" }, { "docid": "4176772da85067f27555ce1032072a28", "score": "0.60660434", "text": "private void createGamePanel() {\n blocks = new BlockUI[nOrInGamePanel][nOcInGamePanel];\n\n for (int row = 0; row < nOrInGamePanel; row++) {\n for (int column = 0; column < nOcInGamePanel; column++) {\n blocks[row][column] = new BlockUI(this, row, column, this);\n\n blocks[row][column].setSmile(btnSmile);\n\n }\n }\n }", "title": "" }, { "docid": "c77a244ea283a59f0e19918f5b72b13a", "score": "0.6057146", "text": "public void initTiles(){\n int answer = JOptionPane.showConfirmDialog(null,\n \"Is your tile image comprised of square tiles,\\n\"\n + \"and does it have a blank first square?\");\n if (answer != 0){\n System.exit(0);\n }\n \n numTileRows = Integer.parseInt(JOptionPane.showInputDialog(\"How many rows (y) in tile image?\"));\n \n JFileChooser chooser = new JFileChooser(\".\"){\n @Override\n public void approveSelection(){\n File choice = this.getSelectedFile();\n if (choice.isDirectory()){\n this.setCurrentDirectory(choice);\n }\n else{\n super.approveSelection();\n }\n }\n };\n \n chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);\n chooser.setFileFilter(new FileNameExtensionFilter(\"Images: PNG or GIF\",\n \"png\", \"gif\"));\n \n int fileChoice = chooser.showOpenDialog(null);\n if (fileChoice == JFileChooser.APPROVE_OPTION){\n openTileSet(chooser.getSelectedFile());\n }\n }", "title": "" }, { "docid": "053900c74b08e617a766477f978493cb", "score": "0.6044863", "text": "public board() {\n this.state = 0;\n this.blocks = new block[3][3];\n /**Instantiate each cell of the board. (or block)*/\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++)\n {\n this.blocks[i][j] = new block();\n }\n }\n }", "title": "" }, { "docid": "8091b2af6af45dea4638a4ff0fbf2031", "score": "0.6043167", "text": "public MainMenuGameWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1000, 580, 1);\n prepare();\n addMenu();\n Greenfoot.start();\n }", "title": "" }, { "docid": "c79a13783b7e64a78507bb637ffa0ca6", "score": "0.6029128", "text": "public void create(int x, int y){\n\n\n // set the width of the entire level\n\n terrainSheet = new Texture(Gdx.files.internal(\"sprites/terrain/floor.png\"));\n shiftPixel = 0;\n\n\n water.width = 64;\n water.height = 64;\n water.x = 0;\n water.y = 0;\n grass.width = 64;\n grass.height = 64;\n grass.x = 0;\n grass.y = 64;\n path.width = 64;\n path.height = 64;\n path.x = 0;\n path.y = 128;\n darkGrass.width = 64;\n darkGrass.height = 64;\n darkGrass.x = 0;\n darkGrass.y = 192;\n\n TextureRegion[][] tmp = TextureRegion.split(terrainSheet,terrainSheet.getWidth()/TERRAIN_FRAME_COLS, terrainSheet.getHeight()/TERRAIN_FRAME_ROWS);\n individualFrames = new TextureRegion[TERRAIN_FRAME_COLS * TERRAIN_FRAME_ROWS];\n int index = 0;\n\n for(int i = 0; i< TERRAIN_FRAME_ROWS; i++){\n for(int j = 0; j < TERRAIN_FRAME_COLS; j++){\n individualFrames[index++] = tmp[i][j];\n\n }\n }\n\n\n stateTime =0f;\n\n\n }", "title": "" }, { "docid": "47c272478dfb18a0f87410bbb58b873e", "score": "0.6018503", "text": "private void createBlocks()\n\t{\n\t\tlatinBlockRanges.add(new Integer[] { lExtendedAddLower, lExtendedAddUpper });\n\t\tlatinBlockRanges.add(new Integer[] { lExtendedALower, lExtendedAUpper });\n\t\tlatinBlockRanges.add(new Integer[] { lExtendedBLower, lExtendedBUpper });\n\t\tlatinBlockRanges.add(new Integer[] { lExtendedCLower, lExtendedCUpper });\n\t\t// latinBlockRanges.add(new Integer[]{lExtendedDLower,lExtendedDUpper});\n\n\t}", "title": "" }, { "docid": "b1faa106d98041d734fde36487816413", "score": "0.6003613", "text": "public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(800, 500, 1); \n prepare();\n }", "title": "" }, { "docid": "6e9d707145e55f5859edea2705e6b784", "score": "0.59954566", "text": "public void initialize() {\r\n ////add the background to the sprite collection\r\n this.addSprite(levelInformation.getBackground());\r\n //add blocks\r\n List<Block> blocks = levelInformation.blocks();\r\n for (Block block : blocks) {\r\n blocksCounter.increase(1);\r\n //add listener\r\n block.addToGame(this);\r\n }\r\n //add the aliens\r\n //get the invader group\r\n invadersGroup = levelInformation.getGroup();\r\n invadersGroup.addToGame(this);\r\n invadersCounter.increase(50);\r\n invaders = levelInformation.invaders();\r\n invadersCopy = levelInformation.invaders();\r\n this.startVelocity = invaders.get(0).getVelocity();\r\n\r\n //add listeners, hitListneres, printListeners and hitListeners\r\n PrintingHitListener printer = new PrintingHitListener();\r\n addPrintingHitListener(printer, blocks);\r\n BlockRemover blockRemover = new BlockRemover(this, blocksCounter);\r\n addBlockRemoverListener(blockRemover, blocks);\r\n InvaderRemover invaderRemover = new InvaderRemover(\r\n this, invadersCounter, invadersCopy, enemyBalls, invadersGroup);\r\n addInvaderRemoverListener(invaderRemover, invaders);\r\n ScoreTrackingListener scoreTracking = new ScoreTrackingListener(currentScore);\r\n addScoreTrackingListener(scoreTracking, invaders);\r\n //draw the score indicator\r\n creteInformationBar(currentScore, levelInformation.levelName());\r\n\r\n\r\n //create death region\r\n Rectangle deathRectangle = new Rectangle(new Point(-50, HEIGHT + 2 * THICKNESS), WIDTH + 100, THICKNESS);\r\n Rectangle deathRectangle2 = new Rectangle(new Point(-50, 0 - 2 * THICKNESS), WIDTH + 100, THICKNESS);\r\n Block deathBlock = new Block(deathRectangle, Color.BLACK);\r\n Block deathBlock2 = new Block(deathRectangle2, Color.GREEN);\r\n BallRemover ballRemover = new BallRemover(this, ballsCounter);\r\n deathBlock.addHitListener(ballRemover);\r\n deathBlock2.addHitListener(ballRemover);\r\n deathBlock.addToGame(this);\r\n deathBlock2.addToGame(this);\r\n //add ball remover listener to the bullets\r\n addBallRemoverToBlocks(blocks, ballRemover);\r\n addBallRemoverToInvaders(invaders, ballRemover);\r\n\r\n\r\n }", "title": "" }, { "docid": "750d4e6521f15d068dd2eebb95bb7240", "score": "0.59924275", "text": "public void createDefaultBoard(){\r\n\t\tfor(int i = 0; i<9; i++){\r\n\t\t\tfor(int j = 0; j<9; j++){\r\n\t\t\t\tthis.tiles[i][j] = null;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d8c62807b74a46c169960ffd4b7da435", "score": "0.5983721", "text": "public playerWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(800, 600, 1); \n \n addObject(new Castle(), 510, 410); \n addObject(new ScorePanel(), 76, 540); \n addObject(new Spider(), 233, 535); \n for(int i = 0; i < 16; i++)\n {\n addObject(new Wall(\"edge.png\"), 25 + 50*i, 12);\n }\n for(int i = 0; i < 16; i++)\n {\n addObject(new Wall(\"edge.png\"), 25 + 50*i, 587);\n }\n for(int i = 0; i < 16; i++)\n {\n addObject(new Wall(\"edge2.png\"), 12, 25 + 50*i);\n }\n for(int i = 0; i < 16; i++)\n {\n addObject(new Wall(\"edge2.png\"), 765 + 25,50*i );\n }\n \n //Partial wall in the top left of the maze\n for(int i = 0; i < 7; i++)\n {\n addObject(new Wall(\"edge.png\"), 25 + 50*i, 150);\n }\n //Partial wall above top left of the maze\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 190 + 25, 50*i);\n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge.png\"), 374, 150); \n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge.png\"), 424, 150); \n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge.png\"), 473, 150); \n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge.png\"), 522, 150); \n }\n //Obstacles \n for (int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 558, 163);\n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 558, 33); \n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 558, 33); \n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 673, 205); \n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 558, 213); \n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 558, 260); \n }\n \n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 397, 124); \n } \n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 558, 408); \n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 558, 310); \n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 673, 156); \n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 673, 251); \n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 558, 360); \n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge.png\"), 711, 263); \n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge.png\"), 761, 263); \n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 558, 408); \n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 673, 300); \n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 558, 455); \n }\n /*\n * New Section - \n */\n for (int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 673, 348); \n }\n for (int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 673, 395); \n }\n for (int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 673, 578); \n }\n for (int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 673, 429); \n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge.png\"), 521, 467);\n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge.png\"), 474, 467); \n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 461, 431);\n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 461, 382);\n } \n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 461, 333);\n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 461, 283);\n }\n //Moving on\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge.png\"), 426, 270);\n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge.png\"), 377, 270);\n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge.png\"), 335, 270);\n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 327, 556);\n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 327, 506);\n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 327, 459);\n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 327, 412);\n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 327, 396);\n }\n \n //scoreboard\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge.png\"), 50, 492);\n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge.png\"), 100, 492);\n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 144, 554);\n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 144, 505);\n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge.png\"), 123, 492);\n }\n \n //finish maze\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 144, 455);\n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 144, 406);\n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 144, 356);\n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 144, 306);\n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge.png\"), 177, 421);\n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 396, 172);\n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge2.png\"), 227, 327);\n }\n for(int i = 0; i < 2; i++)\n {\n addObject(new Wall(\"edge.png\"), 111, 321);\n }\n \n //add player\n addObject (new Player(), 124, 109);\n //add cupcakes\n addObject (new Cupcake(), 321, 103);\n addObject (new Cupcake(), 732, 63);\n addObject (new Cupcake(), 732, 214);\n addObject (new Cupcake(), 612, 295);\n addObject (new Cupcake(), 733, 317);\n addObject (new Cupcake(), 733, 540);\n addObject (new Cupcake(), 397, 317);\n addObject (new Cupcake(), 78, 441);\n addObject (new Cupcake(), 192, 474);\n addObject (new Cupcake(), 228, 213);\n \n //Scoreboard text\n showText(\"Eaten : \", 61, 516); \n \n }", "title": "" }, { "docid": "b5c2c2d616bee90bf91b5c71d86ec265", "score": "0.5981714", "text": "public void registerBlockedTiles()\r\n {\n \t{\r\n\t \tMapObjects objects = this.myActor0.myStage0.screen0.map.getLayers().get(\"Object Layer 1\").getObjects();\r\n\t \tfor (int k = 0; k < objects.getCount(); k++ )\r\n\t \t{\r\n\t \t\tRectangleMapObject object = (RectangleMapObject) objects.get(k);\r\n\t \t\tfor (int \ti = this.myActor0.convertInTiles((int) object.getRectangle().x); \r\n\t \t\t\t\t\ti < this.myActor0.convertInTiles((int) object.getRectangle().x) + this.myActor0.convertInTiles((int) object.getRectangle().width); \r\n\t \t\t\t\t\ti++ )\r\n\t \t\t{\r\n\t \t\tfor (int \tj = this.myActor0.convertInTiles((int) object.getRectangle().y); \r\n\t \t\t\t\t\t\tj < this.myActor0.convertInTiles((int) object.getRectangle().y) + this.myActor0.convertInTiles((int) object.getRectangle().height); \r\n\t \t\t\t\t\t\tj++ )\r\n\t \t\t{\r\n\t \t\t\tthis.updateCell(i, j, -1);\r\n\t\t \t\t\t//System.out.println(\"x: \" + i + \" y: \" + j);\r\n\t \t\t}\t\t\t\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\tfor (int i=0; i<MyOpGame.MY_WORLD_WIDTH_IN_TILES; i++)\r\n\t \t\t{\r\n\t \t\t\tthis.updateCell(i, 0, -1);\r\n\t \t\t\tthis.updateCell(i, 1, -1);\r\n\t \t\t\tthis.updateCell(i, 2, -1);\r\n\t \t\t\tthis.updateCell(i, 3, -1);\r\n\t \t\t}\r\n\t \t}\r\n \t} \t\r\n }", "title": "" }, { "docid": "c90c871ecb954b2cf11e11d908a03a2d", "score": "0.5967382", "text": "private void initWorld(){\r\n\t\tif (useLoadedWorld){\r\n\t\t\t//construct the loaded world\r\n\t\t\tgameWorld = new World(everyPlayerMap);\r\n\t\t\tgameWorld.spawnPlayers();\r\n\t\t} else{\r\n\t\t\t//construct a random new world\r\n\t\t\tgameWorld = new World(width, height, everyPlayerMap);\r\n\t\t\tgameWorld.spawnPlayers();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f3936a7dc147f3d369a5d3fe4667c64f", "score": "0.5959007", "text": "@Override\n public void init(World world) {\n \n this.time = 0;\n\n //TODO: Automatically adapt to the number of sensor pass in\n this.numSensors = world.getNumSensors();\n this.sensor = new double[numSensors];\n this.numActions = world.getNumActions();\n this.action = new double[numActions];\n\n //first_block_name = ''.join(('block_', str(self.num_blocks - 1))) \n this.hub = new Hub(numActions + numSensors);\n\n this.cumulativeReward = 0;\n this.timeSinceRewardLog = 0;\n this.rewardHistory = new LinkedList();\n this.rewardSteps = new LinkedList();\n this.surpriseHistory = new LinkedList();\n this.blockInitializationThreshold = 0.5;\n \n this.recentSurpriseHistory = new ArrayDeque(BeccaParams.agentRecentSurpriseHistorySize);\n for (int i = 0; i < BeccaParams.agentRecentSurpriseHistorySize; i++)\n recentSurpriseHistory.add(0.0);\n\n this.reward = 0;\n }", "title": "" }, { "docid": "bc7df3a4b30759557272ef485d5bbe29", "score": "0.5956116", "text": "public void generateLevel(LevelGen[] templateLoc) {\n\t\tLevelGen[] template = templateLoc;\r\n\t\tRandom rand = new Random();\r\n\t\t\r\n\t\tint currLocX = 0;\r\n\t\tint currLocY = 0;\r\n\t\tint timesRight = 0;\r\n\t\tint timesDown = 0;\r\n\t\t\r\n\t\t\r\n\t\t//TODO Fix map so objects are no longer flipped when built\r\n\t\t//Set Up multiple classes so that theirs hallway class, Room class, and corner piece class\r\n\t\t//Set up a system to check if 2 pieces are valid by checking to see if an entire wall\r\n\t\t//is all one type of block or a certain type of special wall block\r\n\t\t\r\n\t\t//Sets up the map\r\n\t\tfor (int times = 0; times < 49; times ++) {\r\n\t\t\tint whichTemplate = rand.nextInt(templateLoc.length);\r\n\t\t\t\r\n\t\t\t//Please note Room Height only works with this rooms height so The for loop Tiles\r\n\t\t\t//May need to be changed from roomHeight to something else for tile\r\n\t\t\t//Placement Calculation\r\n\t\t\tint roomHeight = template[whichTemplate].height;\r\n\t\t\tint roomWidth = template[whichTemplate].width;\r\n\t\t\t\r\n\t\t\tfor (int y = 0; y < roomHeight; y++) {\r\n\t\t\t\tfor (int x = 0; x < roomWidth; x++) {\r\n\t\t\t\t\tTile currTile = template[whichTemplate].getTile(y, x);\r\n\t\t\t\t\ttiles[(currLocX + (timesRight * roomWidth)) + (currLocY + (timesDown * roomHeight)) * width] = currTile.getId();\r\n\t\t\t\t\tcurrLocX++;\r\n\t\t\t\t}\r\n\t\t\t\tcurrLocX = 0;\r\n\t\t\t\tcurrLocY++;\r\n\t\t\t}\r\n\t\ttimesRight++;\r\n\t\tcurrLocY = 0;\r\n\t\tif ((timesRight + 1) * roomWidth >= this.width) {\r\n\t\t\ttimesRight = 0;\r\n\t\t\ttimesDown++;\r\n\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ea00d77fb8b5d2f95aaf046c27547411", "score": "0.5945101", "text": "public Map() {\n\t\tthis.minSteps = 0;\n\t\tthis.boxes = new Box[ROWS][COLUMNS];\n\n\t\tfor (int i = 0; i < boxes.length; i++) {\n\t\t\tfor (int j = 0; j < boxes[0].length; j++) {\n\t\t\t\tboxes[i][j] = new Box(false, false);\n\t\t\t}\n\t\t}\n\n\t\tthis.bomberman = new Player(\"Bomber\");\n\t\trandom = new Random();\n\t}", "title": "" }, { "docid": "a4f21242bced57f29fae0664c9088a88", "score": "0.5942199", "text": "public void init() {\n SpawnPool.init(takesTurns);\n Cell cell;\n for (int i = 0; i < cols; i++) {\n for (int j = 0; j < rows; j++) {\n cell = new Cell(i, j, this);\n cells[i][j] = cell;\n SpawnPool.spawnRand(cell);\n }\n }\n for (int i = 0; i < cols; i++) {\n for (int j = 0; j < rows; j++) {\n cells[i][j].init();\n }\n }\n\n }", "title": "" }, { "docid": "2d30b99789e314c6b80757ed2573b5ae", "score": "0.59413654", "text": "public void setupLevel() {\t\t\n\t\t// cleanup\n\t\tgameObjects.clear();\n\t\t\n\t\t// add players\n\t\tfor(GameClientInfo client : localServer.clients.values())\n\t\t{\n\t\t\tGameObject obj = new GameObject();\n\t\t\tobj.id = nextObjectId++;\n\t\t\tobj.clientId = client.id;\n\t\t\tobj.name = client.name;\n\t\t\tclient.gameObjectId = obj.id;\n\t\t\t\n\t\t\tobj.visible = true;\n\t\t\tobj.type = GameConstants.GT_PLAYER;\n\t\t\t\n\t\t\tobj.bounds.height = 32;\n\t\t\tobj.bounds.width = 32;\n\n\t\t\tobj.bounds.y = 0;\n\t\t\tdo {\n\t\t\t\tobj.bounds.x = (int) Math.max(0, Math.random() * gameWidth - obj.bounds.width);\n\t\t\t} while(checkCollision(obj));\n\t\t\t\n\t\t\tgameObjects.put(obj.id, obj);\n\t\t}\n\t\t\n\t\t// add houses\n\t\tint countHouses = Math.max(1, GameConfiguration.levelStartHouses - level);\n\t\tfor(int i = 0; i < countHouses; ++i)\n\t\t{\n\t\t\tGameObject obj = new GameObject();\n\t\t\tobj.id = nextObjectId++;\n\t\t\tobj.visible = true;\n\t\t\tobj.type = GameConstants.GT_HOUSE;\n\t\t\t\n\t\t\tobj.bounds.height = 88;\n\t\t\tobj.bounds.width = 136;\n\t\t\t\n\t\t\tint tries = 0;\n\t\t\tdo {\n\t\t\t\tobj.bounds.x = (int) Math.max(0, Math.random() * gameWidth - obj.bounds.width);\n\t\t\t\tobj.bounds.y = (int) Math.max(0, ((gameHeight / 10) * (8 + (Math.random() * 2) )) - obj.bounds.height);\n\t\t\t} while(checkCollision(obj) && ++tries < 10);\n\t\t\tif(tries >= 10)\n\t\t\t\tcontinue;\n\n\t\t\tgameObjects.put(obj.id, obj);\n\t\t}\n\t\t\n\t\t// add trees\n\t\tint countTrees = Math.max(0, GameConfiguration.levelStartTrees - level);\n\t\tfor(int i = 0; i < countTrees; ++i)\n\t\t{\n\t\t\tGameObject obj = new GameObject();\n\t\t\tobj.id = nextObjectId++;\n\t\t\tobj.visible = true;\n\t\t\tobj.type = GameConstants.GT_TREE;\n\n\t\t\tobj.bounds.height = 68;\n\t\t\tobj.bounds.width = 56;\n\t\t\tint tries = 0;\n\t\t\tdo {\n\t\t\t\tobj.bounds.x = (int) Math.max(0, Math.random() * gameWidth - obj.bounds.width);\n\t\t\t\tobj.bounds.y = (int) Math.max(0, Math.random() * gameHeight - obj.bounds.height);\n\t\t\t} while(checkCollision(obj) && ++tries < 10);\n\t\t\tif(tries >= 10)\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tgameObjects.put(obj.id, obj);\n\t\t}\n\t\t\n\t\t// Add monsters\n\t\tint enemys = level * GameConfiguration.levelEnemyMultiplier + GameConfiguration.levelMinEnemys;\n\t\tint rows = level * 2;\n\t\tfor(int row = 1; row <= rows; row++)\n\t\t{\n\t\t\tint yPos = GameConfiguration.levelSafeZone + ((gameHeight-(GameConfiguration.levelSafeZone +60)) / rows) * row;\n\t\t\t\n\t\t\tint enemysRow = (int)(enemys / rows);\n\t\t\t\n\t\t\tfor(int enemy = 0; enemy < enemysRow; enemy++)\n\t\t\t{\n\t\t\t\tGameObject enemyObj = new GameObject();\n\t\t\t\t\n\t\t\t\tenemyObj.id = nextObjectId++;\n\t\t\t\tenemyObj.visible = true;\n\n\t\t\t\t// 1 player 2> enemy\n\t\t\t\tenemyObj.type = GameConstants.GT_ENEMY_BEGIN + (int) Math.round( Math.random() * (GameConstants.GT_ENEMY_END-GameConstants.GT_ENEMY_BEGIN));\n\t\t\t\t\n\t\t\t\tswitch(enemyObj.type)\n\t\t\t\t{\n\t\t\t\t\tcase GameConstants.GT_ENEMY_X:\n\t\t\t\t\t\tenemyObj.bounds.height = 35;\n\t\t\t\t\t\tenemyObj.bounds.width = 66;\n\t\t\t\t\t\tenemyObj.speedx = Math.round(Math.random()) == 1 ? 1 : -1; \n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase GameConstants.GT_ENEMY_Y:\n\t\t\t\t\t\tenemyObj.bounds.height = 39;\n\t\t\t\t\t\tenemyObj.bounds.width = 34;\n\t\t\t\t\t\tenemyObj.speedy = Math.round(Math.random()) == 1 ? 1 : -1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase GameConstants.GT_ENEMY_XY:\n\t\t\t\t\t\tenemyObj.bounds.height = 50;\n\t\t\t\t\t\tenemyObj.bounds.width = 47;\n\t\t\t\t\t\tenemyObj.speedx = Math.round(Math.random()) == 1 ? 1 : -1; \n\t\t\t\t\t\tenemyObj.speedy = Math.round(Math.random()) == 1 ? 1 : -1; \n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase GameConstants.GT_ENEMY_SMART:\n\t\t\t\t\t\tenemyObj.bounds.height = 46;\n\t\t\t\t\t\tenemyObj.bounds.width = 40;\n\t\t\t\t\t\tenemyObj.speedx = 1; \n\t\t\t\t\t\tenemyObj.speedy = 1; \n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tint tries = 0;\n\t\t\t\tenemyObj.bounds.y = yPos;\n\t\t\t\tdo {\n\t\t\t\t\tenemyObj.bounds.x = (int) Math.max(0, Math.random() * gameWidth - enemyObj.bounds.width);\n\t\t\t\t} while(checkCollision(enemyObj) && ++tries < 10);\n\t\t\t\tif(tries >= 10)\n\t\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t\t// add\n\t\t\t\tgameObjects.put(enemyObj.id, enemyObj);\n\t\t\t}\n\t\t}\n\t\t\n\t\tcontrol.actionPerformed(\"Level\", \"Level \"+ level);\n\t}", "title": "" }, { "docid": "6aee2a797f74d25b8b9fdaa9e5a482c7", "score": "0.5935557", "text": "public void game_wall(){\r\n handler.addTile(new Wall(0,0,1*SCALE,1*SCALE,Id.wall,handler,1));\r\n handler.addTile(new Wall(20,0,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(40,0,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(60,0,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(80,0,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(100,0,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(120,0,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(140,0,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(160,0,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(180,0,1*SCALE,1*SCALE,Id.wall,handler,3));\r\n handler.addTile(new Wall(200,0,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(220,0,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(240,0,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(260,0,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(280,0,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(300,0,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(320,0,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(340,0,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(360,0,1*SCALE,1*SCALE,Id.wall,handler,4));\r\n handler.addTile(new Wall(0,20,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(180,20,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(360,20,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(0,40,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(40,40,1*SCALE,1*SCALE,Id.wall,handler,6));\r\n handler.addTile(new Wall(60,40,1*SCALE,1*SCALE,Id.wall,handler,7));\r\n handler.addTile(new Wall(100,40,1*SCALE,1*SCALE,Id.wall,handler,6));\r\n handler.addTile(new Wall(120,40,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(140,40,1*SCALE,1*SCALE,Id.wall,handler,7));\r\n handler.addTile(new Wall(180,40,1*SCALE,1*SCALE,Id.wall,handler,8));\r\n handler.addTile(new Wall(220,40,1*SCALE,1*SCALE,Id.wall,handler,6));\r\n handler.addTile(new Wall(240,40,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(260,40,1*SCALE,1*SCALE,Id.wall,handler,7));\r\n handler.addTile(new Wall(300,40,1*SCALE,1*SCALE,Id.wall,handler,6));\r\n handler.addTile(new Wall(320,40,1*SCALE,1*SCALE,Id.wall,handler,7));\r\n handler.addTile(new Wall(360,40,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(0,60,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(360,60,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(0,80,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(40,80,1*SCALE,1*SCALE,Id.wall,handler,6));\r\n handler.addTile(new Wall(60,80,1*SCALE,1*SCALE,Id.wall,handler,7));\r\n handler.addTile(new Wall(100,80,1*SCALE,1*SCALE,Id.wall,handler,9));\r\n handler.addTile(new Wall(140,80,1*SCALE,1*SCALE,Id.wall,handler,6));\r\n handler.addTile(new Wall(160,80,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(180,80,1*SCALE,1*SCALE,Id.wall,handler,3));\r\n handler.addTile(new Wall(200,80,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(220,80,1*SCALE,1*SCALE,Id.wall,handler,7));\r\n handler.addTile(new Wall(260,80,1*SCALE,1*SCALE,Id.wall,handler,9));\r\n handler.addTile(new Wall(300,80,1*SCALE,1*SCALE,Id.wall,handler,6));\r\n handler.addTile(new Wall(320,80,1*SCALE,1*SCALE,Id.wall,handler,7));\r\n handler.addTile(new Wall(360,80,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(0,100,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(100,100,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(180,100,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(260,100,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(360,100,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(0,120,1*SCALE,1*SCALE,Id.wall,handler,10));\r\n handler.addTile(new Wall(100,120,1*SCALE,1*SCALE,Id.wall,handler,11));\r\n handler.addTile(new Wall(180,120,1*SCALE,1*SCALE,Id.wall,handler,8));\r\n handler.addTile(new Wall(260,120,1*SCALE,1*SCALE,Id.wall,handler,12));\r\n handler.addTile(new Wall(360,120,1*SCALE,1*SCALE,Id.wall,handler,13));\r\n handler.addTile(new Wall(0,120,1*SCALE,1*SCALE,Id.wall,handler,10));\r\n handler.addTile(new Wall(20,120,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(40,120,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(60,120,1*SCALE,1*SCALE,Id.wall,handler,4));\r\n handler.addTile(new Wall(100,120,1*SCALE,1*SCALE,Id.wall,handler,11));\r\n handler.addTile(new Wall(120,120,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(140,120,1*SCALE,1*SCALE,Id.wall,handler,7));\r\n handler.addTile(new Wall(180,120,1*SCALE,1*SCALE,Id.wall,handler,8));\r\n handler.addTile(new Wall(220,120,1*SCALE,1*SCALE,Id.wall,handler,6));\r\n handler.addTile(new Wall(240,120,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(260,120,1*SCALE,1*SCALE,Id.wall,handler,12));\r\n handler.addTile(new Wall(300,120,1*SCALE,1*SCALE,Id.wall,handler,1));\r\n handler.addTile(new Wall(320,120,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(340,120,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(360,120,1*SCALE,1*SCALE,Id.wall,handler,13));\r\n handler.addTile(new Wall(-20,160,1*SCALE,1*SCALE,Id.wall,handler,1));\r\n handler.addTile(new Wall(0,160,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(20,160,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(40,160,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(60,140,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(100,140,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(260,140,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(300,140,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(60,160,1*SCALE,1*SCALE,Id.wall,handler,13));\r\n handler.addTile(new Wall(100,160,1*SCALE,1*SCALE,Id.wall,handler,8));\r\n handler.addTile(new Wall(140,160,1*SCALE,1*SCALE,Id.wall,handler,1));\r\n handler.addTile(new Wall(160,160,1*SCALE,1*SCALE,Id.wall,handler,7));\r\n handler.addTile(new Wall(200,160,1*SCALE,1*SCALE,Id.wall,handler,6));\r\n handler.addTile(new Wall(220,160,1*SCALE,1*SCALE,Id.wall,handler,4));\r\n handler.addTile(new Wall(260,160,1*SCALE,1*SCALE,Id.wall,handler,8));\r\n handler.addTile(new Wall(300,160,1*SCALE,1*SCALE,Id.wall,handler,10));\r\n handler.addTile(new Wall(320,160,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(340,160,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(360,160,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(380,160,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(140,180,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(220,180,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(-20,200,1*SCALE,1*SCALE,Id.wall,handler,1));\r\n handler.addTile(new Wall(0,200,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(20,200,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(40,200,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(60,200,1*SCALE,1*SCALE,Id.wall,handler,4));\r\n handler.addTile(new Wall(100,200,1*SCALE,1*SCALE,Id.wall,handler,9));\r\n handler.addTile(new Wall(140,200,1*SCALE,1*SCALE,Id.wall,handler,10));\r\n handler.addTile(new Wall(160,200,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(180,200,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(200,200,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(220,200,1*SCALE,1*SCALE,Id.wall,handler,13));\r\n handler.addTile(new Wall(260,200,1*SCALE,1*SCALE,Id.wall,handler,9));\r\n handler.addTile(new Wall(300,200,1*SCALE,1*SCALE,Id.wall,handler,1));\r\n handler.addTile(new Wall(320,200,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(340,200,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(360,200,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(380,200,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(60,220,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(100,220,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(260,220,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(300,220,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(0,240,1*SCALE,1*SCALE,Id.wall,handler,1));\r\n handler.addTile(new Wall(20,240,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(40,240,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(60,240,1*SCALE,1*SCALE,Id.wall,handler,13));\r\n handler.addTile(new Wall(100,240,1*SCALE,1*SCALE,Id.wall,handler,8));\r\n handler.addTile(new Wall(140,240,1*SCALE,1*SCALE,Id.wall,handler,6));\r\n handler.addTile(new Wall(160,240,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(180,240,1*SCALE,1*SCALE,Id.wall,handler,3));\r\n handler.addTile(new Wall(200,240,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(220,240,1*SCALE,1*SCALE,Id.wall,handler,7));\r\n handler.addTile(new Wall(260,240,1*SCALE,1*SCALE,Id.wall,handler,8));\r\n handler.addTile(new Wall(300,240,1*SCALE,1*SCALE,Id.wall,handler,10));\r\n handler.addTile(new Wall(320,240,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(340,240,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(360,240,1*SCALE,1*SCALE,Id.wall,handler,4));\r\n handler.addTile(new Wall(0,260,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(180,260,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(360,260,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(0,280,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(40,280,1*SCALE,1*SCALE,Id.wall,handler,6));\r\n handler.addTile(new Wall(60,280,1*SCALE,1*SCALE,Id.wall,handler,4));\r\n handler.addTile(new Wall(100,280,1*SCALE,1*SCALE,Id.wall,handler,6));\r\n handler.addTile(new Wall(120,280,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(140,280,1*SCALE,1*SCALE,Id.wall,handler,7));\r\n handler.addTile(new Wall(180,280,1*SCALE,1*SCALE,Id.wall,handler,8));\r\n handler.addTile(new Wall(220,280,1*SCALE,1*SCALE,Id.wall,handler,6));\r\n handler.addTile(new Wall(240,280,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(260,280,1*SCALE,1*SCALE,Id.wall,handler,7));\r\n handler.addTile(new Wall(300,280,1*SCALE,1*SCALE,Id.wall,handler,1));\r\n handler.addTile(new Wall(320,280,1*SCALE,1*SCALE,Id.wall,handler,7));\r\n handler.addTile(new Wall(360,280,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(0,300,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(60,300,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(300,300,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(360,300,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(0,320,1*SCALE,1*SCALE,Id.wall,handler,11));\r\n handler.addTile(new Wall(20,320,1*SCALE,1*SCALE,Id.wall,handler,7));\r\n handler.addTile(new Wall(60,320,1*SCALE,1*SCALE,Id.wall,handler,8));\r\n handler.addTile(new Wall(100,320,1*SCALE,1*SCALE,Id.wall,handler,9));\r\n handler.addTile(new Wall(140,320,1*SCALE,1*SCALE,Id.wall,handler,6));\r\n handler.addTile(new Wall(160,320,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(180,320,1*SCALE,1*SCALE,Id.wall,handler,3));\r\n handler.addTile(new Wall(200,320,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(220,320,1*SCALE,1*SCALE,Id.wall,handler,7));\r\n handler.addTile(new Wall(260,320,1*SCALE,1*SCALE,Id.wall,handler,9));\r\n handler.addTile(new Wall(300,320,1*SCALE,1*SCALE,Id.wall,handler,8));\r\n handler.addTile(new Wall(340,320,1*SCALE,1*SCALE,Id.wall,handler,6));\r\n handler.addTile(new Wall(360,320,1*SCALE,1*SCALE,Id.wall,handler,12));\r\n handler.addTile(new Wall(0,340,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(100,340,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(180,340,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(260,340,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(360,340,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(0,360,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(40,360,1*SCALE,1*SCALE,Id.wall,handler,6));\r\n handler.addTile(new Wall(60,360,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(80,360,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(100,360,1*SCALE,1*SCALE,Id.wall,handler,14));\r\n handler.addTile(new Wall(120,360,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(140,360,1*SCALE,1*SCALE,Id.wall,handler,7));\r\n handler.addTile(new Wall(180,360,1*SCALE,1*SCALE,Id.wall,handler,8));\r\n handler.addTile(new Wall(220,360,1*SCALE,1*SCALE,Id.wall,handler,6));\r\n handler.addTile(new Wall(240,360,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(260,360,1*SCALE,1*SCALE,Id.wall,handler,14));\r\n handler.addTile(new Wall(280,360,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(300,360,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(320,360,1*SCALE,1*SCALE,Id.wall,handler,7));\r\n handler.addTile(new Wall(360,360,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(0,380,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(360,380,1*SCALE,1*SCALE,Id.wall,handler,5));\r\n handler.addTile(new Wall(0,400,1*SCALE,1*SCALE,Id.wall,handler,10));\r\n handler.addTile(new Wall(20,400,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(40,400,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(60,400,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(80,400,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(100,400,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(120,400,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(140,400,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(160,400,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(180,400,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(200,400,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(220,400,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(240,400,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(260,400,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(280,400,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(300,400,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(320,400,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(340,400,1*SCALE,1*SCALE,Id.wall,handler,2));\r\n handler.addTile(new Wall(360,400,1*SCALE,1*SCALE,Id.wall,handler,13));\r\n handler.addTile(new Wall(9*SCALE,8*SCALE + 6,1*SCALE,1*SCALE,Id.gate,handler,15));\r\n }", "title": "" }, { "docid": "c54f2b759754708520ad9db13a1bb519", "score": "0.5931205", "text": "private void createRoomTiles(int noOfRows, int noOfColumns)\n {\n mapTiles = new Tile[noOfRows][noOfColumns];\n\n for(int i = 0; i < noOfRows; i++)\n {\n for(int j = 0; j < noOfColumns; j++)\n {\n int x = i % noOfRows;\n int y = j % noOfColumns;\n\n if(tileMap[i][j].equals(\".\"))\n {\n mapTiles[i][j] = new Wall((x * tileWidth), (y * tileHeight), tileWidth, tileHeight,\n getTileBitmap(typesOfTiles.GREY_BRICK), tileMapScreen, TileType.WALL);\n }\n else\n {\n mapTiles[i][j] = new Floor(1f, (x * tileWidth), (y * tileHeight), tileWidth, tileHeight,\n getTileBitmap(typesOfTiles.WHITE_TILE), tileMapScreen, TileType.FLOOR);\n }\n }\n }\n }", "title": "" }, { "docid": "12bcbb449af4c09eb36eac914965da04", "score": "0.5929021", "text": "public TileWorld(PlayScreen screen){\n\n TiledMap map= screen.getMap();\n this.scale=AuberGame.ZOOM;\n createRooms(map);\n\n\n // create systems\n shipSystems = new ArrayList<>();\n for(MapObject object : map.getLayers().get(1).getObjects().getByType(RectangleMapObject.class)){\n Rectangle rect = magnifyRectange(((RectangleMapObject) object).getRectangle());\n shipSystems.add(new ShipSystem(rect.x,rect.y,getRoom(rect.x,rect.y),screen.graph));\n\n\n }\n\n //create objects\n collisionBoxes=new ArrayList<>();\n\n for(MapObject object : map.getLayers().get(2).getObjects().getByType(RectangleMapObject.class)){\n Rectangle rect = magnifyRectange(((RectangleMapObject) object).getRectangle());\n collisionBoxes.add(rect);\n\n }\n //create teleporters\n teleporters = new Hashtable<String,Rectangle>();\n for(MapObject object : map.getLayers().get(3).getObjects().getByType(RectangleMapObject.class)){\n Rectangle rect = ((RectangleMapObject) object).getRectangle();\n rect.x=rect.x*scale+rect.width*scale/2;\n rect.y=rect.y*scale+rect.height*scale/2;\n rect.width=25;\n rect.height=25;\n teleporters.put(getRoom(rect.x,rect.y),rect);\n\n\n }\n //walls\n\n for(MapObject object : map.getLayers().get(4).getObjects().getByType(RectangleMapObject.class)){\n Rectangle rect = magnifyRectange(((RectangleMapObject) object).getRectangle());\n collisionBoxes.add(rect);\n\n }\n }", "title": "" }, { "docid": "5aa492f1d823a1e6f6eaf65cdb32a76a", "score": "0.59219664", "text": "public Level(int width, int height) {\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t\ttilesInt = new int[width * height];\n\t\tgenerateLevel();\n\t}", "title": "" }, { "docid": "fbca8e277a2ada504f1911c58dd99d1f", "score": "0.5919865", "text": "private void setWalls() {\n\t\tswitch (iModus) {\n\t\tcase 0:\n\t\t\t// Jedes 2. Feld in jeder\n\t\t\t// 2. Zeile wird mit einem festen Block versehen\n\t\t\tfor (int i = 0; i < Map.length; i++) {\n\t\t\t\tfor (int j = 0; j < Map[0].length; j++) {\n\t\t\t\t\tif ((i % 2 == 0) && (j % 2 == 0)\n\t\t\t\t\t\t\t&& (Map[i][j].getContent() != EMPTY)) {\n\t\t\t\t\t\tMap[i][j].setContent(WALL);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\n\t\tcase 1:\n\t\t\t// Jedes 2. Feld in jeder 2. Zeile wird mit einer Chance\n\t\t\t// von einem bestimmten Prozentsatz mit einem festen Block versehen\n\t\t\tif (iModus == 1) {\n\t\t\t\tfor (int i = 0; i < Map.length; i++) {\n\t\t\t\t\tfor (int j = 0; j < Map[0].length; j++) {\n\t\t\t\t\t\tif (checkSurroundings(i, j, 1, WALL, true) == false) {\n\t\t\t\t\t\t\tif (Math.random() <= fRandomChance) {\n\t\t\t\t\t\t\t\tMap[i][j].setContent(WALL);\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\tbreak;\n\n\t\tcase 2:\n\t\t\t// Es werden auf zufaelligen Feldern feste Bloecke platziert,\n\t\t\t// bis das Spielfeld voll ist oder ein bestimmter Wert erreicht\n\t\t\t// wurde\n\t\t\tif (iModus == 2) {\n\t\t\t\tint iPosition = 0;\n\t\t\t\tint iRandomPosition;\n\t\t\t\tint iRandom[] = new int[2];\n\t\t\t\tint iTmpRandomAmount = iRandomAmount;\n\t\t\t\tList<int[]> iRandomList = new ArrayList<int[]>();\n\t\t\t\tfor (int i = 2; i < Map.length - 2; i++) {\n\t\t\t\t\tfor (int j = 2; j < Map[0].length - 2; j++) {\n\t\t\t\t\t\tif ((i % 2 == 0) && (j % 2 == 0)) {\n\t\t\t\t\t\t\tiRandomList.add(new int[2]);\n\t\t\t\t\t\t\tiRandomList.get(iPosition)[0] = i;\n\t\t\t\t\t\t\tiRandomList.get(iPosition)[1] = j;\n\t\t\t\t\t\t\tiPosition++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (iTmpRandomAmount > iRandomList.size()) {\n\t\t\t\t\tiTmpRandomAmount = iRandomList.size();\n\t\t\t\t}\n\t\t\t\twhile (iTmpRandomAmount > 0) {\n\t\t\t\t\tiRandomPosition = (int) (Math.random() * iRandomList.size());\n\t\t\t\t\tiRandom = iRandomList.get(iRandomPosition);\n\t\t\t\t\tMap[iRandom[0]][iRandom[1]].setContent(WALL);\n\t\t\t\t\tiRandomList.remove(iRandomPosition);\n\t\t\t\t\tiTmpRandomAmount--;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "e075f9c1f286297a4a00c066eff97f3c", "score": "0.59190696", "text": "public void generateTiles(){\n\t\ttry {\r\n\t\t\t//cachedImage = new Image(world.getWidth() + Tile.DIMENSIONS * 2, world.getHeight()-150 + Tile.DIMENSIONS * 2);\r\n\t\t\tGraphics g = cachedImage.getGraphics();\r\n\r\n\t\t\tint numTilesX = (world.getWidth() / Tile.DIMENSIONS)+10;\r\n\t\t\tint numTilesY = (world.getHeight() / Tile.DIMENSIONS)+10;\r\n\t\t\tlist= new Tile[numTilesX][numTilesY];\r\n\r\n\r\n\t\t\tfor(int yPos = 0; yPos < numTilesY; yPos++) {\r\n\t\t\t\tfor(int xPos = 0; xPos < numTilesX; xPos++) {\r\n\t\t\t\t\tint rand = (int) (Math.random()*3)+1;\r\n\t\t\t\t\tlist[xPos][yPos]=new Tile(Game.IMAGE_PATH + \"groundTile\"+rand+\".png\",xPos,yPos);\r\n\t\t\t\t\tg.drawImage(sprite.get(Game.IMAGE_PATH + \"groundTile\"+rand+\".png\"), xPos * Tile.DIMENSIONS, yPos * Tile.DIMENSIONS);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tg.flush();\r\n\t\t} catch(SlickException ex) {\r\n\t\t\tSystem.out.println(\"Could not create image for drawing tiles.\");\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8c5faa6e33ce86c410ef2f2a31b3acfd", "score": "0.591561", "text": "private void initLevelVars() \n\t{\n\t\t// Initialize Level Vars\n\t\tlevelNames = new String[24];\n\t\t\n\t\tlevelNames[0] = \"testlevel1\";\n\t\tlevelNames[1] = \"testlevel1\";\n\t\tlevelNames[2] = \"testlevel1\";\n\t\tlevelNames[3] = \"testlevel1\";\n\t\tlevelNames[4] = \"testlevel1\";\n\t\tlevelNames[5] = \"initialLevel\";\n\t\tlevelNames[6] = \"initialLevel\";\n\t\tlevelNames[7] = \"initialLevel\";\n\t\tlevelNames[8] = \"initialLevel\";\n\t\tlevelNames[9] = \"initialLevel\";\n\t\tlevelNames[10] = \"initialLevel\";\n\t\tlevelNames[11] = \"initialLevel\";\n\t\tlevelNames[12] = \"initialLevel\";\n\t\tlevelNames[13] = \"initialLevel\";\n\t\tlevelNames[14] = \"initialLevel\";\n\t\tlevelNames[15] = \"initialLevel\";\n\t\tlevelNames[16] = \"initialLevel\";\n\t\tlevelNames[17] = \"initialLevel\";\n\t\tlevelNames[18] = \"initialLevel\";\n\t\tlevelNames[19] = \"initialLevel\";\n\t\tcoinTotals = new Integer[24];\n\t\ttimeTotals = new Long[24];\n\t\t\n\t\tfor (int i = 0; i < coinTotals.length; i++ )\n\t\t{\n\t\t\tcoinTotals[i] = 0;\n\t\t\ttimeTotals[i] = (long) 0;\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "cb02f4bb1748c27a1de6521172b3b83c", "score": "0.5906295", "text": "public void setupTiles() {\n tiles = new Tile[100];\n int tilesCounter = 0;\n Tile tmpTile = null;\n\n for(int rows = 0; rows < 10; rows++) {\n\n for (int cols = 0; cols < 10; cols++) {\n if(cols % 2 != 0 && rows % 2 == 0) {\n tmpTile = new Tile(cols, rows);\n if(rows < 4) {\n CheckerPiece tmpPiece = new CheckerPiece(CheckColor.BLACK);\n tmpTile.setPiece(tmpPiece);\n }\n else if(rows >5) {\n CheckerPiece tmpPiece = new CheckerPiece(CheckColor.WHITE);\n tmpTile.setPiece(tmpPiece);\n }\n }\n else if(cols % 2 == 0 && rows % 2 != 0) {\n tmpTile = new Tile(cols, rows);\n if(rows < 4) {\n CheckerPiece tmpPiece = new CheckerPiece(CheckColor.BLACK);\n tmpTile.setPiece(tmpPiece);\n }\n else if(rows >5) {\n CheckerPiece tmpPiece = new CheckerPiece(CheckColor.WHITE);\n tmpTile.setPiece(tmpPiece);\n }\n }\n else {\n tmpTile = new Tile(cols, rows);\n }\n tiles[tilesCounter] = tmpTile;\n tilesCounter++;\n }\n }\n }", "title": "" }, { "docid": "5b7c398e96ba2180f6633804cd7066ee", "score": "0.58992636", "text": "public void init() {\n\t\t\n\t\ttileMap = new TileMap(30);\n\t\ttileMap.loadTiles(\"/Tilesets/Bmaptileset.png\");\n\t\ttileMap.loadMap(\"/Maps/level3a.map\");\n\t\ttileMap.setPosition(0, 0);\n\t\ttileMap.setTween(1);\n\t\n\t\t\n\t\tbg1 = new Background(\"/Backgrounds/townbg1.png\", 0.1);\n\t\tbg2 = new Background(\"/Backgrounds/townbg2.png\", 0.14);\n\t\tbg3 = new Background(\"/Backgrounds/cloudbg.png\", 0.2);\n\t\t\n\t\tplayer = new Player(tileMap);\n\t\tplayer.setPosition(57, 90);\n\t\tplayer.setFiring(false);\n\t\t\n\t\tde = new DarkEnergy(tileMap, true);\n\t\t\t\t\n\t\tpopulateEnemies();\n\t\t\n\t\texplosions = new ArrayList<Explosion>();\n\t\tdarkEn = new ArrayList<DarkEnergy>();\n\t\t\n\t\thud = new HUD(player);\n\t\t\n\t\tbgMusic = new AudioPlayer(\"/Music/alevelmusic.mp3\");\n\t\titemPickup = new AudioPlayer(\"/SFX/menuselect.mp3\");\n\t\t\n\t\tbgMusic.play();\n\t\t\n\t\tplayer.setHealth(5);\n\t\tplayer.setMaxHealth(5);\n\t\tplayer.setLives(gsm.lives);\n\n\t\t\n\t}", "title": "" }, { "docid": "f84c4dcd45be9b8c066e28c7e4fab3aa", "score": "0.5892962", "text": "public CrabWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(560, 560, 1); \n prepare();\n\n }", "title": "" }, { "docid": "ebd64171c433a7e71f8d2e1d67820db4", "score": "0.58832085", "text": "public void initBlockViews() {\n if (mWorkspaceView != null) {\n List<Block> rootBlocks = mWorkspace.getRootBlocks();\n ConnectionManager connManager = mWorkspace.getConnectionManager();\n for (int i = 0; i < rootBlocks.size(); i++) {\n BlockGroup bg = mViewFactory.buildBlockGroupTree(\n rootBlocks.get(i), connManager, mTouchHandler);\n mWorkspaceView.addView(bg);\n }\n }\n }", "title": "" }, { "docid": "a8d3d59986cba38854ff0ad367e38283", "score": "0.58796704", "text": "public void createTiles() {\n Random rNum1 = new Random(), rNum2 = new Random();//create 2 random numbers\n\n tiles = new Tile[size][size]; //make the array of tiles the size of the field\n //nested loop to create the tiles\n for (int i = 0; i < size; i++) {\n for (int j = 0; j < size; j++) {\n tiles[i][j] = new Tile(i, j);//create a new tile at i and j in the array\n }\n }\n //create a certain number of bombs depending on the size of the field\n for (int i = 0; i <= size * 3; i++) {\n int num1 = (rNum1.nextInt(size) - 0); //first random number\n int num2 = (rNum2.nextInt(size) - 0); //second random number\n tiles[num1][num2] = new Bomb(num1, num2, false); //turn a tile into a bomb at the x and y coordinates 2 random numbers \n }\n }", "title": "" }, { "docid": "358c7c79044e77f786e7816f0f22b8b9", "score": "0.5878316", "text": "private void populateGame()\n {\n // constants for the location of the three cells initially alive\n final int X1 = 2, Y1 = 2;\n final int X2 = 3, Y2 = 2;\n final int X3 = 4, Y3 = 2;\n final int X4 = 4, Y4 = 3;\n final int X5 = 2, Y5 = 3;\n final int X6 = 2, Y6 = 4;\n final int X7 = 3, Y7 = 4;\n final int X8 = 4, Y8 = 4;\n\n // the grid of Actors that maintains the state of the game\n // (alive cells contains actors; dead cells do not)\n Grid<Actor> grid = world.getGrid();\n \n // create and add LivingCells (a type of Actor) to the three intial locations\n LivingCell LivingCell1 = new LivingCell();\n Location loc1 = new Location(Y1, X1);\n grid.put(loc1, LivingCell1);\n \n LivingCell LivingCell2 = new LivingCell();\n Location loc2 = new Location(Y2, X2);\n grid.put(loc2, LivingCell2);\n \n LivingCell LivingCell3 = new LivingCell();\n Location loc3 = new Location(Y3, X3);\n grid.put(loc3, LivingCell3);\n \n LivingCell LivingCell4 = new LivingCell();\n Location loc4 = new Location(Y4, X4);\n grid.put(loc4, LivingCell4);\n \n LivingCell LivingCell5 = new LivingCell(); \n Location loc5 = new Location(Y5, X5);\n grid.put(loc5, LivingCell5);\n \n LivingCell LivingCell6 = new LivingCell();\n Location loc6 = new Location(Y6, X6);\n grid.put(loc6, LivingCell6);\n\n LivingCell LivingCell7 = new LivingCell();\n Location loc7 = new Location(Y7, X7);\n grid.put(loc7, LivingCell7);\n \n LivingCell LivingCell8 = new LivingCell();\n Location loc8 = new Location(Y8, X8);\n grid.put(loc8, LivingCell8);\n }", "title": "" }, { "docid": "599c982343577dbb065c50cf6c67d327", "score": "0.5876045", "text": "public void loadLevel() {\n Log.d(\"World\", \"Loading level...\");\n JSONObject pacWorld = Assets.pacWorld;\n try {\n Log.d(\"Object\", \"******************************************************************\");\n //Get data from JSON file\n JSONArray data = pacWorld.getJSONArray(\"layers\").getJSONObject(0)\n .getJSONArray(\"data\");\n Log.d(\"World\", data.toString());\n //Load world data into an array\n int len = data.length();\n Log.d(\"World\", \"data.length() -> \" + len);\n int[] worldData = new int[len];\n for (int i = 0; i < len; i++) {\n worldData[i] = (int) data.get(i);\n }\n //Init tiles based on id\n for (int i = 0; i < len; i++) {\n int x = i % NO_OF_TILES_X;\n int y = NO_OF_TILES_Y - (i / NO_OF_TILES_X) - 1;\n\n //Tiled uses global id to determine the run time id (so - 1 to get actual id)\n tiles[y][x].id = worldData[i] - 1;\n\n //Set active tiles based on id\n int id = tiles[y][x].id;\n if (id == Tile.DOT || id == Tile.ENERGIZER || id == Tile.PACMAN ||\n id == Tile.ACTIVE) {\n tiles[y][x].legal = true;\n }\n if (id == Tile.DOT) {\n allDots.add(new Point(x, y));\n numDots += 1;\n\n //Make a few special tiles (must be a dot)\n float num = Helper.Random();\n if (num < 0.04) {\n special.add(new Point(x, y));\n tiles[y][x].special = true;\n }\n }\n if (id == Tile.ENERGIZER) {\n allEnergizers.add(new Point(x, y));\n numEnergizers += 1;\n }\n\n if (id == Tile.PACMAN) {\n //Tile is already legal, set pacman's position\n pacman.setPacmanPos(x, y);\n }\n }\n\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n// tiles[1][1].id = Tile.HOME_L;\n// printTiles();\n\n// for (int y = 0; y < NO_OF_TILES_Y; y++) {\n// for (int x = 0; x < NO_OF_TILES_X; x++) {\n// int pixel = y;\n// //Get color of pixel in testLevel array\n// int a = ((pixel & 0xff000000) >>> 24);\n// int r = ((pixel & 0x00ff0000) >>> 16);\n// int g = ((pixel & 0x0000ff00) >>> 8);\n// int b = ((pixel & 0x000000ff));\n// Tile t = tiles[y][x];\n//\n// //Depending on the color of a pixel, set the tile\n// if (r == 0 && g == 0 && b == 0) {\n// //System.out.println(\"Black block at: \" + x + \" \" + y);\n// t.id = Tile.EMPTY;\n// continue; //We found a tile, do not need to check others\n// }\n// //Active (white tile)\n// if (r == 255 && g == 255 && b == 255) {\n// //System.out.println(\"Wall block at: \" + x + \" \" + y);\n// t.id = Tile.ACTIVE;\n// t.legal = true;\n// continue;\n// }\n// //Food (gray tile)\n// if (r == 120 && g == 120 && b == 120) {\n// t.id = Tile.FOOD;\n// t.legal = true;\n//// numFood++;\n// continue;\n// }\n// //Power up (green tile)\n// if (r == 0 && g == 255 && b == 0) {\n// t.id = Tile.POWER_UP;\n// t.legal = true;\n//// numEnergizers++;\n// continue;\n// }\n// //Player (yellow tile)\n// if (r == 255 && g == 255 && b == 0) {\n// t.id = Tile.PLAYER;\n// t.legal = true;\n//\n//// System.out.println(\"player position: \" + x + \", \" + y);\n//// pacmanTile.setLocation(x, y);\n//// temp.setLocation(x, y);\n////\n//// this.pixel.setLocation(pacmanTile.x * Tile.TILE_WIDTH + scaledNum(3),\n//// pacmanTile.y * Tile.TILE_HEIGHT + scaledNum(4));\n//// this.centerPoint.setLocation(pacmanTile.x * Tile.TILE_WIDTH + scaledNum(3),\n//// pacmanTile.y * Tile.TILE_HEIGHT + scaledNum(4));\n// continue;\n// }\n// }\n// }\n }", "title": "" }, { "docid": "ca4acbe57b48c16fda245939a4dde2af", "score": "0.5874348", "text": "private void setNewStationaryBlocks () {\n int numBotFilled;\n // Count how many blocks from the bottom are filled\n for (numBotFilled = 0; numBotFilled < fallingBlocks.size; numBotFilled++) {\n Block lowerBlock = fallingBlocks.get(numBotFilled);\n if (lowerBlock.getColor() == BlockColor.CLEAR) {\n break;\n }\n }\n // Check if any blocks need dropping\n if (numBotFilled > 0) {\n // Drop blocks\n for (int i = 0; i < numBotFilled; i++) {\n Block fallingBlock = fallingBlocks.get(0);\n removeFallingBlock(0);\n createStationaryBlock(fallingBlock);\n }\n // Set new indices\n for (int i = 0; i < fallingBlocks.size; i++) {\n Block fallingBlock = fallingBlocks.get(i);\n fallingBlock.setIndex(fallingBlock.getIndex() - numBotFilled);\n }\n }\n }", "title": "" }, { "docid": "a8e9a802c6306c349a0f9f62d73efece", "score": "0.5865048", "text": "public LevelTwoObstacles() {\r\n\t\t\r\n\t\t/** Making Blocks!!! **/\r\n\t\t//xpos\r\n\t\tblock0.xpos = 200;\r\n\t\tblock1.xpos = 250;\r\n\t\tblock2.xpos = 300;\r\n\t\tblock3.xpos = 500;\r\n\t\tblock4.xpos = 500;\r\n\t\tblock5.xpos = 650;\r\n\t\tblock6.xpos = 650;\r\n\t\tblock7.xpos = 800;\r\n\t\tblock8.xpos = 800;\r\n\t\tblock9.xpos = 950;\r\n\t\tblock10.xpos = 950;\r\n\t\tblock11.xpos = 1050;\r\n\t\tblock12.xpos = 1150;\r\n\t\tblock13.xpos = 1250;\r\n\t\tblock14.xpos = 1350;\r\n//\t\tblock15.xpos = 1400;\r\n\t\t//ypos\r\n\t\tblock0.ypos = 90;\r\n\t\tblock1.ypos = 0;\r\n\t\tblock2.ypos = 60;\r\n\t\tblock3.ypos = 90;\r\n\t\tblock4.ypos = 60;\r\n\t\tblock5.ypos = 90;\r\n\t\tblock6.ypos = 0;\r\n\t\tblock7.ypos = 60;\r\n\t\tblock8.ypos = 60;\r\n\t\tblock9.ypos = 60;\r\n\t\tblock10.ypos = 60;\r\n\t\tblock11.ypos = 90;\r\n\t\tblock12.ypos = 90;\r\n\t\tblock13.ypos = 90;\r\n\t\tblock14.ypos = 90;\r\n//\t\tblock15.ypos = 90;\r\n\t\t\r\n\t\t/** Making Spikes!!! **/\r\n\t\t//xpos\r\n\t\tspike0.xpos = 100;\r\n\t\tspike1.xpos = 350;\r\n\t\tspike2.xpos = 600;\r\n\t\tspike3.xpos = 750;\r\n\t\tspike4.xpos = 800;\r\n\t\tspike5.xpos = 1300;\r\n\t\tspike6.xpos = 1300;\r\n//\t\tspike7.xpos = 1220;\r\n\t\t//ypos\r\n\t\tspike0.ypos = 108;\r\n\t\tspike1.ypos = 30;\r\n\t\tspike2.ypos = 108;\r\n\t\tspike3.ypos = 108;\r\n\t\tspike4.ypos = 108;\r\n\t\tspike5.ypos = 30;\r\n\t\tspike6.ypos = 108;\r\n//\t\tspike7.ypos = 108;\r\n\t\t//scale\r\n\t\tspike1.scaleY = -1;\r\n\t\tspike5.scaleY = -1;\r\n\t\t\r\n\t\t/** Making Platforms!!! **/\r\n\t\t//xpos\r\n\t\tplatform0.xpos = 0;\r\n\t\tplatform1.xpos = 50;\r\n\t\tplatform2.xpos = 100;\r\n\t\tplatform3.xpos = 250;\r\n\t\tplatform4.xpos = 350;\r\n\t\tplatform5.xpos = 400;\r\n\t\tplatform6.xpos = 450;\r\n\t\tplatform7.xpos = 500;\r\n\t\tplatform8.xpos = 650;\r\n\t\tplatform9.xpos = 700;\r\n\t\tplatform10.xpos = 800;\r\n\t\tplatform11.xpos = 850;\r\n\t\tplatform12.xpos = 900;\r\n\t\tplatform13.xpos = 1050;\r\n\t\tplatform14.xpos = 1200;\r\n\t\tplatform15.xpos = 1350;\r\n\t\tplatform16.xpos = 1400;\r\n\t\tplatform17.xpos = 1450;\r\n\t\tplatform18.xpos = 1500;\r\n\t\tplatform19.xpos = 1550;\r\n//\t\tplatform20.xpos = 100;\r\n//\t\tplatform21.xpos = 150;\r\n//\t\tplatform22.xpos = 200;\r\n//\t\tplatform23.xpos = 250;\r\n//\t\tplatform24.xpos = 300;\r\n//\t\tplatform25.xpos = 350;\r\n//\t\tplatform26.xpos = 400;\r\n//\t\tplatform27.xpos = 450;\r\n//\t\tplatform28.xpos = 500;\r\n//\t\tplatform29.xpos = 550;\r\n//\t\tplatform30.xpos = 600;\r\n//\t\tplatform31.xpos = 650;\r\n//\t\tplatform32.xpos = 700;\r\n//\t\tplatform33.xpos = 750;\r\n//\t\tplatform34.xpos = 800;\r\n//\t\tplatform35.xpos = 850;\r\n//\t\tplatform36.xpos = 900;\r\n//\t\tplatform37.xpos = 950;\r\n//\t\tplatform38.xpos = 1000;\r\n//\t\tplatform39.xpos = 1050;\r\n//\t\tplatform40.xpos = 1100;\r\n\t\t//ypos\r\n\t\tplatform0.ypos = 136;\r\n\t\tplatform1.ypos = 136;\r\n\t\tplatform2.ypos = 136;\r\n\t\tplatform3.ypos = 90;\r\n\t\tplatform4.ypos = 136;\r\n\t\tplatform5.ypos = 122;\r\n\t\tplatform6.ypos = 108;\r\n\t\tplatform7.ypos = 80;\r\n\t\tplatform8.ypos = 100;\r\n\t\tplatform9.ypos = 70;\r\n\t\tplatform10.ypos = 136;\r\n\t\tplatform11.ypos = 108;\r\n\t\tplatform12.ypos = 90;\r\n\t\tplatform13.ypos = 90;\r\n\t\tplatform14.ypos = 136;\r\n\t\tplatform15.ypos = 100;\r\n\t\tplatform16.ypos = 120;\r\n\t\tplatform17.ypos = 136;\r\n\t\tplatform18.ypos = 136;\r\n\t\tplatform19.ypos = 136;\r\n//\t\tplatform20.ypos = 136;\r\n//\t\tplatform21.ypos = 136;\r\n//\t\tplatform22.ypos = 136;\r\n//\t\tplatform23.ypos = 136;\r\n//\t\tplatform24.ypos = 136;\r\n//\t\tplatform25.ypos = 136;\r\n//\t\tplatform26.ypos = 136;\r\n//\t\tplatform27.ypos = 136;\r\n//\t\tplatform28.ypos = 136;\r\n//\t\tplatform29.ypos = 136;\r\n//\t\tplatform30.ypos = 136;\r\n//\t\tplatform31.ypos = 136;\r\n//\t\tplatform32.ypos = 136;\r\n//\t\tplatform33.ypos = 136;\r\n//\t\tplatform34.ypos = 136;\r\n//\t\tplatform35.ypos = 136;\r\n//\t\tplatform36.ypos = 136;\r\n//\t\tplatform37.ypos = 136;\r\n//\t\tplatform38.ypos = 136;\r\n//\t\tplatform39.ypos = 136;\r\n//\t\tplatform40.ypos = 136;\r\n\t\t\r\n\t\t/** Making Lava Pits!!! **/\r\n\t\t//xpos\r\n\t\tlava0.xpos = 100;\r\n\t\tlava1.xpos = 350;\r\n\t\tlava2.xpos = 650;\r\n\t\tlava3.xpos = 1050;\r\n\t\tlava4.xpos = 1125;\r\n\t\tlava5.xpos = 1300;\r\n//\t\tlava6.xpos = 1000;\r\n//\t\tlava7.xpos = 1150;\r\n//\t\tlava8.xpos = 1350;\r\n\t\t//ypos\r\n\t\tlava0.ypos = 120;\r\n\t\tlava1.ypos = 120;\r\n\t\tlava2.ypos = 120;\r\n\t\tlava3.ypos = 120;\r\n\t\tlava4.ypos = 120;\r\n\t\tlava5.ypos = 120;\r\n//\t\tlava6.ypos = 132;\r\n//\t\tlava7.ypos = 132;\r\n//\t\tlava8.ypos = 132;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "34234dfc133806db6c572dce7367a3a8", "score": "0.5860961", "text": "public GameInfo(){\n this.gameBoardRows = 15;\n this.gameBoardCols = 20;\n //this.gameBoard = (new MazeGenerator(numberOfRows, numberOfCols)).createMaze();\n this.gameBoard = new Entity[gameBoardCols][gameBoardRows];\n for(int i = 0; i < gameBoardRows; ++i) {\n for(int j=0; j < gameBoardCols; ++j) {\n if(i==0 || i == gameBoardRows-1 || j == 0 || j == gameBoardCols-1) {\n gameBoard[j][i] = new Wall(j,i);\n }\n else {\n gameBoard[j][i] = new Floor(j,i);\n }\n }\n }\n this.entityList = new ArrayList<>();\n\n initLevel();\n }", "title": "" }, { "docid": "3971b4861d137375bac5add4672b2943", "score": "0.58465785", "text": "public Map() {\n BufferedImage blankImage = new BufferedImage(32,32,BufferedImage.TYPE_INT_RGB);\n BufferedImage blankImageWithTransparency = new BufferedImage(32,32,BufferedImage.TYPE_INT_ARGB);\n for(int i=0; i<2500; i++){\n Tile tileToAdd = new Tile();\n tileToAdd.setImage(blankImage, null, -1, -1);\n layer1.add(tileToAdd);\n }\n for(int i=0; i<2500; i++){\n Tile tileToAdd = new Tile();\n tileToAdd.setImage(blankImageWithTransparency, null, -1, -1);\n layer2.add(tileToAdd);\n layer3.add(tileToAdd);\n }\n }", "title": "" }, { "docid": "c97232c7676291a5adf885da8ca4b1f8", "score": "0.5838967", "text": "private void generateBlocks() {\n\t\tblocks = new ArrayList<>();\n\t\t\n\t\tfor(int x = 0; x < resolution; x++) {\n\t\t\tfor(int i = 0; i < resolution; i++) {\n\t\t\t\t//do math, this finds the lines on the board\n\t\t\t\tint lineX = (x * (width/resolution));\n\t\t\t\tint lineY = (i * (height/resolution));\n\t\t\t\tint width_input = width/resolution;\n\t\t\t\tint height_input = height/resolution;\n\t\t\t\t\n\t\t\t\tblocks.add(new Block(lineX, lineY, width_input, height_input));\n\t\t\t}\n\t\t}\n\t\trepaint(); \n\t\t//sections have been added, repaint\n\t}", "title": "" }, { "docid": "44a238d59ef85970480d5f507ff697ce", "score": "0.5838405", "text": "public WorldGenerator(long seed, int width, int height, boolean isInitNothing) {\n if (width <= 2 || height <= 2) {\n throw new IllegalArgumentException(\"At lease 3x3 for the boundary wall\");\n }\n this.seed = seed;\n random = new Random(seed);\n this.width = width;\n this.height = height;\n this.world = new TETile[width][height];\n if (isInitNothing) {\n for (int i = 0; i < width; i++) {\n for (int j = 0; j < height; j++) {\n this.world[i][j] = Tileset.NOTHING;\n }\n }\n }\n }", "title": "" }, { "docid": "0db6025b8436754d9f7199da1c536267", "score": "0.5834738", "text": "public Map() {\r\n\t\tmap = new Tile[20][20];\r\n\t\tfor (int i = 0; i < map[0].length; i++) {\r\n\t\t\tfor (int j = 0; j < map.length; j++) {\r\n\t\t\t\tint x = (int) (Math.random() * 4);\r\n\t\t\t\tif (x > 0)\r\n\t\t\t\t\tmap[i][j] = new Tile(\"land\");\r\n\t\t\t\telse if (x == 0)\r\n\t\t\t\t\tmap[i][j] = new Tile(\"sea\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int i = 0; i < 5; i++) {\r\n\t\t\tfor (int j = 0; j < 5; j++) {\r\n\t\t\t\tmap[i][j] = new Tile(\"land\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int i = 6; i < 9; i++) {\r\n\t\t\tfor (int j = 6; j < 9; j++) {\r\n\t\t\t\tmap[i][j] = new Tile(\"land\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "588752543d14d5c4d4315cae631ed665", "score": "0.5829174", "text": "private void init()\r\n\t{\r\n\t\t//height and length of background\r\n\t\tdimension.set(10, 5);\r\n\t\t\r\n\t\tbackImageLeft = Assets.instance.levelDecoration.background;\r\n\t\tbackImageRight = Assets.instance.levelDecoration.background;\r\n\t\t\r\n\t\torigin.x = -dimension.x * 2;\r\n\t\tlength += dimension.x * 2;\r\n\t}", "title": "" }, { "docid": "10829b3cd2cc5ae1e1151f5e8b871bc4", "score": "0.5829088", "text": "private void loadBuildingTiles() {\n LOGGER.log(Level.INFO, \"Loading Building Tiles...\");\n\n for (int i = 0; i < 500; i++) {\n try {\n tiles[i] = new StructureTile(BUILDING_TILES_DIR, i, TILE_WIDTH);\n } catch (FileNotFoundException ex) {\n LOGGER.log(Level.FINEST, ex.toString(), ex);\n break;\n }\n }\n }", "title": "" }, { "docid": "8673f9a4a7ba7c75b163726b8f7e4f4e", "score": "0.58277726", "text": "public void gameInit() {\n state = GameState.INIT;\n player = new Player();\n cart = new Cart();\n cars = new Car[6];\n generateLevel();\n }", "title": "" }, { "docid": "a68face6c8a621b39432f747da20e344", "score": "0.58175766", "text": "public void initialize() {\r\n Random rand = new Random();\r\n Velocity ballsVelocity = new Velocity(5, 5);\r\n Ball[] twoBallsArray = new Ball[2];\r\n int surroundingBlocksWidth = 30, totalBlockRows = 6, blocksInFirstRow = 12, eachBlockWidth = 50;\r\n int eachBlockHeight = 30, startingYlocation = 145, paddleWidth = 145, paddleHeight = 30, hitsCounter = 0;\r\n int surfaceHeight = 800, surfaceWidth = 800, drawX = 0, topBlocksHits = 2, otheBlockHits = 1;\r\n double paddleMove = 16;\r\n\r\n Point paddleUpperleft = new Point(205, surfaceHeight - surroundingBlocksWidth - paddleHeight);\r\n\r\n for (int i = 0; i < 2; i++) {\r\n Ball ball = new Ball(100 * (i + 1), 300 * (i + 1), 8, Color.white);\r\n ball.setVelocity(ballsVelocity);\r\n twoBallsArray[i] = ball;\r\n }\r\n for (int i = 0; i < twoBallsArray.length; i++) {\r\n twoBallsArray[i].setGameEnvironment(this.environment);\r\n twoBallsArray[i].addToGame(this);\r\n }\r\n this.gui = new GUI(\"Arkanoid Game\", surfaceWidth, surfaceHeight);\r\n KeyboardSensor keyboard = this.gui.getKeyboardSensor();\r\n for (int i = 0; i < totalBlockRows; blocksInFirstRow--, i++) {\r\n Color randomColor = new Color(rand.nextInt(0xFFFFFF));\r\n for (int j = 0; j < blocksInFirstRow; j++) {\r\n\r\n Point upperLeft = new Point(surfaceWidth - (eachBlockWidth * (j + 1)) - surroundingBlocksWidth\r\n , startingYlocation + (eachBlockHeight * i));\r\n\r\n\r\n if (i != 0) {\r\n Block block = new Block(new Rectangle(upperLeft, eachBlockWidth, eachBlockHeight), randomColor,\r\n otheBlockHits);\r\n\r\n block.addToGame(this);\r\n\r\n } else {\r\n Block block = new Block(new Rectangle(upperLeft, eachBlockWidth, eachBlockHeight), randomColor,\r\n topBlocksHits);\r\n\r\n block.addToGame(this);\r\n\r\n }\r\n }\r\n }\r\n /* creating the blocks that surround the surface according to screen lengths , adding them to the game\r\n and also draw an \"X\" mark in their middle. */\r\n\r\n Block topBlock = new Block(new Rectangle(new Point(0, 0), surfaceWidth, surroundingBlocksWidth),\r\n Color.GRAY, drawX);\r\n topBlock.addToGame(this);\r\n\r\n Block bottomBlock = new Block(new Rectangle(new Point(surroundingBlocksWidth,\r\n surfaceHeight - surroundingBlocksWidth), surfaceWidth - surroundingBlocksWidth * 2,\r\n surroundingBlocksWidth), Color.GRAY, drawX);\r\n bottomBlock.addToGame(this);\r\n\r\n Block leftBlock = new Block(new Rectangle(new Point(0, surroundingBlocksWidth), surroundingBlocksWidth\r\n , surfaceHeight - surroundingBlocksWidth), Color.GRAY, drawX);\r\n leftBlock.addToGame(this);\r\n\r\n Block rightBlock = new Block(new Rectangle(new Point(surfaceWidth - surroundingBlocksWidth,\r\n surroundingBlocksWidth), surroundingBlocksWidth, surfaceHeight - surroundingBlocksWidth),\r\n Color.GRAY, drawX);\r\n rightBlock.addToGame(this);\r\n\r\n Paddle paddle = new Paddle(new Rectangle(paddleUpperleft, paddleWidth, paddleHeight), Color.YELLOW, keyboard,\r\n paddleMove, surroundingBlocksWidth, surfaceWidth);\r\n paddle.addToGame(this);\r\n\r\n }", "title": "" }, { "docid": "3a32dba361c25f72582f9b1a0f547ea3", "score": "0.58153635", "text": "private void CreateFrame(int size , Block[] allBlocks)\n\t{\n\t\tthis.arrBoard = new int[size+2][size+2];\n\t\tfor(int i = 0; i < size+2; i++)\n\t\t{\n\t\t\tfor (int j = 0; j < size+2; j++)\n\t\t\t{\n\t\t\t\tif(i == 0 || j== 0 || i == size+1 || j == size+1)\n\t\t\t\t\tthis.arrBoard[i][j] = -2;\n\t\t\t\telse\n\t\t\t\t\tthis.arrBoard[i][j] = -1;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < this.allBlocks.length; i++)\n\t\t{\n\t\t\tBlock tmp = this.allBlocks[i];\n\t\t\tint x = tmp.getMy_x();\n\t\t\tint y = tmp.getMy_y();\n\t\t\tfor(int j = 0; j < tmp.getMy_length(); j++)\n\t\t\t{\n\t\t\t\tif(tmp.getMy_dir().equals(\"Horizontal\"))\n\t\t\t\t{\n\t\t\t\t\tthis.arrBoard[y][x + j] = i;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tthis.arrBoard[y + j][x] = i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "d63e535aef2b6f5a94246b09523a952b", "score": "0.5813074", "text": "private HashMap<Coordinate, Placeable> genWorld(int level, GameMap gameMap){\n\n //Map\n HashMap<Coordinate, Placeable> map = new HashMap<>();\n\n //Count of tiles to place\n int count = 1000+(100*level);\n\n //Sets the values back to the start\n //data.getPlayer().setX(0);\n //data.getPlayer().setY(0);\n\n //Start x position\n int startX = data.getPlayer().getX();\n //Start y position\n int startY = data.getPlayer().getY();\n\n //Starting player coord\n Coordinate cord = new Coordinate(startX,startY);\n data.getPlayer().setX(startX);\n data.getPlayer().setY(startY);\n\n //Put player into map\n map.put(cord, data.getPlayer());\n\n\n //While more tiles to place\n while(count != 0){\n //Get next location and change x/y accordingly\n int randNum = random.nextInt(4);\n switch (randNum){\n case 0:\n startX -= 1;\n break;\n case 1:\n startX += 1;\n break;\n case 2:\n startY -= 1;\n break;\n case 3:\n startY += 1;\n break;\n }\n //System.out.println(count);\n\n //New Coordinate\n Coordinate c = new Coordinate(startX, startY);\n\n //If map does not contain coordinate already\n if(!map.containsKey(c)){\n //Alter placeables here with order of precedence at bottom\n\n\n //Floor tile\n if(count != 1) {\n map.put(c, new Floor(startX, startY));\n }\n\n //Enemy tile\n if(count % 30 == 0){\n map.put(c, this.data.getEnemyBuilder().getEnemy(startX, startY, false, level));\n }\n\n //Ladder\n if(count == 1){\n map.put(c, new Ladder(startX, startY));\n }\n\n\n //Add to lists here\n if(map.get(new Coordinate(startX, startY)) instanceof Enemy){\n gameMap.getEnemies().add((Enemy)map.get(new Coordinate(startX, startY)));\n }\n\n\n\n count -= 1;\n\n }\n }\n\n //Add walls here maybe...\n\n\n\n\n return map;\n }", "title": "" }, { "docid": "c10e6fd9bbc926abcf857a4acb5467d5", "score": "0.5796088", "text": "private void populateLevel() {\n\t\t// Add level goal\n\t\tfloat dwidth = getBackground().getWidth()/scale.x;\n\t\tfloat dheight = getBackground().getHeight()/scale.y;\n\t\t\n\t\tboolean sensorTethers = true;\n\t\t\n\t\tfloat rad = lilyTexture.getRegionWidth()/2;\n\n\t\tTetherModel lily = new TetherModel(12, 2, dwidth, dheight);\n\t\tlily.setBodyType(BodyDef.BodyType.StaticBody);\n\t\tlily.setName(\"lily\"+ 1);\n\t\tlily.setDensity(TETHER_DENSITY);\n\t\tlily.setFriction(TETHER_FRICTION);\n\t\tlily.setRestitution(TETHER_RESTITUTION);\n\t\tlily.setSensor(sensorTethers);\n\t\tlily.setDrawScale(scale);\n\t\tlily.setTexture(lilyTexture);\n\t\taddObject(lily);\n\t\ttethers.add(lily);\n\t\t\n\t\tlily = new TetherModel(6, 12, dwidth, dheight);\n\t\tlily.setBodyType(BodyDef.BodyType.StaticBody);\n\t\tlily.setName(\"lily\"+ 2);\n\t\tlily.setDensity(TETHER_DENSITY);\n\t\tlily.setFriction(TETHER_FRICTION);\n\t\tlily.setRestitution(TETHER_RESTITUTION);\n\t\tlily.setSensor(sensorTethers);\n\t\tlily.setDrawScale(scale);\n\t\tlily.setTexture(lilyTexture);\n\t\taddObject(lily);\n\t\ttethers.add(lily);\n\t\t\n\t\tlily = new TetherModel(28, 10, dwidth, dheight);\n\t\tlily.setBodyType(BodyDef.BodyType.StaticBody);\n\t\tlily.setName(\"lily\"+ 3);\n\t\tlily.setDensity(TETHER_DENSITY);\n\t\tlily.setFriction(TETHER_FRICTION);\n\t\tlily.setRestitution(TETHER_RESTITUTION);\n\t\tlily.setSensor(sensorTethers);\n\t\tlily.setDrawScale(scale);\n\t\tlily.setTexture(lilyTexture);\n\t\taddObject(lily);\n\t\ttethers.add(lily);\n\t\t\n\t\tlily = new TetherModel(16, 14, dwidth, dheight);\n\t\tlily.setBodyType(BodyDef.BodyType.StaticBody);\n\t\tlily.setName(\"lily\"+ 4);\n\t\tlily.setDensity(TETHER_DENSITY);\n\t\tlily.setFriction(TETHER_FRICTION);\n\t\tlily.setRestitution(TETHER_RESTITUTION);\n\t\tlily.setSensor(sensorTethers);\n\t\tlily.setDrawScale(scale);\n\t\tlily.setTexture(lilyTexture);\n\t\taddObject(lily);\n\t\ttethers.add(lily);\n\n\n\t\tTextureRegion texture = enemyTexture;\n\t\tdwidth = texture.getRegionWidth()/scale.x;\n\t\tdheight = texture.getRegionHeight()/scale.y;\n\t\teFish = new EnemyModel(20, 0, dwidth, dheight);\n\t\teFish.setDensity(ENEMY_DENSITY);\n\t\teFish.setFriction(ENEMY_FRICTION);\n\t\teFish.setRestitution(BASIC_RESTITUTION);\n\t\teFish.setName(\"enemy\");\n\t\teFish.setDrawScale(scale);\n\t\teFish.setTexture(texture);\n\t\teFish.setAngle((float) (Math.PI/2));\n\t\teFish.setBodyType(BodyDef.BodyType.StaticBody);\n\t\teFish.setGoal(0, 0);\n\t\taddObject(eFish);\n\n\t\t// Create the fish avatar\n\t\tdwidth = koiTexture.getRegionWidth()/scale.x;\n\t\tdheight = koiTexture.getRegionHeight()/scale.y;\n\t\tkoi = new PlayerModel(KOI_POS.x, KOI_POS.y, dwidth, dheight);\n\t\tkoi.setDrawScale(scale);\n\t\tkoi.setName(\"koi\");\n\t\tkoi.setTexture(koiTexture);\n\t \n\t\taddObject(koi);\n\t\t\n\t}", "title": "" }, { "docid": "a72ae6a90f83d2cb38824ef0702e1950", "score": "0.5781689", "text": "private void startGame() {\n removeAll();\n\n board = new Board(Misc.getCurrentLevel(), Misc.getScoreContainer());\n board.setDifficulty(mode);\n enemy = new ArrayList<>();\n wallCell = new ArrayList<>();\n pathCell = new ArrayList<>();\n trapACell = new ArrayList<>();\n trapBCell = new ArrayList<>();\n rewardACell = new ArrayList<>();\n rewardBCell = new ArrayList<>();\n this.map = board.getBoardArrayManager().getBoard();\n\n\n player = new DrawLive(board.getPlayerPos(), step, DrawLive.CellType.PLAYER);\n exit = new DrawDead(board.getBoardArrayManager().getExit().getPosition(), step, DrawDead.CellType.EXIT);\n for (int i = 0; i < Math.min(Misc.getCurrentLevel(), 3); i++) {\n enemy.add(new DrawLive(board.getBoardArrayManager().getEnemyPos(i), step, DrawLive.CellType.ENEMY));\n add(enemy.get(i));\n }\n\n add(player);\n add(exit);\n\n createBoard();\n setBackground(Color.decode(\"#483b3a\"));\n setLayout(new OverlayLayout(this));\n\n setFocusable(true);\n setVisible(false);\n repaint();\n }", "title": "" }, { "docid": "1231165f267787be30ad88274850abed", "score": "0.57788813", "text": "private void initialize() {\r\n\t\tcreateMainFrame();\r\n\t\tcreateLevel1();\r\n\t\tcreateLevel2();\r\n\t\tcreateLevel3();\r\n\t\tcreateLevel4();\r\n\t\tcreateLevel5();\r\n\t\tcreateBackHardness();\r\n\t\tcreateLevelEditor();\r\n\t\tsetupBackground();\r\n\t}", "title": "" }, { "docid": "334cec701f71e089aaf2964f4c016f5b", "score": "0.5776858", "text": "public f()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n prepare();\n }", "title": "" }, { "docid": "212168be1695fbb98d4816774df03fed", "score": "0.57744867", "text": "private void setupTiles()\n {\n GameLogger.logInfo(\"Setting up map tiles.\");\n \n tileGrid = new ArrayList< ArrayList<Tile> >();\n // Setup all of the tiles IDs\n \n for(int y = 0; y < height; ++y)\n {\n ArrayList<Tile> line = new ArrayList<Tile>();\n for (int x = 0; x < width; ++x)\n {\n // Get the segment coordinate that corresponds with the\n // current (x, y) coordinate on the map\n int segmentX = x / Constants.TILE_SEGMENT_WIDTH;\n int segmentY = y / Constants.TILE_SEGMENT_WIDTH;\n \n // Get the tile type ID of the tile in the map tile segment\n // corresponding with this segment\n int id = segmentGrid.get(segmentY).get(segmentX).getTileID(x % 5, y % 5);\n \n // Special tile segments need special tiles\n if (segmentX == endX && segmentY == endY)\n {\n // End segment has tiles with ID = 3\n id = 3;\n }\n if (segmentX == itemX && segmentY == itemY)\n {\n // The item segment has tiles with ID = 4\n id = 4;\n }\n if (segmentX == npcX && segmentY == npcY)\n {\n // The NPC segment has tiles with ID = 5\n id = 5;\n }\n \n line.add(new Tile(x, y, id));\n }\n tileGrid.add(line);\n }\n GameLogger.logInfo(\"Map tile setup completed.\");\n \n }", "title": "" }, { "docid": "fa63022c42f878244eeb65b57e5995bf", "score": "0.5769093", "text": "void initWorld() {\r\n this.w1 = new ForbiddenIslandWorld(0, \"regular\");\r\n }", "title": "" }, { "docid": "763895edb6ae7200d1ef3035d0b29270", "score": "0.5766397", "text": "public HouseGeneration()\n {\n houseWidth = Settings.PRACTICE_MAP_SIZE;\n houseHeight = Settings.PRACTICE_MAP_SIZE;\n houseTiles = new Tile[Settings.PRACTICE_MAP_SIZE][Settings.PRACTICE_MAP_SIZE];\n\n minFeatX = houseWidth / 10;\n minFeatY = houseHeight / 10;\n maxFeatX = houseWidth / 5;\n maxFeatY = houseHeight / 5;\n\n currentLevelNum = 1;\n\n lastRandomSeed = System.nanoTime();\n Settings.RANDOM.setSeed(lastRandomSeed);\n\n currentDir = Direction.NORTH;\n\n makeNewHouse();\n\n createLevel();\n\n this.player.setLevel(currentLevel);\n }", "title": "" }, { "docid": "35f6c3a5d82801721c624413fd91a174", "score": "0.57607293", "text": "private void initializeImages() {\n\t\tRoadImage = new Image(\"images/textures/RoadTextureTile_light.png\", scale, scale, true, true);\n\t\tGrassImage = new Image(\"images/textures/Snow.jpg\", scale, scale, true, true);\n\t\tPortalImage = new Image(\"images/textures/wreathPortal2.png\", scale, scale, true, true);\n\t\tLandmarkStopImage = new Image(\"images/textures/RoadTexture.png\", scale, scale, true, true);\n\t\tLandmarkImage = new Image(\"images/textures/house.png\", scale*2, scale*2, true, true);\n\t\t\n\t\t// images for other houses on the block\n\t\tHouseImages.add(new Image(\"images/textures/house2.png\", scale*1.5, scale*1.5, true, true));\n\t\tHouseImages.add(new Image(\"images/sprites/Houses/House1.png\", scale*1.5, scale*1.5, true, true));\n\t\tHouseImages.add(new Image(\"images/sprites/Houses/House2.png\", scale*1.25, scale*1.25, true, true));\n\t\tHouseImages.add(new Image(\"images/sprites/Houses/House3.png\", scale*1.5, scale*1.5, true, true));\n\t\tHouseImages.add(new Image(\"images/sprites/Houses/House4.png\", scale*1.25, scale*1.25, true, true));\n\t\t\n\t\t//roundabout image and image view\n\t\tRoundaboutImage = new Image(\"images/textures/Roundabout2.png\", scale*6, scale*6, true, true);\n\t\tRoundaboutImageView = new ImageView(RoundaboutImage);\n\n\t\t//road closure image\n\t\tRoadClosedImage = new Image(\"images/textures/christmasTree1.png\", scale*2, scale*2, true, true);\n\t\tRoadClosedImageViewA = new ImageView(RoadClosedImage);\n\t\tRoadClosedImageViewB = new ImageView(RoadClosedImage);\n\n\t\t//StopLight images\n\t\tgns_rewImage = new Image(\"images/sprites/Lights/gns_rew.png\", scale*2, scale*2, true, true);\n\t\tyns_rewImage = new Image(\"images/sprites/Lights/yns_rew.png\", scale*2, scale*2, true, true);\n\t\trns_gewImage = new Image(\"images/sprites/Lights/rns_gew.png\", scale*2, scale*2, true, true);\n\t\trns_yewImage = new Image(\"images/sprites/Lights/rns_yew.png\", scale*2, scale*2, true, true);\n\t\tstopImage = new Image(\"images/textures/stoplightIcon.png\", scale*2, scale*2, true, true);\n\t\tyieldImage = new Image(\"images/textures/yieldimg.png\", scale*2, scale*2, true, true);\n\t\t\n\t\t//StopLight/TrafficSign ImageViews (also road block images)\n\t\tboolean placedFirstRoadBlock = false;\n\t\tfor (int i = 0; i < intersectionViews.length; i++) {\n\t\t\tPoint loc = sim.m.getIntersections()[i].getLocation()[0];\n\t\t\tif (sim.m.getIntersections()[i].getSign() != null) {\n\t\t\t\tswitch (sim.m.getIntersections()[i].getSign().getType()) {\n\t\t\t\tcase STOP:\n\t\t\t\t\tintersectionViews[i] = new ImageView(stopImage);\n\t\t\t\t\tbreak;\n\t\t\t\tcase YIELD:\n\t\t\t\t\tintersectionViews[i] = new ImageView(yieldImage);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"initializeImages: something has gone horribly wrong\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (sim.m.getIntersections()[i].getLight() != null) {\n\t\t\t\tintersectionViews[i] = new ImageView(gns_rewImage); //start as green N/S, red E/W. this will be updated before it's an issue\n\t\t\t}\n\t\t\t//Add ImageView to root observable list\n\t\t\troot.getChildren().add(intersectionViews[i]);\n\t\t\t\n\t\t\t//Set correct location for ImageView\n\t\t\tintersectionViews[i].setX(loc.x*scale);\n\t\t\tintersectionViews[i].setY(loc.y*scale);\n\t\t\t\n\t\t\tif (sim.m.getIntersections()[i].isBlocked()) {\t//If the intersection has been blocked\n\t\t\t\tif (!placedFirstRoadBlock) {\t//place the RoadClosedImageViewA\n\t\t\t\t\tplaceRoadClosure(sim.m.getIntersections()[i], RoadClosedImageViewA);\n\t\t\t\t\troot.getChildren().add(RoadClosedImageViewA);\n\t\t\t\t\tplacedFirstRoadBlock = true;\n\t\t\t\t} else {\t//place the RoadClosedImageViewB\n\t\t\t\t\tplaceRoadClosure(sim.m.getIntersections()[i], RoadClosedImageViewB);\n\t\t\t\t\troot.getChildren().add(RoadClosedImageViewB);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//check if there is a blocked vehicle generator\n\t\tfor (int i = 0; i < sim.vg.length; i++) {\n\t\t\tif (sim.vg[i].isBlocked()) {\n\t\t\t\tplaceGeneratorClosure(sim.vg[i]);\n\t\t\t\troot.getChildren().add(RoadClosedImageViewB);\n\t\t\t}\n\t\t}\n\t\t\n\t\tint landmarkCount = 0;\n\t\tint imageViewCount = 0;\n\t\t\n\t\tfor (int j = 0; j < dimensions; j++) {\n\t\t\tfor (int i = 0; i < dimensions; i++) {\n\t\t\t\tif (sim.m.getRouteGrid()[j][i] == 1) {\t\t\t\n\t\t\t\t\tmapImageViews.add(new ImageView(GrassImage));\n\t\t\t\t} else if (sim.m.getRouteGrid()[j][i] == 8) {\n\t\t\t\t\tmapImageViews.add(new ImageView(GrassImage));\n\t\t\t\t\tLandmarkImageViews.add(new ImageView(LandmarkImage));\n\t\t\t\t\tLandmarkImageViews.get(landmarkCount).setX(j*scale);\n\t\t\t\t\tLandmarkImageViews.get(landmarkCount).setY(i*scale);\n\t\t\t\t\tif (i == 9) {\n\t\t\t\t\t\tLandmarkImageViews.get(landmarkCount).setY((i-0.5)*scale );\n\t\t\t\t\t} else if (i == 19 || i == 31) {\n\t\t\t\t\t\tLandmarkImageViews.get(landmarkCount).setX((j-1)*scale );\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\troot.getChildren().add(LandmarkImageViews.get(landmarkCount));\n\t\t\t\t\tlandmarkCount += 1;\n\t\t\t\t} else if(sim.m.getRouteGrid()[j][i] == 2 || sim.m.getRouteGrid()[j][i] == 6) {\n\t\t\t\t\tmapImageViews.add(new ImageView(RoadImage));\t\n\t\t\t\t\tif (sim.m.getRouteGrid()[j][i] == 6 && !foundRAB) {\n\t\t\t\t\t\tRoundaboutImageView.setX(j*scale);\n\t\t\t\t\t\tRoundaboutImageView.setY(i*scale);\n\t\t\t\t\t\troot.getChildren().add(RoundaboutImageView);\n\t\t\t\t\t\tfoundRAB = true;\n\t\t\t\t\t}\n\t\t\t\t} else if (sim.m.getRouteGrid()[j][i] == 3) { //ONLY TO SEE WHERE GENERATORS ARE\n\t\t\t\t\tmapImageViews.add(new ImageView(PortalImage));\n\t\t\t\t\n\t\t\t\t} else if (sim.m.getRouteGrid()[j][i] == 4 || sim.m.getRouteGrid()[j][i] == 5 || (sim.m.getRouteGrid()[j][i] % 7) == 0) { //ONLY TO SEE WHERE INTERSECTIONS ARE\n\t\t\t\t\tmapImageViews.add(new ImageView(RoadImage));\t\n\t\t\t\t} else if (sim.m.getRouteGrid()[j][i] == 9) {\n\t\t\t\t\tmapImageViews.add(new ImageView(GrassImage));\n\t\t\t\t}\n\t\t\t\tmapImageViews.get(imageViewCount).setX(j*scale);\n\t\t\t\tmapImageViews.get(imageViewCount).setY(i*scale);\n\t\t\t\troot.getChildren().add(mapImageViews.get(imageViewCount));\n\t\t\t\timageViewCount += 1;\n\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < landmarkCount; i++) {\n\t\t\tLandmarkImageViews.get(i).toFront();\n\t\t}\n\t\t\n\t\tRoundaboutImageView.toFront();\n\t\tRoadClosedImageViewA.toFront();\n\t\tRoadClosedImageViewB.toFront();\n\t}", "title": "" }, { "docid": "0406467be6e2cd39c918790c4d18a30e", "score": "0.5757149", "text": "public void buildNextLevel() {\n\t\tList<Point> greenBlocks20 = new ArrayList<Point>();\n\t\t\n\t\tcurrentLevel++;\n\t\t\n\t\tfor(int row=0; row<heightFull; row++) {\n\t\t\tfor(int col=0; col<width; col++) {\n\t\t\t\tlevelArray[row][col] = new Coin(-1, col*pixelsInBlock, row*pixelsInBlock);\n\t\t\t}\n\t\t}\n\t\t\n\t\tvy = levels.get(currentLevel).velocity;\n\t\tfloat averagePerRow = levels.get(currentLevel).density;\n\t\tRandom rand = new Random();\n\t\t\n\t\tfor(int row=this.windowHeight; row<heightFull-windowHeight; row++) {\n\t\t\t//boolean rowIsEmpty = true; // used to ensure only one coin is placed on each row\n\t\t\t\n\t\t\t//if (maxPerRow > 3) maxPerRow = 3;\n\t\t\t\n\t\t\tint numberOnRow = rand.nextInt((int) ((averagePerRow*2)+1));\n\t\t\tif (numberOnRow > 8) numberOnRow = 8;\n\t\t\t// pick random column to place death coin on\n\t\t\tboolean[] rowArray = randomPlacementOnRow(numberOnRow, width);\n\t\t\t//array[row][randomColumn] = new Coin(0, randomColumn*pixelsInBlock, row*pixelsInBlock, true);\n\t\t\t\n\t\t\tfor(int col=0; col<width; col++) {\n\t\t\t\t// -1 : empty space\n\t\t\t\t// 0 : death coin\n\t\t\t\t// 1 : bronze coin\n\t\t\t\t// 2 : silver coin\n\t\t\t\t// 3 : gold coin\n\t\t\t\t\n\t\t\t\tif (rowArray[col]) {\n\t\t\t\t\tif (isSpotLegal(row, col)) {\n\t\t\t\t\t\tlevelArray[row][col] = new Coin(0, col*pixelsInBlock, row*pixelsInBlock);\n\t\t\t\t\t}\n\t\t\t\t} else { // !rowArray[col]\n\t\t\t\t\tif (prob20(currentLevel)) {\n\t\t\t\t\t\tlevelArray[row][col] = new Coin(4, col*pixelsInBlock, row*pixelsInBlock);\n\t\t\t\t\t\tgreenBlocks20.add(new Point(col,row));\n\t\t\t\t\t} else if (prob(50)) {\n\t\t\t\t\t\tlevelArray[row][col] = new Coin(3, col*pixelsInBlock, row*pixelsInBlock);\n\t\t\t\t\t\t//rowIsEmpty = false;\n\t\t\t\t\t} else if (prob(15)) {\n\t\t\t\t\t\tlevelArray[row][col] = new Coin(2, col*pixelsInBlock, row*pixelsInBlock);\n\t\t\t\t\t\t//rowIsEmpty = false;\n\t\t\t\t\t} else if (prob(5)) {\n\t\t\t\t\t\tlevelArray[row][col] = new Coin(1, col*pixelsInBlock, row*pixelsInBlock);\n\t\t\t\t\t\t//rowIsEmpty = false;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlevelArray[row][col] = new Coin(-1, col*pixelsInBlock, row*pixelsInBlock);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tbuildSpeedBlockMap(currentLevel);\n\t\tbuildBlocks20(greenBlocks20);\n\t}", "title": "" }, { "docid": "fe9e1f77359395ab6ad2d428b74a902b", "score": "0.5753502", "text": "public Grid(){\r\n\t\tfor (int i = 0; i < grid.length; i++)\r\n\t\t{\r\n\t\t\tfor (int j = 0; j < grid[j].length; j++)\r\n\t\t\t{\r\n\t\t\t\tgrid[i][j] = blockContains.unknown;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "31d640648f5bc8cb55081a74a0182bca", "score": "0.57452065", "text": "public void initialize() {\r\n\r\n terrain.initialize();\r\n }", "title": "" }, { "docid": "5f2665e8c0904e7d5201259351cdcb9b", "score": "0.57274675", "text": "public WallBlock() {\n\t\t }", "title": "" } ]
691ec242cbb0ce370c30fa0b400f7de3
This adds the parameter to the value
[ { "docid": "c08f7983cd15f8cabae84058474e7262", "score": "0.0", "text": "public void add (int value) {\n\t\t \n\t\t total += value;\n\t\t line += \" + \" + value;\n\t\t \n\t }", "title": "" } ]
[ { "docid": "fbed598bac4d5f448f692209dab130b5", "score": "0.72140527", "text": "void addParameter(String key, Object value);", "title": "" }, { "docid": "95ef6402a66223a307d0f4b26ef0128d", "score": "0.69758284", "text": "public void addParameter(String key, Object value) {\n\t\tif (processingTagBody) {\n\t\t\tthis.urlParameters.put(key, value);\n\t\t} else\n\t\t\tsuper.addParameter(key, value);\n\t}", "title": "" }, { "docid": "365dc8daa3863f5eacb47382b016f344", "score": "0.6896601", "text": "public void add(Expression _parameter);", "title": "" }, { "docid": "a31eff90e4f7ba34b609c902248e35c5", "score": "0.68761337", "text": "public void addParameter(String name, String value){\n\t\taddParameter(name,value,false);\n\t}", "title": "" }, { "docid": "00cfce4fad19d7193ba1fb98d1cb1c68", "score": "0.6819264", "text": "public void addParameter(Object parameter) {\n\tparams.add(parameter);\n\t}", "title": "" }, { "docid": "2a3ee5ecfb02157ba01cf08246e6090b", "score": "0.6793254", "text": "public void appendParam(Object param) {\n\t\n\tparams.add(param);\n\n\t\n\t//DebugSupport.printlnTest(\"param=\"+param);\n\t}", "title": "" }, { "docid": "93640b8d80264bf8a561321ce6fa27d0", "score": "0.6762094", "text": "public void setParameter(String param,String value) {}", "title": "" }, { "docid": "d287db57928248224915777c10d5690e", "score": "0.6740408", "text": "public abstract void addParameter(T parameter);", "title": "" }, { "docid": "c9d7b3eebc6ed55ec3c7cab9450faa82", "score": "0.6717129", "text": "public void AddParameter(Parameter param) {\r\n\t\t_parameters.add(param);\r\n\t}", "title": "" }, { "docid": "0a6fe856bb76eb27e72f11d78378556b", "score": "0.6704313", "text": "public void addParameterToLink(String name, String value) {\n \t\tthis.parameterName.add(name);\n \t\tthis.parameterValue.add(value);\n \t}", "title": "" }, { "docid": "66ed9fc67e17070dcd23b634f03f09a7", "score": "0.67032534", "text": "public void addParam(String name, String value) {\r\n Map<String, String> params = getParams();\r\n if (params == null) {\r\n params = new HashMap<String, String>();\r\n setParams(params);\r\n }\r\n params.put(name, value);\r\n }", "title": "" }, { "docid": "e078f53334a57348b6e2a81ddb4b924f", "score": "0.6701586", "text": "private void _addParameter(String parameterName, String parameterValue) {\n if (parameterName == null) {\n throw new NullPointerException(\"parameterName\");\n }\n if (parameterValue == null) {\n throw new NullPointerException(\"parameterValue\");\n }\n List<String> parameterValues = _getParameterValues(parameterName);\n parameterValues.add(parameterValue);\n }", "title": "" }, { "docid": "671f665f3af26fa3d52d8ba2ad5d7242", "score": "0.66950095", "text": "public void parameterUpdate(String paramname, Object value) {\n }", "title": "" }, { "docid": "6eccbc3fc42cde75ab9941f0544314ea", "score": "0.6690286", "text": "public net.opengis.gml.x32.OperationParameterPropertyType addNewValueOfParameter()\n {\n synchronized (monitor())\n {\n check_orphaned();\n net.opengis.gml.x32.OperationParameterPropertyType target = null;\n target = (net.opengis.gml.x32.OperationParameterPropertyType)get_store().add_element_user(VALUEOFPARAMETER$0);\n return target;\n }\n }", "title": "" }, { "docid": "d19bc5ace0647ec02272f2f9d026e4ca", "score": "0.668418", "text": "public void addParameter(String key, String value) {\n\t\tparameters.put(key, value);\n\t}", "title": "" }, { "docid": "d3a1390858651693ad9e38984c9b2f6c", "score": "0.6663966", "text": "protected void addParameter(Object param)\n {\n if (parameters == null)\n {\n parameters = new ArrayList<>();\n }\n parameters.add(param);\n }", "title": "" }, { "docid": "e444da4ee2c46a60b525ff81651c67f3", "score": "0.65986013", "text": "public void addParam(String key, Object value) {\n if (URL.indexOf(\"?\") > 0) URL.append(\"&\");\n else URL.append(\"?\");\n URL.append(key).append(\"=\").append(value);\n }", "title": "" }, { "docid": "902214634ec2a9b6cc4eeb8542383f72", "score": "0.65779245", "text": "public void addParameter(Parameter param) {\n this.params.add(param);\n this.configureBinding(param);\n }", "title": "" }, { "docid": "1199df419747d532568200be6a2598ed", "score": "0.6566004", "text": "net.java.dev.wadl.x2009.x02.ParamDocument.Param addNewParam();", "title": "" }, { "docid": "0173a3ec18237890c81c8e9292fb6adb", "score": "0.6560534", "text": "public final void addParameter (String name, Serializable value)\r\n {\r\n List<Serializable> values = mParameters.get(name);\r\n if (values == null)\r\n {\r\n values = new ArrayList<Serializable>();\r\n mParameters.put(name, values);\r\n }\r\n values.add(value);\r\n }", "title": "" }, { "docid": "71f720c714c4b7a1160cc6656f393861", "score": "0.65491706", "text": "protected final void addParameter(final String parameter) {\n parameters.add(parameter);\n }", "title": "" }, { "docid": "803f943fcfe6c5d77a3bca55b1372dbb", "score": "0.6545216", "text": "public void addNameValue(NameValue param){\n if (localNameValue == null){\n localNameValue = new NameValue[]{};\n }\n\n \n //update the setting tracker\n localNameValueTracker = true;\n \n\n java.util.List list =\n org.apache.axis2.databinding.utils.ConverterUtil.toList(localNameValue);\n list.add(param);\n this.localNameValue =\n (NameValue[])list.toArray(\n new NameValue[list.size()]);\n\n }", "title": "" }, { "docid": "af100affbcc08dfb5dc0ea828aa2a3e0", "score": "0.6539926", "text": "public void setParameter(String parameter, String value)\n {\n\n }", "title": "" }, { "docid": "3733f6fd409969162e608a9691cb1924", "score": "0.6534071", "text": "public void setValue(java.lang.String param){\n \n this.localValue=param;\n \n\n }", "title": "" }, { "docid": "0140c20df181d418f27a24b26dfede01", "score": "0.64981276", "text": "public void addValue()\n {\n if ( activeModulePanel != null )\n {\n addModule( new ConstantValueModule( procedure, getNewLocation() ) );\n }\n }", "title": "" }, { "docid": "337ce9afcf5b8b7515154b1f58b98855", "score": "0.6474892", "text": "public void addGlobalParameter(String key, String value)\n {\n GlobalParameter.setParameter(cnx, key, value);\n cnx.commit();\n }", "title": "" }, { "docid": "f0f0c204663a3582af79a6b701b8fa15", "score": "0.6464821", "text": "public void addParameter(Parameter parameter) {\r\n\t\tthis.parameters.add(parameter);\r\n\t}", "title": "" }, { "docid": "860c801f1b0ce6981a86aa6d0c89483d", "score": "0.64443266", "text": "private void addParameter(Connector c) {\n c.setValueUsed(true);\n c.setLayoutDirection(Connector.EASTTOWEST);\n c.setParameterNumber(ParameterConnectors.size() + 1);\n ParameterConnectors.add(c);\n addConnector(c, true);\n }", "title": "" }, { "docid": "0381d7273ed360abb9e8f2ec8e88203b", "score": "0.6399171", "text": "public void addData(){\n\t\tParamValueObject paramValueObject = new ParamValueObject();\n\t\t//index\n\t\tparamValueObject.getValue().add(\"1\");\n\t\tfor (int i = 0 ; i < columnCount; i ++) {\n\t\t\tparamValueObject.getValue().add(\"\");\n\t\t}\n\n\t\tvalueList.add(paramValueObject);\n\t\tparamValueObject.getValue().set(0, String.valueOf(valueList.size()));\n\t\tparameterTable.setInput(valueList);\n\t\tparameterTable.refresh();\n\t}", "title": "" }, { "docid": "188ed4ee7c398299b2192a0c4ff959b2", "score": "0.6342096", "text": "public B addParameter(Parameter parameter) {\n this.parameters.put(parameter.name(), parameter);\n return this.addJavadocParameter(parameter.name(), parameter.description());\n }", "title": "" }, { "docid": "ed8d7955ff67dda5ba6720d2915081fb", "score": "0.63349867", "text": "void setParameterValue(String name, Object value);", "title": "" }, { "docid": "89111a8f1115a7d2d9c91b1e11078fc8", "score": "0.63314897", "text": "public void\naddParam( Param pParam );", "title": "" }, { "docid": "99f7773cfc2da6e7f91229a719a2236a", "score": "0.63080466", "text": "protected String addParam(Object param) {\n queryParameters.add(param);\n if (withPositionalIndex) {\n return \"?\" + getCurrentPositionalIndex();\n }\n return \"?\";\n }", "title": "" }, { "docid": "62c10859b868aa68ee4932030d002976", "score": "0.62924296", "text": "public DefinitionProviderConfigBuilder addParam(final Param param) {\n\t\tAssertion.checkNotNull(param);\n\t\t//-----\n\t\tmyParams.add(param);\n\t\treturn this;\n\t}", "title": "" }, { "docid": "3da41066481217e3768020efc0c47e5e", "score": "0.62921613", "text": "public void addUserDefinedParameter(String key, String value) {\n\t\tuserDefProps = (userDefProps == null ? new Properties() : userDefProps);\n\t\tuserDefProps.setProperty(key,value);\n\t}", "title": "" }, { "docid": "e13d39146d5e8bd215f9270b91379b84", "score": "0.6259929", "text": "public EndpointBuilder addParam(String key, String value) {\n params.put(key, value);\n return this;\n }", "title": "" }, { "docid": "0e8b08f6229c5c4f6c855b6ffc62e8d8", "score": "0.6224361", "text": "@Override\n\tpublic void setParameter(String key, Object value) {\n\t\t\n\t}", "title": "" }, { "docid": "98300e06c3b5aa92fc0f17b6add13da9", "score": "0.6218213", "text": "public void addParamArg(JTextField argument) {\n arguments.add(argument);\n }", "title": "" }, { "docid": "0461da733b8dbabfc05aaea3ab8828b5", "score": "0.6203944", "text": "public HttpRequest appendParameter(String key, Object value) {\n this.paramMap.put(key, value);\n return this;\n }", "title": "" }, { "docid": "3f88c9a8bfe5f526c6fb387347f6dd7f", "score": "0.6202346", "text": "public void parameterUpdate(String paramname, Object value) {\n // Code to update local variables \n if (paramname.equals(\"nDiv\"))\n nDiv = new Integer((String) value).intValue();\n\n if (paramname.equals(\"outputType\"))\n outputType = (String) value;\n }", "title": "" }, { "docid": "3b4c13cedc8b0ff03c4d2f1c8f8ca158", "score": "0.6196404", "text": "public _0._1.messages._504.iec62325.ParameterDocument.Parameter addNewParameter()\n {\n synchronized (monitor())\n {\n check_orphaned();\n _0._1.messages._504.iec62325.ParameterDocument.Parameter target = null;\n target = (_0._1.messages._504.iec62325.ParameterDocument.Parameter)get_store().add_element_user(PARAMETER$0);\n return target;\n }\n }", "title": "" }, { "docid": "b208b0177c248154665ae8a34df539f6", "score": "0.61912084", "text": "public void add(Object value) {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a8e74ddc31d04b9df573c8f7f447cb90", "score": "0.6180815", "text": "public Builder addParam(String key, Object value) {\n if (params == null) {\n params = new ArrayList<>();\n }\n if (key != null && value != null) {\n Map<String, Object> map = new HashMap<>();\n map.put(key, value);\n this.params.add(map);\n }\n\n return this;\n }", "title": "" }, { "docid": "e085a104d13173f94580102cf9426131", "score": "0.6177361", "text": "private static void setParamTypeValue(JAnnotationUse annotationUse, String param, String dataType, String value) {\r\n if (dataType == null) {\r\n // treat it as string\r\n annotationUse.param(param, JExpr.lit(value));\r\n } else if (dataType.equals(\"short\")) {\r\n annotationUse.param(param, JExpr.lit(Short.valueOf(value)));\r\n } else if (dataType.equals(\"int\")) {\r\n annotationUse.param(param, JExpr.lit(Integer.valueOf(value)));\r\n } else if (dataType.equals(\"long\")) {\r\n annotationUse.param(param, JExpr.lit(Long.valueOf(value)));\r\n } else if (dataType.equals(\"char\")) {\r\n annotationUse.param(param, JExpr.lit(value != null && value.length() > 0 ? value.charAt(0) : ' '));\r\n } else if (dataType.equals(\"boolean\")) {\r\n annotationUse.param(param, JExpr.lit(Boolean.valueOf(value)));\r\n } else if (dataType.equals(\"double\")) {\r\n annotationUse.param(param, JExpr.lit(Double.valueOf(value)));\r\n } else if (dataType.equals(\"float\")) {\r\n annotationUse.param(param, JExpr.lit(Float.valueOf(value)));\r\n } else if (dataType.equals(\"String\")) {\r\n annotationUse.param(param, JExpr.lit(value));\r\n }\r\n }", "title": "" }, { "docid": "43a551702153ae26ee9463aa14bb2d68", "score": "0.6176304", "text": "public abstract void updateParam(String name, Object value);", "title": "" }, { "docid": "503c9bf506176489f31851d4f9d02c95", "score": "0.6173883", "text": "public void addParameter(String name, String value, boolean allowDuplicates){\n\t\tif (parameters==null){\n\t\t\tparameters = new HashMap<String,List<String>>();\n\t\t}\n\t\tList<String> paramList = parameters.get(name);\n\t\tif (paramList==null){\n\t\t\tparamList = new ArrayList<String>();\n\t\t}\n\t\tif (allowDuplicates||!paramList.contains(value)){\n\t\t\tparamList.add(value);\n\t\t}\n\t\tparameters.put(name, paramList);\n\t}", "title": "" }, { "docid": "be0ef7d4f02d2134aa3a5a4996ff5446", "score": "0.6171478", "text": "@Override\n public CxfConsumerFunctionCallRequest<T> parameter(String name, OObject value) {\n params.add(OFunctionParameters.create(name, value));\n return this;\n }", "title": "" }, { "docid": "845cb5a48896fc7c86924bf089215b76", "score": "0.6141223", "text": "@Override\n\tpublic void addOwnedParameter(CORBAParameter val) {\n\t\tgetOwnedParameter();\n\n\t\tfinal Object rawValue = ZDLUtil.getValue(element,\n\t\t\t\t\"CCM::CCM_Component::HomeOperation\", \"ownedParameter\");\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tfinal java.util.List<Object> rawList = (java.util.List<Object>) rawValue;\n\t\trawList.add(val.eObject());\n\t\tif (_ownedParameter != null) {\n\t\t\t_ownedParameter.add(val);\n\t\t}\n\t}", "title": "" }, { "docid": "2599af9e7f17497d1ee7436560d14849", "score": "0.6101587", "text": "public void addParameterToLink(String name, int value) {\n \t\taddParameterToLink(name, Integer.toString(value));\n \t}", "title": "" }, { "docid": "ade689ed8d134f7616050e1fb842891b", "score": "0.6099825", "text": "public void addParameter(String name, ParameterDetails pDetails) {\n assert name != null;\n assert pDetails != null;\n assert paramList != null;\n\n if (paramList.get(name) != null) {\n paramList.get(name).setValue(pDetails.getValue());\n } else {\n paramList.put(name, pDetails);\n }\n }", "title": "" }, { "docid": "08cc343877496b6155030f351fa7ffef", "score": "0.6089524", "text": "public Executor addCustomArgument(String name, Object value) {\n if (null == name || 0 == name.length()) {\n throw new IllegalArgumentException(\"parameter name must be given\");\n }\n arguments.put(name, convertToVIL(value));\n return this;\n }", "title": "" }, { "docid": "68bc36c28cc41e10d18f3b9b6dbd3457", "score": "0.60861117", "text": "public QueryStringBuilder addQueryParameter(final NameValuePair param) {\n\t\tif (param != null && (!this.parameters.containsKey(param.getName()) || this.override)) {\n\t\t\tthis.parameters.put(param.getName(), param);\n\t\t}\n\t\treturn this;\n\t}", "title": "" }, { "docid": "be1dd319ded48ccf0a4629dba6bb03c3", "score": "0.6085523", "text": "public void\naddParamType( Type pParamType );", "title": "" }, { "docid": "6e8844a3c62acb0073af332d2799e582", "score": "0.607952", "text": "@Override\n public final void put(Parameter parameter, Object value) {\n contextParameters.put(parameter, value);\n }", "title": "" }, { "docid": "31364eb5cce1c5cda2861a999d1134b7", "score": "0.6071282", "text": "public void setTargetParameter(String param,Object value){\n //System.out.println(\"set \"+param+\" to \"+value);\n String targetObject=objectToBeModifiedByIteratedParameter(param);\n //System.out.println(\"value: \"+value);\n //TODO: implement setParameter in these three classes.\n if(targetObject.equals(\"currParam\")){\n if(param.equalsIgnoreCase(\"user\")) currParam.setUser((String)value);\n else if(param.equalsIgnoreCase(\"dateTime\")) currParam.setDateTime((String)value);\n else if(param.equalsIgnoreCase(\"comment\")) currParam.setComment((String)value);\n else if(param.equalsIgnoreCase(\"modelInput\")) currParam.setModelInput((String)value);\n\n else if(param.equalsIgnoreCase(\"spread.1\")) currParam.getSpread()[0]=((Integer)value).intValue();\n else if(param.equalsIgnoreCase(\"spread.2\")) currParam.getSpread()[1]=((Integer)value).intValue();\n else if(param.equalsIgnoreCase(\"spread.3\")) currParam.getSpread()[2]=((Integer)value).intValue();\n else if(param.equalsIgnoreCase(\"spread.4\")) currParam.getSpread()[3]=((Integer)value).intValue();\n else if(param.equalsIgnoreCase(\"spread.5\")) currParam.getSpread()[4]=((Integer)value).intValue();\n else if(param.equalsIgnoreCase(\"spread.6\")) currParam.getSpread()[5]=((Integer)value).intValue();\n else if(param.equalsIgnoreCase(\"spread.7\")) currParam.getSpread()[6]=((Integer)value).intValue();\n\n else if(param.equalsIgnoreCase(\"spreadscale.1\")) currParam.getSpreadScale()[0]=((Integer)value).intValue();\n else if(param.equalsIgnoreCase(\"spreadscale.2\")) currParam.getSpreadScale()[1]=((Integer)value).intValue();\n else if(param.equalsIgnoreCase(\"spreadscale.3\")) currParam.getSpreadScale()[2]=((Integer)value).intValue();\n else if(param.equalsIgnoreCase(\"spreadscale.4\")) currParam.getSpreadScale()[3]=((Integer)value).intValue();\n else if(param.equalsIgnoreCase(\"spreadscale.5\")) currParam.getSpreadScale()[4]=((Integer)value).intValue();\n else if(param.equalsIgnoreCase(\"spreadscale.6\")) currParam.getSpreadScale()[5]=((Integer)value).intValue();\n else if(param.equalsIgnoreCase(\"spreadscale.7\")) currParam.getSpreadScale()[6]=((Integer)value).intValue();\n\n else if(param.equalsIgnoreCase(\"min\")) currParam.setMin(((Float)value).doubleValue());\n else if(param.equalsIgnoreCase(\"max\")) currParam.setMax(((Float)value).doubleValue());\n else if(param.equalsIgnoreCase(\"nreps\")) currParam.setNReps(((Float)value).intValue());\n else if(param.equalsIgnoreCase(\"slicesPerPhon\")) currParam.setSlicesPerPhon(((Integer)value).intValue());\n else if(param.equalsIgnoreCase(\"fslices\")) currParam.setFSlices(((Integer)value).intValue());\n else if(param.equalsIgnoreCase(\"decay.F\")) currParam.getDecay().F=((Float)value).doubleValue();\n else if(param.equalsIgnoreCase(\"decay.P\")) currParam.getDecay().P=((Float)value).doubleValue();\n else if(param.equalsIgnoreCase(\"decay.W\")) currParam.getDecay().W=((Float)value).doubleValue();\n else if(param.equalsIgnoreCase(\"rest.F\")) currParam.getRest().F=((Float)value).doubleValue();\n else if(param.equalsIgnoreCase(\"rest.P\")) currParam.getRest().P=((Float)value).doubleValue();\n else if(param.equalsIgnoreCase(\"rest.W\")) currParam.getRest().W=((Float)value).doubleValue();\n else if(param.equalsIgnoreCase(\"alpha.if\")) currParam.getAlpha().IF=((Float)value).doubleValue();\n else if(param.equalsIgnoreCase(\"alpha.fp\")) currParam.getAlpha().FP=((Float)value).doubleValue();\n else if(param.equalsIgnoreCase(\"alpha.pf\")) currParam.getAlpha().PF=((Float)value).doubleValue();\n else if(param.equalsIgnoreCase(\"alpha.pw\")) currParam.getAlpha().PW=((Float)value).doubleValue();\n else if(param.equalsIgnoreCase(\"alpha.wp\")) currParam.getAlpha().WP=((Float)value).doubleValue();\n else if(param.equalsIgnoreCase(\"gamma.F\")) currParam.getGamma().F=((Float)value).doubleValue();\n else if(param.equalsIgnoreCase(\"gamma.P\")) currParam.getGamma().P=((Float)value).doubleValue();\n else if(param.equalsIgnoreCase(\"gamma.W\")) currParam.getGamma().W=((Float)value).doubleValue();\n //else if(param.equalsIgnoreCase(\"lambda.F\")) currParam.getLambda().F=((Float)value).doubleValue();\n //else if(param.equalsIgnoreCase(\"lambda.P\")) currParam.getLambda().P=((Float)value).doubleValue();\n //else if(param.equalsIgnoreCase(\"lambda.W\")) currParam.getLambda().W=((Float)value).doubleValue();\n else if(param.equalsIgnoreCase(\"lexicon\")) currParam.setLexicon((edu.uconn.psy.jtrace.Model.TraceLexicon)value);\n else if(param.equalsIgnoreCase(\"dictionary\")) currParam.setLexicon((edu.uconn.psy.jtrace.Model.TraceLexicon)value);\n else if(param.equalsIgnoreCase(\"deltaInput\")) currParam.setDeltaInput(((Float)value).intValue());\n else if(param.equalsIgnoreCase(\"noiseSD\")) currParam.setNoiseSD(((Float)value).doubleValue());\n else if(param.equalsIgnoreCase(\"stochasticitySD\")) currParam.setStochasticitySD(((Float)value).doubleValue());\n else if(param.equalsIgnoreCase(\"continuumSpec\")) currParam.setContinuumSpec((String)value);\n else if(param.equalsIgnoreCase(\"atten\")) currParam.setAtten(((Float)value).doubleValue());\n else if(param.equalsIgnoreCase(\"bias\")) currParam.setBias(((Float)value).doubleValue());\n else if(param.equalsIgnoreCase(\"learningRate\")) currParam.setLearningRate(((Float)value).doubleValue());\n \n else if(param.equalsIgnoreCase(\"freqNode.RDL_wt\")) currParam.getFreqNode().RDL_wt=((java.lang.Boolean)value).booleanValue();\n else if(param.equalsIgnoreCase(\"freqNode.RDL_wt_c\")) currParam.getFreqNode().RDL_wt_c=((Float)value).doubleValue();\n else if(param.equalsIgnoreCase(\"freqNode.RDL_wt_s\")) currParam.getFreqNode().RDL_wt_s=((Float)value).doubleValue();\n else if(param.equalsIgnoreCase(\"freqNode.RDL_rest\")) currParam.getFreqNode().RDL_rest=((java.lang.Boolean)value).booleanValue();\n else if(param.equalsIgnoreCase(\"freqNode.RDL_rest_c\")) currParam.getFreqNode().RDL_rest_c=((Float)value).doubleValue();\n else if(param.equalsIgnoreCase(\"freqNode.RDL_rest_s\")) currParam.getFreqNode().RDL_rest_s=((Float)value).doubleValue();\n else if(param.equalsIgnoreCase(\"freqNode.RDL_post\")) currParam.getFreqNode().RDL_post=((java.lang.Boolean)value).booleanValue();\n else if(param.equalsIgnoreCase(\"freqNode.RDL_psot_c\")) currParam.getFreqNode().RDL_post_c=((Float)value).doubleValue(); \n }\n else if(targetObject.equals(\"currSim\")){\n //if(param.equals(\"word-window-display\")) currSim.notifyAll(); //TODO\n }\n else if(targetObject.equals(\"currAnalysis\")){ \n if(param.equals(\"k-value\")) currAnalysis.setKValue(((Float)value).intValue());\n //ETC\n }\n else if(targetObject.equals(\"currGraphParameters\")){ \n if(param.equals(\"y-axis-label\")) currGraphParameters.setYLabel((String)value);\n //ETC\n }\n else if(targetObject.equals(\"currScript\")){\n if(param.equals(\"cyclespersim\")) cyclesPerSim=((Integer)value).intValue(); \n } \n }", "title": "" }, { "docid": "2219b2215d004da4929e19a1841fff67", "score": "0.60449064", "text": "public void add(String name, double val) {\n theParameters.add(name, val);\n theValid = true;\n }", "title": "" }, { "docid": "1de7aace86860516568adccaf19108cd", "score": "0.6040922", "text": "public void setParameter(String parameter, long value)\n {\n\n }", "title": "" }, { "docid": "e1a585c9f44b9f1625f87118a930facf", "score": "0.6036196", "text": "public void setParameter(String name, String value) {\n parameters.put(name, value);\n requestRepaint();\n }", "title": "" }, { "docid": "380e38f00f6a6172eef9685be945714a", "score": "0.6028395", "text": "public B addParameter(Supplier<Parameter> supplier) {\n Parameter parameter = supplier.get();\n this.parameters.put(parameter.name(), parameter);\n return this.addJavadocParameter(parameter.name(), parameter.description());\n }", "title": "" }, { "docid": "544c88c95024a9d6ee54c1ec030d610e", "score": "0.601835", "text": "public abstract void setParameter(String key, String value);", "title": "" }, { "docid": "2c0cfe654aabd594771b80d2bdd9a57f", "score": "0.6014504", "text": "public B addParameter(Consumer<Parameter.Builder> consumer) {\n Parameter.Builder builder = Parameter.builder();\n consumer.accept(builder);\n return addParameter(builder.build());\n }", "title": "" }, { "docid": "74e56fa0cfab3f32f9aa08d6382241a3", "score": "0.6010362", "text": "public void addParameter(ServiceParameter par) {\n\t\t\tServiceParameter spUpdate = this.getServiceParamContained(par.getName());\r\n\t\t\tif(spUpdate!=null){\r\n\t\t\t\t//delete\r\n\t\t\t\tthis.removeParameter(spUpdate);\r\n\t\t\t}\r\n\t\t\t//finally add add\r\n\t\t\tthis.serviceParameters.add(par);\r\n\t\t}", "title": "" }, { "docid": "08f6e0b67c1f40929195ad75c2e692a3", "score": "0.59970236", "text": "public void appendParameter(Writer writer, Object parameter, AbstractSession session) {\n session.getDatasourcePlatform().appendParameter(this, writer, parameter);\n }", "title": "" }, { "docid": "b96c7447d295ae5b1a94e7510f105726", "score": "0.59895486", "text": "public void setParameter(String parameter) {\n\t}", "title": "" }, { "docid": "dd2a8d13b9a7baf92055c4772700f9b2", "score": "0.5973511", "text": "public abstract void addDietParameter(IDietParameter dietParameter);", "title": "" }, { "docid": "6ed37d9f759a99db149aad6b0e933a0b", "score": "0.5945305", "text": "private void setParameter(String name,String value) throws IOException\n{\n boundary();\n writeName(name);\n newline();\n newline();\n if (value == null) writeln(\"null\");\n else writeln(value);\n}", "title": "" }, { "docid": "020ced2980540da6b3fb7281c4714d12", "score": "0.5939978", "text": "void addRawParam(String param){\r\n String name;\r\n String value;\r\n int index = param.indexOf(\"=\");\r\n if(index>=0){\r\n name = param.substring(0,index);\r\n value = param.substring(index+1);\r\n }else{\r\n name = param;\r\n value = \"\";\r\n }\r\n\r\n try {\r\n name = URLDecoder.decode(name,\"GBK\");\r\n value = URLDecoder.decode(value,\"GBK\");\r\n } catch (UnsupportedEncodingException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n int period = name.indexOf('.');\r\n if(period<0){\r\n if(name.endsWith(\"[]\")){\r\n params.put(name.substring(0,name.length()-2),null);\r\n }else{\r\n params.put(name,value);\r\n }\r\n }else{\r\n params.put(name.substring(0,period),null);\r\n }\r\n }", "title": "" }, { "docid": "ee3a18586d9983c7e10ac9751ac109f8", "score": "0.5927189", "text": "void addValue(String columnName, String value);", "title": "" }, { "docid": "875463edb0345a5bea9a51cc34f50933", "score": "0.5924827", "text": "public String set(String param, String value);", "title": "" }, { "docid": "fd9decd8958d663f08049af7ea7d1c85", "score": "0.5920952", "text": "private void addParameter(SQLiteDatabase db, String key, String value) {\n ContentValues values = new ContentValues();\n values.put(RcsSettingsData.KEY_KEY, key);\n values.put(RcsSettingsData.KEY_VALUE, value);\n db.insertOrThrow(TABLE, null, values);\n }", "title": "" }, { "docid": "a6da4ce39bbe0015d905e5428ac8d038", "score": "0.59085745", "text": "public void addValue(T value) {\n getData().add(value);\n }", "title": "" }, { "docid": "20705f6fdb81d4ad59ab5136b94bac38", "score": "0.59082544", "text": "public AffirmPaymentServiceRequest addParam(final String name, final Object value)\n {\n params.put(name, value);\n return this;\n }", "title": "" }, { "docid": "9565bcbb76d885a0d99bea6adcf9a66f", "score": "0.5907866", "text": "public Object createParameterValue(UIParameter parameter) {\r\n Object value = parameter.getValue();\r\n boolean escape = true;\r\n \r\n if (parameter instanceof JavaScriptParameter) {\r\n JavaScriptParameter actionParam = (JavaScriptParameter) parameter;\r\n \r\n escape = !actionParam.isNoEscape();\r\n }\r\n \r\n if (escape) {\r\n if (value == null) {\r\n value = \"\";\r\n }\r\n } else {\r\n value = new JSReference(value.toString());\r\n }\r\n \r\n return value;\r\n }", "title": "" }, { "docid": "d4c8eb9b23d91f83971972d7a6cd5caa", "score": "0.5898517", "text": "void setParameter(String name, @Nullable Object value);", "title": "" }, { "docid": "ea6a3101447fffb5c63a892cb62d037c", "score": "0.58818084", "text": "public URLParam addParameter(String key, String value) {\n if (StringUtils.isEmpty(key) || StringUtils.isEmpty(value)) {\n return this;\n }\n return addParameters(Collections.singletonMap(key, value));\n }", "title": "" }, { "docid": "c4493d563d82e7067e02e9f732b75bae", "score": "0.58812046", "text": "public void putParameter(String name, Object value) {\n if(value == null) {\n parameters.remove(name);\n }\n else {\n parameters.put(name, String.valueOf(value));\n }\n }", "title": "" }, { "docid": "b14e63235febcea91492a04875cd39a0", "score": "0.5879281", "text": "public void setParameter(String name, Object value) {\n params.put(name, value);\n }", "title": "" }, { "docid": "5f1139596661d6053a8d9a45c33d1421", "score": "0.587417", "text": "private void addParameter(Class cl) {\n addParameter(new Connector(this, cl, false));\n }", "title": "" }, { "docid": "f56c76cca0ac27bb37d597b680d79654", "score": "0.5871739", "text": "public void setParameterWithName(java.lang.String name, Object value);", "title": "" }, { "docid": "b46b132c769cebf964994a2b0d903480", "score": "0.58713645", "text": "void setParameter(String key, String value) {\n\t\tm_params.setProperty(key, value);\n\t}", "title": "" }, { "docid": "1859e4a92c82a440845e58fb5c93a8fd", "score": "0.5870268", "text": "private void createNewParameter(final Operator.Type t) {\n\t\tfinal CustomOperator fop = mOperator;\n\t\tnormalizeParameterReferences();\n\n\t\tString newName = t.name();\n\t\t{\n\t\t\tint i = 0;\n\t\t\twhile(i<100 && existsParameter(newName)!=null) {\n\t\t\t\ti++;\n\t\t\t\tnewName = t.name() + i;\n\t\t\t}\n\t\t}\n\t\tfinal String paramName = newName;\n\t\tmOperator.addArgument(t,paramName, \"\");\n\t\tfinal ParameterOperator param = mOperator.getParameterOperator(mOperator.getCArguments()-1);\n\t\tmCreateNewParameter(param);\n\t\t\n\t\tnew UndoableAction(scriptEditor.swat,false,\"add parameter to \"+mOperator.getLabel()){\n\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t@Override\n\t\t\tprotected void myRedo() {\n\t\t\t\tsetCustomOperator(fop);\n\t\t\t\tmOperator.addArgument(param,mOperator.getCArguments(),t,paramName, \"\");\n\t\t\t\tmCreateNewParameter(param);\n\t\t\t\tscriptEditor.swat.showOperatorEditor();\n\t\t\t\tscriptEditor.swat.verbEditor.scriptEditor.refresh();\n\t\t\t}\n\t\t\t@Override\n\t\t\tprotected void myUndo() {\n\t\t\t\tsetCustomOperator(fop);\n\t\t\t\tmDeleteParameter(fop.getCArguments()-1);\n\t\t\t\tscriptEditor.swat.showOperatorEditor();\n\t\t\t\tscriptEditor.swat.verbEditor.scriptEditor.refresh();\n\t\t\t}\n\t\t};\n\t}", "title": "" }, { "docid": "22d421d29835686d81083e5c2578d8b9", "score": "0.58700657", "text": "public void addParam(String name, Type type) {\n this.params.put(name, type);\n // Parameters are treated as local variables within the method body.\n this.addVar(name, type);\n }", "title": "" }, { "docid": "3438ad872f03ba66c8d55eaaef41d6c5", "score": "0.5868431", "text": "public void addReferenceTo(java.lang.String param){\n if (localReferenceTo == null){\n localReferenceTo = new java.lang.String[]{};\n }\n\n \n //update the setting tracker\n localReferenceToTracker = true;\n \n\n java.util.List list =\n org.apache.axis2.databinding.utils.ConverterUtil.toList(localReferenceTo);\n list.add(param);\n this.localReferenceTo =\n (java.lang.String[])list.toArray(\n new java.lang.String[list.size()]);\n\n }", "title": "" }, { "docid": "db5a7629611752f046c6483d5d1c92c7", "score": "0.5862565", "text": "void add(final String name, final String value);", "title": "" }, { "docid": "ed1077e282a1aa6b39421029a00bd564", "score": "0.5861443", "text": "public void add(int value) {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "bf8b4adae061884e0456dd3054fe67cb", "score": "0.58492035", "text": "private void updateParameterValue(final String parameter, final String value) {\n\t\tObjects.requireNonNull(getActivity()).runOnUiThread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tif (parameter.equals(XBeeConstants.PARAM_NODE_IDENTIFIER))\n\t\t\t\t\tnodeIdentifierText.setText(value);\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "88306fb071891f1c3966354d7f724dd8", "score": "0.584402", "text": "public void addUserId(java.lang.String param){\n if (localUserId == null){\n localUserId = new java.lang.String[]{};\n }\n\n \n //update the setting tracker\n localUserIdTracker = true;\n \n\n java.util.List list =\n org.apache.axis2.databinding.utils.ConverterUtil.toList(localUserId);\n list.add(param);\n this.localUserId =\n (java.lang.String[])list.toArray(\n new java.lang.String[list.size()]);\n\n }", "title": "" }, { "docid": "1c3779ee00433bb9fc5b77e23b5cafff", "score": "0.5832467", "text": "ArgumentDefinition<T> addValueFormat(String valueFormat);", "title": "" }, { "docid": "77b7b9b94fb2f03458dda15f298ca25d", "score": "0.5829993", "text": "public Object getParameterValue();", "title": "" }, { "docid": "313a4a3e1160c46104ae940c78a37be6", "score": "0.5809058", "text": "public void addId(java.lang.String param){\n if (localId == null){\n localId = new java.lang.String[]{};\n }\n\n \n //update the setting tracker\n localIdTracker = true;\n \n\n java.util.List list =\n org.apache.axis2.databinding.utils.ConverterUtil.toList(localId);\n list.add(param);\n this.localId =\n (java.lang.String[])list.toArray(\n new java.lang.String[list.size()]);\n\n }", "title": "" }, { "docid": "ab65ed9afc089a7c09125a044d0595fc", "score": "0.58048075", "text": "public void AddPostParameter(String name, String value) throws UnsupportedEncodingException\n {\n this.post = appendParameter(this.post, name, value);\n }", "title": "" }, { "docid": "6c61ea40974974915e2d213cc7a3f950", "score": "0.58030915", "text": "public Builder setParameter(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n parameter_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "af4d03552e9fe261399159f1e2f0f047", "score": "0.58013546", "text": "private void add(PagePar par, Object value) {\n mappa.put(par.toString(), value);\n }", "title": "" }, { "docid": "8ac484b2f8ba5b0701026f84e1b4f3dd", "score": "0.5800437", "text": "void setParam(EvoParam param);", "title": "" }, { "docid": "c7b8b651b81179525e0ed3ae37099fc2", "score": "0.57982177", "text": "public void setParameter(String name, String value) {\n/* 154 */ if (this.list == null) {\n/* 155 */ this.list = new ParameterList();\n/* */ }\n/* 157 */ this.list.set(name, value);\n/* */ }", "title": "" }, { "docid": "04adfbd4e5161813fbd915c2ae981c97", "score": "0.57937944", "text": "private void addParameterConstraint(Object value) {\n if (value instanceof ParameterInfo) {\n ParameterInfo parameterInfo = (ParameterInfo)value;\n constraint.addParamIndex(parameterInfo.getIndex(), parameterInfo.getType(),\n getLocalFieldDesc(parameterInfo.getAssociatedField()));\n } else {\n throw new JDOFatalInternalException(I18NHelper.getMessage(messages,\n \"core.constraint.illegalParameterInfo\")); // NOI18N\n }\n }", "title": "" }, { "docid": "780584dd28b2474c70ea83a55335a831", "score": "0.5791527", "text": "com.isat.catalist.oms.order.OOSOrderLineItemParamType addNewParameters();", "title": "" }, { "docid": "5919dfbd7d8de05531d21967e3749dd4", "score": "0.57893395", "text": "public void addValue(Expression value) {\n values.add(value);\n }", "title": "" }, { "docid": "7d5b891d8b124a2ad5925a54c84d3704", "score": "0.57851946", "text": "@Override\n public void process(Object value) {\n add(value);\n }", "title": "" }, { "docid": "c8656f7a5524cb7a51e62a0bec95790b", "score": "0.5783486", "text": "public void setParameter(String parameter, String value, boolean caseSensitive)\n {\n\n }", "title": "" }, { "docid": "b0df77ce2199b6959a9d51a3b7ed1a07", "score": "0.5780574", "text": "@Override\n\tpublic CORBAParameter addOwnedParameter() {\n\t\tgetOwnedParameter();\n\t\torg.eclipse.emf.ecore.EObject newConcept = ZDLUtil.createZDLConcept(\n\t\t\t\telement, \"CCM::CCM_Component::HomeOperation\", \"ownedParameter\",\n\t\t\t\t\"CORBADomain::IDL::CORBAParameter\");\n\t\tCORBAParameter element = ZDLFactoryRegistry.INSTANCE.create(\n\t\t\t\tnewConcept,\n\t\t\t\tCORBAParameter.class);\n\t\tif (_ownedParameter != null) {\n\t\t\t_ownedParameter.add(element);\n\t\t}\n\t\treturn element;\n\t}", "title": "" } ]
93b8c4ed934a3a83b2a45f775cacef64
Checks if the device is currently paused.
[ { "docid": "2c1fb72afbe3277c09b3ddd17833b67c", "score": "0.7651132", "text": "public boolean isPaused();", "title": "" } ]
[ { "docid": "1c9259601a1058c41980f846afde3416", "score": "0.8049371", "text": "public static boolean isPaused() {\n\t\treturn paused;\n\t}", "title": "" }, { "docid": "4708d5d319bd2beb0b00cefecd93c9ef", "score": "0.799415", "text": "public boolean isPaused() {\n\t\treturn this.paused.get();\n\t}", "title": "" }, { "docid": "d7346070a65e8f26a677b72e2c9c6905", "score": "0.7992774", "text": "public synchronized boolean isPaused() {\n return (video == state.PAUSE);\n }", "title": "" }, { "docid": "9aeda11b2627a49e0675b12789e941ce", "score": "0.794273", "text": "public boolean isPaused() {\n\t\treturn this.ap.isPaused();\n\t}", "title": "" }, { "docid": "2396ca2c21f39f4063793bb3b00d0adc", "score": "0.7919724", "text": "public boolean isPaused() {\n return isStopped;\n }", "title": "" }, { "docid": "cd4a2c687326453bb8423918df74b56c", "score": "0.7883042", "text": "public boolean isPaused() {\n return this.paused;\n }", "title": "" }, { "docid": "70adc3dc1dd97a20d5fcc606aac9649d", "score": "0.78708595", "text": "public synchronized boolean isPaused( ) {\n\t\treturn paused;\n\t}", "title": "" }, { "docid": "677ad39f0914f834f286cf95051a5709", "score": "0.7868825", "text": "public boolean isPaused() {\n\t\treturn paused;\n\t}", "title": "" }, { "docid": "44a55a8eab81e5976e49eea2da6942e5", "score": "0.78612655", "text": "public final boolean isPaused() {\n return this.paused;\n }", "title": "" }, { "docid": "e271673cd7178e9b2b19905e3f54b39a", "score": "0.77919453", "text": "public boolean isPaused() {\n Log.d(LOG_TAG, \"isPaused(): \" + (trackReady && !isPlaying()));\n return (trackReady && !isPlaying());\n }", "title": "" }, { "docid": "c82858070ac48e935f9554ba2225f0be", "score": "0.7750046", "text": "public boolean isPaused(){\n if(pauseMeter==0){\n return false;\n }else{\n pauseMeter--;\n return true;\n }\n }", "title": "" }, { "docid": "326250b13a846f830f21fe1f8b9af3bb", "score": "0.7746575", "text": "public boolean isPaused() {\n \t\treturn getGameState() == GameState.PAUSED;\n \t}", "title": "" }, { "docid": "8ddd977e613e96ae774b70eafe35ea30", "score": "0.7694845", "text": "public boolean isPaused() {\r\n return currentState == GameState.Paused;\r\n }", "title": "" }, { "docid": "234cfe4f8e9854f0738e0c4dfc7de93d", "score": "0.7665875", "text": "public boolean isPaused() {\n\t\treturn isPaused;\n\t}", "title": "" }, { "docid": "4ee6a8d0409e0f143deba05adff28d2e", "score": "0.762217", "text": "public boolean paused() {\n return gameState.getClass() == (new GameStatePaused(Shooter.getInstance()).getClass());\n }", "title": "" }, { "docid": "6abcc059cd8abe197116e6b827047e87", "score": "0.75670606", "text": "public boolean hasPaused() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "6ee7352073e43aa8ff6e8193bbd0c438", "score": "0.75574416", "text": "boolean isPaused();", "title": "" }, { "docid": "daa0eae17bd40d095a0baf535b86f5a7", "score": "0.75471276", "text": "public boolean hasPaused() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "c4fd9c28320dc5ce6ccf16ffe2d12477", "score": "0.75308734", "text": "boolean hasPaused();", "title": "" }, { "docid": "9c759ca0887fb6b32c968082f279d747", "score": "0.748063", "text": "public boolean isHasPaused() {\n return mHasPaused;\n }", "title": "" }, { "docid": "7f93a8865eb43568ff88872a35564ca5", "score": "0.74757355", "text": "public boolean isGamePaused() {\n if(paused_status) {\n return true;\n }\n else {\n return false;\n }\n }", "title": "" }, { "docid": "cda51fc73d96aa8c3bc4365dc2dfe60b", "score": "0.7458184", "text": "public boolean isPause() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "2f7392bd3a521cf6ab18f6b71f546d58", "score": "0.7395929", "text": "protected boolean getPaused() {\n return this.paused;\n }", "title": "" }, { "docid": "da1e378a736085ee2062321e9a94b079", "score": "0.72938037", "text": "public boolean getPaused() {\n return paused_;\n }", "title": "" }, { "docid": "ac77abfbfb855401278f2ba03ba73703", "score": "0.72657907", "text": "public boolean getPaused() {\n return paused_;\n }", "title": "" }, { "docid": "3c687174b73e9570ac870ecfe5e888fe", "score": "0.7208362", "text": "boolean getPaused();", "title": "" }, { "docid": "efac7c07a33514c7256fd47d60e1230b", "score": "0.71939915", "text": "public boolean gameIsPaused() {\n return isPaused;\n }", "title": "" }, { "docid": "a35ea558e2ae72d642722760239ed946", "score": "0.7181728", "text": "public boolean isStopped() {\n return verifyPause;\n }", "title": "" }, { "docid": "919233aba98da5cc5b3a4496fcf4469a", "score": "0.7094741", "text": "public boolean isPaused(String reference)\n\t{\n\t\treturn (getWave(reference).state).equals(\"suspended\");\n\t}", "title": "" }, { "docid": "01ec4790cc4de4781164b9417234d9d2", "score": "0.70851237", "text": "public boolean isGamePause() {\n return this.dynamicStatistic.isGamePause();\n }", "title": "" }, { "docid": "0103eda3ab8116ca61d74b8779c7d04f", "score": "0.7026261", "text": "public boolean isGamePaused() {\n\t\treturn gamePaused;\n\t}", "title": "" }, { "docid": "a4a2cce0c589cdcd2f312e27f9da87aa", "score": "0.70031077", "text": "@Override\n public boolean isRunning() {\n return !paused;\n }", "title": "" }, { "docid": "4750d84d8d703eef822459975a062232", "score": "0.699601", "text": "public boolean isPauseSupported();", "title": "" }, { "docid": "308eb4627cf98cf9a02f45567724d1e9", "score": "0.69959706", "text": "public static boolean getPause(){\n\t\treturn Game.pause;\n\t}", "title": "" }, { "docid": "df2b09157183607476fd0f52f6b25dc6", "score": "0.6972725", "text": "public boolean isPaused()\n {\n return executor.isPaused();\n }", "title": "" }, { "docid": "4ae77ddcfa54b4e9e81f3245da2d50e2", "score": "0.6959208", "text": "@Override\r\n\tpublic boolean isPause() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "cb9c841b7e2dca2a875772f6cf5e4427", "score": "0.6941953", "text": "@Override\n\tpublic boolean isRunning() {\n\t\treturn !paused;\n\t}", "title": "" }, { "docid": "8e9ae67bceee613ba8ab637411205c9f", "score": "0.6934687", "text": "boolean hasPauseType();", "title": "" }, { "docid": "9f11d6d079cb3ea5535213ca963011c3", "score": "0.6917023", "text": "@Override\r\n\tpublic boolean canPause() {\r\n\t\treturn pauseable();\r\n\t}", "title": "" }, { "docid": "3780c9ba914bae3a1fb7a9624df4bfad", "score": "0.68976617", "text": "private boolean stopSelfIfActivityPaused() {\n if (activityPaused == null) {\n return false;\n } else {\n long now = new Date().getTime();\n return (now - activityPaused) > ACTIVITY_TIMEOUT;\n }\n }", "title": "" }, { "docid": "fa359b38aa57f24efbcc4204fa1702b4", "score": "0.6886342", "text": "public boolean isGamePaused();", "title": "" }, { "docid": "4e9b799476acc2fe5d633ba18d95b733", "score": "0.68325627", "text": "public void paused() {\n\t\tpaused = true;\n\t}", "title": "" }, { "docid": "ac2209ea1628d28a00b27179a15fa236", "score": "0.6800474", "text": "public static boolean getPauseFlag() {\n return mPauseFlag;\n }", "title": "" }, { "docid": "06243607185de705ce60215fcee905b0", "score": "0.67970455", "text": "public boolean hasPauseType() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "859ac2714d9dd417db379c318d1cdebf", "score": "0.6787118", "text": "public boolean pause() {\r\n return stop();\r\n }", "title": "" }, { "docid": "f1abd03b4ee081d54bff87b3c39984c7", "score": "0.6769875", "text": "public void onPause() {\r\n\t\tisPaused = true;\r\n\t}", "title": "" }, { "docid": "4a7f7a04a99e57bb5b69b829f71d43f0", "score": "0.6766362", "text": "public boolean hasPauseType() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "49bff3aec90691da7eb34ac6be147857", "score": "0.66939646", "text": "public boolean simulationPaused() {\n\t\treturn pauseButton.isSelected();\n\t}", "title": "" }, { "docid": "d8b883d15db3176ceb467c03cbd29e01", "score": "0.66287065", "text": "public synchronized void pause() {\n\t paused = true;\n\t}", "title": "" }, { "docid": "35170a2660f72c361b01bde67b13cba1", "score": "0.65945244", "text": "public boolean isPlaybackActive() {\n int state = mPlaybackState == null ? 0 : mPlaybackState.getState();\n if (isActiveState(state)) {\n return true;\n }\n if (state == mPlaybackState.STATE_PAUSED) {\n long inactiveTime = SystemClock.uptimeMillis() - mLastActiveTime;\n if (inactiveTime < ACTIVE_BUFFER) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "bb40a077e9704ff44c72183bb2402ccc", "score": "0.6585377", "text": "public boolean getPaused(){\r\n return localPaused;\r\n }", "title": "" }, { "docid": "898605b87aa8953bc6bdb4d4a3564227", "score": "0.65689015", "text": "@Override\n public boolean isPauseScreen() {\n return this.pauseGame;\n }", "title": "" }, { "docid": "0821ee3c30024ab1a0bfdfa26b78f542", "score": "0.65667355", "text": "public native boolean getPaused() /*-{\n\t\treturn this.@com.pmt.wrap.titanium.ui.ImageView::handler.paused;\n\t}-*/;", "title": "" }, { "docid": "c2d260c2480f206555cc8d66ae49aaab", "score": "0.6563383", "text": "public boolean hasPauseGroup() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" }, { "docid": "9fb4e609d41ddcbd7afe203fbebd4864", "score": "0.6550655", "text": "public boolean isApplicationInForeground() {\n return resumed > stopped;\n }", "title": "" }, { "docid": "ab0166e5fa8a7d07e51cd5aacd98b208", "score": "0.6521194", "text": "public boolean hasPauseGroup() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" }, { "docid": "595b4ab3d7da058fe7bb20d397e55c58", "score": "0.6510938", "text": "synchronized private boolean waitForUnpaused(){\n\twhile(paused){\n\t\ttry {\n\t\t\twait();\n\t\t} catch (InterruptedException e) {\n\t\t\treturn false;\n\t\t}\n\t}\n\treturn true;\n}", "title": "" }, { "docid": "d8831a33f2eba3288d94cde5b82d13ac", "score": "0.6473723", "text": "public void pause() {\r\n paused.set(true);\r\n }", "title": "" }, { "docid": "91c199f9aecf861d90a5aa48496a45a3", "score": "0.6372645", "text": "public final void pause() {\n this.paused = true;\n }", "title": "" }, { "docid": "81c229fed180659969d34f3d43ba49a9", "score": "0.63251007", "text": "public void pause() {\r\n\t\tpaused = true;\r\n\t}", "title": "" }, { "docid": "8503d5eb68da6619c511e53063ba87df", "score": "0.63104546", "text": "boolean hasPauseGroup();", "title": "" }, { "docid": "091ad0e3b216898e9a9b8da8c0ff4c53", "score": "0.6305599", "text": "public void pause() {\n stopped = true;\n }", "title": "" }, { "docid": "aca73acbb7215dee98d739bddc2a2077", "score": "0.62959105", "text": "@Override\n\tpublic boolean pauseState() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "2c9003b72a8230c068bf05ca507856eb", "score": "0.6282836", "text": "public void setPause() {\n if (isPause == false) {\n isPause = true;\n } else if (isPause == true) {\n isPause = false;\n }\n }", "title": "" }, { "docid": "93708a561b95338c577b541057fc49d7", "score": "0.62825245", "text": "@SuppressWarnings(\"unused\")\n\t\tpublic synchronized boolean isCollectionPaused() {\n\t\t\treturn collectionPaused;\n\t\t}", "title": "" }, { "docid": "c2cfbca779607330d3f19058795f123d", "score": "0.6282417", "text": "public void pause() {\n // must have no synchronized keyword in order to avoid\n // funny behavior when the user clicks the \"Pause\" button.\n assert !isStopped;\n isStopped = true;\n }", "title": "" }, { "docid": "6eac1cdcea9b4bd60d2894eca0ad3af5", "score": "0.62587154", "text": "@Override\n\tpublic void setPaused() {\n\t\tpaused = !paused;\n\t}", "title": "" }, { "docid": "ade3334e31608a91a3b8b5f994e746c2", "score": "0.6240695", "text": "public boolean isPaused(CullType cullType) {\r\n \t\tsynchronized(this.pausedCullTypes) {\r\n \t\t\treturn this.pausedCullTypes.contains(cullType);\r\n \t\t}\r\n \t}", "title": "" }, { "docid": "5d6cedfda3d0f0e4ad1b8a2d3d688b10", "score": "0.6231758", "text": "public synchronized boolean isStopped() {\n return (video == state.STOP);\n }", "title": "" }, { "docid": "f75458db7688930af71087b2205dce56", "score": "0.6185836", "text": "@Override\n\tpublic boolean isPauseScreen() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "887195cd531dacc6585a9686510b0e50", "score": "0.6166604", "text": "public void pause() {\n if (!paused) {\n paused = true;\n queueEvent(() -> {\n try {\n app.pause();\n } catch (Throwable t) {\n Log.e(TAG, \"Error on pause\");\n }\n });\n }\n }", "title": "" }, { "docid": "7df9d1a47c2644e883807b0b8018a9ef", "score": "0.6131414", "text": "public boolean pause() ;", "title": "" }, { "docid": "04e2cdb05501bdb902be94f3e0898532", "score": "0.61145365", "text": "@Override\r\n\tpublic boolean pause() {\n\t\tint code = -1;\r\n\tif(mService!=null){\r\n\t\tHashMap<String,String> arg = new HashMap<String,String>();\r\n\t\tcode = mCP.sendAction2(mService, \"Pause\", arg);\r\n\t\t}\r\n\t\treturn code != -1;\r\n\t}", "title": "" }, { "docid": "87909c66dfafce0f5b587ffc24593604", "score": "0.6089056", "text": "public void pausePlay() {\n isPaused = !isPaused;\n }", "title": "" }, { "docid": "a1f962818288e1b0978425c414a48e78", "score": "0.6017463", "text": "public synchronized static void pause()\r\n\t{\n\t\tif(gameThread != null) {\r\n\t\t\tisPaused ^= true;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a32d9a68bdd7cb8275837f2b6d9d31d8", "score": "0.6015344", "text": "public void setPaused(boolean paused) {\n\t\tthis.paused.set(paused);\n\t}", "title": "" }, { "docid": "8b74152debc078ec33be21c1a9770d51", "score": "0.59895843", "text": "public void Pause() {\r\n\t\tflag_paused = true;\r\n\t\tflag_paused_duration = false;\r\n\t\ttime_pausing = 0;\r\n\t}", "title": "" }, { "docid": "ea16c15204c5667fab3e1e80e1266e76", "score": "0.5975964", "text": "public void pause() { paused = true; setMenu(new PauseMenu()); }", "title": "" }, { "docid": "b808097e52456fcd0e2415f801e6c010", "score": "0.5973661", "text": "public boolean doesGuiPauseGame()\r\n {\r\n return false;\r\n }", "title": "" }, { "docid": "849a931bd5cd2c05a519cc3b1229c76b", "score": "0.5961343", "text": "public boolean doesGuiPauseGame()\n {\n return false;\n }", "title": "" }, { "docid": "595816b9a0a4b76a93e78c89ee09931d", "score": "0.59520024", "text": "@Override\n\tpublic void paused() {\n\t\tlogger.info(\"CPE process paused.\");\n\t\t\n\t\tAnalysisStatus analysisStatus = new AnalysisStatus();\n\t\tanalysisStatus.setAnalysisID(analysis.getId());\n\t\tanalysisStatus.setProgress(0);\n\t\tanalysisStatus.setStatus(AnalysisStatus.Status.PAUSED);\n\t\t\n\t\ttry {\n\t\t\tAnalysisUtils.updateAnalysisStatus(analysisStatus);\n\t\t} catch (SQLException e) {\n\t\t\tlogger.catching(e);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "665e5a4d13eb5aaa42c371efeedd4945", "score": "0.59515184", "text": "public void pause() {\n synchronized (mSurfaceHolder) {\n if (mMode == STATE_RUNNING)\n setState(STATE_PAUSE);\n }\n }", "title": "" }, { "docid": "a1b13eefd5ac707b4bec85eee1b852d8", "score": "0.5942291", "text": "@Override\n\tpublic void pause() {\n\t\tPAUSED = true;\n\t\t\n\t\t// check that the music object is valid\n\t\tif (bgm != null)\n\t\t{\n\t\t\t// pause the music\n\t\t\tbgm.pause();\n\t\t}\n\t\t\n\t\t// verify that the settings is setup\n\t\tif (settings != null)\n\t\t{\n\t\t\t// first run save the initial data\n\t\t\tsaveData();\n\t\t}\n\t}", "title": "" }, { "docid": "e73b914a3e93d4d4710a9acd8c9a881a", "score": "0.5937117", "text": "public boolean isStillPlaying(){\n return !GAME_OVER;\n }", "title": "" }, { "docid": "a21aa2ec6a7de1afbed1fb5e87138148", "score": "0.5932857", "text": "public boolean isStopping() {\n\t\treturn this.donePlaying || this.fadeOut || !this.type.isActive();\n\t}", "title": "" }, { "docid": "90053320cb9e65e0552815253c2baa8f", "score": "0.59205616", "text": "public void pausePlaying() {\n\t\tif (this.ap != null && !this.ap.isPaused())\n\t\t\tthis.ap.setPaused(true);\n\t}", "title": "" }, { "docid": "2ee4865730d5c1fc9138e735043d8fc1", "score": "0.5891306", "text": "public void pause() {\n\t\t\tsynchronized (mSurfaceHolder) {\n\t\t\t\tif (mMode == STATE_RUNNING)\n\t\t\t\t\tsetState(STATE_PAUSE);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "8508d0a9eb74dc92585cadfb7454c96d", "score": "0.58896464", "text": "@Override\r\n\tpublic void pause() {\r\n\t\tpaused(true);\r\n\t}", "title": "" }, { "docid": "bca39dcaa728ce49f5824733bef87278", "score": "0.58859396", "text": "public void pauseButton() {\n this.paused = !this.paused;\n }", "title": "" }, { "docid": "0a4444d6dab8cd57f4c963636f2605cf", "score": "0.5869561", "text": "public void onResume() {\r\n\t\tisPaused = false;\r\n\t}", "title": "" }, { "docid": "bfc9f97de34fe1aed21bc5d21dccc00f", "score": "0.5867214", "text": "@Override\r\n\tprotected void onPause() {\n\t\tif(coin_rotate!=null){\r\n\t\t\tcoin_rotate.stop();\r\n\t\t\tcoin_rotate = null;\r\n\t\t}\r\n\t\r\n\t\tpreference.edit().putBoolean(\"pause\", true).commit();\r\n\t\tpreference.edit().putBoolean(\"pause_call\", false).commit();\r\n\t\tpromptAlert = preference.getBoolean(\"pause\", true);\r\n\t\tsuper.onPause();\r\n\t}", "title": "" }, { "docid": "7a3f28a502ef27b9d099ee5ab4ca342f", "score": "0.58591676", "text": "void setPaused(Boolean b){\n paused = b;\n }", "title": "" }, { "docid": "c2d7b0477e3a6ad48267b8d39421c9e0", "score": "0.58575696", "text": "public boolean isSuspended() {\n return suspended;\n }", "title": "" }, { "docid": "13cca7db364b2ec0d1b7403d495e7eaf", "score": "0.5852908", "text": "public boolean onPause() {\n if (!isLocalFile()) {\n mVideoView.setShouldPause(); //[BUGFIX]-Modify by TCTNJ, dongliang.feng, 2015-03-14, PR948961\n }\n //[BUGFIX]-Modify by TCTNJ, dongliang.feng, 2015-02-10, PR928216 end\n\n // [FEATURE]-Modify-BEGIN by jian.pan1,11/06/2014, For FR828601 Pop-up Video play\n boolean pause = true;\n //[FEATURE]-Add-BEGIN by NJHR(chengqun.sun), 2014/11/20, FR-826631 Multi screen interaction\n // mHandler.removeCallbacksAndMessages(null);\n mHandler.removeCallbacks(mPlayingChecker);\n// mHandler.removeCallbacks(mRemoveBackground);\n mHandler.removeCallbacks(mProgressChecker);\n mHandler.removeCallbacks(showDilaog);\n //[FEATURE]-Add-END by NJHR(chengqun.sun), 2014/11/20, FR-826631 Multi screen interaction\n //[BUGFIX]-Add-BEGIN by TSNJ.haihua.zhu,12/16/2014,PR872085\n if((mVideoView.getDuration()) > 0){\n mVideoPosition = mVideoView.getCurrentPosition();\n mVideoDuration = mVideoView.getDuration();\n mBookmarker.setBookmark(mUri, mVideoPosition, mVideoDuration);\n }\n //[BUGFIX]-Add-END by TSNJ.haihua.zhu,12/16/2014,PR872085\n doOnPause();\n Log.d(TAG, \"onPause() , return \" + pause);\n return pause;\n // [FEATURE]-Modify-END by jian.pan1\n }", "title": "" }, { "docid": "333a74543e9bdf4364c2f54f0e5cf8ab", "score": "0.5849115", "text": "public abstract boolean isPaused(EntityDust e);", "title": "" }, { "docid": "e724585985d18ce11edd7db9c5e9d029", "score": "0.5834592", "text": "public synchronized boolean isPlaying() {\n return (video == state.PLAY);\n }", "title": "" }, { "docid": "5e0c02ca4f4e6952488dedf37be6cbc8", "score": "0.5834552", "text": "public void pause() {\n\t\t\tsynchronized (mSurfaceHolder) {\n\t\t\t\tif (mMode == STATE_RUNNING) setState(STATE_PAUSE);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "75a47de4d9dcef7042282a4b106936e2", "score": "0.5827686", "text": "public boolean pauseplay() {\n if(playing) {\n // Pause the player\n pause();\n } else {\n // Start playing\n resumeSong();\n }\n updateNotif(playing, favourited);\n return playing;\n }", "title": "" }, { "docid": "9f24e38c502725057f0489079eb7b8ec", "score": "0.5819121", "text": "private void pausedTick() {\n pauseMenu.tick();\n keyManager.tick();\n musicManager.tick();\n \n //If p is pressed, go back to play\n if (keyManager.p) {\n paused = !paused;\n inputKeyboard.p = false;\n inputKeyboard.prevp = false;\n }\n\n //If esc is pressed, go back to play\n if (keyManager.esc) {\n paused = !paused;\n }\n\n if (!pauseMenu.isMainMenuDisplayed()) {\n paused = !paused;\n }\n\n //Is save button is pressed, save current game state\n if (pauseMenu.isClickSave()) {\n saveGame();\n pauseMenu.setClickSave(false);\n }\n\n //If load button is pressed, load current game state\n if (pauseMenu.isClickLoad()) {\n musicManager.stop();\n loadGame();\n pauseMenu.setClickLoad(false);\n musicManager.play();\n paused = !paused;\n }\n\n //If exit button is pressed, go back to main menu\n if (pauseMenu.isClickExit()) {\n pauseMenu.setClickExit(false);\n state = States.MainMenu;\n resetGame();\n musicManager.stop();\n\n if (network != null) {\n network.endConnection();\n }\n }\n }", "title": "" }, { "docid": "ef4b4a59c15757d5759d5053deda2b61", "score": "0.58020246", "text": "synchronized public void pause(){\n\tpaused = true;\n\t\n}", "title": "" } ]
f5cff5c4db7eaf3e65408c285eab9876
/ Resets checkboxes checked state, setting all of them to unchecked
[ { "docid": "5daa1ce81990aac67b6d1af9baf49f8d", "score": "0.664764", "text": "public void resetFields() {\n for (int i = 0; i < 4; i++) {\n white_pin[i].setChecked(false);\n }\n\n red_pin.setChecked(false);\n whiteOnRed.setChecked(false);\n whiteOnYellow.setChecked(false);\n whiteOnYellowOnRed.setChecked(false);\n whiteOnPins.setChecked(false);\n yellowOnWhite.setChecked(false);\n yellowOnRed.setChecked(false);\n yellowOnWhiteOnRed.setChecked(false);\n yellowOnPins.setChecked(false);\n }", "title": "" } ]
[ { "docid": "6072e0dcfd7e6c65509ef789a356286e", "score": "0.80956864", "text": "private void resetCheckBox()\n {\n checkBoxState=new boolean[]{false,false,false,false};\n }", "title": "" }, { "docid": "2af77ff7e2081acbaad989a19fffab67", "score": "0.77904606", "text": "void uncheckAll();", "title": "" }, { "docid": "479b36e2c2fbf81ad89f09861e32dbee", "score": "0.77253234", "text": "public void resetToZero(){\n for (JCheckBox inputBit : inputBits) {\n inputBit.setSelected(false);\n }\n }", "title": "" }, { "docid": "4231ec90965a82972fa6f27c10079d45", "score": "0.76110387", "text": "public void unmarkAllChecks() {\n for ( int i=0; i < days.size(); i++ ) {\n checks.get(i).setSelected(false);\n }\n }", "title": "" }, { "docid": "0e45812622b5f8604975fb86cd4c5b21", "score": "0.72541153", "text": "private void deselectAll() {\n\t\tfor (int i = 0; i < lvPdf.getCount(); i++) {\n\t\t\tCheckBox checkBox = (CheckBox) lvPdf.getChildAt(i).findViewById(\n\t\t\t\t\tR.id.checkBox1);\n\t\t\tcheckBox.setChecked(false);\n\t\t}\n\t}", "title": "" }, { "docid": "18cc4331fa7d7cbe8de12ecfd73cac0d", "score": "0.70250297", "text": "private void clearRadioButtonCheck(RadioButton[] radioButtonArray, boolean checked){\n for (int x = 0; x < radioButtonArray.length; x++) {\n radioButtonArray[x].setChecked(checked);\n }\n }", "title": "" }, { "docid": "2f01d3877c18d429e75ba1bd73db035e", "score": "0.69720525", "text": "public void clearCheckAllAnswerRadios()\n {\n answer1Radio.setChecked(false);\n answer2Radio.setChecked(false);\n answer3Radio.setChecked(false);\n answer4Radio.setChecked(false);\n }", "title": "" }, { "docid": "d56df78cc0b983e515115b8316c67d06", "score": "0.69556797", "text": "protected abstract void setCheckedAll(boolean checked);", "title": "" }, { "docid": "681648af42aef5f348f30ecafea94aa9", "score": "0.69257504", "text": "public void resetSetA() {\n chkSetA1.setChecked(false);\n chkSetA2.setChecked(false);\n }", "title": "" }, { "docid": "ef6200fe89fdd465a2a44acfee2d1468", "score": "0.67179966", "text": "public void clearCheckedChips() {\n final int count = mChipGroup.getChildCount();\n for (int i = 0; i < count; i++) {\n Chip child = (Chip) mChipGroup.getChildAt(i);\n setChipChecked(child, false /* isChecked */);\n }\n mCheckedChipItems.clear();\n }", "title": "" }, { "docid": "9386a5d73d8e8be4e700f70c735e2d9b", "score": "0.67161626", "text": "public void uncheckAllNavigationDrawerMenuItems(){\n MenuItem geolocalizationItem=navigationView.getMenu().findItem(R.id.nav_button_geolocalization);\n MenuItem favouritesItem=navigationView.getMenu().findItem(R.id.nav_button_favourites);\n geolocalizationItem.setChecked(false);\n geolocalizationItem.setCheckable(false);\n favouritesItem.setChecked(false);\n favouritesItem.setCheckable(false);\n }", "title": "" }, { "docid": "e360d1767c47ffde2847807e237619c5", "score": "0.6691375", "text": "@Override\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t((JCheckBox)e.getSource()).setSelected(false);\r\n\t\t\t\t\t}", "title": "" }, { "docid": "e46420d562be0f3b44578ed1b8737789", "score": "0.6681848", "text": "public void deselectAll(ActionEvent event){\r\n \tcheckedCount = 0;\r\n for (int i = 0; i < this.messageList.size(); i++) {\r\n \t\tif (((MessageBean) messageList.get(i)).isSelected()) {\r\n ((MessageBean) messageList.get(i)).setSelected(false);\r\n }\r\n \t}\r\n }", "title": "" }, { "docid": "5f70008f85e78620593bc94c144fada8", "score": "0.66351235", "text": "private void hide_all_checkboxes() {\n \n chk1.setVisible(false);\n chk2.setVisible(false);\n chk3.setVisible(false);\n chk4.setVisible(false);\n chk5.setVisible(false);\n chk6.setVisible(false);\n chk7.setVisible(false);\n chk8.setVisible(false);\n chk9.setVisible(false);\n chk10.setVisible(false); \n chk11.setVisible(false);\n chk12.setVisible(false);\n chk13.setVisible(false);\n chk14.setVisible(false);\n chk15.setVisible(false);\n chk16.setVisible(false);\n chk17.setVisible(false);\n chk18.setVisible(false);\n chk19.setVisible(false);\n chk20.setVisible(false); \n chk21.setVisible(false);\n chk22.setVisible(false);\n chk23.setVisible(false);\n chk24.setVisible(false);\n chk25.setVisible(false);\n chk26.setVisible(false);\n chk27.setVisible(false);\n chk28.setVisible(false);\n chk29.setVisible(false);\n chk30.setVisible(false);\n // throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "title": "" }, { "docid": "b13c0eb3dfdfbc37d2841dfc942233db", "score": "0.66241515", "text": "@Override\r\n\tpublic void resetSelected() {\r\n\t\tfor(int i = 0; i < selected.length; i++){\r\n\t\t\tselected[i] = false;\r\n\t\t};\r\n\t}", "title": "" }, { "docid": "5b58e360bf99055cc92ce3453df9bcfe", "score": "0.6617259", "text": "public void deselectAll(){\n for (int i = 0; i < modelo.getSize(); i++) {\n CheckListItem item = (CheckListItem) modelo.get(i);\n if (item.isSelected()) {\n item.setSelected(false);\n }\n }\n this.getThis().repaint();\n }", "title": "" }, { "docid": "79afcdb685dcefca8e6d935e351387c2", "score": "0.64570993", "text": "private void disableRemainingSelectedCheckBox() {\n JCheckBox[] cboxes = {redcbox, greencbox, bluecbox};\n for (JCheckBox cbox : cboxes) {\n if(cbox.isSelected()){\n cbox.setEnabled(false);\n break;\n }\n }\n }", "title": "" }, { "docid": "ff37d3950c77dfbc4566461eda5d50aa", "score": "0.63958275", "text": "public void resetItems(boolean unselectAll);", "title": "" }, { "docid": "0a27700a34997d392939ed6b7a435d2d", "score": "0.6389797", "text": "private void checkAll() {\n\t\tfor (int i = 0; i < lvPdf.getCount(); i++) {\n\t\t\tCheckBox checkBox = (CheckBox) lvPdf.getChildAt(i).findViewById(\n\t\t\t\t\tR.id.checkBox1);\n\t\t\tcheckBox.setChecked(true);\n\t\t}\n\t}", "title": "" }, { "docid": "5aa8de64287e463b29ea44074ce32574", "score": "0.6339629", "text": "public void resetList()\n {\n // clear all the labels\n for(int i = 0; i < 10; i++)\n {\n for(int j = 0; j < 2; j++)\n {\n labels[i][j].setText(\" \");\n }\n }\n // clear the checkboxPanel\n checkboxPanel.removeAll();\n }", "title": "" }, { "docid": "04f7b5d18b67a51d7ac1a9edc44c9348", "score": "0.63320184", "text": "public void unselectAllItems(){\n BottomNavigationView bottomNavigationView=getActivity().findViewById(R.id.bottom_navigation);\n bottomNavigationView.getMenu().setGroupCheckable(0,true,false);\n for(int i=0;i<3;i++){\n bottomNavigationView.getMenu().getItem(i).setChecked(false);\n }\n bottomNavigationView.getMenu().setGroupCheckable(0,true,true);\n }", "title": "" }, { "docid": "6b2ebd0bab3df005e8df9116fa42c699", "score": "0.63239604", "text": "public void unSetKeepMeSignedInCheckbox() {\n LOGGER.info(\"unSetKeepMeSignedInCheckbox started\");\n driver.waitForElementClickable(keepSignedInCheckbox);\n if (keepSignedInCheckbox.isSelected());\n \tkeepSignedInCheckbox.click();\n LOGGER.info(\"unSetKeepMeSignedInCheckbox completed\");\n }", "title": "" }, { "docid": "7da835736fa7da2a5695e2bb12b4aa95", "score": "0.6320191", "text": "public void wipeSelectedItems() {\r\n\t\tthis.itemSelected = new SparseBooleanArray(items.size());\r\n\t}", "title": "" }, { "docid": "660281d85cba2445c72ea66976263ca8", "score": "0.6285084", "text": "public void unsetSelected() {\n\t\tthis.isSelected = false;\n\t}", "title": "" }, { "docid": "5c3127724ee63cb447f363b6b2ebe0eb", "score": "0.62601167", "text": "public void toggle() {\n setChecked(!checked); \n }", "title": "" }, { "docid": "bd698acd4e66dc2613472582ad8f71f4", "score": "0.6248021", "text": "public void setChecked( boolean checked ) {\n\n\t\tif( checked && !selected.containsObject( current ) ) {\n\t\t\tselected = selected.arrayByAddingObject( current );\n\t\t}\n\t\telse if( !checked && selected.containsObject( current ) ) {\n\t\t\tselected = ERXArrayUtilities.arrayMinusObject( selected, current );\n\t\t}\n\n//\t\tSystem.out.println( selected );\n\t}", "title": "" }, { "docid": "8644a2e88a4ea2aeaf59a89d72ec63f7", "score": "0.6239783", "text": "private void clearCheckTabBoxes() {\r\n\r\n\t\tyearTextField.clear();\r\n\t\tmonthTextField.clear();\r\n\t\tdayTextField.clear();\r\n\t\thourTextField.clear();\r\n\t\tminuteTextField.clear();\r\n\r\n\t\trecipientDropdown3.getSelectionModel().clearSelection();\r\n\t\tnameDropdown2.getSelectionModel().clearSelection();\r\n\t\tinformationDropdown3.getSelectionModel().clearSelection();\r\n\t}", "title": "" }, { "docid": "4f5407ab672a47ef07096b0b68f330f6", "score": "0.6185388", "text": "@Override\r\n public void toggle() {\r\n setChecked(!bIsChecked);\r\n }", "title": "" }, { "docid": "2ab2bf60181acc15328580c2d64dd120", "score": "0.618407", "text": "@Override\n public void onClick(View v) {\n checkbox.setChecked(!checkbox.isChecked());\n }", "title": "" }, { "docid": "2ac7682bd40d531726a0f6e895d35699", "score": "0.61323154", "text": "public void selectNoImmunizationsCheckbox(){\n\t\tswitchToDiagnosisListFrame();\n\n\t\tString noAllergyCheckBoxState =SeleniumUtil.getElementWithFluentWait(noImmunizationsCheckboxState).getAttribute(\"stateName\");\n\t\tif(noAllergyCheckBoxState.equalsIgnoreCase(\"unchecked\")){\n\t\t\tSystem.out.println(\"None Checkbox is unchecked..\");\n\t\t\tSeleniumUtil.getElementWithFluentWait(noImmunizationsCheckbox).click();\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"click None Checkbox is unchecked..\");\n\t\t\tSeleniumUtil.getElementWithFluentWait(noImmunizationsCheckbox).click();\n\t\t\tSeleniumUtil.getElementWithFluentWait(noImmunizationsCheckbox).click();\n\t\t}\n\n\t}", "title": "" }, { "docid": "b14d621c43e1cd086ec7aacad9759a7f", "score": "0.6101665", "text": "private void clearBoolArray() {\r\n for(int i = 0; i < _size; i++) {\r\n for (int j = 0; j < _size; j++) {\r\n _isClicked[i][j] = false;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "d99659a7188956831835ac795642f45d", "score": "0.607846", "text": "public void unselectAllButtons(){\r\n for(ButtonGroup group : new ButtonGroup[]{characterGroup, weaponGroup, roomGroup}) {\r\n group.clearSelection();\r\n\r\n }\r\n\r\n }", "title": "" }, { "docid": "429494df72f5439a2a6f64a39ebe326d", "score": "0.6075653", "text": "@Override\n public void reset() {\n selected = false;\n }", "title": "" }, { "docid": "1882430f8b95e8248c46e07522acda4f", "score": "0.6070208", "text": "public void reset() {\n synchronized (checks) {\n for (E eValue : enumSet) {\n checks.put(eValue, false);\n }\n }\n }", "title": "" }, { "docid": "33ecb5b76fb00cb7ad0e3e4b98dbaf9e", "score": "0.60595775", "text": "public void markAllChecks() {\n for ( int i=0; i < days.size(); i++ ) {\n checks.get(i).setSelected(true);\n }\n }", "title": "" }, { "docid": "2a1a41bd65b6c91ae71a4f0dbc32e74b", "score": "0.6052604", "text": "public void selectNoAllergyCheckbox(){\n\t\tswitchToDiagnosisListFrame();\n\t\tString noAllergyCheckBoxState =SeleniumUtil.getElementWithFluentWait(noAllergyCheckboxState).getAttribute(\"stateName\");\n\t\tif(noAllergyCheckBoxState.equalsIgnoreCase(\"unchecked\")){\n\t\t\tSystem.out.println(\"None Checkbox is unchecked..\");\n\t\t\tSeleniumUtil.getElementWithFluentWait(noAllergyCheckbox).click();\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"click None Checkbox is unchecked..\");\n\t\t\tSeleniumUtil.getElementWithFluentWait(noAllergyCheckbox).click();\n\t\t\tSeleniumUtil.getElementWithFluentWait(noAllergyCheckbox).click();\n\t\t}\n\n\t}", "title": "" }, { "docid": "44aba49998771e12cee50259695563cf", "score": "0.6033929", "text": "public void resetSelected() {\n\t\tfor(int i=0; i<this.pg.getSelected().size(); i++) {\n\t\t\t this.pg.getSelected().set(i, false);\n\t\t}\n\t}", "title": "" }, { "docid": "6b94a91b23641b8ffb535df2af3023c1", "score": "0.6030607", "text": "private void resetAll(){\r\n\t\tremoveAll();\r\n\t\trepaint();\r\n\t}", "title": "" }, { "docid": "db7ffac1d1b759a655180817525ea174", "score": "0.6020096", "text": "@Override\n public void toggle() {\n mIsChecked = !mIsChecked;\n for(Checkable checkable : mCheckableViews) {\n checkable.toggle();\n }\n }", "title": "" }, { "docid": "a3436e98b54583aa73053b2a0df8d1cc", "score": "0.59774107", "text": "public void deselectAll() {\n\n\t\tIterator iter = getFieldComponents();\n\t\twhile (iter.hasNext()) {\n\t\t\tObject obj = iter.next();\n\t\t\tif (obj instanceof InputMaskComponent) {\n\t\t\t\t((InputMaskComponent) obj).setSelected(false);\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "b652c9e3e4d3c103512821f3ba42c90a", "score": "0.59677124", "text": "public void restoreCheckedChipItems(Bundle savedState) {\n final int[] chipTypes = savedState.getIntArray(Shared.EXTRA_QUERY_CHIPS);\n if (chipTypes != null) {\n clearCheckedChips();\n for (int chipType : chipTypes) {\n final SearchChipData chipData = sChipItems.get(chipType);\n mCheckedChipItems.add(chipData);\n setCheckedChip(chipData.getChipType());\n }\n }\n }", "title": "" }, { "docid": "8728c0e7c43a8ceada6d436386583c59", "score": "0.5966882", "text": "public void setChecked(boolean checked);", "title": "" }, { "docid": "6c333a4f29455d3ea0df80b18cf70205", "score": "0.59648377", "text": "private void set_checkbox() {\n }", "title": "" }, { "docid": "10fb1adcc9727ed666df967ba2c71cc6", "score": "0.5950258", "text": "public void clear() {\n for(List<Boolean> l1 : this.grid) {\n for(int i = 0; i < l1.size(); i++) {\n l1.set(i, false);\n }\n }\n }", "title": "" }, { "docid": "7219b2932578bd622dee0fcdb0d674d8", "score": "0.5940145", "text": "public void setSelectedButton(SDSTSCheckBox selectedButton) {\n\t\tif( !selectedButton.isSelected() ){\n\t\t\tselectedButton.setImage(new Image(Display.getCurrent(),getClass().getResourceAsStream(ImageConstants.IMAGE_TOUCH_SCREEN_CHECKBOX_CHECKED)));\n\t\t\tselectedButton.setSelected(true);\t\n\t\t\tif( selectedButton.getName().equalsIgnoreCase(IAppConstants.STATE_TAX_CHECKBOX)) {\n\t\t\t\tform.setStateTax(true);\t\t\t\t\n\t\t\t} else if(selectedButton.getName().equalsIgnoreCase(IAppConstants.FEDERAL_TAX_CHECKBOX)) {\n\t\t\t\tform.setFederalTax(true);\n\t\t\t} else if(selectedButton.getName().equalsIgnoreCase(IAppConstants.MUNICIPAL_TAX_CHECKBOX)) {\n\t\t\t\tform.setMunicipalTax(true);\n\t\t\t} else if(selectedButton.getName().equalsIgnoreCase(IAppConstants.MUNICIPAL_TAX_CHECKBOX)) {\n\t\t\t\tform.setMunicipalTax(true);\n\t\t\t} else if(selectedButton.getName().equalsIgnoreCase(IAppConstants.INTERCEPT_CHECKBOX)) {\n\t\t\t\tform.setIntercept(true);\n\t\t\t\tauthorizationComposite.getTaxComposite().getTxtInterceptAmount().setEditable(true);\n\t\t\t\tauthorizationComposite.getTaxComposite().getTxtInterceptAmount().setEnabled(true);\n\t\t\t}\n\t\t} else {\t\t\t\n\t\t\tselectedButton.setImage(new Image(Display.getCurrent(),getClass().getResourceAsStream(ImageConstants.IMAGE_TOUCH_SCREEN_CHECKBOX_UNCHECKED)));\n\t\t\tselectedButton.setSelected(false);\t\n\t\t\tif( selectedButton.getName().equalsIgnoreCase(IAppConstants.STATE_TAX_CHECKBOX)) {\n\t\t\t\tform.setStateTax(false);\t\t\t\t\n\t\t\t} else if(selectedButton.getName().equalsIgnoreCase(IAppConstants.FEDERAL_TAX_CHECKBOX)) {\n\t\t\t\tform.setFederalTax(false);\n\t\t\t} else if(selectedButton.getName().equalsIgnoreCase(IAppConstants.MUNICIPAL_TAX_CHECKBOX)) {\n\t\t\t\tform.setMunicipalTax(false);\n\t\t\t} else if(selectedButton.getName().equalsIgnoreCase(IAppConstants.INTERCEPT_CHECKBOX)) {\n\t\t\t\tform.setIntercept(false);\n\t\t\t\tauthorizationComposite.getTaxComposite().getTxtInterceptAmount().setEditable(false);\n\t\t\t\tauthorizationComposite.getTaxComposite().getTxtInterceptAmount().setEnabled(false);\n\t\t\t\tauthorizationComposite.getTaxComposite().getTxtInterceptAmount().setText(\"\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "283242983b92ca94be355f0d55291be6", "score": "0.59312636", "text": "public void selectAll(){\n for (int i = 0; i < modelo.getSize(); i++) {\n CheckListItem item = (CheckListItem) modelo.get(i);\n if (!item.isSelected()) {\n item.setSelected(true);\n }\n }\n this.getThis().repaint();\n }", "title": "" }, { "docid": "0e339d7841ca4fcacb67dfc4a04bccaa", "score": "0.5923455", "text": "public void setSelectedItems(List selectedItems) {\n for(CheckValue v : _items) {\n v.setChecked(false);\n }\n if(selectedItems!=null) {\n for(CheckValue v : _items) {\n if (selectedItems.contains(v.getValue())) {\n v.setChecked(true);\n }\n }\n }\n updateText();\n }", "title": "" }, { "docid": "e9eee6251e94d065da91af60e7824128", "score": "0.5918581", "text": "@Override\r\n public void setChecked(boolean checked) {\r\n if (bIsChecked != checked) {\r\n bIsChecked = checked;\r\n refreshDrawableState();\r\n }\r\n }", "title": "" }, { "docid": "f96b55e3adeb635d46f010fe23d8240b", "score": "0.5900506", "text": "public void reset(){\n resetCounter++;\n getInitialStates();\n currentStates = initialStates;\n\n Iterator itr = states.iterator();\n StateClass s;\n\n //set only initial states as current\n while(itr.hasNext()){\n s = (StateClass)itr.next();\n if(s.isInitial()){\n s.setCurrent(true);\n }\n if(s.isCurrent() && !s.isInitial()){\n s.setCurrent(false);\n }\n }\n\n editor.statesChanged();\n editor.transitionsChanged();\n\n }", "title": "" }, { "docid": "bee72f06d17090e6e548e173872fd0ab", "score": "0.58917576", "text": "public void setChecked(boolean checked) {\n if (flag != checked) {\n flag = !checked;\n translate();\n }\n }", "title": "" }, { "docid": "67239f2a4de71557b384b424460e386a", "score": "0.58889264", "text": "public void deselectAll() {\n for (NamedPolygon namedPolygon: namedPolygons) {\n namedPolygon.setSelected(false);\n }\n for (Camera camera: cameras) {\n camera.setSelected(false);\n }\n for (FireExtinguisher fireExtinguisher: fireExtinguishers) {\n fireExtinguisher.setSelected(false);\n }\n for (EmergencyExit emergencyExit: emergencyExits) {\n emergencyExit.setSelected(false);\n }\n }", "title": "" }, { "docid": "893aef1961723b42f258cc7c0610900e", "score": "0.5843585", "text": "public void resetSelect(List<Tile> buildList) {\r\n for (Tile t : buildList) {\r\n t.setSelected(false);\r\n }\r\n }", "title": "" }, { "docid": "50213383f6ab132ad2fb0a027db9e7a5", "score": "0.58310354", "text": "public void deselectAllClicked()\r\n {\r\n for(int n = 0; n < prakTm.getRowCount(); n++)\r\n prakTm.setValueAt(false, n, 2);\r\n }", "title": "" }, { "docid": "eba8c1c39c03acf9d2163155dd304e89", "score": "0.58272713", "text": "public void checkedCheckboxChantilly(CheckBox CheckboxChantilly,int currentQuantity){\n\n if(currentQuantity == 0){\n CheckboxChantilly.setChecked(false);\n }\n }", "title": "" }, { "docid": "c97aa29b54d42ea74bec2dc80d9426b1", "score": "0.5825054", "text": "protected void resetAllColorStates() {\n\t\tthis.resetColorStates(true, true, Arrays.asList(ColorState.values()));\n\t}", "title": "" }, { "docid": "d2d39acaac1af73e3435a7fed560b6da", "score": "0.5823086", "text": "private void resetMultiSetActions(){\n\t\t// empty list\n\t\tselectedList.clear();\n\t\tarrayAdapter.notifyDataSetChanged();\n\t}", "title": "" }, { "docid": "a987a524542e4b1134a4ca14de87cbc9", "score": "0.58203655", "text": "public void resetToggleTile()\n {\n for (int i = 0; i < tileArray.length; i++)\n {\n for (int k = 0; k < tileArray[0].length; k++)\n {\n //Resets selection of each tile in the map\n tileArray[i][k].resetToggle();\n }\n }\n toggled = false;\n }", "title": "" }, { "docid": "fab93c1c6f9d4bbe81e1eee0fcfe1f89", "score": "0.5815801", "text": "private void reset (){\n\t\tcheck ();\n\t}", "title": "" }, { "docid": "f0adae9296daa7eef37c80b0a4ffa2ab", "score": "0.5812573", "text": "private void setEnabledPowerups() {\r\n\t\tthis.enabledPowerups.clear();\r\n\r\n\t\tfor (final JCheckBox checkBox : this.checkBoxes) {\r\n\t\t\tif (checkBox.isSelected()) {\r\n\t\t\t\tthis.enabledPowerups.add(checkBox.getText());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "fc89dd0c63b3a3c0656416fe8679875e", "score": "0.5804218", "text": "private void initCheckboxes() {\r\n\t\ttiltBox.setSelected(app.p.isTilt());\r\n\t\tdraw3d.setSelected(!app.p.get3D());\r\n\t\tradLabels.setSelected(app.p.isLabelsEdgeDir());\r\n\t\tfadeLabels.setSelected(app.p.fadeLabels);\r\n\t\tclusters.setSelected(app.p.isCluster());\r\n\t\t/*\t\trepellBox1.setSelected(app.repell);\r\n\t\trepNeighbors.setSelected(app.isRepN());\r\n\t\ttreeBox.setSelected(app.isTree());\r\n\t\ttimeBox.setSelected(app.isTime());\r\n\t\tnoRender.setSelected(app.isRender());\r\n\t\tdrawedges.setSelected(app.isEdges());\r\n\t\tforceBox.setSelected(app.getCalc());\r\n\t\trenderTextures.setSelected(app.textures);\r\n\t\tdrawclusters.setSelected(app.drawClusters);\r\n\t\tjFileFormat.setSelected(app.isTabular());\r\n\t\tdrawgroups.setSelected(app.isGroups());*/\r\n\t}", "title": "" }, { "docid": "9df41e09935d1b22c7d86b33c30a0a8b", "score": "0.5798042", "text": "protected void clearQuestion()\n\t{\n\t\tif (questionCounter <numberOfQuestions){\n\n\t\t\tswitch (answers[questionCounter])\n\t\t\t{\n\t\t\tcase 1: answer1.setChecked(true); break;\n\t\t\tcase 2: answer2.setChecked(true); break;\n\t\t\tcase 3: answer3.setChecked(true); break;\n\t\t\tcase 4: answer4.setChecked(true); break;\n\t\t\tcase 5: answer5.setChecked(true); break;\n\t\t\tdefault: radGroup.clearCheck();\n\t\t\t}\n\n\t\t}\n\t}", "title": "" }, { "docid": "18e3721735db71b97658aebb37d70151", "score": "0.57962525", "text": "private void elementsCheckStateChanged(List<IModelCheckElement> elements) {\r\n\t\tfor (IModelCheckElement elt : elements) {\r\n\t\t\tviewer.setChecked(elt, elt.isChecked());\r\n\t\t}\r\n\t\t// Update hander of the selectAll command\r\n\t\tcomputeAllSelectionHandler();\r\n\t}", "title": "" }, { "docid": "fb98b0e868e0934a2dff0c3f3d682f23", "score": "0.5771948", "text": "public void setupCheckboxes() {\n CompoundButton.OnCheckedChangeListener checkListener = new CompoundButton.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(CompoundButton view, boolean checked) {\n // compoundButton is the checkbox\n // boolean is whether or not checkbox is checked\n // Check which checkbox was clicked\n switch(view.getId()) {\n case R.id.cbArts:\n if (checked) {\n checkedValues.add(checkArts.getText().toString());\n } else {\n checkedValues.remove(checkArts.getText().toString());\n }\n break;\n case R.id.cbFashionStyle:\n if (checked) {\n checkedValues.add(checkFashionStyle.getText().toString());\n } else {\n checkedValues.remove(checkFashionStyle.getText().toString());\n }\n break;\n case R.id.cbSports:\n if (checked) {\n checkedValues.add(checkSports.getText().toString());\n } else {\n checkedValues.remove(checkSports.getText().toString());\n }\n break;\n }\n }\n };\n checkArts.setOnCheckedChangeListener(checkListener);\n checkFashionStyle.setOnCheckedChangeListener(checkListener);\n checkSports.setOnCheckedChangeListener(checkListener);\n }", "title": "" }, { "docid": "4042433618db69be4980db70d62ffc5d", "score": "0.57648104", "text": "void setCheckedComplete()\n {\n }", "title": "" }, { "docid": "f8a469f8b0eafa7732bc0636ab25dd52", "score": "0.57481056", "text": "private void setCheckboxListeners() {\n\n for (int i = 1; i < checkBoxArrayList.size(); i++) {\n String boatCheckBoxName = checkBoxArrayList.get(i).getText().toString().trim();\n final String BCBN = boatCheckBoxName;\n Log.i(LOG, \" Adding Listener to \" + boatCheckBoxName);\n checkBoxArrayList.get(i).setOnCheckedChangeListener(new CompoundButton.\n OnCheckedChangeListener() {\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n // when it is checked for the boat class\n if (isChecked) { // if the checkbox is checked\n BoatStartingListClass.addToBoatClassStartArray(BCBN); // Add item to the arary\n\n } else { // if the check box ISN'T checked.\n BoatClass tmpBC = null;\n //find the correct color in the boat class start array for removal\n for (BoatClass bc : BoatStartingListClass.BOAT_CLASS_START_ARRAY) {\n if (bc.getBoatColor().equals(BCBN)) {\n tmpBC = bc;\n }\n }\n // remove the boat class from the array when user deselects it.\n BoatStartingListClass.BOAT_CLASS_START_ARRAY.remove(tmpBC);\n }\n bindTextViewWithClassColors(); // update the class order text views.\n }\n });\n }\n\n //set a special re assignment for the first class\n checkBoxArrayList.get(0).setOnCheckedChangeListener(new CompoundButton\n .OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\n if (isChecked) {\n //clear the boat class array of all other boats\n BoatStartingListClass.BOAT_CLASS_START_ARRAY.clear();\n //if the classless cb is check then uncheck all other boxes and disable them\n for (int i = 1; i < checkBoxArrayList.size(); i++) {\n checkBoxArrayList.get(i).setChecked(false);\n checkBoxArrayList.get(i).setEnabled(false);\n }\n //add the classless class to the class array\n BoatStartingListClass.BOAT_CLASS_START_ARRAY.add(new\n BoatClass(checkBoxArrayList.get(0).getText().toString().trim()));\n } else {\n //clear the boat class array of all other boats\n BoatStartingListClass.BOAT_CLASS_START_ARRAY.clear();\n for (int i = 1; i < checkBoxArrayList.size(); i++) {\n checkBoxArrayList.get(i).setEnabled(true);\n }\n }\n bindTextViewWithClassColors(); // update the class order text views.\n }\n });\n }", "title": "" }, { "docid": "eedf8dc2887553d5942f4e3c458877bd", "score": "0.5734899", "text": "protected final void setCheckedItem(boolean state) {\n mCheckedItem = (state) ? State.OFF : State.ON ;\n }", "title": "" }, { "docid": "906b3efbdf6fd494c36672aadc114ef4", "score": "0.572346", "text": "public void selectNoDiagnosticStudiesCheckbox(){\n\t\tswitchToDiagnosisListFrame();\n\n\t\tString noAllergyCheckBoxState =SeleniumUtil.getElementWithFluentWait(noDiagnosticStudiesCheckboxState).getAttribute(\"stateName\");\n\t\tif(noAllergyCheckBoxState.equalsIgnoreCase(\"unchecked\")){\n\t\t\tSystem.out.println(\"None Checkbox is unchecked..\");\n\t\t\tSeleniumUtil.getElementWithFluentWait(noDiagnosticStudiesCheckbox).click();\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"click None Checkbox is unchecked..\");\n\t\t\tSeleniumUtil.getElementWithFluentWait(noDiagnosticStudiesCheckbox).click();\n\t\t\tSeleniumUtil.getElementWithFluentWait(noDiagnosticStudiesCheckbox).click();\n\t\t}\n\t}", "title": "" }, { "docid": "a7b2f971dcb13b64ac4367bf2b0dcc0c", "score": "0.5716219", "text": "public void setChecked(int checked) {\n\t\tthis.checked = checked;\n\t}", "title": "" }, { "docid": "81f68dc4ad2c11ffa9e56bcc467ff3c8", "score": "0.57136446", "text": "public void setCheckBox(JCheckBox checkBox[][]) {\r\n\t\tthis.checkBox = checkBox;\r\n\t}", "title": "" }, { "docid": "f95323ae767cc65c2c5c2e373ca06e56", "score": "0.57118666", "text": "public void selectNoCondtionCheckbox(){\n\t\tswitchToDiagnosisListFrame();\n\t\tString noAllergyCheckBoxState =SeleniumUtil.getElementWithFluentWait(noACondtionCheckboxState).getAttribute(\"stateName\");\n\t\tif(noAllergyCheckBoxState.equalsIgnoreCase(\"unchecked\")){\n\t\t\tSystem.out.println(\"None Checkbox is unchecked..\");\n\t\t\tSeleniumUtil.getElementWithFluentWait(noCondtionCheckbox).click();\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"click None Checkbox is unchecked..\");\n\t\t\tSeleniumUtil.getElementWithFluentWait(noCondtionCheckbox).click();\n\t\t\tSeleniumUtil.getElementWithFluentWait(noCondtionCheckbox).click();\n\t\t}\n\t}", "title": "" }, { "docid": "315688d5cc972dafab572e8da383bb8d", "score": "0.5710479", "text": "public void reset() {\n confirmed = false;\n for (int i = 0; i < buttonList.size(); i++) {\n if (buttonList.get(i).isConfirmed()) {\n buttonList.get(i).setConfirmed(false);\n }\n }\n }", "title": "" }, { "docid": "cf73c5b883661c8a19c76900a9791560", "score": "0.57101846", "text": "public void reset() {\n activeStates.clear();\n }", "title": "" }, { "docid": "843e170c6ad5b66d0c857fe30d36c22f", "score": "0.570657", "text": "public void selectNoDrugAllergyCheckbox(){\n\t\tswitchToDiagnosisListFrame();\n\t\tString noAllergyCheckBoxState =SeleniumUtil.getElementWithFluentWait(noDrugAllergyCheckboxState).getAttribute(\"stateName\");\n\t\tif(noAllergyCheckBoxState.equalsIgnoreCase(\"unchecked\")){\n\t\t\tSystem.out.println(\"None Checkbox is unchecked..\");\n\t\t\tSeleniumUtil.getElementWithFluentWait(noAllergyCheckbox).click();\n\t\t\tSeleniumUtil.getElementWithFluentWait(noDrugAllergyCheckbox).click();\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"click None Checkbox is unchecked..\");\n\t\t\tSeleniumUtil.getElementWithFluentWait(noDrugAllergyCheckbox).click();\n\t\t\tSeleniumUtil.getElementWithFluentWait(noDrugAllergyCheckbox).click();\n\t\t}\n\t}", "title": "" }, { "docid": "32786b97d81c1b85df9173a4e58f94e0", "score": "0.5691404", "text": "public void resetState() {\r\n this.setText(\"\");\r\n selectAllColumnsItem();\r\n this.searchMode.setSelectedIndex(0);\r\n this.invertSearch.setSelected(false);\r\n }", "title": "" }, { "docid": "8c5b6b1f2cf9596afd323e2156e41f82", "score": "0.568734", "text": "public void resetQuiz(View view){\n RadioGroup ans1RadioGroup = (RadioGroup) findViewById(R.id.ans1RG);\n RadioGroup ans2RadioGroup = (RadioGroup) findViewById(R.id.ans2RG);\n RadioGroup ans4RadioGroup = (RadioGroup) findViewById(R.id.ans4RG);\n RadioGroup ans5RadioGroup = (RadioGroup) findViewById(R.id.ans5RG);\n RadioGroup ans6RadioGroup = (RadioGroup) findViewById(R.id.ans6RG);\n CheckBox ans7_1 = (CheckBox) findViewById(R.id.ans7_1);\n CheckBox ans7_2 = (CheckBox) findViewById(R.id.ans7_2);\n CheckBox ans7_3 = (CheckBox) findViewById(R.id.ans7_3);\n CheckBox ans7_4 = (CheckBox) findViewById(R.id.ans7_4);\n RadioGroup ans8RadioGroup = (RadioGroup) findViewById(R.id.ans8RG);\n RadioGroup ans9RadioGroup = (RadioGroup) findViewById(R.id.ans9RG);\n\n // reset state of whole quiz\n ans1RadioGroup.clearCheck();\n ans2RadioGroup.clearCheck();\n q3_ans.setText(\"\");\n ans4RadioGroup.clearCheck();\n ans5RadioGroup.clearCheck();\n ans6RadioGroup.clearCheck();\n ans7_1.setChecked(false);\n ans7_2.setChecked(false);\n ans7_3.setChecked(false);\n ans7_4.setChecked(false);\n ans8RadioGroup.clearCheck();\n ans9RadioGroup.clearCheck();\n\n // reset colors\n corrAnsWhite();\n\n // Resetting userScore\n userScore = 0;\n\n }", "title": "" }, { "docid": "cf1159e4804d99d52710a895ce21f7f2", "score": "0.56867534", "text": "public void reset(){\r\n if (mask[index])\r\n nactivos--;\r\n mask[index]=false;\r\n }", "title": "" }, { "docid": "12576b4bb8708b7d4bd78ac00bf53e19", "score": "0.5678789", "text": "private void chk1ItemStateChanged(java.awt.event.ItemEvent evt) {\n \n if(evt.getStateChange() == evt.SELECTED) {//checkbox has been selected\n //do something...\n checkbox_index=\"0\"; \n \n int_checkbox_index=Integer.parseInt(checkbox_index);\n update_pivot_array();\n //schk1.setVisible(true);\n } else {//checkbox has been deselected\n \n /// update_arraylist();\n // set_check_box();\n // set_check_box();\n // JOptionPane.showMessageDialog(null, int_checkbox_index+\" removed\");\n };\n }", "title": "" }, { "docid": "78deee4de04ce46cd405ba65ac3c79ca", "score": "0.56642205", "text": "private void resetRadioGroup()\n {\n int childCount = _mRadioGroup.getChildCount();\n\n if (childCount > 0)\n {\n for (int radioIndex = 0; radioIndex < childCount; radioIndex++)\n {\n RadioButton radioButton = (RadioButton) _mRadioGroup.getChildAt(radioIndex);\n if (!radioButton.getText().equals(getString(R.string.silent)))\n {\n radioButton.setChecked(false);\n }\n else\n {\n setRingerMode(RINGER_MODE_SILENT);\n radioButton.setChecked(true);\n }\n }\n }\n }", "title": "" }, { "docid": "195b0571876007684d4fadc590480aef", "score": "0.5663417", "text": "public void onClickSelectNone(View view) {\n\n cEsport.setChecked(false);\n cMusic.setChecked(false);\n cSport.setChecked(false);\n cRandom.setChecked(false);\n cFilm.setChecked(false);\n cScience.setChecked(false);\n cHumor.setChecked(false);\n cITHS.setChecked(false);\n //cMath.setChecked(false);\n }", "title": "" }, { "docid": "2c0e73a0bd341d8acf9cf6c42222e2d3", "score": "0.5649126", "text": "public void setChecked(boolean checked) {\n this.checked = checked;\n }", "title": "" }, { "docid": "4f7c07c95f9876a0f1f8e54bd4c9d466", "score": "0.56367505", "text": "private void unmarkAll()\n\t{\n\t\tfor(Vertex v : graph)\n\t\t\tv.marked = false;\n\t}", "title": "" }, { "docid": "b83091424118cf73ac12a03a34fc04a6", "score": "0.5630664", "text": "public void fnUncheckCheckbox(WebElement weElement) {\r\n\t\ttry {\r\n\t\t\tLog.info(\"waiting for element to get enabled\");\r\n\t\t\tif (weElement.isSelected()) {\r\n\t\t\t\tweElement.click();\r\n\t\t\t\tif (weElement.isSelected()) {\r\n\t\t\t\t\textReport.enterLog(\"Fail\", \"Checkbox has not been unselected\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\textReport.enterLog(\"Pass\", \"Checkbox has been unselected\");\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\textReport.enterLog(\"Info\", \"Checkbox is already unselected\");\r\n\t\t\t}\r\n\t\t} catch (StaleElementReferenceException e1) {\r\n\t\t\trepeatCounter++;\r\n\t\t\tif (repeatCounter < 5) {\r\n\t\t\t\tfnUncheckCheckbox(weElement);\r\n\t\t\t} else {\r\n\t\t\t\tLog.info(\"Element is stale\");\r\n\t\t\t\textReport.enterLog(\"Fail\", \"Element is stale after\" + repeatCounter + \"tries\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\textReport.enterLog(\"Fail\", e.toString());\r\n\t\t\tsoftAssert.assertEquals(true, false, e.toString());\r\n\t\t\tLog.info(e.toString());\r\n\t\t}\r\n\t\trepeatCounter = 0;\r\n\t}", "title": "" }, { "docid": "0bd6e8fed2f6b48a4626663b95491ab9", "score": "0.5623418", "text": "public AddNewItemsPage uncheckThread(String name) throws Exception {\n try {\n logInstruction(\"LOG INSTRUCTION: Uncheck the checkbox\");\n frameSwitch.switchToFrameContent();\n chkUncheckThread.replaceValues(name);\n String checkvalue = chkUncheckThread.getAttribute(\"checked\");\n if (checkvalue == null) {\n chkCheckbox.click();\n }\n } catch (Exception e) {\n throw new Exception(\"ISSUE IN 'Unchecking Checkbox'\" + \"\\n METHOD:uncheckThread:\\n\" + e\n .getLocalizedMessage());\n }\n return this;\n }", "title": "" }, { "docid": "a80ad3f5d68b18acbb545c1626d03728", "score": "0.5622296", "text": "@Override\n public void setChecked(boolean b) {\n mIsChecked = b;\n for(Checkable checkable : mCheckableViews) {\n checkable.setChecked(b);\n }\n if(b) {\n setBackgroundColor(getResources().getColor(R.color.drawer_background_selected));\n } else {\n setBackgroundColor(Color.WHITE);\n }\n }", "title": "" }, { "docid": "c7b9b9a583b91edf668b351b23b495f7", "score": "0.56199837", "text": "public static void clearChange(){\n\t\tfor(int i = 0; i < 5; i++){\n\t\t\tchange[i] = false;\n\t\t}\n\t}", "title": "" }, { "docid": "5e942b6f881af4008a8b5f8714c0d7f6", "score": "0.5616596", "text": "@Override\n\tpublic void check()\n\t{\n\t\tthis.checked = true;\n\t}", "title": "" }, { "docid": "6e76287ff318af382d4757612018a993", "score": "0.56152076", "text": "public void checkUncheck(String day, boolean flag){\n if(day.equals(chkMonday.getText())){\n chkMonday.setChecked(flag);\n }else if(day.equals(chkTuesday.getText())){\n chkTuesday.setChecked(flag);\n }else if(day.equals(chkWednesday.getText())){\n chkWednesday.setChecked(flag);\n }else if(day.equals(chkThursday.getText())){\n chkThursday.setChecked(flag);\n }else if(day.equals(chkFriday.getText())){\n chkFriday.setChecked(flag);\n }else if(day.equals(chkSaturday.getText())){\n chkSaturday.setChecked(flag);\n }else if(day.equals(chkSunday.getText())){\n chkSunday.setChecked(flag);\n }\n }", "title": "" }, { "docid": "213296312be639f65d4c36064deb26d4", "score": "0.56015974", "text": "void dealCheckBox(CompoundButton buttonView, boolean isChecked, int position);", "title": "" }, { "docid": "38715c7989e801aeba044e7de19d9470", "score": "0.55975205", "text": "public void verifyDefaultUnmaskPasswordCheckBoxState() {\n User usr = new User();\n usr.verifyDefaultUnmaskPasswordCheckBoxState();\n }", "title": "" }, { "docid": "a83a0f5e805402022a0cafd072aa9e3a", "score": "0.55922323", "text": "private void clearState() {\n \n state_ = 0;\n }", "title": "" }, { "docid": "d3f617f157d9b67dd36e68c375f12f62", "score": "0.5588246", "text": "public void setSelected(int i){\n for(RadioButton rb:radios){\n ViewParent p = rb.getParent();\n if (p.getClass().equals(RadioGroup.class)) {\n // if RadioButton belongs to RadioGroup,\n // then deselect all radios in it\n RadioGroup rg = (RadioGroup) p;\n rg.clearCheck();\n } else {\n // if RadioButton DOES NOT belong to RadioGroup,\n // just deselect it\n rb.setChecked(false);\n }\n }\n radios.get(i).setChecked(true);\n }", "title": "" }, { "docid": "d5501ae612bf2ab4e95031fdbf0bef97", "score": "0.558669", "text": "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tchkPol.setChecked(false);\n\t\t\tchkStu.setChecked(true);\n\t\t}", "title": "" }, { "docid": "997d1c163f09e2bb1060f759cdb11503", "score": "0.55834305", "text": "public void resetSolveStates()\n\t{\n\t\tfor (int r=0;r<NUM_ROWS; r++)\n\t\t\tfor (int c=0; c<NUM_COLS; c++)\n\t\t\t{\n\t\t\t\ttheGrid[r][c].setPopped(false);\n\t\t\t\ttheGrid[r][c].setPushed(false);\n\t\t\t}\n\t\toptimal.clear();\n\t\trepaint();\n\t}", "title": "" }, { "docid": "6878c6f9fcf6b3ac41f19aa847107f6e", "score": "0.55744916", "text": "public void resetEnabled() {\n\t\tenabledEB = ExtendedBoolean.UNKNOWN;\n\t}", "title": "" }, { "docid": "36571bbb01e06bac6bd209a2080fb03d", "score": "0.5565402", "text": "public void resetAll() {\n cicleLables.clear();\n cicleLablesList.clear();\n ifNumber = 0;\n whileNumber = 0;\n }", "title": "" }, { "docid": "e3237aabd7213ea2cdfe7070a57ed08b", "score": "0.55575055", "text": "@Override\n public void onClick(View v) {\n radioHerr.setChecked(false);\n }", "title": "" }, { "docid": "2740e606f10a648e34d8545554994b84", "score": "0.55519253", "text": "private void resetGeneralCOnfigs(@NotNull MikState state) {\n this.changeToHtmlTagCheckBox.setSelected(state.isChangeToHtmlTag());\n this.largePictureRadioButton.setSelected(state.getTagType().equals(ImageMarkEnum.LARGE_PICTURE.text));\n this.commonRadioButton.setSelected(state.getTagType().equals(ImageMarkEnum.CUSTOM.text));\n this.customRadioButton.setSelected(state.getTagType().equals(ImageMarkEnum.CUSTOM.text));\n this.customHtmlTypeTextField.setText(state.getTagTypeCode());\n this.compressCheckBox.setSelected(state.isCompress());\n this.compressSlider.setValue(state.getCompressBeforeUploadOfPercent());\n this.compressLabel.setText(String.valueOf(this.compressSlider.getValue()));\n this.renameCheckBox.setSelected(state.isRename());\n this.fileNameSuffixBoxField.setSelectedIndex(state.getSuffixIndex());\n this.defaultCloudCheckBox.setSelected(state.isDefaultCloudCheck());\n this.defaultCloudComboBox.setSelectedIndex(state.getCloudType());\n }", "title": "" }, { "docid": "d60505f8025d532771eb9246b744bbbb", "score": "0.5548742", "text": "public void resetAll();", "title": "" }, { "docid": "9b64039d1e6085aca256b1556191064d", "score": "0.5535734", "text": "public void clearAllHighlighted() {\n for(int i = 0; i < highlightedIndices.size(); i++) {\n \thighlightedIndices.set(i, false);\n }\n }", "title": "" }, { "docid": "0e70da8715d07f9fc06ddd623c742cc8", "score": "0.5521634", "text": "@Override\n\t\t\t\tpublic void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\t\t\t\tchecks[position] = isChecked; \n\t\t\t\t\tbadSwitchs.remove(data.get(position).get(\"netElement\"));\n\t\t\t\t\tif(isChecked){\n\t\t\t\t\t\tbadSwitchs.add(data.get(position).get(\"netElement\"));\n\t\t\t\t\t}\n\t\t\t\t\tif(badSwitchs.size()>0){\n\t\t\t\t\t\tpipe_bro_enlarge_count.setText(\"合计:\"+badSwitchs.size()+\"项\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tpipe_bro_enlarge_count.setText(\"\");\n\t\t\t\t\t}\n\t\t\t\t}", "title": "" } ]
6d6d658f81d7d23ea3c315d055910b01
/ Race 8 Horse 4 BLACK BIRD RUNS
[ { "docid": "a882d06a343c459a754d4f6bd497f2b0", "score": "0.5716606", "text": "public static Horse builderHorse_R8_H4( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R8_H4_ID() );\n horse.setNumber( 4 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 11 );\n // no stable\n horse.setWeight( 58.5 );\n horse.setDistance( 1600.0 );\n horse.setCareerProfit( 1835000.0 );\n horse.setPreviousYearProfit( 950000.0 );\n horse.setVictoryProfit( 950000.0 );\n horse.setPlaceProfit( 885000.0 );\n horse.setYearProfit( 885000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"JUL .PHELIPPON\" ) );\n horse.setOwner( owner( \"MR J.DAUBLAIN/ MR J.PHELIPPON\" ) );\n horse.setRancher( rancher( \"MR GERARD BELLOIR\" ) );\n horse.setJockey( jockey( \"M.BARZALONA\" ) );\n\n return horse;\n\n }", "title": "" } ]
[ { "docid": "14e5ccf5df6220c8cc5fdba758c4ca02", "score": "0.5948889", "text": "public void whipHorse() {\n\t\t\n\t}", "title": "" }, { "docid": "d13397e0ff484e0b3f6e435d867a4934", "score": "0.58263856", "text": "public static void main(String[] args) {\n\t\tint initialNumberOfBirds = 4;\n\t\tint birdsThatFlewAway = 1;\n\t\tint remainingNumberOfBirds = initialNumberOfBirds - birdsThatFlewAway;\n\n /*\n 2. There are 6 birds and 3 nests. How many more birds are there than\n nests?\n */\n\n\t\t// ### EXAMPLE:\n\t\tint numberOfBirds = 6;\n\t\tint numberOfNests = 3;\n\t\tint numberOfExtraBirds = numberOfBirds - numberOfNests;\n\n /*\n 3. 3 raccoons are playing in the woods. 2 go home to eat dinner. How\n many raccoons are left in the woods?\n */\n\t\tint numberOfRacoon = 3;\n\t\tint numberOfRacoonHome = 2;\n\t\tint numberOfRacoonLeft = numberOfRacoon - numberOfRacoonHome;\n\t\tSystem.out.println(\"1. numberOfRacoonLeft = \" + numberOfRacoonLeft);\n /*\n \n 4. There are 5 flowers and 3 bees. How many less bees than flowers?\n */\n\t\tint numberOfFlowers = 5;\n\t\tint numberOfBees = 3;\n\t\tint beesLess = numberOfFlowers - numberOfBees;\n\t\tSystem.out.println(\"2. beesLess = \" + beesLess);\n\t\t\n /*\n 5. 1 lonely pigeon was eating breadcrumbs. Another pigeon came to eat\n breadcrumbs, too. How many pigeons are eating breadcrumbs now?\n */\n\t\tint lonelyPigeon = 1;\n\t\tint anotherPigeon = 1;\n\t\tint breadcrumbPigeons = lonelyPigeon + anotherPigeon;\n\t\tSystem.out.println(\"3. breadcrumbPigeons = \" + breadcrumbPigeons);\n /*\n 6. 3 owls were sitting on the fence. 2 more owls joined them. How many\n owls are on the fence now?\n */\n\t\tint owls = 3;\n\t\tint moreOwls = 2;\n\t\tint totalOwls = owls + moreOwls;\n\t\tSystem.out.println(\"4. totalOwls = \" + totalOwls);\n /*\n 7. 2 beavers were working on their home. 1 went for a swim. How many\n beavers are still working on their home?\n */\n\t\tint workingBeavers = 2;\n\t\tint swimBeavers = 1;\n\t\tint totalWorkingBeavers = workingBeavers - swimBeavers;\n\t\tSystem.out.println(\"5. totalWorkingBeavers = \" + totalWorkingBeavers);\n /*\n 8. 2 toucans are sitting on a tree limb. 1 more toucan joins them. How\n many toucans in all?\n */\n\t\tint sittingToucans = 2;\n\t\tint joiningToucans = 1;\n\t\tint totalToucans = sittingToucans + joiningToucans;\n\t\tSystem.out.println(\"6. totalToucans = \" + totalToucans);\n /*\n 9. There are 4 squirrels in a tree with 2 nuts. How many more squirrels\n are there than nuts?\n */\n\t\tint squirrels = 4;\n\t\tint nuts = 2;\n\t\tint squirrelsOverNuts = squirrels - nuts;\n\t\tSystem.out.println(\"7. squirrelsOverNuts = \" + squirrelsOverNuts);\n /*\n 10. Mrs. Hilt found a quarter, 1 dime, and 2 nickels. How much money did\n she find?\n */\n\t\tdouble quarter = .25;\n\t\tdouble dime = .10;\n\t\tdouble nickel = .05;\n\t\tdouble totalMoney = quarter + dime + (2 * nickel);\n\t\tSystem.out.println(\"8. totalMoney = \" + totalMoney);\n /*\n 11. Mrs. Hilt's favorite first grade classes are baking muffins. Mrs. Brier's\n class bakes 18 muffins, Mrs. MacAdams's class bakes 20 muffins, and\n Mrs. Flannery's class bakes 17 muffins. How many muffins does first\n grade bake in all?\n */\n\t\tint mrsBrierMuffins = 18;\n\t\tint mrsMacadamsMuffins = 20;\n\t\tint mrsFlannerysMuffins = 17;\n\t\tint totalMuffins = mrsBrierMuffins + mrsMacadamsMuffins + mrsFlannerysMuffins;\n\t\tSystem.out.println(\"9. totalMuffins = \" + totalMuffins);\n /*\n 12. Mrs. Hilt bought a yoyo for 24 cents and a whistle for 14 cents. How\n much did she spend in all for the two toys?\n */\n\t\tdouble yoyo = .24;\n\t\tdouble whistle = .14;\n\t\tdouble totalSpent = yoyo + whistle;\n\t\tSystem.out.println(\"10. totalSpent = \" + totalSpent);\n\t\t\n /*\n 13. Mrs. Hilt made 5 Rice Krispie Treats. She used 8 large marshmallows\n and 10 mini marshmallows.How many marshmallows did she use\n altogether?\n */\n\t\tint largeMarshmallows = 8;\n\t\tint miniMarshmallows = 10;\n\t\tint riceKrispie = largeMarshmallows + miniMarshmallows;\n\t\tSystem.out.println(\"11. HowManyMarshMallowsIn5Treats = \" + riceKrispie);\n /*\n 14. At Mrs. Hilt's house, there was 29 inches of snow, and Brecknock\n Elementary School received 17 inches of snow. How much more snow\n did Mrs. Hilt's house have?\n */\n\t\tint hiltSnowInches = 29;\n\t\tint brecknockSnowInches = 17;\n\t\tint hiltSnowDifference = hiltSnowInches - brecknockSnowInches;\n\t\tSystem.out.println(\"12. hiltSnowDifference = \" + hiltSnowDifference);\n /*\n 15. Mrs. Hilt has $10. She spends $3 on a toy truck and $2 on a pencil\n case. How much money does she have left?\n */\n\t\tdouble hiltTotal = 10.00;\n\t\tdouble hiltToyTruck = 3.00;\n\t\tdouble hiltPencilCase = 2.00;\n\t\tdouble moneyLeft = hiltTotal - hiltToyTruck - hiltPencilCase;\n\t\tSystem.out.println(\"13. moneyLeft = \" + moneyLeft);\n /*\n 16. Josh had 16 marbles in his collection. He lost 7 marbles. How many\n marbles does he have now?\n */\n\t\tint collectedMarbles = 16;\n\t\tint lostMarbles = 7;\n\t\tint totalMarbles = collectedMarbles - lostMarbles;\n\t\tSystem.out.println(\"14. totalMarbles = \" + totalMarbles);\n /*\n 17. Megan has 19 seashells. How many more seashells does she need to\n find to have 25 seashells in her collection?\n */\n\t\tint seashellsCollection = 25;\n\t\tint seashellsMegan = 19;\n\t\tint seashellsNeeded = seashellsCollection - seashellsMegan;\n\t\tSystem.out.println(\"15. seashellsNeeded = \" + seashellsNeeded);\n /*\n 18. Brad has 17 balloons. 8 balloons are red and the rest are green. How\n many green balloons does Brad have?\n */\n\t\tint totalBalloons = 17;\n\t\tint redBalloons = 8;\n\t\tint greenBalloons = totalBalloons - redBalloons;\n\t\tSystem.out.println(\"16. greenBalloons = \" + greenBalloons);\n /*\n 19. There are 38 books on the shelf. Marta put 10 more books on the shelf.\n How many books are on the shelf now?\n */\n\t\tint shelfBooks = 38;\n\t\tint moreBooks = 10;\n\t\tint totalBooks = shelfBooks + moreBooks;\n\t\tSystem.out.println(\"17. totalBooks = \" + totalBooks);\n /*\n 20. A bee has 6 legs. How many legs do 8 bees have?\n */\n\t\tint oneBeelegs = 6;\n\t\tint eightBeesLegs = oneBeelegs * 8;\n\t\tint totalBeesLegs = eightBeesLegs;\n\t\tSystem.out.println(\"18. totalBeesLegs = \" + totalBeesLegs);\n /*\n 21. Mrs. Hilt bought an ice cream cone for 99 cents. How much would 2 ice\n cream cones cost?\n */\n\t\tdouble iceCreamCone = .99;\n\t\tdouble twoIceCreamCones = iceCreamCone * 2;\n\t\tdouble totalConesCost = twoIceCreamCones;\n\t\tSystem.out.println(\"19. totalConesCost = \" + totalConesCost);\n /*\n 22. Mrs. Hilt wants to make a border around her garden. She needs 125\n rocks to complete the border. She has 64 rocks. How many more rocks\n does she need to complete the border?\n */\n\t\tint hiltRocksNeeded = 125;\n\t\tint hiltRocksHave = 64;\n\t\tint moreRocksNeeded = hiltRocksNeeded - hiltRocksHave;\n\t\tSystem.out.println(\"20. moreRocksNeeded = \" + moreRocksNeeded);\n /*\n 23. Mrs. Hilt had 38 marbles. She lost 15 of them. How many marbles does\n she have left?\n */\n\t\tint marblesHad = 38;\n\t\tint marblesLost = 15;\n\t\tint marblesLeft = marblesHad - marblesLost;\n\t\tSystem.out.println(\"21. marblesLeft = \" + marblesLeft);\n /*\n 24. Mrs. Hilt and her sister drove to a concert 78 miles away. They drove 32\n miles and then stopped for gas. How many miles did they have left to drive?\n */\n\t\tint concertMiles = 78;\n\t\tint gasStopMiles = 32;\n\t\tint totalMilesLeft = concertMiles - gasStopMiles;\n\t\tSystem.out.println(\"22. totalMilesLeft = \" + totalMilesLeft);\n /*\n 25. Mrs. Hilt spent 1 hour and 30 minutes shoveling snow on Saturday\n morning and 45 minutes shoveling snow on Saturday afternoon. How\n much total time did she spend shoveling snow?\n */\n\t\tint snowShovelMinsMorn = 90;\n\t\tint snowShovelMinsAft = 45;\n\t\tint totalSnowShovelMins = snowShovelMinsMorn + snowShovelMinsAft;\n\t\tSystem.out.println(\"23. totalSnowShovelMins = \" + totalSnowShovelMins);\n\t\t\n /*\n 26. Mrs. Hilt bought 6 hot dogs. Each hot dog cost 50 cents. How much\n money did she pay for all of the hot dogs?\n */\n\t\tint hotdogsBought = 6;\n\t\tdouble hotdogsCost = .50;\n\t\tdouble totalCostPaid = hotdogsBought * hotdogsCost;\n\t\tSystem.out.println(\"24. totalCostPaid = \" + totalCostPaid);\n /*\n 27. Mrs. Hilt has 50 cents. A pencil costs 7 cents. How many pencils can\n she buy with the money she has?\n */\n\t\tdouble hiltMoney = .50;\n\t\tdouble pencils = .07;\n\t\tdouble pencilsHiltCanBuy = hiltMoney / pencils;\n\t\tSystem.out.println(\"25. pencilsHiltCanBuy = \" + pencilsHiltCanBuy);\n /*\n 28. Mrs. Hilt saw 33 butterflies. Some of the butterflies were red and others\n were orange. If 20 of the butterflies were orange, how many of them\n were red?\n */\n\t\tint totalButterflies = 33;\n\t\tint orangeButterflies = 20;\n\t\tint redButterflies = totalButterflies - orangeButterflies;\n\t\tSystem.out.println(\"26. redButterflies = \" + redButterflies);\n /*\n 29. Kate gave the clerk $1.00. Her candy cost 54 cents. How much change\n should Kate get back?\n */\n\t\tdouble kateMoney = 1.00;\n\t\tdouble candyCost = .54;\n\t\tdouble change = kateMoney - candyCost;\n\t\tSystem.out.println(\"27. change = \" + change);\n /*\n 30. Mark has 13 trees in his backyard. If he plants 12 more, how many trees\n will he have?\n */\n\t\tint backyardTrees = 13;\n\t\tint moreTrees = 12;\n\t\tint totalTrees = backyardTrees + moreTrees;\n\t\tSystem.out.println(\"28. totalTrees = \" + totalTrees);\n /*\n 31. Joy will see her grandma in two days. How many hours until she sees\n her?\n */\n\t\tint oneDayHours = 24;\n\t\tint twoDayHours = oneDayHours * 2;\n\t\tint hoursTilGrandma = twoDayHours;\n\t\tSystem.out.println(\"29. hoursTilGrandma = \" + hoursTilGrandma);\n /*\n 32. Kim has 4 cousins. She wants to give each one 5 pieces of gum. How\n much gum will she need?\n */\n\t\tint kimCousins = 4;\n\t\tint piecesOfGum = 5;\n\t\tint gumUsed = kimCousins * piecesOfGum;\n\t\tSystem.out.println(\"30. gumUsed = \" + gumUsed);\n /*\n 33. Dan has $3.00. He bought a candy bar for $1.00. How much money is\n left?\n */\n\t\tdouble danMoney = 3.00;\n\t\tdouble candyBar = 1.00;\n\t\tdouble danMoneyLeft = danMoney - candyBar;\n\t\tSystem.out.println(\"31. danMoneyLeft = \" + danMoneyLeft);\n /*\n 34. 5 boats are in the lake. Each boat has 3 people. How many people are\n on boats in the lake?\n */\n\t\tint boatsInLake = 5;\n\t\tint boatCapacity = 3;\n\t\tint peopleInBoats = boatsInLake * boatCapacity;\n\t\tSystem.out.println(\"32. peopleInBoats = \" + peopleInBoats);\n /*\n 35. Ellen had 380 legos, but she lost 57 of them. How many legos does she\n have now?\n */\n\t\tint legosHad = 380;\n\t\tint legosLost = 57;\n\t\tint legosLeft = legosHad - legosLost;\n\t\tSystem.out.println(\"33. legosLeft = \" + legosLeft);\n /*\n 36. Arthur baked 35 muffins. How many more muffins does Arthur have to\n bake to have 83 muffins?\n */\n\t\tint bakedMuffins = 35;\n\t\tint muffinsNeeded = 83;\n\t\tint muffinsToBake = muffinsNeeded - bakedMuffins;\n\t\tSystem.out.println(\"34. muffinsToBake = \" + muffinsToBake);\n /*\n 37. Willy has 1400 crayons. Lucy has 290 crayons. How many more\n crayons does Willy have then Lucy?\n */\n\t\tint willyCrayons = 1400;\n\t\tint lucyCrayons = 290;\n\t\tint crayonDifference = willyCrayons - lucyCrayons;\n\t\tSystem.out.println(\"35. crayonDifference = \" + crayonDifference);\n /*\n 38. There are 10 stickers on a page. If you have 22 pages of stickers, how\n many stickers do you have?\n */\n\t\tint stickersOnPage = 10;\n\t\tint pagesOfStickers = 22;\n\t\tint totalStickers = stickersOnPage * pagesOfStickers;\n\t\tSystem.out.println(\"36. totalStickers = \" + totalStickers);\n /*\n 39. There are 96 cupcakes for 8 children to share. How much will each\n person get if they share the cupcakes equally?\n */\n\t\tint cupcakes = 96;\n\t\tint children = 8;\n\t\tint cupcakesSharedEqually = cupcakes / children;\n\t\tSystem.out.println(\"35. cupcakesSharedEquqlly = \" + cupcakesSharedEqually);\n /*\n 40. She made 47 gingerbread cookies which she will distribute equally in\n tiny glass jars. If each jar is to contain six cookies each, how many\n cookies will not be placed in a jar?\n */\n\t\tint cookies = 47;\n\t\tint cookiesPerJar = 6;\n\t\tint cookiesNotInJar = cookies % cookiesPerJar;\n\t\tSystem.out.println(\"36. cookiesNotInJar = \" + cookiesNotInJar);\n /*\n 41. She also prepared 59 croissants which she plans to give to her 8\n neighbors. If each neighbor received and equal number of croissants,\n how many will be left with Marian?\n */\n\t\tint croissants = 59;\n\t\tint neighbors = 8;\n\t\tint croissantsForMarian = croissants % neighbors;\n\t\tSystem.out.println(\"37. croissantsLeftForMarian = \" + croissantsForMarian);\n /*\n 42. Marian also baked oatmeal cookies for her classmates. If she can\n place 12 cookies on a tray at a time, how many trays will she need to\n prepare 276 oatmeal cookies at a time?\n */\n\t\tint trayCookies = 12;\n\t\tint cookiesNeeded = 276;\n\t\tint traysNeeded = cookiesNeeded / trayCookies;\n\t\tSystem.out.println(\"38. CookiesAtATime = \" + traysNeeded);\n /*\n 43. Marian’s friends were coming over that afternoon so she made 480\n bite-sized pretzels. If one serving is equal to 12 pretzels, how many\n servings of bite-sized pretzels was Marian able to prepare?\n */\n\t\tint pretzels = 480;\n\t\tint pretzelServing = 12;\n\t\tint pretzelsPrepared = pretzels / pretzelServing;\n\t\tSystem.out.println(\"39. pretzelsPrepared = \" + pretzelsPrepared);\n /*\n 44. Lastly, she baked 53 lemon cupcakes for the children living in the city\n orphanage. If two lemon cupcakes were left at home, how many\n boxes with 3 lemon cupcakes each were given away?\n */\n\t\tint lemonCupcakes = 53 - 2;\n\t\tint cupCakesPerBox = 3;\n\t\tint cupCakesGivenAway = lemonCupcakes / cupCakesPerBox;\n\t\tSystem.out.println(\"40. CupcakesGivenAway = \" + cupCakesGivenAway);\n /*\n 45. Susie's mom prepared 74 carrot sticks for breakfast. If the carrots\n were served equally to 12 people, how many carrot sticks were left\n uneaten?\n */\n\t\tint carrotSticks = 74;\n\t\tint guests = 12;\n\t\tint sticksLeftUneaten = carrotSticks % guests;\n\t\tSystem.out.println(\"41. CarrotSticksLeftUneaten = \" + sticksLeftUneaten);\n /*\n 46. Susie and her sister gathered all 98 of their teddy bears and placed\n them on the shelves in their bedroom. If every shelf can carry a\n maximum of 7 teddy bears, how many shelves will be filled?\n */\n\t\tint teddyBears = 98;\n\t\tint shelves = 7; \n\t\tint shelvesFilled = teddyBears / shelves;\n\t\tSystem.out.println(\"42. shelvesFilled = \" + shelvesFilled);\n /*\n 47. Susie’s mother collected all family pictures and wanted to place all of\n them in an album. If an album can contain 20 pictures, how many\n albums will she need if there are 480 pictures?\n */\n\t\tint albumPictures = 20;\n\t\tint totalPictures = 480;\n\t\tint albumsNeeded = totalPictures / albumPictures;\n\t\tSystem.out.println(\"43. albumssNeeded = \" + albumsNeeded);\n\t\t\n /*\n 48. Joe, Susie’s brother, collected all 94 trading cards scattered in his\n room and placed them in boxes. If a full box can hold a maximum of 8\n cards, how many boxes were filled and how many cards are there in\n the unfilled box?\n */\n\t\tint tradingCards = 94;\n\t\tint cardBoxes = 8;\n\t\tint division = tradingCards / cardBoxes;\n\t\tint unfilledBox = tradingCards & cardBoxes;\n\t\tSystem.out.println(\"43. BoxesFilledvsUnfilled = \" + division + \" R \" + unfilledBox);\n /*\n 49. Susie’s father repaired the bookshelves in the reading room. If he has\n 210 books to be distributed equally on the 10 shelves he repaired,\n how many books will each shelf contain?\n */\n\t\tint bookShelves = 10;\n\t\tint books = 210;\n\t\tint booksPerShelf = books / bookShelves;\n\t\tSystem.out.println(\"44. booksPerShelf = \" + booksPerShelf);\n /*\n 50. Cristina baked 17 croissants. If she planned to serve this equally to\n her seven guests, how many will each have?\n */\n\t\tint croissantsB = 17;\n\t\tint guestsB = 7;\n\t\tint croissantsShared = croissantsB / guestsB;\n\t\tSystem.out.println(\"45. CroissantsPerGuest = \" + croissantsShared);\n /*\n CHALLENGE PROBLEMS\n */\n\n /*\n Bill and Jill are house painters. Bill can paint a 12 x 14 room in 2.15 hours, while Jill averages\n 1.90 hours. How long will it take the two painter working together to paint 5 12 x 14 rooms?\n Hint: Calculate the hourly rate for each painter, combine them, and then divide the total walls in feet by the combined hourly rate of the painters.\n Challenge: How many days will it take the pair to paint 623 rooms assuming they work 8 hours a day?.\n */\n\n /*\n Create and assign variables to hold your first name, last name, and middle initial. Using concatenation,\n build an additional variable to hold your full name in the order of last name, first name, middle initial. The\n last and first names should be separated by a comma followed by a space, and the middle initial must end\n with a period.\n Example: \"Hopper, Grace B.\"\n */\n\n /*\n The distance between New York and Chicago is 800 miles, and the train has already travelled 537 miles.\n What percentage of the trip has been completed?\n Hint: The percent completed is the miles already travelled divided by the total miles.\n Challenge: Display as an integer value between 0 and 100 using casts.\n */\n\n\n\t}", "title": "" }, { "docid": "77a36657e9bbc6bd7f0ef82eabca8bb1", "score": "0.5795932", "text": "public static Horse builderHorse_R2_H8( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R2_H8_ID() );\n horse.setNumber( 8 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 11 );\n // no stable\n horse.setWeight( 55.5 );\n horse.setDistance( 2200.0 );\n horse.setCareerProfit( 905000.0 );\n horse.setPreviousYearProfit( 0.0 );\n horse.setVictoryProfit( 500000.0 );\n horse.setPlaceProfit( 405000.0 );\n horse.setYearProfit( 905000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"S.WATTEL\" ) );\n horse.setOwner( owner( \"FAMILLE ROTHSCHILD\" ) );\n horse.setRancher( rancher( \"FAMILLE ROTHSCHILD\" ) );\n horse.setJockey( jockey( \"T.BACHELOT\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "826653fa2acfffd8d68e82a80957a23a", "score": "0.57907", "text": "static int hurdleRace(int k, int[] height) {\n int max = height[0];\n for(int i=0;i<height.length;i++){\n if(max<height[i]){\n max=height[i];\n }\n }\n //can already jump all the hurdles, so no need to drink anymore doses\n if(max<=k){\n return 0;\n }\n //character can jump unit of 'max', but the tallest hurdle has a height of k\n //therefore need max-k number of doses\n else{\n return max-k;\n }\n\n }", "title": "" }, { "docid": "a720957c1aaa9e638887fe74b6fb0b97", "score": "0.5786322", "text": "public static void main(String[] args) {\n\t\tRandom r = new Random();\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < 10008; i++) {\n\t\t\tint countAces = 0;\n\t\t\tint countTries = 0;\n\t\t\twhile(true){\n\t\t\t\tint firstDraw = r.nextInt(52) + 1;\n\t\t\t\tint secondDraw = r.nextInt(51) + 1;\n\t\t\t\tif((firstDraw == 1 || firstDraw == 2 || firstDraw == 3 || firstDraw == 4) && \n\t\t\t\t (secondDraw == 1 || secondDraw == 2 || secondDraw == 3)){\n\t\t\t\t\tcountAces++;\n\t\t\t\t\tif(countAces == 2){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tcountAces = 0;\n\t\t\t\t}\n\t\t\t\tcountTries++;\n\t\t\t}\n\t\t\tsum += countTries;\n\t\t}\n\t\tSystem.out.println(sum/10008);\n\t}", "title": "" }, { "docid": "8155a03aac237e9b7ed2b8d9e341790d", "score": "0.57767975", "text": "public static Horse builderHorse_R8_H8( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R8_H8_ID() );\n horse.setNumber( 8 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 4 );\n // no stable\n horse.setWeight( 56.0 );\n horse.setDistance( 1600.0 );\n horse.setCareerProfit( 710000.0 );\n horse.setPreviousYearProfit( 0.0 );\n horse.setVictoryProfit( 0.0 );\n horse.setPlaceProfit( 710000.0 );\n horse.setYearProfit( 710000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"A.LYON (S)\" ) );\n horse.setOwner( owner( \"G.LINSOLAS\" ) );\n horse.setRancher( rancher( \"STILVI COMPANIA FINANCIERA S.A.\" ) );\n horse.setJockey( jockey( \"J.CLAUDIC\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "342f39c10c9cb0fddd3dd9085b6b73e5", "score": "0.57719487", "text": "public static void main(String[] args) { \n\nSystem.out.println(\"Eva Battle Start ----! \"); \n\nEvas evas1; \n// キャラ選択 \nevas1 = new Kaworu(); \n\n\nEvas evas2; \nEvas evas3;\nEvas evas4; \n// キャラ選択 \nevas3 = new Shinji(); \n\nevas3 = new Asuka();\n\nevas4 = new Adam();\n\n\n\nSystem.out.println(evas1.name + \" VS \" + evas3.name); \n\n// 無限ループ \nint rd = 1;\nwhile(true) { \n// プレイヤー側が攻撃(1)か休憩(2)かを選択 \nSystem.out.println(\"___________\" ); \nSystem.out.println(\" Round \" + rd); \nSystem.out.println(\"-----------\" ); \n\n/* int input = new \n\n java.util.Scanner(System.in).nextInt(); \n\n if(input == 1) { \n\tevas1.battle(evas3); \n\t} */\n\n\n\n\tint random = new java.util.Random().nextInt(3); \n\t// 0-4 \n\tif( random == 0 ) { \n\t\tevas1.rest(); \n} else { \n\tSystem.out.println(\"攻撃----\"); \n\tevas1.battle(evas3); \n\t\t} \n\nif(evas3.hp <= 0) {\n System.out.println(evas3.name + \"を倒した!!!\"); \nbreak; \n} \n\n// 敵側が攻撃か休憩かをランダムで選択 \nint random1 = new java.util.Random().nextInt(3); \n// 0-4 \nif( random1 == 0 ) { \n\tevas3.rest(); \n} else { \n\t\nevas3.battle(evas1); \n} if(evas1.hp <= 0) { \n\nSystem.out.println(evas1.name + \"は倒されてしまった・・・\"); \n\nbreak; } \nrd ++;\n\n} \n}", "title": "" }, { "docid": "ab998a6d23fb65720b9297999943ab62", "score": "0.5758668", "text": "public static Horse builderHorse_R5_H8( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R5_H8_ID() );\n horse.setNumber( 8 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 8 );\n // no stable\n horse.setWeight( 56.0 );\n horse.setDistance( 1800.0 );\n horse.setCareerProfit( 1459000.0 );\n horse.setPreviousYearProfit( 225000.0 );\n horse.setVictoryProfit( 1000000.0 );\n horse.setPlaceProfit( 459000.0 );\n horse.setYearProfit( 234000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"JD.HILLIS\" ) );\n horse.setOwner( owner( \"GRIFFO RACING\" ) );\n horse.setRancher( rancher( \"GESTUT AMMERLAND\" ) );\n horse.setJockey( jockey( \"A.HAMELIN\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "ff269cafe1e876d8298fc09a8cd24e34", "score": "0.5751944", "text": "public int calculateStartingArmiesPresentation() {\n return 26;\n }", "title": "" }, { "docid": "1fa327f315e172547130f33f308d9cf1", "score": "0.5720749", "text": "public static Horse builderHorse_R4_H8( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R4_H8_ID() );\n horse.setNumber( 8 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 9 );\n // no stable\n horse.setWeight( 56.0 );\n horse.setDistance( 2200.0 );\n horse.setCareerProfit( 0.0 );\n horse.setPreviousYearProfit( 0.0 );\n horse.setVictoryProfit( 0.0 );\n horse.setPlaceProfit( 0.0 );\n horse.setYearProfit( 0.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"MME P.BUTEL\" ) );\n horse.setOwner( owner( \"MME P.BUTEL\" ) );\n horse.setRancher( rancher( \"MME VALERIE LUTZ\" ) );\n horse.setJockey( jockey( \"A.BOUVIER\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "90e332f414098245026b4a34f3f676ec", "score": "0.57156", "text": "public static Horse builderHorse_R8_H5( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R8_H5_ID() );\n horse.setNumber( 5 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 2 );\n // no stable\n horse.setWeight( 57.5 );\n horse.setDistance( 1600.0 );\n horse.setCareerProfit( 195000.0 );\n horse.setPreviousYearProfit( 0.0 );\n horse.setVictoryProfit( 0.0 );\n horse.setPlaceProfit( 195000.0 );\n horse.setYearProfit( 195000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.AUSTRALIAN );\n horse.setTrainer( trainer( \"C&Y.LERNER (S)\" ) );\n horse.setOwner( owner( \"MME P. ADES-HAZAN/ ECURIE KURA\" ) );\n horse.setRancher( rancher( \"PONTCHARTRAIN STUD\" ) );\n horse.setJockey( jockey( \"C.SOUMILLON\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "d960efffe49c76ef8771f6bcd3087b8a", "score": "0.57092774", "text": "public static Horse builderHorse_R3_H8( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R3_H8_ID() );\n horse.setNumber( 8 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 13 );\n // no stable\n horse.setWeight( 57.0 );\n horse.setDistance( 2400.0 );\n horse.setCareerProfit( 1250000.0 );\n horse.setPreviousYearProfit( 1250000.0 );\n horse.setVictoryProfit( 1250000.0 );\n horse.setPlaceProfit( 0.0 );\n horse.setYearProfit( 0.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"S.WATTEL\" ) );\n horse.setOwner( owner( \"D. SUTHERLAND/C. WILSON\" ) );\n horse.setRancher( rancher( \"D & C BLOODSTOCK LLP\" ) );\n horse.setJockey( jockey( \"T.BACHELOT\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "3d59030ee0eee885dafd87fc94f52e37", "score": "0.5686946", "text": "public static void main(String[] args) {\n\t\tBoard.initializeBoard();\n\t\tint bucketChoice = 0;\n\t\tint binValue = 0;\n\t\tint nextBinValue = 0;\n\t\t\n\t\t//while game board top row or bottom row is not empty\n//\t\twhile (isRowEmpty() == false) {\n\t\t\t//while player 1 move last stone in pit\n\t\t\t//player 1 move\n\t\t\tif (bucketChoice == 0) {\n\t\t\t\tbinValue = Integer.valueOf(Board.gameBoard.get(String.valueOf(bucketChoice)));\n\t\t\t\tBoard.gameBoard.put(String.valueOf(bucketChoice), 0);\n\t\t\t\twhile (binValue > 0) {\n\t\t\t\t\tbucketChoice = (Integer.valueOf(bucketChoice) + 1) % 13;\n\t\t\t\t\tBoard.gameBoard.put(String.valueOf(bucketChoice), Board.gameBoard.get(bucketChoice));\n\t\t\t\t\tbinValue--;\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\n\t\t\t\n\t\t\t//while player 2 move last stone in pit\n\t\t\t//player 2 move\n\t\t\t\n\t\t\t\n\t\t\tBoard.printState();\n//\t\t}\n\n\t\t\t\t\n\t}", "title": "" }, { "docid": "15284dee4bb1708fc439ed2d137ed365", "score": "0.5682245", "text": "@Test\n\tpublic void test() {\n\t\tRace newrace = new Race();\n\t\tList<Dog> contestants = new ArrayList<Dog>();\n\t\t\t\t\n\t\tDog dog1 = newrace.addDog(\"Max\", 128, new EarlySprint());\n\t\tDog dog2 = newrace.addDog(\"Charlie\", 137, new SteadyRun());\n\t\tDog dog3 = newrace.addDog(\"Buddy\", 141, new EarlySprint());\n\t\tDog dog4 = newrace.addDog(\"Joe\", 121, new SlowStart());\n\t\tDog dog5 = newrace.addDog(\"Doggo\", 140, new SteadyRun());\n\t\tDog dog6 = newrace.addDog(\"Doge\", 137, new SlowStart());\n\t\tDog dog7 = newrace.addDog(\"Lucky\", 135, new EarlySprint());\n\n\t\tcontestants.add(dog1);\n\t\tcontestants.add(dog2);\n\t\tcontestants.add(dog3);\n\t\tcontestants.add(dog4);\n\t\tcontestants.add(dog5);\n\t\tcontestants.add(dog6);\n\t\tcontestants.add(dog7);\n\t\t\t\t\n\t\tnewrace.startRace(contestants);\n\t\tnewrace.runRace(contestants);\n\t\tassert(newrace.findWinner(contestants)==\"Buddy\"); //Highest speed and early sprint wins\n\t\n\t\tdog6.setMaxSpeed(138);\n\t\tnewrace.startRace(contestants);\n\t\tnewrace.runRace(contestants);\n\t\tassert(newrace.findWinner(contestants)==\"Doge\"); //Slow start with lower speed wins (optimal strategy)\n\t}", "title": "" }, { "docid": "d70aebd975d217017e87bd4ae0be2ac6", "score": "0.5678962", "text": "public static void main(String[] args) {\n\t\tScanner sc1 = new Scanner(System.in);\n\t\tSystem.out.println(\"Ejercicio 1\\n\\n\");\n\t\tString name, color;\n\t\tSystem.out.println(\"Inserte el nombre del caballo\");\n\t\tname=sc1.next();\n\t\tSystem.out.println(\"Inserte el color del caballo\");\n\t\tcolor=sc1.next();\n\t\tSystem.out.println(\"Inserte el año de nacimiendo del caballo\");\n\t\tint year = sc1.nextInt();\n\t\tHorse caballo = new Horse(name, color, year);\n\t\tSystem.out.println(\"Inserte el nombre del caballo de carreras\");\n\t\tname=sc1.next();\n\t\tSystem.out.println(\"Inserte el color del caballo de carreras\");\n\t\tcolor=sc1.next();\n\t\tSystem.out.println(\"Inserte el año de nacimiendo del caballo de carreras\");\n\t\tyear = sc1.nextInt();\n\t\tSystem.out.println(\"Inserte el numero de competiciones del caballo de carreras\");\n\t\tint numVeces = sc1.nextInt();\n\t\tRaceHorse caballoCarrera = new RaceHorse(name,color,year, numVeces);\n\t\tSystem.out.println(\"El nombre del caballo \"+caballo.getName()+\n\t\t\t\t\" Color \"+caballo.getColor()+\" Nacido en el año \"+caballo.getBirthY());\n\t\tSystem.out.println(\"\\n\");\n\t\tSystem.out.println(\"El nombre del caballo \"+caballoCarrera.getName()+\n\t\t\t\t\" Color \"+caballoCarrera.getColor()+\" Nacido en el año \"+caballoCarrera.getBirthY()\n\t\t\t\t+\" con \"+caballoCarrera.getNumVeces()+\" veces competidas\");\n\t\t\n\t\tScanner sc2 = new Scanner(System.in);\n\t\tSystem.out.println(\"Ejercicio 2\\n\\n\");\n\t\tfloat height;\n\t\tString aroma;\n\t\tSystem.out.println(\"Inserte el color de la vela\");\n\t\tcolor=sc2.next();\n\t\tSystem.out.println(\"Inserte la altura\");\n\t\theight=sc2.nextFloat();\n\t\tCandle vela = new Candle();\n\t\tvela.setColor(color);\n\t\tvela.setHeight(height);\n\t\tSystem.out.println(\"Inserte el olor de la vela\");\n\t\taroma=sc2.next();\n\t\tSystem.out.println(\"Inserte la altura de la vela aromática\");\n\t\theight=sc2.nextFloat();\n\t\tScentedCandle velaAromatica = new ScentedCandle(aroma);\n\t\tvelaAromatica.setHeight(height);\n\t\tSystem.out.println(\"El precio de la vela es de: $\"+vela.getPrice());\n\t\tSystem.out.println(\"El precio de la vela aromatica es de: $\"+velaAromatica.getPrice());\n\t\t\n\t\tScanner sc3 = new Scanner(System.in);\n\t\tString name2, name3, name4;\n\t\tint score1, score2;\n\t\tSystem.out.println(\"Ejercicio 3\\n\\n\");\n\t\tTennisGame uno = new TennisGame();\n\t\tDoublesTennisGame dos = new DoublesTennisGame();\n\t\tSystem.out.println(\"Inserte el nombre del primer jugador\");\n\t\tname=sc3.next();\n\t\tSystem.out.println(\"Inserte el nombre del segundo jugador\");\n\t\tname2=sc3.next();\n\t\tSystem.out.println(\"Escribe el score del primer jugador\");\n\t\tscore1=sc3.nextInt();\n\t\tSystem.out.println(\"Escribe el score del segundo jugador\");\n\t\tscore2=sc3.nextInt();\n\t\tuno.setNombres(name, name2);\n\t\tuno.setScores(score1, score2);\n\t\tSystem.out.println(\"Inserte el nombre del primer jugador\");\n\t\tname=sc3.next();\n\t\tSystem.out.println(\"Inserte el nombre del segundo jugador\");\n\t\tname2=sc3.next();\n\t\tSystem.out.println(\"Inserte el nombre del tercer jugador\");\n\t\tname3=sc3.next();\n\t\tSystem.out.println(\"Inserte el nombre del cuarto jugador\");\n\t\tname4=sc3.next();\n\t\tSystem.out.println(\"Escribe el score del primer equipo\");\n\t\tscore1=sc3.nextInt();\n\t\tSystem.out.println(\"Escribe el score del segundo equipo\");\n\t\tscore2=sc3.nextInt();\n\t\tdos.setNombres(name, name2, name3, name4);\n\t\tdos.setScores(score1, score2);\n\t\tSystem.out.println(\"Primer jugador: \"+uno.getScore1()+\", \"+uno.getCadenaScore1());\n\t\tSystem.out.println(\"Segundo jugador: \"+uno.getScore2()+\", \"+uno.getCadenaScore2());\n\t\tSystem.out.println(\"Primer equipo: \"+dos.getScore1()+\", \"+dos.getCadenaScore1());\n\t\tSystem.out.println(\"Segundo equipi: \"+dos.getScore2()+\", \"+dos.getCadenaScore2());\n\t\t\n\t\tScanner sc4 = new Scanner(System.in);\n\t\tSystem.out.println(\"Ejercicio 4\\n\\n\");\n\t\tYear anno = new Year();\n\t\tLeapYear annoBi = new LeapYear();\n\t\tSystem.out.println(anno.getDays());\n\t\tSystem.out.println(annoBi.getDays());\n\t\tSystem.out.println(\"Ingrese un dia\");\n\t\tint dia = sc4.nextInt();\n\t\tSystem.out.println(\"Ingrese un mes\");\n\t\tint mes = sc4.nextInt();\n\t\tSystem.out.println(anno.daysElapsed(mes, dia));\n\t\tSystem.out.println(annoBi.daysElapsed(mes, dia));\n\t\t\n\t\tScanner sc5 = new Scanner(System.in);\n\t\tSystem.out.println(\"Ejercicio 6\\n\\n\");\n\t\tSystem.out.println(\"Ingrese el peso en onzas\");\n\t\tint pesoOnzas = sc5.nextInt();\n\t\tSystem.out.println(\"Ingrese el medio del envío\");\n\t\tchar medio = sc5.next().charAt(0); \n\t\tInsuredPackage paquete = new InsuredPackage(pesoOnzas, medio);\n\t\tSystem.out.println(paquete.display());\n\t\t\n\t\tScanner sc6 = new Scanner(System.in);\n\t\tString nombre, tamanno, nombre1;\n\t\tint zip_Code, diasRent;\n\t\tSystem.out.println(\"Ejercicio 7\\n\\n\");\n\t\tSystem.out.println(\"CarRental\");\n\t\tCarRental autos = new CarRental(nombre=sc6.next(), zip_Code=sc6.nextInt(), SizeCar.valueOf(tamanno=sc6.next()),\n\t\t\t\tdiasRent=sc6.nextInt());\n\t\tSystem.out.println(autos.display());\n\t\tSystem.out.println(\"LuxuryCarRental lujo1\");\n\t\tLuxuryCarRental lujo1 = new LuxuryCarRental(nombre=sc6.next(), zip_Code=sc6.nextInt(), SizeCar.valueOf(tamanno=sc6.next()),\n\t\t\t\tdiasRent=sc6.nextInt());\n\t\tSystem.out.println(\"LuxuryCarRental lujo2\");\n\t\tLuxuryCarRental lujo2 = new LuxuryCarRental(nombre=sc6.next(), zip_Code=sc6.nextInt(), SizeCar.valueOf(tamanno=sc6.next()), \n\t\t\t\tdiasRent=sc6.nextInt(), nombre1=sc6.next());\n\t\tSystem.out.println(lujo1.display());\n\t\tSystem.out.println(lujo2.display());\n\t\t\n\t\tScanner sc7 = new Scanner(System.in);\n\t\tSystem.out.println(\"Ejercicio 8\\n\\n\");\n\t\tCollegeCourse curso = new LabCourse(\"POO\", 401, (byte) 6);\n\t\tSystem.out.println(curso.display());\n\t\t\n\t\tScanner sc8 = new Scanner(System.in);\n\t\tSystem.out.println(\"Ejercicio 9\\n\\n\");\n\t\tCar auto = new Car(47);\n\t\tMotorCycle moto = new MotorCycle(19);\n\t\tSystem.out.println(auto.toString());\n\t\tSystem.out.println(moto.toString());\n\t\t\n\t\tScanner sc9 = new Scanner(System.in);\n\t\tSystem.out.println(\"Ejercicio 10\\n\\n\");\n\t\tArrayList <Person> escuela = new ArrayList<>();\n\t\tint C=4, F=3, S=7;\n\t\tchar persona;\n\t\tSystem.out.println(\"Bienvenidos\");\n\t\tdo {\n\t\t\tSystem.out.println(\"Inserte la opción correcta\");\n\t\t\tSystem.out.println(\"C. Inserta Empleado\");\n\t\t\tSystem.out.println(\"F. Insertar Profesor\");\n\t\t\tSystem.out.println(\"S. Insertar Estudiante\");\n\t\t\tSystem.out.println(\"Q. Salir\");\n\t\t\tpersona = sc7.next().charAt(0);\n\t\t\tswitch(persona) {\n\t\t\tcase 'C':\n\t\t\t\tif(C>0) {\n\t\t\t\t\tescuela.add(new CollegeEmployee());\n\t\t\t\t\tC--;\n\t\t\t\t\tSystem.out.println(\"Le restan \"+C+\" disponibles\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Espacio no disponible\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'F':\n\t\t\t\tif(F>0) {\n\t\t\t\t\tescuela.add(new Faculty());\n\t\t\t\t\tF--;\n\t\t\t\t\tSystem.out.println(\"Le restan \"+F+\" disponibles\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Espacio no disponible\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'S':\n\t\t\t\tif(S>0) {\n\t\t\t\t\tescuela.add(new Student());\n\t\t\t\t\tS--;\n\t\t\t\t\tSystem.out.println(\"Le restan \"+S+\" disponibles\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Espacio no disponible\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'Q':\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Error\");\n\t\t\t\tSystem.out.println(\"Intentelo de nuevo\\n\");\n\t\t\t}\n\t\t}while(persona!='Q');\n\t\tfor (Person person : escuela) {\n\t\t\tif(person instanceof CollegeEmployee) {\n\t\t\t\tSystem.out.println(\"Ingrese Nombre, Apellido/s, direccion, zip code, numero de telefono, numero de\"\n\t\t\t\t\t\t+ \"seguro social, salario anual y departamento(String)\");\n\t\t\t\tperson.setFirstName(sc7.next());\n\t\t\t\tperson.setLastName(sc7.next());\n\t\t\t\tperson.setAddress(sc7.next());\n\t\t\t\tperson.setZip_Code(sc7.nextInt());\n\t\t\t\tperson.setpNumber(sc7.nextInt());\n\t\t\t\t((CollegeEmployee) person).setSs(sc7.nextInt());\n\t\t\t\t((CollegeEmployee) person).setAnnualSalary((Number)(sc7.nextFloat()));\n\t\t\t\t((CollegeEmployee) person).setDepartamento(sc7.next());\n\t\t\t}\n\t\t\tif(person instanceof Faculty) {\n\t\t\t\tSystem.out.println(\"Ingrese Nombre, Apellido/s, direccion, zip code, numero de telefono, numero de\" \n\t\t\t\t\t\t+ \"seguro social, salario anual, departamento(String) y ¿titular? (boolean)\");\n\t\t\t\tperson.setFirstName(sc7.next());\n\t\t\t\tperson.setLastName(sc7.next());\n\t\t\t\tperson.setAddress(sc7.next());\n\t\t\t\tperson.setZip_Code(sc7.nextInt());\n\t\t\t\tperson.setpNumber(sc7.nextInt());\n\t\t\t\t((CollegeEmployee) person).setSs(sc7.nextInt());\n\t\t\t\t((CollegeEmployee) person).setAnnualSalary((Number)(sc7.nextFloat()));\n\t\t\t\t((CollegeEmployee) person).setDepartamento(sc7.next());\n\t\t\t\t((Faculty) person).setTitular(sc7.nextBoolean());\n\t\t\t}\n\t\t\tif(person instanceof Student) {\n\t\t\t\tSystem.out.println(\"Ingrese Nombre, Apellido/s, direccion, zip code, numero de telefono, promedio (float)\"\n\t\t\t\t\t\t+ \"Carrera (String)\");\n\t\t\t\tperson.setFirstName(sc7.next());\n\t\t\t\tperson.setLastName(sc7.next());\n\t\t\t\tperson.setAddress(sc7.next());\n\t\t\t\tperson.setZip_Code(sc7.nextInt());\n\t\t\t\tperson.setpNumber(sc7.nextInt());\n\t\t\t\t((Student) person).setPromedio(sc7.nextFloat());\n\t\t\t\t((Student) person).setCarrera(sc7.next());\n\t\t\t}\n\t\t}\n\t\tfor (Person person : escuela) {\n\t\t\tSystem.out.println(person.informacion());\n\t\t}\n\t}", "title": "" }, { "docid": "98ad09a7c34aae73754d20b8d506624e", "score": "0.5676105", "text": "public static Horse builderHorse_R7_H8( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R7_H8_ID() );\n horse.setNumber( 8 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 17 );\n // no stable\n horse.setWeight( 56.5 );\n horse.setDistance( 1600.0 );\n horse.setCareerProfit( 325000.0 );\n horse.setPreviousYearProfit( 0.0 );\n horse.setVictoryProfit( 250000.0 );\n horse.setPlaceProfit( 75000.0 );\n horse.setYearProfit( 325000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"MAR .HOFER\" ) );\n horse.setOwner( owner( \"G.SINDERMANN\" ) );\n horse.setRancher( rancher( \"MR GERHARD SINDERMANN\" ) );\n horse.setJockey( jockey( \"I.MENDIZABAL\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "67773629ef92dac40d811c456994a109", "score": "0.5675105", "text": "int getCompletedGameStreak();", "title": "" }, { "docid": "0f7158867f3d55d23501714deac84aa4", "score": "0.56651926", "text": "public static Horse builderHorse_R6_H8( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R6_H8_ID() );\n horse.setNumber( 8 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 7 );\n // no stable\n horse.setWeight( 56.5 );\n horse.setDistance( 2900.0 );\n horse.setCareerProfit( 1820000.0 );\n horse.setPreviousYearProfit( 0.0 );\n horse.setVictoryProfit( 0.0 );\n horse.setPlaceProfit( 1820000.0 );\n horse.setYearProfit( 1820000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"J.BERTRAN DE BALANDA (S)\" ) );\n horse.setOwner( owner( \"D.GONCALVES\" ) );\n horse.setRancher( rancher( \"MR ALBERT HOSSELET\" ) );\n horse.setJockey( jockey( \"M.GUYON\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "25cbbda39ea271ebb6c549a8dd4fa4c1", "score": "0.56478965", "text": "private void breath() {\n \n }", "title": "" }, { "docid": "9f775b3a75713e4d51c63d8082dd9bc0", "score": "0.56421375", "text": "public static Horse builderHorse_R8_H2( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R8_H2_ID() );\n horse.setNumber( 2 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 9 );\n // no stable\n horse.setWeight( 59.0 );\n horse.setDistance( 1600.0 );\n horse.setCareerProfit( 2275000.0 );\n horse.setPreviousYearProfit( 1135000.0 );\n horse.setVictoryProfit( 0.0 );\n horse.setPlaceProfit( 2275000.0 );\n horse.setYearProfit( 1140000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"P.NICOT (S)\" ) );\n horse.setOwner( owner( \"J-J. MONTAGNE/P. NICOT (S)\" ) );\n horse.setRancher( rancher( \"HARAS DU QUESNAY\" ) );\n horse.setJockey( jockey( \"J.AUGE\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "7c4456c9f7adc7f7307a88f3505e87a0", "score": "0.563303", "text": "public static Race builderRace_R8( Meeting meeting ) {\n\n Race race = new Race();\n\n race.setMeeting( meeting );\n race.setNumber( 8 );\n race.setName( \"PRIX MANOIR DE BENERVILLE - SPA ADRIANA KAREMBEU (PRIX D'ELLON)\" );\n race.setStatus( RaceStatus.FINISHED );\n race.setStart( parse( \"13/08/2015 16:25:00 +0200\" ) );\n // no real start\n race.setDistance( 1600.0 );\n race.setBenefit( 23000.0 );\n race.setDiscipline( Discipline.PLAT );\n race.setTypes( EnumSet.of( Type.HANDICAP ) );\n\n // -- horses --\n TreeSet<Horse> horses = new TreeSet<>();\n horses.add( builderHorse_R8_H1( race ) );\n horses.add( builderHorse_R8_H2( race ) );\n horses.add( builderHorse_R8_H3( race ) );\n horses.add( builderHorse_R8_H4( race ) );\n horses.add( builderHorse_R8_H5( race ) );\n horses.add( builderHorse_R8_H6( race ) );\n horses.add( builderHorse_R8_H7( race ) );\n horses.add( builderHorse_R8_H8( race ) );\n horses.add( builderHorse_R8_H9( race ) );\n horses.add( builderHorse_R8_H10( race ) );\n horses.add( builderHorse_R8_H11( race ) );\n horses.add( builderHorse_R8_H12( race ) );\n horses.add( builderHorse_R8_H13( race ) );\n horses.add( builderHorse_R8_H14( race ) );\n horses.add( builderHorse_R8_H15( race ) );\n horses.add( builderHorse_R8_H16( race ) );\n horses.add( builderHorse_R8_H17( race ) );\n race.setHorses( horses );\n\n // -- bets --\n race.setBets( EnumSet.of(\n BetType.SIMPLE_GAGNANT,\n BetType.SIMPLE_PLACE,\n BetType.COUPLE_ORDRE,\n BetType.COUPLE_GAGNANT,\n BetType.COUPLE_PLACE,\n BetType.TRIO,\n BetType.DEUX_SUR_QUATRE,\n BetType.MULTI_EN_QUATRE,\n BetType.MULTI_EN_CINQ,\n BetType.MULTI_EN_SIX,\n BetType.MULTI_EN_SEPT ) );\n\n // -- odds --\n TreeSet<Odds> oddsSet = new TreeSet<Odds>();\n oddsSet.add( builderOdds_R8_O1( race ) );\n oddsSet.add( builderOdds_R8_O2( race ) );\n race.setOdds( oddsSet );\n\n // no duration\n\n // -- finish --\n TreeSet<Place> places = new TreeSet<Place>();\n places.add( place( race, 1, 13 ) );\n places.add( place( race, 2, 4, \"UNE_LONGUEUR\" ) );\n places.add( place( race, 3, 1, \"UNE_LONGUEUR_ET_DEMIE\" ) );\n places.add( place( race, 4, 9, \"COURTE_ENCOLURE\" ) );\n places.add( place( race, 5, 8, \"COURTE_ENCOLURE\" ) );\n places.add( place( race, 6, 6, \"COURTE_ENCOLURE\" ) );\n places.add( place( race, 7, 10, \"UNE_LONGUEUR\" ) );\n places.add( place( race, 8, 14, \"DEMI_LONGUEUR\" ) );\n places.add( place( race, 9, 15, \"DEUX_LONGUEURS\" ) );\n places.add( place( race, 10, 16, \"TROIS_QUARTS_DE_LONGUEUR\" ) );\n places.add( place( race, 11, 5, \"UNE_LONGUEUR_ET_QUART\" ) );\n places.add( place( race, 12, 3, \"UNE_LONGUEUR\" ) );\n places.add( place( race, 13, 11, \"UNE_LONGUEUR_TROIS_QUARTS\" ) );\n places.add( place( race, 14, 2, \"DEUX_LONGUEURS_ET_DEMIE\" ) );\n places.add( place( race, 15, 17, \"TROIS_LONGUEURS\" ) );\n race.setPlaces( places );\n\n // no stopped\n // no disqualified\n // no fallen\n\n // -- prices --\n TreeSet<Price> prices = new TreeSet<>();\n prices.add( price( race, BetType.SIMPLE_GAGNANT, PriceName.DIRECT, 6.8, \"13\" ) );\n prices.add( price( race, BetType.SIMPLE_PLACE, PriceName.DIRECT, 2.1, \"1\" ) );\n prices.add( price( race, BetType.SIMPLE_PLACE, PriceName.DIRECT, 2.1, \"13\" ) );\n prices.add( price( race, BetType.SIMPLE_PLACE, PriceName.DIRECT, 2.0, \"4\" ) );\n prices.add( price( race, BetType.COUPLE_ORDRE, PriceName.DIRECT, 6.8, \"13\" ) );\n prices.add( price( race, BetType.COUPLE_ORDRE, PriceName.DIRECT, 28.2, \"13 4\" ) );\n prices.add( price( race, BetType.COUPLE_GAGNANT, PriceName.DIRECT, 6.8, \"13\" ) );\n prices.add( price( race, BetType.COUPLE_GAGNANT, PriceName.DIRECT, 12.5, \"13 4\" ) );\n prices.add( price( race, BetType.COUPLE_PLACE, PriceName.DIRECT, 2.1, \"1\" ) );\n prices.add( price( race, BetType.COUPLE_PLACE, PriceName.DIRECT, 2.1, \"13\" ) );\n prices.add( price( race, BetType.COUPLE_PLACE, PriceName.DIRECT, 9.8, \"13 1\" ) );\n prices.add( price( race, BetType.COUPLE_PLACE, PriceName.DIRECT, 5.5, \"13 4\" ) );\n prices.add( price( race, BetType.COUPLE_PLACE, PriceName.DIRECT, 2.0, \"4\" ) );\n prices.add( price( race, BetType.COUPLE_PLACE, PriceName.DIRECT, 4.9, \"4 1\" ) );\n prices.add( price( race, BetType.TRIO, PriceName.DIRECT, 6.8, \"13\" ) );\n prices.add( price( race, BetType.TRIO, PriceName.DIRECT, 12.5, \"13 4\" ) );\n prices.add( price( race, BetType.TRIO, PriceName.DIRECT, 17.9, \"13 4 1\" ) );\n prices.add( price( race, BetType.DEUX_SUR_QUATRE, PriceName.DIRECT, 1.4, \"1\" ) );\n prices.add( price( race, BetType.DEUX_SUR_QUATRE, PriceName.DIRECT, 3.1, \"1 9\" ) );\n prices.add( price( race, BetType.DEUX_SUR_QUATRE, PriceName.DIRECT, 1.4, \"13\" ) );\n prices.add( price( race, BetType.DEUX_SUR_QUATRE, PriceName.DIRECT, 3.1, \"13 1\" ) );\n prices.add( price( race, BetType.DEUX_SUR_QUATRE, PriceName.DIRECT, 3.1, \"13 4\" ) );\n prices.add( price( race, BetType.DEUX_SUR_QUATRE, PriceName.DIRECT, 3.1, \"13 9\" ) );\n prices.add( price( race, BetType.DEUX_SUR_QUATRE, PriceName.DIRECT, 1.4, \"4\" ) );\n prices.add( price( race, BetType.DEUX_SUR_QUATRE, PriceName.DIRECT, 3.1, \"4 1\" ) );\n prices.add( price( race, BetType.DEUX_SUR_QUATRE, PriceName.DIRECT, 3.1, \"4 9\" ) );\n prices.add( price( race, BetType.DEUX_SUR_QUATRE, PriceName.DIRECT, 1.4, \"9\" ) );\n prices.add( price( race, BetType.MULTI_EN_QUATRE, PriceName.DIRECT, 105.0, \"13 4 1 9\" ) );\n prices.add( price( race, BetType.MULTI_EN_CINQ, PriceName.DIRECT, 21.0, \"13 4 1 9\" ) );\n prices.add( price( race, BetType.MULTI_EN_SIX, PriceName.DIRECT, 7.0, \"13 4 1 9\" ) );\n prices.add( price( race, BetType.MULTI_EN_SEPT, PriceName.DIRECT, 3.0, \"13 4 1 9\" ) );\n race.setPrices( prices );\n\n return race;\n\n }", "title": "" }, { "docid": "340dfa5beaa843d8c3f00efa64624ac0", "score": "0.5618538", "text": "public static Horse builderHorse_R2_H4( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R2_H4_ID() );\n horse.setNumber( 4 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 8 );\n // no stable\n horse.setWeight( 57.0 );\n horse.setDistance( 2200.0 );\n horse.setCareerProfit( 1125000.0 );\n horse.setPreviousYearProfit( 0.0 );\n horse.setVictoryProfit( 750000.0 );\n horse.setPlaceProfit( 375000.0 );\n horse.setYearProfit( 1125000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"JC.ROUGET (S)\" ) );\n horse.setOwner( owner( \"H.AL MAKTOUM\" ) );\n horse.setRancher( rancher( \"SHADWELL ESTATE CO. LTD\" ) );\n horse.setJockey( jockey( \"C.SOUMILLON\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "56acf53d3120220fda401101a1f73391", "score": "0.5596052", "text": "@Test\n public void lastSpareTest() {\n // Gutter for the first 9 frames\n repeatedRolls(18, 0);\n\n // On the 10th frame, spare\n // then 5.\n bowlingGame.roll(6);\n bowlingGame.roll(4);\n bowlingGame.roll(5);\n\n assertEquals(15, bowlingGame.score());\n }", "title": "" }, { "docid": "14db30cc04b1200c9be77fa91eb07544", "score": "0.55856097", "text": "public int rescore(){\n \t\t\n \t\t//super massive conditional\n \t\t\n \t\ttry {\n \t\tif (checkRoyalFlush())\n \t\t\treturn 10;\n \t\telse\n \t\t\tif (checkStraightFlush())\n \t\t\t\treturn 9;\n \t\t\telse\n \t\t\t\tif (checkFourOfKind())\n \t\t\t\t\treturn 8;\n \t\t\t\telse\n \t\t\t\t\tif (checkFullHouse())\n \t\t\t\t\t\treturn 7;\n \t\t\t\t\telse\n \t\t\t\t\t\tif (checkFlush())\n \t\t\t\t\t\t\treturn 6;\n \t\t\t\t\t\telse\n \t\t\t\t\t\t\tif (checkStraight())\n \t\t\t\t\t\t\t\treturn 5;\n \t\t\t\t\t\t\telse\n \t\t\t\t\t\t\t\tif (checkThreeOfKind())\n \t\t\t\t\t\t\t\t\treturn 4;\n \t\t\t\t\t\t\t\telse\n \t\t\t\t\t\t\t\t\tif (checkTwoPair())\n \t\t\t\t\t\t\t\t\t\treturn 3;\n \t\t\t\t\t\t\t\t\telse\n \t\t\t\t\t\t\t\t\t\tif (checkOnePair())\n \t\t\t\t\t\t\t\t\t\t\treturn 2;\n \t\t\t\t\t\t\t\t\t\telse\n \t\t\t\t\t\t\t\t\t\t\treturn 1;\n \t\t}\n \t\tcatch (ArrayIndexOutOfBoundsException e){\n \t\t\tSystem.err.println(\"HAND ARRAY OUT OF BOUNDS\");\n \t\t}\n \t\treturn -1;\n \t\t\n \t}", "title": "" }, { "docid": "e969fc89d2c0004106837d12e20eb294", "score": "0.55816", "text": "private static void startGame() {\n\t\tgameService.displayWelcomeCommand();\n\t\tgameService.displayMatchEquation(noOfOversLeft, noOfRunsRequired);\n\n\t\twhile (noOfRunsRequired > 0 && noOfBallsLeft > 0 && wickets < GameConstants.NO_OF_WICKETS) {\n\t\t\tcurrentPlayer = crease.getStriker();\n\t\t\tint score = playerService.play(currentPlayer);\n\t\t\t++ballsOfOver;\n\t\t\t--noOfBallsLeft;\n\n\t\t\tswitch (score % 2) {\n\t\t\tcase 0: {\n\t\t\t\tnoOfRunsRequired -= score;\n\t\t\t\tgameService.displayComment(currentPlayer, score, overNumber, ballsOfOver);\n\t\t\t\tplayerService.updateScoreCard(score, currentPlayer);\n\t\t\t\tif (gameService.isOverCompleted(noOfBallsLeft)) {\n\t\t\t\t\tcompleteOverEndActivities(score);\n\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase 1: {\n\t\t\t\tnoOfRunsRequired -= score;\n\t\t\t\tgameService.displayComment(currentPlayer, score, overNumber, ballsOfOver);\n\t\t\t\tplayerService.updateScoreCard(score, currentPlayer);\n\t\t\t\tgameService.changeStrike(crease, currentPlayer);\n\t\t\t\tif (gameService.isOverCompleted(noOfBallsLeft)) {\n\t\t\t\t\tcompleteOverEndActivities(score);\n\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\t}\n\t\t\tdefault: {\n\t\t\t\tgameService.displayComment(currentPlayer, score, overNumber, ballsOfOver);\n\t\t\t\t++wickets;\n\t\t\t\tplayerService.updateScoreCard(score, currentPlayer);\n\t\t\t\tcurrentPlayer.isOut = true;\n\t\t\t\taddNewPlayerToCrease();\n\n\t\t\t\tif (gameService.isOverCompleted(noOfBallsLeft)) {\n\t\t\t\t\tcompleteOverEndActivities(score);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(\"\\n****** MATCH SUMMARAY ***************\");\n\t\tgameService.checkForWinAndDisplayResult(noOfRunsRequired, noOfBallsLeft, wickets);\n\t\tSystem.out.println(\"****** FINAL SCORE BOARD ***************\");\n\t\tgameService.displayFinalScoreBoard(playersList);\n\n\t}", "title": "" }, { "docid": "4f08191de99e3d6d82b14f30cc70d2c7", "score": "0.55772185", "text": "public static Horse builderHorse_R8_H1( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R8_H1_ID() );\n horse.setNumber( 1 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 14 );\n // no stable\n horse.setWeight( 61.0 );\n horse.setDistance( 1600.0 );\n horse.setCareerProfit( 1170000.0 );\n horse.setPreviousYearProfit( 250000.0 );\n horse.setVictoryProfit( 800000.0 );\n horse.setPlaceProfit( 370000.0 );\n horse.setYearProfit( 920000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"FH.GRAFFARD (S)\" ) );\n horse.setOwner( owner( \"THURLOE FRANCE LIMITED\" ) );\n horse.setRancher( rancher( \"AZIENDA AGRICOLA LUCIANI LORETO\" ) );\n horse.setJockey( jockey( \"PC.BOUDOT\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "c938910b82626f776a4690d2a419f16c", "score": "0.55736214", "text": "public int makePrediction() {\n\t\tString[] choices = {\"Fire\", \"Water\", \"Grass\"};\n\t\tif (currentPattern.getPattern().length() == 4) {\n\t\t\tint[] count = new int[3];\n\t\t\tPattern F = new Pattern(currentPattern.getPattern().substring(1) + \"F\");\n\t\t\tPattern W = new Pattern(currentPattern.getPattern().substring(1) + \"W\");\n\t\t\tPattern G = new Pattern(currentPattern.getPattern().substring(1) + \"G\");\n\t\t\t\n\t\t\tif (patterns.get(F) != null) {\n\t\t\t\tcount[0] = patterns.get(F);\n\t\t\t}\n\t\t\tif (patterns.get(W) != null) {\n\t\t\t\tcount[1] = patterns.get(W);\n\t\t\t}\n\t\t\tif (patterns.get(G) != null) {\n\t\t\t\tcount[2] = patterns.get(G);\n\t\t\t}\n\t\t\t\n\t\t\tint largest = -1;\n\t\t\tint humanMove = -1;\n\t\t\tArrayList<Integer> largestIndex = new ArrayList<Integer>();\n\t\t\t\n\t\t\tfor (int i : count) {\n\t\t\t\tif (i > largest) {\n\t\t\t\t\tlargest = i;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 0; i < count.length; i++) {\n\t\t\t\tif (count[i] == largest) {\n\t\t\t\t\tlargestIndex.add(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (largestIndex.size() == 1) {\n\t\t\t\thumanMove = largestIndex.get(0);\n\t\t\t} else if (largestIndex.size() > 1) {\n\t\t\t\thumanMove = largestIndex.get((int) (Math.random() * 2));\n\t\t\t}\n\t\t\t\n\t\t\tif (humanMove != -1) {\n\t\t\t\tSystem.out.println(\"Computer predicted you'll play \" + choices[humanMove]);\n\t\t\t\t\n\t\t\t\tswitch (humanMove) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\treturn 2;\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\treturn 3;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\treturn 1;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\treturn (int)(Math.random() * 3) + 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn (int)(Math.random() * 3) + 1;\n\t}", "title": "" }, { "docid": "c4740cf096bd2a5f43ffef645fef7735", "score": "0.55616915", "text": "public static Horse builderHorse_R8_H15( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R8_H15_ID() );\n horse.setNumber( 15 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 10 );\n // no stable\n horse.setWeight( 53.5 );\n horse.setDistance( 1600.0 );\n horse.setCareerProfit( 855000.0 );\n horse.setPreviousYearProfit( 125000.0 );\n horse.setVictoryProfit( 0.0 );\n horse.setPlaceProfit( 855000.0 );\n horse.setYearProfit( 730000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"MAR .HOFER\" ) );\n horse.setOwner( owner( \"G.SINDERMANN\" ) );\n horse.setRancher( rancher( \"MR GERHARD SINDERMANN\" ) );\n horse.setJockey( jockey( \"U.RISPOLI\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "3721b7fcee0494a3df78ea365ee54af3", "score": "0.5546724", "text": "public static Horse builderHorse_R8_H17( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R8_H17_ID() );\n horse.setNumber( 17 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 15 );\n // no stable\n horse.setWeight( 52.0 );\n horse.setDistance( 1600.0 );\n horse.setCareerProfit( 0.0 );\n horse.setPreviousYearProfit( 0.0 );\n horse.setVictoryProfit( 0.0 );\n horse.setPlaceProfit( 0.0 );\n horse.setYearProfit( 0.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"P.VAN DE POELE (S)\" ) );\n horse.setOwner( owner( \"MME C.TRANCHANT-DASSAULT\" ) );\n horse.setRancher( rancher( \"S.C.A. ELEVAGE DE TOURGEVILLE\" ) );\n horse.setJockey( jockey( \"A.BADEL\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "0925a68e11ad186872d8df10849bd0f7", "score": "0.55329996", "text": "public static Horse builderHorse_R2_H5( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R2_H5_ID() );\n horse.setNumber( 5 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 7 );\n // no stable\n horse.setWeight( 57.0 );\n horse.setDistance( 2200.0 );\n horse.setCareerProfit( 1745000.0 );\n horse.setPreviousYearProfit( 0.0 );\n horse.setVictoryProfit( 1050000.0 );\n horse.setPlaceProfit( 695000.0 );\n horse.setYearProfit( 1745000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"E.LEENDERS\" ) );\n horse.setOwner( owner( \"D.MCMILLAN\" ) );\n horse.setRancher( rancher( \"MR JAMES DONNARY\" ) );\n horse.setJockey( jockey( \"M.GUYON\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "2d3c78b0e6da36a45cd44a772a959fd0", "score": "0.55311984", "text": "@Test\n public void oneSpareTest() {\n bowlingGame.roll(4);\n bowlingGame.roll(6); // Spare\n bowlingGame.roll(5);\n\n // Put in 0 for the rest of the frames\n repeatedRolls(17, 0);\n\n // Calculation for the first frame: 4 + 6 + 5 = 15\n // Calculation for the second frame: 5 + 0 = 5\n // Calculation for the next 8 frames: 8 * 0 = 0\n // Total for the game : 15 + 5 + 0 = 20\n assertEquals(20, bowlingGame.score());\n }", "title": "" }, { "docid": "aa30581d042c3a166aaccb2607052609", "score": "0.5528414", "text": "public static void main(String[] args) {\n\t\t{\t\n\t\t// ### EXAMPLE: \n\t\tint initialNumberOfBirds = 4;\n\t\tint birdsThatFlewAway = 1;\n\t\tint remainingNumberOfBirds = initialNumberOfBirds - birdsThatFlewAway;\n\t\t}\n /* \n 2. There are 6 birds and 3 nests. How many more birds are there than\n nests? \n */\n\t\t{\n\t\t// ### EXAMPLE: \n\t\tint numberOfBirds = 6;\n\t\tint numberOfNests = 3;\n\t\tint numberOfExtraBirds = numberOfBirds - numberOfNests;\n\t\t}\n /* \n 3. 3 raccoons are playing in the woods. 2 go home to eat dinner. How\n many raccoons are left in the woods? \n */\n\t\t{\n\t\tint totalRacoons = 3;\n\t\tint racoonsThatGoToDinner = 2;\n\t\tint racoonsLeftInWoods = totalRacoons - racoonsThatGoToDinner;\n\t\tSystem.out.println(racoonsLeftInWoods);\n\t\t}\n /* \n 4. There are 5 flowers and 3 bees. How many less bees than flowers? \n \n */\n\t\t{ //I use the same variable names in different chunks, so these are to limit the scope.\n\t\t\n\t\tint numberOfFlowers = 5;\n\t\tint numberOfBees = 3;\n\t\tint lessBeesThanFLowers = numberOfFlowers - numberOfBees;\n\t\t\n\t\t}\n\t\t\n /* \n 5. 1 lonely pigeon was eating breadcrumbs. Another pigeon came to eat\n breadcrumbs, too. How many pigeons are eating breadcrumbs now? \n */\n\t\t{\n\t\tint pigeonsInitiallyEatingBreadCrumbs = 1;\n\t\tint pigeonsThatCameLater = 1;\n\t\tint pigeonsEatingNow = pigeonsInitiallyEatingBreadCrumbs + pigeonsThatCameLater;\n\t\t\n\t\t}\n /* \n 6. 3 owls were sitting on the fence. 2 more owls joined them. How many\n owls are on the fence now? \n */\n\n\t\t{\n\t\tint initialOwls = 3;\n\t\tint owlsJoined = 2;\n\t\tint owlsOnFence = initialOwls + owlsJoined;\n\t\t\n\t\t}\n\t\t\n /* \n 7. 2 beavers were working on their home. 1 went for a swim. How many\n beavers are still working on their home? \n */\n\t\t{\n\t\tint initialBeavers = 2;\n\t\tint beaversLeftForSwim = 1;\n\t\tint beaversLeftWorking = initialBeavers - beaversLeftForSwim;\n\t\t}\n /* \n 8. 2 toucans are sitting on a tree limb. 1 more toucan joins them. How\n many toucans in all? \n */\n\t\t{\n\t\tint initialToucans = 2;\n\t\tint toucansThatJoin = 1;\n\t\tint toucansInAll = initialToucans + toucansThatJoin;\n\t\t}\n /* \n 9. There are 4 squirrels in a tree with 2 nuts. How many more squirrels\n are there than nuts? \n */\n\t\t{\n\t\tint squirrelsInTree = 4;\n\t\tint nutsInTree = 2;\n\t\tint moreSquirrelsThanNuts = squirrelsInTree - nutsInTree;\t\n\t\t}\n /* \n 10. Mrs. Hilt found a quarter, 1 dime, and 2 nickels. How much money did\n she find? \n */\n\t\t{\n\t\tint quarter =1;\n\t\tint dime =1;\n\t\tint nickel =2;\n\t\tint money = quarter*(25) + dime*(10) + nickel*(5);\n\t\t}\n /* \n 11. Mrs. Hilt's favorite first grade classes are baking muffins. Mrs. Brier's\n class bakes 18 muffins, Mrs. MacAdams's class bakes 20 muffins, and\n Mrs. Flannery's class bakes 17 muffins. How many muffins does first\n grade bake in all? \n */\n\t\t{\n\t\tint muffinsFromBriersClass = 18;\n\t\tint muffinsFromMacAdamsClass = 20;\n\t\tint muffinsFromFlannerysClass = 17;\n\t\tint totalMuffins = muffinsFromBriersClass + muffinsFromMacAdamsClass + muffinsFromFlannerysClass;\n\t\t}\n\t\t\n\t\t\n /*\n 12. Mrs. Hilt bought a yoyo for 24 cents and a whistle for 14 cents. How\n much did she spend in all for the two toys?\n */\n\t\t{\n\t\tint priceYoyo = 24;\n\t\tint priceWhistle = 14;\n\t\tint priceTotal = priceYoyo + priceWhistle;\n\t\t}\n\t\t\n /*\n 13. Mrs. Hilt made 5 Rice Krispie Treats. She used 8 large marshmallows\n and 10 mini marshmallows.How many marshmallows did she use\n altogether?\n */\n\t\t{\n\t\tint largeMarshmallows = 8;\n\t\tint miniMarshmallows = 10;\n\t\tint totalMarshmallows = largeMarshmallows + miniMarshmallows;\n\t\t}\n\t\t\n\t\t\n /*\n 14. At Mrs. Hilt's house, there was 29 inches of snow, and Brecknock\n Elementary School received 17 inches of snow. How much more snow\n did Mrs. Hilt's house have?\n */\n\t\t{\n\t\tint inchesOfSnowHiltsHouse = 29;\n\t\tint inchesOfSnowBrecknock = 17;\n\t\t\n\t\tint moreSnowAtHiltsHouse = inchesOfSnowHiltsHouse - inchesOfSnowBrecknock;\n\t\t}\t\n\t\t\n /*\n 15. Mrs. Hilt has $10. She spends $3 on a toy truck and $2 on a pencil\n case. How much money does she have left?\n */\n\t\t{\n\t\tint initialMoney = 10;\n\t\tint truckPrice = 3;\n\t\tint pencilPrice = 2;\n\t\tint moneyLeft = initialMoney - truckPrice - pencilPrice;\n\t\t}\n /*\n 16. Josh had 16 marbles in his collection. He lost 7 marbles. How many\n marbles does he have now?\n */\n\t\t{\n\t\t\n\t\tint initialMarbles = 16;\n\t\tint lostMarbles = 7;\n\t\tint marblesLeft = initialMarbles - lostMarbles;\n\t\t\n\t\t}\n \n\t\t/*\n 17. Megan has 19 seashells. How many more seashells does she need to\n find to have 25 seashells in her collection?\n */\n\t\t{\n\t\tint initialSeashells = 19;\n\t\tint desiredNumberSeashells = 25;\n\t\tint moreSeashellsNeeded = desiredNumberSeashells - initialSeashells;\n\t\t}\n /*\n 18. Brad has 17 balloons. 8 balloons are red and the rest are green. How\n many green balloons does Brad have?\n */\n\t\t{\n\t\tint totallBalloons = 17;\n\t\tint redBalloons = 8;\n\t\tint greenBalloons = totallBalloons - redBalloons;\n\t\t}\n\t\t\n\t\t\n \n /*\n 19. There are 38 books on the shelf. Marta put 10 more books on the shelf.\n How many books are on the shelf now?\n */\n\t\t{\n\t\tint initialBooks = 38;\n\t\tint addedBooks = 10;\n\t\t}\n\t\t\n /*\n 20. A bee has 6 legs. How many legs do 8 bees have?\n */\n\t\t\n\t\t{\n\t\t\t\n\t\tint legsPerBee = 6;\n\t\tint numberOfBees = 8;\n\t\tint totalLegs = legsPerBee * numberOfBees;\n\t\t\n\t\t}\n\t\t\n /*\n 21. Mrs. Hilt bought an ice cream cone for 99 cents. How much would 2 ice\n cream cones cost?\n */\n \n\t\t{\n\t\tdouble priceIceCream = 0.99;\n\t\tdouble numberOfCones = 2;\n\t\tdouble totalCost = priceIceCream * numberOfCones;\n\t\t}\n\t\t\n /*\n 22. Mrs. Hilt wants to make a border around her garden. She needs 125\n rocks to complete the border. She has 64 rocks. How many more rocks\n does she need to complete the border?\n */\n\t\t{\n\t\tint initialRocks = 64;\n\t\tint numberOfRocksRequired = 125;\n\t\tint moreRocksNeeded = numberOfRocksRequired - initialRocks;\n\t\t}\n /*\n 23. Mrs. Hilt had 38 marbles. She lost 15 of them. How many marbles does\n she have left?\n */\n\t\t{\n\t\tint initialMarbles = 38;\n\t\tint lostMarbles = 15;\n\t\tint marblesLeft = initialMarbles - lostMarbles;\n\t\t}\n /*\n 24. Mrs. Hilt and her sister drove to a concert 78 miles away. They drove 32\n miles and then stopped for gas. How many miles did they have left to drive?\n */\n\t\t{\n\t\tint totalDistance = 78;\n\t\tint distanceBeforeStopping = 32;\n\t\tint milesLeftToDrive = totalDistance-distanceBeforeStopping;\n\t\t}\n\t\t\n /*\n 25. Mrs. Hilt spent 1 hour and 30 minutes shoveling snow on Saturday\n morning and 45 minutes shoveling snow on Saturday afternoon. How\n much total time did she spend shoveling snow?\n */\n \n\t\tint timeShovelingSaturdayMorning = 90;\n\t\tint timeShovelingSaturdayAfternoon = 45;\n\t\tint totalTimeShovelingSnow = timeShovelingSaturdayMorning + timeShovelingSaturdayAfternoon;\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n /* \n 26. Mrs. Hilt bought 6 hot dogs. Each hot dog cost 50 cents. How much\n money did she pay for all of the hot dogs?\n */\n\t\t{\n\t\tdouble priceHotDog = 0.50;\n\t\tdouble numberHotDogsPurchased = 6;\n\t\tdouble totalPrice = priceHotDog * numberHotDogsPurchased;\n\t\t}\n\t\t\n\t\t\n\t\t\n /*\n 27. Mrs. Hilt has 50 cents. A pencil costs 7 cents. How many pencils can\n she buy with the money she has?\n */\n\t\t{\n\t\tdouble initialMoney = 0.50;\n\t\tdouble pencilPrice = 0.07;\n\t\tdouble numberOfPencilsSheCanBuy = initialMoney / pencilPrice;\n\t\t}\n\t\t\n /* \n 28. Mrs. Hilt saw 33 butterflies. Some of the butterflies were red and others\n were orange. If 20 of the butterflies were orange, how many of them\n were red?\n */\n\t\t{\n\t\tint totalButterflies = 33;\n\t\tint orangeButterflies = 20;\n\t\tint redButterflies = totalButterflies - orangeButterflies;\n\t\t}\n\t\t\n /* \n 29. Kate gave the clerk $1.00. Her candy cost 54 cents. How much change\n should Kate get back?\n */\n\t\t{\n\t\tdouble total = 1.00;\n\t\tdouble costCandy = 0.54;\n\t\tdouble change = total - costCandy;\n\t\t}\n /*\n 30. Mark has 13 trees in his backyard. If he plants 12 more, how many trees\n will he have?\n */\n\t\t{\n\t\tint initialTrees = 13;\n\t\tint moreTreesPlanted = 12;\n\t\tint totalTrees = initialTrees + moreTreesPlanted;\n\t\t}\n\t\t\n /* \n 31. Joy will see her grandma in two days. How many hours until she sees\n her?\n */\n\t\t\n\t\tint daysTillSeesGrandma = 2;\n\t\tint hoursPerDay = 24;\n\t\tint totalHoursToSeeGrandma = daysTillSeesGrandma * hoursPerDay;\n\t\t\n\t\t\n \n /*\n 32. Kim has 4 cousins. She wants to give each one 5 pieces of gum. How\n much gum will she need?\n */\n \n\t\tint numberOfCousins = 4;\n\t\tint gumPerCousin = 5;\n\t\tint totalGum = numberOfCousins * gumPerCousin;\n\t\t\n\t\t\n /*\n 33. Dan has $3.00. He bought a candy bar for $1.00. How much money is\n left?\n */\n\t\t{\n\t\tdouble initialMoney = 3.00;\n\t\tdouble moneySpent = 1.00;\n\t\tdouble moneyLeft = initialMoney - moneySpent;\n\t\t}\n /*\n 34. 5 boats are in the lake. Each boat has 3 people. How many people are\n on boats in the lake?\n */\n \n\t\tint boatsOnLake = 5;\n\t\tint peoplePerBoat = 3;\n\t\tint totalPeopleInBoats = boatsOnLake * peoplePerBoat;\n\t\t\n /*\n 35. Ellen had 380 legos, but she lost 57 of them. How many legos does she\n have now?\n */\n \n\t\tlong initialLegos = 380;\n\t\tlong legosLost = 57;\n\t\tlong legosLeft = initialLegos - legosLost;\n\t\n /*\n 36. Arthur baked 35 muffins. How many more muffins does Arthur have to\n bake to have 83 muffins?\n */\n \n\t\tint muffinsDesired = 38;\n\t\tint initialMuffins = 35;\n\t\tint moreMuffinsRequired = muffinsDesired - initialMuffins;\n\t\t\n\t\t\n /*\n 37. Willy has 1400 crayons. Lucy has 290 crayons. How many more\n crayons does Willy have then Lucy?\n */\n \n\t\tint willysCrayons = 1400;\n\t\tint lucysCrayons = 290;\n\t\tint moreCrayonsWillyHasThanLucy = willysCrayons - lucysCrayons;\n\t\t\n\t\t\n /*\n 38. There are 10 stickers on a page. If you have 22 pages of stickers, how\n many stickers do you have?\n */\n \n\t\tint stickersPerPage = 10;\n\t\tint numberOfPages = 22;\n\t\tint totalStickers = stickersPerPage * numberOfPages;\n\t\t\n\t\t\n /*\n 39. There are 96 cupcakes for 8 children to share. How much will each\n person get if they share the cupcakes equally?\n */\n \n\t\tint totalCupcakes = 96;\n\t\tint totalChildren = 8;\n\t\tint cupcakesPerChildSharedEqually = totalCupcakes / totalChildren;\n\t\n\t\t\n /*\n 40. She made 47 gingerbread cookies which she will distribute equally in\n tiny glass jars. If each jar is to contain six cookies each, how many\n cookies will not be placed in a jar?\n */\n \n\t\tint totalGingerbreadCookies = 47;\n\t\tint cookiesPerJar = 6;\n\t\tdouble cookiesLeftOver = totalGingerbreadCookies % cookiesPerJar;\n\t\t\n\t\t\n /*\n 41. She also prepared 59 croissants which she plans to give to her 8\n neighbors. If each neighbor received and equal number of croissants,\n how many will be left with Marian?\n */\n \n\t\tint croissantsPrepared = 59;\n\t\tint numberOfNeighbors = 8;\n\t\tint leftOverCroissants = croissantsPrepared - (croissantsPrepared % numberOfNeighbors);\n\t\t\n\t\t\n /*\n 42. Marian also baked oatmeal cookies for her classmates. If she can\n place 12 cookies on a tray at a time, how many trays will she need to\n prepare 276 oatmeal cookies at a time?\n */\n\t\t\n\t\tint totalCookies = 276;\n\t\tint cookiesPerTray = 12;\n\t\tint traysNeeded = totalCookies / cookiesPerTray;\n\t\t\n\t\t\n\t\t\n\t\t\n /*\n 43. Marian’s friends were coming over that afternoon so she made 480\n bite-sized pretzels. If one serving is equal to 12 pretzels, how many\n servings of bite-sized pretzels was Marian able to prepare?\n */\n \n\t\tdouble pretzels = 480;\n\t\tdouble numberOfPretzelsInAServing = 12;\n\t\tdouble totalNumberOfServings = pretzels / numberOfPretzelsInAServing;\n\t\t\n\t\t\n /*\n 44. Lastly, she baked 53 lemon cupcakes for the children living in the city\n orphanage. If two lemon cupcakes were left at home, how many\n boxes with 3 lemon cupcakes each were given away?\n */\n \n\t\tint numberOfCakesBaked = 53;\n\t\tint numberOfCakesLeftHome = 2;\n\t\tint numberOfCakesPerBox=3;\n\t\tint numberOfFullBoxes = (numberOfCakesBaked - numberOfCakesLeftHome) / numberOfCakesPerBox;\n\t\t\n\t\t/* Note that since numberOfFullBoxes is an int, it will \"round down\" and concatenate off the end\" */\n\t\t\n\t\t\n /*\n 45. Susie's mom prepared 74 carrot sticks for breakfast. If the carrots\n were served equally to 12 people, how many carrot sticks were left\n uneaten?\n */\n \n\t\tdouble carrotSticksPrepared = 74;\n\t\tdouble numberOfPeopleEquallyServed = 12;\n\t\tdouble carrotSticksLeftOver = carrotSticksPrepared % numberOfPeopleEquallyServed;\t\n\t\t\n /*\n 46. Susie and her sister gathered all 98 of their teddy bears and placed\n them on the shelves in their bedroom. If every shelf can carry a\n maximum of 7 teddy bears, how many shelves will be filled?\n */\n\t\t\n\t\tint totalBears = 98;\n\t\tint bearsPerShelf = 7;\n\t\tint shelvesFilled = totalBears / bearsPerShelf;\t\n \n /*\n 47. Susie’s mother collected all family pictures and wanted to place all of\n them in an album. If an album can contain 20 pictures, how many\n albums will she need if there are 480 pictures?\n */\n \n\t\tint totalPictures = 480;\n\t\tint picturesPerAlbum = 20;\n\t\tint albumsNeeded = (int)Math.ceil( totalPictures / picturesPerAlbum );\n\t\t\n\t\t\n /*\n 48. Joe, Susie’s brother, collected all 94 trading cards scattered in his\n room and placed them in boxes. If a full box can hold a maximum of 8\n cards, how many boxes were filled and how many cards are there in\n the unfilled box?\n */\n\t\t\n\t\tint totalCards = 94;\n\t\tint cardsPerBox = 8;\n\t\tint boxesFilled = totalCards / cardsPerBox;\n\t\t/* It essentially rounds down since it cuts off everythig past the decimal point */\n\t\t\n\t\tint cardsInUnfilledBox = totalCards % cardsPerBox;\t\t\n \n /*\n 49. Susie’s father repaired the bookshelves in the reading room. If he has\n 210 books to be distributed equally on the 10 shelves he repaired,\n how many books will each shelf contain?\n */\n\n\t\tdouble totalBooks = 210;\n\t\tdouble totalShelves = 10;\n\t\tdouble booksPerShelf = totalBooks / totalShelves;\n\t\t\n\t\t\n /*\n 50. Cristina baked 17 croissants. If she planned to serve this equally to\n her seven guests, how many will each have?\n */\n\n\t\tint croissantsBaked = 17;\n\t\tint guests =7;\n\t\tint croissantsPerGuest = croissantsBaked / guests;\n\t\t\n\t\t\n\t\t\n /*\n CHALLENGE PROBLEMS\n */\n \n /*\n Bill and Jill are house painters. Bill can paint a 12 x 14 room in 2.15 hours, while Jill averages \n 1.90 hours. How long will it take the two painter working together to paint 5 12 x 14 rooms?\n Hint: Calculate the hourly rate for each painter, combine them, and then divide the total walls in feet by the combined hourly rate of the painters.\n Challenge: How many days will it take the pair to paint 623 rooms assuming they work 8 hours a day?.\n */\n\n\t\tdouble speedOfBill = ( (12*24)/2.15); //feet per hour\n\t\tdouble speedOfJill = ( (12*24)/1.9); //feet per hour\n\t\tdouble totalSpeed = speedOfBill + speedOfJill;\n\t\tdouble totalArea = 5*(12*14);\n\t\tdouble timeRequired = totalArea / totalSpeed;\n\t\tdouble daysToPaint623Rooms = (623*(12*14) / totalSpeed ) / 8;\n\t\t\n /*\n Create and assign variables to hold your first name, last name, and middle initial. Using concatenation,\n build an additional variable to hold your full name in the order of last name, first name, middle initial. The\n last and first names should be separated by a comma followed by a space, and the middle inital must end\n with a period.\n Example: \"Hopper, Grace B.\" \n */\n\n\t\tString firstName = \"Erik\";\n\t\tString lastName = \"Mueller\";\n\t\tString middleInitial = \"D\";\n\t\tString totalName = lastName + \", \" + firstName + \" \" + middleInitial + \".\";\n\t\t\n\t\tSystem.out.println(totalName);\n\t\t\n\t\t\n\t\t\n\t\t\n /*\n The distance between New York and Chicago is 800 miles, and the train has already travelled 537 miles. \n What percentage of the trip has been completed?\n Hint: The percent completed is the miles already travelled divided by the total miles.\n Challenge: Display as an integer value between 0 and 100 using casts.\n */\n \n\t\tdouble distanceNYandChicago = 800;\n\t\tdouble distanceAlreadyTravelled = 537;\n\t\tdouble percentage = distanceAlreadyTravelled / distanceNYandChicago;\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "4161c74720956f97c5fdf25b50307567", "score": "0.55252934", "text": "public static Horse builderHorse_R8_H6( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R8_H6_ID() );\n horse.setNumber( 6 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 13 );\n // no stable\n horse.setWeight( 57.0 );\n horse.setDistance( 1600.0 );\n horse.setCareerProfit( 365000.0 );\n horse.setPreviousYearProfit( 0.0 );\n horse.setVictoryProfit( 0.0 );\n horse.setPlaceProfit( 365000.0 );\n horse.setYearProfit( 365000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"F.HEAD (S)\" ) );\n horse.setOwner( owner( \"MME F.HEAD\" ) );\n horse.setRancher( rancher( \"MR IAN DENNIS FAIR\" ) );\n horse.setJockey( jockey( \"A.LEMAITRE\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "f0380c91823819b1ca81ced7e9bf1e93", "score": "0.5521648", "text": "public static Horse builderHorse_R8_H9( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R8_H9_ID() );\n horse.setNumber( 9 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 16 );\n // no stable\n horse.setWeight( 56.0 );\n horse.setDistance( 1600.0 );\n horse.setCareerProfit( 355000.0 );\n horse.setPreviousYearProfit( 0.0 );\n horse.setVictoryProfit( 0.0 );\n horse.setPlaceProfit( 355000.0 );\n horse.setYearProfit( 355000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"F.CHAPPET\" ) );\n horse.setOwner( owner( \"B.VAN DALFSEN\" ) );\n horse.setRancher( rancher( \"MR BEREND VAN DALFSEN\" ) );\n horse.setJockey( jockey( \"T.PICCONE\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "ad1b51d303ade18a99e9b72c66379bf8", "score": "0.552136", "text": "public static void main(String[] args) {\n\t\tScanner keyboard = new Scanner(System.in);\n\t\tint[] numbers= new int [10];\n\t\tRandom rnd = new Random ();\n\t\t\n\t\tnumbers [0] = 3;\n\t\tnumbers [1] = 4;\n\t\tnumbers [2] = 2;\n\t\tnumbers [3] = 5;\n\t\tnumbers [4] = 4;\n\t\tnumbers [5] = 10;\n\t\tnumbers [6] = 4;\n\t\tnumbers [7] = 30;\n\t\tnumbers [8] = 23;\n\t\tnumbers [9] = 17;\n\t\t\n\t\tfor(int i = 0;i<numbers.length; i++)\n\t\t{\n\t\t\tSystem.out.println(\" The index of \" + i + \" is \" + numbers[i]);\n\t\t\tSystem.out.println(\"\");\n\t\t\n\t\t}\n\n\t\tSystem.out.println(\" Welcome to the 2019 Nicolympics !!!\");\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\" Description: Long time ago in Rome, brave warriors used to be in charge of the kitchen.\");\n\t\tSystem.out.println(\" In this game you will have 10 minutes per inning to cook, the team who makes more pancakes wins!!!\");\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\" Shortly, the user will select the amount of innings, the chefs might get tired... \");\n\t\tSystem.out.println(\"\");\n\t\t\n\t\tint arraySize = 0;\n\t\tSystem.out.println(\"How many innings would you like to play ? \");\n\t\tarraySize = keyboard.nextInt();\n\t\tint[] innings = new int [arraySize];\n\t\tint totalteama = 0; \n\t\tint totalteamb = 0; \n\t\t\n\t\tfor(int i = 0; i <arraySize; i++)\n\t\t{\n\t\t\tinnings [i] = rnd.nextInt(101);\n\t\t\tSystem.out.println(\" Team A Pancakes made during inning \" + i + \" are \"+ innings[i]);\n\t\t\ttotalteama = totalteama + innings [i];\n\t\t\t\n\t\t\tinnings [i] = rnd.nextInt(101);\n\t\t\tSystem.out.println(\" Team B Pancakes made during inning \" + i + \" are \"+ innings[i]);\n\t\t\ttotalteamb = totalteamb + innings [i];\n\t\t}\n\t\t\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\" Team A total points issued: \" + totalteama);\n\t\tSystem.out.println(\" Team B total points issued: \" + totalteamb);\n\t\tSystem.out.println(\"\");\n\n\t\tif (totalteama < totalteamb) \n \t\t System.out.println(\" Team B won!!\");\n \t else \n \t\tif (totalteamb < totalteama) \n \t\t System.out.println(\" Team A won!! \");\n\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "670bb5e614b824fe8530be50062e5a0b", "score": "0.5521009", "text": "int getBeams();", "title": "" }, { "docid": "0137a1fef14f1196853988218fcfd17d", "score": "0.55143183", "text": "public static Horse builderHorse_R8_H3( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R8_H3_ID() );\n horse.setNumber( 3 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 1 );\n // no stable\n horse.setWeight( 59.0 );\n horse.setDistance( 1600.0 );\n horse.setCareerProfit( 360000.0 );\n horse.setPreviousYearProfit( 0.0 );\n horse.setVictoryProfit( 0.0 );\n horse.setPlaceProfit( 360000.0 );\n horse.setYearProfit( 360000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"D.SMAGA\" ) );\n horse.setOwner( owner( \"AM.HADDAD\" ) );\n horse.setRancher( rancher( \"MME MARIE-BENEDICTE FOUGY\" ) );\n horse.setJockey( jockey( \"G.BENOIST\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "cb761f2648786250db968cd7053361f6", "score": "0.5503011", "text": "public static Horse builderHorse_R8_H7( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R8_H7_ID() );\n horse.setNumber( 7 );\n horse.setRunner( false );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 3 );\n // no stable\n horse.setWeight( 56.0 );\n horse.setDistance( 1600.0 );\n horse.setCareerProfit( 1195000.0 );\n horse.setPreviousYearProfit( 280000.0 );\n horse.setVictoryProfit( 0.0 );\n horse.setPlaceProfit( 1195000.0 );\n horse.setYearProfit( 915000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"A&G.BOTTI (S)\" ) );\n horse.setOwner( owner( \"R.NG\" ) );\n horse.setRancher( rancher( \"MR GUY HEALD\" ) );\n horse.setJockey( jockey( \"C.DEMURO\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "61f2ec2d35a05315d48ea95fdb4578da", "score": "0.55016744", "text": "public static Horse builderHorse_R8_H10( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R8_H10_ID() );\n horse.setNumber( 10 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 12 );\n // no stable\n horse.setWeight( 56.0 );\n horse.setDistance( 1600.0 );\n horse.setCareerProfit( 330000.0 );\n horse.setPreviousYearProfit( 100000.0 );\n horse.setVictoryProfit( 0.0 );\n horse.setPlaceProfit( 330000.0 );\n horse.setYearProfit( 230000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"Y.FOUIN (S)\" ) );\n horse.setOwner( owner( \"Y.Y.FOUIN (S)\" ) );\n horse.setRancher( rancher( \"MLLE DELPHINE DELACROIX\" ) );\n horse.setJockey( jockey( \"S.PASQUIER\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "947eef7893ea0f6f46116b8d211c1add", "score": "0.55003595", "text": "public static Horse builderHorse_R5_H9( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R5_H9_ID() );\n horse.setNumber( 9 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 2 );\n // no stable\n horse.setWeight( 56.0 );\n horse.setDistance( 1800.0 );\n horse.setCareerProfit( 954500.0 );\n horse.setPreviousYearProfit( 115400.0 );\n horse.setVictoryProfit( 623000.0 );\n horse.setPlaceProfit( 331500.0 );\n horse.setYearProfit( 839100.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"MME J.F..HUGHES\" ) );\n horse.setOwner( owner( \"MME C.REGALADO-GONZALEZ\" ) );\n horse.setRancher( rancher( \"MME CHANTAL REGALADO-GONZALEZ\" ) );\n horse.setJockey( jockey( \"D.COSTELLO\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "4f0330b56ec66917626cea1557c42434", "score": "0.54973197", "text": "public static Horse builderHorse_R2_H7( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R2_H7_ID() );\n horse.setNumber( 7 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 5 );\n // no stable\n horse.setWeight( 55.5 );\n horse.setDistance( 2200.0 );\n horse.setCareerProfit( 1930000.0 );\n horse.setPreviousYearProfit( 1930000.0 );\n horse.setVictoryProfit( 1250000.0 );\n horse.setPlaceProfit( 680000.0 );\n horse.setYearProfit( 0.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"F.HEAD (S)\" ) );\n horse.setOwner( owner( \"CHEIK ABK .AL THANI\" ) );\n horse.setRancher( rancher( \"RAZZA PALLORSI SNC\" ) );\n horse.setJockey( jockey( \"O.PESLIER\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "1f2253b0f4b8428dad58ea0b6612a230", "score": "0.5483503", "text": "public static void main(String[] args) {\n\t\t\n\t\tList<Horse> horses = new ArrayList<>();\n\t\tfor(int i = 1; i <= 10; i++) {\n\t\t\thorses.add(new Horse(i+\"번말\"));\n\t\t}\n/*\t\tHorse[] horses = new Horse[] {\n\t\t\t\tnew Horse(\"1번말\"), new Horse(\"2번말\"), new Horse(\"3번말\"), new Horse(\"4번말\"), new Horse(\"5번말\"),\n\t\t\t\tnew Horse(\"6번말\"), new Horse(\"7번말\"), new Horse(\"8번말\"), new Horse(\"9번말\"), new Horse(\"10번말\")\n\t\t};\n*/\t\t\n\t\tList<HorseRacingThread> hrts = new ArrayList<HorseRacingThread>();\n\t\tfor(int i = 0; i < horses.size(); i++) {\n\t\t\thrts.add(new HorseRacingThread(horses.get(i)));\n\t\t}\n\t\t\n\t\t/*\n\t\tHorseRacingThread[] hrts = new HorseRacingThread[10];\n\t\tfor(int i = 0; i < horses.length; i++) {\n\t\t\thrts[i] = new HorseRacingThread(horses[i]);\n\t\t}\n\t\t*/\n\n\t\tfor(HorseRacingThread hrt : hrts) {\n\t\t\t\n\t\t\thrt.start();\n\t\t\t\n\t\t}\n\t\t\n\t\tfor(HorseRacingThread hrt : hrts) {\n\t\t\t\n\t\t\ttry {\n\t\t\t\thrt.join();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tCollections.sort(horses); // horses를 등수순으로 정렬\n\t\tfor(Horse hr : horses) {\n\t\t\tSystem.out.println(\"Main 실행 : \" + hr.getName() + \" => \" + hr.getRank() + \"등\");\n\t\t}\n\t}", "title": "" }, { "docid": "fca279ec2c6917ca28cbb2cadd787226", "score": "0.5472325", "text": "public static Horse builderHorse_R4_H2( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R4_H2_ID() );\n horse.setNumber( 2 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 13 );\n // no stable\n horse.setWeight( 59.5 );\n horse.setDistance( 2200.0 );\n horse.setCareerProfit( 336600.0 );\n horse.setPreviousYearProfit( 0.0 );\n horse.setVictoryProfit( 255000.0 );\n horse.setPlaceProfit( 81600.0 );\n horse.setYearProfit( 336600.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.AUSTRALIAN );\n horse.setTrainer( trainer( \"G.BIETOLINI\" ) );\n horse.setOwner( owner( \"F.FRATINI\" ) );\n horse.setRancher( rancher( \"CASTLEMARTIN STUD\" ) );\n horse.setJockey( jockey( \"J.MARCIALIS\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "e228ba2c5961608d15fa3a0cebcb0ef7", "score": "0.5472009", "text": "@Test\n public void test2() throws HSException {\n\n BruteForceSearchAI ai0 = BruteForceSearchAI.buildStandardAI1();\n List<HearthActionBoardPair> ab = ai0.playTurn(0, board.data_);\n BoardModel resBoard0 = ab.get(ab.size() - 1).board;\n PlayerModel currentPlayer = resBoard0.modelForSide(PlayerSide.CURRENT_PLAYER);\n PlayerModel waitingPlayer = resBoard0.modelForSide(PlayerSide.WAITING_PLAYER);\n\n assertEquals(resBoard0.getCurrentPlayer().getHand().size(), 0);\n assertEquals(currentPlayer.getNumMinions(), 3);\n assertEquals(waitingPlayer.getNumMinions(), 0);\n assertEquals(resBoard0.getCurrentPlayer().getMana(), 7);\n assertEquals(resBoard0.getWaitingPlayer().getMana(), 8);\n assertEquals(resBoard0.getCurrentPlayer().getHero().getHealth(), 30);\n assertEquals(resBoard0.getWaitingPlayer().getHero().getHealth(), 28);\n assertEquals(currentPlayer.getCharacter(CharacterIndex.MINION_1).getTotalHealth(), 1);\n assertEquals(currentPlayer.getCharacter(CharacterIndex.MINION_2).getTotalHealth(), 2);\n assertEquals(currentPlayer.getCharacter(CharacterIndex.MINION_3).getTotalHealth(), 5);\n\n assertEquals(currentPlayer.getCharacter(CharacterIndex.MINION_1).getTotalAttack(), 3);\n assertEquals(currentPlayer.getCharacter(CharacterIndex.MINION_2).getTotalAttack(), 2);\n assertEquals(currentPlayer.getCharacter(CharacterIndex.MINION_3).getTotalAttack(), 7);\n\n int origHealthMinion1 = 2;\n int origHealthMinion2 = 5;\n\n BoardModel resBoard1 = Game.endTurn(resBoard0);\n currentPlayer = resBoard1.modelForSide(PlayerSide.CURRENT_PLAYER);\n\n log.info(\"Raid Leader Health = \" + currentPlayer.getCharacter(CharacterIndex.MINION_2).getHealth());\n log.info(\"Boulderfist Ogre Health = \" + currentPlayer.getCharacter(CharacterIndex.MINION_3).getHealth());\n\n assertTrue((currentPlayer.getCharacter(CharacterIndex.MINION_2).getHealth() != origHealthMinion1)\n ^ (currentPlayer.getCharacter(CharacterIndex.MINION_3).getHealth() != origHealthMinion2));\n }", "title": "" }, { "docid": "74231123f57664ee22ed93a3d005f786", "score": "0.54690486", "text": "public static Race builderRace_R3( Meeting meeting ) {\n\n Race race = new Race();\n\n race.setMeeting( meeting );\n race.setNumber( 3 );\n race.setName( \"PRIX ECOLE BLONDEAU (PRIX DE LA COTE FLEURIE)\" );\n race.setStatus( RaceStatus.FINISHED );\n race.setStart( parse( \"13/08/2015 13:50:00 +0200\" ) );\n // no real start\n race.setDistance( 2400.0 );\n race.setBenefit( 60000.0 );\n race.setDiscipline( Discipline.PLAT );\n race.setTypes( EnumSet.of( Type.HANDICAP ) );\n\n // -- horses --\n TreeSet<Horse> horses = new TreeSet<>();\n horses.add( builderHorse_R3_H1( race ) );\n horses.add( builderHorse_R3_H2( race ) );\n horses.add( builderHorse_R3_H3( race ) );\n horses.add( builderHorse_R3_H4( race ) );\n horses.add( builderHorse_R3_H5( race ) );\n horses.add( builderHorse_R3_H6( race ) );\n horses.add( builderHorse_R3_H7( race ) );\n horses.add( builderHorse_R3_H8( race ) );\n horses.add( builderHorse_R3_H9( race ) );\n horses.add( builderHorse_R3_H10( race ) );\n horses.add( builderHorse_R3_H11( race ) );\n horses.add( builderHorse_R3_H12( race ) );\n horses.add( builderHorse_R3_H13( race ) );\n horses.add( builderHorse_R3_H14( race ) );\n horses.add( builderHorse_R3_H15( race ) );\n horses.add( builderHorse_R3_H16( race ) );\n horses.add( builderHorse_R3_H17( race ) );\n horses.add( builderHorse_R3_H18( race ) );\n race.setHorses( horses );\n\n // -- bets --\n race.setBets( EnumSet.of(\n BetType.SIMPLE_GAGNANT,\n BetType.SIMPLE_PLACE,\n BetType.COUPLE_ORDRE,\n BetType.COUPLE_GAGNANT,\n BetType.COUPLE_PLACE,\n BetType.TRIO,\n BetType.DEUX_SUR_QUATRE,\n BetType.MULTI_EN_QUATRE,\n BetType.MULTI_EN_CINQ,\n BetType.MULTI_EN_SIX,\n BetType.MULTI_EN_SEPT,\n BetType.TIERCE,\n BetType.QUARTE,\n BetType.QUINTE ) );\n\n // -- odds --\n TreeSet<Odds> oddsSet = new TreeSet<Odds>();\n oddsSet.add( builderOdds_R3_O1( race ) );\n oddsSet.add( builderOdds_R3_O2( race ) );\n race.setOdds( oddsSet );\n\n // no duration\n\n // -- finish --\n TreeSet<Place> places = new TreeSet<Place>();\n places.add( place( race, 1, 1 ) );\n places.add( place( race, 2, 5, \"COURTE_ENCOLURE\" ) );\n places.add( place( race, 3, 8, \"UNE_LONGUEUR\" ) );\n places.add( place( race, 4, 4, \"UNE_LONGUEUR_ET_DEMIE\" ) );\n places.add( place( race, 5, 13, \"COURTE_ENCOLURE\" ) );\n places.add( place( race, 6, 10, \"COURTE_ENCOLURE\" ) );\n places.add( place( race, 7, 16, \"UNE_LONGUEUR\" ) );\n places.add( place( race, 8, 18, \"UNE_LONGUEUR_ET_DEMIE\" ) );\n places.add( place( race, 9, 14, \"UNE_LONGUEUR\" ) );\n places.add( place( race, 10, 2, \"ENCOLURE\" ) );\n places.add( place( race, 11, 15, \"UNE_LONGUEUR_TROIS_QUARTS\" ) );\n places.add( place( race, 12, 3, \"UNE_LONGUEUR_TROIS_QUARTS\" ) );\n places.add( place( race, 13, 9, \"UNE_LONGUEUR_ET_DEMIE\" ) );\n places.add( place( race, 14, 12, \"QUATRE_LONGUEURS\" ) );\n places.add( place( race, 15, 6, \"DEUX_LONGUEURS\" ) );\n places.add( place( race, 16, 7, \"DEUX_LONGUEURS_ET_DEMIE\" ) );\n places.add( place( race, 17, 11, \"ENCOLURE\" ) );\n race.setPlaces( places );\n\n // no stopped\n // no disqualified\n // no fallen\n\n // -- prices --\n TreeSet<Price> prices = new TreeSet<>();\n prices.add( price( race, BetType.SIMPLE_GAGNANT, PriceName.DIRECT, 10.3, \"1\" ) );\n prices.add( price( race, BetType.SIMPLE_PLACE, PriceName.DIRECT, 4.2, \"1\" ) );\n prices.add( price( race, BetType.SIMPLE_PLACE, PriceName.DIRECT, 3.2, \"5\" ) );\n prices.add( price( race, BetType.SIMPLE_PLACE, PriceName.DIRECT, 13.2, \"8\" ) );\n prices.add( price( race, BetType.COUPLE_ORDRE, PriceName.DIRECT, 0.0, \"1\" ) );\n prices.add( price( race, BetType.COUPLE_ORDRE, PriceName.DIRECT, 52.4, \"1 5\" ) );\n prices.add( price( race, BetType.COUPLE_GAGNANT, PriceName.DIRECT, 0.0, \"1\" ) );\n prices.add( price( race, BetType.COUPLE_GAGNANT, PriceName.DIRECT, 31.4, \"1 5\" ) );\n prices.add( price( race, BetType.COUPLE_PLACE, PriceName.DIRECT, 0.0, \"1\" ) );\n prices.add( price( race, BetType.COUPLE_PLACE, PriceName.DIRECT, 14.6, \"1 5\" ) );\n prices.add( price( race, BetType.COUPLE_PLACE, PriceName.DIRECT, 81.6, \"1 8\" ) );\n prices.add( price( race, BetType.COUPLE_PLACE, PriceName.DIRECT, 0.0, \"5\" ) );\n prices.add( price( race, BetType.COUPLE_PLACE, PriceName.DIRECT, 59.8, \"5 8\" ) );\n prices.add( price( race, BetType.COUPLE_PLACE, PriceName.DIRECT, 0.0, \"8\" ) );\n prices.add( price( race, BetType.TRIO, PriceName.DIRECT, 0.0, \"1 5\" ) );\n prices.add( price( race, BetType.TRIO, PriceName.DIRECT, 599.1, \"1 5 8\" ) );\n prices.add( price( race, BetType.DEUX_SUR_QUATRE, PriceName.DIRECT, 5.9, \"1 4\" ) );\n prices.add( price( race, BetType.DEUX_SUR_QUATRE, PriceName.DIRECT, 5.9, \"1 5\" ) );\n prices.add( price( race, BetType.DEUX_SUR_QUATRE, PriceName.DIRECT, 5.9, \"1 8\" ) );\n prices.add( price( race, BetType.DEUX_SUR_QUATRE, PriceName.DIRECT, 5.9, \"5 4\" ) );\n prices.add( price( race, BetType.DEUX_SUR_QUATRE, PriceName.DIRECT, 5.9, \"5 8\" ) );\n prices.add( price( race, BetType.DEUX_SUR_QUATRE, PriceName.DIRECT, 5.9, \"8 4\" ) );\n prices.add( price( race, BetType.MULTI_EN_QUATRE, PriceName.DIRECT, 861.0, \"1 5 8 4\" ) );\n prices.add( price( race, BetType.MULTI_EN_CINQ, PriceName.DIRECT, 172.2, \"1 5 8 4\" ) );\n prices.add( price( race, BetType.MULTI_EN_SIX, PriceName.DIRECT, 57.4, \"1 5 8 4\" ) );\n prices.add( price( race, BetType.MULTI_EN_SEPT, PriceName.DIRECT, 24.6, \"1 5 8 4\" ) );\n prices.add( price( race, BetType.TIERCE, PriceName.DIRECT, 0.0, \"1 5\" ) );\n prices.add( price( race, BetType.TIERCE, PriceName.DIRECT, 191.1, \"1 5 8\" ) );\n prices.add( price( race, BetType.TIERCE, PriceName.ORDRE, 955.5, \"1 5 8\" ) );\n prices.add( price( race, BetType.QUARTE, PriceName.DIRECT, 232.8, \"1 5 8 4\" ) );\n prices.add( price( race, BetType.QUARTE, PriceName.ORDRE, 3160.6, \"1 5 8 4\" ) );\n prices.add( price( race, BetType.QUARTE, PriceName.BONUS_3, 58.2, \"1 5 8\" ) );\n prices.add( price( race, BetType.QUINTE, PriceName.DIRECT, 671.5, \"1 5 8 4 13\" ) );\n prices.add( price( race, BetType.QUINTE, PriceName.ORDRE, 45848.7, \"1 5 8 4 13\" ) );\n prices.add( price( race, BetType.QUINTE, PriceName.BONUS_3, 14.4, \"1 5 8\" ) );\n prices.add( price( race, BetType.QUINTE, PriceName.BONUS_4, 43.2, \"1 5 8 4\" ) );\n prices.add( price( race, BetType.QUINTE, PriceName.BONUS_4_SUR_5, 21.6, \"1 5 4 13\" ) );\n prices.add( price( race, BetType.QUINTE, PriceName.BONUS_4_SUR_5, 21.6, \"1 5 8 13\" ) );\n prices.add( price( race, BetType.QUINTE, PriceName.BONUS_4_SUR_5, 21.6, \"1 8 4 13\" ) );\n prices.add( price( race, BetType.QUINTE, PriceName.BONUS_4_SUR_5, 21.6, \"5 8 4 13\" ) );\n race.setPrices( prices );\n\n return race;\n\n }", "title": "" }, { "docid": "dfc07ea0a28e4e0be837b20756b12bc8", "score": "0.5463397", "text": "public static Horse builderHorse_R8_H16( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R8_H16_ID() );\n horse.setNumber( 16 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 7 );\n // no stable\n horse.setWeight( 53.5 );\n horse.setDistance( 1600.0 );\n horse.setCareerProfit( 60000.0 );\n horse.setPreviousYearProfit( 0.0 );\n horse.setVictoryProfit( 0.0 );\n horse.setPlaceProfit( 60000.0 );\n horse.setYearProfit( 60000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"MME P.BUTEL\" ) );\n horse.setOwner( owner( \"MME P.BUTEL\" ) );\n horse.setRancher( rancher( \"MR PASCAL NOUE\" ) );\n horse.setJockey( jockey( \"R.MARCHELLI\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "b942e5285aa08c7f49af2b5e87e620a4", "score": "0.5463021", "text": "public static Horse builderHorse_R8_H11( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R8_H11_ID() );\n horse.setNumber( 11 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 5 );\n // no stable\n horse.setWeight( 55.5 );\n horse.setDistance( 1600.0 );\n horse.setCareerProfit( 125000.0 );\n horse.setPreviousYearProfit( 0.0 );\n horse.setVictoryProfit( 0.0 );\n horse.setPlaceProfit( 125000.0 );\n horse.setYearProfit( 125000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"N.CAULLERY\" ) );\n horse.setOwner( owner( \"MME P.DESCARGUES\" ) );\n horse.setRancher( rancher( \"MR ARNAUD COURSIN\" ) );\n horse.setJockey( jockey( \"A.HAMELIN\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "ea9999aa14dffe5f67757b819175db79", "score": "0.54590803", "text": "public static Horse builderHorse_R5_H4( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R5_H4_ID() );\n horse.setNumber( 4 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 11 );\n // no stable\n horse.setWeight( 56.0 );\n horse.setDistance( 1800.0 );\n horse.setCareerProfit( 3350000.0 );\n horse.setPreviousYearProfit( 2070000.0 );\n horse.setVictoryProfit( 0.0 );\n horse.setPlaceProfit( 3350000.0 );\n horse.setYearProfit( 1280000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"A.ROYER DUPRE DE\" ) );\n horse.setOwner( owner( \"ECURIE DES MONCEAUX\" ) );\n horse.setRancher( rancher( \"LEMZAR SARL\" ) );\n horse.setJockey( jockey( \"C.SOUMILLON\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "8badec64ace9bbdc99345c22ad4f53de", "score": "0.54558045", "text": "public static Horse builderHorse_R5_H2( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R5_H2_ID() );\n horse.setNumber( 2 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( true );\n horse.setStall( 6 );\n // no stable\n horse.setWeight( 56.0 );\n horse.setDistance( 1800.0 );\n horse.setCareerProfit( 6314000.0 );\n horse.setPreviousYearProfit( 2720000.0 );\n horse.setVictoryProfit( 2050000.0 );\n horse.setPlaceProfit( 4264000.0 );\n horse.setYearProfit( 3594000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.WITH );\n horse.setTrainer( trainer( \"CH.GOURDAIN (S)\" ) );\n horse.setOwner( owner( \"J.BERES\" ) );\n horse.setRancher( rancher( \"MARQUISE DE MORATALLA\" ) );\n horse.setJockey( jockey( \"O.PESLIER\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "9b9fe3607da477bbb77f5df17fa24960", "score": "0.5455568", "text": "public static Race builderRace_R7( Meeting meeting ) {\n\n Race race = new Race();\n\n race.setMeeting( meeting );\n race.setNumber( 7 );\n race.setName( \"PRIX DON DU SANG (PRIX DES AUBEPINES)\" );\n race.setStatus( RaceStatus.FINISHED );\n race.setStart( parse( \"13/08/2015 15:55:00 +0200\" ) );\n // no real start\n race.setDistance( 1600.0 );\n race.setBenefit( 19000.0 );\n race.setDiscipline( Discipline.PLAT );\n race.setTypes( EnumSet.of( Type.RECLAMER ) );\n\n // -- horses --\n TreeSet<Horse> horses = new TreeSet<>();\n horses.add( builderHorse_R7_H1( race ) );\n horses.add( builderHorse_R7_H2( race ) );\n horses.add( builderHorse_R7_H3( race ) );\n horses.add( builderHorse_R7_H4( race ) );\n horses.add( builderHorse_R7_H5( race ) );\n horses.add( builderHorse_R7_H6( race ) );\n horses.add( builderHorse_R7_H7( race ) );\n horses.add( builderHorse_R7_H8( race ) );\n horses.add( builderHorse_R7_H9( race ) );\n horses.add( builderHorse_R7_H10( race ) );\n horses.add( builderHorse_R7_H11( race ) );\n horses.add( builderHorse_R7_H12( race ) );\n horses.add( builderHorse_R7_H13( race ) );\n horses.add( builderHorse_R7_H14( race ) );\n horses.add( builderHorse_R7_H15( race ) );\n horses.add( builderHorse_R7_H16( race ) );\n horses.add( builderHorse_R7_H17( race ) );\n race.setHorses( horses );\n\n // -- bets --\n race.setBets( EnumSet.of(\n BetType.SIMPLE_GAGNANT,\n BetType.SIMPLE_PLACE,\n BetType.COUPLE_ORDRE,\n BetType.COUPLE_GAGNANT,\n BetType.COUPLE_PLACE,\n BetType.TRIO,\n BetType.DEUX_SUR_QUATRE,\n BetType.MULTI_EN_QUATRE,\n BetType.MULTI_EN_CINQ,\n BetType.MULTI_EN_SIX,\n BetType.MULTI_EN_SEPT ) );\n\n // -- odds --\n TreeSet<Odds> oddsSet = new TreeSet<Odds>();\n oddsSet.add( builderOdds_R7_O1( race ) );\n oddsSet.add( builderOdds_R7_O2( race ) );\n race.setOdds( oddsSet );\n\n // no duration\n\n // -- finish --\n TreeSet<Place> places = new TreeSet<Place>();\n places.add( place( race, 1, 2 ) );\n places.add( place( race, 2, 7, \"DEMI_LONGUEUR\" ) );\n places.add( place( race, 3, 17, \"UNE_LONGUEUR_ET_QUART\" ) );\n places.add( place( race, 4, 6, \"UNE_LONGUEUR_ET_DEMIE\" ) );\n places.add( place( race, 5, 10, \"UNE_LONGUEUR_ET_DEMIE\" ) );\n places.add( place( race, 6, 8, \"UNE_LONGUEUR_ET_QUART\" ) );\n places.add( place( race, 7, 5, \"COURTE_TETE\" ) );\n places.add( place( race, 8, 12, \"DEMI_LONGUEUR\" ) );\n places.add( place( race, 9, 4, \"TROIS_LONGUEURS\" ) );\n places.add( place( race, 10, 1, \"TROIS_LONGUEURS\" ) );\n places.add( place( race, 11, 16, \"ENCOLURE\" ) );\n places.add( place( race, 12, 13, \"UN_NEZ\" ) );\n places.add( place( race, 13, 11, \"UNE_LONGUEUR\" ) );\n places.add( place( race, 14, 14, \"COURTE_ENCOLURE\" ) );\n places.add( place( race, 15, 3, \"NEUF_LONGUEURS\" ) );\n places.add( place( race, 16, 9, \"DIX_LONGUEURS\" ) );\n race.setPlaces( places );\n\n // no stopped\n // no disqualified\n // no fallen\n\n // -- prices --\n TreeSet<Price> prices = new TreeSet<>();\n prices.add( price( race, BetType.SIMPLE_GAGNANT, PriceName.DIRECT, 6.2, \"2\" ) );\n prices.add( price( race, BetType.SIMPLE_GAGNANT, PriceName.DIRECT, 6.2, \"3\" ) );\n prices.add( price( race, BetType.SIMPLE_PLACE, PriceName.DIRECT, 4.7, \"17\" ) );\n prices.add( price( race, BetType.SIMPLE_PLACE, PriceName.DIRECT, 2.5, \"2\" ) );\n prices.add( price( race, BetType.SIMPLE_PLACE, PriceName.DIRECT, 1.8, \"7\" ) );\n prices.add( price( race, BetType.COUPLE_ORDRE, PriceName.DIRECT, 0.0, \"2\" ) );\n prices.add( price( race, BetType.COUPLE_ORDRE, PriceName.DIRECT, 29.6, \"2 7\" ) );\n prices.add( price( race, BetType.COUPLE_GAGNANT, PriceName.DIRECT, 6.2, \"2\" ) );\n prices.add( price( race, BetType.COUPLE_GAGNANT, PriceName.DIRECT, 12.0, \"2 7\" ) );\n prices.add( price( race, BetType.COUPLE_PLACE, PriceName.DIRECT, 4.7, \"17\" ) );\n prices.add( price( race, BetType.COUPLE_PLACE, PriceName.DIRECT, 2.5, \"2\" ) );\n prices.add( price( race, BetType.COUPLE_PLACE, PriceName.DIRECT, 26.1, \"2 17\" ) );\n prices.add( price( race, BetType.COUPLE_PLACE, PriceName.DIRECT, 5.3, \"2 7\" ) );\n prices.add( price( race, BetType.COUPLE_PLACE, PriceName.DIRECT, 1.8, \"7\" ) );\n prices.add( price( race, BetType.COUPLE_PLACE, PriceName.DIRECT, 12.0, \"7 17\" ) );\n prices.add( price( race, BetType.TRIO, PriceName.DIRECT, 0.0, \"2 7\" ) );\n prices.add( price( race, BetType.TRIO, PriceName.DIRECT, 104.8, \"2 7 17\" ) );\n prices.add( price( race, BetType.DEUX_SUR_QUATRE, PriceName.DIRECT, 1.1, \"17\" ) );\n prices.add( price( race, BetType.DEUX_SUR_QUATRE, PriceName.DIRECT, 3.4, \"17 6\" ) );\n prices.add( price( race, BetType.DEUX_SUR_QUATRE, PriceName.DIRECT, 1.1, \"2\" ) );\n prices.add( price( race, BetType.DEUX_SUR_QUATRE, PriceName.DIRECT, 3.4, \"2 17\" ) );\n prices.add( price( race, BetType.DEUX_SUR_QUATRE, PriceName.DIRECT, 3.4, \"2 6\" ) );\n prices.add( price( race, BetType.DEUX_SUR_QUATRE, PriceName.DIRECT, 3.4, \"2 7\" ) );\n prices.add( price( race, BetType.DEUX_SUR_QUATRE, PriceName.DIRECT, 1.1, \"6\" ) );\n prices.add( price( race, BetType.DEUX_SUR_QUATRE, PriceName.DIRECT, 1.1, \"7\" ) );\n prices.add( price( race, BetType.DEUX_SUR_QUATRE, PriceName.DIRECT, 3.4, \"7 17\" ) );\n prices.add( price( race, BetType.DEUX_SUR_QUATRE, PriceName.DIRECT, 3.4, \"7 6\" ) );\n prices.add( price( race, BetType.MULTI_EN_QUATRE, PriceName.DIRECT, 199.5, \"2 7 17 6\" ) );\n prices.add( price( race, BetType.MULTI_EN_CINQ, PriceName.DIRECT, 39.9, \"2 7 17 6\" ) );\n prices.add( price( race, BetType.MULTI_EN_SIX, PriceName.DIRECT, 13.3, \"2 7 17 6\" ) );\n prices.add( price( race, BetType.MULTI_EN_SEPT, PriceName.DIRECT, 5.7, \"2 7 17 6\" ) );\n race.setPrices( prices );\n\n return race;\n\n }", "title": "" }, { "docid": "2b43edfc165331474414efcd7570e3ff", "score": "0.5448685", "text": "public static Horse builderHorse_R2_H9( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R2_H9_ID() );\n horse.setNumber( 9 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 1 );\n // no stable\n horse.setWeight( 55.5 );\n horse.setDistance( 2200.0 );\n horse.setCareerProfit( 2170000.0 );\n horse.setPreviousYearProfit( 1930000.0 );\n horse.setVictoryProfit( 1250000.0 );\n horse.setPlaceProfit( 920000.0 );\n horse.setYearProfit( 240000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"A.FABRE (S)\" ) );\n horse.setOwner( owner( \"GODOLPHIN SNC\" ) );\n horse.setRancher( rancher( \"DARLEY STUD MANAGEMENT CO. LTD\" ) );\n horse.setJockey( jockey( \"M.BARZALONA\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "b8455779afc989bb0fce8c54647b833f", "score": "0.54480916", "text": "public void\tBirdRun() {\n\t\t//to make it change it action(animation)\n\t\tact++;\n\t\tbird = birdact[act/10 % 3];\n\t\tBirdFall();\n\t\t//count the angle of bird\n\t\tangle = -Math.atan(distance/15);\n\t}", "title": "" }, { "docid": "55140ae3380b0634d741889f5c20af61", "score": "0.5438259", "text": "private void computeSomeHorsesArrived(BlackBoard blackBoard) throws MoreThanOneHorseArrivedException {\n\t\tif (arrivePositions.size() >= 6) {\n\t\t\tthrow new NotStartedException();\n\t\t}\n\n\t\tint max;\n\t\tint maxPosition;\n\t\tdo {\n\t\t\tmax = -1;\n\t\t\tmaxPosition = -1;\n\t\t\tboolean finalReached = false;\n\t\t\tList<Integer> positions = new ArrayList<Integer>();\n\t\t\t//Find the horse farthest from arrive (already arrived)\n\t\t\tfor (int i = 0; i < 6; i++) {\n\t\t\t\tif (horsesPosition.get(i) >= FINAL_POSITION && horsesPosition.get(i) > max) {\n\t\t\t\t\tmax = horsesPosition.get(i); //position of the most advanced horse\n\t\t\t\t\tmaxPosition = i; //index of the most advanced horse\n\t\t\t\t\tfinalReached = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (finalReached) {\n\t\t\t\tfor (int i = 0; i < 6; i++) {\n\t\t\t\t\tif (horsesPosition.get(i) == max) {\n\t\t\t\t\t\tpositions.add(i + 1); //add all the horses at the same position of the most advanced horse (included)\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (positions.size() > 1) {\n\t\t\t\t\tdo {\n\t\t\t\t\t\tList<Integer> requestPosition = new ArrayList<Integer>();\n\t\t\t\t\t\tint bestQuotation = 8;\n\t\t\t\t\t\tint countBestQuotation = 0;\n\t\t\t\t\t\tint bestHorse = -1;\n\t\t\t\t\t\t//Search for best quotation\n\t\t\t\t\t\tIterator<Integer> iItr = positions.iterator();\n\t\t\t\t\t\twhile (iItr.hasNext()) {\n\t\t\t\t\t\t\tInteger i = iItr.next();\n\n\t\t\t\t\t\t\t//Search for card 5 or 12\n\t\t\t\t\t\t\tActionCard a5 = null;\n\t\t\t\t\t\t\tActionCard a12 = null;\n\t\t\t\t\t\t\tfor (ActionCard a : actionCards.get(i - 1)) {\n\t\t\t\t\t\t\t\tif (a.getNumber() == 5) {\n\t\t\t\t\t\t\t\t\ta5 = a;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (a.getNumber() == 12) {\n\t\t\t\t\t\t\t\t\ta12 = a;\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\tif (a12 != null) {\n\t\t\t\t\t\t\t\tiItr.remove();\n\t\t\t\t\t\t\t} else if (a5 != null) {\n\t\t\t\t\t\t\t\tbestHorse = i;\n\t\t\t\t\t\t\t\tbestQuotation = -1;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tint horse = i;\n\t\t\t\t\t\t\t\tint quotation = blackBoard.getQuotation(horse);\n\t\t\t\t\t\t\t\tif (quotation < bestQuotation) {\n\t\t\t\t\t\t\t\t\tbestHorse = horse;\n\t\t\t\t\t\t\t\t\tbestQuotation = quotation;\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\t//Search for second best quotation\n\t\t\t\t\t\tfor (Integer i : positions) {\n\t\t\t\t\t\t\tint horse = i;\n\t\t\t\t\t\t\tint quotation = blackBoard.getQuotation(horse);\n\t\t\t\t\t\t\tif (quotation == bestQuotation) {\n\t\t\t\t\t\t\t\tcountBestQuotation++;\n\t\t\t\t\t\t\t\trequestPosition.add(i);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (countBestQuotation > 1) {\n\t\t\t\t\t\t\t//Two horses at the same quotation\n\t\t\t\t\t\t\tstatus = MORE_THAN_ONE;\n\t\t\t\t\t\t\tthrow new MoreThanOneHorseArrivedException(requestPosition);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tarrivePositions.add(bestHorse);\n\t\t\t\t\t\t\thorsesPosition.set(bestHorse - 1, Integer.MIN_VALUE);\n\t\t\t\t\t\t\tpositions.remove(Integer.valueOf(bestHorse));\n\t\t\t\t\t\t}\n\t\t\t\t\t} while (positions.size() > 0);\n\t\t\t\t} else {\n\t\t\t\t\tarrivePositions.add(maxPosition + 1);\n\t\t\t\t\thorsesPosition.set(maxPosition, Integer.MIN_VALUE);\n\t\t\t\t}\n\t\t\t}\n\t\t} while (maxPosition >= 0);\n\n\t\tif (arrivePositions.size() == 6) {\n\t\t\tstatus = ARRIVED;\n\t\t}\n\t}", "title": "" }, { "docid": "24c23eed70c0f14b8cb80e18695f1578", "score": "0.54362917", "text": "public static Horse builderHorse_R1_H4( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R1_H4_ID() );\n horse.setNumber( 4 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 3 );\n // no stable\n horse.setWeight( 57.0 );\n horse.setDistance( 1800.0 );\n horse.setCareerProfit( 2250000.0 );\n horse.setPreviousYearProfit( 0.0 );\n horse.setVictoryProfit( 1250000.0 );\n horse.setPlaceProfit( 1000000.0 );\n horse.setYearProfit( 2250000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"A.FABRE (S)\" ) );\n horse.setOwner( owner( \"BARON ED.DE ROTHSCHILD\" ) );\n horse.setRancher( rancher( \"S.C. DE L'ECURIE DE MEAUTRY\" ) );\n horse.setJockey( jockey( \"PC.BOUDOT\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "ec4b4d85bd4878b92030d1a9862f1325", "score": "0.5434945", "text": "public void startSeason () {\n\t\t// Create 4 threads, each thread runs 38 matches for 5 teams\n\t\tThread t1 = new Thread(new MatchesRunnable(this.teams, 0, 5));\n\t\tThread t2 = new Thread(new MatchesRunnable(this.teams, 5, 10));\n\t\tThread t3 = new Thread(new MatchesRunnable(this.teams, 10, 15));\n\t\tThread t4 = new Thread(new MatchesRunnable(this.teams, 15, 20));\n\t\tt1.start();\n\t\tt2.start();\n\t\tt3.start();\n\t\tt4.start();\n\n\n\t\t// ---RACE CONDITION CHECK STARTS---\n\t\t// If any of the total matches played by any team is not 38, triggers\n\t\t// a print statement on console\n\t\ttry {\n\t\t\tt1.join();\n\t\t\tt2.join();\n\t\t\tt3.join();\n\t\t\tt4.join();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tfor (int i = 0; i < this.teams.size(); i++) {\n\t\t\tTeam team = this.teams.get(i);\n\t\t\tif (team.getNoOfWin() + team.getNoOfDraw() + team.getNoOfLoss() != 38) {\n\t\t\t\tSystem.out.println(\"RACE CONDITION!\");\n\t\t\t\tthis.printTable();\n\t\t\t}\n\t\t}\n\n\t\t// ---RACE CONDITION CHECK ENDS---\n\t}", "title": "" }, { "docid": "bfca8a5fb59e2168ae465341beb36354", "score": "0.5430919", "text": "public static Horse builderHorse_R6_H4( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R6_H4_ID() );\n horse.setNumber( 4 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 2 );\n // no stable\n horse.setWeight( 58.0 );\n horse.setDistance( 2900.0 );\n horse.setCareerProfit( 480000.0 );\n horse.setPreviousYearProfit( 0.0 );\n horse.setVictoryProfit( 0.0 );\n horse.setPlaceProfit( 480000.0 );\n horse.setYearProfit( 480000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"P.VAN DE POELE (S)\" ) );\n horse.setOwner( owner( \"P.VAN BELLE\" ) );\n horse.setRancher( rancher( \"MR PIERRE VAN BELLE\" ) );\n horse.setJockey( jockey( \"G.BENOIST\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "a2b0a5d1de1ce8dd5ea5fd842f9be848", "score": "0.5426758", "text": "public static Horse builderHorse_R7_H4( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R7_H4_ID() );\n horse.setNumber( 4 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 12 );\n // no stable\n horse.setWeight( 59.0 );\n horse.setDistance( 1600.0 );\n horse.setCareerProfit( 365000.0 );\n horse.setPreviousYearProfit( 125000.0 );\n horse.setVictoryProfit( 0.0 );\n horse.setPlaceProfit( 365000.0 );\n horse.setYearProfit( 240000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"F.CHAPPET\" ) );\n horse.setOwner( owner( \"ECURIE CENTRALE\" ) );\n horse.setRancher( rancher( \"MR FRANCOIS-MARIE COTTIN\" ) );\n horse.setJockey( jockey( \"F.MALBRAN\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "5f9248a442528a0a19cb159667c71beb", "score": "0.5423912", "text": "public static Horse builderHorse_R3_H5( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R3_H5_ID() );\n horse.setNumber( 5 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 17 );\n // no stable\n horse.setWeight( 57.0 );\n horse.setDistance( 2400.0 );\n horse.setCareerProfit( 4926100.0 );\n horse.setPreviousYearProfit( 1385000.0 );\n horse.setVictoryProfit( 1650000.0 );\n horse.setPlaceProfit( 3276100.0 );\n horse.setYearProfit( 3541100.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"A&G.BOTTI (S)\" ) );\n horse.setOwner( owner( \"SCUDERIA MAGENTA/DIOSCURI SRL\" ) );\n horse.setRancher( rancher( \"S.F. BLOODSTOCK LLC\" ) );\n horse.setJockey( jockey( \"C.DEMURO\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "941ccb770dccd77f71e7ed928a72a2e3", "score": "0.542257", "text": "public static void main (String [] args) throws InterruptedException {\n String file_name = args[0];\n int round = 1;\n int currentBattles = 0;\n int counter = 0;\n boolean winner = false;\n String winnerName = null;\n\n ArrayList<Instructor> instructors = new ArrayList<>();\n try {\n BufferedReader bf = new BufferedReader(new FileReader(file_name));\n String input;\n\n while((input = bf.readLine()) != null) {\n String currLine[] = input.split(\",\");\n Instructor newInstructor = new Instructor(currLine[0].trim(), Integer.parseInt(currLine[1].trim()), Integer.parseInt(currLine[2].trim()), Integer.parseInt(currLine[3].trim()), Integer.parseInt(currLine[4].trim()));\n instructors.add(newInstructor);\n }\n } catch (FileNotFoundException e) {\n System.out.println(e.getMessage());\n System.out.println(\"Please check the current directory.\");\n } catch (IOException ioe) {\n System.out.println(ioe.getMessage());\n }\n\n Battle battles [] = new Battle[instructors.size()-1];\n<<<<<<< HEAD\n while (true) {\n System.out.println(\"The battle royal is about to begin\");\n System.out.println(\"Round \" + round + \" is starting...\");\n for (int i = 0; i < battles.length; i++) {\n System.out.println(\"The battle between \" + instructors.get(i).getName() + \" and \" + instructors.get(i+1).getName() + \" has begun!!!\");\n battles[i] = new Battle(instructors.get(0), instructors.get(1));\n battles[i].start();\n }\n for (int i = 0; i < battles.length; i++) {\n battles[i].join();\n=======\n System.out.println(\"The battle royal is about to begin\");\n System.out.println(\"Round \" + round + \" is starting...\");\n\n\n while (winner != true) {\n for (int i = 0; i < battles.length; i++) {\n if (instructors.size() > 2) {\n battles[counter] = new Battle(instructors.get(0), instructors.get(1));\n System.out.println(\"The battle between \" + instructors.get(0).getName() + \" and \" + instructors.get(1).getName() + \" has begun!!!\");\n instructors.remove(0);\n instructors.remove(0);\n counter++;\n currentBattles++;\n } else if (instructors.size() == 2) {\n battles[counter] = new Battle(instructors.get(0), instructors.get(1));\n System.out.println(\"The battle between \" + instructors.get(0).getName() + \" and \" + instructors.get(1).getName() + \" has begun!!!\");\n instructors.remove(0);\n instructors.remove(0);\n counter++;\n currentBattles++;\n } else {\n if (instructors.size() == 0 && currentBattles == 1) {\n battles[0].start();\n battles[0].join();\n winnerName = battles[0].getWinner().getName();\n System.out.println(\"The battle royal has ended...\");\n winner = true;\n break;\n } else {\n for (int j = 0; j < currentBattles; j++) {\n battles[j].start();\n }\n for (int j = 0; j < currentBattles; j++) {\n battles[j].join();\n instructors.add(battles[j].getWinner());\n }\n }\n\n round++;\n counter = 0;\n currentBattles = 0;\n System.out.println(\"Round \" + round + \" is starting...\");\n }\n>>>>>>> dd56f85e6ecfc5dde4901fd80f5b92e36994b0d9\n }\n }\n System.out.println(winnerName + \" is victorious!!!\");\n }\n}", "title": "" }, { "docid": "3f1119f21480ad4f1b12e422d3c0c88c", "score": "0.54220307", "text": "void runGame() {\t\n\t\tint random = new Random().nextInt(SpinResult.values().length);\n\t\tspinValue = SpinResult.values()[random].value;\n\t\tspinColor = SpinResult.values()[random].name().toString();\n\t\t\n\t\tif(spinColor.contains(\"Red\")) {\n\t\t\tspinColor = \"Red\";\n\t\t}\n\t\telse if(spinColor.contains(\"Black\")) {\n\t\t\tspinColor = \"Black\";\n\t\t}\n\t\telse {\n\t\t\tspinColor = \"Green\";\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "b2f21df735d5b870dd8955cea9942e17", "score": "0.54210097", "text": "public static String round1B() {\n\t\tint firstBloodB = winGenerator();\n\t\tif (firstBloodB == 1) {\n\t\tString round1B = \"Michigan\"; //seed2\n\t\tSystem.out.println(round1B + \" wins bracket B.\");\n\t\t\n\t\treturn round1B;\n\t\t}\n\t\telse {\n\t\tString round1B = \"Michigan State\"; //seed3\n\t\tSystem.out.println(round1B + \" wins bracket B!\");\n\t\t\n\t\treturn round1B;\n\t\t}\t\n\t}", "title": "" }, { "docid": "95a3431a39448addcbdb777e1a3c2e7a", "score": "0.54177463", "text": "public static Horse builderHorse_R3_H18( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R3_H18_ID() );\n horse.setNumber( 18 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 14 );\n // no stable\n horse.setWeight( 51.0 );\n horse.setDistance( 2400.0 );\n horse.setCareerProfit( 650000.0 );\n horse.setPreviousYearProfit( 250000.0 );\n horse.setVictoryProfit( 0.0 );\n horse.setPlaceProfit( 650000.0 );\n horse.setYearProfit( 400000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"F.DOUMEN (S)\" ) );\n horse.setOwner( owner( \"PH.VOGT\" ) );\n horse.setRancher( rancher( \"HARAS DU MONT DIT MONT\" ) );\n horse.setJockey( jockey( \"A.CRASTUS\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "0a5746226251936f63276d6785f6887b", "score": "0.54161376", "text": "private void cs4() {\n\t\tPlayer local = ctx.players.local();\n\t\tfinal String opt[] = {\"Good\",\"Please wait a moment\",\"You're barbarians\",\"Your daughter seeks permission\",\"I need to speak with you\"};\n\t\t//SceneObject door = SceneEntities.getNearest(11621);\n\t\tif(new Tile(3077, 3442, 0).distanceTo(local.tile())<6){\n\t\t\t\n\t\t\tMethod.skipPics();\n\t\t\tif(!Method.widgetOpenCloseIt(1370,30))//returns false if the fire widget is not open(it causes problems)\n\t\t\tif(!Method.findOption(opt))\n\t\t\tif(!Method.isChatting(\"Gunthor\")){Vars.DYNAMICV2 = false;Vars.DYNAMICV = false;\n\t\t\t\tMethod.speakTo(2876, \"Gunthor\");\n\t\t\t}\n\t\t}else if(Vars.DYNAMICV2){\n\t\t\tif(new Tile(3079,3438,0).distanceTo(local.tile())<6 && Method.objIsByTile(new Tile(3079,3438,0), 11621, 6)){\n\t\t\t\tMethod.interactO(11621, \"Open\", \"Door\");\n\t\t\t}else Method.walking(pathToGunthor, \"Walking to Gunthor\", false);\n\t\t\t\n\t\t}else cs0();//Walk to Dororan to get the variable active\n\t\t\n\t}", "title": "" }, { "docid": "56a87d124a7af0a3f94e407a41a5258d", "score": "0.54100573", "text": "public void renderPlayerBKnight() {\r\n\r\n for(int i = 0; i < 2; i++) {\r\n \t randNumX = rand.nextInt(7);\r\n randNumY = rand.nextInt(9);\r\n while (randNumX != 5 && randNumX != 6 ) {\r\n randNumX = rand.nextInt(7);\r\n randNumY = rand.nextInt(9);\r\n }\r\n if(!this.isThereRenderedFigure(randNumX, randNumY)) {\r\n this.figureContainer[randNumX][randNumY] =\r\n (new Knight(randNumX, randNumY, Color.green));\r\n } else i--;\r\n }\r\n }", "title": "" }, { "docid": "55e573a4d10ed42f2c64521d11a4936a", "score": "0.5409429", "text": "public static void main(String[] args) {\n\t\treadData(\"crx\",false);\n\t\trandSplits(2,false);\n\t\t//uniformSplits(10,false);\n\t\tfor (int j = 1; j <= 2; j++) {\n\t\t\tSystem.out.println(\"fold: \"+j);\n\t\t\tfor (int i = 0; i < percentc.length; i++) {\n\t\t\t\tSystem.out.println(percentc[i]+\"%\");\n\t\t\t\tpickKfold(j,percentc[i],20);\n\t\t\t\t//pickKfold(j);\n\t\t\t\t//System.out.println(percentc[i]);\n\t\t\t\t//System.out.println(trainlen+\" \"+testlen+\" \"+len);//+\" \"+totalstumps+\" \"+stumps.size());\n\t\t\t\tallput(true, false);\t\n\t\t\t}\t\n\t\t}\n\t}", "title": "" }, { "docid": "b1c9ab947ceafa33fbf3e85969a136cf", "score": "0.54062265", "text": "public static Horse builderHorse_R6_H2( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R6_H2_ID() );\n horse.setNumber( 2 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 5 );\n // no stable\n horse.setWeight( 58.0 );\n horse.setDistance( 2900.0 );\n horse.setCareerProfit( 375000.0 );\n horse.setPreviousYearProfit( 0.0 );\n horse.setVictoryProfit( 0.0 );\n horse.setPlaceProfit( 375000.0 );\n horse.setYearProfit( 375000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.AUSTRALIAN );\n horse.setTrainer( trainer( \"P.BARY (S)\" ) );\n horse.setOwner( owner( \"FAM .NIARCHOS\" ) );\n horse.setRancher( rancher( \"SUCC MR S. NIARCHOS\" ) );\n horse.setJockey( jockey( \"S.PASQUIER\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "b9ad011109a58f35ae0aabca572a1b0d", "score": "0.5404537", "text": "public static Horse builderHorse_R4_H5( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R4_H5_ID() );\n horse.setNumber( 5 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 10 );\n // no stable\n horse.setWeight( 57.5 );\n horse.setDistance( 2200.0 );\n horse.setCareerProfit( 1935000.0 );\n horse.setPreviousYearProfit( 310000.0 );\n horse.setVictoryProfit( 500000.0 );\n horse.setPlaceProfit( 1435000.0 );\n horse.setYearProfit( 1625000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.AUSTRALIAN );\n horse.setTrainer( trainer( \"MLLE J.LEGATTE\" ) );\n horse.setOwner( owner( \"I.ENDALTSEV\" ) );\n horse.setRancher( rancher( \"MR ROGER-YVES SIMON\" ) );\n horse.setJockey( jockey( \"K.BEAUMARD\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "f87d4734c13af48488c74a015cb99dbf", "score": "0.5398165", "text": "public static Horse builderHorse_R2_H11( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R2_H11_ID() );\n horse.setNumber( 11 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 9 );\n horse.setStable( \"A\" );\n horse.setWeight( 55.5 );\n horse.setDistance( 2200.0 );\n horse.setCareerProfit( 1250000.0 );\n horse.setPreviousYearProfit( 0.0 );\n horse.setVictoryProfit( 1250000.0 );\n horse.setPlaceProfit( 0.0 );\n horse.setYearProfit( 1250000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"A.ROYER DUPRE DE\" ) );\n horse.setOwner( owner( \"WILDENSTEIN STABLES LIMIT\" ) );\n horse.setRancher( rancher( \"DAYTON INVESTMENTS LTD\" ) );\n horse.setJockey( jockey( \"M.BERTO\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "57616b7af8749b11a9e7622e701fdc50", "score": "0.53962874", "text": "public static Horse builderHorse_R3_H4( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R3_H4_ID() );\n horse.setNumber( 4 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 11 );\n // no stable\n horse.setWeight( 57.5 );\n horse.setDistance( 2400.0 );\n horse.setCareerProfit( 4000000.0 );\n horse.setPreviousYearProfit( 0.0 );\n horse.setVictoryProfit( 3520000.0 );\n horse.setPlaceProfit( 480000.0 );\n horse.setYearProfit( 4000000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"N.CLEMENT (S)\" ) );\n horse.setOwner( owner( \"MLLE C.WILLS\" ) );\n horse.setRancher( rancher( \"ST CLARE HALL STUD\" ) );\n horse.setJockey( jockey( \"T.THULLIEZ\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "5ed8ec0e9e2d6a0237205e1cd58223d5", "score": "0.53953767", "text": "public static Horse builderHorse_R2_H10( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R2_H10_ID() );\n horse.setNumber( 10 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 3 );\n horse.setStable( \"A\" );\n horse.setWeight( 55.5 );\n horse.setDistance( 2200.0 );\n horse.setCareerProfit( 1250000.0 );\n horse.setPreviousYearProfit( 0.0 );\n horse.setVictoryProfit( 1250000.0 );\n horse.setPlaceProfit( 0.0 );\n horse.setYearProfit( 1250000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"FH.GRAFFARD (S)\" ) );\n horse.setOwner( owner( \"WILDENSTEIN STABLES LIMIT\" ) );\n horse.setRancher( rancher( \"DAYTON INVESTMENTS LTD\" ) );\n horse.setJockey( jockey( \"PC.BOUDOT\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "5a07ff37960ce3a9f31d6f3e7a044bfa", "score": "0.5394873", "text": "public static Horse builderHorse_R5_H1( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R5_H1_ID() );\n horse.setNumber( 1 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 10 );\n // no stable\n horse.setWeight( 56.0 );\n horse.setDistance( 1800.0 );\n horse.setCareerProfit( 1.91693E7 );\n horse.setPreviousYearProfit( 4249300.0 );\n horse.setVictoryProfit( 1.63535E7 );\n horse.setPlaceProfit( 2815800.0 );\n horse.setYearProfit( 1.4696E7 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.WITH );\n horse.setTrainer( trainer( \"GE.MIKHALIDES\" ) );\n horse.setOwner( owner( \"M.AL NAEMI\" ) );\n horse.setRancher( rancher( \"SHADWELL ESTATE CO. LTD\" ) );\n horse.setJockey( jockey( \"T.JARNET\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "c31f780087e13bd0bd026f9e90d97aee", "score": "0.53934574", "text": "public static void main(String[] args) {\n\t\ttry {\n\t\t\tBowlingGameMain bowling = new BowlingGameMain();\n\t\t\t// reading players number and players names\n\t\t\tList<Person> playerList = InputOutputUtils.readPlayerData();\n\t\t\t// we have Frame.LAST_FRAME frames counting from 0\n\t\t\tfor (int frameId = 0; frameId <= Frame.LAST_FRAME; frameId++) {\n\t\t\t\t// each player has own turn with one, two or three\n\t\t\t\t// throws(dependent of previous result)\n\t\t\t\tfor (Person player : playerList) {\n\t\t\t\t\tSystem.out.println(\"frameId:\" + frameId + \" player:\" + player.toString());\n\t\t\t\t\t// This are only input frame data\n\t\t\t\t\tFrame inputData = InputOutputUtils.readFrameData(frameId);\n\t\t\t\t\tList<Frame> history = player.getHistory();\n\t\t\t\t\t// This are input frame data with current frame calculation.\n\t\t\t\t\t// Old frames calculation data could be changed according to\n\t\t\t\t\t// description\n\t\t\t\t\tFrame frame = bowling.nextFrame(frameId, history, inputData.getFirstThrow(), inputData.getSecondThrow(), inputData.getThirdThrow());\n\t\t\t\t\thistory.add(frame);\n\t\t\t\t\tInputOutputUtils.printHistory(player);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (Person player : playerList) {\n\t\t\t\tInputOutputUtils.printHistory(player);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "057a59c353a3396c111fca78fdcd5ac8", "score": "0.5393262", "text": "public static Horse builderHorse_R4_H9( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R4_H9_ID() );\n horse.setNumber( 9 );\n horse.setRunner( true );\n horse.setSupplemented( true );\n horse.setPregnant( false );\n horse.setStall( 2 );\n // no stable\n horse.setWeight( 56.0 );\n horse.setDistance( 2200.0 );\n horse.setCareerProfit( 0.0 );\n horse.setPreviousYearProfit( 0.0 );\n horse.setVictoryProfit( 0.0 );\n horse.setPlaceProfit( 0.0 );\n horse.setYearProfit( 0.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"W.FIGGE\" ) );\n horse.setOwner( owner( \"STALL SALZBURG\" ) );\n horse.setRancher( rancher( \"GESTUT AM SCHLOSSGARTEN\" ) );\n horse.setJockey( jockey( \"A.VILMAR\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "28a4bf3c3728a441d5180ffbb3b81ec4", "score": "0.5391019", "text": "public static Horse builderHorse_R2_H3( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R2_H3_ID() );\n horse.setNumber( 3 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 12 );\n // no stable\n horse.setWeight( 59.0 );\n horse.setDistance( 2200.0 );\n horse.setCareerProfit( 5084900.0 );\n horse.setPreviousYearProfit( 3190000.0 );\n horse.setVictoryProfit( 2910000.0 );\n horse.setPlaceProfit( 2174900.0 );\n horse.setYearProfit( 1894900.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"G.BIETOLINI\" ) );\n horse.setOwner( owner( \"RAZZA DELLA SILA SRL\" ) );\n horse.setRancher( rancher( \"MR THIERRY DE LA HERONNIERE\" ) );\n horse.setJockey( jockey( \"U.RISPOLI\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "bd9321f38bce4fa7014a67a73d36ca0d", "score": "0.53876317", "text": "public static Horse builderHorse_R8_H12( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R8_H12_ID() );\n horse.setNumber( 12 );\n horse.setRunner( false );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 8 );\n // no stable\n horse.setWeight( 54.5 );\n horse.setDistance( 1600.0 );\n horse.setCareerProfit( 180000.0 );\n horse.setPreviousYearProfit( 0.0 );\n horse.setVictoryProfit( 0.0 );\n horse.setPlaceProfit( 180000.0 );\n horse.setYearProfit( 180000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"N.LEENDERS\" ) );\n horse.setOwner( owner( \"MME O.FAU\" ) );\n horse.setRancher( rancher( \"SNIG ELEVAGE\" ) );\n horse.setJockey( jockey( \"F.VERON\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "32a0b2bf7201b31f9bc030e9608e0b25", "score": "0.5386773", "text": "@Test\n public void testFieldResearcherFirstEffectOnGideon() {\n addCard(Zone.BATTLEFIELD, playerA, \"Tamiyo, Field Researcher\", 1);\n\n /* Gideon, Ally of Zendikar {2}{W}{W} - 4 loyalty\n * +1: Until end of turn, Gideon, Ally of Zendikar becomes a 5/5 Human Soldier Ally creature with indestructible\n * that's still a planeswalker. Prevent all damage that would be dealt to him this turn.\n * 0: Create a 2/2 white Knight Ally creature token.\n **/\n addCard(Zone.BATTLEFIELD, playerA, \"Gideon, Ally of Zendikar\", 1);\n\n // put 2/2 knight ally token on battlefield\n activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, \"0: Create a\");\n\n // next, activate Gideon to make him a 5/5 human soldier ally creature\n activateAbility(3, PhaseStep.PRECOMBAT_MAIN, playerA, \"+1: Until end of turn\");\n waitStackResolved(3, PhaseStep.PRECOMBAT_MAIN);\n // finally, use Tamiyo +1 on both creatures\n activateAbility(3, PhaseStep.PRECOMBAT_MAIN, playerA, \"+1: Choose up to two\");\n addTarget(playerA, \"Knight Ally Token^Gideon, Ally of Zendikar\"); // both token and Gideon as creature\n\n // attack with both unblocked\n attack(3, playerA, \"Knight Ally Token\");\n attack(3, playerA, \"Gideon, Ally of Zendikar\");\n\n setStopAt(3, PhaseStep.END_COMBAT);\n execute();\n\n assertLife(playerB, 13); // 5 + 2 damage, 20 - 7 = 13\n assertPermanentCount(playerA, \"Tamiyo, Field Researcher\", 1);\n assertPermanentCount(playerA, \"Gideon, Ally of Zendikar\", 1);\n assertPermanentCount(playerA, \"Knight Ally Token\", 1);\n assertHandCount(playerA, 3); // two cards drawn from each creature dealing damage + 1 card drawn on turn\n }", "title": "" }, { "docid": "8f11254fa9be1a39bcf52026d262c838", "score": "0.53832597", "text": "int getRunesGrabbed();", "title": "" }, { "docid": "78c86d6ee37eb32c97bded801918468c", "score": "0.53809804", "text": "public void ChessGame(){\n ChessPiece pawn1T1 = new ChessPiece(\"pawn1T1\", PieceType.PAWN, 2, 1, TeamSide.BOTTOM);\n ChessPiece pawn2T1 = new ChessPiece(\"pawn2T1\", PieceType.PAWN, 2, 2, TeamSide.BOTTOM);\n ChessPiece pawn3T1 = new ChessPiece(\"pawn3T1\", PieceType.PAWN, 2, 3, TeamSide.BOTTOM);\n ChessPiece pawn4T1 = new ChessPiece(\"pawn4T1\", PieceType.PAWN, 2, 4, TeamSide.BOTTOM);\n ChessPiece pawn5T1 = new ChessPiece(\"pawn5T1\", PieceType.PAWN, 2, 5, TeamSide.BOTTOM);\n ChessPiece pawn6T1 = new ChessPiece(\"pawn6T1\", PieceType.PAWN, 2, 6, TeamSide.BOTTOM);\n ChessPiece pawn7T1 = new ChessPiece(\"pawn7T1\", PieceType.PAWN, 2, 7, TeamSide.BOTTOM);\n ChessPiece pawn8T1 = new ChessPiece(\"pawn8T1\", PieceType.PAWN, 2, 8, TeamSide.BOTTOM);\n \n //rooks for team 1\n ChessPiece rook1T1 = new ChessPiece(\"rook1T1\", PieceType.ROOK, 1, 1, TeamSide.BOTTOM);\n ChessPiece rook2T1 = new ChessPiece(\"rook2T1\", PieceType.ROOK, 1, 8, TeamSide.BOTTOM);\n \n //knights for team 1\n ChessPiece knight1T1 = new ChessPiece(\"knight1T1\", PieceType.KNIGHT, 1, 2, TeamSide.BOTTOM);\n ChessPiece knight2T1 = new ChessPiece(\"knight2T1\", PieceType.KNIGHT, 1, 7, TeamSide.BOTTOM);\n \n //bishops for team 1\n ChessPiece bishop1T1 = new ChessPiece(\"bishop1T1\", PieceType.BISHOP, 1, 3, TeamSide.BOTTOM);\n ChessPiece bishop2T1 = new ChessPiece(\"bishop2T1\", PieceType.BISHOP, 1, 6, TeamSide.BOTTOM);\n \n //queen for team 1\n ChessPiece queenT1 = new ChessPiece(\"queenT1\", PieceType.QUEEN, 1, 4, TeamSide.BOTTOM);\n \n //king for team 1\n ChessPiece kingT1 = new ChessPiece(\"kingT1\", PieceType.KING, 1, 5, TeamSide.BOTTOM);\n \n \n //team 2 chess pieces (team 2 = top)\n \n //Pawns for team 2\n ChessPiece pawn1T2 = new ChessPiece(\"pawn1T2\", PieceType.PAWN, 7, 1, TeamSide.TOP);\n ChessPiece pawn2T2 = new ChessPiece(\"pawn2T2\", PieceType.PAWN, 7, 2, TeamSide.TOP);\n ChessPiece pawn3T2 = new ChessPiece(\"pawn3T2\", PieceType.PAWN, 7, 3, TeamSide.TOP);\n ChessPiece pawn4T2 = new ChessPiece(\"pawn4T2\", PieceType.PAWN, 7, 4, TeamSide.TOP);\n ChessPiece pawn5T2 = new ChessPiece(\"pawn5T2\", PieceType.PAWN, 7, 5, TeamSide.TOP);\n ChessPiece pawn6T2 = new ChessPiece(\"pawn6T2\", PieceType.PAWN, 7, 6, TeamSide.TOP);\n ChessPiece pawn7T2 = new ChessPiece(\"pawn7T2\", PieceType.PAWN, 7, 7, TeamSide.TOP);\n ChessPiece pawn8T2 = new ChessPiece(\"pawn8T2\", PieceType.PAWN, 7, 8, TeamSide.TOP);\n \n //rooks for team 2\n ChessPiece rook1T2 = new ChessPiece(\"rook1T2\", PieceType.ROOK, 7, 1, TeamSide.TOP);\n ChessPiece rook2T2 = new ChessPiece(\"rook2T2\", PieceType.ROOK, 7, 8, TeamSide.TOP);\n \n //knights for team 2\n ChessPiece knight1T2 = new ChessPiece(\"knight1T2\", PieceType.KNIGHT, 7, 2, TeamSide.TOP);\n ChessPiece knight2T2 = new ChessPiece(\"knight2T2\", PieceType.KNIGHT, 7, 7, TeamSide.TOP);\n \n //bishops for team 2\n ChessPiece bishop1T2 = new ChessPiece(\"bishop1T2\", PieceType.BISHOP, 7, 3, TeamSide.TOP);\n ChessPiece bishop2T2 = new ChessPiece(\"bishop2T2\", PieceType.BISHOP, 7, 6, TeamSide.TOP);\n \n //queen for team 1\n ChessPiece queenT2 = new ChessPiece(\"queenT2\", PieceType.QUEEN, 7, 4, TeamSide.TOP);\n \n //king for team 1\n ChessPiece kingT2 = new ChessPiece(\"kingT2\", PieceType.KING, 7, 5, TeamSide.TOP);\n }", "title": "" }, { "docid": "467ff951ca05ff85f0930dd34f32cb20", "score": "0.538062", "text": "public static Race builderRace_R4( Meeting meeting ) {\n\n Race race = new Race();\n\n race.setMeeting( meeting );\n race.setNumber( 4 );\n race.setName( \"PRIX CARREFOUR MARKET DE TOURGEVILLE (PRIX DES FUSCHIAS)\" );\n race.setStatus( RaceStatus.FINISHED );\n race.setStart( parse( \"13/08/2015 14:23:00 +0200\" ) );\n // no real start\n race.setDistance( 2200.0 );\n race.setBenefit( 19000.0 );\n race.setDiscipline( Discipline.PLAT );\n race.setTypes( EnumSet.of( Type.RECLAMER ) );\n\n // -- horses --\n TreeSet<Horse> horses = new TreeSet<>();\n horses.add( builderHorse_R4_H1( race ) );\n horses.add( builderHorse_R4_H2( race ) );\n horses.add( builderHorse_R4_H3( race ) );\n horses.add( builderHorse_R4_H4( race ) );\n horses.add( builderHorse_R4_H5( race ) );\n horses.add( builderHorse_R4_H6( race ) );\n horses.add( builderHorse_R4_H7( race ) );\n horses.add( builderHorse_R4_H8( race ) );\n horses.add( builderHorse_R4_H9( race ) );\n horses.add( builderHorse_R4_H10( race ) );\n horses.add( builderHorse_R4_H11( race ) );\n horses.add( builderHorse_R4_H12( race ) );\n horses.add( builderHorse_R4_H13( race ) );\n race.setHorses( horses );\n\n // -- bets --\n race.setBets( EnumSet.of(\n BetType.SIMPLE_GAGNANT,\n BetType.SIMPLE_PLACE,\n BetType.COUPLE_ORDRE,\n BetType.COUPLE_GAGNANT,\n BetType.COUPLE_PLACE,\n BetType.TRIO,\n BetType.DEUX_SUR_QUATRE,\n BetType.MULTI_EN_QUATRE,\n BetType.MULTI_EN_CINQ,\n BetType.MULTI_EN_SIX ) );\n\n // -- odds --\n TreeSet<Odds> oddsSet = new TreeSet<Odds>();\n oddsSet.add( builderOdds_R4_O1( race ) );\n oddsSet.add( builderOdds_R4_O2( race ) );\n race.setOdds( oddsSet );\n\n // no duration\n\n // -- finish --\n TreeSet<Place> places = new TreeSet<Place>();\n places.add( place( race, 1, 12 ) );\n places.add( place( race, 2, 10, \"ENCOLURE\" ) );\n places.add( place( race, 3, 7, \"COURTE_TETE\" ) );\n places.add( place( race, 4, 5, \"TROIS_LONGUEURS_ET_DEMIE\" ) );\n places.add( place( race, 5, 8, \"UNE_LONGUEUR_ET_DEMIE\" ) );\n places.add( place( race, 6, 6, \"ENCOLURE\" ) );\n places.add( place( race, 7, 3, \"TROIS_LONGUEURS_ET_DEMIE\" ) );\n places.add( place( race, 8, 11, \"UNE_LONGUEUR\" ) );\n places.add( place( race, 9, 4, \"COURTE_TETE\" ) );\n places.add( place( race, 10, 1, \"TROIS_QUARTS_DE_LONGUEUR\" ) );\n places.add( place( race, 11, 2, \"TROIS_LONGUEURS_ET_DEMIE\" ) );\n places.add( place( race, 12, 9, \"TROIS_LONGUEURS\" ) );\n race.setPlaces( places );\n\n // no stopped\n // no disqualified\n // no fallen\n\n // -- prices --\n TreeSet<Price> prices = new TreeSet<>();\n prices.add( price( race, BetType.SIMPLE_GAGNANT, PriceName.DIRECT, 19.0, \"12\" ) );\n prices.add( price( race, BetType.SIMPLE_PLACE, PriceName.DIRECT, 1.8, \"10\" ) );\n prices.add( price( race, BetType.SIMPLE_PLACE, PriceName.DIRECT, 4.4, \"12\" ) );\n prices.add( price( race, BetType.SIMPLE_PLACE, PriceName.DIRECT, 2.4, \"7\" ) );\n prices.add( price( race, BetType.COUPLE_ORDRE, PriceName.DIRECT, 0.0, \"12\" ) );\n prices.add( price( race, BetType.COUPLE_ORDRE, PriceName.DIRECT, 82.4, \"12 10\" ) );\n prices.add( price( race, BetType.COUPLE_GAGNANT, PriceName.DIRECT, 0.0, \"12\" ) );\n prices.add( price( race, BetType.COUPLE_GAGNANT, PriceName.DIRECT, 31.9, \"12 10\" ) );\n prices.add( price( race, BetType.COUPLE_PLACE, PriceName.DIRECT, 0.0, \"10\" ) );\n prices.add( price( race, BetType.COUPLE_PLACE, PriceName.DIRECT, 5.9, \"10 7\" ) );\n prices.add( price( race, BetType.COUPLE_PLACE, PriceName.DIRECT, 0.0, \"12\" ) );\n prices.add( price( race, BetType.COUPLE_PLACE, PriceName.DIRECT, 9.2, \"12 10\" ) );\n prices.add( price( race, BetType.COUPLE_PLACE, PriceName.DIRECT, 17.7, \"12 7\" ) );\n prices.add( price( race, BetType.COUPLE_PLACE, PriceName.DIRECT, 0.0, \"7\" ) );\n prices.add( price( race, BetType.TRIO, PriceName.DIRECT, 0.0, \"12 10\" ) );\n prices.add( price( race, BetType.TRIO, PriceName.DIRECT, 74.8, \"12 10 7\" ) );\n prices.add( price( race, BetType.DEUX_SUR_QUATRE, PriceName.DIRECT, 5.6, \"10 5\" ) );\n prices.add( price( race, BetType.DEUX_SUR_QUATRE, PriceName.DIRECT, 5.6, \"10 7\" ) );\n prices.add( price( race, BetType.DEUX_SUR_QUATRE, PriceName.DIRECT, 5.6, \"12 10\" ) );\n prices.add( price( race, BetType.DEUX_SUR_QUATRE, PriceName.DIRECT, 5.6, \"12 5\" ) );\n prices.add( price( race, BetType.DEUX_SUR_QUATRE, PriceName.DIRECT, 5.6, \"12 7\" ) );\n prices.add( price( race, BetType.DEUX_SUR_QUATRE, PriceName.DIRECT, 5.6, \"7 5\" ) );\n prices.add( price( race, BetType.MULTI_EN_QUATRE, PriceName.DIRECT, 306.0, \"12 10 7 5\" ) );\n prices.add( price( race, BetType.MULTI_EN_CINQ, PriceName.DIRECT, 61.2, \"12 10 7 5\" ) );\n prices.add( price( race, BetType.MULTI_EN_SIX, PriceName.DIRECT, 20.4, \"12 10 7 5\" ) );\n race.setPrices( prices );\n\n return race;\n\n }", "title": "" }, { "docid": "534bda727c5479f9d6d912fbf664762d", "score": "0.5380248", "text": "int getSoloSeasonalRankedGamesPlayed();", "title": "" }, { "docid": "3fae688cc42dc557e19444b9f8f060c5", "score": "0.5379216", "text": "public static Horse builderHorse_R4_H7( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R4_H7_ID() );\n horse.setNumber( 7 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 8 );\n // no stable\n horse.setWeight( 56.0 );\n horse.setDistance( 2200.0 );\n horse.setCareerProfit( 115000.0 );\n horse.setPreviousYearProfit( 0.0 );\n horse.setVictoryProfit( 0.0 );\n horse.setPlaceProfit( 115000.0 );\n horse.setYearProfit( 115000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"E.LELLOUCHE\" ) );\n horse.setOwner( owner( \"G.AUGUSTIN-NORMAND\" ) );\n horse.setRancher( rancher( \"MR JOHN F. TUTHILL\" ) );\n horse.setJockey( jockey( \"P.DOMINOIS\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "a865277f087de0c24b035597199036ec", "score": "0.5378432", "text": "public static Horse builderHorse_R5_H11( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R5_H11_ID() );\n horse.setNumber( 11 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 1 );\n // no stable\n horse.setWeight( 56.0 );\n horse.setDistance( 1800.0 );\n horse.setCareerProfit( 3835000.0 );\n horse.setPreviousYearProfit( 1685000.0 );\n horse.setVictoryProfit( 2550000.0 );\n horse.setPlaceProfit( 1285000.0 );\n horse.setYearProfit( 2150000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"E.LIBAUD (S)\" ) );\n horse.setOwner( owner( \"T. STORME/T. LOHEST\" ) );\n horse.setRancher( rancher( \"MR JOSEPH HERNON\" ) );\n horse.setJockey( jockey( \"PC.BOUDOT\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "271bfb385a0db0d7e65e54e14e8b86b1", "score": "0.53782934", "text": "public static Horse builderHorse_R7_H2( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R7_H2_ID() );\n horse.setNumber( 2 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 5 );\n horse.setStable( \"A\" );\n horse.setWeight( 61.5 );\n horse.setDistance( 1600.0 );\n horse.setCareerProfit( 4245000.0 );\n horse.setPreviousYearProfit( 0.0 );\n horse.setVictoryProfit( 2100000.0 );\n horse.setPlaceProfit( 2145000.0 );\n horse.setYearProfit( 4245000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.AUSTRALIAN );\n horse.setTrainer( trainer( \"S.SMRCZEK\" ) );\n horse.setOwner( owner( \"STALL AUSTRALIA\" ) );\n horse.setRancher( rancher( \"MR JOHN ARNOU\" ) );\n horse.setJockey( jockey( \"M.BARZALONA\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "87f48458a78f3c58d8e8e12082b85d10", "score": "0.5377673", "text": "public static Horse builderHorse_R5_H10( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R5_H10_ID() );\n horse.setNumber( 10 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 3 );\n // no stable\n horse.setWeight( 56.0 );\n horse.setDistance( 1800.0 );\n horse.setCareerProfit( 5170000.0 );\n horse.setPreviousYearProfit( 2150000.0 );\n horse.setVictoryProfit( 4090000.0 );\n horse.setPlaceProfit( 1080000.0 );\n horse.setYearProfit( 600000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"E.LEON PENATE\" ) );\n horse.setOwner( owner( \"ROISAJU LOPEZ S.L.\" ) );\n horse.setRancher( rancher( \"CUADRA CIELO DE MADRID\" ) );\n horse.setJockey( jockey( \"C.DEMURO\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "e041706fdc030a921f3140d704160d01", "score": "0.53767776", "text": "public static Horse builderHorse_R2_H1( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R2_H1_ID() );\n horse.setNumber( 1 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 10 );\n // no stable\n horse.setWeight( 59.0 );\n horse.setDistance( 2200.0 );\n horse.setCareerProfit( 3620000.0 );\n horse.setPreviousYearProfit( 0.0 );\n horse.setVictoryProfit( 1500000.0 );\n horse.setPlaceProfit( 2120000.0 );\n horse.setYearProfit( 3620000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"A.COUETIL (S)\" ) );\n horse.setOwner( owner( \"ECURIE CERDEVAL/P. LEJOP\" ) );\n horse.setRancher( rancher( \"MME JULIE MORGAN\" ) );\n horse.setJockey( jockey( \"A.FOUASSIER\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "4afdd98ef75514fbec979e4a49e947f2", "score": "0.53714514", "text": "public static void main(String [] args){\n int arr[] = {0, 1, 0, 2, 1, 0, 1, 3, 2, 1, 2, 1};\n System.out.println(calTrappedRainWater(arr));\n }", "title": "" }, { "docid": "7f60356b21a5180736ea8bc22f57c847", "score": "0.53707224", "text": "public static Horse builderHorse_R5_H7( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R5_H7_ID() );\n horse.setNumber( 7 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 7 );\n // no stable\n horse.setWeight( 56.0 );\n horse.setDistance( 1800.0 );\n horse.setCareerProfit( 1420000.0 );\n horse.setPreviousYearProfit( 0.0 );\n horse.setVictoryProfit( 0.0 );\n horse.setPlaceProfit( 1420000.0 );\n horse.setYearProfit( 1420000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"HA.PANTALL\" ) );\n horse.setOwner( owner( \"GODOLPHIN SNC\" ) );\n horse.setRancher( rancher( \"DARLEY STUD MANAGEMENT CO. LTD\" ) );\n horse.setJockey( jockey( \"M.BARZALONA\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "f0acf6143c420b76eb278ae55728b8bb", "score": "0.5369928", "text": "private void riots(Player currentPlayer,Game game)\n\t{\n\t\t//Check if the board has 8 trouble makers.If so end the game.\n\t\tGameboard gameBoard=game.getGameBoard();\n\t\tif(gameBoard.troubleMarkers().size()>=8)\n\t\t{\n\t\t\tSystem.out.println(\"There are eight or more trouble markers on the gameBoard. The Game is over\");\n\t\t\tgame.CalculateAWinner();\n\t\t}else\n\t\t{\n\t\t\tSystem.out.println(\"The board does not contain eight or more trouble markers.The card does not apply. Keep Playing!!!\");\n\t\t}\n\t}", "title": "" }, { "docid": "d3f13871354495f18509a96cf69ebfe4", "score": "0.5369049", "text": "public static Horse builderHorse_R1_H5( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R1_H5_ID() );\n horse.setNumber( 5 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 4 );\n // no stable\n horse.setWeight( 55.5 );\n horse.setDistance( 1800.0 );\n horse.setCareerProfit( 1880000.0 );\n horse.setPreviousYearProfit( 0.0 );\n horse.setVictoryProfit( 1300000.0 );\n horse.setPlaceProfit( 580000.0 );\n horse.setYearProfit( 1880000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"JC.ROUGET (S)\" ) );\n horse.setOwner( owner( \"RC.PORTER II\" ) );\n horse.setRancher( rancher( \"ECURIE LA VALLEE MARTIGNY EARL\" ) );\n horse.setJockey( jockey( \"C.SOUMILLON\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "a15bf672333fff4836c8f942f97ccfcc", "score": "0.536731", "text": "public static Horse builderHorse_R7_H5( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R7_H5_ID() );\n horse.setNumber( 5 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 16 );\n // no stable\n horse.setWeight( 57.5 );\n horse.setDistance( 1600.0 );\n horse.setCareerProfit( 670000.0 );\n horse.setPreviousYearProfit( 160000.0 );\n horse.setVictoryProfit( 0.0 );\n horse.setPlaceProfit( 670000.0 );\n horse.setYearProfit( 510000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.WITH );\n horse.setTrainer( trainer( \"E.LEENDERS\" ) );\n horse.setOwner( owner( \"ECURIE MUSEROLLE\" ) );\n horse.setRancher( rancher( \"MR THIERRY DE LA HERONNIERE\" ) );\n horse.setJockey( jockey( \"A.FOUASSIER\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "7a9833d18278cb341162c30dbd6ba626", "score": "0.5362886", "text": "public static Horse builderHorse_R8_H14( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R8_H14_ID() );\n horse.setNumber( 14 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 6 );\n // no stable\n horse.setWeight( 54.0 );\n horse.setDistance( 1600.0 );\n horse.setCareerProfit( 950000.0 );\n horse.setPreviousYearProfit( 0.0 );\n horse.setVictoryProfit( 950000.0 );\n horse.setPlaceProfit( 0.0 );\n horse.setYearProfit( 950000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"M&S.NIGGE (S)\" ) );\n horse.setOwner( owner( \"L.BONGEN\" ) );\n horse.setRancher( rancher( \"MR LUTZ BONGEN\" ) );\n horse.setJockey( jockey( \"M.DELALANDE\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "b3ae767db355f35f59cdfbc38ab727cb", "score": "0.5362256", "text": "int getRace();", "title": "" }, { "docid": "b3ae767db355f35f59cdfbc38ab727cb", "score": "0.5362256", "text": "int getRace();", "title": "" }, { "docid": "a601a21d3ddc683eb88b7b0a0e89d790", "score": "0.5358837", "text": "public static Horse builderHorse_R3_H2( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R3_H2_ID() );\n horse.setNumber( 2 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 3 );\n // no stable\n horse.setWeight( 59.0 );\n horse.setDistance( 2400.0 );\n horse.setCareerProfit( 1820000.0 );\n horse.setPreviousYearProfit( 680000.0 );\n horse.setVictoryProfit( 800000.0 );\n horse.setPlaceProfit( 1020000.0 );\n horse.setYearProfit( 1140000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.AUSTRALIAN );\n horse.setTrainer( trainer( \"C.LAFFON-PARIAS\" ) );\n horse.setOwner( owner( \"WERTHEIMER & FRERE\" ) );\n horse.setRancher( rancher( \"WERTHEIMER & FRERE\" ) );\n horse.setJockey( jockey( \"M.GUYON\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "97f69794adec2d48b5d0da606ce934ba", "score": "0.5358772", "text": "@Test\n public void testBoostOtherFoundry() {\n addCard(Zone.BATTLEFIELD, playerA, \"Swamp\", 6);\n addCard(Zone.HAND, playerA, \"Chief of the Foundry\");\n addCard(Zone.HAND, playerA, \"Chief of the Foundry\");\n\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Chief of the Foundry\", true);\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Chief of the Foundry\");\n setStopAt(1, PhaseStep.BEGIN_COMBAT);\n execute();\n\n assertPowerToughness(playerA, \"Chief of the Foundry\", 3, 4, Filter.ComparisonScope.All);\n }", "title": "" }, { "docid": "c409810d27f2d4bf85a358380818456b", "score": "0.53586054", "text": "@Test\n public void lastStrikeTest() {\n // Gutter for the first 9 frames\n repeatedRolls(18, 0);\n\n // On the 10th frame,\n // Strike, then 5 then 1.\n bowlingGame.roll(10);\n bowlingGame.roll(5);\n bowlingGame.roll(1);\n\n assertEquals(16, bowlingGame.score());\n }", "title": "" }, { "docid": "0e0ae39b08c985118233310d5d554d10", "score": "0.53577983", "text": "public static Horse builderHorse_R7_H9( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R7_H9_ID() );\n horse.setNumber( 9 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 6 );\n // no stable\n horse.setWeight( 56.0 );\n horse.setDistance( 1600.0 );\n horse.setCareerProfit( 435000.0 );\n horse.setPreviousYearProfit( 0.0 );\n horse.setVictoryProfit( 0.0 );\n horse.setPlaceProfit( 435000.0 );\n horse.setYearProfit( 435000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.NONE );\n horse.setTrainer( trainer( \"GE.MIKHALIDES\" ) );\n horse.setOwner( owner( \"M.AL NAEMI\" ) );\n horse.setRancher( rancher( \"REDLAND BLOODSTOCK LTD\" ) );\n horse.setJockey( jockey( \"L.LE PEMP\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "1a55fd1795d55c8d863b06e719a30986", "score": "0.5353639", "text": "public static void main(String[] asd){\nHuman x = new Human(\"Ash Ketchum\");\n\t\t//2. create a new Robot army of good and evil robots.\nRobot r1 = new Robot(\"PIKACHUUUUU\", false);\nRobot r2 = new Robot(\"PIKACHUUUUU\", false);\nRobot r3 = new Robot(\"PIKACHUUUUU\", false);\nRobot r4 = new Robot(\"PIKACHUUUUU\", false);\nRobot r5 = new Robot(\"PIKACHUUUUU\", false);\nRobot r6 = new Robot(\"PIKACHUUUUU\", false);\nRobot r7 = new Robot(\"PIKACHUUUUU\", false);\nRobot r8 = new Robot(\"PIKACHUUUUU\", false);\nRobot r9 = new Robot(\"PIKACHUUUUU\", false);\nRobot r10 = new Robot(\"PIKACHUUUUU\", false);\nRobot r11 = new Robot(\"PIKACHUUUUU\", false);\nRobot r12 = new Robot(\"PIKACHUUUUU\", false);\nRobot r13 = new Robot(\"PIKACHUUUUU\", false);\nRobot r14 = new Robot(\"PIKACHUUUUU\", false);\nRobot r15 = new Robot(\"PIKACHUUUUU\", false);\nRobot r16 = new Robot(\"PIKACHUUUUU\", false);\nRobot r17 = new Robot(\"PIKACHUUUUU\", false);\nRobot r18 = new Robot(\"PIKACHUUUUU\", false);\nRobot r19 = new Robot(\"PIKACHUUUUU\", false);\t\t\nRobot r20 = new Robot(\"PIKACHUUUUU\", false);\nRobot br1 = new Robot(\"Meowth\", true);\nRobot br2 = new Robot(\"Meowth\", true);\nRobot br3 = new Robot(\"Meowth\", true);\nRobot br4 = new Robot(\"Meowth\", true);\nRobot br5 = new Robot(\"Meowth\", true);\nRobot br6 = new Robot(\"Meowth\", true);\nRobot br7 = new Robot(\"Meowth\", true);\nRobot br8 = new Robot(\"Meowth\", true);\nRobot br9 = new Robot(\"Meowth\", true);\nRobot br10 = new Robot(\"Meowth\", true);\nRobot br11 = new Robot(\"Meowth\", true);\nRobot br12 = new Robot(\"Meowth\", true);\nRobot br13 = new Robot(\"Meowth\", true);\nRobot br14 = new Robot(\"Meowth\", true);\nRobot br15 = new Robot(\"Meowth\", true);\nRobot br16 = new Robot(\"Meowth\", true);\nRobot br17 = new Robot(\"Meowth\", true);\nRobot br18 = new Robot(\"Meowth\", true);\nRobot br19 = new Robot(\"Meowth\", true);\nRobot br20 = new Robot(\"Meowth\", true);\n//3. command your robot army to destroy a human\n\tr14.destroy(x);\n\t}", "title": "" }, { "docid": "9d8fe73aa142235f4e26717d277ddaf6", "score": "0.53534", "text": "public static Horse builderHorse_R4_H1( Race race ) {\n\n Horse horse = new Horse();\n\n horse.setRace( race );\n horse.setHorseID( builderHorse_R4_H1_ID() );\n horse.setNumber( 1 );\n horse.setRunner( true );\n horse.setSupplemented( false );\n horse.setPregnant( false );\n horse.setStall( 5 );\n // no stable\n horse.setWeight( 61.0 );\n horse.setDistance( 2200.0 );\n horse.setCareerProfit( 4260000.0 );\n horse.setPreviousYearProfit( 1380000.0 );\n horse.setVictoryProfit( 2100000.0 );\n horse.setPlaceProfit( 2160000.0 );\n horse.setYearProfit( 2880000.0 );\n horse.setHorseshoe( Horseshoe.ALL );\n horse.setBlinder( Blinder.WITH );\n horse.setTrainer( trainer( \"F.CHAPPET\" ) );\n horse.setOwner( owner( \"F.CHAPPET\" ) );\n horse.setRancher( rancher( \"MME SANDRINE GAVILAN\" ) );\n horse.setJockey( jockey( \"M.ROMARY\" ) );\n\n return horse;\n\n }", "title": "" }, { "docid": "695778c692ff4e097b7cb6567d2786b6", "score": "0.53472865", "text": "private void rob_hat_ball()\n {\n if(false)\n {\n zustand = KORB_WURF;\n }\n else if(false)\n {\n zustand = LANGER_WURF;\n }\n else if (false)\n {\n zustand = KURZER_WURF;\n }\n }", "title": "" } ]
1f388e3d7f1721a75625f8a2f78ffd98
TinLM load get account is login
[ { "docid": "c84f8772b6a6bb361344594e44a04cb2", "score": "0.61862427", "text": "private String getAccountLogin() {\n String username;\n SharedPreferences sharedPreferences = getSharedPreferences(ConstainApp.login_Prefer, MODE_PRIVATE);\n username = sharedPreferences.getString(ConstainApp.USERNAME,null);\n return username;\n }", "title": "" } ]
[ { "docid": "b14407544c835ad2dd6935e9f6b56572", "score": "0.74417824", "text": "boolean getIfLogin();", "title": "" }, { "docid": "2bc5054f0be28ed55af3e9c317c87207", "score": "0.70624286", "text": "boolean hasIfLogin();", "title": "" }, { "docid": "ab06212befa4cf617431d3f3207609ac", "score": "0.68979406", "text": "public int getAccountStatus(String login);", "title": "" }, { "docid": "6d493ca9d7c1cd117af969678cf84ed8", "score": "0.68748903", "text": "boolean hasLoginCheckAccountRequest();", "title": "" }, { "docid": "5c3f6f48f6c3cc69c6fced9da81fad4a", "score": "0.67124116", "text": "public boolean userLogin(Login l);", "title": "" }, { "docid": "31de59059a2dea1c1e3acf15634c539c", "score": "0.6476836", "text": "boolean hasLoginFlg();", "title": "" }, { "docid": "4aaf7fba290ae4ade5dc2da5e8525ffc", "score": "0.6473392", "text": "public boolean loginmodule (){\n //databaseCreate();\n userLogIn();\n checkUsername();\n checkPassword();\n checkLogInStatus();\n return logInAuthentication;\n }", "title": "" }, { "docid": "7f06b7ded8a1ad3afec56e16117d341d", "score": "0.64519453", "text": "String getUserLogin();", "title": "" }, { "docid": "5c3391ea3c9ec6f07b289b45e5a7143a", "score": "0.636013", "text": "private boolean login() {\r\n\t\treturn sharedPreferences.getBoolean(Data, false);\r\n\t}", "title": "" }, { "docid": "cb91474a8bacf39a54b5f8980dc89eeb", "score": "0.6339956", "text": "UserQuery hasLogin(String login);", "title": "" }, { "docid": "ae6d1b3243b5687a9b260db867fc4af0", "score": "0.6310761", "text": "boolean loginExists(String login);", "title": "" }, { "docid": "e1f64bb83c210b8bb9ef6d2f1e8120e8", "score": "0.62220967", "text": "public String getLoginAccount() {\n return loginAccount;\n }", "title": "" }, { "docid": "ff77206df447c8493561dd8ca73d28c3", "score": "0.6195512", "text": "public boolean hasLogin() {\n return result.hasLogin();\n }", "title": "" }, { "docid": "d7f72dbdbed0464b3b3555b755eaba40", "score": "0.6188606", "text": "boolean isLoginRequired();", "title": "" }, { "docid": "debbafae515841cbae9265cf0afc6bc5", "score": "0.6171595", "text": "public Mstlogin loadUserByUsername(String username,String pwd);", "title": "" }, { "docid": "ef386fe9922dcfce3f037446abcca278", "score": "0.61629915", "text": "boolean hasAccount();", "title": "" }, { "docid": "ef386fe9922dcfce3f037446abcca278", "score": "0.61629915", "text": "boolean hasAccount();", "title": "" }, { "docid": "ef386fe9922dcfce3f037446abcca278", "score": "0.61629915", "text": "boolean hasAccount();", "title": "" }, { "docid": "ef386fe9922dcfce3f037446abcca278", "score": "0.61629915", "text": "boolean hasAccount();", "title": "" }, { "docid": "ef386fe9922dcfce3f037446abcca278", "score": "0.61629915", "text": "boolean hasAccount();", "title": "" }, { "docid": "ef386fe9922dcfce3f037446abcca278", "score": "0.61629915", "text": "boolean hasAccount();", "title": "" }, { "docid": "01803a108d2e30ddc76c6799fcd75e03", "score": "0.614712", "text": "public String getUserLoggedIn();", "title": "" }, { "docid": "0fc792d0467e71a1ea81e9e05dcf75b4", "score": "0.6141828", "text": "public static boolean login(Token in){\n return false;\n }", "title": "" }, { "docid": "267baef4bde6e8d9bcc0e80c862908bf", "score": "0.61257976", "text": "public boolean hasLoginInfo() {\n return result.hasLoginInfo();\n }", "title": "" }, { "docid": "227547e3a0907b18ef518af9c05ee10d", "score": "0.61169887", "text": "boolean loginIsFree(String login);", "title": "" }, { "docid": "420787d31dedfd2043f797ae8a90b574", "score": "0.6116787", "text": "public boolean getloginavilable() {\n boolean result;\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor res = db.rawQuery( \"select * from log\", null );\n res.moveToFirst();\n\n if(res.isFirst()){\n result=true;\n }\n else\n result=false;\n return result;\n }", "title": "" }, { "docid": "73fedb91a668adeab7ebafef8505aeee", "score": "0.61090696", "text": "boolean hasLoginGetRoleDataRequest();", "title": "" }, { "docid": "d762b54cb71edd6f7d1023995f7725b1", "score": "0.6078117", "text": "private String checkAccount(String name, ISession session, SFSObject params, ISFSObject outData) throws SFSLoginException {\n int loginType = params.getInt(SFSKey.LOGIN_TYPE);\n if (loginType != ExtensionConstant.TOKEN_LOGIN) {\n SFSErrorData errData = new SFSErrorData(SFSErrorCode.LOGIN_GUEST_NOT_ALLOWED);\n errData.addParameter(name);\n throw new SFSLoginException(name + \" login fail user type\", errData);\n }\n \n String loginToken = params.getUtfString(SFSKey.LOGIN_TOKEN);\n\n //user gửi len name = token de login thay vi gui username nhu bt\n UserLoginToken userToken = HazelcastUtil.getUserTokenData(loginToken);\n if (userToken == null) {\n SFSErrorData errData = new SFSErrorData(SFSErrorCode.LOGIN_BAD_USERNAME);\n errData.addParameter(name);\n throw new SFSLoginException(name + \" login fail token\", errData);\n }\n\n String userId = userToken.getUserId();\n \n this.getLogger().debug(\"Login by token... \"+ userId+\",\"+ loginToken);\n\n String displayName = Database.instance.getDisplayName(userId);\n if (displayName == null || displayName.isEmpty()) {\n displayName = name;\n }\n \n outData.putUtfString(SFSConstants.NEW_LOGIN_NAME, userId);\n\n session.setProperty(UserInforPropertiesKey.ID_DB_USER, userId);\n session.setProperty(UserInforPropertiesKey.DISPLAY_NAME, displayName);\n\n this.getLogger().debug(\"login by token success: \"+ userId+\",\"+ loginToken);\n return userId;\n }", "title": "" }, { "docid": "dda1abd783987b1c30e81325e40baa12", "score": "0.6071624", "text": "public User getUserByLogin(String login);", "title": "" }, { "docid": "9ef316386a35e6c7bc3aaf8213822b44", "score": "0.6038421", "text": "boolean isLoginPermitted();", "title": "" }, { "docid": "686a63b4d09c25222de13c1cd9279f2a", "score": "0.6028694", "text": "@Override\n\tpublic boolean islogin(String email, String password) {\n\t\tboolean flag=false;\n\t\tflag=userDao.islogin(email, password);\n\t\treturn flag;\n\t}", "title": "" }, { "docid": "5e3786fd75c7d35cfca59de7c3c31c59", "score": "0.6017858", "text": "private boolean loggedIn(WebSession s)\n {\n try\n {\n return s.get(LOGGEDIN).equals(\"true\");\n } catch (Exception e)\n {\n return false;\n }\n }", "title": "" }, { "docid": "32ae24f58d64d24b3e25f0d93311ab35", "score": "0.6010043", "text": "@Override\n\tpublic void onLoginSuccess() {\n List<User> loggedInUsers = new Select().from(User.class).where(\"isLoggedIn = ?\", true).execute();\n if (loggedInUsers != null && loggedInUsers.size() > 0) {\n loggedInUser = loggedInUsers.get(0);\n goToHomePage();\n return;\n }\n\n // if loggedInUser is null, reterive it first\n getClient().getLoggedInCredential(new JsonHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n loggedInUser = User.fromJSON(response);\n loggedInUser.setIsLoogedIn(true);\n loggedInUser.save();\n\n goToHomePage();\n }\n });\n\t}", "title": "" }, { "docid": "9c7260b51527c82912538bc7e8f39ef7", "score": "0.60020405", "text": "UserLogin getApprovedByUserLogin();", "title": "" }, { "docid": "1436667859fa7b1be5cf27a46a2eaada", "score": "0.5979536", "text": "public boolean getIfLogin() {\n return ifLogin_;\n }", "title": "" }, { "docid": "a0f257e449d07affd4c9a484eee198d3", "score": "0.59717274", "text": "public void loadUserByLogin(String login, AsyncCallback<User> callback);", "title": "" }, { "docid": "d6b1a6e94f4a357b72e593a94c9a5b67", "score": "0.5969485", "text": "public boolean VerifyAccountLogin() {\n\n\t\treturn ControlHelpers.IsElementVisible(By.xpath(Login_Button));\n\n\t}", "title": "" }, { "docid": "4b1cfbf315b0d989a80d0d081ad01e4e", "score": "0.59675866", "text": "void requireLogin();", "title": "" }, { "docid": "49693d9407b8443cd0cb2b76eb566359", "score": "0.5954624", "text": "void loginCheck(Context context);", "title": "" }, { "docid": "2f71098975d3a169d42e336ece7c850e", "score": "0.59364945", "text": "public String checkLogin() {\n HttpSession session = ServletActionContext.getRequest().getSession();\n Person person = (Person) session.getAttribute(Utility.USER_HANDLE);\n if (person == null) {\n return Utility.LOGIN_FAILURE;\n } else {\n return Utility.SUCCESS;\n }\n }", "title": "" }, { "docid": "324f9b7ed01900d38ce3cfd9b81a96a5", "score": "0.5936272", "text": "public User_auth getUser_auth(){\n return localUser_auth;\n }", "title": "" }, { "docid": "1ec7c57ccba7def20b8fb4d564a3feea", "score": "0.5935979", "text": "public boolean getIfLogin() {\n return ifLogin_;\n }", "title": "" }, { "docid": "33fabe8616016eb66868b9b1f4f66c3c", "score": "0.59324735", "text": "String getAuthflag();", "title": "" }, { "docid": "d95ee1d9bbc742cf5900e92060e2a839", "score": "0.59269935", "text": "public void checkLogInStatus(){\n if (passwordAuthentication && usernameAuthentication){\n logInAuthentication = true;\n }\n else{\n System.out.println(\"Username or password error. Please log in again.\");\n //loginmodule();\n }\n }", "title": "" }, { "docid": "a565a5637e1279a9fa051b2019144e6b", "score": "0.5916767", "text": "public static int getCredential(){\n boolean isLogIn =false;\n int typeOfUser = 0;\n while(!isLogIn){\n System.out.println(\"Are you an employee, customer or admin?\");\n String username = scanner.nextLine();\n\n if(username.equals(CUSTOMER_USERNAME) ){\n typeOfUser = 1;\n isLogIn = true;\n }\n\n else if(username.equals(STAFF_USERNAME) ){\n typeOfUser = 2;\n isLogIn = true;\n }\n else if(username.equals(ADMIN_USERNAME) ){\n typeOfUser = 3;\n isLogIn = true;\n }\n }\n return typeOfUser;\n }", "title": "" }, { "docid": "6243fdf6eb1aaf236f40c7633e42731f", "score": "0.59146565", "text": "@Override\n\tpublic boolean verifyProfileLogIn( String un, String pw) {\n\t\tVertex l = new Vertex(null);\n\t\tboolean accountFound = false;\n\t\tboolean userName = false;\n\t\tboolean password = false;\n\t\tfor (Vertex adjList : adjLists) {\n\t\t\tl = adjList;\n\t\t\tif (l.getUserVertex().getUserName().equals(un)) {\n\t\t\t\tuserName = true;\n\t\t\t}\n\t\t\tif (l.getUserVertex().getPassword().equals(pw)) {\n\t\t\t\tpassword = true;\n\t\t\t}\n\t\t}\n\n\t\tif (userName == true && password == true) {\n\t\t\taccountFound = true;\n\t\t}\n\n\t\treturn accountFound;\n\n\t}", "title": "" }, { "docid": "a2f57b0433416f934ce117fee49bb4b0", "score": "0.590733", "text": "private static boolean areUsersLoggedIn()\n {\n Connection connection;\n Statement statement;\n ResultSet resultSet;\n boolean ret;\n \n try {\n \n // Get a connection to the database\n connection = DatabaseConnectionManager.getConnection();\n if (connection == null) \n return false; \n\n // Get the information from the database \n statement = connection.createStatement();\n resultSet = statement.executeQuery(\"SELECT * FROM current_users\");\n \n // Get the type from the returned result set\n if (resultSet.next() == false)\n ret = false;\n else\n ret = true; \n \n // Close the database resources\n resultSet.close();\n statement.close();\n DatabaseConnectionManager.releaseConnection(connection);\n\n return ret; \n }\n catch (Exception exception) {\n Log.excp(\"NtcssStop\", \"areUsersLoggedIn\", exception.toString());\n return false;\n }\n }", "title": "" }, { "docid": "1b907d8597928190a871298226d2344e", "score": "0.59034747", "text": "public boolean isLoggedIn(){\n return pref.getBoolean(IS_LOGIN,false);\n }", "title": "" }, { "docid": "9a76e39eae588f690887f26ccb3f465b", "score": "0.5898761", "text": "private void checkLogin() {\n boolean isLog = Osssc.getPrefs().getIsLoggedIn();\n if (isLog) {\n Utils.startHomeActivity(context);\n } else {\n // If Not Logged In\n Utils.startRootActivity(context);\n finish();\n }\n }", "title": "" }, { "docid": "fe2970e46061e6d5a6d0acc893b86def", "score": "0.58958024", "text": "private void fetchLogin() {\n showProgressDialog(\"Loading nih\");\n\n ConfigRetrofit.getInstancee().loginnn(\n userName,password,levelUser\n ).enqueue(new Callback<ResponseRegister>() {\n @Override\n public void onResponse(Call<ResponseRegister> call, Response<ResponseRegister> response) {\n if(response.isSuccessful()){\n String result =response.body().getResult();\n String message = response.body().getMsg();\n String idUser = response.body().getUser().getIdUser();\n if (result.equals(\"1\")){\n //Log.d(\"Login\", message);\n //Toast.makeText(sessionManager, \"Login nih!!\", Toast.LENGTH_SHORT).show();\n sessionManager.createSession(userName);\n sessionManager.setIdUser(idUser);\n hideProgressDialog();\n intent(FoodUtama.class);\n finish();\n } else {\n longToast(message);\n }\n }\n }\n\n @Override\n public void onFailure(Call<ResponseRegister> call, Throwable t) {\n Toast.makeText(Login.this, \"Password Salah!!!\", Toast.LENGTH_SHORT).show();\n intent(Login.class);\n }\n });\n }", "title": "" }, { "docid": "67ed7b45b36ee633007e6124c36ce5c1", "score": "0.58781713", "text": "@Override\n public void checkLogin(Context context) {\n if(new SharedPreferencesReader().getIsLoginFromSharedPreferences(context)){\n getView().nextFromPreferences();\n }\n }", "title": "" }, { "docid": "517fcd5e95f606f9172c5968d4eb08af", "score": "0.5877996", "text": "public boolean hasLoginType() {\n return result.hasLoginType();\n }", "title": "" }, { "docid": "517fcd5e95f606f9172c5968d4eb08af", "score": "0.5877996", "text": "public boolean hasLoginType() {\n return result.hasLoginType();\n }", "title": "" }, { "docid": "a5266ff3f9b1c5fea53882f55a970801", "score": "0.5875901", "text": "public boolean getLogin() {\n return loggedIn;\n }", "title": "" }, { "docid": "993369e15ec8196f999cee6a968864c3", "score": "0.58712065", "text": "public boolean getUserLoggedIn(){\n //Set default loggedIn value to false\n return userLocalDatabase.getBoolean(\"loggedIn\", false);\n }", "title": "" }, { "docid": "37e07449e74cc051dd849c8bb51c2534", "score": "0.5862798", "text": "boolean isLoginAlreadyUsed(String login);", "title": "" }, { "docid": "033d47d101940d6fc4951586f4dabbe9", "score": "0.5861706", "text": "public boolean checkUserStatus(){\n return userInLocalDb.userLogged();\n }", "title": "" }, { "docid": "654bc49cd7516af9c03eedd1b621b425", "score": "0.5861361", "text": "@Override\r\n\tpublic String checkUser(Login l) {\n\t\tlog.info(\"Authenticating User\");\r\n\t\tString uname = \"\";\r\n\t\tQuery q = sessionFactory.getCurrentSession()\r\n\t\t\t\t.createQuery(\"select b from BloodBankRegister b where b.username=:x and b.password=:y\");\r\n\t\tq.setParameter(\"x\", l.getUsername());\r\n\t\tq.setParameter(\"y\", l.getPassword());\r\n\t\tList list = q.list();\r\n\t\tif ((list != null) && (list.size() > 0)) {\r\n\t\t\tuname = l.getUsername();\r\n\t\t} else {\r\n\t\t\tuname = \"UserNotFound\";\r\n\t\t}\r\n\t\treturn uname;\r\n\t}", "title": "" }, { "docid": "7366bac16759b3c4f9d4192675a1a3ba", "score": "0.5857679", "text": "boolean isLoggedIn() {\n return pref.getString(KEY_USERNAME, null) != null;\n }", "title": "" }, { "docid": "018a7c29dad95bc7015384347cb12743", "score": "0.5854364", "text": "public boolean isLogin(){\n\t\treturn login;\n\t}", "title": "" }, { "docid": "fd6630904d5e87bcda766354bcf9d4f0", "score": "0.58336043", "text": "boolean hasAuthentication();", "title": "" }, { "docid": "d2640df6b2e1fc503a93e56e9ca199e7", "score": "0.5827552", "text": "boolean getIsAuth();", "title": "" }, { "docid": "45e21adb59098bf3ecae70180b110f81", "score": "0.5826117", "text": "boolean hasAuthInfo();", "title": "" }, { "docid": "0a3254ab9878695cafb1d2a9cf400d18", "score": "0.58200276", "text": "@Override\r\npublic boolean checkLogin(Login login) throws Exception {\n\tsession = sessionFactory.openSession();\r\n\t//User user = (User) session.load(User.class,new Long(id));\r\n\t\r\n\ttx=session.beginTransaction();\r\n\tList<?> list = hibernateTemplate.find(\"FROM users WHERE User_Id=? and passcode=?\",login.getUser_id(),login.getPasscode());\r\n\tsession.getTransaction().commit();\r\n session.close();\r\n\tif(!list.isEmpty()) {\r\n\t\treturn true;\r\n\t}\r\n\telse{\r\n\treturn false;\r\n\t}\r\n}", "title": "" }, { "docid": "40437be76ed17ae8f231710e45e67a70", "score": "0.58190024", "text": "boolean hasAuthData();", "title": "" }, { "docid": "40437be76ed17ae8f231710e45e67a70", "score": "0.58190024", "text": "boolean hasAuthData();", "title": "" }, { "docid": "e163d4f809024863c01fed73709dcf71", "score": "0.58127993", "text": "@Override\n\tpublic boolean login(ActionContext act) {\n\t\tHttpServletRequest request =(HttpServletRequest)act.get(ServletActionContext.HTTP_REQUEST);\n\t\tMap<String, String[]>maps =request.getParameterMap();\n\t\tSystem.out.println(request.getParameter(\"password\"));\n\t\tSet<Entry<String,String[]>>set=maps.entrySet();\n\t\tIterator<Entry<String, String[]>>it=set.iterator();\n\t\tString password=\"\";\n\t\tString account=\"\";\n\t\tint n=0;\n\t\tUser user=new User();\n\t\twhile(it.hasNext()){\n\t\t\tEntry<String,String[]>entry=it.next();\n \n System.out.println(\"KEY:\"+entry.getKey());\n \n \n if(n==0){\n \tfor (String i : entry.getValue()) {\n \taccount+=i;\n \t}\n }else{\n \tfor (String i : entry.getValue()) {\n \t\tpassword+=i;\n \t}\n }\n \n\t\t}\n \tuser=(User) userDao.findByUaccount(account).get(0);\n\t\tif(user.getUpassword().equals(password)){ \t\t\n \t\treturn true;\n \t}else{\n \t\treturn false;\n \t}\n\t}", "title": "" }, { "docid": "39c511bc6d69856a6caf4232bbbc8d98", "score": "0.5807509", "text": "String findLoggedInUsername();", "title": "" }, { "docid": "39c511bc6d69856a6caf4232bbbc8d98", "score": "0.5807509", "text": "String findLoggedInUsername();", "title": "" }, { "docid": "679b7ca675638b0249323876e79992ff", "score": "0.58048457", "text": "public Customer userLogin(double accountNumber) { \r\n\t//search for matching accountnumber in system and return int pin\r\n\t\r\n\treturn pin;\r\n}", "title": "" }, { "docid": "9d15b065ece38c37d494edab89be4fdd", "score": "0.5786112", "text": "public Utilisateur findLogged(Authentication authentication);", "title": "" }, { "docid": "6fe8599ea3f5f9ea49ad799f048e2b9a", "score": "0.5777729", "text": "public String getAmgen_login() {\r\n return (String) get(\"amgen_login\");\r\n }", "title": "" }, { "docid": "b934c1562d74b7eaf07771f22a26ece6", "score": "0.57764965", "text": "public java.lang.String getAuthentication(){\n return localAuthentication;\n }", "title": "" }, { "docid": "f89cf912dbd26a7ba773c2fed611c4d1", "score": "0.576264", "text": "@Override\n public List getUserInfo(String login) {\n\treturn null;\n }", "title": "" }, { "docid": "153920edd22f8a40ee70d752c12e4056", "score": "0.5758904", "text": "public boolean hasUserLogin() {\n return userLogin;\n }", "title": "" }, { "docid": "2e9252c9d11edc6648cb102c06c2faa5", "score": "0.57493967", "text": "public boolean isUserLoggedIn(Context context) {\r\n\t\tDatabaseHandler db = new DatabaseHandler(context);\r\n\t\tint count = db.getRowCount();\r\n\t\t//Log.e(\"get row count = \", \"\" +count);\r\n\t\tif (count > 0) {\r\n\t\t\t//使用者已經登入\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "e3e72634442887eafc58981c6aba10ad", "score": "0.57477325", "text": "public AuthenticationInfo getAuthenticationInfo(){\n return localAuthenticationInfo;\n }", "title": "" }, { "docid": "6d399d17a35ec619144c8b2e841b6e22", "score": "0.5746819", "text": "public boolean hasLogin() {\n return fieldSetFlags()[1];\n }", "title": "" }, { "docid": "121001e6d923e5a26fa659e9dd51c865", "score": "0.5730514", "text": "long getAuthentication();", "title": "" }, { "docid": "30be87d61c3d85bed0a405cc9d9d8ac4", "score": "0.57261324", "text": "public boolean varifyLogin(Login login) {\n\n\t\tboolean result = false;\n\t\tjava.sql.Connection con = null;\n\t\tPreparedStatement pst = null;\n\t\ttry {\n\t\t\tcon = DatabaseUtil.getConnection();\n\t\t\tpst = con.prepareStatement(\"SELECT *FROM WebExCustomer WHERE customer_Id =? AND customer_password =?\");\n\t\t\tpst.setString(1, login.getUserId());\n\t\t\tpst.setString(2, login.getPassword());\n\t\t\trs = pst.executeQuery();\n\t\t\tif(rs.next()) {\n\t\t\t\tresult=true;\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t} finally {\n\t\t\tDatabaseUtil.closePreparedStatement(pst);\n\t\t\tDatabaseUtil.closeConnection(con);\n\t\t}\n\n\t\treturn result;\n\n\t}", "title": "" }, { "docid": "e09fdc102dda249ab151b32048f5f638", "score": "0.5724213", "text": "HasLoginHandler getHasLoginHandler();", "title": "" }, { "docid": "39490326b7db9301c55c5b595796fc3f", "score": "0.57179314", "text": "public boolean initLogin() {\n\t\tthis.HTML = this.sendGetRequest(\"https://bannerweb.wpi.edu/pls/prod/twbkwbis.P_ValLogin\");\n\t\t// try loggin in\n\t\treturn this.sendLoginRequest(this.uname, this.password);\n\t}", "title": "" }, { "docid": "faa695741ea9bd51936156cfe1a0ecbc", "score": "0.57110703", "text": "public List<Login> getLoginDetails(Login login);", "title": "" }, { "docid": "fa25f40174c8127d05ab18df7f4c0fda", "score": "0.56838393", "text": "private static boolean isLoginResult(final JsonObject result) {\n return result.has(Protocol.Field.TOKEN) && result.has(Protocol.Field.ID);\n }", "title": "" }, { "docid": "8d4533f57989714a8da15fd3f748344f", "score": "0.56748545", "text": "public String getLogin()\r\n {\r\n return login;\r\n }", "title": "" }, { "docid": "83e445ab2bc95af09e15adc0eec98504", "score": "0.56723124", "text": "public boolean loadAccount() {\r\n\t\tboolean accountLoaded = false;\r\n\t\ttry {\r\n\t\t\tlaunch();\r\n\t\taccountLoaded = true;\r\n\t\t}\r\n\t\tcatch(BadRoomBookingException e) {\r\n\t\t\tSystem.out.println(e.getHeader() + e.getMessage());\r\n\t\t}\r\n\t\t//catch (Exception ex) {\r\n\t\t\t//System.out.println(\"General exception thrown; source unknown\");\r\n\t\t//}\r\n\t\treturn accountLoaded;\t\r\n\t}", "title": "" }, { "docid": "4aa1d8d8e7dd7e04afc281d3756bac20", "score": "0.5669219", "text": "private static int checkUser(String login, String senha) {\n Singleton st = Singleton.getInstance();\n List<User> users = st.getListOfUser();\n for (User user : users) {\n if (user.getNome().equals(login)) {\n if (user.getSenha().equals(senha)) {\n if (user.getType() == false) {\n return 41;\n }\n if (user.getType() == true) {\n return 42;\n } else {\n return 43;\n }\n }\n }\n }\n return 43;\n }", "title": "" }, { "docid": "543264bc87422fbbc624d8d855414ae4", "score": "0.56651556", "text": "public String authenticateUser(LoginReq loginReq);", "title": "" }, { "docid": "fc4d4b58fea5b88ecd37ab13e0be8f98", "score": "0.56620723", "text": "private void retrieveLoginInfo() {\n \t\tSharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(context);\n \t\thost = sharedPref.getString(PreferencesActivity.HOST_PREFERENCE_KEY, \"\");\n \t\tport = 8080;\n \n \t\tuserName = sharedPref.getString(PreferencesActivity.USERNAME_PREFERENCE_KEY, \"\");\n \t\tpassword = sharedPref.getString(PreferencesActivity.PASSWORD_PREFERENCE_KEY, \"\");\n \t}", "title": "" }, { "docid": "6506bf5ecbf21d20eed24c1ee728877f", "score": "0.56590545", "text": "public boolean getlogin(String id) {\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor res = db.rawQuery(\"select * from login where id=\"+id+\"\", null);\n res.moveToFirst();\n\n if(res.isNull(0))\n\n {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "ed66183f89fa810a2e30571e19adc8ff", "score": "0.5645662", "text": "public static boolean isLogin(Context context) {\n SharedPreferences prefs = context.getSharedPreferences(Constants.parentPreferenceKey, Context.MODE_PRIVATE);\n return prefs.getBoolean(Constants.isLogin, false);\n }", "title": "" }, { "docid": "17578acc5ed025ff28e137bb31a5ddc8", "score": "0.5640765", "text": "User isLogged(List<String> logInfo);", "title": "" }, { "docid": "6bd82f11397d82e7bfd2ca413ffa89b4", "score": "0.5625896", "text": "Label getLoginId();", "title": "" }, { "docid": "71cfef2c893aaac427a260d563732dff", "score": "0.56246144", "text": "public void login();", "title": "" }, { "docid": "97d5124c82d2fe0949881a9675ef0b9a", "score": "0.56158364", "text": "public String getLogin()\n {\n return login;\n }", "title": "" }, { "docid": "97d5124c82d2fe0949881a9675ef0b9a", "score": "0.56158364", "text": "public String getLogin()\n {\n return login;\n }", "title": "" }, { "docid": "28cdd4d09e98bc12aaaf999dc5a5d718", "score": "0.56124735", "text": "Single<String> getUsernameLoggedIn();", "title": "" }, { "docid": "cf2a3211a6fb48825dff2400d4b1bb1c", "score": "0.56038815", "text": "public Optional<Boolean> getLogin()\n {\n return Optional.ofNullable((Boolean) options.get(IRoleManager.Option.LOGIN));\n }", "title": "" }, { "docid": "d20135d16e22ab2c0ae087e464620b00", "score": "0.56027144", "text": "UserLogin getCreatedByUserLogin();", "title": "" }, { "docid": "2b3c61b89944b4acb20f9c2d4e0a2f0c", "score": "0.5588109", "text": "public void onModuleLoad() {\n \t\t// Check login status using login service.\n \t\tLoginServiceAsync loginService = GWT.create(LoginService.class);\n \t\tloginService.login(GWT.getHostPageBaseURL(), new AsyncCallback<LoginInfo>() {\n \t\t public void onFailure(Throwable error) {\n \t\t }\n \n \t\t public void onSuccess(LoginInfo result) {\n \t\t loginInfo = result;\n \t\t if(loginInfo.isLoggedIn()) {\n \t\t \tloadEditorAndService();\n \t\t } else {\n \t\t loadLogin();\n \t\t }\n \t\t }\n \t\t });\t\t\n \t}", "title": "" } ]
26468f91124c1cc14fc344003123d400
/ ('async' ''? | 'sync' ''?)? block
[ { "docid": "cc310f81e79ccf0d1a28989e3c6eaeb7", "score": "0.0", "text": "static boolean blockBody(PsiBuilder builder_, int level_) {\n if (!recursion_guard_(builder_, level_, \"blockBody\")) return false;\n if (!nextTokenIs(builder_, \"\", ASYNC, SYNC, LBRACE)) return false;\n boolean result_;\n Marker marker_ = enter_section_(builder_);\n result_ = blockBody_0(builder_, level_ + 1);\n result_ = result_ && block(builder_, level_ + 1);\n exit_section_(builder_, marker_, null, result_);\n return result_;\n }", "title": "" } ]
[ { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.6582064", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.6582064", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.6582064", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.6582064", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.6582064", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.6582064", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.6582064", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.6582064", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.6582064", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.6582064", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.6582064", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.6582064", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.6582064", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.6582064", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.6582064", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.6582064", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.6582064", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.6582064", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.6582064", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.6582064", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.6582064", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.6582064", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.6582064", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.6582064", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.6582064", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.6582064", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.6582064", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.6582064", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.6582064", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.6582064", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.6582064", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.6582064", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.6582064", "text": "@In Boolean async();", "title": "" }, { "docid": "1fe9eb41555feaf69637075b66dc5d89", "score": "0.6582064", "text": "@In Boolean async();", "title": "" }, { "docid": "0d80ba2b8e440dfe6c94cf9d7097fbbf", "score": "0.6283118", "text": "void getContent(AsyncCallback<String> async);", "title": "" }, { "docid": "5fec24e7808e089bdf16364a1ccd7c72", "score": "0.6272616", "text": "protected abstract Result doAsync() throws Exception;", "title": "" }, { "docid": "f9193fa016bdef417cca39dfe4a5940f", "score": "0.614379", "text": "public AsyncInvoker async();", "title": "" }, { "docid": "ac4b237316ae47f8849a05baeb47adfa", "score": "0.59586835", "text": "@Override\n public boolean isAsync() {\n return false;\n }", "title": "" }, { "docid": "022c4c0e3e6d2c5540b422b8cc510be5", "score": "0.5892857", "text": "Await createAwait();", "title": "" }, { "docid": "afe19489cfc1601a25d80a43d18ef7f0", "score": "0.5770854", "text": "public abstract void runAsync();", "title": "" }, { "docid": "9223da3bc4613779deebf50550770869", "score": "0.56618744", "text": "static void asyncSample() {\n asyncPlaceOrder();\n\n }", "title": "" }, { "docid": "c391d84440788ff835d7e06ea35b215b", "score": "0.56418234", "text": "boolean isSynchronous();", "title": "" }, { "docid": "c391d84440788ff835d7e06ea35b215b", "score": "0.56418234", "text": "boolean isSynchronous();", "title": "" }, { "docid": "1b3825d32ca7a6f735094619cdb3951b", "score": "0.55478835", "text": "default void startAsync() {\n startAsync(null);\n }", "title": "" }, { "docid": "18fa4ebe94e8743d44ba598b6446e0a2", "score": "0.5522753", "text": "void emitAsync(Callback<? super O> callback);", "title": "" }, { "docid": "c5cf4932210aa47030b99c10c3f2a2ad", "score": "0.5459783", "text": "@Override\n public Object getAsyncState() {\n return null;\n }", "title": "" }, { "docid": "98dab3e0274c39c3e1622fa2f1d09bfd", "score": "0.5435963", "text": "<T> T callSync(Call<T> call);", "title": "" }, { "docid": "dee1c946fb15252d5b8bca7e9634a555", "score": "0.54150265", "text": "public abstract void runSync();", "title": "" }, { "docid": "8ad14ef0f76b03cb5f20649afde3638b", "score": "0.5372143", "text": "@Override\n public WaitHandle getAsyncWaitHanle() {\n return null;\n }", "title": "" }, { "docid": "c16e22bcb5a967577526af490be56189", "score": "0.53628206", "text": "public interface AsyncMetaClient {\n\n\n /**\n * List all spaces\n *\n * @return callback ListSpaceCallback\n */\n public abstract ListenableFuture<Optional<ListSpacesResp>> listSpaces();\n\n /**\n * Get Parts Allocations\n *\n * @param spaceName space name\n * @return\n */\n public abstract ListenableFuture<Optional<GetPartsAllocResp>> getPartsAlloc(String spaceName);\n\n /**\n * List Tags\n *\n * @param spaceName space name\n * @return\n */\n public abstract ListenableFuture<Optional<ListTagsResp>> listTags(String spaceName);\n\n /**\n * List Edges\n *\n * @param spaceName space name\n * @return\n */\n public abstract ListenableFuture<Optional<ListEdgesResp>> listEdges(String spaceName);\n\n}", "title": "" }, { "docid": "888c59b4da6225e08049eaf9ac62c659", "score": "0.53383106", "text": "public CompletableFuture<Boolean> isGenuineAsync() {\n\t\treturn isGenuineAsync(null);\n\t}", "title": "" }, { "docid": "85ac1383c401da5977d7f935ee03551e", "score": "0.5264435", "text": "void processAsync(I input, Callback<? super O> callback);", "title": "" }, { "docid": "3206f25344ecd94224902eefc948070f", "score": "0.5241659", "text": "public Async async() {\n return async;\n }", "title": "" }, { "docid": "0252f6e6d7f3e558342e7ecf6d70ffad", "score": "0.5207235", "text": "public interface AsynchronousModel {\n\n /**\n * Provide the threading information for view models method calls.\n * The returned Executor is used to call methods identified by\n * {@link CALL} enum.\n *\n * @param asynchCall Identification of the method call\n * @param node Object node\n * @return an instance of Executor\n */\n Executor asynchronous(CALL asynchCall, Object node) throws UnknownTypeException;\n \n}", "title": "" }, { "docid": "e0489e9f7d1dc485ed4f9e82b0bc4e9d", "score": "0.51772386", "text": "@Override\n\t\t\tpublic void configureAsyncSupport(AsyncSupportConfigurer arg0) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "7b77b54ae839ce164b2182bc5ae24714", "score": "0.5170773", "text": "public interface MessageProcessor {\n\n public void processAsync(SimpleMessage simpleMessage);\n\n}", "title": "" }, { "docid": "ab01c0ccd3dd1308bb258fdf5db59df9", "score": "0.5160683", "text": "public interface IAsyncObjectProxy {\n\t/**\n\t * 异步调用\n\t * \n\t * 请注意:远程服务的方法参数不能区分基础类型和包装类型的\n\t * <pre>{@code\n\t * public String fun(int p){\n\t * \t\treturn xxx;\n\t * }\n\t * \n\t * public String fun(Integer p){\n\t * \t\treturn yyy;\n\t * }\t \n\t * \n\t * 类似上述两个方法在异步调用时是无法区分的\n\t * </pre>\n\t * \n\t * @param funcName\n\t * @param args\n\t * @return\n\t * @throws InterruptedException\n\t */\n public RpcFuture call(String funcName, Object... args) throws InterruptedException;\n}", "title": "" }, { "docid": "c59e2d936ecff0ad7a8a90c21c0d8580", "score": "0.51428217", "text": "public void inSync();", "title": "" }, { "docid": "fab6b171b2dc44244edfca678865e963", "score": "0.5140217", "text": "boolean hasSynchronous();", "title": "" }, { "docid": "0ece19a3ca2d36927d62d227b2b4a1d0", "score": "0.51221573", "text": "public interface Sync {\n /**\n * Register interest in becoming a leader, the given callback will be invoked when leadership is\n * attained.\n */\n AsyncFuture<Listener> registerLeader(String leaderId, LeaderCallback callback);\n\n /**\n * Register a member with the given id.\n */\n AsyncFuture<Listener> registerMember(String memberId, MemberCallback callback);\n\n /**\n * Get a list of all assigned tasks.\n */\n AsyncFuture<List<AssignedTask>> getAssignedTasks();\n\n /**\n * Assign the given task from the given member.\n */\n AsyncFuture<Void> assignTask(String memberId, String taskId);\n\n /**\n * Unassign the given task from the given member.\n */\n AsyncFuture<Void> unassignTask(String memberId, String taskId);\n\n @Data\n class AssignedTask {\n private final String memberId;\n private final String taskId;\n }\n}", "title": "" }, { "docid": "d967f32ca903eeae7c70209f4c771aa0", "score": "0.5097271", "text": "boolean needsSynchonize();", "title": "" }, { "docid": "77961cab1503c9e4de9e3496461f2f82", "score": "0.5093861", "text": "public interface ActionHandlerAsync {\n /**\n * This method invokes the request identified by the id.\n *\n * @param requestId The id of the request that the action must be invoked on.\n * @throws com.rift.coad.change.request.action.ActionException\n * @throws java.rmi.RemoteException\n */\n public String invokeAction(String requestId) throws ActionException, RemoteException;\n\n\n /**\n * This method is used to invoke the action asynchronously.\n *\n * @param request The request to invoke.\n * @throws java.rmi.RemoteException\n */\n public String invokeAction(String masterRequestId, Request request) throws RemoteException;\n \n \n /**\n * This method is called to reinvoke a paused action.\n *\n * @param actionId The id of the action to re-invoke\n * @throws java.rmi.RemoteException\n */\n public String resumeAction(String actionId) throws RemoteException;\n}", "title": "" }, { "docid": "6654f2479693c26344a57090c292204d", "score": "0.5081437", "text": "Object core_syncing() throws Throwable;", "title": "" }, { "docid": "4ba08b7f4475b9ec472a470fca5948e1", "score": "0.50715876", "text": "public abstract String getData_JEasyUI_CBT_Async();", "title": "" }, { "docid": "e7ac6d73bb0e8aad63061498238659fa", "score": "0.5067126", "text": "private void resultIsAsync(AsyncResult<T> aresult) {\r\n\t\tsynchronized (this) {\r\n\t\t\tif (aresult.isReady()) \r\n\t\t\t\textractAsyncResultUnsynchronized(aresult);\r\n\t\t\telse \r\n\t\t\t\taresult.addNotifier(new Notifier<T>() {\r\n\t\t\t\t\tpublic void resultReady(AsyncResult<T> result) {\r\n\t\t\t\t\t\textractAsyncResultUnsynchronized(result);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b0d031b7229bb465d0fee8b2283eb8bc", "score": "0.50583994", "text": "public interface IHello {\n\n @Async\n void print();\n\n @Async\n void calc();\n}", "title": "" }, { "docid": "ee0d66f9740f6b32723952c8c0eae284", "score": "0.50567883", "text": "@Override // android.os.AsyncTask\n public /* synthetic */ String doInBackground(Void[] voidArr) {\n return mo9840a();\n }", "title": "" }, { "docid": "986c72fe1e39086c1bd439289967b0d4", "score": "0.50542873", "text": "public boolean hasIsAsync() {\n return result.hasIsAsync();\n }", "title": "" }, { "docid": "f6090662d02479b29915d27b6cf128b8", "score": "0.5040487", "text": "@Override\n\tpublic boolean isValidAsyncTask(AsyncState asyncState) {\n\t\treturn ASYNC_STATE==asyncState;\n\t}", "title": "" }, { "docid": "31c2741ed705c2a92db6e2e60de79c15", "score": "0.5040468", "text": "void onSync(RepairJobDesc desc, Future syncTask);", "title": "" }, { "docid": "b5a634d419a7128d6b1a402346434923", "score": "0.50324386", "text": "public interface AsyncAction <T> {\n Object run() throws UiException;\n}", "title": "" }, { "docid": "ab784572353d25a3d430849a9ad93ebc", "score": "0.5022776", "text": "default void startAsync(final @Nullable Runnable post) {\n start(post, true);\n }", "title": "" }, { "docid": "4becd0011435e3d29cf9a5077d3d454c", "score": "0.5016765", "text": "@Override\n\tpublic void configureAsyncSupport(AsyncSupportConfigurer configurer) {\n\t\t\n\t}", "title": "" }, { "docid": "855d41a8b75ef9618e7cf2348193850c", "score": "0.50093824", "text": "@Test\n public void testAsyncPGCommandBlockDoesntProduceError() throws Exception {\n assertMemoryLeak(() -> {\n try (\n final PGWireServer server = createPGServer(2);\n WorkerPool workerPool = server.getWorkerPool()\n ) {\n workerPool.start(LOG);\n try (final Connection connection = getConnection(server.getPort(), true, true)) {\n try (Statement statement = connection.createStatement()) {\n boolean result = statement.execute(\"SELECT pg_advisory_unlock_all();\\nCLOSE ALL;\\nUNLISTEN *;\\nRESET ALL;\");\n Assert.assertTrue(result);\n ResultSet results = statement.getResultSet();\n results.next();\n assertNull(null, results.getString(1));\n }\n }\n }\n });\n }", "title": "" }, { "docid": "561c1b8924e6d72541ad1c83891aeb48", "score": "0.50085306", "text": "public interface AsynchronousProcess {\n}", "title": "" }, { "docid": "bdc416b31e76fdde439c07cf6dcca3cf", "score": "0.4996376", "text": "public void badPractices() {\n String helloWorld = Mono.just(\"Hello world\").block();\n System.out.println(helloWorld);\n\n // Same for Flux and the blockFirst, blockLast and non-synchronous Java methods like\n // toStream and toIterable\n String fromFlux = Flux.just(\"Hello\", \"World\").blockLast(Duration.ofMillis(10000));\n System.out.println(fromFlux);\n }", "title": "" }, { "docid": "fa6378d3f2eafdfdf6269f99a21b2190", "score": "0.49924213", "text": "@Test\n void supplyAsync ( ) throws ExecutionException, InterruptedException {\n final CompletableFuture<String> future = CompletableFuture.supplyAsync(( ) -> {\n try {\n TimeUnit.SECONDS.sleep(5);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n return \"hemant\";\n });\n final String result = future.get();\n System.out.println(result);\n }", "title": "" }, { "docid": "383e0882dc17da5ea4588454bfc0cedb", "score": "0.49921227", "text": "public interface asyncResponse {\r\n void processFinish(String output);\r\n}", "title": "" }, { "docid": "5e4d0243a5c12718af4966bfaf401094", "score": "0.4986441", "text": "public interface Future<T> {\n\n T await() throws Exception;\n\n T await(long amount, TimeUnit unit) throws Exception;\n\n}", "title": "" }, { "docid": "5300424ed4d1fdafe9ef772016aca0c9", "score": "0.49821115", "text": "public abstract void zzc(A a, TaskCompletionSource<Void> taskCompletionSource);", "title": "" }, { "docid": "875d3c254ef440ab8e76bcc8e21769c5", "score": "0.49804145", "text": "public abstract DeferredResult<Response<WritablePacket>> readWithBlocking();", "title": "" }, { "docid": "e19461cd5ccd7d7c24ba8f5b6a58cd37", "score": "0.49711907", "text": "public interface AsyncExecutor extends Executor {\n}", "title": "" }, { "docid": "bcaa9ff527732bee08c68af42775b58f", "score": "0.4941048", "text": "java.util.concurrent.Future<GetSendQuotaResult> getSendQuotaAsync(com.amazonaws.handlers.AsyncHandler<GetSendQuotaRequest, GetSendQuotaResult> asyncHandler);", "title": "" }, { "docid": "be8e64426aeb6b1bd40e64812cec4524", "score": "0.4935625", "text": "public interface IAsyncObjectProxy {\n public RpcFuture call(String funcName, Object... args);\n}", "title": "" }, { "docid": "1e140ab470d1edec9dbebf165c2aadb0", "score": "0.49196678", "text": "public abstract void sync();", "title": "" }, { "docid": "3d9df5604fa7a33821ee22d6ecbf1c55", "score": "0.4913393", "text": "void runTaskAsynchronously(Runnable task);", "title": "" }, { "docid": "8bcc5fdff4602fb099d2b19c45728f4c", "score": "0.4903015", "text": "@Fluent\n RedisClient sync(Handler<AsyncResult<Void>> handler);", "title": "" }, { "docid": "3f59f0b80a9e4409b56636c32e301d29", "score": "0.48963138", "text": "public TaskAwaiter GetAwaiter()\r\n { \r\n return Task.GetAwaiter(); \r\n }", "title": "" }, { "docid": "708ad3d352896a20f6826d96eacd1be3", "score": "0.48912993", "text": "void processAsyncInfo(String asyncInfoString) {\n mu.lock();\n // Ignore errors, we will simply not update the server pool...\n processInfo(asyncInfoString);\n mu.unlock();\n }", "title": "" }, { "docid": "918d25883eb874a6364a495dec38d31e", "score": "0.48888242", "text": "private void invokeAsync() {\n blockingMethodOnMainThread();\n }", "title": "" }, { "docid": "7ee19dda9c71daaa534bc1f542a0fbf3", "score": "0.48861644", "text": "@UseAsyncMethod\r\n public String changeStudent(String name) {\r\n System.out.println(\"Executing operation changeStudent synchronously\\n\");\r\n return \"How are you \" + name;\r\n }", "title": "" }, { "docid": "c988381db958276fefda8e3c46bb2874", "score": "0.48838067", "text": "@SuppressWarnings(\"unchecked\")\n @Test\n public void asyncEndpointTest() {\n Log.v(\"NonEmptyStringTest\", \"Running NonEmptyStringTest test\");\n String result = null;\n AsyncEndpoint endpointsAsyncTask = new AsyncEndpoint(InstrumentationRegistry.getInstrumentation().getTargetContext());\n endpointsAsyncTask.execute();\n try {\n result = endpointsAsyncTask.get();\n Log.d(LOG_TAG, \"Retrieved a non-empty string successfully: \" + result);\n } catch (Exception e) {\n e.printStackTrace();\n }\n assertNotNull(result);\n }", "title": "" }, { "docid": "2628896fc4b090473efc037e90e6d7c8", "score": "0.4881774", "text": "private static void Lesson3_Futures_Part3() {\n }", "title": "" }, { "docid": "8308e613829a74586b9bb825b4411491", "score": "0.48812848", "text": "@Test\n public void testAsyncInsert() {\n final Text aKey = Variables.register(\"aKey\", TestData.getText());\n final Value aValue = Variables.register(\"aValue\",\n Value.wrap(Convert.javaToThrift(TestData.getString()))); // force\n // string\n final Identifier aRecord = Variables.register(\"aRecord\", getRecord());\n final long aTimestamp = Time.now();\n\n final Text bKey = Variables.register(\"bKey\", TestData.getText());\n final Value bValue = Variables.register(\"bValue\",\n Value.wrap(Convert.javaToThrift(TestData.getString()))); // force\n // string\n final Identifier bRecord = Variables.register(\"bRecord\", getRecord());\n final long bTimestamp = Time.now();\n\n CorpusChunk serial = (CorpusChunk) create(BloomFilter.create(100));\n serial.insert(aKey, aValue, aRecord, aTimestamp, Action.ADD);\n serial.insert(bKey, bValue, bRecord, bTimestamp, Action.ADD);\n\n final CorpusChunk async = (CorpusChunk) chunk;\n\n Runnable a = new Runnable() {\n\n @Override\n public void run() {\n async.insert(aKey, aValue, aRecord, aTimestamp, Action.ADD);\n }\n\n };\n\n Runnable b = new Runnable() {\n\n @Override\n public void run() {\n async.insert(bKey, bValue, bRecord, bTimestamp, Action.ADD);\n }\n\n };\n\n ExecutorService executor = Executors.newFixedThreadPool(2);\n executor.execute(a);\n executor.execute(b);\n executor.shutdown();\n while (!executor.isTerminated()) {\n continue;\n }\n\n Assert.assertEquals(serial.dump().split(\"\\n\")[1],\n async.dump().split(\"\\n\")[1]); // must ignore the first line of\n // dump output which contains the\n // chunk id\n\n }", "title": "" }, { "docid": "650d92eaf7c7a2ebaeb3e44407ed5cb9", "score": "0.48696664", "text": "public boolean isFullAsync() {\n\t\treturn mIsFullAsync;\n\t}", "title": "" }, { "docid": "c5431c67b8ae22aa24c21f086fd17896", "score": "0.48649713", "text": "private void checkAndBroadcastNoAsyncUpdate() {\n\t\tif (pendingAsyncUpdatesAmount.get() == 0) {\n\t\t\tList<Runnable> callbacksToExecute;\n\t\t\tsynchronized (noAsyncUpdateCallbacks) {\n\t\t\t\tcallbacksToExecute = new ArrayList<>(noAsyncUpdateCallbacks);\n\t\t\t\tnoAsyncUpdateCallbacks.clear();\n\t\t\t}\n\t\t\tLOGGER.debug(() -> \"checkAndBroadcastNoAsyncUpdate(): broadcast no async update...\");\n\t\t\tcallbacksToExecute.forEach(c -> c.run());\n\t\t}\n\t}", "title": "" }, { "docid": "62cae3a5feff4020f49187dd9df0d7e6", "score": "0.48627347", "text": "private void monitorActiveThread() {\n if (Bukkit.isPrimaryThread()) {\n try {\n throw new IllegalAccessException(\"async function called from sync thread\");\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "1f0df9ecc39f3dff65f6bfad50c1ae94", "score": "0.4854397", "text": "public interface AsyncExecutionHandle\n extends AsyncIterationHandle<RecordValue> {\n\n /**\n * {@inheritDoc}\n *\n * <p>When this method is called for a data definition or administrative\n * operation, the {@code next} handler will not be called, and the {@link\n * #getInfo} or {@link #getInfoAsJson} methods should be used to obtain the\n * results of the operation.\n *\n * <p>If an error occurs during an update, then the {@code onResult} method\n * of the {@code next} parameter will be called with a non-{@code null}\n * {@code result} argument that represents the record value being updated,\n * in addition to the exception. In all other cases where the {@code\n * exception} argument is non-{@code null}, the {@code result} argument\n * will be {@code null}.\n */\n @Override\n void iterate(ResultHandler<RecordValue> next, CompletionHandler completed);\n\n /**\n * Returns the kind of statement result produced by the associated\n * statement execution.\n *\n * @return the kind of statement result\n */\n Kind getKind();\n\n /**\n * Returns the statement object for the associated statement execution.\n *\n * @return the statement\n */\n Statement getStatement();\n\n /**\n * Returns the administrative plan id for the associated statement\n * execution if the statement was a DDL statement: create or remove table,\n * a create or remove index, or an alter index. When using the Admin CLI\n * (runadmin) utility, administrative operations are identified by plan\n * id. The plan id can be used to correlate data definition and\n * administrative statements issued programmatically using the API against\n * operations viewed via the interactive Admin CLI or other monitoring\n * tool.\n *\n * <p>Returns 0 if the statement was not an administrative operation, or\n * did not require execution.\n *\n * @return the plan ID or {@code 0}\n */\n int getPlanId();\n\n /**\n * Returns information about the completed execution of the associated\n * statement, in human readable form. If the statement was a data\n * definition command, the information will show the start and end time of\n * the operation and details about server side processing. Returns {@code\n * null} if the statement was not an administrative operation, or if\n * statement execution is not completed.\n *\n * @return info or {@code null}\n */\n String getInfo();\n\n /**\n * Returns the same information as {@link #getInfo}, in JSON format.\n * Returns {@code null} if the statement was not an administrative\n * operation, or if statement execution is not completed.\n *\n * @return info or {@code null}\n */\n String getInfoAsJson();\n}", "title": "" }, { "docid": "5547645fab2719ae567ed8708f0ac15f", "score": "0.48465392", "text": "@Override\r\n\t\t\t\tpublic Object executeAsyncScript(String script, Object... args) {\n\t\t\t\t\treturn null;\r\n\t\t\t\t}", "title": "" }, { "docid": "4c29a394b5bc885a182421fc81ec1467", "score": "0.48441395", "text": "@Override\n \tpublic void onBlock(User arg0, User arg1) {\n \n \t}", "title": "" }, { "docid": "7f341fdaf318541726e319a0f1150eb2", "score": "0.4827621", "text": "public Token getAwaitKeyword() {\n return awaitKeyword;\n }", "title": "" } ]
e85faa2957853feff42b1682ab1e881f
/ Input: lists = [[1,4,5],[1,3,4],[2,6]] Output: [1,1,2,3,4,4,5,6]
[ { "docid": "a19af82d39d8880ffd962263cc52562e", "score": "0.0", "text": "public static void main(String[] args) {\n MergeKSortedLists mergeKSortedLists = new MergeKSortedLists();\n ListNode n2 = new ListNode(5);\n ListNode n1 = new ListNode(4, n2);\n ListNode l1 = new ListNode(1, n1);\n\n ListNode n4 = new ListNode(4);\n ListNode n3 = new ListNode(3, n4);\n ListNode l2 = new ListNode(1, n3);\n\n ListNode n5 = new ListNode(6);\n ListNode l3 = new ListNode(2, n5);\n ListNode[] lists = {l1, l2, l3};\n ListNode node = mergeKSortedLists.mergeKLists(lists);\n while(node != null) {\n System.out.println(node.val);\n node = node.next;\n }\n\n }", "title": "" } ]
[ { "docid": "1d0c338cacc6810b6763d0f6d1db69f9", "score": "0.63030636", "text": "public static List<Integer> mergePostingLists(List<Integer> list1, List<Integer> list2) {\n\n int element1 = list1.get(0);\n int element2 = list2.get(0);\n\n List<Integer> result = new ArrayList<>();\n\n if (element1 < element2) {\n result.addAll(list1);\n result.addAll(list2);\n } else {\n result.addAll(list2);\n result.addAll(list1);\n }\n\n return result;\n }", "title": "" }, { "docid": "aab02fa34d19d4014fd042bf2e6ba36c", "score": "0.61385024", "text": "public ListNode mergeKLists(ListNode[] lists) {\n if (lists.length == 0) {\n return null;\n } //really should thrown InvalidArgumentException\n int listArrMax = lists.length;\n int listIndex = 0;\n int firstListFoundIndex = 0;\n boolean firstListFound = false;\n while (listArrMax > 1) {\n for (int i = 0; i < listArrMax; i++) {\n if (lists[i] == null) {\n continue;\n } else if (firstListFound) {\n lists[listIndex++] = merge2Lists(lists[firstListFoundIndex], lists[i]);\n firstListFound = false;\n } else {\n firstListFoundIndex = i;\n firstListFound = true;\n }\n }\n if (firstListFound) {\n lists[listIndex++] = lists[firstListFoundIndex];\n }\n firstListFound = false;\n firstListFoundIndex = 0;\n listArrMax = listIndex;\n listIndex = 0;\n }\n return lists[0];\n }", "title": "" }, { "docid": "0eec15ca95ad0c1f968a0d07466cbb6c", "score": "0.61162186", "text": "public ListNode mergeKLists(ListNode[] lists){\n if(lists.length== 0||lists == null) return null;\n int end = lists.length - 1;\n while(end>0){\n int begin = 0;\n while(begin<end){\n lists[begin] = mergeTwoLists(lists[begin],lists[end]);\n end--;\n begin++; \n }\n }\n return lists[0];\n}", "title": "" }, { "docid": "d153ee0bc44f7ee5559ba019b542b8ff", "score": "0.60942155", "text": "public static <E extends Comparable<E>> List<E> merge(List<List<E>> lists) {\r\n\t\tif (lists == null || lists.isEmpty())\r\n\t\t\treturn new ArrayList<>();\r\n\r\n\t\tPriorityQueue<Element<E>> pq = new PriorityQueue<>(lists.size()\r\n\t\t// ,new ElementComparator<E>() // or use external comparator\r\n\t\t);\r\n\r\n\t\tint allSize = 0;\r\n\t\tfor (List<E> list : lists) {\r\n\t\t\tif (list != null && !list.isEmpty()) {\r\n\t\t\t\tElement<E> e = new Element<>();\r\n\t\t\t\te.iterator = list.iterator();\r\n\t\t\t\te.value = e.iterator.next();\r\n\t\t\t\tassert e.value != null;\r\n\t\t\t\tpq.add(e);\r\n\r\n\t\t\t\tallSize += list.size();\r\n\t\t\t}\r\n\t\t}\r\n\t\tList<E> result = new ArrayList<>(allSize);\r\n\r\n\t\twhile (pq.size() > 1) {\r\n\t\t\tElement<E> e = pq.poll();\r\n\t\t\tassert e.value != null;\r\n\t\t\tresult.add(e.value);\r\n\t\t\tIterator<E> iterator = e.iterator;\r\n\t\t\tif (iterator.hasNext()) {\r\n\t\t\t\te.value = iterator.next();\r\n\t\t\t\tassert e.value != null;\r\n\t\t\t\tpq.add(e);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (!pq.isEmpty()) {\r\n\t\t\tElement<E> e = pq.poll();\r\n\t\t\tresult.add(e.value);\r\n\t\t\twhile (e.iterator.hasNext()) {\r\n\t\t\t\tresult.add(e.iterator.next());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "99e84b6f6ad964208d2b2e500892bbc3", "score": "0.5999204", "text": "public ListNode mergeKLists(ListNode[] lists) {\n if (lists == null || lists.length == 0) {\n return null;\n }\n int last = lists.length - 1;\n int i = 0;\n while (last != 0) {\n while (i < last) {\n lists[i] = mergeTwoLists(lists[i], lists[last]);\n i++;\n last--;\n }\n i = 0;\n }\n return lists[0];\n }", "title": "" }, { "docid": "19ef091818c6cd30e2c0b78500db7aad", "score": "0.59941083", "text": "private String[] mergeArrays(String[] list1, String[] list2) {\n String[] merge = new String[list1.length + list2.length];\n int fill = 0;\n int i = 0;\n int j = 0;\n while (i < list1.length && j < list2.length) {\n int diff = list2[j].compareTo(list1[i]);\n if (diff > 0) {\n merge[fill++] = list1[i++];\n } else if (diff < 0) {\n merge[fill++] = list2[j++];\n } else {\n throw new IllegalArgumentException\n (\"Repeated value not allowed: \\\"\" + list1[i] + '\"');\n }\n }\n if (i < list1.length) {\n System.arraycopy(list1, i, merge, fill, list1.length-i);\n }\n if (j < list2.length) {\n System.arraycopy(list2, j, merge, fill, list2.length-j);\n }\n return merge;\n }", "title": "" }, { "docid": "8e1522ddc2531a2fd61cd7d37567c989", "score": "0.59739727", "text": "private List<List<?>> wrapLists(List<List<?>> lists) {\n List<List<?>> result = new ArrayList<List<?>>();\n for (List<?> list : lists) {\n List<?> resultList = new ArrayList<Object>(list);\n result.add(resultList);\n }\n return result;\n }", "title": "" }, { "docid": "9dd22ac9b941663eba45d16d24e6207c", "score": "0.59360325", "text": "public ListNode mergeKLists(ArrayList<ListNode> lists) {\n\t\tListNode pre = null;\r\n\t\tfor (ListNode l : lists)\r\n\t\t\tpre = mergeTwoLists(l, pre);\r\n\t\treturn pre;\r\n\t}", "title": "" }, { "docid": "586d032107de8413ef4a90eeeddaeab3", "score": "0.5924379", "text": "public ListNode mergeKLists2(ListNode[] lists) {\n ListNode merged = new ListNode(-1);\n ListNode current = merged;\n ArrayList<Integer> nodes = new ArrayList<>();\n\n for ( ListNode list : lists) {\n while ( list != null ) {\n nodes.add(list.val);\n list = list.next;\n }\n }\n\n Collections.sort(nodes);\n\n for ( int val : nodes ) {\n current.next = new ListNode(val);\n current = current.next;\n }\n\n return merged.next;\n }", "title": "" }, { "docid": "b24074446a08ec17d497a1bd8715abd3", "score": "0.58844066", "text": "public static ListNode mergeKLists(ListNode[] lists) {\n PriorityQueue<ListNode> heap = new PriorityQueue<>(Comparator.comparingInt(a -> a.val));\n for (ListNode l : lists) {\n if (l != null) heap.offer(l);\n }\n ListNode res = new ListNode();\n ListNode cur = res;\n while (!heap.isEmpty()) {\n ListNode tmp = heap.poll();\n cur.next = tmp;\n cur = cur.next;\n if (tmp.next != null) {\n heap.offer(tmp.next);\n }\n }\n\n return res.next;\n }", "title": "" }, { "docid": "beb4b4e7bd77ef92fdfef76978db71b9", "score": "0.58735764", "text": "public ListNode mergeKLists(ListNode[] lists) {\n ListNode merged = new ListNode(-1); // set a dummy node\n ListNode current = merged; // have a reference to head of list to start adding things to it\n\n PriorityQueue<Integer> queue = new PriorityQueue<>();\n\n for ( int i = 0; i < lists.length; i++ )\n while ( lists[i] != null ) {\n queue.add(lists[i].val);\n lists[i] = lists[i].next;\n }\n\n while ( !queue.isEmpty() ) {\n int min = queue.remove();\n current.next = new ListNode(min);\n current = current.next;\n\n }\n\n\n return merged.next;\n }", "title": "" }, { "docid": "4e070de8ae8127b9fdcb2c475dd0b936", "score": "0.57968014", "text": "public ListNode mergeKLists(List<ListNode> lists) {\n\t\tif(lists == null || lists.isEmpty()) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tif(lists.size() == 1) {\r\n\t\t\treturn lists.get(0);\r\n\t\t}\r\n\t\tListNode[] stack = new ListNode[lists.size()];\r\n\t\tListNode result = new ListNode(-1);\r\n\t\tListNode tail = result;\r\n\t\tint i=0;\r\n\t\tfor(ListNode node : lists) {\r\n\t\t\tif(node != null) {\r\n\t\t\tstack[i] = node;\r\n\t\t\ti++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int j=(i-1)/2; j>=0; j--) {\r\n\t\t\trebalance(stack, j, i-1);\r\n\t\t}\r\n\t\twhile(stack[0] != null) {\r\n\t\t\ttail.next = stack[0];\r\n\t\t\ttail = tail.next;\r\n\t\t\tstack[0] = stack[0].next;\r\n\t\t\ti=stack.length-1;\r\n\t\t\tif(stack[0] == null) {\r\n\t\t\t\tfor(; i>0&&stack[i]==null; i--);\r\n\t\t\t\tif(i == 0) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tListNode temp = stack[0];\r\n\t\t\t\tstack[0] = stack[i];\r\n\t\t\t\tstack[i] = temp;\r\n\t\t\t}\r\n\t\t\trebalance(stack, 0, i);\r\n\t\t}\r\n\t\t\r\n\t\treturn result.next;\r\n }", "title": "" }, { "docid": "afed1bf4542d75657877513eabba2f00", "score": "0.5754704", "text": "@Test\n public void flatMap(){\n List<Integer> list1 = Arrays.asList(1, 2, 3);\n List<Integer> list2 = Arrays.asList(4, 5, 6);\n List<Integer> list3 = Arrays.asList(7, 8, 9);\n List<List<Integer>> allLists = Arrays.asList(list1, list2, list3);\n\n allLists.stream()\n //.flatMap(list -> list.stream())\n .forEach(System.out::println);\n }", "title": "" }, { "docid": "658554b30b49b3e637c64d4b2a9ff13c", "score": "0.57456315", "text": "public ListNode mergeKLists(ListNode[] lists) {\n if (lists == null || lists.length == 0) return null;\n \n Queue<ListNode> heap = new PriorityQueue(lists.length, new Comparator<ListNode>() {\n @Override\n public int compare(ListNode l1, ListNode l2) {\n return l1.val - l2.val;\n }}\n );\n for (ListNode n : lists) if (n != null) heap.add(n);\n \n ListNode dummy = new ListNode(0);\n ListNode tail = dummy;\n while (!heap.isEmpty()) {\n tail.next = heap.poll();\n tail = tail.next;\n if (tail.next != null) heap.add(tail.next);\n }\n return dummy.next;\n }", "title": "" }, { "docid": "bcb8cc0988ec1b6e955ab1098f19f2aa", "score": "0.5700815", "text": "public static <T> List<T> union(List<List<T>> arrays){\n Objects.requireNonNull(arrays);\n arrays.forEach(i -> Objects.requireNonNull(i));\n return iUnion(arrays, Function.identity(), Objects::equals);\n }", "title": "" }, { "docid": "13438cf676682091ce0988ee914f6d1b", "score": "0.56966066", "text": "public ListNode mergeKLists(ListNode[] lists) {\n if(lists == null || lists.length == 0){\n return null;\n }\n int interval = 1; //注意:interval的使用 & 这个方法也用到了merge method\n while(interval < lists.length) {\n for(int i = 0; i < lists.length - interval; i += 2 * interval) {\n lists[i] = merge(lists[i], lists[i+interval]);\n }\n interval *= 2;\n }\n return lists[0];\n }", "title": "" }, { "docid": "860910db161bcd415929b75d46ce6538", "score": "0.5679267", "text": "public static <T> List<List<T>> zip(List<List<T>> arrays){\n Objects.requireNonNull(arrays);\n int size = arrays.get(0).size();\n for(List<T> array : arrays){\n if(array.size() != size){\n throw new IllegalArgumentException(\"All arrays must be the same size\");\n }\n }\n return iUnzip(arrays, Function.identity());\n }", "title": "" }, { "docid": "bce47b314bde8d5c2c958842e763915c", "score": "0.56706804", "text": "private static List<List<Integer>> permutate(List<List<Integer>> input) {\n List<List<Integer>> res = new ArrayList<>();\n backtrack(res, input, new HashSet<>(), new HashSet<>());\n return res;\n }", "title": "" }, { "docid": "73623dab4da84f5318bf919bee43069d", "score": "0.5653812", "text": "public ListNode mergeKLists3(ListNode[] lists) {\n if ( lists.length == 0 ) return null;\n ListNode mergedList = lists[0];\n for ( int i = 1; i < lists.length; i++ ) {\n mergedList = mergeTwoLists(mergedList, lists[i]);\n }\n\n return mergedList;\n }", "title": "" }, { "docid": "f9cdd2b0e158bf90a02a3d0a883640fb", "score": "0.56478006", "text": "public ListNode mergeKLists(ListNode[] lists) {\n if (lists == null || lists.length == 0) {\n return null;\n }\n \n PriorityQueue<ListNode> queue = new PriorityQueue<ListNode>(new Comparator<ListNode>() {\n @Override\n public int compare(ListNode n1, ListNode n2) {\n if (n1.val > n2.val) {\n return 1;\n } else if (n1.val < n2.val) {\n return -1;\n } else {\n return 0;\n }\n }\n });\n \n ListNode dummyNode = new ListNode(0);\n ListNode head = dummyNode;\n for (ListNode node: lists) {\n // be carefull\n if (node != null) {\n queue.add(node);\n }\n }\n \n while(!queue.isEmpty()) {\n ListNode node = queue.remove();\n dummyNode.next = node;\n dummyNode = dummyNode.next;\n \n if (node.next != null) {\n queue.add(node.next);\n }\n }\n \n return head.next;\n }", "title": "" }, { "docid": "b5336094331c4f39582f136d26665aa7", "score": "0.56391263", "text": "private static int[] merge (int[] list1, int[] list2) {\n //Creates an array twice as long as the ones beinged merged\n int[] mergedList = new int[list1.length+list2.length];\n int i = 0, j = 0;\n \n //Loops as long as both lists have unsorted values\n while (i < list1.length && j < list2.length) {\n //Places the lower one of the lowest indexed values into the \n //newly created list\n if (list1[i] < list2[j]) {\n mergedList[i+j] = list1[i];\n i++;\n }\n else {\n mergedList[i+j] = list2[j];\n j++;\n }\n }\n //After one of the list is out of values, it appends everything else \n while (i < list1.length) {\n mergedList[i+j] = list1[i];\n i++;\n }\n while (j < list2.length) {\n mergedList[i+j] = list2[j];\n j++;\n }\n //Assumption is that the sorter always gets lists that are internally\n //sorted already, so appending doesn't unsort them \n \n //Returns the new list\n return mergedList;\n }", "title": "" }, { "docid": "cc6a9506256f6f1f599c7daa5a4c0b34", "score": "0.5628514", "text": "public List<List<Integer>> subsets1(int[] nums) {\n // create res and initializing\n List<List<Integer>> res = new ArrayList<>();\n // List<Integer> lst = new ArrayList<>();\n res.add(new ArrayList<>());\n\n for (int i = 0; i < nums.length; i++) {\n // generate new list from the old list\n List<List<Integer>> extra = new ArrayList<>();\n for (List<Integer> elem : res) {\n List<Integer> newElem = new ArrayList<>(elem);\n newElem.add(nums[i]);\n extra.add(newElem);\n }\n // add the new generated list into res.\n res.addAll(extra);\n }\n return res;\n }", "title": "" }, { "docid": "826c729d313138e438ef4a79f5135367", "score": "0.56222415", "text": "public static <T> List<List<T>> unzip(List<List<T>> arrays){\n Objects.requireNonNull(arrays);\n int size = arrays.get(0).size();\n for(List<T> array : arrays){\n if(array.size() != size){\n throw new IllegalArgumentException(\"All arrays must be the same size\");\n }\n }\n return iUnzip(arrays, Function.identity());\n }", "title": "" }, { "docid": "063f8a29b4a45e637ff3ad1485f6370a", "score": "0.56147146", "text": "public static ListNode mergeKLists1(ListNode[] lists) {\n // checking size since PriorityQueue cannot have initial size of 0.\n if (lists == null || lists.length == 0) {\n return null;\n }\n\n Queue<ListNode> minHeap = new PriorityQueue<>(\n lists.length,\n (node1, node2) -> Integer.compare(node1.val, node2.val)\n );\n\n ListNode dummy = new ListNode(0);\n ListNode tail = dummy;\n\n for (ListNode node : lists) {\n if (node != null) {\n minHeap.add(node);\n }\n }\n\n while (!minHeap.isEmpty()) {\n ListNode node = minHeap.remove();\n tail.next = node;\n tail = tail.next;\n if (node.next != null) {\n minHeap.add(node.next);\n }\n }\n\n return dummy.next;\n }", "title": "" }, { "docid": "ee04fbd9bf6f6d6b51d26ac11fc7974d", "score": "0.56055075", "text": "public List<List<Integer>> permute2(int[] nums) {\n List<List<Integer>> result = new LinkedList<List<Integer>>();\n if(nums.length == 0) return result;\n List<Integer> cur = new LinkedList<Integer>();\n cur.add(nums[0]);\n result.add(cur);\n for(int i = 1; i < nums.length; i++) {\n int curSize = result.size();\n for(int j = 0; j < curSize; j++) {\n for(int x = 0; x < result.get(j).size(); x++) {\n List<Integer> newList = new LinkedList<Integer>(result.get(j));\n newList.add(x, nums[i]);\n result.add(newList);\n }\n result.get(j).add(nums[i]);\n }\n }\n return result;\n }", "title": "" }, { "docid": "5581a401fad0aded26daf42f921a580b", "score": "0.5583731", "text": "public static ListNode mergeKLists(List<ListNode> lists) {\n PriorityQueue<ListNode> queue = new PriorityQueue<ListNode>( lists.size(),new Comparator<ListNode>(){\r\n\r\n @Override\r\n public int compare(ListNode o1, ListNode o2){\r\n return o1.val - o2.val;\r\n }\r\n });\r\n\r\n\r\n for (int i=0; i< lists.size() ; i++) {\r\n queue = addIntoQueue(queue, lists.get(i));\r\n }\r\n\r\n ListNode res = new ListNode(0);\r\n ListNode temp = res;\r\n while(!queue.isEmpty()){\r\n res.next = queue.poll();\r\n res = res.next;\r\n }\r\n\r\n return temp.next;\r\n\r\n }", "title": "" }, { "docid": "566ce8d46b155b3ca945b0d67071b1c2", "score": "0.55739236", "text": "private static List<List<String>> m1837a(List<String> list) {\n List<List<String>> arrayList = new ArrayList();\n ArrayList arrayList2 = new ArrayList();\n List list2 = arrayList2;\n for (String add : list) {\n list2.add(add);\n if (list2.size() >= 20) {\n arrayList.add(list2);\n arrayList2 = new ArrayList();\n } else {\n List list3 = list2;\n }\n Object obj = arrayList2;\n }\n if (list2.size() > 0) {\n arrayList.add(list2);\n }\n return arrayList;\n }", "title": "" }, { "docid": "4606d1998097ac87e7589cd94d3bc6d9", "score": "0.55526364", "text": "public ListNode mergeKLists2(ListNode[] lists) {\n int length = lists.length;\n if (length == 0) {\n return null;\n }\n if (length == 1) {\n return lists[0];\n }\n ListNode merge = lists[0];\n for (int i = 1; i < length; i++) {\n merge = mergeTwoLists(merge,lists[i]);\n }\n return merge;\n }", "title": "" }, { "docid": "58eedad80dab04cf6d56eb8bc72e6383", "score": "0.55440813", "text": "void backTrack( List<List<Integer>> lists,List<Integer> list,int []nums){\n if (list.size()==nums.length) {\n lists.add(new ArrayList<>(list));\n return;\n }else{\n for (int i=0;i<nums.length;i++){\n if (list.contains(nums[i]))continue;\n list.add(nums[i]);\n backTrack(lists,list,nums);\n list.remove(list.size()-1);\n //System.out.println(list+\"---\"+i);\n }\n }\n /* for (int i=start;i<nums.length;i++){\n list.add(nums[i]);\n backTrack(lists,list,nums,i+1);\n list.remove(list.size()-1);\n\n }*/\n\n }", "title": "" }, { "docid": "4edfe37d56f63ec2b8b077ce826a09c0", "score": "0.55325425", "text": "static <T, R> List<R> iUnzip(List<List<T>> arrays, Function<List<T>, R> iteratee){\n List<R> unzippedArrays = new ArrayList<>();\n for(int index = 0; index < arrays.get(0).size(); index++){\n List<T> unzippedArray = new ArrayList<>();\n for(List<T> array : arrays){\n unzippedArray.add(array.get(index));\n }\n unzippedArrays.add(iteratee.apply(unzippedArray));\n }\n return unzippedArrays;\n }", "title": "" }, { "docid": "b803961bb1d77a57c2731d076dbbb148", "score": "0.5529242", "text": "public static int[] merge(int[] list1, int[] list2) { \n // Create a new list to catch the sorted and merged list\n int[] mergeList = new int [list1.length + list2.length];\n int i = 0; // i is the index of list1\n int j = 0; // j is the index of list2\n\n for(int k = 0; k < mergeList.length; k++){\n \n // To check for out of bounds, evaluate if location i is greater than the length of list1\n if(i == list1.length){\n // Assign the remainder of list2 to mergeList\n for (int q = k; j < list2.length; q++){\n mergeList[q] = list2[j];\n j++;\n }\n return mergeList;\n\n // To check for out of bounds, evaluate if location j is greater than the length of list2\n } else if (j == list2.length){\n // Assign the remainder of list1 to the mergeList\n for (int q = k; i < list1.length; q++){\n mergeList[q] = list1[i];\n i++;\n } \n return mergeList;\n }\n\n // If the current number in list1 is greater than its counterpart\n // in list 2, it is stored in the mergeList array\n if (list1[i] <= list2[j]){\n mergeList[k] = list1[i];\n i++;\n } else {\n mergeList[k] = list2[j];\n j++;\n }\n }\n return mergeList;\n }", "title": "" }, { "docid": "21ed9f8aff3f0384916315c8d52590fa", "score": "0.5526054", "text": "private static <I> List<I> combineLists(List<I> left, List<I> right) {\n \tList<I> newLeft = new ArrayList<>(left);\n \tnewLeft.addAll(right);\n return newLeft;\n }", "title": "" }, { "docid": "c659a56251d081f8adf00181009c11db", "score": "0.551773", "text": "public ListNode mergeKLists1(ListNode[] lists) {\n if(lists == null || lists.length == 0){\n return null;\n }\n // PriorityQueue<ListNode> pq = new PriorityQueue<>(lists.length, (o1, o2) -> (o1.val - o2.val));\n PriorityQueue<ListNode> pq = new PriorityQueue<>(lists.length, new Comparator<ListNode>(){\n @Override\n public int compare(ListNode o1, ListNode o2){\n return o1.val - o2.val;\n }\n });\n for(ListNode list : lists){\n if(list != null){\t\t//注意:需要这个判断条件保证没有null pointer\n pq.offer(list);\n }\n }\n ListNode dummy = new ListNode(0);\n ListNode cur = dummy;\n while(!pq.isEmpty()){\n cur.next = pq.poll();\n cur = cur.next;\n if(cur.next != null){\n pq.add(cur.next);\n }\n }\n return dummy.next;\n }", "title": "" }, { "docid": "1b594693e30923f006183120c2048b49", "score": "0.55160546", "text": "@SafeVarargs\n\tpublic static List<Card> join(CardList... lists) {\n\t\tList<Card> result = new ArrayList<>();\n\t\tfor (CardList list: lists) {\n\t\t\tIterator<Node> it = list.getChildren().iterator();\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tNode node = it.next();\n\t\t\t\tif (node instanceof Card) {\n\t\t\t\t\tresult.add((Card) node);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t\t\n\t}", "title": "" }, { "docid": "7a890aa4f84ab2ac522cd19b1a0fea60", "score": "0.5515559", "text": "private static ArrayList<Long> reformat_lst_of_lsts(ArrayList<ArrayList<Integer>> lst) {\n ArrayList<Long> ret = new ArrayList<>();\n for (ArrayList<Integer> sublst : lst) {\n ret.add(converter_toint(sublst));\n }\n return ret;\n }", "title": "" }, { "docid": "2a2833e396f6ee6ce2d2a6af2f847c7b", "score": "0.55125713", "text": "public List<List<Integer>> permuteUnique(int[] nums) {\n\t\tList<List<Integer>> ans = new ArrayList<>();\n\t\tboolean[] used = new boolean[nums.length];\n\t\tList<Integer> cur = new ArrayList<>();\n\t\t\n\t\t// sorted at first\n\t\tArrays.sort(nums);\n\t\tdfs(nums, 0, used, cur, ans);\n\t\treturn ans;\n }", "title": "" }, { "docid": "c5bdf8aa061403de3540400cc781f56d", "score": "0.55064934", "text": "public ListNode mergeKLists(ArrayList<ListNode> lists) {\n if(lists.size() == 0) return null;\n PriorityQueue<ListNode> pq = new PriorityQueue<ListNode>(lists.size(), \n \tnew Comparator<ListNode>() {\n \t\tpublic int compare(ListNode a, ListNode b) {\n \t\t\tif(a.val < b.val) return -1;\n \t\t\telse if(a.val > b.val) return 1;\n \t\t\telse return 0;\n \t\t}\n \t});\n for(ListNode list: lists) {\n \tif(list != null)\n \t\tpq.add(list);\n }\n\n ListNode head = new ListNode(0);\n ListNode prev = head;\n while(!pq.isEmpty()) {\n \tListNode temp = pq.poll();\n \tprev.next = temp;\n \tif(temp.next != null)\n \t\tpq.add(temp.next);\n \tprev = prev.next;\n }\n return head.next;\n }", "title": "" }, { "docid": "d0042282740a102c5e3d1c0bc50d1a57", "score": "0.54919314", "text": "public ListNode mergeKLists (ListNode[] lists) {\n if (lists == null) return null;\n\n ListNode soldier = new ListNode(0);\n ListNode tail = soldier;\n // TODO: 2021/5/30 check 边界\n ListNode[] nodes = buildHeap(lists);\n\n //sort\n int n = nodes.length - 1;\n while (n > 0) {\n ListNode min = nodes[1];\n ListNode next = min.next;\n tail.next = min;\n tail = min;\n\n if (next == null) {\n swap(nodes, n, 1);\n n--;\n } else {\n nodes[1] = next;\n }\n heapify(nodes, n, 1);\n }\n\n return soldier.next;\n }", "title": "" }, { "docid": "1f9c54c360e6420d7a9e0c453d50c54b", "score": "0.5478992", "text": "public List<List<Integer>> subsetsSol2(int[] nums) {\n List<List<Integer>> result = new ArrayList<List<Integer>>();\n result.add(new ArrayList<Integer>());\n for(Integer num: nums) {\n // combine with previous result\n List<List<Integer>> newSubSet = new ArrayList<List<Integer>>();\n for (List<Integer> currResult: result) {\n List<Integer> temp = new ArrayList<Integer>(currResult); // create new list for existing set\n temp.add(num); // add num to new list to get new set\n newSubSet.add(temp);\n }\n \n // now add newSubSet values back to result\n result.addAll(newSubSet);\n }\n return result;\n }", "title": "" }, { "docid": "ab2e5c875fda8b2331a8d7ba6543f3a2", "score": "0.5454899", "text": "public NodeLL mergeKLists(NodeLL[] lists) {\n\t\tif (lists == null || lists.length == 0) {\n\t\t\treturn null;\n\t\t}\n\t\tPriorityQueue<NodeLL> queue = new PriorityQueue<NodeLL>(lists.length, (o1, o2) -> {\n\t\t\tif (o1.getValue() < o2.getValue()) {\n\t\t\t\treturn -1;\n\t\t\t} else if (o1.getValue() == o2.getValue()) {\n\t\t\t\treturn 0;\n\n\t\t\t} else {\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t});\n\t\tNodeLL dummy = new NodeLL(-1);\n\t\tNodeLL tail = dummy;\n\t\tfor (int i = 0; i < lists.length; i++) {\n\t\t\tif (lists[i] != null) {\n\t\t\t\tqueue.add(lists[i]);\n\t\t\t}\n\t\t}\n\t\twhile (!queue.isEmpty()) {\n\t\t\ttail.setNext(queue.poll());\n\t\t\ttail = tail.getNext();\n\t\t\tif (tail.getNext() != null) {\n\t\t\t\tqueue.add(tail.getNext());\n\t\t\t}\n\t\t}\n\t\treturn dummy.getNext();\n\t}", "title": "" }, { "docid": "c7caab6a3cf8f1076a557642faed68b2", "score": "0.5447743", "text": "public List<Integer> merge(List<Integer> list1, List<Integer> list2) {\r\n\t\tint x = 0;\r\n\t\tint y = 0;\r\n\t\tList<Integer> sortedList = new ArrayList<>(list1.size() + list2.size());\r\n\t\twhile (x < list1.size() && y < list2.size()) {\r\n\t\t\tif (list1.get(x) < list2.get(y)) {\r\n\t\t\t\tsortedList.add(list1.get(x));\r\n\t\t\t\tx++;\r\n\t\t\t} else {\r\n\t\t\t\tsortedList.add(list2.get(y));\r\n\t\t\t\ty++;\r\n\t\t\t}\r\n\t\t}\r\n\t\twhile (x < list1.size()) {\r\n\t\t\tsortedList.add(list1.get(x));\r\n\t\t\tx++;\r\n\t\t}\r\n\t\twhile (y < list2.size()) {\r\n\t\t\tsortedList.add(list2.get(y));\r\n\t\t\ty++;\r\n\t\t}\r\n\t\treturn sortedList;\r\n\t}", "title": "" }, { "docid": "7d712bfb024723b49de3451917f68817", "score": "0.5446639", "text": "static <T, R> List<T> iUnion(List<List<T>> arrays, Function<T, R> mapper, BiPredicate<R, R> predicate){\n List<T> union = new ArrayList<>();\n for(List<T> array : arrays){\n for(T item : array){\n if(!iContains(union, item, mapper, predicate)){\n union.add(item);\n }\n }\n }\n return union;\n }", "title": "" }, { "docid": "8fec53308071f971d91285cc2b6590d6", "score": "0.54196495", "text": "public static <T> List<List<T>> combinate(List<Set<T>> listOfSets)\n throws IllegalArgumentException {\n final List<List<T>> combinations = new LinkedList<List<T>>();\n final int len = listOfSets.size();\n for (final Set<T> set : listOfSets) {\n SetUtils.extendCombinations(combinations, set, len);\n }\n return combinations;\n }", "title": "" }, { "docid": "0bab19f5860f80d4d0ea03c11f151603", "score": "0.54106134", "text": "public ListNode mergeKLists(ListNode[] lists)\n {\n\tPriorityQueue<ListNode> minHeap = new PriorityQueue<ListNode>((a, b) -> a.val - b.val); //current - existing < 0 then okay otherwise swap\n\n\tfor (int i = 0; i < lists.length; i++)\n\t{\n\t ListNode head = lists[i];\n\t while (head != null)\n\t {\n\t\tminHeap.add(head);\n\t\thead = head.next;\n\t }\n\t}\n\n\tListNode cur = minHeap.poll();\n\tListNode out = cur;\n\t\n\twhile (cur != null)\n\t{\n\t cur.next = minHeap.poll();\n\t cur = cur.next;\n\t}\n\treturn out;\n }", "title": "" }, { "docid": "c6c90b2c64f124bd57791b0876d73116", "score": "0.540921", "text": "private Collection<List<QuerySolution>> separateByUniqueIds(List<QuerySolution> solutions){\n\t\tList<List<QuerySolution>> returnList = new ArrayList<List<QuerySolution>>();\n\t\t\n\t\tfor(QuerySolution solution : solutions){\n\t\t\treturnList.add(Arrays.asList(solution));\n\t\t}\n\t\t\n\t\treturn returnList;\n\t}", "title": "" }, { "docid": "f9c779bf1460cab31bd574876dbdc4d8", "score": "0.54083335", "text": "public static <T> List<List<T>> zip(List<T>... arrays){\n return zip(java.util.Arrays.asList(arrays));\n }", "title": "" }, { "docid": "d03bf093f0492cce0487542b7851006c", "score": "0.5395304", "text": "public List<List<Integer>> subsetsWithDup2(int[] nums) {\n Arrays.sort(nums);\n List<List<Integer>> result = new ArrayList<List<Integer>>();\n result.add(new ArrayList<Integer>());\n int begin = 0;\n for (int i=0; i<nums.length; i++) {\n if (i == 0 || nums[i] != nums[i-1]) begin = 0;\n int size = result.size();\n for (int j=begin; j<size; j++) {\n List<Integer> cur = new ArrayList<>(result.get(j));\n cur.add(nums[i]);\n result.add(cur);\n }\n // [] [1] [2] [1,2], [2,2], [1,2,2]\n begin = size;\n }\n return result;\n }", "title": "" }, { "docid": "f7ffc47505d30f71a1ddd6aeb8b99b6c", "score": "0.5393659", "text": "void m8785a(ArrayList<ArrayList<Integer>> arrayList);", "title": "" }, { "docid": "fcb235ec5cdc7c3d0bc5f94733b43a15", "score": "0.5387459", "text": "private static List<List<Integer>> getPowerSet(int[] set) {\n List<List<Integer>> res = new ArrayList<>();\n res.add(new ArrayList<>());//added: []\n for (int num : set) { // ①从数组中取出每个元素\n int size = res.size(); //1 -> 2 ->4\n for (int i = 0; i < size; i++) {\n List<Integer> temp = new ArrayList<>(res.get(i)); // ②逐一取出中间结果集\n temp.add(num); // ③将 num 放入中间结果集\n res.add(temp); // ④加入到结果集中\n }\n }\n return res;\n }", "title": "" }, { "docid": "4bfbb85b873c59795144578b60d58afd", "score": "0.53812015", "text": "public static <T, R> List<T> unionBy(List<List<T>> arrays, Function<T, R> iteratee){\n Objects.requireNonNull(arrays);\n arrays.forEach(i -> Objects.requireNonNull(i));\n Objects.requireNonNull(iteratee);\n return iUnion(arrays, iteratee, Objects::equals);\n }", "title": "" }, { "docid": "d8d778b2625ab3a26fab2abf8bb534f3", "score": "0.5375559", "text": "private static ArrayList<ArrayList<Integer>> lexicographic_permuter(int len, ArrayList<Integer> lst) {\n\n if (len > lst.size()) {\n return null;\n }\n\n ArrayList<ArrayList<Integer>> ret = new ArrayList<>();\n if (len == 1) {\n\n\n for (int elem : lst) {\n ArrayList<Integer> elem_arrayed = new ArrayList<>();\n elem_arrayed.add(elem);\n ret.add(elem_arrayed);\n }\n\n\n } else {\n\n\n for (int elem : lst) {\n ArrayList<Integer> rec_lst = new ArrayList<>();\n rec_lst.addAll(lst);\n rec_lst.remove(Integer.valueOf(elem));\n ArrayList<ArrayList<Integer>> rec_ret = lexicographic_permuter(len - 1, rec_lst);\n\n for (ArrayList<Integer> remainder : rec_ret) {\n ArrayList<Integer> perm = new ArrayList<>();\n perm.add(elem);\n perm.addAll(remainder);\n ret.add(perm);\n }\n }\n\n\n }\n return ret;\n }", "title": "" }, { "docid": "78e22863f2fca486ecd7c1e4708bfde3", "score": "0.537016", "text": "public List<List<Integer>> permute(int[] nums) {\n boolean[] visited = new boolean[nums.length];\n List<Integer> prefix = new ArrayList<>();\n List<List<Integer>> ret = new ArrayList<>();\n permute(nums, ret, prefix, visited);\n return ret;\n }", "title": "" }, { "docid": "c45b66a59ae1df6056a54fee2293b73d", "score": "0.53681856", "text": "private <T extends Comparable<? super T>> List<T> mergePartitions(\r\n \t\t\tList<QuickSorterTask<T>> sorters) {\r\n \t\tList<T> sorted = new ArrayList<T>();\r\n \t\tfor (QuickSorterTask<T> s : sorters) {\r\n \t\t\tsorted.addAll(s.getSortedList());\r\n \t\t}\r\n \r\n \t\treturn sorted;\r\n \t}", "title": "" }, { "docid": "81a977c6e84a3f8905e38d1f9aabbc3b", "score": "0.5346202", "text": "private List<List<T>> getPermutations(List<T> list) {\n List<List<T>> result = new ArrayList<>();\n\n if (list.size() == 0) {\n result.add(new ArrayList<T>());\n return result;\n }\n\n T first = list.remove(0);\n\n for (List<T> subList : getPermutations(list))\n for (int i = 0; i <= subList.size(); i++) {\n List<T> permutedList = new ArrayList<>(subList);\n permutedList.add(i, first);\n result.add(permutedList);\n }\n return result;\n }", "title": "" }, { "docid": "70a4481a023668e81da32cdc17b1c2af", "score": "0.53428715", "text": "private static List<Integer> getSortedList(List<Integer> numbers){\n Collections.sort(numbers); //gotowa metoda sortowania\n return numbers;\n }", "title": "" }, { "docid": "faf26cdc0560a6c7df199bbd91617378", "score": "0.5337582", "text": "public ListNode mergeKLists(ArrayList<ListNode> lists) {\n PriorityQueue<ListNode> heap = new PriorityQueue<ListNode>(11, new Comparator<ListNode>() {\n @Override\n public int compare(ListNode l1, ListNode l2) {\n return l1.val - l2.val;\n }\n });\n // finished creating heap, now initial the heap\n \n for(int i = 0; i < lists.size(); i++) {\n // PriorityQueue DOES NOT allow null element\n if(lists.get(i) != null) {\n heap.add(lists.get(i));\n }\n }\n \n ListNode head = null;\n ListNode pre = head;\n while(heap.size() > 0) {\n ListNode cur = heap.poll();\n if(head == null) {\n head = cur;\n pre = head;\n } else {\n pre.next = cur;\n pre = pre.next;\n }\n if(cur.next != null) heap.add(cur.next);\n }\n return head;\n }", "title": "" }, { "docid": "286a794c1f472be510acc9f4ed03dfa5", "score": "0.5336846", "text": "public static <T, R> List<R> zipWith(List<List<T>> arrays, Function<List<T>, R> iteratee){\n Objects.requireNonNull(arrays);\n int size = arrays.get(0).size();\n for(List<T> array : arrays){\n if(array.size() != size){\n throw new IllegalArgumentException(\"All arrays must be the same size\");\n }\n }\n Objects.requireNonNull(iteratee);\n return iUnzip(arrays, iteratee);\n }", "title": "" }, { "docid": "a2bed4d07005f540a5969f1d65bc6a3c", "score": "0.53358513", "text": "public List<Integer> inserSort(List<Integer> numbers) //Best o(n), avg o(n^2), worst o(n^2)\n\t{\n\t\tList<Integer> sortedList = new LinkedList<>();\n\t\t\n\t\toriginalList: for(Integer number : numbers)\n\t\t{\n\t\t\tfor(int i = 0; i < sortedList.size(); i++)\n\t\t\t{\n\t\t\t\tif(number < sortedList.get(i))\n\t\t\t\t{\n\t\t\t\t\tsortedList.add(i,number);\n\t\t\t\t\tcontinue originalList;\n\t\t\t\t}\n\t\t\t}\n\t\t\tsortedList.add(sortedList.size(), number); // add to the end of the list\n\t\t}\n\t\treturn sortedList;\n\t}", "title": "" }, { "docid": "5583bc7394a3bf8799885fd48cf4624b", "score": "0.53291625", "text": "public static List<Integer> mergeSortedArrays(List<List<Integer>> kSortedArrays){\n\t\tList<Iterator<Integer>> iters = new ArrayList<>(kSortedArrays.size());\n\t\tList<Integer> resultArray = new ArrayList<>();\n\t\t\n\t\tfor(List<Integer> array : kSortedArrays) {\n\t\t\titers.add(array.iterator());\n\t\t}\n\t\t\n\t\tQueue<ArrayEntry> pq = new PriorityQueue<>(\n\t\t\t\tkSortedArrays.size(), new Comparator<ArrayEntry>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic int compare(ArrayEntry o1, ArrayEntry o2) {\n\t\t\t\t\t\treturn Integer.compare(o1.value, o2.value);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\n\t\t\n\t\tfor(int i=0; i<iters.size(); i++) {\n\t\t\tif(iters.get(i).hasNext()) {\n\t\t\t\tpq.add(new ArrayEntry(iters.get(i).next(), i));\n\t\t\t}\n\t\t}\n\t\t\n\t\twhile(!pq.isEmpty()) {\n\t\t\t\n\t\t\tArrayEntry ejectedEntry = pq.poll();\n\t\t\tresultArray.add(ejectedEntry.value);\n\t\t\t\n\t\t\tif(iters.get(ejectedEntry.arrayID).hasNext()) {\n\t\t\t\tpq.add(new ArrayEntry(iters.get(ejectedEntry.arrayID).next(), ejectedEntry.arrayID));\n\t\t\t}\n\t\t}\n\t\treturn resultArray;\n\t}", "title": "" }, { "docid": "d238fc11bab59213f682342968b226e0", "score": "0.53141814", "text": "public List<Integer> mergeSort(List<Integer> list) {\r\n\t\tif (list.size() <= 1) {\r\n\t\t\treturn list;\r\n\t\t}\r\n\t\tint middleIndex = list.size() / 2;\r\n\t\tList<Integer> left = mergeSort(list.subList(0, middleIndex));\r\n\t\tList<Integer> right = mergeSort(list.subList(middleIndex, list.size()));\r\n\t\treturn merge(left, right);\r\n\t}", "title": "" }, { "docid": "8af4e5a55bbc37ba73c94c9fbe10b238", "score": "0.530974", "text": "public List<List<Integer>> permuteUnique3(int[] nums) {\n\t\tList<List<Integer>> ans = new ArrayList<>();\n\t\tif (nums == null || nums.length == 0) {\n\t\t\treturn ans;\n\t\t}\n\t\tpermute(ans, nums, 0);\n\t\treturn ans;\n\t}", "title": "" }, { "docid": "96e78ed9bed0d14d5f83c63c9a549e8d", "score": "0.5281822", "text": "private static ArrayList<ArrayList<Integer>> generatePermutation(ArrayList<Integer> arrayList){\r\n ArrayList<ArrayList<Integer>> output = new ArrayList<>();\r\n getPermutation(arrayList, 0, output);\r\n return output;\r\n }", "title": "" }, { "docid": "8ad4dd728793ecc2dcd9b6912e9bc3af", "score": "0.5278966", "text": "private static void mergeList(final List<String> _names)\n {\n Collections.sort(_names);\n final Set<String> compare = new HashSet<>();\n for (int i = _names.size() - 1; i > -1; i--) {\n if (compare.contains(_names.get(i))) {\n _names.remove(i);\n } else {\n compare.add(_names.get(i));\n }\n }\n }", "title": "" }, { "docid": "a79261c1e83fe67ffadbb17066e0d8fd", "score": "0.5272722", "text": "private void mergeList(Restaurant[] newList)\n {\n int size = list.length + newList.length;\n Restaurant[] temp = new Restaurant[size];\n\n // Add current list to new array\n for(int i = 0; i < list.length; i++)\n {\n temp[i] = list[i];\n }\n\n // Add new list to new array\n for (int i = 0; i < newList.length; i++)\n {\n temp[i + list.length] = newList[i];\n }\n\n list = temp;\n }", "title": "" }, { "docid": "aee369eada251c2a3b8ecbb13aff32a2", "score": "0.5270564", "text": "public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n List<List<Integer>> list = new ArrayList<>();\n\n int numberOfRows = sc.nextInt();\n int numberOfColumns = sc.nextInt();\n\n for(int i = 0 ; i < numberOfRows ; i++){\n\n List<Integer> subList = new ArrayList<>();\n\n for(int j = 0 ; j < numberOfColumns ; j++){\n subList.add(sc.nextInt());\n }\n\n list.add(subList);\n }\n\n int rotation = sc.nextInt();\n Collections.rotate(list, rotation);\n\n for(List<Integer> subList: list){\n for(Integer i: subList){\n System.out.print(i + \" \");\n }\n System.out.println();\n }\n\n\n }", "title": "" }, { "docid": "889647afb340147af9969164a616ca1c", "score": "0.52688336", "text": "public static List<List<Integer>> permute(int[] numbers) {\r\n\t\tList<List<Integer>> permutedList = new ArrayList<List<Integer>>();\r\n\r\n\t\t// no number in input\r\n\t\tif (numbers.length == 0)\r\n\t\t\treturn null;\r\n\r\n\t\t// only one number in input\r\n\t\tif (numbers.length == 1) {\r\n\t\t\tList<Integer> currentPermutation = new ArrayList<Integer>();\r\n\t\t\tcurrentPermutation.add(numbers[0]);\r\n\t\t\tpermutedList.add(currentPermutation);\r\n\t\t\treturn permutedList;\r\n\t\t}\r\n\r\n\t\t// from index 0 do permute\r\n\t\tdoPermute(permutedList, numbers, 0);\r\n\t\treturn permutedList;\r\n\t}", "title": "" }, { "docid": "b7239334e73a81662d3e05a54b14708e", "score": "0.5268468", "text": "private static List<List<Integer>> changeRoadToCrossId(List<Integer[]> presetAnswerList, List<Integer[]> roadList,\r\n\t\t\tList<Integer[]> crossList) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tList<List<Integer>> result = new ArrayList<List<Integer>>();\r\n\t\tfor (int i = 0; i < presetAnswerList.size(); i++) {\r\n\t\t\tInteger[] carPath = presetAnswerList.get(i);\r\n\t\t\tList<Integer> carNewPath = new ArrayList<Integer>();\r\n\t\t\tcarNewPath.add(carPath[0]);\r\n\t\t\tcarNewPath.add(carPath[1]);\r\n\t\t\tfor (int j = 2; j < carPath.length - 1; j++) {\r\n\t\t\t\tfor (int j2 = 0; j2 < crossList.size(); j2++) {\r\n\t\t\t\t\tif (Arrays.asList(crossList.get(j2)).contains(carPath[j])\r\n\t\t\t\t\t\t\t&& Arrays.asList(crossList.get(j2)).contains(carPath[j + 1])) {\r\n\t\t\t\t\t\tcarNewPath.add(crossList.get(j2)[0]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int j = 0; j < crossList.size(); j++) {\r\n\t\t\t\tif (Arrays.asList(crossList.get(j)).contains(carPath[2])\r\n\t\t\t\t\t\t&& !Arrays.asList(crossList.get(j)).contains(carPath[3])) {\r\n\t\t\t\t\tcarNewPath.add(2, crossList.get(j)[0]);\r\n\t\t\t\t}\r\n\t\t\t\tif (Arrays.asList(crossList.get(j)).contains(carPath[carPath.length - 1])\r\n\t\t\t\t\t\t&& !Arrays.asList(crossList.get(j)).contains(carPath[carPath.length - 2])) {\r\n\t\t\t\t\tcarNewPath.add(crossList.get(j)[0]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tresult.add(carNewPath);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "08a477ad268b1979a3a9e80fe0501285", "score": "0.5254656", "text": "public static List<Integer> mergeSortedArrays(List<List<Integer>> sortedArrays){\n\t\t\n\t\tList<Iterator<Integer>> iters = new ArrayList<>(sortedArrays.size());\n\t\tfor(List<Integer> array: sortedArrays){\n\t\t\titers.add(array.iterator());\n\t\t}\n\t\t\n\t\tPriorityQueue<ArrayEntry> minHeap = new PriorityQueue<>((int)(sortedArrays.size()), new Comparator<ArrayEntry>(){\n\t\t\tpublic int compare(ArrayEntry a1, ArrayEntry a2){\n\t\t\t\treturn Integer.compare(a1.number, a2.number);\n\t\t\t}\n\t\t});\n\t\t\n\t\tfor(int i = 0; i < iters.size(); i++){\n\t\t\tminHeap.add(new ArrayEntry(iters.get(i).next(), i));\n\t\t}\n\t\t\n\t\tList<Integer> result = new ArrayList<>();\n\t\twhile(minHeap.size() > 0){\n\t\t\tArrayEntry currentPopedEntry = minHeap.poll(); \n\t\t\tresult.add(currentPopedEntry.number);\n\t\t\tif(iters.get(currentPopedEntry.arrayID).hasNext()){\n\t\t\t\tminHeap.add(new ArrayEntry(iters.get(currentPopedEntry.arrayID).next(), currentPopedEntry.arrayID));\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "4f964cb273447104f759e2cf69d4394e", "score": "0.52458435", "text": "public ArrayList<ArrayList<Integer>> subsets3(int[] nums) {\n ArrayList<ArrayList<Integer>> result = new ArrayList<>();\n if(nums == null || nums.length == 0){\n return result;\n }\n \n ArrayList<Integer> curr = new ArrayList<>();\n result.add(curr);\n \n Arrays.sort(nums);\n \n for(int i = 0; i < nums.length; i++){\n int prevSize = result.size();\n for(int j = 0; j < prevSize; j++){\n curr = new ArrayList<Integer>(result.get(j));\n curr.add(nums[i]);\n result.add(new ArrayList<Integer>(curr));\n }\n\n }\n \n return result;\n }", "title": "" }, { "docid": "6d0d92970ebc9c37c9f83677746ed92f", "score": "0.5241843", "text": "public static String mergeArray(List<String> strings, String separator)\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (String string : strings)\n\t\t{\n\t\t\tsb.append(string);\n\t\t\tsb.append(separator);\n\t\t}\n\t\tString result = sb.toString();\n\t\tresult = result.substring(0, result.length() - 1);\n\t\treturn result;\n\t}", "title": "" }, { "docid": "72ea2b60d10d23dc414e88b234da5c62", "score": "0.52360696", "text": "private int[] getArraySorted(List<Integer> ints){\n\t\tint[] arrayList = new int[ints.size()];\n\t\t// int i= 0;\n\t\t for(int i=0 ; i< arrayList.length;i++){\n\t\t\t int ele = ints.get(i);\n\t if(i==0){\n\t \t arrayList[i] = ele;\n\t }else{\n\t \t int j = i-1;\n\t \t while(j >= 0){\n\t \t\t if(arrayList[j] > ele){\n\t \t\t \tarrayList[j+1] = arrayList[j];\n\t \t\t \tj--;\n\t \t\t } else{\n\t \t\t \tbreak;\n\t \t\t }\n\t \t }\n\t \t arrayList[j+1]= ele;\n\t } \n\t\t }\n\t\treturn arrayList;\n\t}", "title": "" }, { "docid": "baede3cd23c6e01cb72068f02ebbb9be", "score": "0.52359927", "text": "private void backtracking(List<List<Integer>> result, int[] nums, List<Integer> list, int start) {\n\t\tresult.add(new ArrayList<>(list));\n for(int i=start;i<nums.length;i++){\n if(i>start&&nums[i]==nums[i-1]) continue;//跳过重复的\n list.add(nums[i]);\n backtracking(result, nums, list, i+1);\n list.remove(list.size()-1);\n \n }\n\t}", "title": "" }, { "docid": "b4700458e61d26447c254c83481b0836", "score": "0.52317375", "text": "public ListNode mergeKLists(ArrayList<ListNode> lists) {\n if(lists.size() == 0) {\n return(null);\n }\n ListNode head = merge(lists);\n \n return(head);\n }", "title": "" }, { "docid": "fb5f88aaab091cebdef6b40a8a82e67a", "score": "0.52222717", "text": "public ListNode mergeKLists2(ListNode[] lists) {\n if(lists == null || lists.length == 0){\n return null;\n }\n return mergeSort(lists, 0, lists.length - 1);\n }", "title": "" }, { "docid": "1d7f3ec95b267dce7460fafee8d523cc", "score": "0.5213906", "text": "static public List<List<Integer>> permute_list(int[] nums) {\n List<List<Integer>> res = new ArrayList<>();\n if (nums == null || nums.length == 0)\n return res;\n Arrays.sort(nums); // KEY: 排序是為了後面nums[i] == nums[i - 1]的algorithm算法\n dfs(res, new ArrayList<>(), nums, new boolean[nums.length]); // boolean[] 作為列舉紀錄資訊\n return res;\n }", "title": "" }, { "docid": "46916e668d281efb9a6c311c59f6a1ac", "score": "0.5209923", "text": "public List<List<String>> accountsMerge(List<List<String>> accounts) {\n Map<String, List<Integer>> nameToIndices = new HashMap<>();\n Map<Integer, Set<String>> indexToEmails = new HashMap<>();\n //we sort as name mapped to every index with that name\n //and index to the set of emailSet at that index\n for(int i=0; i<accounts.size(); i++){\n String name = accounts.get(i).get(0);\n if(nameToIndices.containsKey(name)){\n nameToIndices.get(name).add(i);\n }\n else{\n List<Integer> indices = new ArrayList<>();\n indices.add(i);\n nameToIndices.put(name, indices);\n }\n List<String> dupeIndices = new ArrayList<>();\n Set<String> indexEmails = new HashSet<>();\n for(int j=1; j<accounts.get(i).size(); j++){\n String email = accounts.get(i).get(j);\n if(indexEmails.contains(email)) dupeIndices.add(email);\n else indexEmails.add(email);\n }\n for(int k=0; k<dupeIndices.size(); k++){\n accounts.get(i).remove(dupeIndices.get(k));\n }\n indexToEmails.put(i, indexEmails);\n }\n List<List<String>> results = new ArrayList<>();\n //for every name, we look at all the indices associated with it\n for(String name: nameToIndices.keySet()){\n List<Integer> indices = nameToIndices.get(name);\n while(!indices.isEmpty()){\n Integer mergeIndex = indices.get(0);\n indices.remove(0);\n List<String> mergeList = accounts.get(mergeIndex);\n List<Integer> dupes = new ArrayList<>();\n for(int k=0; k<mergeList.size(); k++){\n String curEmail = mergeList.get(k);\n for(Integer index: indices){\n if(indexToEmails.get(index).contains(curEmail)){\n dupes.add(index);\n }\n }\n\n Set<String> mergeSet = indexToEmails.get(mergeIndex);\n for(Integer index: dupes){\n indices.remove(index);\n Set<String> dupeSet = indexToEmails.get(index);\n dupeSet.removeAll(mergeSet);\n for(String email: dupeSet){\n mergeList.add(email);\n mergeSet.add(email);\n }\n }\n dupes.clear();\n }\n //once we've checked every email against the index,\n //anything that remains is certain not to be a dupe\n mergeList.remove(0);\n mergeList.sort(Comparator.naturalOrder());\n mergeList.add(0, name);\n results.add(mergeList);\n }\n }\n return results;\n }", "title": "" }, { "docid": "789a1bad186a586659afd2e01669be66", "score": "0.52068317", "text": "private void weaveLists(LinkedList<Integer> first, LinkedList<Integer> second, ArrayList<LinkedList<Integer>> results, LinkedList<Integer> prefix){\n\t\tif(first.size() == 0 || second.size() == 0){\n\t\t\tLinkedList<Integer> result = (LinkedList<Integer>)prefix.clone();\n\t\t\tresult.addAll(first);\n\t\t\tresult.addAll(second);\n\t\t\tresults.add(result);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tint headFirst = first.removeFirst();\n\t\tprefix.addLast(headFirst);\n\t\tweaveLists(first, second, results, prefix);\n\t\tprefix.removeLast();\n\t\tfirst.addFirst(headFirst);\n\t\t\n\t\tint headSecond = second.removeFirst();\n\t\tprefix.addLast(headSecond);\n\t\tweaveLists(first, second, results, prefix);\n\t\tprefix.removeLast();\n\t\tsecond.addFirst(headSecond);\n\t}", "title": "" }, { "docid": "405470bb491d039084f22c647379704c", "score": "0.52025753", "text": "public List<List<Integer>> threeSum2(int[] nums) {\n Set<List<Integer>> ans = new HashSet();\n Arrays.sort(nums);\n for(int i=0;i<nums.length;i++){\n Set<Integer> set = new HashSet();\n for(int j=i+1;j<nums.length;j++){\n int target = -1*(nums[i]+nums[j]);\n if(set.contains(target))\n ans.add(Arrays.asList(nums[i],nums[j],target));\n set.add(nums[j]);\n }\n }\n return new ArrayList(ans);\n }", "title": "" }, { "docid": "e4759d862683e0352e0473de5faf912d", "score": "0.51922053", "text": "public ArrayList<ArrayList<Integer>> permute(int[] num) {\r\n ArrayList<ArrayList<Integer>> result = new ArrayList<ArrayList<Integer>>();\r\n result.add(new ArrayList<Integer>());\r\n for (int i = 0; i < num.length; i++) {\r\n ArrayList<ArrayList<Integer>> current = new ArrayList<ArrayList<Integer>>();\r\n for (ArrayList<Integer> l : result) {\r\n for (int j = 0; j < l.size()+1; j++) {\r\n l.add(j, num[i]);\r\n ArrayList<Integer> temp = new ArrayList<Integer>(l);\r\n current.add(temp);\r\n l.remove(j);\r\n }\r\n }\r\n result = new ArrayList<ArrayList<Integer>>(current);\r\n }\r\n return result;\r\n }", "title": "" }, { "docid": "f23f66afdcb5cc019454f29bc9fcab7b", "score": "0.5179193", "text": "public List<List<Integer>> permute(int[] nums) {\n List<List<Integer>> res = new LinkedList<List<Integer>>();\n if(nums == null || nums.length == 0) {\n return res;\n }\n boolean[] used = new boolean[nums.length];\n helper(nums, res, used, new LinkedList<Integer>());\n return res;\n }", "title": "" }, { "docid": "28fbd57efb23960ff5eb94665d4b3173", "score": "0.5177993", "text": "public static <T, R> List<R> unzipWith(List<List<T>> arrays, Function<List<T>, R> iteratee){\n Objects.requireNonNull(arrays);\n int size = arrays.get(0).size();\n for(List<T> array : arrays){\n if(array.size() != size){\n throw new IllegalArgumentException(\"All arrays must be the same size\");\n }\n }\n Objects.requireNonNull(iteratee);\n return iUnzip(arrays, iteratee);\n }", "title": "" }, { "docid": "30a6bc8b1f876fc3c201a042592a4606", "score": "0.5169879", "text": "public static ArrayList<Integer> union( ArrayList<Integer> list1, ArrayList<Integer> list2) {\n\t\tArrayList<Integer> unionList = new ArrayList<Integer>();\n\t\tfor(int i = 0; i < list1.size(); i++) {\n\t\t\tunionList.add(list1.get(i));\n\t\t}\n\t\tfor(int i = 0; i < list2.size(); i++) {\n\t\t\tunionList.add(list2.get(i));\n\t\t}\n\t\t\n\t\treturn unionList;\n\t}", "title": "" }, { "docid": "107bf494999f7061991436fd29ff0a77", "score": "0.5166875", "text": "private ArrayList<String> removeDuplicates(ArrayList<String> list) {\n ArrayList<String> result = new ArrayList<>();\r\n\r\n // Record encountered Strings in HashSet.\r\n HashSet<String> set = new HashSet<>();\r\n\r\n // Loop over argument list.\r\n for (String item : list) {\r\n\r\n // If String is not in set, add it to the list and the set.\r\n if (!set.contains(item)) {\r\n result.add(item);\r\n set.add(item);\r\n }\r\n }\r\n return result;\r\n }", "title": "" }, { "docid": "92ab36ab9b819bbf39915413309719ab", "score": "0.5160718", "text": "public static List<Integer> getCombinedList(final List<Integer> list1, final List<Integer> list2)\n {\n List<Integer> combinedSet = Lists.newArrayList();\n\n for(Integer value : list1)\n {\n if(!combinedSet.contains(value))\n combinedSet.add(value);\n }\n\n for(Integer value : list2)\n {\n if(!combinedSet.contains(value))\n combinedSet.add(value);\n }\n\n return combinedSet;\n }", "title": "" }, { "docid": "93d7f59a4b0defa42b82926afbd10738", "score": "0.5149435", "text": "public static List<Integer> get_unique_elements(List<Integer> x){\r\n\t\t\r\n\t\tint n = x.size();\r\n\t\t\r\n\t\tList<Integer> unique_elements = new ArrayList<Integer>();\r\n\t\tunique_elements.add(x.get(0));\r\n\t\t\r\n\t\tfor(int i=1; i<n; i++){\r\n\t\t\t\r\n\t\t\tint [] idx = get_idx(unique_elements,x.get(i));\r\n\t\t\t\r\n\t\t\tif(idx[0] == -1){\r\n\t\t\t\tunique_elements.add(x.get(i));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn unique_elements;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "af809612642885c455f87520ef564bd9", "score": "0.5135852", "text": "static public List<List<Integer>> permute_swap(int[] nums) {\n List<List<Integer>> res = new ArrayList<>();\n if (nums == null || nums.length == 0)\n return res;\n Arrays.sort(nums); // KEY: 排序是為了後面\n dfs_offset(res, nums, 0);\n return res;\n }", "title": "" }, { "docid": "fab16c527066dafb79b2cc5121349833", "score": "0.5130037", "text": "public ArrayList<Integer> adjustList() {\n\n ArrayList<Integer> list2 = new ArrayList<>(10);\n int count = 0;\n int i = 0;\n while (count < 10) {\n i += 2;\n list2.add(count, i);\n count++;\n }\n\n for (int j = 0; j < list.size(); j++) {\n boolean found = false;\n for (int k = 0; k < list2.size(); k++) {\n if (list.get(j).equals(list2.get(k))) {\n list2.add(0, list2.remove(k));\n found = true;\n break;\n }\n }\n if (!found) {\n list2.add(0, list.get(j));\n }\n }\n return list2;\n\n }", "title": "" }, { "docid": "8145c9e0539aea1c2d6470195aa26903", "score": "0.5124564", "text": "public static ArrayList<Integer> combine(ArrayList<Integer> list1,\n\t\t\tArrayList<Integer> list2) {\n\t\tlist1.addAll(list2);\n\t\t// ispis liste\n\t\tfor (int i = 0; i < list1.size(); i++) {\n\t\t\tSystem.out.print(list1.get(i).intValue() + \" \");\n\t\t}\n\t\treturn list1;\n\t}", "title": "" }, { "docid": "29fa7b9daa91fd0f21b24be0c713dc61", "score": "0.51128346", "text": "public ArrayList<Integer> merger(ArrayList<Integer> arr1, ArrayList<Integer> arr2){\r\n\t\tArrayList<Integer> arr3 = new ArrayList<Integer>();\r\n\t\tint arr1Length = arr1.size();\r\n\t\tint arr2Length = arr2.size();\r\n\t\tint i=0, j=0;\r\n\t\t\r\n\t\twhile((i < arr1Length) && (j < arr2Length)) {\r\n\t\t\tif(arr1.get(i) <= arr2.get(j)) {\r\n\t\t\t\tarr3.add(arr1.get(i));\r\n\t\t\t\ti++;\r\n\t\t\t} else {\r\n\t\t\t\tarr3.add(arr2.get(j));\r\n\t\t\t\tj++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\twhile(i < arr1Length) {\r\n\t\t\tarr3.add(arr1.get(i));\r\n\t\t\ti++;\r\n\t\t}\r\n\t\t\r\n\t\twhile(j < arr2Length) {\r\n\t\t\tarr3.add(arr2.get(j));\r\n\t\t\tj++;\r\n\t\t}\r\n\t\t\r\n\t\treturn arr3;\r\n\t}", "title": "" }, { "docid": "9c3dbe46ba528e4a4bdc3d21ef5dbf20", "score": "0.511039", "text": "public List<List<Integer>> subsetsWithDup(int[] nums) {\n // write your code here\n List<List<Integer>> results = new ArrayList<List<Integer>>();\n if (nums == null || nums.length == 0) {\n results.add(new ArrayList<Integer>());\n return results;\n }\n Arrays.sort(nums);\n\n List<Integer> subset = new ArrayList<Integer>();\n helper(nums, 0, subset, results);\n\n return results;\n }", "title": "" }, { "docid": "8f0d621007163ab45c8ce6f88ad8c234", "score": "0.5090653", "text": "void back(int[] nums, boolean[] used, List<Integer> l, List<List<Integer>> res){\n if(l.size() == nums.length){\n res.add(new ArrayList<>(l));\n return;\n }\n for(int i=0; i<nums.length; i++){\n if(used[i] || (i>0 && !used[i-1] && nums[i] == nums[i-1])){\n continue;\n }\n l.add(nums[i]);\n used[i] = true;\n back(nums, used, l, res);\n used[i] = false;\n l.remove(l.size() -1);\n }\n }", "title": "" }, { "docid": "c40063be0f70c60e461f0a81bbf7a707", "score": "0.50871956", "text": "private List<int[]> copyList(List<int[]> originalList) {\n\t\tList<int[]> newList = new ArrayList<int[]>();\n\t\t\n\t\tfor (int[] e : originalList) {\n\t\t\tnewList.add(new int[] {e[0], e[1]});\n\t\t}\n\t\t\n\t\treturn newList;\n\t}", "title": "" }, { "docid": "4975a2551445623df40513569813c303", "score": "0.5080205", "text": "private static List removeDuplicates(List a, List singles) {\n\n\t\t/* If the tail is empty, there are no more elements to check, so return\n\t\t * the list with this element added. */\n\t\tif (a.getTail().isEmpty()) {\n\t\t\treturn new List(a.getHead(), singles);\n\t\t}\n\n\t\tint first = a.getHead();\n\t\tint second = a.getTail().getHead();\n\n\t\t/* If the two elements from the list are different, then add the first\n\t\t * to the new list, the second will be checked against the next. */\n\t\tif (first != second) {\n\t\t\tsingles = new List(first, singles);\n\t\t}\n\n\t\treturn removeDuplicates(a.getTail(), singles);\n\t}", "title": "" }, { "docid": "89ae9dddc168c140bbfd47338063d1b1", "score": "0.5076862", "text": "public List<List<Integer>> generate(int numRows) {\n List<List<Integer>> res = new ArrayList<>();\n List<Integer> first = new ArrayList<>(), second = new ArrayList<>();\n \n first.add(1); res.add(first); \n if (numRows == 1) return res;\n \n second.add(1); second.add(1); res.add(second);\n if (numRows == 2) return res;\n \n for (int i = 2; i < numRows; i++) {\n List<Integer> prev = res.get(i - 1), cur = new ArrayList<>();\n cur.add(1);\n \n for (int j = 0; j < prev.size() - 1; j++)\n cur.add(prev.get(j) + prev.get(j + 1));\n \n cur.add(1);\n res.add(cur);\n }\n \n return res;\n }", "title": "" }, { "docid": "77bbf79e3509f28bcd645bd12ee20d1f", "score": "0.50764984", "text": "public List<String> reverseList(List<String> strings){\n\t\treturn null;\n\t}", "title": "" }, { "docid": "2b22a30afb4cd87b7f7b11c4af170a69", "score": "0.5075686", "text": "public static ArrayList<Integer> manualSort(ArrayList<Integer> numbers) {\n int temp;\n for (int i = 1; i < numbers.size(); i++) {\n for (int j = i; j > 0; j--) {\n if (numbers.get(j) < numbers.get(j - 1)) {\n temp = numbers.get(j);\n numbers.set(j, numbers.get(j - 1));\n numbers.set(j - 1, temp);\n }\n }\n }\n return numbers;\n }", "title": "" }, { "docid": "635a65f74bf5949f06d81116c6363c12", "score": "0.50669783", "text": "public List<Integer> mergesort(List<Integer> values)\n\t{\n\t\tif(values.size() < 2)\n\t\t\treturn values;\n\t\t\n\t\tList<Integer> leftHalf = values.subList(0, values.size()/2);\n\t\tList<Integer> rightHalf = values.subList(values.size()/2, values.size());\n\t\t\n\t\treturn merge(mergesort(leftHalf), mergesort(rightHalf));\n\t}", "title": "" }, { "docid": "388dc05dab443034796d126a47525cfe", "score": "0.5057698", "text": "public static List<Integer> sortListDescending(List<Integer> list){\n List<Integer> list1 = new ArrayList<>();\n list1.addAll(list);\n Collections.sort(list1);\n List<Integer> newList = new ArrayList<>();\n for (int i = list.size()-1; i >=0; i--) {\n newList.add(list1.get(i));\n }\n\n return newList;\n }", "title": "" }, { "docid": "5778e8496b1d7e3ba0f9c9fa1c871fe6", "score": "0.50550216", "text": "public static List<List<Integer>> problem1(int[] arr) {\n if (arr == null)\n return new ArrayList<>();\n List<List<Integer>> output = new ArrayList<>();\n output.add(new ArrayList<>());\n\n for (int num : arr) {\n int n = output.size();\n for (int i = 0; i < n; i++) {\n List<Integer> list = new ArrayList<>(output.get(i));\n list.add(num);\n output.add(list);\n }\n }\n\n return output;\n }", "title": "" }, { "docid": "ca694388166d974128c83ab250935b9a", "score": "0.5053495", "text": "public List<List<Integer>> threeSum4(int[] nums) {\n Set<List<Integer>> ans = new HashSet();\n Arrays.sort(nums);\n for(int i=0;i<nums.length-2;i++){\n if(i==0||nums[i]!=nums[i-1]){\n int l=i+1,r=nums.length-1;\n while(l<r){\n int sum = nums[i]+nums[l]+nums[r];\n if(sum<0) l++;\n else if (sum>0) r--;\n else ans.add(Arrays.asList(nums[i],nums[l++],nums[r--]));\n }\n }\n }\n return new ArrayList(ans);\n }", "title": "" }, { "docid": "b443f0717efcdbc63d9ee6300dc84052", "score": "0.5051762", "text": "public void setLists(ArrayList<Word>[] new_list) {\n\t\tthis.lists = new_list;\n\t\tfor(int x = 0; x < 52; x++) {\n\t\t\tthis.lists[x] = new ArrayList<Word>();\n\t\t}\n\t}", "title": "" } ]
fe64f8145e639a522d47120a620a2ed2
recursion basic problem set 1 ;
[ { "docid": "a18941b9c46957b20d693513f8c769da", "score": "0.0", "text": "public static void PD(int n){\n\t\t\n\t\tif(n==0){\n\t\t\treturn;\n\t\t}\n\n\n\t\tSystem.out.print(\" \"+n);\n\t\tPD(n-1);\n\n\t}", "title": "" } ]
[ { "docid": "96856ec87c7e2f90ad99153fbbfcad64", "score": "0.64262146", "text": "private static long recursion_good(long n)\n\t{\n\t\tif (n < 0)\n {\n return 0;\n }\n\t\t\n\t\tlong ret = n + recursion_good(n-1);\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "a7b1416d596588ebd0cceea2e056f046", "score": "0.6397708", "text": "static String recursiveMethod(String str)\n {\n if ((null == str) || (str.length() <= 1))\n {\n return str;\n }\n //System.out.println(str.substring(1));\n return recursiveMethod(str.substring(1)) + str.charAt(0);\n }", "title": "" }, { "docid": "2611bc67e38a4702260b40ed123ec89f", "score": "0.6092033", "text": "private static int factorial(int num) {\n // base case condition\n if (num == 1) {\n return 1;\n }\n\n // recursive call\n return num * factorial(num - 1);\n }", "title": "" }, { "docid": "d91da6f69f23e627f31071f8d1bcf16e", "score": "0.60574496", "text": "public State recursive(){\n\t\t/*\t\n\t\tVector<State> states = new Vector<State>();\n\t\tstates.add(Board.getInitialState());\n\t\tfor(int i = 0; i < Board.getNbOfBoxes(); i++){\n\t\t\tmoveOneBoxToGoal(states, i, 0);\n\t\t}\n\n\t\treturn greedyBFS(states.lastElement());\n\t\t*/\n\t\treturn greedyBFSItDeep(Board.getInitialState());\n\t}", "title": "" }, { "docid": "994f69f29936ecf74705e1eb31bb7ac5", "score": "0.6047182", "text": "private static long recursion_bad(long n)\n\t{\n\t\tlong ret = n + recursion_bad(n-1);\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "d091b1b1b9976b08d6ed03b1fe4637f9", "score": "0.6028875", "text": "static void recFun(String s, int l, int r, List<String> res){\n if(l == 0 && r == 0){\n System.out.println(s);\n res.add(s);\n return;\n }\n\n //this case applies where the number of left and right brackets that can be employed are equal (this includes the starting case)\n //and l is greater than zero\n if(l == r && l > 0){\n s = s+\"(\";\n l--;\n recFun(s, l, r, res);\n }\n\n //this is the core case where we will generate various permutations of valid brackets\n //when l is < r, it can go two ways: another ( bracket can be added, further increasing the deficit between l and r\n //or a ) bracket can be added to decrease the deficit between number of (s and )s.\n else if(l < r && l > 0){\n //Assigning the resultant string to a new variable before passing to the recursive method is for debugging purposes only\n //Otherwise, the debug might unnecessarily take us to the string building operations in the String Builder library\n String a = s+\"(\";\n recFun(a, l-1, r, res);\n String b = s+\")\";\n recFun(b, l, r-1, res);\n }\n\n //This is the case where no more ( brackets can be added\n //So we pretty much add right brackets until r becomes 0 too i.e., no brackets are added\n else if(l < r && l == 0){\n s = s+\")\";\n recFun(s, l, r-1, res);\n }\n }", "title": "" }, { "docid": "cc50fa452ccd60d48eafbfd8c98b29aa", "score": "0.601873", "text": "static int fact(int n) {\n if (n <= 1) {\n return 1;\n }\n // Recursive Case:\n // If n > 1 then n! = n * (n-1)!\n else {\n System.out.println(fact(n - 1));\n return n + fact(n - 1);\n }\n }", "title": "" }, { "docid": "9c60cc11812c4e46f9f4c7172de90891", "score": "0.5959698", "text": "public interface BasicRecursive {\n\n default int NR_Factorization(int n){\n for (int i = n-1; i > 0; i --)\n n *= i;\n return n;\n }\n\n default int R_Factorization(int n){\n return n == 0 ? 1 : n*R_Factorization(n-1);\n }\n\n int NR_Fibonacci(int n);\n\n int R_Fibonacci(int n);\n\n int NR_binomialCoefficient(int n, int r);\n\n int R_binomialCoefficient(int n, int r);\n\n int R_gcd(int a, int b);\n\n int NR_gcd(int a, int b);\n\n /**\n * @param n number of heaps\n * @param source move from where\n * @param buffer use where to buffer\n * @param target the place wanna makeSet on\n * @return the steps it takes and print the procedure\n */\n int R_towerOfHanoi(int n, char source, char buffer, char target);\n\n default void swap(int[] array, int a, int b){\n int temp = array[a];\n array[a] = array[b];\n array[b] = temp;\n }\n\n}", "title": "" }, { "docid": "a3e33384f12941f15345ffc6ba10e8c5", "score": "0.595858", "text": "private static int factorial(int n){\n if(n>1) /* Recursive case for positive numbers */ {\n return n * factorial(n-1);\n }\n else if(n == 1) /* Base case for positive numbers */ {\n return 1;\n }\n else if(n < (-1)) /* Recursive case for negative numbers */ {\n return n * factorial(n+1);\n }\n else if(n == (-1)) /* Base case for negative numbers */ {\n return -1;\n }\n else /* Catch-all for bad inputs */ {\n return 0;\n }\n }", "title": "" }, { "docid": "2036bbb83b946ae5d087989e8fffe2ba", "score": "0.58109355", "text": "int check(TreeNode root,int sum,boolean inc){\n int x=0;\n\n if(root.left==null&&root.right==null&&root.val==sum)\n {\n x+=1;\n return x;\n }\n else if(sum==root.val)\n x+= 1;\n\n\n if(inc){\n // int x=0;\n if(root.left!=null)\n x+=check(root.left,sum-root.val,inc);\n if(root.right!=null)\n x+=check(root.right,sum-root.val,inc);\n return x;\n }else{\n // int x=0;\n if(root.left!=null)\n x+=check(root.left,sum-root.val,!inc)+check(root.left,sum,inc);\n if(root.right!=null)\n x+=check(root.right,sum-root.val,!inc)+check(root.right,sum,inc);\n return x;\n }\n }", "title": "" }, { "docid": "e89242e0d97c55092da0a058d9821856", "score": "0.5758453", "text": "private int recurse(int base, int power) {\n\n // Base Case\n if (power == 1) {\n return base;\n }\n\n if (power % 2 != 0) {\n return this.recurse(base, power/2) * this.recurse(base, (power/2)+1);\n }\n return this.recurse(base, power/2) * this.recurse(base, (power/2));\n }", "title": "" }, { "docid": "e6b6ef8f8e707ecd9a2e690dc7e25c4f", "score": "0.5751032", "text": "public BigInteger recursiveF(int n) {\n if (n <= 1)\n return BigInteger.valueOf(n);\n return recursiveF(n - 1).add(recursiveF(n - 2));\n }", "title": "" }, { "docid": "976bde022bbd4787671c76f2266b0525", "score": "0.572468", "text": "public static void runMultipleRecursion(int n) {\n\t\tif (n < 1)\n\t\t\treturn;\n\t\trunMultipleRecursion(n - 1);\n\t\tSystem.out.println(\"multiple recursion first stack: \" + n);\n\t\trunMultipleRecursion(n - 1);\n\t\tSystem.out.println(\"multiple recursion second stack: \" + n);\n\t}", "title": "" }, { "docid": "a3b2f23560c2beb3b41d0b7b1e14ceb6", "score": "0.5721264", "text": "static int fact(int n) {\n if(n == 1) return 1;\n\n return n * fact(n -1);\n\n }", "title": "" }, { "docid": "4802b9e9083a7049ad4b4d5153c9caf7", "score": "0.5717185", "text": "public void traversal_withoutRecursionNstack() {\n\t}", "title": "" }, { "docid": "ecc22c031864414faa5191b6d0a36985", "score": "0.57088053", "text": "private static double recursion(int n, int current) {\n if(current == full) return distance(coors[n], coors[0]);\n\n if(dp[n][current] != -1) return dp[n][current];\n double result = INF;\n\n for(int i = 1; i < coors.length - 1; i++) {\n int next = (1 << i);\n if((current & next) != 0) continue;\n\n result = Math.min(result, recursion(i, current | next) + distance(coors[n], coors[i]));\n }\n\n return dp[n][current] = result;\n }", "title": "" }, { "docid": "dca427a231a269acbe36fd51c44cd05c", "score": "0.5697123", "text": "static int foo(int a, int b)\n {\n if(a==0)return b;\n else if(a==b)return a;\n else {\n\n return foo(b,a%b);\n }\n\n }", "title": "" }, { "docid": "5a65e4514208115a64ae4f6511271cfc", "score": "0.5675827", "text": "private boolean recursiveDepthFirst(S s) {\n\t\tif (!visited.contains(s)) {\n\t\t\tvisited.add(0, s); // we add s to the list of visited \n if (problem.success(s)) {\n\t\t\t\t\n\t\t\t\tpath.add(0,s); // we add the success state to the path\n\t\t\t\treturn true;\n\t\t\t\t\n\t\t\t\t\n\t\t\t} // end then branch\n\t\t\telse {\n\t\t\t\t\n\t\t\t\tList<S> succ_s = problem.getSuccessors(s);\n\t\t\t\tboolean found = false;\n\t\t\t\twhile ( (!succ_s.isEmpty()) && (!found) ) {\n\t\t\t\t\t\n\t\t\t\t\tS child = succ_s.get(0);\n\t\t\t\t\tsucc_s.remove(0);\n\t\t\t\t\tfound = recursiveDepthFirst(child);\n\t\t\t\t\t\n\t\t\t\t} // end while\n\t\t\t\tif (found) {\n\t\t\t\t\t// s leads to a success, so we add it to the path\n\t\t\t\t\tpath.add(0, s);\n\t\t\t\t}\n\t\t\t\treturn found;\n\t\t\t\t\n\t\t\t} // end else branch\n }\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\n }", "title": "" }, { "docid": "239dd96068f0f530760691783568a03c", "score": "0.5673945", "text": "static int factorial(int n){\n if (n == 0) // F //F //F //F //F //T\n return 1;\n else\n return(n * factorial(n-1));//5*factorial(5-1)->factorial(4)\n //4*factorial(4-1)->factorial(3)\n //3*factorial(3-1)->factorial(2)\n //2*factorial(2-1)->factorial(1)-\n //1*factorial(1-1)->factorial(0)-return 1\n\n }", "title": "" }, { "docid": "0eaa786c88313dacb2ae2a8c223e2cd9", "score": "0.5641556", "text": "int fiboUsingRecursive(int n){\n\t\tif (n ==0){\n\t\t\treturn 0; // f(0) = 0\n\t\t}else if(n==1){\n\t\t\treturn 1; // f(1) =1\n\t\t}else if (n>1){\n\t\t\treturn fiboUsingRecursive(n-1)+ fiboUsingRecursive(n-2);// f(n) = f(n-1) + f(n-2)\n\t\t}else {\n\t\t\treturn -1;// Error condition\n\t\t}\n\t}", "title": "" }, { "docid": "9ee55e14eeabb4756b6b32ab9870b923", "score": "0.5632511", "text": "public int cherryPickupUsingRecursion(int[][] grid) {\r\n\t\tint n = grid.length;\r\n\r\n\t\tif (n == 0) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\r\n\t\tdfsDown(grid, 0, 0, 0, n);\r\n\r\n\t\treturn max_cherries;\r\n\t}", "title": "" }, { "docid": "855eaeaeb4065ae2409016c8d8392d09", "score": "0.5585857", "text": "@Test\n public void recusiveGetTest() {\n StudentLinkedListDeque<Integer> lld = new StudentLinkedListDeque<Integer>();\n count = 500;\n int i;\n int[] exp = new int[count];\n for (i = 0; i < count; i++) {\n \texp[i] = i;\n lld.addFirst(i);\n }\n for (i = 0; i < count; i++) {\n \tlld.removeLast();\n }\n for (i = 0; i < count; i++) {\n \tlld.addLast(i);\n }\n for (i = 0; i < count; i++) {\n \tint expected = exp[i];\n \tint actual = lld.getRecursive(i);\n \tassertEquals(\"recursiveGetTest. \\n Calling getRecursive() from a list. \\nExpected \" + expected + \" but returns \" + actual +\" . \", expected, actual);\n }\n\n }", "title": "" }, { "docid": "631e1fb5e5a704f13ae948acab97f2e3", "score": "0.55717963", "text": "static int factorial(int num) {\n\t\tif(num<=0) return 1;\n\t\treturn num * factorial(num-1);\n\t}", "title": "" }, { "docid": "5d6d9b96e70e22797db11a29ba9d9133", "score": "0.5553698", "text": "private long fibRecursive (long n) {\n if (n <= 1) {\n return n;\n }\n else {\n return fibRecursive(n - 1) + fibRecursive(n - 2);\n }\n }", "title": "" }, { "docid": "df4501e31e7394e2db99a853cbedb49c", "score": "0.55486715", "text": "public static void reduceByOne (int n) {\r\n\t\tif (n >= 0) {\r\n\t\t\tSystem.out.println(n); //print number before recurse again\r\n\t\t\treduceByOne(n-1);\t\t\t\r\n\t\t}\t\r\n\t}", "title": "" }, { "docid": "2f5f8a21160d9499bfc3e3f323d76a57", "score": "0.5531894", "text": "private static long recursion(int n, int opened, boolean flag){\n if(n == 0) return opened != 0 || flag ? 1L: 0;\n\n long result = dp[n][N + opened][flag ? 1: 0];\n if(result != -1) return result;\n\n result = recursion(n - 1, opened + 1, flag)\n + recursion(n - 1, opened - 1, opened <= 0 || flag);\n\n return dp[n][opened + N][flag ? 1: 0] = result;\n }", "title": "" }, { "docid": "6249f6b2fc16ca6262bdec553c5b019b", "score": "0.55170554", "text": "public static void main(String[] args) {\n\t\t\r\n\t\tint[] ar = {2,7,9,3,1};\r\n\t\tint n = ar.length;\r\n\t\t// Brute force recursion Time O(2^n) Space -> Stack Space O(n)\r\n//\t\tint res = rob(ar,ar.length);\r\n//\t\tSystem.out.println(res);\r\n\t\t\r\n\t\t// Top-Down DP Time O(n) Space-> O(n)+Stack Space O(n)\r\n\t\t\r\n//\t\tint[] dp = new int[n+1];\r\n//\t\t\r\n//\t\tint res = rob(ar,dp,n);\r\n//\t\tSystem.out.println(res);\r\n\t\t\r\n\t\t// Bottom-Up DP TIme O(n) Space -> O(n)\r\n\t\t\r\n//\t\tint[] dp = new int[n+1];\r\n//\t\t\r\n//\t\tdp[1] = ar[0];\r\n//\t\t\r\n//\t\tfor(int i=2;i<=n;i++) {\r\n//\t\t\tdp[i] = Math.max(dp[i-1], ar[i-1] + dp[i-2]);\r\n//\t\t}\r\n//\t\t\r\n//\t\tSystem.out.println(dp[n]);\r\n\t\t\r\n\t\t\r\n\t\t// Bottom-Up dp with time O(n) and Space O(1)\r\n\t\t\r\n\t\tif(n==0) {\r\n\t\t\tSystem.out.println(0);\r\n\t\t\treturn ;\r\n\t\t}\r\n\t\t\r\n\t\tif(n==1) {\r\n\t\t\tSystem.out.println(ar[0]);\r\n\t\t\treturn ;\r\n\t\t}\r\n\t\t\r\n\t\tif(n==2) {\r\n\t\t\tSystem.out.println(Math.max(ar[0], ar[1]));\r\n\t\t}\r\n\t\t\r\n\t\tint a = ar[0];\r\n\t\tint b = Math.max(ar[0], ar[1]);\r\n\t\t\r\n\t\tfor(int i=2;i<n;i++) {\r\n\t\t\tint temp = Math.max(a+ar[i], b);\r\n\t\t\ta = b;\r\n\t\t\tb = temp;\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(b);\r\n\t}", "title": "" }, { "docid": "c47dfb9bdf2532927624cdc02b0ecad2", "score": "0.5503836", "text": "public void recursive(int n, int[] from, int[] aux, int[] to) {\r\n\t\tif (n == 1) {\r\n\t\t\tmove(from, to);\r\n\t\t} else {\r\n\t\t\trecursive(n - 1, from, to, aux);\r\n\t\t\tmove(from, to);\r\n\t\t\trecursive(n - 1, aux, from, to);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "482c9e2b63d63843bcfb9dd096fb80fa", "score": "0.54988587", "text": "private static void recursiveApproach(char[] ch, int currentIndex) {\n\n\n\n\n\tif (currentIndex == ch.length - 1) {\n\n\trecurPermutations.add(String.valueOf(ch));\n\n\t}\n\n\n\n\n\tfor (int i = currentIndex; i < ch.length; i++) {\n\n\tswap(ch, currentIndex, i);\n\n\trecursiveApproach(ch, currentIndex + 1);\n\n\tswap(ch, currentIndex, i);\n\n\t}\n\n\t}", "title": "" }, { "docid": "c07a85b651c3684b40b658cdadfdaaf4", "score": "0.54943305", "text": "private static int factorial(int n) {\n if (n == 1 || n == 0)\n return 1;\n else\n return n * factorial(n - 1);\n }", "title": "" }, { "docid": "f8762dfeb0315ca172acb3ff04c662a9", "score": "0.547419", "text": "public static int recursive_factorial(int num) {\n if(num < 0)\n throw new IllegalArgumentException(\"No factorial for negative numbers!\");\n \n return (num < 1) ? 1 : num * factorial(num - 1);\n }", "title": "" }, { "docid": "501e46363191dbed4822688725c98493", "score": "0.5468708", "text": "private static TreeNode BSTrecursive(int[] pre) {\n\t\treturn helper(pre, Integer.MIN_VALUE, Integer.MAX_VALUE);\n\n\t}", "title": "" }, { "docid": "79f7d682d7e8ebe0d99003b19e6cc300", "score": "0.5461239", "text": "private static int fact(int number) {\n\t\tif(number ==0)\n\t\t\treturn 1;\n\t\treturn number * fact(number-1);\n\t}", "title": "" }, { "docid": "efa38cdaddebe24b3fc6f9be5ab2a459", "score": "0.54463077", "text": "private static int summation(int n) {\n if(n>1)/* Recursive case for positive numbers */ {\n return n + summation(n-1);\n }\n else if(n == 1) /* Base case for positive number */{\n return 1;\n }\n else if(n<(-1)) /* Recursive case for negative numbers */ {\n return n + summation(n+1);\n }\n else if(n == (-1)) /* Base case for negative numbers */ {\n return -1;\n }\n else /* Catch all for bad inputs */ {\n return 0;\n }\n }", "title": "" }, { "docid": "d3841cc66d7e5fa9c536d9e1a9ed0607", "score": "0.54452693", "text": "static void solution() {\n\t\tlong ans = 1;\n\t\tSet<Long> gozintaChain = new HashSet<Long>();\n\t\tfor (int a = 1; a < 45; a++)\n\t\t\tfor (int b = 1; b < 5; b++)\n\t\t\t\tfor (int c = 0; c < 2; c++)\n\t\t\t\t\tfor (int d = c; d < 2; d++)\n\t\t\t\t\t\tfor (int e = d; e < 2; e++)\n\t\t\t\t\t\t\tfor (int f = e; f < 2; f++) {\n\t\t\t\t\t\t\t\tBigInteger n = getGozinta(new long[] { a, b, c, d, e, f });\n\t\t\t\t\t\t\t\tif (n.compareTo(BigInteger.valueOf(10).pow(16)) < 0 && getGozinta(new long[] { n.longValue() }).equals(n))\n\t\t\t\t\t\t\t\t\tgozintaChain.add(n.longValue());\n\t\t\t\t\t\t\t}\n\t\tfor (long i : gozintaChain)\n\t\t\tans += i;\n\t\tSystem.out.println(ans);\n\t}", "title": "" }, { "docid": "909e89e68b105be2ddb27b0c93df5f9d", "score": "0.5439393", "text": "public static void q7(String[] args) throws Exception{\n SOP(\"Running q7\");\n if(args.length != 1){\n SOP(\"The question takes no parameters\");\n return;\n }\n\n bNode root = generateSampleTree1();\n //4 and 5 should return 2\n //4 and 7 should return 1\n //5 and 6 should return 1\n //1 and 5 should return 1\n //1 and 7 should return 1\n\n bNode retVal1 = findFirstCommonAncestor(root, 4, 5);\n bNode retVal2 = findFirstCommonAncestor(root, 4, 7);\n bNode retVal3 = findFirstCommonAncestor(root, 5, 6);\n bNode retVal4 = findFirstCommonAncestor(root, 1, 5);\n bNode retVal5 = findFirstCommonAncestor(root, 1, 7);\n\n \n testResult(retVal1.data, 2, \"Test 1\");\n testResult(retVal2.data, 1, \"Test 2\");\n testResult(retVal3.data, 1, \"Test 3\");\n testResult(retVal4.data, 1, \"Test 4\");\n testResult(retVal5.data, 1, \"Test 5\");\n }", "title": "" }, { "docid": "cb4f39278776c91217ea31272599b26a", "score": "0.5427451", "text": "public void recursiveTraverse() {\n int lenA = a.getLength(), lenB = b.getLength();\n\n if(lenA - lenB > 0)\n stuffZeros(b, lenA - lenB);\n else if(lenB - lenA > 0)\n stuffZeros(a, lenB - lenA);\n\n AddParam param = addInForwardOrder(a.getHead(), b.getHead());\n if(param.getCarryOver() > 0)\n insertAtBeginning(answer, param.getCarryOver());\n }", "title": "" }, { "docid": "439aa9ef605881f4ecf1e44a361f1685", "score": "0.54178494", "text": "public void spiralTraversal() {\n spiralTraversal(root, 0); // uses recursion\n }", "title": "" }, { "docid": "92bbbfb38ad5fe6d9bdd96480afc0af9", "score": "0.54152924", "text": "public static void main(String[] args) {\n int max_call_counter = 10;\n int current_count = 0;\n // Following function will be called 10 times;\n simple_recursive_function(max_call_counter, current_count);\n\n\n // Example 2\n // Calculate factorial of N\n // which can be represented as\n // f(n) = n * f(n-1)\n // where n > 1 and f(0) = 1\n long factorial_output;\n int value = 10;\n factorial_output = factorial(value);\n System.out.printf(\"Factorial of %d = %d \\n\", value, factorial_output);\n\n }", "title": "" }, { "docid": "5757854693adb9f425fefa04033229b1", "score": "0.5405355", "text": "public static void main(String args[]) {\n System.out.println(\"factorial of 5 using recursion in Java is: \" + factorial(6)); \n \n //finding factorial of a number in Java using Iteration - Example \n System.out.println(\"factorial of 6 using iteration in Java is: \" + fact(5)); \n }", "title": "" }, { "docid": "d4ccf64727280049ce8ac6c96933fd75", "score": "0.54021233", "text": "public int factorial(int n){\n\tif (n==1){\n\t return 1;}\n\treturn n*factorial(n-1);\n }", "title": "" }, { "docid": "27215a994d649d51d36aabf4635f96aa", "score": "0.5400192", "text": "public void backtrack(int first, List<Integer> curr, int[] nums, int k,List<List<Integer>> res ){\n if(curr.size() == k){\n res.add(new ArrayList(curr));\n return;\n }\n \n for(int i=first; i<nums.length;i++){\n //add i into the current combo\n curr.add(nums[i]);\n //use next element to complete combination in the list\n backtrack(i+1, curr, nums,k,res);\n //backtrack\n curr.remove(curr.size()-1);\n }\n }", "title": "" }, { "docid": "d6148ecf4eb4c45a0a90d0b9a6b1277b", "score": "0.53908443", "text": "public int factorial(int n){\n\t\tif(n==0){\n\t\t\treturn 1;\n\t\t}\n\t\telse {\n\t\t\treturn n * factorial(n-1);\n\t\t}\n//\t\treturn a;\n\t}", "title": "" }, { "docid": "30a78a1eca05e2ab8a11a5174239aaf3", "score": "0.53732353", "text": "private int factorial(int n) {\n if (n < 0) {\n return -1;\n } else if (n == 0) {\n return 1;\n } else {\n return n * factorial(n - 1);\n }\n }", "title": "" }, { "docid": "44e06f4026138cf3fbdd5717661bdfb0", "score": "0.5368803", "text": "private void pathSum1(TreeNode root, int sum, List<Integer> pl, List<List<Integer>> ret) {\n if (root == null) return;\n if (root.left == null && root.right == null) {\n if (root.val == sum) {\n pl.add(root.val);\n ret.add(pl);\n return;\n } else {\n return;\n }\n }\n if (root.left != null) {\n List<Integer> ppl = new ArrayList<>(pl);\n ppl.add(root.val);\n pathSum1(root.left, sum - root.val, ppl, ret);\n }\n if (root.right != null) {\n pl.add(root.val);\n pathSum1(root.right, sum - root.val, pl, ret);\n }\n \n }", "title": "" }, { "docid": "1b09acc673b90d3bd2099f5f5d1d2982", "score": "0.5363835", "text": "public static void runHeadRecursion(int n) {\n\t\tif (n < 1)\n\t\t\treturn;\n\t\trunHeadRecursion(n - 1);\n\t\tSystem.out.println(\"head recursion: \" + n);\n\t}", "title": "" }, { "docid": "42532efb96a0f7a233f8fcb1385b52e0", "score": "0.5361966", "text": "@Test\n public void recursiveChecks4() {\n SnakeGame game = new SnakeGame(board3, 2, 0);\n int[] solution = {0,3,6};\n assertArrayEquals(solution, game.findTailRecursive());\n }", "title": "" }, { "docid": "7ca8a9a8ea0f63997a544c54ccc7f2fc", "score": "0.5347476", "text": "public void run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString result = \"\";\n\t\tint num = scan.nextInt();\n\t\tif(num>100 || num<1)\n\t\t\treturn;\n\t\twhile (num > 0) {\n\t\t\tA = scan.nextInt();\n\t\t\tB = scan.nextInt();\n\t\t\tif(A> Math.pow(10, 8) || A<1) \n\t\t\t\treturn;\n\t\t\tif(B> Math.pow(10, 8)|| B<1)\n\t\t\t\treturn;\n\t\t\trecursive(0,0,1);\n\t\t\tnum--;\n\t\t\tresult += n +\"\\n\";\n\t\t\tn = 1;\n\t\t}\n\t\tSystem.out.println(result);\n\t\tscan.close();\n\t}", "title": "" }, { "docid": "eca1a86adcd4e69fee7c9863b1634047", "score": "0.5323415", "text": "public static void main(String[] args) {\n\n\t\trecs(0);\n\t\t\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\tint[] arr = {1, 2, 3};\n\t\trecc(arr, 0, 3, arr.length, al, 0);\n\t\t\n\t\t\n\t\tSystem.out.println(fun(arr, 0, 3, arr.length, 0) - 1);\n\t\t\n\t\tfunn(arr, 0, 3, arr.length, 0);\n\t System.out.println(count - 1);\n\n\t}", "title": "" }, { "docid": "1fde9df9a211f477af820bc06285f004", "score": "0.5322992", "text": "static int runSequence(long n) {\r\n // If n == 1, we have reached the end, so return\r\n if (n == 1){\r\n return 1;\r\n }\r\n // If n is even, then divide by two\r\n else if (n % 2 == 0){\r\n return 1 + runSequence(n / 2);\r\n }\r\n // If n is odd, then 3n + 1 is next term\r\n else {\r\n return 1 + runSequence ((3 * n)+ 1);\r\n }\r\n }", "title": "" }, { "docid": "14e32a1a91894a60013ea70ff83cf0ef", "score": "0.53067195", "text": "static void subsets(int arr[], int i, int sum,\n ArrayList<Integer> p)\n {\n /*\n If we reached end and sum is non-zero. We print\n p[] only if arr[0] is equal to sun OR dynamicArr[0][sum]\n is true.\n */\n if (i == 0 && sum != 0 && dynamicArr[0][sum])\n {\n p.add(arr[i]);\n display(p);\n p.clear();\n return;\n }\n if (i == 0 && sum == 0)\n {\n display(p);\n p.clear();\n return;\n }\n /*\n If given sum can be achieved after ignoring\n current element.\n */\n if (dynamicArr[i-1][sum])\n {\n // Create a new vector to store path\n ArrayList<Integer> b = new ArrayList<>();\n b.addAll(p);\n subsets(arr, i-1, sum, b);\n }\n /*\n If given sum can be achieved after considering\n current element.\n */\n if (sum >= arr[i] && dynamicArr[i-1][sum-arr[i]])\n {\n p.add(arr[i]);\n subsets(arr, i-1, sum-arr[i], p);\n }\n }", "title": "" }, { "docid": "548d39ce0bfa1163fb76b5cae671c545", "score": "0.53041154", "text": "@Test\n public void recursiveChecks2() {\n SnakeGame game = new SnakeGame(board2, 4, 0);\n int[] solution = {5,6,24};\n assertArrayEquals(solution, game.findTailRecursive());\n }", "title": "" }, { "docid": "17e441f5a4e455088a08721c1fad053b", "score": "0.52978486", "text": "public static void main(String[] args) {\n\t\tTreeNode root = new TreeNode(8);\n\t\troot.left = new TreeNode(2);\n\t\troot.left.left = new TreeNode(8);\n\t\troot.left.right = new TreeNode(7);\n\t\troot.right = new TreeNode(6);\n\t\t//root.right.left = new TreeNode(1);\n\t\t//System.out.println(treeproblem(root));\n\t\t//System.out.println(StackProblem(\"13 DUP 4 POP 5 DUP + DUP + -\"));\n\t\tSystem.out.println(monotonic(new int[]{1, 4, 7, 3, 3, 5}));\n\t\tSystem.out.println(sol(new int[]{1, 4, 7, 3, 3, 5}));\n\t}", "title": "" }, { "docid": "90ed7c586cc68570ba38a52f06c4d8bf", "score": "0.5293154", "text": "private static int recur(BigDecimal num) {\n String numStr = num.toPlainString();\n int period = 2;\n int start = 2;\n while(period < (numStr.length() - 1)/2) {\n if (numStr.substring(start, start + period)\n .equals(numStr.substring(start + period, start + 2 * period))) {\n return period;\n }\n period++;\n }\n return -1;\n }", "title": "" }, { "docid": "b653312916390753c38bfe44e9924a10", "score": "0.5288556", "text": "public static void simple_recursive_function(int max_count, int current_count) {\n System.out.println(\"simple_recursive_function called : \" + current_count);\n // This is exiting condition\n if(current_count > max_count) {\n return;\n }\n // Call the function again but increase the current_count by 1\n simple_recursive_function(max_count, current_count+1);\n return;\n }", "title": "" }, { "docid": "5bd632bb12c38e2795965253e13aabdb", "score": "0.5274268", "text": "protected String dfs1(ArrayList<User> list, User u, boolean visited[], String rezultat) {\r\n if (u.getFriends().size() > 0) {\r\n for (User friend : u.getFriends()) {\r\n int index = list.indexOf(friend);\r\n if (!visited[index]) {\r\n visited[index] = true;\r\n rezultat += Long.toString(friend.getId());\r\n rezultat += \" \";\r\n rezultat += dfs1(list, friend, visited, rezultat);\r\n }\r\n }\r\n }\r\n return rezultat;\r\n }", "title": "" }, { "docid": "c1a7ca80b7ef027aa3112445dd3b9b56", "score": "0.52722377", "text": "public static long ackermannRecursion(long m, long n){\n if (m == 0) return n + 1;\n if (n == 0) return ackermannRecursion(m - 1, 1);\n return ackermannRecursion(m - 1, ackermannRecursion(m, n - 1));\n }", "title": "" }, { "docid": "217caea491c54c2b7cd05cb5df374534", "score": "0.52672064", "text": "static void print(int n) {\n\t\t\n\t\tif(n==1) { //Base condition \n\t\t\tSystem.out.println(n);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tprint(n-1);\n\t\tSystem.out.println(n); //Induction code \n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "33eef5fd8234ee5a8f02ac3dfb265036", "score": "0.5266657", "text": "public void recursion()\n {\n \tfor (int j = (kainan.size()-1); j>0; j--)\n \t{\n \t\tfor (int i = (j-1); i>=0; i--)\n \t\t{\n \t\t\tif (kainan.get(i).getScore() < kainan.get(j).getScore())\n \t\t\t{\n \t\t\t\tswap(i,j);\n \t\t\t}\n \t\t}\n \t}\n }", "title": "" }, { "docid": "3bbe41e01843d905b7379781230153ea", "score": "0.525287", "text": "private Expression<E,Z> solveRecursively(Expression<E, Z> expression) {\n\n\t\tList<ExpressionCoefficient<E>> coefficients = expression\n\t\t\t\t.getExpressionCoefficients();\n\t\tZ[] expressionVariables = expression.getExpressionVariables();\n\t\tExpressionConstraint<E> expressionConstraint = expression\n\t\t\t\t.getExpressionConstraint();\n\t\tE constrainedValue = coefficients.get(0).getConstrainedValue();\n\t\tE valueToOptimize = coefficients.get(0).getValueToOptimize();\n\t\tE expressionValue = expression.getExpressionValue();\n\n\t\tExpressionConstraint<E> adjustedConstraint = new ExpressionConstraint<E>(\n\t\t\t\t(E) Util.adjustConstraint(expressionConstraint.getLimitValue(),\n\t\t\t\t\t\tconstrainedValue, -1));\n\t\tE adjustedValueToOptimize = (E) Util.adjustConstraint(expressionValue,\n\t\t\t\tvalueToOptimize, 1);\n\n\t\tboolean isNotValid = Util.compareTo(constrainedValue, expression\n\t\t\t\t.getExpressionConstraint().getLimitValue()) > 0;\n\n\t\tExpression solvedExpressed = checkForRecursionBreakingCondition(expression, isNotValid, adjustedConstraint, adjustedValueToOptimize);\n\t\tif(solvedExpressed != null) {\n\t\t\treturn solvedExpressed;\n\t\t}\n\t\tif (isNotValid) {\n\t\t\treturn solveRecursively(new Expression<E, Z>(\n\t\t\t\t\tcoefficients.subList(1, coefficients.size()),\n\t\t\t\t\texpressionVariables.clone(), new ExpressionConstraint<E>(\n\t\t\t\t\t\t\texpressionConstraint.getLimitValue()),\n\t\t\t\t\texpressionValue));\n\t\t}\n\t\t/**\n\t\t * Computing expression without the given coefficient\n\t\t */\n\t\tExpression<E, Z> exp1 = solveRecursively(new Expression<E, Z>(\n\t\t\t\tcoefficients.subList(1, coefficients.size()),\n\t\t\t\texpressionVariables.clone(), expressionConstraint,\n\t\t\t\texpressionValue));\n\n\t\t/**\n\t\t * Computing expression with the given coefficient\n\t\t */\n\n\t\tExpression<E, Z> exp2 = solveRecursively(new Expression<E, Z>(\n\t\t\t\tcoefficients.subList(1, coefficients.size()),\n\t\t\t\texpressionVariables.clone(), adjustedConstraint,\n\t\t\t\tadjustedValueToOptimize));\n\t\texp2.getExpressionVariables()[expressionVariables.length\n\t\t\t\t- coefficients.size()] = changedValue;\n\n\t\t/**\n\t\t * Compare and return the optimal case.\n\t\t */\n\t\tif (Util.compareTo(exp1.getExpressionValue(), exp2.getExpressionValue()) == 0) {\n\t\t\tif (Util.compareTo(exp1.getExpressionConstraint().getLimitValue(),\n\t\t\t\t\texp2.getExpressionConstraint().getLimitValue()) > 0) {\n\t\t\t\treturn exp1;\n\t\t\t} else {\n\t\t\t\treturn exp2;\n\t\t\t}\n\t\t} else if (Util.compareTo(exp1.getExpressionValue(),\n\t\t\t\texp2.getExpressionValue()) > 0) {\n\t\t\treturn exp1;\n\t\t} else {\n\t\t\treturn exp2;\n\t\t}\n\n\t}", "title": "" }, { "docid": "08b849f877476b8c765fab7e463c4788", "score": "0.5243796", "text": "private static int print(int num) {\n if (num == 0 || num == 1) return num;\n else {\n return print(num - 1) + print(num - 2);\n }\n }", "title": "" }, { "docid": "b21e5c49002e1a04a3b49c60eb5adfc5", "score": "0.5237422", "text": "void solve(int num){\n\t\tif (num == 0 || num == 1){\n\t\t\tSystem.out.println(1);\n\t\t\treturn;\n\t\t}\n\t\tint prev = 1;\n\t\tint ans = 1;\n\t\tfor (int i=0; i<num-1; i++){\n\t\t\tint temp = ans;\n\t\t\tans += prev;\n\t\t\tprev = temp;\n\t\t}\n\t\tSystem.out.println(ans);\n\t}", "title": "" }, { "docid": "4136999daf916b185c88c6d4a901b070", "score": "0.5230236", "text": "public int sumNums1(int n) {\n if (n == 1) {\n return n;\n } else {\n return n + sumNums1(n - 1);\n }\n }", "title": "" }, { "docid": "fa66652223c668116f9e6f1795557e01", "score": "0.5225831", "text": "static int fact(int n) {\n return (n <= 1) ? 1 : n * fact(n - 1);\n }", "title": "" }, { "docid": "9d9a8993a5fe639a662d894b9eca903f", "score": "0.5221298", "text": "public static void main(String []args)\n\t\t{\n\t\t\tString str = \"1(2)\";\n\t\t\t\n\t\t\tLowestCommonAncestor lot = new LowestCommonAncestor();\n\t\t\tfor (int i = 0; i < str.length();i++) {\n\t\t\t\tLowestCommonAncestor.root = lot.str2tree(str);\n\t\t\t}\n\t\t\tlot.inorder(LowestCommonAncestor.root);\n\t\t\n\t\t\t\n\t\t}", "title": "" }, { "docid": "a8b642a46cddca28553742e69bd7b688", "score": "0.5216838", "text": "private static int fac (int n) {\n if (n == 1) return 1;\n return n * fac(n - 1);\n }", "title": "" }, { "docid": "702d30724763f02b0aa3828d5873690c", "score": "0.52121735", "text": "private static int recursion(int current, int time) {\n if(time < 0) return INF;\n if(current == 0) return 0;\n\n if(dp[current][time] != -1) return dp[current][time];\n\n int answer = Math.max(recursion(current - 1, time)\n , recursion(current - 1, time - times[current]) + scores[current]);\n\n return dp[current][time] = answer;\n }", "title": "" }, { "docid": "9a56fce402a7a9303768193283e857f1", "score": "0.52031076", "text": "static long factorial(long n)\n {\n if (n == 0)\n {\n return 1;\n }\n return n * factorial(n-1);\n }", "title": "" }, { "docid": "ddbb8cde0fcddd845cb419bb5ab273fd", "score": "0.519555", "text": "@Test\n public void recursiveChecks(){\n SnakeGame game = new SnakeGame(board1, 5,1);\n int[] solution = {3,5,13};\n assertArrayEquals(solution, game.findTailRecursive());\n //assertEquals(13,game.getRecursiveChecks());\n }", "title": "" }, { "docid": "bf85382f329687dd9cff7cf9da27670e", "score": "0.51939857", "text": "static void Combination(String str, String ans) \n {\n if (str.length() == 0) { \n System.out.print(ans + \" \"); \n return; \n } \n \n for (int i = 0; i < str.length(); i++) { \n \n // ith character of str \n char ch = str.charAt(i); \n \n // Rest of the string after excluding \n // the ith character \n String ros = str.substring(0, i) + \n str.substring(i + 1); \n \n // Recurvise call \n Combination(ros, ans + ch); \n } \n }", "title": "" }, { "docid": "50eadbc4fdf2888dcb8b41c34d85aef7", "score": "0.51911163", "text": "public long fibonacciRecursive(long number){\n\t\tif ((int) number == 0){\n\t\t\treturn 0 % p;\n\t\t}\n\t\telse if ((int) number == 1){\n\t\t\treturn 1 % p;\n\t\t}\n\t\telse{\n\t\t\treturn fibonacciRecursive(number-1) % p + fibonacciRecursive(number-2) % p; \n\t\t}\n\t}", "title": "" }, { "docid": "b54aefb0de196bd75d9ce80f0dad1e7c", "score": "0.5182373", "text": "public static void generate(List<String> acc , List<String> x, int sum) {\n if (x.size()==0){\n //then sum every value in the set. print the set if it equal our target\n if (acc.stream().mapToInt(Integer::valueOf).sum() == sum){\n System.out.println(acc.toString()\n .replace(\"[\", \"{\")\n .replace(\"]\", \"}\"));\n } \n } else {\n //head is the first element of x\n String head = x.get(0);\n\n //We need a new list to save and pass into our recursive call\n List<String> orig = new ArrayList<String>();\n\n //copy the acc before we modify it\n orig.addAll(acc);\n\n //add the head of x to acc, \n acc.add(head);\n\n generate(acc, x.subList(1,x.size()), sum); //generate(acc ++ head x, tail x)\n generate(orig, x.subList(1,x.size()), sum); //generate(acc, tail x)\n }\n }", "title": "" }, { "docid": "2b348198d2b99a46c8414f7ce3fac5c6", "score": "0.5177963", "text": "public static void main(String[] args) {\n addition(2,3);\n addition(5,3);\n addition(3,3);\n \n \n// int addResult = additionRetrn(4,5);\n \n System.out.println(\"Result is :\"+additionRetrn(4,5));\n System.out.println(\"Result is :\"+additionRetrn(3,5));\n System.out.println(\"Result is :\"+additionRetrn(2,5));\n\t\t\n\t}", "title": "" }, { "docid": "0f3b5b1345a46ede5ea83f0357a24171", "score": "0.5174345", "text": "public static void main(String[] args) {\n\t\tint n = 6 ;\r\n\t\tint[] arr = new int[n] ;\r\n\t\tfor(int i = 0 ; i < n ; i++ ) {\r\n\t\t\tif(i % 2 == 0) {\r\n\t\t\t\tarr[i] = 3 ;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tarr[i] = 2 ;\r\n\t\t\t}\r\n\t\t}\r\n\t\tgtoh_with_recursion(4,1,arr) ;\r\n\t\tSystem.out.println(\"\\n\");\r\n\t\tgtoh_without_recursion(4,1,2,3) ;\r\n\t\tSystem.out.println(\"SUCCESS\");\r\n\t}", "title": "" }, { "docid": "1d4ce7ca90827abb6b6c2aabfe384df5", "score": "0.516547", "text": "public void backtrack(int first, LinkedList<Integer> curr) {\n if (curr.size() == k) {\n output.add(new LinkedList(curr));\n }\n\n // first,...,n 选择一个添加到 curr\n for (int i = first; i < n + 1; ++i) {\n // add i into the current combination\n curr.add(i);\n // use next integers to complete the combination\n backtrack(i + 1, curr);\n // backtrack\n curr.removeLast();\n }\n }", "title": "" }, { "docid": "16d101bea89e5ddda6090cd3f25d9930", "score": "0.5164728", "text": "private void traverseDepthFirst(T o, Set<T> s)\n {\n if(!s.contains(o))\n {\n s.add(o);\n Iterator<T> i = successors(o);\n while(i.hasNext())\n {\n traverseDepthFirst(i.next(), s);\n }\n visit(o);\n }\n }", "title": "" }, { "docid": "d6ed1a81956c308d4ee0b77756220ffc", "score": "0.51633775", "text": "public static void DFS() {\r\n\r\n }", "title": "" }, { "docid": "20fbf41d087fbdf2f327471fc42af3fa", "score": "0.51623815", "text": "public long factorial( long number )\r\n { \r\n // base case\r\n if ( number <= 1 ) \r\n return 1;\r\n\r\n // recursive step\r\n else \r\n return number * factorial( number - 1 );\r\n\r\n }", "title": "" }, { "docid": "4a391f864ca7992a083187d0c40da16c", "score": "0.5158038", "text": "private boolean helper(int[] arr, int cur) {\n if(cur >= arr.length || cur < 0 || arr[cur] < 0) {\n return false;\n }\n if(arr[cur] == 0) {\n return true;\n }\n // We can update arr[cur] to negative value either before using it in DFS\n // since below either 'forward' or 'backward' branch will take one value, \n // no matter if we flip negative -> positive or positive -> negative before \n // the usage or we can use arr[cur] = -1; \n arr[cur] = -arr[cur];\n boolean forward = helper(arr, cur + arr[cur]);\n boolean backward = helper(arr, cur - arr[cur]);\n // We cannot update to negative value after using arr[cur], because the purpose\n // to assign negative value to arr[cur] is to block further process in next\n // level recursion by checking assign arr[cur] to negative value and check \n // arr[cur] < 0 initially when a new level recursion begins, to simulate the same\n // effect as visited array, but if we assign arr[cur] to negative value after\n // already hit the next level recursion, it has chance to go into dead loop\n // and cause stack overflow, e.g Input {3,0,2,1,2}, 2\n //arr[cur] = -arr[cur]; \n return forward || backward;\n }", "title": "" }, { "docid": "f9f1cde5301368cb8b4d6356ec887698", "score": "0.51563334", "text": "private boolean helper(int[] arr, int cur, boolean[] visited) {\n if(cur >= arr.length || cur < 0 || visited[cur]) { \n return false; \n } \n if(arr[cur] == 0) { \n return true; \n } \n visited[cur] = true; \n boolean forward = helper(arr, cur + arr[cur], visited); \n boolean backward = helper(arr, cur - arr[cur], visited); \n return forward || backward; \n }", "title": "" }, { "docid": "2dfebd40a2bcb470f2bcf7a918f9cd94", "score": "0.51555514", "text": "private static void solveProblem(int n, String s, String t, String u) {\n\t\tif(n==0)\n\t\t\treturn;\n\t\telse\n\t\t{\n\t\tsolveProblem(n-1,s,u,t);\n\t\tmove(s,t);\n\t\tsolveProblem(n-1,u,t,s);\n\t\t}\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "d90e768ff9d2d50a659620bda0ad9040", "score": "0.5155071", "text": "public void branch(float h, float s, float num) {\n h *= 0.66f;\n\n // Each branch gets smaller\n s *= 0.7f;\n\n num--;\n\n // All recursive functions must have an exit condition!!!!\n // Here, ours is when the length of the branch is 2 pixels or less\n if (h > 10 && num > 0) {\n strokeWeight(s);\n pushMatrix(); // Save the current state of transformation (i.e. where are we now)\n rotate(theta); // Rotate by theta\n line(0, 0, 0, -h); // Draw the branch\n translate(0, -h); // Move to the end of the branch\n branch(h, s, num); // Ok, now call myself to draw two new branches!!\n popMatrix(); // Whenever we get back here, we \"pop\" in order to restore the previous matrix state\n\n // Repeat the same thing, only branch off to the \"left\" this time!\n strokeWeight(s);\n pushMatrix();\n rotate(-theta);\n line(0, 0, 0, -h);\n translate(0, -h);\n branch(h, s, num);\n popMatrix();\n }\n\n}", "title": "" }, { "docid": "c2cbbc257d951679c293e30b8e181afa", "score": "0.51495886", "text": "static void dfs(List<List<Integer>> ret, int T, int m, int[] arr, List<Integer> sofar) {\n\t\tif (T == 0) {\n\t\t\tif (sofar.size() > 0) {\n\t\t\t\tList<Integer> ans = new ArrayList<Integer>(sofar);\n\t\t\t\tCollections.reverse(ans);\n\t\t\t\tret.add(ans);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\t// Starting from the large elements\n\t\tfor (int i = arr.length - 1; i >= 0; i--) {\n\t\t\tint x = arr[i];\n\t\t\tif (x <= m && x <= T) {\n\t\t\t\tsofar.add(x);\n\t\t\t\tdfs(ret, T - x, x, arr, sofar);\n\t\t\t\tsofar.remove(sofar.size() - 1);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "832cfac21bc7e0fce43af4a025d51b43", "score": "0.5144691", "text": "private double fak(int n){\n if(n == 0) return 1;\n else return n*fak(n-1);\n }", "title": "" }, { "docid": "4a281c907a084956d5b42c801d0d3e32", "score": "0.5133306", "text": "public static long recFib(int n){\n\t\tif((n==1) || (n==2))\n\t\t return 1;\n\t\telse\n\t\t\treturn recFib(n-1) + recFib(n-2);\n//\t\treturn 10;\n\t}", "title": "" }, { "docid": "f5252434245f0474a9b111afb2a08c0a", "score": "0.51325023", "text": "public static void recurseBacktrack(int[] nums, int start, List<Integer> list, List<List<Integer>> result){\n result.add(new ArrayList<>(list));\n // action\n // recurse\n // backtrack\n\n for(int i = start; i<nums.length; i++){\n // action\n list.add(nums[i]);\n // recursion\n recurseBacktrack(nums, i+1, list, result);\n //backtrack\n list.remove(list.size()-1);\n\n }\n }", "title": "" }, { "docid": "37936020225103daee36477ea1301ad8", "score": "0.5117767", "text": "static ArrayList<Integer> dfs(ArrayList<ArrayList<Integer>> g, int N)\n {\n ArrayList<Integer> dfs_ans = new ArrayList<>();\n int[] visited = new int[N];\n visited[0] = 1;\n \n dfs_recursive(g, dfs_ans, visited, 0);\n return dfs_ans;\n }", "title": "" }, { "docid": "ff2bf5e2ae60214ac8823376e0c240a2", "score": "0.5110709", "text": "public String recursiveReverse(String str){\n\t if ((null == str) || (str.length() == 1)) {\n\t return str;\n\t }\n\t \n\t return recursiveReverse(str.substring(1)) + str.charAt(0);\n\t}", "title": "" }, { "docid": "eb5267fa1c9ba414713ecbe8c17c96c5", "score": "0.5109111", "text": "public RecursionTest(String testName) {\n\t\tsuper(testName);\n\t}", "title": "" }, { "docid": "004c391369de2cb5cb71b49420f86e38", "score": "0.5106123", "text": "private boolean recursive(final Enum<?> abourt, final TransitionContainer<? extends Enum<?>, ? extends Enum<?>> possiblePart, final List<TransitionContainer<? extends Enum<?>, ? extends Enum<?>>> chainParts, final int fallBack) {\n\n if (possiblePart.getTo().equals(abourt)) {\n return true;\n }\n\n if (fallBack > this.transitions.size()) {\n return false;\n }\n\n final List<TransitionContainer<? extends Enum<?>, ? extends Enum<?>>> nextPossibles = this.transitions.stream()\n .filter(transition -> transition.getFrom().equals(possiblePart.getTo()))\n .collect(Collectors.toList());\n\n if (nextPossibles.isEmpty()) {\n if (LOGGER.isTraceEnabled()) {\n LOGGER.trace(\"There is no transition available from '{}' to '{}'.\", possiblePart.getFrom().name(), abourt.name());\n }\n return false;\n }\n\n if (nextPossibles.size() == 1) {\n List<TransitionContainer<? extends Enum<?>, ? extends Enum<?>>> temp = new ArrayList<>();\n\n TransitionContainer<? extends Enum<?>, ? extends Enum<?>> toAdd = nextPossibles.get(0);\n\n chainParts.add(toAdd);\n if (!this.recursive(abourt, toAdd, temp, fallBack + 1)) {\n return false;\n }\n\n chainParts.addAll(temp);\n return true;\n }\n\n final List<List<TransitionContainer<? extends Enum<?>, ? extends Enum<?>>>> buffer = nextPossibles.stream()\n .map((nextPossible) -> {\n List<TransitionContainer<? extends Enum<?>, ? extends Enum<?>>> temp = new ArrayList<>();\n temp.add(nextPossible);\n if (!this.recursive(abourt, nextPossible, temp, fallBack + 1)) {\n return null;\n }\n return temp;\n })\n .filter(Objects::nonNull)\n .collect(Collectors.toList());\n\n if (!buffer.isEmpty()) {\n ///< No parts found\n chainParts.addAll(buffer.stream().min(Comparator.comparingInt(List::size)).get());\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "f988d9177c84de0a7d532fb0405f39d1", "score": "0.5102453", "text": "public static int factorial( int n )\n { \n if ( n == 1 || n == 0 ) // base case\n return 1;\n else {\n int result = n * factorial(n-1); \n return result;\n }\n }", "title": "" }, { "docid": "f6c2dd242d01076e8b9519ba39791b41", "score": "0.5091503", "text": "public static int recursive_factorial(int num, int accumulator) {\n if(num < 0)\n throw new IllegalArgumentException(\"No factorial for negative numbers!\");\n \n return (num < 1) ? accumulator : factorial(num - 1, num * accumulator);\n }", "title": "" }, { "docid": "5a1cc51460efea2c075958231fe3e6e9", "score": "0.5091073", "text": "public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n int n = s.nextInt();\n int arr[]=new int[n];\n for(int i=0;i<n;i++){\n arr[i] = s.nextInt();\n }\n int tree[] = new int[4*n];\n int q = s.nextInt();\n\n build(arr,tree,0,n-1,1);\n \n //s.nextLine();\n while(q--!=0){\n \t // s.nextLine();\n \t int x = s.nextInt();\n if(x==0){\n \tint index = s.nextInt();\n \tint value = s.nextInt();\n \tupdate(index-1,value,tree,arr,0,n-1,1);\n }\n else{\n \tint a= s.nextInt();\n \tint b = s.nextInt();\n \tint ans = query(tree,0,n-1,1,a-1,b-1);\n \tif(x==1){\n \t\tSystem.out.println((b-a+1)-ans);\n \t}\n \telse{\n \t\tSystem.out.println(ans);\n \t}\n }\n }\n\t}", "title": "" }, { "docid": "75d4ab74e3e6754a7f5a5c960623fc78", "score": "0.5090866", "text": "public static void main(String args[]) {\n String s = \"((())))()())))(((()()(())))((()(())()((()))())())())()())))))))(((()(())(()))(()()(()()((()))()(())(()(())))))()(())(()()(((()(()()))))((()()))))))()((()())()()))((())()((((()))()()()((()())))())((())))))))(()()((((((()))(((((((()()))((())()(()())()()()(()())(()())(())))()()))))()(((())(())(()())()))()(()))(())((()))))(())))()))((()((()(())(()()()()()))(())())()))))()(()(((())))()()()(((()((()))(()((((((())((()))(()(())(()))(())())))()()))))())(()((()()())()))((((()(()))()()))(()())))((()))(()((((()(())(())()((()))(()))())))(((()(())))((())()(()(((())))())())()()()())((()()))))))(()))(())()(((()))()()((()))(()))(((()))))))))(()(())())(()((())(()()))((())))(()())((((())))(()(()))())(((()(()((()(())((())())(()))(())))()()(())((()()))((()()((()()())())()))())()))())()))())(()(()))(()))()(())))((((())()())()()())((()())(()())(()()))()(())(())))))()()()((()(())(((()(())()()))(()()((()(((()))))))))(((()((()()((()(((((())((()((()((((((((())()))())((())((()((()(()((())(((()(()))())))))))))))))()((()(())())))()(()))(((()))())()(((()))))((()(())(()())(((()(((()((((())()))))(())((()(((((()((()(()()()()((()((((((((((((())()(()))()()(()())()(()(((()((()(()()()())))((())()))())()()))())(((()(())))))()()()(((())))((()(()(((())(())(()((((()(((()(())(((((())()))())())()()(()())((((()(())))((()())))))))))()(()(())))))))()))()())))((())(()()()()()()()(())(()())))))())((()()))))()))))((())((()(((()))))(((()()))()(()((()()())()))(((()(()((())(()(()(()()))()((()(())))()((())))))(())()(())()))((())(((((()))()())(())))((((()((())())(())))(())))))((())())())((((()((())))()()((()()()))()())())(()())(((()))()()))))(()(())(()))()())(()())(()))(((((((()(()))())()())()())((()(((((()())(((())))()())))(()(()(())()((())()))(())))())()))((((()))())((()))(())))))(()))))))(()))))(())))())()()())()()(())()()(((((()))(((()()))()(()((((()(()(()(())))())))())(()()())()(()))())(()()))(()()((()()))))))(())((()()))(())))())())(())((((()))))()))()))()()()))))((((()((())(()))(()()))(())()())(()())))(()(()(())((()())()((())(()))()))()))))((())))(())(()))()()()()()))((())(((()(())))(((((((()(()))(()))())()((()))(()(())((()((()((())))()()((())))))((((())()())(()()(((()()((()))()()((())))(((()())((((()(())())))())()()()(())()))))))()()((()))())(()(((()()))((())))())())())((((()(((()(())())()())((()((()(()((())()(()))()((())))()(()))))(((()))())())(()((()))))()()(((((()))())))(()(()(())((((())())))((()()())(((((((()(()(()))(())))))()))(()(((((())()))((()()()()((()))()(()()()()))(()))))())())()))()(()()(((())((()))(()())))((()()(((())())))))))(())))((()(()(((())((((()))))(()()()))))(((((((())(()(()))(()(())((())(()(()(()(()())(())()(())(()()(()(()))())(())()()(((()())(())(()(((()()(())()((((()()))())(((()(((((()())()(())))()))))(()(()()(()(()()(((()))()))((()())))()(()(())))))))())((((()()))(()))))()((()))(()))())()))()))))(()(())()()()))(((((()))()())())(()())())))()())))))()()()())))))(())(((()))((())((()()))))()((((()(()(()))))(()(())(((())(()()(((()(())()())(()()(()(()())))()())))(((()()((()())()()((()))()))(((()((((()(((()(((()(()())((()))))()(()())(())()(()(((())((()))(())()(())()(()(())()))())()))()())(()))))()))))((()()()((()(()()(())))())(())()(()()))))))))()((()))((((())))())))((()()()(()(()((((()((()))()()((())((())(()))))(())())(((()()(()))))))(()()))()))((()(()(())()))(((())()))(())(()((((()((()()()))()()))(()()(())())((((((())(())((()())()(()())))()))())(()()(()(()()()(()()()()))(()(()()())())((()()()(((()((()())()()((()()(()((()())()())()((()))(()((()())))))))(())((((())(((((())(((())(()))(((()((()()())()((()(()))()()()(()((((())))(())())))((())))(()(((((()()()((())((((((((()()((((())))())())())))))))(((()())(((()))())))()))((())())())))))))))(()()(((())))))(())()()))((())()))(()(()))((()(()((((()(()(((()))))()))(()(()))())())()()(((())())(((()))))(((()())))()(()())()())()))())())(()()(((()()))(())(((()((())((((())))))((()))))(()((()(())))()(())((()(())((()(()())())))()))))(())())(()())()()()((())))((()()))()()()((((()())))))()))))()))())()((()(())()()(())(((()((()))(()(()()))(()))()))))))))))))(()()))(((())((()(((()()()(()())((((()(()()()))())))())(()())))(()((((()))((()()())(((()))()())(()(()((()(()))))(())()()((()())((()(()(()))((()((()())(((()(((((()()()))(()()(()(((()(()())()()()))((()(()())))())(()(()))(())()())))()()()))()())(()(((((()))()()((((()()()()))()()(()((()))(()))))))))))()))()(()((((((())(()))()((())))(((((())))))(()))))()()(()()()(((((()))()())()((((()()))()(())())))(((()((())))))))))(()()()((()))(()())((())))()()((()())))()()(()))))))))()(((()(()))()())((((((())))(((()(()())())))(())())())()()((((()(()(((())(()()(((((()))(()(())()))))))()))()())))()()(()))(((()))()())))((())(((()()))((((((())))(((())()()(()((()))())(()((()()(((())())()))()()())())(()()((((((((())))()(((())(()))))()()())()(())))(((((()())(((())()()))))()((())())(())()(()(()()((()))()(()(((()))))()()())(())()()()(((()((()()()(()())())(())()(((((()())(())()((((()()()))()((())()((()(()(((()(()))()())())()())()(()()(()(((()))()(())(()())(())((())()((()()())(()))))()(()()))))((())()()((()((()()(()((()()())(())))))())))()))))(((((()(()())(()))((()))()(()())())())))()(()()(()((())))))()()))((())((((()))))())((()))())((())((()(()((()))()()()))()((((((())((((((()((((((((()))(()(((()(((((((((())(())())()())))))))())())))()))(()))))()(()))(())))()()()((()()))(())(()))(()()(()())))()(()()()()())))(())((((()))(((((())(()(((((())((()((((()))(((((()))(()())()))))())()))()(()()))((((()))()())(())))()((())))(((((()()((()()((()))))()((())())()))(((((((((()((())((((())()())))(())())()))())))())()))()(()()(()))(()()()((())((()))())))()(()())()(((((((()))))(()()()((()(())))())()))((())())(()(()(())()()())))))(()()()))())()))()())(((())(())))()(())())))()((()(()(())()()()((()))()))((())((((()((((((()()()))()))())())))))()(())(()())))()(((()())(((())))((())()()))((())())()()(()()())()))())(((()((()(((()())(()(())(((())))()))))))())()((((((()))))))()(()))()))())))())((((())(())()(())()))()))((((((((()()(())())((((())))((((()(())()()(())()))())()))(((()((()))()(((((()()()))))(()(()())))(((()(((()(())())((((())(()((()((()(()()(()()))()))()()))()))))))())()(())())))(((())))((()))((()(())())((())))((()))()))(((()))))(()())()())())()())))())))(())))(())())()((()())()()))((()()())(((((()())))())))()()()((((((())())()((())()))(()))()(()())()())(())()())((()((())(())()()()()((())(()())()()((())))()(((()(()(((((()(())))()(()))()(()))()))())()))()())()(()))))()()())(((())((()((())(()(()))()((()))))))(())(()(())())()()((())((())((((())))))(()()())(()()())(())())(((()()(())(())))()()))(())))))())(())()(((())())))((()(((())))(()((())()))()))((()()())()(((((())((((())))(())()()((()()(()()))(()((()))((())())))))))()())))())())((()(()()()()()))))()))((())(((((()())(()))((())))((()(())))))))))(((())(()(())(()(())((()((()))()((())())()())()((()(())())()(((()()((()(()())))))())((())(((()())(((()(()((())((()(((())(()()((((((()))())))())(()(()(()()())())((()))((())(())(())())))()(()())()))())(())((((())()((())))))(()()((())(((((()))()()))()()())(()(((()))())()()()))(((()()))(()(()((())(())))()()((((()()))()(())()())()()()()()(()()))(((())(((()()()((((((((((()()()(((()))))))())))()(((((((()((((((((()))()(((())())())())((((((()()))(()))()))))(())()())))())(()))(((())()()()((()()((())(()))((()(()())))()(()((()((())()()()()(())()()((())())())()()))()()))))((()()((())(((())(())())))((())())())(()))))())))))()((()(()(()))))()))((((())((())())(()))))()((()))(())((()()))()()((())(())())))(())))))()()(()())((()(())(((()((())))()())))()))()))))(())()(()))((()()()()))(())))(()()(())(((()(((()()))()((()))())()))(()(()))())))))))()((()(()))(((())())(())(()))(())(()((()))))))(()())(()()()(((()(((((()))((()))))(()))(())())(((()(()())(()()()()))())(()((()(()))()))())))(((()(()))))()))(()()((())())(()()())((()))(())))()()))(())))())))(()((())((()))((()))))())()()()((((((())((())()))(()))(())(())())))()())()((())))((()()())(()))(((()))())())))(())(())())()())()))((((()()()()))(())))((((())))(())(()((((()))())()))))))()()()))())))()((())))))((())())))()()(()()(()(()()()())((((())))(())(((())(()(()((((())(()()()(()(()((())(())(()())((((()((()((((((()((((())(((()())()((((()((())()(()(()(()((()()()(()(()())(((()(())(()(())(())(()))()((((((((()()(())))(()()(((())()(()(((((()())((()(())()())(((()(()(())()((((((((())()((()()((((())(((()(()((()((((()((((()(()(())())()(((()()))))))(()(((())()(((()())))((()))))(()()))))(()))))))((())())((())))()()()(()((()))()))()))()()()()()))(((((((()((()))((())()(()(()))()((((((((((((()(())))))(()())))()(()()(()(()()))))(((((()()((())()))())()()()))(())())()())()()((()()(()(()()(()))))))()()))(()()((()))))()((()()()())))(((()(((()()(())(())(()(((())(()((()(()))(()()((())()(()()())()))))))(()()((())((()())))(())(()))()(()))(()))()))()(())()(()())))(()))(()()(((()))))())))))((())())))))()()()))(()))((()())())()()))(((())((()((())()(()))()((()))()(())))))))()()())())))(()()(())(()))(())))))()(()))(()()))))))))((((()()()()()))(()))((()((())))(()())(((()()()(())))))()))()())())(()()()))))))((()())))((())))(())()((()))()(()())())))))(((()()(()(())()())(((((()))((()(())(())))))))()()))))))((()((((()()))()))(()()))(()()(())))))(((()()))(()())))(())()((()((()(((()()()()((()())())(()(((((((()((((())(()((((()()(())))))(()())))))(()())))())(())))((()(()))(()())(((())))((((())))))((()))()(((((((())())())((())))))))(()))))))))()((()()())((())))(())))((()(((()(())(())))()()()()))(())(()(())()())(())))()())((()((()((()()((())())))(()((())()()))()))((()()(()))(((((((()))((())((())((())()()((((((((()())()()()))(()()(((()(())()))()))()))()()(()(((((()))))((())(((()))()((((((((()()()()(()))()(()))()(())))))))()((((()()((()(())()((()))((()()(()()))))))))))(())(()))()()((((())))()((())(()((()((()(())()))()()((((()))))()))())))))())(((()()))()))()(()))(()))()((()((((((())())))()))()((())(()(())))))))()))(()()()())())()))((()))(()((()((()())))))((((())()()())(())())()((()((()())()())()(()))))((()())))()))()()))))()((())))())(()))()))(()((())(()))))()()))(()()((((()()))(((()()())(()(()(((()))())))((((()())()()()(())()()()((()))))((()()(()()))()())))(((((()(())())))))(()))))())))(())())()))))((()))))))(((())(((())()(((())))(()))()())(((()(()(((()))))()(()()(())())))))())())()()((())))()(())((()))((())(()())(()()()(()()())((())())))))((()(()())()()))))(()()(()()()(()()))((((((()))(()())(())(())())((())(()(()))((()()(()))))()))()(())))())))())(()((())))((())(()()()(()))((()((((((()())()()))))()))((()((())()))()((((()()()(((())())))()()()())())())(()())()))()(())(())()))())((()(((((()))(())(((((()))(()())(()(()(())()((()(()(()))()(()))))()(((())(()((((((()))(()(((()()())()())((()())))((()((()())()((((((())()))(()))))(()()()()))())())((((((((())((((()()()))(())()()))(()(()()(()(()))))(()))(()()()(())()()(())(()))())((()()((()(()))()))))())((()())())(((((()(()()))((()()()))()()(()(()(((()())(((((((((()))()())(()(()(())(((((()()))))(()())(()())())(())))))((()))())(((()((((()))()))(()(()(((()()(()(((()()))(())))((((()(()()))))((((()()())()))())()))))((())((((((())()()))()))()(((()((())(()((((()())())((((((((((()(((((()())()()(()))))))()((((())())(((()()((((()()())()(((((())))()))(())())(((()(((())()))()()()()(())))(()(((()(()))())))()(((()()()()()(()(((()(((()))()(())(())()()))()((()))))))()(((((()(()()((())(())((())))()(()())(())))())((())(()(()()(((())((()()(()()((()))))())))()(()))()))))))())())))((((((()())))(())(()))()()))()(())))))))((()))(()()()()))()())()()()()))()()())))))))((())(())))(()))(())((()())))(()(((()))((((())())))(())((())())))))(((()())(())()(())))((()()()((()(()))()))(())))((()(()()((()()()))((()))((()))()))(()())()()(((((((((()(()))()())()((())((((((((()(())()(((()((())()((((((((()))())))(()((()((())())())((()()())))(()(()((((((()))))((((())))((()()(())()())()()())(())(((()(()()(())(((())((((())()()(()()(((())()(())((()(()(((()(()())))()))((()()())(())))))(()(()))()))()(()))))(()((()))()())(())(())(()))((()())()))())()())((((()))))())())(((()))(((()()((()((())(())()()))))(((()((((()(((((((((())()()()(())((()(()()(()()(()()(())()())(((((()))))()(())(((()((((()())(()(((()))))()))())((((()()((()(()))))((())(())(()(()))()()(((()))(((((((((()())))((())()(()(((((((()))))))()()(())(((()(()())()()))((()()))((((()(())())))((()())))))()))))))))()()(((())())((()))())((())((()()))())((((((((())((()((())())))))()()))))))()()(())))))()))()()(((()))))(())((((()()()()))((()((((()()(())(((((()())()))))))())())()((((((((((()))()))((()))(())())(()(()(())((()()(()((())(())((((())(()()(()((()((()(((((()(()()((((())(())())(()()())()())((()(())()(())()))))\";\n System.out.println(longestValidParenthesesDP(s));\n }", "title": "" }, { "docid": "0219ff0893f470d37ef81f325faec354", "score": "0.5090388", "text": "@Test\n public void recursiveChecks6() {\n SnakeGame game = new SnakeGame(board4, 2, 0);\n int[] solution = {0,3,6};\n assertArrayEquals(solution, game.findTailRecursive());\n }", "title": "" }, { "docid": "3ca14a1aa4643fbde309c0ebc45d3112", "score": "0.50898695", "text": "public int computeElementRecursive(int elementnum)\n\t{\n\t\tif (elementnum <= 0)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\telse if (elementnum == 1||elementnum == 2||elementnum == 3)\n\t\t{\n\t\t\treturn 1;\n\t\t}\n\t\tint result = computeElementRecursive(elementnum-1)+\n\t\t\t\t2*computeElementRecursive(elementnum-2)+\n\t\t\t\t3*computeElementRecursive(elementnum-3);\n\t\treturn result;\n\t}", "title": "" }, { "docid": "99aa0e7ed211d5b61420e82d0ccf33c6", "score": "0.50823593", "text": "public void recursiveSearch (List<Integer> list,int size, int start, int bc,int numb){\n if ( size == 1){ // then found position of number\n mainList.set(start, numb);\n return;\n }\n List <Integer> l1= new ArrayList();// two sub-arrays to test recursively\n List <Integer> l2= new ArrayList();\n for ( int i = 0 ; i < 100 ;i ++ ){\n l1.add(0);\n l2.add(0);\n }\n int s1,s2; // size of two sub-arrays\n if ( size % 2 == 1){\n s1 = (size - 1)/2;\n s2 = (size - 1)/2 + 1;\n }\n else{\n s1=(size /2);\n s2=s1;\n }\n for ( int i = start ; i < s1+start ; i ++ ){\n l1.set(i,list.get(i));\n }\n for ( int i = start+s1; i < start+s1+s2; i ++ ){\n l2.set(i,list.get(i));\n }\n if ( size != 100 && bc == 0 ) // no blacks\n return;\n Pair<Integer,Integer> resp = game.send(l1);\n int p2 = 0;\n int p1 = resp.getKey();\n if ( size == 100) // only on first call of function\n p2 = resp.getValue();\n else if ( p1 != bc) // blacks on sub-array are less then was on initial array so remainder is definetely on 2nd half\n p2 = bc-p1;\n \n if ( p1 > 0 ){\n int alreadyFound = 0;\n int tmp =0; // just position of last element not found\n for ( int i = start; i < start+s1; i ++ ){\n if ( mainList.get(i) != 0 ) // if not found\n alreadyFound++;\n else\n tmp = i;\n }\n if ( alreadyFound < s1 - 1 )\n recursiveSearch(l1,s1,start,p1,numb);\n else{ // only if not found only one number\n mainList.set(tmp, numb);\n }\n }\n if ( p2 > 0 ){\n int alreadyFound = 0;\n int tmp = 0;\n for ( int i = start+s1; i < start+s1+s2; i ++ ){\n if ( mainList.get(i) != 0 )\n alreadyFound++;\n else\n tmp = i;\n }\n if ( alreadyFound < s2 - 1 )\n recursiveSearch(l2,s2,start+s1,p2,numb);\n else{\n mainList.set(tmp, numb);\n }\n }\n \n }", "title": "" }, { "docid": "c8b727516c69d8e6a66bb78f50543a0f", "score": "0.5077894", "text": "private static int myPow(int base, int n) {\n if(n>0) /* Recursive case */ {\n return(base * myPow(base, n-1));\n }\n else if(n == 0) /* Base case */ {\n return 1;\n }\n else /* Catch-all for bad inputs */ {\n return 0;\n }\n }", "title": "" }, { "docid": "6bfba72277ad5191a756cfd9bf1010fc", "score": "0.50778407", "text": "public static void main(String[] args) {\n IncreasingSubsequences solution = new IncreasingSubsequences();\n int[] nums = {4, 6, 7, 7};\n List<List<Integer>> result = solution.findSubsequences(nums);\n System.out.println(\"result:\" + result);\n }", "title": "" }, { "docid": "ec8a19ba2f54a4bf9aaa1c259dfabdc6", "score": "0.5076591", "text": "public static int factorial(int n)\n\t{\n\t\tif(n == 0)\n\t\t{\n\t\t\treturn 1;\n\t\t}\n\t\telse if(n == 1)\n\t\t{\n\t\t\treturn 1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn factorial(n -1) * n;\n\t\t}\n\t}", "title": "" }, { "docid": "db3171e0893bdb5b322b90f6f5428c6e", "score": "0.5071811", "text": "public static void main(String[] args) {\n ArrayList<String> A = new ArrayList<>();\n String s=\"pmbk\";\n boolean[] visited=new boolean[s.length()];\n// for(int i=1;i<=s.length();i++) {\n \t Arrays.fill(visited, false);\n \t FindSub(A,s,\"\",1,visited);\n \t \n \n// subsequence(s,\"\");\n System.out.print(A.toString());\n\t}", "title": "" } ]
efb1dd6d7b63ce466050d681096111c0
Returns the result of interpreting the object as an instance of 'Une'. This implementation returns null; returning a nonnull result will terminate the switch.
[ { "docid": "791b5b25dce9a8a0e5a898e046ee49f4", "score": "0.74971753", "text": "public T caseUne(Une object) {\n\t\treturn null;\n\t}", "title": "" } ]
[ { "docid": "44a2e2e3d85eff233c29c404b0ad167a", "score": "0.63768363", "text": "public T caseUnt(Unt object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "91c8e31097d27b7f3e447eab00d07c58", "score": "0.624687", "text": "public T caseUType(UType object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "d6da026db08f094e6c3f63a5393cb5d3", "score": "0.6129834", "text": "public T caseUnh(Unh object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "c253bfffda760d8335938d35c5aa83c2", "score": "0.60727817", "text": "public T caseUng(Ung object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "6da7f8b0034dcd39167afa757152cf4c", "score": "0.600912", "text": "public T caseUnb(Unb object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "8efbdb9bb0101c653234912e5bcfc7c2", "score": "0.57640845", "text": "public T caseUserinputType(UserinputType object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "897eb33ebfe8bd7f93667804fc3bc239", "score": "0.5723161", "text": "public T caseUData(UData object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "47eba012f0e119b6867b666f55f20aa9", "score": "0.5645397", "text": "public T caseUlType(UlType object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "f294c3853559d5f89adde9229197ab9a", "score": "0.56425816", "text": "public T caseUnEdifact(UnEdifact object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "b9ae16603b9f44a262942c1237333407", "score": "0.56374234", "text": "public T caseIntermediatePrimitiveType(IntermediatePrimitiveType object) {\n return null;\n }", "title": "" }, { "docid": "ba6e96d7f6ce19316ab51369303675ab", "score": "0.5613736", "text": "public T caseUMinus(UMinus object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "14a5d3d1febd10451ca2d0b7b53ad467", "score": "0.5595042", "text": "public T caseSupType(SupType object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "cd9e36d9f3cf91dab295ab0f1c125cf6", "score": "0.55614716", "text": "@Override\n\tpublic Object visitUnExp(ExpUnary unExp, Object arg) throws Exception {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "09d7de9b70f72f3361080c782e72cbb8", "score": "0.555418", "text": "public T caseUnz(Unz object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "fb9747b6f1139551aca6a1d9fc5af844", "score": "0.55439144", "text": "public T caseUnMap(UnMap object)\n {\n return null;\n }", "title": "" }, { "docid": "c8d155e1c769a8deaba0d780076366bd", "score": "0.5519438", "text": "public T caseValueType(ValueType object)\n {\n return null;\n }", "title": "" }, { "docid": "bef2d4215e7d49884ff3c7b9700d5a46", "score": "0.5496055", "text": "public T caseUnderClassE(UnderClassE object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "e486eb6a48dbffe121fa425d437ad005", "score": "0.54889816", "text": "public T caseESequenceValue(ESequenceValue object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "615f53c4425bf73238b7f4be8c625268", "score": "0.5488785", "text": "public Object caseCUnparsedExpression(CUnparsedExpression object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "093131a94eacf953f86917173bd096e6", "score": "0.5488525", "text": "public T caseUnaryExpression(UnaryExpression object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "4954c727546c4fbcf65ffa8ff98ac4c9", "score": "0.5488142", "text": "public T caseAltType(AltType object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "1f8af0a155c88b1a1ec32e42e80323ef", "score": "0.5445163", "text": "public T caseOperType(OperType object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "6df6be6ede08a382a9b0d81b12de62ae", "score": "0.5405578", "text": "public T caseEResourceValue(EResourceValue object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "69b5cbb67a2dbbbc24a97323f8403a85", "score": "0.5384681", "text": "public T caseResult(Result object)\n {\n return null;\n }", "title": "" }, { "docid": "1c528ad27946e24038c64915f94e14a1", "score": "0.53823954", "text": "public T caseAtom(Atom object)\n {\n return null;\n }", "title": "" }, { "docid": "2f6e7e54e488281d20ec5e9045a0e0ee", "score": "0.537373", "text": "public T casePropvaluehdType(PropvaluehdType object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "5ae42a2d4cf4cf704e20952a02228950", "score": "0.5341509", "text": "public T casePrognumType(PrognumType object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "3d81b247e0b0d22cfa1d3f3afe36abf6", "score": "0.53396845", "text": "public Object caseENamedElement(ENamedElement object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "c55afb0f9eabf3a96be52d029dbd906f", "score": "0.5338747", "text": "public T caseESequenceValueItem(ESequenceValueItem object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "7e9ec11ab2afb647396c27bb336f4a88", "score": "0.53380513", "text": "public T caseLVidentifier(LVidentifier object)\n {\n return null;\n }", "title": "" }, { "docid": "528dbfe6fc9021dc2290a30b77c32c1c", "score": "0.5331592", "text": "public T caseImplementationType(ImplementationType object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "33b22b3db5b4634a44bd76e1c560fd0f", "score": "0.53087294", "text": "@ReflectiveMethod(name = \"e\", types = {})\n public int e(){\n return (int) NMSWrapper.getInstance().exec(nmsObject);\n }", "title": "" }, { "docid": "7d963a5b3a810f87172c592591dede46", "score": "0.5305007", "text": "public T caseMsgnumType(MsgnumType object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "efebc40aa7cabf974a8eb965f907e66a", "score": "0.5294129", "text": "public T caseAtomExpression(AtomExpression object)\n {\n return null;\n }", "title": "" }, { "docid": "bc53e86a1b3403e2520872847bf43be4", "score": "0.5292663", "text": "public T caseVariableImplementation(VariableImplementation object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "1150c5cfeefac593e9dec47c4e13af9b", "score": "0.5281081", "text": "public Object caseEModelElement(EModelElement object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "9edf4660963337e9c1184da674194f12", "score": "0.5277374", "text": "public T caseOlType(OlType object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "cddfdd80254a423818096f5763fce164", "score": "0.5274668", "text": "public T caseTerminalExpr(TerminalExpr object)\n {\n return null;\n }", "title": "" }, { "docid": "ca52f31c28998d452a6af7a95a18cc37", "score": "0.5271576", "text": "public T caseMachine(Machine object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ca52f31c28998d452a6af7a95a18cc37", "score": "0.5271576", "text": "public T caseMachine(Machine object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "61f896f5008d3c59ea625f0020f86303", "score": "0.52682406", "text": "public ENU asENU(LLA refPt){\n\t\treturn new ENU(this, refPt);\n\t}", "title": "" }, { "docid": "da571196dea901c951a2090534512c76", "score": "0.52660304", "text": "public T caseMsgphType(MsgphType object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "37092576700984eb0a7e58cac665a095", "score": "0.5252569", "text": "public T caseImpl_expr(Impl_expr object)\n {\n return null;\n }", "title": "" }, { "docid": "cfffb240fd13a41b4c5b7fcd6170228f", "score": "0.52476346", "text": "public T caseExit(Exit object)\n {\n return null;\n }", "title": "" }, { "docid": "190f682013ab2187fcb7641faebf833d", "score": "0.5240054", "text": "public T caseElement(Element object)\n {\n return null;\n }", "title": "" }, { "docid": "7e6f144f8584c82455d71cc427fb17d6", "score": "0.52395475", "text": "public T caseuUniversity(uUniversity object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "de280cd8e6582078de5e710518b19596", "score": "0.52352464", "text": "public Object caseTypedElement(TypedElement object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "46b65616b314aa7fdb803ca3695cc265", "score": "0.5235211", "text": "@Override\r\n\tpublic <U> U unwrap(Class<U> type) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "8f09a4308109cc9be8780618abf3919c", "score": "0.52337533", "text": "public T caseExternalEcuReceiver(ExternalEcuReceiver object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "7c7601609604a361088a7f35976faf8c", "score": "0.5233424", "text": "public T caseUnionExpr(UnionExpr object)\n {\n return null;\n }", "title": "" }, { "docid": "46573973940fc9eec235374c27b94881", "score": "0.5229446", "text": "public Value eval() throws NotAnInteger, NotANumber{\n\t\tswitch (m) {\n\t\t\tcase INTEGER:\n\t\t\t\tIntVal res = new IntVal();\n\t\t\t\tres.val = e.evalToInt();\n\t\t\t\tres.m = m;\n\t\t\t\treturn res;\n\t\t\t\n\t\t\tcase FLOAT:\n\t\t\t\tDblVal result = new DblVal();\n\t\t\t\tresult.val = e.evalToFloat();\n\t\t\t\treturn result;\n\t\t}\n\t\treturn null;\n }", "title": "" }, { "docid": "a1d10782e1577616d7585879e37073c3", "score": "0.5227013", "text": "public T casePreType(PreType object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "b9a618314940f0e00bbdc36ae7c33316", "score": "0.52166635", "text": "public T caseESimpleValue(ESimpleValue object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "60834c377e4d66554e20ec425e2f0bf8", "score": "0.5213421", "text": "public T caseVariable(Variable object)\n {\n return null;\n }", "title": "" }, { "docid": "01340a06442174777c324c63ce85ab61", "score": "0.5202882", "text": "static <E> E convertTo0(Class<E> eClass, @Nullable Object o) throws NumberFormatException {\n eClass = primToWrapper(eClass);\n if (eClass.isInstance(o) || o == null) return (E) o;\n if (eClass == Void.class) return null;\n if (eClass == String.class) return (E) o.toString();\n if (Enum.class.isAssignableFrom(eClass)) {\n return (E) valueOfIgnoreCase((Class) eClass, o.toString());\n }\n if (o instanceof CharSequence) {\n return convertCharSequence(eClass, (CharSequence) o);\n }\n if (Number.class.isAssignableFrom(eClass)) {\n return (E) convertToNumber(eClass, o);\n }\n if (ReadResolvable.class.isAssignableFrom(eClass))\n return (E) o;\n if (Object[].class.isAssignableFrom(eClass)) {\n return convertToArray(eClass, o);\n }\n if (Set.class.isAssignableFrom(eClass)) {\n return (E) new LinkedHashSet<>((Collection) o);\n }\n if (Character.class == eClass) {\n E s = convertChar(o);\n if (s != null) return s;\n }\n if (CharSequence.class.isAssignableFrom(eClass)) {\n try {\n return (E) PARSER_CL.get(eClass).apply(o.toString());\n\n } catch (Exception e) {\n throw asCCE(e);\n }\n }\n if (Date.class == eClass && o instanceof Long) {\n return (E) new Date((Long) o);\n }\n throw new ClassCastException(\"Unable to convert \" + o.getClass() + \" \" + o + \" to \" + eClass);\n }", "title": "" }, { "docid": "ed8cccdd8d60dc1b52829c65b616caee", "score": "0.5202188", "text": "public T caseHProduction(HProduction object)\n {\n return null;\n }", "title": "" }, { "docid": "1c59653eb0f9adaae3f41b3bba40094c", "score": "0.5200078", "text": "public T caseNeg_expr(Neg_expr object)\n {\n return null;\n }", "title": "" }, { "docid": "bb5b9cad989b6e6e8e637b84cf94e580", "score": "0.5186143", "text": "public T caseIntermediateType(IntermediateType object) {\n return null;\n }", "title": "" }, { "docid": "b56617655bf870b080b6b327b4e2a17c", "score": "0.5177301", "text": "public T caseExp(Exp object)\n {\n return null;\n }", "title": "" }, { "docid": "46f5521bb34cc9999e07f50c121cb52f", "score": "0.5173149", "text": "public T caseInvariant(Invariant object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "5b8863e17f7a018cb483b36813c3a459", "score": "0.51627046", "text": "public T caseDlentryType(DlentryType object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "e005aa2e363dc8e3dd961eda78bc1a53", "score": "0.51590675", "text": "public T caseSystemoutputType(SystemoutputType object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "627cf8a8cb9480c0e1eee7a8b2a96b00", "score": "0.5149056", "text": "public T casePlentryType(PlentryType object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "9c38c075cec20649ce35653a10d340b0", "score": "0.5148259", "text": "public T caseIntermediateDataOperationReturnType(IntermediateDataOperationReturnType object) {\n return null;\n }", "title": "" }, { "docid": "eb37192386adeaab914779527a03dd63", "score": "0.5142202", "text": "public T caseSlType(SlType object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "8620f2964a5834524275e153479edfaf", "score": "0.51402783", "text": "public T caseElement(Element object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "4af47feec0a47a6869429737c755758f", "score": "0.51294774", "text": "public T caseNumExpression(NumExpression object)\n {\n return null;\n }", "title": "" }, { "docid": "c9b5c72060011554ddbb05cab50b2d32", "score": "0.5127239", "text": "public T caseProduction(Production object)\n {\n return null;\n }", "title": "" }, { "docid": "574480e937e55ffe23da234de23fba96", "score": "0.5124449", "text": "public ENU asENU(){\n\t\treturn asENU(new LLA(new DMS(45),new DMS(45),\n\t\t\t\t\t\t\t new DistanceMetric(WGS84.EARTH_SEMIMAJOR_AXIS.getValue(), \n\t\t\t\t\t\t\t DistanceMetric.Unit.METERS)));\n\t}", "title": "" }, { "docid": "80ad5cd1a06b19c35bb1172d44eb7156", "score": "0.5123018", "text": "public T caseIdentifiableElement(IdentifiableElement object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "0c8495bff0021c6df8d84e907756f50c", "score": "0.51226693", "text": "public T caseUnknownType(UnknownType object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "68f7214d97afbfd160a18d704e186289", "score": "0.512233", "text": "@Override\n public Value eval(AnswerTable answerTable) {\n Value result = answerTable.get(this);\n return result == null ? new UnknownValue() : result;\n }", "title": "" }, { "docid": "5e3b5d7c5da7444c69b9e5249a0faa27", "score": "0.51120627", "text": "public T caseInternalEcuReceiver(InternalEcuReceiver object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "52d4714b0843c5a8cce7e1414db93fa2", "score": "0.51048684", "text": "public T caseMult(Mult object)\n {\n return null;\n }", "title": "" }, { "docid": "9f3596a1a06d12513a551841591dd99f", "score": "0.51040846", "text": "public T caseLiType(LiType object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "88db93bfedc392275946f4a5e3791734", "score": "0.50831145", "text": "public T caseVariable(Variable object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "b4aa3dabebb22ab7e41caf16dd819851", "score": "0.5076696", "text": "public T caseExtract(Extract object)\n {\n return null;\n }", "title": "" }, { "docid": "c6182a4402027535c82243a4be9becc2", "score": "0.5076208", "text": "public Object caseAbstractMExternalType(AbstractMExternalType object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "3adc546a369b4d44d81d6392a0b667de", "score": "0.50742424", "text": "public T caseuPerson(uPerson object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "29fa27bd330089f1c452a76d0c699ca0", "score": "0.5073737", "text": "public T caseCheckInMachine(CheckInMachine object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "770193f2c63b63220c9cd202c03c44b2", "score": "0.50730264", "text": "public T caseDlType(DlType object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "f9a367d9e4ec06f52782b85187c15ba2", "score": "0.507277", "text": "public T caseEProperty(EProperty object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "3c6ce80e0e5aef97c7a180db167ae74b", "score": "0.5069475", "text": "public T caseIntermediateEnumeration(IntermediateEnumeration object) {\n return null;\n }", "title": "" }, { "docid": "bc3a5e331e1a36ae726f5ecfde1a0d11", "score": "0.50684756", "text": "public T caseMonter(Monter object)\n {\n return null;\n }", "title": "" }, { "docid": "312eaf01179e0a85c3040662b0344f13", "score": "0.5063649", "text": "public T caseRemoveVariable(RemoveVariable object)\n {\n return null;\n }", "title": "" }, { "docid": "c67b84b58e9fb02017e9b6cd749967bf", "score": "0.506348", "text": "public T caseSqlTypeAssignement(SqlTypeAssignement object)\n {\n return null;\n }", "title": "" }, { "docid": "2f362aff676e87f0fa338ef267e9742e", "score": "0.50606555", "text": "@SuppressWarnings(\"unchecked\")\r\n\tpublic <T> T valueOf()\r\n\t{\r\n\t\tif (inner instanceof PrimitiveLiteralValue)\r\n\t\t\treturn (T) inner.literal;\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}", "title": "" }, { "docid": "361be0b43e9ea6639070f6f7bbc0a183", "score": "0.5060449", "text": "public T caseStentryType(StentryType object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "51d3508be4e0c9343e094918e4b44e7e", "score": "0.50570154", "text": "public T casePrologExpression(PrologExpression object)\n {\n return null;\n }", "title": "" }, { "docid": "465373bd443163196b2d4cfd8efbf459", "score": "0.50513923", "text": "public T caseOPMObject(OPMObject object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "cf010179292ca7355fdac069ceafd28c", "score": "0.50477433", "text": "public T caseLabel(Label object)\n {\n return null;\n }", "title": "" }, { "docid": "256558620849b6b0d6658a3ca6bb3c07", "score": "0.50464356", "text": "public abstract E convert( );", "title": "" }, { "docid": "54996ad25cfc8099762b78220848f54d", "score": "0.50445974", "text": "public T caseConvert(Convert object)\n {\n return null;\n }", "title": "" }, { "docid": "69f0a1aa3169a1c1dc872ebfdf8a6b16", "score": "0.5044198", "text": "public T caseaUniversity(aUniversity object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "13bcd7f38eda8ba4a64d19281eae4a54", "score": "0.50401026", "text": "public T caseDataType(DataType object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "e09d6467bcd1e79343da5168c314ffcf", "score": "0.503531", "text": "public T caseUicontrolType(UicontrolType object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "14e4b0afe12ad136edd358987d974449", "score": "0.50351775", "text": "public Object caseCUnparsedStatement(CUnparsedStatement object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "2e4988aa59ab38f5b7c78d2c312ef5f3", "score": "0.50336", "text": "public T caseModelElement(ModelElement object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "2e4988aa59ab38f5b7c78d2c312ef5f3", "score": "0.50336", "text": "public T caseModelElement(ModelElement object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "0881c58e4b315643ea1084cd5450fe10", "score": "0.50316", "text": "public T caseTAckStatusVariableImplementation(TAckStatusVariableImplementation object) {\n\t\treturn null;\n\t}", "title": "" } ]
1bf9656f6017ef3dc3aed0a36465ac51
Returns the class loader specified for loading the JDBC driver. Returns null if no class loader has been explicitly specified.
[ { "docid": "2cc47ca15e5c257cd44fa77cf4e64f97", "score": "0.66608876", "text": "public synchronized ClassLoader getDriverClassLoader() {\r\n return this.driverClassLoader;\r\n }", "title": "" } ]
[ { "docid": "e7e2cf6872af0f94e14f77f4260dfdae", "score": "0.6354024", "text": "public final ClassLoader getClassLoader()\r\n/* 55: */ {\r\n/* 56:123 */ return this.classLoader != null ? this.classLoader : this.clazz.getClassLoader();\r\n/* 57: */ }", "title": "" }, { "docid": "e2cd413a92cbe681d469c0bcf7ebce95", "score": "0.6310384", "text": "ClassLoader getClassLoader();", "title": "" }, { "docid": "a068085bc64ac6caaa61d521fba4a0c1", "score": "0.62531906", "text": "public ClassLoader getClassLoader() {\n\treturn null;\n}", "title": "" }, { "docid": "58d6efe79a2e8025729c1dea8c40c721", "score": "0.62358904", "text": "public static ClassLoader classLoader() {\n\t\tfinal ClassLoader contextCL = Thread.currentThread().getContextClassLoader();\n\t\treturn contextCL != null ? contextCL : ClassLoader.getSystemClassLoader();\n\t}", "title": "" }, { "docid": "afbb913c865744350acc1df3bd82cf9d", "score": "0.60618806", "text": "public ClassLoader getClassLoader()\n {\n return _classLoader;\n }", "title": "" }, { "docid": "2b1308ef4ac8b752a89d86fdbf4ee14f", "score": "0.6027288", "text": "public ClassLoader getLoader() {\n return (loader!=null ? loader : getClass().getClassLoader());\n }", "title": "" }, { "docid": "6170170b9fe256a2e9fb9ca8fdb679d9", "score": "0.59704304", "text": "public static ClassLoader getClassLoader(String paramString) throws MalformedURLException, SecurityException {\n/* 355 */ return provider.getClassLoader(paramString);\n/* */ }", "title": "" }, { "docid": "45e2b36c6816b28660d9b301305d2ec1", "score": "0.590476", "text": "protected ClassLoader getClassLoader()\n {\n return null;\n }", "title": "" }, { "docid": "2a3c52cd7512cfd8ff112b2985a3735d", "score": "0.5890625", "text": "public static LaunchClassLoader getClassLoader()\r\n\t{\r\n\t\treturn LiteLoader.classLoader;\r\n\t}", "title": "" }, { "docid": "2a3c52cd7512cfd8ff112b2985a3735d", "score": "0.5890625", "text": "public static LaunchClassLoader getClassLoader()\r\n\t{\r\n\t\treturn LiteLoader.classLoader;\r\n\t}", "title": "" }, { "docid": "708cbc1dc683806dd418b65714c4182c", "score": "0.58624166", "text": "public static ClassLoader getClassLoader() {\n ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n if (classLoader == null) {\n classLoader = JavaUtils.class.getClassLoader();\n }\n return classLoader;\n }", "title": "" }, { "docid": "f8d4379bee763b95d38a2d25c83d8d5c", "score": "0.5843776", "text": "public ClassLoader getClassLoader() {\n if (myClassLoader == null) {\n // the usual classloader\n // additional use the provided classpath\n // Memory leak in line below\n myClassLoader = (classpath == null) ? getClass().getClassLoader() : getProject().createClassLoader(classpath);\n }\n return myClassLoader;\n }", "title": "" }, { "docid": "e7845a5cce6a2eec2e8ddfa6a1e05e63", "score": "0.5841049", "text": "public ClassLoader getClassLoader(String param1String) throws MalformedURLException {\n/* 653 */ return LoaderHandler.getClassLoader(param1String);\n/* */ }", "title": "" }, { "docid": "b8886ae67cb61102b6630d894e87bcd2", "score": "0.56578404", "text": "public SiteClassLoader getClassLoader() {\n \t\treturn config_.classLoader;\n \t}", "title": "" }, { "docid": "f4bcceb2fbde232236da5b3a8c64bb95", "score": "0.5653045", "text": "private static ClassLoader getTCL() throws IllegalAccessException, InvocationTargetException {\n // Are we running on a JDK 1.2 or later system?\n Method method = null;\n try {\n method = Thread.class.getMethod(\"getContextClassLoader\");\n } catch (NoSuchMethodException e) {\n // We are running on JDK 1.1\n return null;\n }\n\n return (ClassLoader) method.invoke(Thread.currentThread());\n }", "title": "" }, { "docid": "383b27a5ad5c22151760befc25bb18bb", "score": "0.56488454", "text": "public static ClassLoader getContextClassLoader() {\n return LoaderUtils.isContextLoaderAvailable() ? LoaderUtils.getContextClassLoader() : null;\n }", "title": "" }, { "docid": "3b3856077a0d5c3b794c421c7727b6e0", "score": "0.5640611", "text": "private ClassLoader resolveClassLoader(String jar) throws MalformedURLException {\r\n return (jar == null) ? null : new URLClassLoader(new URL[] {new URL(jar)});\r\n }", "title": "" }, { "docid": "c1ed573eefe43f4dd007687517154f9d", "score": "0.5627878", "text": "public ClassLoader getClassLoader() {\n return classLoader;\n }", "title": "" }, { "docid": "c1ed573eefe43f4dd007687517154f9d", "score": "0.5627878", "text": "public ClassLoader getClassLoader() {\n return classLoader;\n }", "title": "" }, { "docid": "c1ed573eefe43f4dd007687517154f9d", "score": "0.5627878", "text": "public ClassLoader getClassLoader() {\n return classLoader;\n }", "title": "" }, { "docid": "91e58c31d380e340935a7ed5eafade84", "score": "0.5616027", "text": "private URL _resolveClassLoaderURL(String name)\n {\n if (name == null)\n return null;\n return ClassLoaderUtils.getResource(name);\n \n }", "title": "" }, { "docid": "bc068fa620ac67147f83a224ca321015", "score": "0.55941844", "text": "public static ClassLoader getLoader() {\r\n ClassLoader loader = ExceptionMessageGenerator.class.getClassLoader();\r\n \r\n if (loader == null) {\r\n loader = ConversionManager.getDefaultManager().getLoader();\r\n }\r\n \r\n return loader;\r\n }", "title": "" }, { "docid": "dd1dfc2e480b0de3fd475506e82a5c76", "score": "0.5563392", "text": "ObjectVariable getClassLoader();", "title": "" }, { "docid": "52d840f8443474fc55760de07ae4f796", "score": "0.5528213", "text": "private ClassLoader getUrlClassLoader()\n {\n ClassLoader jspClassLoader = new URLClassLoader(new URL[0], this.getClass().getClassLoader());\n return jspClassLoader;\n }", "title": "" }, { "docid": "0fdba16a2a06dc7189aea8464cb4cf43", "score": "0.55121064", "text": "public PackageClassLoader getPackageClassLoader() {\n if (classLoader == null) {\n File p = new File(pathToXml);\n if (!p.isDirectory()) {\n p = p.getParentFile();\n }\n classLoader = new PackageClassLoader(p);\n }\n \n return classLoader;\n }", "title": "" }, { "docid": "f691d948eaa0cafa275d16ec367e1ece", "score": "0.55048764", "text": "@Override\n public ClassLoader getClassLoader(Location location) {\n return this.classLoader;\n }", "title": "" }, { "docid": "a8ee95d9377c66b7348fdbfc6535ce4c", "score": "0.550097", "text": "ClassLoader getJCasClassLoader();", "title": "" }, { "docid": "685565052789be26deb0a0441d4c6019", "score": "0.54789305", "text": "private static void loadJdbcDriver() throws ClassNotFoundException {\n // 5.X -> com.mysql.jdbc.Driver\n // 8.X -> com.mysql.cj.jdbc.Driver\n Class.forName(\"com.mysql.cj.jdbc.Driver\");\n }", "title": "" }, { "docid": "b818364495e5c64a0614a7802a018094", "score": "0.54367286", "text": "ClassLoader getClassLoader() {\n return classLoader;\n }", "title": "" }, { "docid": "77e62b62499015ca5a037526dfa99c3f", "score": "0.5405084", "text": "ClassLoader getChildClassLoader();", "title": "" }, { "docid": "bf066b81f4ea99d21887ba8e0d4c4da8", "score": "0.5404735", "text": "protected URLClassLoader obtainClassLoader() throws MojoExecutionException {\n List<String> compileClasspath = obtainClasspath();\n Set<URL> classpathUrlSet = new HashSet<URL>();\n for (String classpathEntry : compileClasspath) {\n File f = new File(classpathEntry);\n if (f.exists()) {\n try {\n classpathUrlSet.add(f.toURI().toURL());\n } catch (MalformedURLException ex) {\n throw new RuntimeException(\"Error interpreting classpath entry as URL: \" + classpathEntry, ex);\n }\n }\n }\n URL[] classpathUrls = classpathUrlSet.toArray(new URL[classpathUrlSet.size()]);\n return new URLClassLoader(classpathUrls, AbstractJodaBeansMojo.class.getClassLoader());\n }", "title": "" }, { "docid": "e1bd42fed81c1aff5a0c291a1e576486", "score": "0.5396025", "text": "String getDriverClassName();", "title": "" }, { "docid": "65987f00eda21e706a9ef012dea5022f", "score": "0.53661704", "text": "ClassPool findClassPool(ClassLoader cl);", "title": "" }, { "docid": "795be96b43180f44bbb63b091385b1ab", "score": "0.53594303", "text": "public Resolver() {\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "5ef3febcc482aac28e1c2e271bc13331", "score": "0.53029025", "text": "private Driver getWrappedDriver() throws SQLException {\n Driver drv = wrappedDriver.get();\n if (drv == null) {\n Driver newDrv = AWSWrappedJDBCDriver.lookupWrappedDriver(getWrappedDriverClassName());\n if (newDrv == null) {\n throw new RuntimeException(new ClassNotFoundException(\n \"Cannot find JDBC Driver for \" + getDbDisplayName() \n + \". Make sure the driver is on the classpath.\"));\n }\n if (!wrappedDriver.compareAndSet(null, newDrv)) {\n return wrappedDriver.get();\n }\n return newDrv;\n }\n return drv;\n }", "title": "" }, { "docid": "7917fdae03e6b4529e97467b07467c00", "score": "0.53019613", "text": "public Class<?> getClazz(ClassLoader loader);", "title": "" }, { "docid": "4371dab62f625bc5dcbbca5723aceb14", "score": "0.5288603", "text": "ClassLoader getParent(ClassLoader classLoader);", "title": "" }, { "docid": "025039991cda43c65904cdd230591196", "score": "0.5285412", "text": "protected ClassLoader getClassLoaderForBuild() {\n if (classpathLoader != null) {\n return classpathLoader;\n }\n \n Path combinedClasspath = getCombinedClasspath();\n \n // only generate a new ClassLoader if we have a classpath\n if (combinedClasspath == null) {\n classpathLoader = getClass().getClassLoader();\n } else {\n classpathLoader\n = getTask().getProject().createClassLoader(combinedClasspath);\n }\n \n return classpathLoader;\n }", "title": "" }, { "docid": "39d17549ca94cd542ae5ddb58a66aa85", "score": "0.5267752", "text": "static GDAClassLoaderService getClassLoaderService() {\n\t\tif (Platform.isRunning()) {\n\t\t\tBundle currentBundle = FrameworkUtil.getBundle(GDAClassLoaderService.class);\n\t\t\tBundleContext bundleContext = currentBundle.getBundleContext();\n\t\t\tServiceReference<GDAClassLoaderService> serviceReference = bundleContext\n\t\t\t\t\t.getServiceReference(GDAClassLoaderService.class);\n\t\t\treturn bundleContext.getService(serviceReference);\n\t\t}\n\t\treturn new SystemClassLoadingService();\n\t}", "title": "" }, { "docid": "3613401d90d96a5ab3690a09b5d999bc", "score": "0.5215692", "text": "abstract public Object getClass (String className, ClassLoader classLoader);", "title": "" }, { "docid": "7c75e389f50f36754d8f7d6f3f04cd6b", "score": "0.5189118", "text": "private static ClassLoader getCurrentClassLoader() {\n return Thread.currentThread().getContextClassLoader();\n }", "title": "" }, { "docid": "b757e9dc4fa55f4fde970592fb7b8592", "score": "0.51834726", "text": "Class<?> getClassIfLoaded(String name);", "title": "" }, { "docid": "9380cfe52618cc28b4cde6eca2a885c5", "score": "0.5146674", "text": "public static Driver loadJdbcDriver(ClassLoader cl, String driverClassName) {\n try {\n @SuppressWarnings(\"unchecked\")\n Class<? extends Driver> driverClass =\n (Class<? extends Driver>) Class.forName(driverClassName, true, cl);\n\n Driver driver = driverClass.getDeclaredConstructor().newInstance();\n return new DriverDelegator(driver);\n } catch (ClassNotFoundException |\n InstantiationException |\n InvocationTargetException |\n NoSuchMethodException |\n IllegalAccessException ex) {\n throw new RunSQLException(\"Could not load JDBC driver \" + driverClassName, ex);\n }\n }", "title": "" }, { "docid": "96db853c420987f08ff7fa9a6bc57bbe", "score": "0.51437867", "text": "ClassLoader getDefaultParent();", "title": "" }, { "docid": "f2e84206a950202155e6c11808f69912", "score": "0.5141429", "text": "public static Class<?> loadClass(String paramString1, String paramString2, ClassLoader paramClassLoader) throws MalformedURLException, ClassNotFoundException {\n/* 264 */ return provider.loadClass(paramString1, paramString2, paramClassLoader);\n/* */ }", "title": "" }, { "docid": "72a92b69667017da43632b47d8c8de02", "score": "0.5136443", "text": "private URLClassLoader getClassLoader() throws MalformedURLException, DependencyResolutionRequiredException {\n String[] classpath = getClasspath();\n\n URL[] urls = new URL[classpath.length];\n\n for (int i = urls.length - 1; i >= 0; i--) {\n urls[i] = new URL(\"file:\" + classpath[i]);\n\n this.getLog().debug(\"cp [\" + urls[i] + \"]\");\n }\n\n return new URLClassLoader(urls);\n }", "title": "" }, { "docid": "3ffaa03a531d7219cdfca44b54519f0d", "score": "0.510854", "text": "public static String getJdbcDriver(String serverType) {\n String returnValue = \"\";\n try {\n String connClass = \"org.mattyo161.commons.db.Connection2\" + serverType;\n IConnection2Db tmpClass = (IConnection2Db) Class.forName(connClass).newInstance();\n returnValue = tmpClass.getJdbcDriver();\n } catch (Exception e) {\n System.err.println(e);\n }\n return returnValue;\n }", "title": "" }, { "docid": "b9b02b401cb7d5d994813695c6677fdd", "score": "0.507874", "text": "public interface ClassLoaderAdapter {\n /**\n * add classloader to the report queue. the adapter should call\n * task.addLoaderToReport to add a loader.\n *\n * @param task\n * the calling ClassloaderBase-task.\n * @param classloader\n * the classloader to analyze.\n * @param role\n * the name of the classloader instance.\n * @param loaderStack\n * loaderStack to pass to ClassloaderBase.addLoaderToReport.\n * @param loaderNames\n * loaderNames to pass to ClassloaderBase.addLoaderToReport.\n */\n void addReportable(ClassloaderContext.Report task,\n ClassLoader classloader, ClassloaderReportHandle role,\n Map loaderStack, Map loaderNames);\n /**\n * Appends a classpath to an existing classloader instance.\n *\n * @param task\n * the calling ClassloaderBase-task.\n * @param classloader\n * the classloader instance to append the path to.\n * @return The ClassLoader instance or null if an error occured.\n */\n boolean appendClasspath(ClassloaderContext.CreateModify task,\n ClassLoader classloader);\n /**\n * Creates a classloader instance.\n *\n * @param task\n * the calling ClassloaderBase-task.\n * @return the newly created ClassLoader instance or null if an error\n * occured.\n */\n ClassLoader createClassLoader(ClassloaderContext.CreateModify task);\n /**\n * Returns the actual classpath of a classloader instance.\n *\n * @param task\n * the calling ClassloaderBase-task.\n * @param classloader\n * the classloader instance to get the path from.\n * @param defaultToFile\n * if true, returned url-elements with file protocol should trim\n * the leading 'file:/' prefix.\n * @return the path or null if an error occured\n */\n String[] getClasspath(ClassloaderContext task,\n ClassLoader classloader, boolean defaultToFile);\n /**\n * Gets the default parent classloader in the case, this classloader's\n * <code>getParent()</code> method returns <code>null</code>.\n *\n * @return The classloader implicitely used as parent loader or null if the\n * bootstrap loader is the implicitely parent loader.\n */\n ClassLoader getDefaultParent();\n /**\n * Gets the packages, defined by this classloader or its parents.\n *\n * @param context\n * The context of this method call.\n * @param classLoader\n * The classloader to get the packages from.\n * @param name\n * The symbolic name of this classloader.\n * @return The packages defined by this classloader or null if an error\n * occurs.\n */\n Package[] getPackages(ClassloaderContext.Report context,\n ClassLoader classLoader, ClassloaderReportHandle name);\n /**\n * Gets the parent classloader. Necessary, because AntClassLoader's\n * <code>getParent()</code> method returns an invalid result.\n *\n * @param classLoader\n * The classloader to get the parent from.\n * @return The classloader explicitely used as parent loader or\n * <code>null</code>.\n */\n ClassLoader getParent(ClassLoader classLoader);\n /**\n * Checks whether the adapter supports an action.\n *\n * @param action\n * the action to check.\n * @return true, if action is supported.\n */\n boolean isSupported(ClassLoaderAdapterAction action);\n /**\n * performs additional reporting.\n *\n * @param to\n * the Reporter Object to report to.\n * @param task\n * the calling ClassloaderBase-task.\n * @param classloader\n * the classloader instance to report about.\n * @param name\n * the name of the classloader instance.\n */\n void report(ClassloaderReporter to, ClassloaderContext.Report task,\n ClassLoader classloader, ClassloaderReportHandle name);\n}", "title": "" }, { "docid": "2d4d430900922bef63b236836bdab1bc", "score": "0.5051942", "text": "protected ClassLoader getClassLoaderForClass(String className) throws ClassNotFoundException\n {\n // Determine the classloader for this class\n final Class<?> clazz = loadClass(className);\n SecurityManager sm = System.getSecurityManager();\n if (sm != null)\n {\n return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>()\n {\n public ClassLoader run()\n {\n return clazz.getClassLoader(); \n }\n });\n }\n return clazz.getClassLoader();\n }", "title": "" }, { "docid": "d54e12f18c5fdff4455536ebdfee1a2c", "score": "0.5038794", "text": "@Override\n protected Class<?> findClass(String name) throws ClassNotFoundException {\n for (String blacklistedPackage : getPackagesToLoadViaStandardClassloader()) {\n if (name.startsWith(blacklistedPackage)) {\n return null;\n }\n }\n\n // Otherwise load it with our custom classloader.\n return super.findClass(name);\n }", "title": "" }, { "docid": "d3b24f509804c558b32192d26d61e008", "score": "0.5033038", "text": "ClassLoader getClassLoaderForLibrary(Class<?> libraryClass);", "title": "" }, { "docid": "c7f0aeaf5d5b9f0479fa42f027f1fb6d", "score": "0.50279325", "text": "public Loader getLoader() {\n return null;\n }", "title": "" }, { "docid": "f6c08d14f6e87115590e68016543a218", "score": "0.5027085", "text": "protected static ClassLoader getCurrentClassLoader(Object defaultObject) {\r\n\t\tClassLoader loader = Thread.currentThread().getContextClassLoader();\r\n\t\tif (loader == null) {\r\n\t\t\tloader = defaultObject.getClass().getClassLoader();\r\n\t\t}\r\n\t\treturn loader;\r\n\t}", "title": "" }, { "docid": "fa34c916360c05331edc1e9953673ade", "score": "0.5026166", "text": "public static JDBC getInstance() {\n if (instance == null) {\n instance = new JDBC();\n }\n\n return instance;\n }", "title": "" }, { "docid": "738a75805d0c049dde7a2fecaf46fa35", "score": "0.5012414", "text": "static Module getModuleForClassLoader(ClassLoader cl)\n {\n SecurityManager sm = System.getSecurityManager();\n if (sm != null)\n sm.checkPermission(new RuntimePermission(\"getClassLoader\"));\n \n // Determine the module (if any) for the classloader \n if (cl != null)\n return modulesByClassLoader.get(cl);\n // Unknown\n return null;\n }", "title": "" }, { "docid": "373298b98890b83f4919eb99137a22d2", "score": "0.4987933", "text": "private Class resolveClass(String type, ClassLoader loader) throws ClassNotFoundException {\r\n // if the type is one of the simple types, return the corresponding Class object.\r\n if (type.equals(ObjectSpecification.INT)) {\r\n return int.class;\r\n } else if (type.equals(ObjectSpecification.BYTE)) {\r\n return byte.class;\r\n } else if (type.equals(ObjectSpecification.BOOLEAN)) {\r\n return boolean.class;\r\n } else if (type.equals(ObjectSpecification.CHAR)) {\r\n return char.class;\r\n } else if (type.equals(ObjectSpecification.DOUBLE)) {\r\n return double.class;\r\n } else if (type.equals(ObjectSpecification.FLOAT)) {\r\n return float.class;\r\n } else if (type.equals(ObjectSpecification.LONG)) {\r\n return long.class;\r\n } else if (type.equals(ObjectSpecification.STRING)) {\r\n return String.class;\r\n }\r\n\r\n // otherwise, load the jar and return the Class.\r\n if (loader != null) {\r\n return loader.loadClass(type);\r\n } else {\r\n return Class.forName(type);\r\n }\r\n }", "title": "" }, { "docid": "c184dc66859c22960084e84c4a4933c4", "score": "0.49853295", "text": "public static String getJdbcDriverFromUrl(String dbUrl) {\n String returnValue = \"\";\n try {\n ConnectionProperties dbUrlProps = getConnectionPropsFromUrl(dbUrl);\n returnValue = dbUrlProps.getJdbcDriver();\n } catch (Exception e) {\n System.err.println(e);\n }\n return returnValue;\n }", "title": "" }, { "docid": "86fe7c5fee6dbcf6f04d41b29ec8e709", "score": "0.49708712", "text": "public static Class<?> loadClass(URL paramURL, String paramString) throws MalformedURLException, ClassNotFoundException {\n/* 186 */ return provider.loadClass((paramURL != null) ? paramURL\n/* 187 */ .toString() : null, paramString, null);\n/* */ }", "title": "" }, { "docid": "ea072b78179e431c60aacdcaf55dab2e", "score": "0.4962192", "text": "@Override\n public ClassLoader getClassLoader() {\n return super.getClassLoader();\n }", "title": "" }, { "docid": "d8df9cc560481a98501032026a57d44f", "score": "0.49422678", "text": "public Class<?> loadLocalModuleClass(String name) throws ClassNotFoundException {\n Class<?> c = null;\n if (!name.startsWith(BootstrapConstants.JIOPI_FRAMEWORK_PACKAGE) && jiopiClassLoader != null) {\n c = jiopiClassLoader.loadClassLocal(name);\n if (c != null && jiopiClassLoader.blueprintName != null && ccck.contextBlueprints.contains(jiopiClassLoader.blueprintName)) {\n c = ccck.contextClassLoader.loadClass(name);\n }\n }\n if (c == null) {\n throw new ClassNotFoundException(name);\n }\n return c;\n }", "title": "" }, { "docid": "4c35f175f4f8e137c70e94bfb0c331e5", "score": "0.49410728", "text": "private static Class applicationClass(String className) throws ClassNotFoundException {\r\n\r\n\t\t // Look up the class loader to be used\r\n\t\t ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\r\n\t\t if (classLoader == null) {\r\n\t\t\t\tclassLoader = GenericDataSource.class.getClassLoader();\r\n\t\t }\r\n\r\n\t\t // Attempt to load the specified class\r\n\t\t return (classLoader.loadClass(className));\r\n\r\n\t }", "title": "" }, { "docid": "c4bf69ff2ca6d95386d213e786777da8", "score": "0.4923736", "text": "private void initialiseClassLoader() {\n if (pluginClassLoader == null) {\n final PluginClassLoader[] loaders = new PluginClassLoader[metaData.getParent() == null\n ? 0 : 1];\n\n if (metaData.getParent() != null) {\n final String parentName = metaData.getParent();\n final PluginInfo parent = pluginManager.getPluginInfoByName(parentName);\n parent.addChild(this);\n loaders[0] = parent.getPluginClassLoader();\n\n if (loaders[0] == null) {\n // Not loaded? Try again...\n\n parent.loadPlugin();\n loaders[0] = parent.getPluginClassLoader();\n\n if (loaders[0] == null) {\n lastError = \"Unable to get classloader from required parent '\" + parentName\n + \"' for \" + metaData.getName();\n return;\n }\n }\n }\n\n pluginClassLoader = new PluginClassLoader(this, pluginManager.getGlobalClassLoader(),\n loaders);\n }\n }", "title": "" }, { "docid": "f35b51656cbe53e391b80bc7df1fd355", "score": "0.4879009", "text": "protected ClassLoader getBeanClassLoader()\r\n/* 62: */ {\r\n/* 63:124 */ return this.beanClassLoader;\r\n/* 64: */ }", "title": "" }, { "docid": "51437724f7c5341beea7869283fc4e46", "score": "0.48736298", "text": "private static Factory<ClassLoader> getClassLoader(final String jarResourceName) {\n Validator.checkNull(jarResourceName);\n return new Factory<ClassLoader>() {\n @Override\n public ClassLoader create() {\n URL url = TestStudent.class.getResource(jarResourceName);\n if (url == null) {\n throw new RuntimeException(\"missing resource: \" + jarResourceName);\n }\n // Make the URL of the JAR resource the first search path.\n final List<URL> urls = new ArrayList<>();\n urls.add(url);\n URLClassLoader cl = (URLClassLoader) TestStudent.class.getClassLoader();\n // Then get all of the other URLs from the class loader that loaded this class.\n urls.addAll(Arrays.asList(cl.getURLs()));\n return AccessController.doPrivileged(new PrivilegedAction<URLClassLoader>() {\n\n @Override\n public URLClassLoader run() {\n return new URLClassLoader(urls.toArray(new URL[urls.size()]), null);\n }\n\n });\n }\n };\n }", "title": "" }, { "docid": "fa30ba7f6044bb2806fa9c9bb545bba8", "score": "0.48451623", "text": "public static Connection getSQLConnection() {\n\n if (conn == null){\n\n try {\n Class.forName(DRIVER_LOC);\n conn = DriverManager.getConnection(CONN_URL + CONN_FLAGS, CONN_USER, CONN_PASS);\n }\n catch (Exception var2) {\n //var2.printStackTrace();\n return null;\n }\n }\n\n return conn;\n }", "title": "" }, { "docid": "be726f72670439a6a404eec8c46023e0", "score": "0.48413476", "text": "public Class<?> loadClass(String str, boolean z) throws ClassNotFoundException {\n if (str == null) {\n return super.loadClass(str, z);\n }\n boolean startsWith = str.startsWith(DexLoader.JAVACORE_PACKAGE_PREFIX);\n if (DexLoader.mMttClassUseCorePrivate) {\n startsWith = startsWith || str.startsWith(DexLoader.TENCENT_PACKAGE_PREFIX) || str.startsWith(DexLoader.TAF_PACKAGE_PREFIX);\n }\n if (!startsWith) {\n return super.loadClass(str, z);\n }\n Class<?> findLoadedClass = findLoadedClass(str);\n if (findLoadedClass != null) {\n return findLoadedClass;\n }\n try {\n Log.d(DexLoader.TAG, \"WebCoreClassLoader - loadClass(\" + str + StorageInterface.KEY_SPLITER + z + \")...\");\n findLoadedClass = findClass(str);\n } catch (ClassNotFoundException e) {\n }\n if (findLoadedClass != null) {\n return findLoadedClass;\n }\n ClassLoader parent = getParent();\n if (parent != null) {\n return parent.loadClass(str);\n }\n return findLoadedClass;\n }", "title": "" }, { "docid": "5c708c8b486fbed634f050140a593004", "score": "0.48410624", "text": "public synchronized String getDriverClassName() {\r\n return this.driverClassName;\r\n }", "title": "" }, { "docid": "b60577047ab57b6dded2b9eddf21a4bb", "score": "0.48399076", "text": "ClassLoader getClassLoaderForLibrary(Class<?> libraryClass, Consumer<Class<?>> onSuccess);", "title": "" }, { "docid": "578cdb0a9505045ccf720c823d9552f0", "score": "0.48350027", "text": "private void loadDriver() {\r\n\r\n\t\ttry {\r\n\r\n\t\t\tClass.forName(this.driver).newInstance();\r\n\r\n\t\t} catch (ClassNotFoundException exception) {\r\n\r\n\t\t\tSystem.err.println(\r\n\t\t\t\tnew StringBuilder(\"\\nUnable to load the JDBC driver \").append(driver).toString()\r\n\t\t\t);\r\n\r\n\t\t\tSystem.err.println(\"Please check your CLASSPATH.\");\r\n\r\n\t\t} catch (InstantiationException exception) {\r\n\r\n\t\t\tSystem.err.println(\r\n\t\t\t\tnew StringBuilder(\"\\nUnable to instantiate the JDBC driver \").append(driver).toString()\r\n\t\t\t);\r\n\r\n\t\t} catch (IllegalAccessException exception) {\r\n\r\n\t\t\tSystem.err.println(\r\n\t\t\t\tnew StringBuilder(\"\\nNot allowed to access the JDBC driver \").append(driver).toString()\r\n\t\t\t);\r\n\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3dc840ca6d334b977ffb29cfbfce0a01", "score": "0.4826345", "text": "public static Connection getConnection() {\r\n\t\tConnection connection = null;\r\n\r\n\t\ttry {\r\n\t\t\tClass.forName(\"org.gjt.mm.mysql.Driver\").newInstance(); //$NON-NLS-1$\r\n\r\n\t\t\tconnection = DriverManager.getConnection(conn_string);\r\n\r\n\t\t\treturn connection;\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "267e8775f5a2b8675f8ab72089aca4b9", "score": "0.48211506", "text": "@SuppressLint({\"NewApi\"})\n public Class<?> findClass(String str) throws ClassNotFoundException {\n Class<?> loadClass = this.a != null ? this.a.loadClass(str, this) : null;\n try {\n loadClass = super.findClass(str);\n } catch (ClassNotFoundException unused) {\n }\n if (loadClass == null) {\n loadClass = findLoadedClass(str);\n }\n return loadClass == null ? getParent().loadClass(str) : loadClass;\n }", "title": "" }, { "docid": "35e1231fffbf64a280c9c7bc1c38b72f", "score": "0.48147523", "text": "private static final File findLoaderDir() throws Exception\n\t{\n\t\tfinal String classpath = System.getProperty(\"java.class.path\");\n\t\tfinal String pathSeparator = System.getProperty(\"path.separator\");\n\t\tfinal StringTokenizer tokenizer = new StringTokenizer(classpath, pathSeparator);\n\n\t\twhile (tokenizer.hasMoreTokens())\n\t\t{\n\t\t\tfinal String element = tokenizer.nextToken();\n\n\t\t\tif (element.endsWith(LOADER_JAR))\n\t\t\t{\n\t\t\t\tFile file = (new File(element)).getCanonicalFile();\n\t\t\t\tfile = file.getParentFile();\n\t\t\t\treturn file;\n\t\t\t}\n\t\t}\n\n\t\tthrow new Exception(\"Unable to locate \" + LOADER_JAR + \" in classpath\");\n\t}", "title": "" }, { "docid": "5de8ced50ed420fb4abfee0f09727261", "score": "0.48088458", "text": "protected Class findClass(String name) {\n\t\tErrorManager.getDefault().log(ErrorManager.INFORMATIONAL, \"Loading class \" + name);\n\n\t\tString className = name.replace('.', '/');\n\t\tclassName += \".class\";\n\n\t\tCustomRuleSetSettings settings = PMDOptionsSettings.getDefault().getRulesets();\n\t\tIterator iterator = settings.getClassPath().iterator();\n\t\ttry {\n\t\t\twhile(iterator.hasNext()) {\n\t\t\t\tFile jar = new File((String)iterator.next());\n\t\t\t\tJarFile jarFile = new JarFile(jar, false);\n\t\t\t\tJarEntry entry = jarFile.getJarEntry(className);\n\t\t\t\tErrorManager.getDefault().log(ErrorManager.INFORMATIONAL, entry.toString());\n\t\t\t\tif(entry != null) {\n\t\t\t\t\tBufferedInputStream stream = new BufferedInputStream(jarFile.getInputStream(entry));\n\t\t\t\t\tbyte buffer[] = new byte[stream.available()];\n\t\t\t\t\tstream.read(buffer, 0, buffer.length);\n\t\t\t\t\treturn defineClass(name, buffer, 0, buffer.length);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch(IOException e) {\n\t\t\treturn null;\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "fd18fd1ced17678f7637b81f4fd11456", "score": "0.4802903", "text": "public static Driver getDriver(String driverName) {\n\n\tDriver driver = (Driver) DRIVERS.get(driverName);\n\n\tif(driver == null) {\n\t try {\n\t\tdriver = (Driver) Class.forName(driverName).newInstance();\n\t\tsynchronized(DRIVERS) {\n\t\t DRIVERS.put(driverName, driver);\n\t\t}\n\t } catch(ClassNotFoundException e) {\n System.out.println(\"getDriver(String)\" + e);\n\t\tthrow new RuntimeException(\"Exception loading JDBC driver\");\n\t } catch(IllegalAccessException e) {\n\t\tSystem.out.println(\"getDriver(String)\" + e);\n\t\tthrow new RuntimeException(\"Illegal access to JDBC driver \" + driverName);\n\t } catch(InstantiationException e) {\n\t\tSystem.out.println(\"getDriver(String)\" + e);\n\t\tthrow new RuntimeException(\"Unable to instantiate JDBC driver \" + driverName);\n\t }\n\t}\n \n\treturn driver;\n }", "title": "" }, { "docid": "314bcc83991f84332ce839a87295ef2a", "score": "0.48027217", "text": "private static Factory<ClassLoader> getCurrentClassLoader() {\n return new Factory<ClassLoader>() {\n @Override\n public ClassLoader create() {\n return TestStudent.class.getClassLoader();\n }\n };\n }", "title": "" }, { "docid": "f4145408b313ae4f2a5f25e9cad541c3", "score": "0.47733447", "text": "public static ClassLoaderRepository getClassLoaderRepository(MBeanServer server)\n {\n return new DefaultLoaderRepositoryWrapper();\n }", "title": "" }, { "docid": "8a196f2a5d39275734e66d124ecf359f", "score": "0.47648916", "text": "public String getConnectionDriver() {\r\n\t\treturn dseBridge.getConnectionDriver();\r\n\t}", "title": "" }, { "docid": "879468f33b0e659cebe153daecf79d32", "score": "0.47581828", "text": "private static final ClassLoader switchContext(Servlet servlet) {\n if (servlet != null) {\n ClassLoader newContextClassLoader = servlet.getClass().getClassLoader();\n Thread handler = Thread.currentThread();\n ClassLoader oldContextClassLoader = handler.getContextClassLoader();\n if (newContextClassLoader != oldContextClassLoader) {\n handler.setContextClassLoader(newContextClassLoader);\n return oldContextClassLoader;\n } else return null;\n }\n else return null;\n }", "title": "" }, { "docid": "9febd4b164c3d49804de991e12751aa5", "score": "0.47408146", "text": "@Nullable\n public Class<?> retrieveClass(String pName) {\n return classManager.getClassForSimpleName(pName);\n }", "title": "" }, { "docid": "37ccb8321ae57049df9e92dd6febdaa7", "score": "0.47126958", "text": "public static Class<?> loadClass(String paramString1, String paramString2) throws MalformedURLException, ClassNotFoundException {\n/* 219 */ return provider.loadClass(paramString1, paramString2, null);\n/* */ }", "title": "" }, { "docid": "1d8512e78308a39a55c616fa138225a2", "score": "0.4712364", "text": "public void loadDriver() {\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n } catch (ClassNotFoundException ex) {\n JOptionPane.showMessageDialog(null, \"Failed load Driver \" + ex.getMessage());\n }\n }", "title": "" }, { "docid": "da9d4451c9ae9370b6a35de91a660691", "score": "0.46963707", "text": "public static Class get_CLASS()\n {\n Class clz;\n try\n {\n clz = Class.forName(\"com.tangosol.coherence/component/util/logOutput/Log4j2\".replace('/', '.'));\n }\n catch (ClassNotFoundException e)\n {\n throw new NoClassDefFoundError(e.getMessage());\n }\n return clz;\n }", "title": "" }, { "docid": "611a3c66a089d6b73d4340d3d866004f", "score": "0.46910247", "text": "public static OfficeClassLoader getClassLoader(IOOo pOOo, ClassLoader pParent) {\n // First try the class loaders cache\n OfficeClassLoader loader = sClassLoaders.get(pOOo.getHome());\n\n // If not found, create a new class loader for this office instance\n if (loader == null) {\n loader = new OfficeClassLoader(pOOo, pParent);\n sClassLoaders.put(pOOo.getHome(), loader);\n }\n\n return loader;\n }", "title": "" }, { "docid": "9458b74dbff5e7c8887a3559842264f1", "score": "0.46893093", "text": "public CustomClassLoaderUtil getCustomClassLoaderUtil();", "title": "" }, { "docid": "643f43b3c68da14dcb33d0b362ca94cc", "score": "0.46715456", "text": "@Override\n\tConnection getConnection(DatabaseConfigurations configs) throws SQLException, ClassNotFoundException {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "0ff1d8c190ebb372dfc4c47389d5524b", "score": "0.4665415", "text": "protected abstract Class<?> loadClass( String className ) throws ClassNotFoundException;", "title": "" }, { "docid": "a03f2c46c7256ff084296d88fdaea0b6", "score": "0.46641234", "text": "@Deprecated\n/* */ public static Class<?> loadClass(String paramString) throws MalformedURLException, ClassNotFoundException {\n/* 152 */ return loadClass((String)null, paramString);\n/* */ }", "title": "" }, { "docid": "baa7e2427b149c7cab0e2c1453f28bf2", "score": "0.46568334", "text": "public static Class<?> loadClass(String className)\n\t\t\tthrows ClassNotFoundException {\n\t\tClassLoader loader = currentClassLoader;\n\t\tif (loader == null) {\n\t\t\tloader = Thread.currentThread().getContextClassLoader();\n\t\t}\n\t\ttry {\n\t\t\treturn Class.forName(className, false, loader);\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tClassLoader contextLoader = Thread.currentThread()\n\t\t\t\t\t.getContextClassLoader();\n\t\t\tif (contextLoader != loader) {\n\t\t\t\treturn Class.forName(className, false, contextLoader);\n\t\t\t}\n\t\t\tthrow e;\n\t\t}\n\t}", "title": "" }, { "docid": "473b9552d530a5e070551081dd282b6a", "score": "0.46564728", "text": "private static RMIClassLoaderSpi newDefaultProviderInstance() {\n/* 632 */ return new RMIClassLoaderSpi()\n/* */ {\n/* */ \n/* */ public Class<?> loadClass(String param1String1, String param1String2, ClassLoader param1ClassLoader) throws MalformedURLException, ClassNotFoundException\n/* */ {\n/* 637 */ return LoaderHandler.loadClass(param1String1, param1String2, param1ClassLoader);\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public Class<?> loadProxyClass(String param1String, String[] param1ArrayOfString, ClassLoader param1ClassLoader) throws MalformedURLException, ClassNotFoundException {\n/* 646 */ return LoaderHandler.loadProxyClass(param1String, param1ArrayOfString, param1ClassLoader);\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public ClassLoader getClassLoader(String param1String) throws MalformedURLException {\n/* 653 */ return LoaderHandler.getClassLoader(param1String);\n/* */ }\n/* */ \n/* */ public String getClassAnnotation(Class<?> param1Class) {\n/* 657 */ return LoaderHandler.getClassAnnotation(param1Class);\n/* */ }\n/* */ };\n/* */ }", "title": "" }, { "docid": "592559289029a2d5f52f9858834b3b82", "score": "0.4647466", "text": "protected Class findClass(String name) throws ClassNotFoundException {\n Class c = null;\n if (name.startsWith(\"java.\") || name.startsWith(\"javax.\")\n || name.equals(\"javassist.tools.web.Viewer\"))\n c = findSystemClass(name);\n\n if (c == null)\n try {\n byte[] b = fetchClass(name);\n if (b != null)\n c = defineClass(name, b, 0, b.length);\n }\n catch (Exception e) {\n }\n\n return c;\n }", "title": "" }, { "docid": "277e116631562a664b8b0fc7885b3ac0", "score": "0.46474037", "text": "private static LoggerProvider findProvider() {\n final ClassLoader cl = LoggerProviders.class.getClassLoader();\n try {\n // Check the system property\n final String loggerProvider = SecurityActions.getSystemProperty(LOGGING_PROVIDER_KEY);\n if (loggerProvider != null) {\n if (\"jboss\".equalsIgnoreCase(loggerProvider)) {\n return tryJBossLogManager(cl, \"system property\");\n } else if (\"jdk\".equalsIgnoreCase(loggerProvider)) {\n return tryJDK(\"system property\");\n } else if (\"log4j2\".equalsIgnoreCase(loggerProvider)) {\n return tryLog4j2(cl, \"system property\");\n } else if (\"log4j\".equalsIgnoreCase(loggerProvider)) {\n return tryLog4j(cl, \"system property\");\n } else if (\"slf4j\".equalsIgnoreCase(loggerProvider)) {\n return trySlf4j(\"system property\");\n }\n }\n } catch (Throwable t) {\n // nope...\n }\n\n // Next try for a service provider\n try {\n final ServiceLoader<LoggerProvider> loader = ServiceLoader.load(LoggerProvider.class, cl);\n final Iterator<LoggerProvider> iter = loader.iterator();\n for (;;)\n try {\n if (!iter.hasNext())\n break;\n LoggerProvider provider = iter.next();\n // Attempt to get a logger, if it fails keep trying\n logProvider(provider, \"service loader\");\n return provider;\n } catch (ServiceConfigurationError ignore) {\n }\n } catch (Throwable ignore) {\n // TODO consider printing the stack trace as it should only happen once\n }\n\n // Finally search the class path\n try {\n return tryJBossLogManager(cl, null);\n } catch (Throwable t) {\n // nope...\n }\n try {\n return tryLog4j2(cl, null);\n } catch (Throwable t) {\n // nope...\n }\n try {\n // only use slf4j if Logback is in use\n Class.forName(\"ch.qos.logback.classic.Logger\", false, cl);\n return trySlf4j(null);\n } catch (Throwable t) {\n // nope...\n }\n try {\n // log4j has been EOL'd since 2015. It should be checked last.\n return tryLog4j(cl, null);\n } catch (Throwable t) {\n // nope...\n }\n return tryJDK(null);\n }", "title": "" }, { "docid": "aec85626e5e0c9392ee60753a5ceda10", "score": "0.4645374", "text": "private static ClassLoader getDelegateClassLoader(@Nullable ClassLoader defaultClassLoader,\n Context context) {\n if (defaultClassLoader == null) {\n defaultClassLoader = (context.getApplicationContext()).getClassLoader();\n }\n return defaultClassLoader;\n }", "title": "" }, { "docid": "44b0d7bb5259503ada2f4fefc4a5f13d", "score": "0.4635681", "text": "public Class<?> getObjectClass() {\n if(className==null) {\n return null;\n }\n if((theClass!=null)&&theClass.getName().equals(className)) {\n return theClass;\n }\n theClass = null;\n try {\n theClass = Class.forName(className);\n } catch(ClassNotFoundException ex) {\n\n /** empty block */\n }\n ClassLoader loader = XML.getClassLoader();\n if((loader!=null)&&(theClass==null)) {\n try {\n theClass = loader.loadClass(className);\n } catch(ClassNotFoundException ex) {\n\n /** empty block */\n }\n }\n return theClass;\n }", "title": "" }, { "docid": "e241aa97caa2ba57992afa63f77bec6f", "score": "0.4634433", "text": "static public URL getResource(String resource) {\n URL url = null;\n\n try {\n ClassLoader classLoader = getTCL();\n if (classLoader != null) {\n LOGGER.debug(\"Trying to find [\" + resource + \"] using context classloader \"\n + classLoader + \".\");\n url = classLoader.getResource(resource);\n if (url != null) {\n return url;\n }\n }\n\n // We could not find resource. Let us now try with the\n // classloader that loaded this class.\n classLoader = Loader.class.getClassLoader();\n if (classLoader != null) {\n LOGGER.debug(\"Trying to find [\" + resource + \"] using \" + classLoader\n + \" class loader.\");\n url = classLoader.getResource(resource);\n if (url != null) {\n return url;\n }\n }\n } catch (Throwable t) {\n LOGGER.warn(\"Caught Exception while in Loader.getResource. This may be innocuous.\", t);\n }\n\n // Last ditch attempt: get the resource from the class path. It\n // may be the case that clazz was loaded by the Extentsion class\n // loader which the parent of the system class loader. Hence the\n // code below.\n LOGGER.debug(\"Trying to find [\" + resource + \"] using ClassLoader.getSystemResource().\");\n return ClassLoader.getSystemResource(resource);\n }", "title": "" }, { "docid": "bfef50f4d27fc0cd428e32291d782211", "score": "0.46322513", "text": "public static Class<?> loadProxyClass(String paramString, String[] paramArrayOfString, ClassLoader paramClassLoader) throws ClassNotFoundException, MalformedURLException {\n/* 311 */ return provider.loadProxyClass(paramString, paramArrayOfString, paramClassLoader);\n/* */ }", "title": "" }, { "docid": "7bff2735dce2746a81b864bf04d03b28", "score": "0.46292093", "text": "private Object getLoadedClass(String configurationKey, String configurationFallback, String packagePrefix) {\n try {\n // try to instantiate the appropriate object\n Class loadingClass = Class.forName(packagePrefix\n + ConfigurationHelper.getInstance().getProperty(configurationKey, configurationFallback));\n return loadingClass.newInstance();\n } catch (Throwable e) {\n e.printStackTrace();\n }\n\n return null;\n }", "title": "" }, { "docid": "d8c51e5ba5feb61bbe369ccadabd7b20", "score": "0.4627067", "text": "private void setClassLoader() throws FileNotFoundException {\n URL[] urls = new URL[] { ResourceUtils.getURL(location) };\n classLoader = URLClassLoader.newInstance(urls, getDefaultClassLoader());\n originalClassLoader = overrideThreadContextClassLoader(classLoader);\n log.debug(\"Set the class loader: location=[{}], classLoader=[{}]\", location);\n }", "title": "" }, { "docid": "4b2daa5ade67babb639a53486b29c30d", "score": "0.46212146", "text": "public PostgresStrategy() {\n try {\n Class.forName(JDBC_DRIVER);\n } catch (ClassNotFoundException classNotFoundException) {\n throw new IllegalStateException(\"cannot load the PostgreSQL JDBC driver\", classNotFoundException);\n }\n }", "title": "" }, { "docid": "b2b5a4d98e11cdaa05b3c6b980aa137c", "score": "0.46091366", "text": "public static String getDriver(){\n\t\treturn MS_SQL_DRIVER;\n\t}", "title": "" }, { "docid": "6db57e8915b40526c1035defc8877df4", "score": "0.460298", "text": "public Class<?> loadClassFrom(String name, AbstractClassLoader first) throws ClassNotFoundException {\r\n\t\t// try on the system one\r\n\t\ttry { return AppClassLoader.class.getClassLoader().loadClass(name); }\r\n\t\tcatch (ClassNotFoundException e) { /* not found. */ }\r\n\t\tClass<?> c = null;\r\n\t\t// check it is not loaded on one of the library\r\n\t\tfor (int i = 0; i < libs.size(); i++) {\r\n \t\tAbstractClassLoader cl = libs.get(i);\r\n \t\tc = cl.isLoaded(name);\r\n \t\tif (c != null) return c;\r\n \t}\r\n \t// try with the first one\r\n \tif (first != null) {\r\n \t\ttry {\r\n \t\t\tc = first.loadClassInLibrary(name);\r\n \t\t\tif (c != null) return c;\r\n \t\t} catch (FileNotFoundException e) {\r\n \t\t\t// not found\r\n \t\t} catch (IOException e) {\r\n \t\t\tthrow new ClassNotFoundException(e.getMessage());\r\n \t\t}\r\n \t}\r\n \t// then, try on other libraries\r\n \tfor (int i = 0; i < libs.size(); i++) {\r\n \t\tAbstractClassLoader cl = libs.get(i);\r\n \t\tif (cl == first) continue;\r\n \t\ttry {\r\n \t\t\tc = cl.loadClassInLibrary(name);\r\n \t\t\tif (c != null) return c;\r\n \t\t} catch (FileNotFoundException e) {\r\n \t\t\t// not found\r\n \t\t} catch (IOException e) {\r\n \t\t\tthrow new ClassNotFoundException(e.getMessage());\r\n \t\t}\r\n \t}\r\n\t\tStringBuilder msg = new StringBuilder(512);\r\n\t\tmsg.append(\"Class not found: \").append(name);\r\n\t\tmsg.append(\"\\r\\nFrom class loader: \").append(first);\r\n\t\tmsg.append(\"\\r\\nlibraries currently registered:\");\r\n\t\tfor (int i = 0; i < libs.size(); i++)\r\n\t\t\tmsg.append(\"\\r\\n - \").append(libs.get(i).toString());\r\n\t\tthrow new ClassNotFoundException(msg.toString());\r\n\t}", "title": "" } ]
bb30866831bd8d680403b9a73f328f44
Metodo tokenOperador el cual identifica la operacion segun el signo
[ { "docid": "9979dc875b7db0a1ee4fc78cff32c94a", "score": "0.791744", "text": "private Operador tokenOperador(String tok) {\n if (tok.contentEquals(\"+\")) {\n return Operador.oSuma;\n }\n if (tok.contentEquals(\"-\")) {\n return Operador.oResta;\n }\n if (tok.contentEquals(\"*\")) {\n return Operador.oMultiplicacion;\n }\n if (tok.contentEquals(\"/\")) {\n return Operador.oDivision;\n }\n if (tok.contentEquals(\"^\")) {\n return Operador.oPotencia;\n }\n if (tok.contentEquals(\"!\")) {\n return Operador.oFactorial;\n }\n if (tok.contentEquals(\"mod\")) {\n return Operador.oMod;\n }\n if (tok.contentEquals(\"log\")) {\n return Operador.oLog;\n }\n if (tok.contentEquals(\"sqrt\")) {\n return Operador.oRaiz;\n }\n if (tok.contentEquals(\"cos\")) {\n return Operador.oCoseno;\n }\n if (tok.contentEquals(\"sen\")) {\n return Operador.oSeno;\n }\n if (tok.contentEquals(\"tan\")) {\n return Operador.oTangente;\n }\n if (tok.contentEquals(\"(\")) {\n return Operador.oParenIz;\n }\n if (tok.contentEquals(\")\")) {\n return Operador.oParentDer;\n }\n return Operador.oInvalido;\n }", "title": "" } ]
[ { "docid": "10a5a0281643e43c1273501aec4c9742", "score": "0.7540007", "text": "private void afegir_operador(char op) {\n Token t = new Token();\n t.set_operador(op);\n tokens.add(t);\n }", "title": "" }, { "docid": "a426915c55d6f65711535bc492a49fb0", "score": "0.7363901", "text": "private boolean esOperador(String token) {\n return token.equals(\"+\") || token.equals(\"-\") || token.equals(\"*\")\r\n || token.equals(\"/\") || token.equals(\"%\") || token.equals(\"^\");\r\n }", "title": "" }, { "docid": "1824e7e47a310299dcaecff933312e3a", "score": "0.7077601", "text": "private boolean isTokenOperator(String token){\r\n\t\tif(token.equals(\"+\")||token.equals(\"-\")||token.equals(\"*\")||token.equals(\"/\")){\r\n\t\t\treturn true;\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "72308a6804d552622d0a2bbba90ff126", "score": "0.66690075", "text": "Operator acceptOperator() throws SyntaxError {\n Operator O = null;\n\n previousTokenPosition = currentToken.position;\n String spelling = currentToken.spelling;\n O = new Operator(spelling, previousTokenPosition);\n currentToken = scanner.getToken();\n return O;\n }", "title": "" }, { "docid": "d07cfbbe1c4c19688939b9c44d09126a", "score": "0.66598696", "text": "private synchronized static PDFOperator parseOperator(String token) {\r\n\t\treturn PDFOperator.getOperator(token);\r\n\t}", "title": "" }, { "docid": "052712bfdd0ff5251d24cf0008371363", "score": "0.6647719", "text": "public static Token processOperator(String currentLine) {\n String currentTokenBuffer = Character.toString(currentLine.charAt(0));\n if (currentLine.length() >= 2 && isOperator(currentLine.substring(0,2))){\n currentTokenBuffer = currentLine.substring(0,2);\n if(currentLine.length() >= 3 && isOperator(currentLine.substring(0,3))){\n currentTokenBuffer = currentLine.substring(0, 3);\n }\n }\n return new Token(currentTokenBuffer, Token.OPERATOR);\n }", "title": "" }, { "docid": "2d3da9f83d709c6dd09d65d92eed14ba", "score": "0.6628806", "text": "String getOp();", "title": "" }, { "docid": "2d3da9f83d709c6dd09d65d92eed14ba", "score": "0.6628806", "text": "String getOp();", "title": "" }, { "docid": "2d3da9f83d709c6dd09d65d92eed14ba", "score": "0.6628806", "text": "String getOp();", "title": "" }, { "docid": "acb9f50525264c6b95803f262bc11aa5", "score": "0.6619731", "text": "public char getOperator ()\r\n {\r\n if (type == TokenType.OPERATOR)\r\n return op;\r\n else\r\n return '$'; // using $ to indicate an error value\r\n }", "title": "" }, { "docid": "c41cc1d7233f234a2895037fb811c89a", "score": "0.660343", "text": "java.lang.String getOp();", "title": "" }, { "docid": "c41cc1d7233f234a2895037fb811c89a", "score": "0.660343", "text": "java.lang.String getOp();", "title": "" }, { "docid": "c279b8d5b62a7c0e229df1c61be3aeb9", "score": "0.6544088", "text": "private void tokenizeExpression() {\r\n\t\tint parentheses = 0; // checking parentheses balance\r\n\t\tboolean operand = true; // operand -or- operator expected\r\n\t\tToken.Type lastType = Token.Type.WHITE;\r\n\t\tint begin, end = 0;\r\n\t\t\r\n\t\t// check if expression is empty\r\n\t\tif(expr.length() == 0) {\r\n\t\t\terrors.add(new MathError(\"empty expression\",end));\r\n\t\t}\r\n\t\t\r\n\t\t// token creation loop\r\n\t\twhile(end < expr.length()) {\r\n\t\t\tbegin = end;\r\n\t\t\tchar c = expr.charAt(end);\r\n\t\t\t\r\n\t\t\tif('0' <= c && c <= '9') { // NUMER\r\n\t\t\t\tend = scanToEnd(begin, \"\\\\d+(\\\\.)?(\\\\d+)?\");\r\n\t\t\t\tString number = expr.substring(begin, end);\r\n\t\t\t\t\r\n\t\t\t\tif(operand) {\r\n\t\t\t\t\t// add trailing zero if needed\r\n\t\t\t\t\tif(number.charAt(number.length()-1) == '.') {\r\n\t\t\t\t\t\tnumber+=\"0\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t// tokenize number\r\n\t\t\t\t\tlastType = Token.Type.NUMER;\r\n\t\t\t\t\tToken t = new Token(number,lastType,begin);\r\n\t\t\t\t\ttokens.add(t);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// expect an operator next\r\n\t\t\t\t\toperand = false;\r\n\t\t\t\t\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\terrors.add(new MathError(\"operator expected\", begin));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t} else if(c == '+' || c == '*' || c == '/' || c == '^') { // BINOP\r\n\t\t\t\tend++;\r\n\t\t\t\tif(!operand) {\r\n\t\t\t\t\t// tokenize the character\r\n\t\t\t\t\tlastType = Token.Type.BINOP;\r\n\t\t\t\t\tToken t = new Token(expr.substring(begin, end),lastType,begin);\r\n\t\t\t\t\ttokens.add(t);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// expect an operand next\r\n\t\t\t\t\toperand = true;\r\n\t\t\t\t\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\terrors.add(new MathError(\"operand expected\", begin));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(c == '-') { // BINOP -or- NEG\r\n\t\t\t\tend++;\r\n\t\t\t\t\r\n\t\t\t\tif(operand) { // NEG\r\n\t\t\t\t\t// tokenize negation\r\n\t\t\t\t\tlastType = Token.Type.NEG;\r\n\t\t\t\t\tToken t = new Token(\"~\",lastType,begin);\r\n\t\t\t\t\ttokens.add(t);\r\n\t\t\t\t\t/*continue expecting an operand*/\r\n\t\t\t\t\t\r\n\t\t\t\t} else { // BINOP\r\n\t\t\t\t\t// tokenize the character\r\n\t\t\t\t\tlastType = Token.Type.BINOP;\r\n\t\t\t\t\tToken t = new Token(\"-\",lastType,begin);\r\n\t\t\t\t\ttokens.add(t);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// expect an operand next\r\n\t\t\t\t\toperand = true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(c == ',') { // COMMA\r\n\t\t\t\tend++; \r\n\t\t\t\t\r\n\t\t\t\tif(!operand) {\r\n\t\t\t\t\t// tokenize comma\r\n\t\t\t\t\tlastType = Token.Type.COMMA;\r\n\t\t\t\t\tToken t = new Token(\",\",lastType,begin);\r\n\t\t\t\t\ttokens.add(t);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// expect an operand next\r\n\t\t\t\t\toperand = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\terrors.add(new MathError(\"operand expected\",begin));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(c == '(') { // OPENP\r\n\t\t\t\tif(doImplicitMultiply(lastType)) {\r\n\t\t\t\t\t// tokenize multiply\r\n\t\t\t\t\tToken t = new Token(\"*\",Token.Type.BINOP,begin);\r\n\t\t\t\t\ttokens.add(t);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tparentheses+=1;\r\n\t\t\t\t\r\n\t\t\t\t// tokenize the character\r\n\t\t\t\tend++;\r\n\t\t\t\tlastType = Token.Type.OPENP;\r\n\t\t\t\tToken t = new Token(\"(\",lastType,begin);\r\n\t\t\t\ttokens.add(t);\r\n\t\t\t\t\r\n\t\t\t\t// expect an operand next\r\n\t\t\t\toperand = true;\r\n\t\t\t\t\r\n\t\t\t} else if(c == ')') { //CLOSEP\r\n\t\t\t\tend++;\r\n\t\t\t\t\r\n\t\t\t\tparentheses-=1;\r\n\t\t\t\tif(parentheses < 0) {\r\n\t\t\t\t\terrors.add(new MathError(\"parentheses imbalance\",begin));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(!operand || (operand && lastType == Token.Type.LETTER)) {\r\n\t\t\t\t\t// tokenize the character\r\n\t\t\t\t\tlastType = Token.Type.CLOSEP;\r\n\t\t\t\t\tToken t = new Token(\")\",lastType,begin);\r\n\t\t\t\t\ttokens.add(t);\r\n\t\t\t\t\t\r\n\t\t\t\t\t/* continue expecting operator */\r\n\t\t\t\t\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\terrors.add(new MathError(\"operand expected\",begin));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if('a' <= c && c <= 'z' || 'A' <= c && c <= 'Z') { // LETTER\r\n\t\t\t\tend = scanToEnd(begin, \"[A-Za-z]+\\\\(?\");\r\n\t\t\t\tString word = expr.substring(begin, end);\r\n\t\t\t\t\t\r\n\t\t\t\t// add implicit multiply if necessary\r\n\t\t\t\tif(doImplicitMultiply(lastType)) {\r\n\t\t\t\t\t// tokenize multiply\r\n\t\t\t\t\tToken t = new Token(\"*\",Token.Type.BINOP,begin);\r\n\t\t\t\t\ttokens.add(t);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// expect an operand\r\n\t\t\t\t\toperand = true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// add the word\r\n\t\t\t\tif(operand) {\r\n\t\t\t\t\t// tokenize word\r\n\t\t\t\t\tlastType = Token.Type.LETTER;\r\n\t\t\t\t\tToken t = new Token(word,lastType,begin);\r\n\t\t\t\t\ttokens.add(t);\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t// expect an operator next\r\n\t\t\t\t\toperand = false;\r\n\t\t\t\t\t\r\n\t\t\t\t\t// check for open parentheses\r\n\t\t\t\t\tif(word.endsWith(\"(\")) {\r\n\t\t\t\t\t\t// tokenize an open parentheses\r\n\t\t\t\t\t\tparentheses++;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// expect an operand next\r\n\t\t\t\t\t\toperand = true;\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\terrors.add(new MathError(\"operator expected\",begin));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(Character.isWhitespace(c)) { // WHITE\r\n\t\t\t\tlastType = Token.Type.WHITE;\r\n\t\t\t\tend++; // do not tokenize whitespace\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\terrors.add(new MathError(\"unrecognized character \"+Character.toString(c),begin));\r\n\t\t\t\tlastType = Token.Type.WHITE;\r\n\t\t\t\tend++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// check parentheses balance\r\n\t\tif(parentheses > 0) {\r\n\t\t\terrors.add(new MathError(\"parentheses imbalance\",end));\r\n\t\t}\r\n\t\t\r\n\t\t// check for valid ending token\r\n\t\tif(!isValidEndToken(lastType)) {\r\n\t\t\terrors.add(new MathError(\"cannot end in op or comma\",end));\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1aa91e5a05d31c70d0401a9a88d6b2b0", "score": "0.65436774", "text": "private void parseOperation(){\n //System.out.println(\"Enter operation\");\n if (currentToken.kind == Token.OPERATOR || currentToken.kind == Token.OR || currentToken.kind == Token.AND)\n {\n acceptIt();\n }\n else\n {\n new Error(\"Syntax error: Unexpected token in operation\", currentToken.line);\n }\n //System.out.println(\"Exit operation\");\n\n }", "title": "" }, { "docid": "8a6cbada3922b11708b66eab7042b142", "score": "0.65330535", "text": "public void cmdExp()\r\n {\r\n if(proxTokenIs(Token.VARIAVEL) )\r\n {\r\n reconhece(Token.VARIAVEL);\r\n cmdSubExp();\r\n }else if( proxTokenIs(Token.NUMERO) )\r\n {\r\n reconhece(Token.NUMERO);\r\n } else if ( proxTokenIs(Token.OP_UNARIO) || proxTokenIs(Token.OP_UN_BIN) )\r\n {\r\n cmdOP();\r\n }\r\n }", "title": "" }, { "docid": "367c019fe93fc700d9c0a4f4833a4fab", "score": "0.64412624", "text": "java.lang.String getOperador();", "title": "" }, { "docid": "367c019fe93fc700d9c0a4f4833a4fab", "score": "0.64412624", "text": "java.lang.String getOperador();", "title": "" }, { "docid": "aca220869fd0411138b1f378d4b6f5a9", "score": "0.6433888", "text": "private TokenType checkOperatorsToken(String token) {\n switch (token) {\n case \">\":\n return TokenType.GT;\n case \"<\":\n return TokenType.LT;\n case \">=\":\n return TokenType.GE;\n case \"<=\":\n return TokenType.LE;\n case \"=\":\n return TokenType.AT;\n case \"==\":\n return TokenType.EQ;\n case \"!\":\n return TokenType.SEMITOKEN;\n case \"!=\":\n return TokenType.NE;\n case \"+\":\n return TokenType.PLUS;\n case \"-\":\n return TokenType.MINUS;\n case \"/\":\n return TokenType.DIV;\n case \"*\":\n return TokenType.MUL;\n case \"%\":\n return TokenType.MOD;\n default:\n return TokenType.NULLTYPE;\n\n }\n }", "title": "" }, { "docid": "7051ea0e65ca66e918666d7727dceb1a", "score": "0.64260626", "text": "public char getOperation() {\n\t\treturn operation;\n\t}", "title": "" }, { "docid": "9cad244166f1b2a8d59fcfeb830ace7f", "score": "0.6405447", "text": "boolean tokenIsOperator(String token) {\n boolean isOperator = false;\n //if (token.matches(\"select\")) isOperator = true;\n if (token.matches(\"load\")) isOperator = true;\n if (token.matches(\"show\")) isOperator = true;\n if (token.matches(\"where\")) isOperator = true;\n if (token.matches(\"over\")) isOperator = true;\n if (token.matches(\"join\")) isOperator = true;\n if (token.matches(\"by\")) isOperator = true;\n if (token.matches(\"times\")) isOperator = true;\n if (token.matches(\"union\")) isOperator = true;\n if (token.matches(\"intersection\")) isOperator = true;\n if (token.matches(\"difference\")) isOperator = true;\n if (token.matches(\"rename\")) isOperator = true;\n if (token.matches(\":=\")) isOperator = true;\n if (token.matches(\"alias\")) isOperator = true;\n if (token.matches(\"_\")) isOperator = true;\n if (token.matches(\"\\\\+\")) isOperator = true;\n if (token.matches(\"-\")) isOperator = true;\n if (token.matches(\"\\\\*\")) isOperator = true;\n if (token.matches(\"/\")) isOperator = true;\n if (token.matches(\"and\")) isOperator = true;\n if (token.matches(\"or\")) isOperator = true;\n if (token.matches(\"not\")) isOperator = true;\n if (token.matches(\"<\")) isOperator = true;\n if (token.matches(\"<=\")) isOperator = true;\n if (token.matches(\">\")) isOperator = true;\n if (token.matches(\">=\")) isOperator = true;\n if (token.matches(\"=\")) isOperator = true;\n if (token.matches(\"<>\")) isOperator = true;\n return isOperator;\n }", "title": "" }, { "docid": "b7af734eeef94e821f3fe6f3e33ec98f", "score": "0.64049196", "text": "public String getOp()\n\t{\n\t\treturn op;\n\t}", "title": "" }, { "docid": "072d479137f773970f705beac67e8c77", "score": "0.6330942", "text": "public String getOperatorSymbol ()\r\n {\r\n return \"-\";\r\n }", "title": "" }, { "docid": "0bc60f3befd71bf1f56dd722cbbe89c5", "score": "0.63283134", "text": "public String Operacion(String oper)\n\t{\n\t\tint copyIndex = index;\n\t\tString auxStr = oper;//en esta variable se guardara el valor de la operacion total\n\t\t//System.out.println(oper);\n\t\t//System.out.println(tokenList.get(index).getData());\n\t\tif(tokenList.get(copyIndex+1).getType().getName().contains(\"OPERADOR\"))\n\t\t{\n\t\t\t//nothing here...\n\t\t\t//System.out.println(\"operador\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//System.out.println(str);\n\t\t\tauxStr = met.evaluating(oper);\n\t\t\treturn auxStr;\n\t\t}\n\t\t//System.out.println(tokenList.get(index).getType().getName());\n\t\twhile(copyIndex!=0)\n\t\t{\n\t\t\tcopyIndex++;\n\t\t\tif(tokenList.get(copyIndex).getType().getName().contains(\"OPERADOR\"))\n\t\t\t{\n\t\t\t\tauxStr = auxStr.concat(tokenList.get(copyIndex).getData());\n\t\t\t\tcopyIndex++;\n\t\t\t\tif(Valor(tokenList.get(copyIndex).getType().getName()))\n\t\t\t\t{\n\t\t\t\t\tif(tokenList.get(copyIndex).getType().getName().contains(\"VARIABLE\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tcomp_1 = stringInTable(tokenList.get(copyIndex));\n\t\t\t\t\t\tauxStr = auxStr.concat(comp_1);\n\t\t\t\t\t\t//System.out.println(auxStr);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tauxStr = auxStr.concat(tokenList.get(copyIndex).getData());\n\t\t\t\t\t\t//System.out.println(auxStr);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn \"false\";\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tauxStr = met.evaluating(auxStr);\n\t\t\t\t//System.out.println(auxStr);\n\t\t\t\tindex = copyIndex-1;//parche#2\n\t\t\t\t//doAssign(str,auxStr);\n\t\t\t\treturn auxStr;\n\t\t\t}\t\n\t\t}\n\t\treturn \"\";\n\t}", "title": "" }, { "docid": "77a0cfcde967fe9e42e4f299043f2ffa", "score": "0.63186395", "text": "private boolean isOperator(String op){\r\n return op.equals(\"+\") || op.equals(\"-\") || op.equals(\"*\") || op.equals(\"/\");\r\n }", "title": "" }, { "docid": "23acfea9a9923f312acf9ee43ea87885", "score": "0.6318504", "text": "boolean tokenOperatorIsUnary(String token) {\n boolean isUnary = false;\n //if (token.matches(\"select\")) isUnary = true;\n //if (token.matches(\"where\")) isUnary = true;\n if (token.matches(\"load\")) isUnary = true;\n if (token.matches(\"show\")) isUnary = true;\n if (token.matches(\"not\")) isUnary = true;\n if (token.matches(\"_\")) isUnary = true;\n return isUnary;\n }", "title": "" }, { "docid": "0f0f8d9f085bbe1b68c9ac86c4924869", "score": "0.63142645", "text": "private boolean isOperator(String op){\r\n if (op.length() == 1) {\r\n char symbol = op.charAt(0);\r\n if (symbol == '^' ||symbol == '+' || symbol == '-' || symbol == '*' || symbol == '/' || symbol == 'x'\r\n || symbol == 'X')\r\n return true;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "924242e9d2e97f240f5c672646594117", "score": "0.62659895", "text": "String relop (Tokenizer scanner)\n {\n String theOp = scanner.getLexeme();\n if (scanner.getTokenType() == Tokenizer.Reserved &&\n\t(theOp.equals(\"<=\") || theOp.equals(\">=\")\n\t || theOp.equals(\"==\") || theOp.equals(\"!=\"))) {\n scanner.getNextToken();\n return theOp;\n }\n else if (scanner.getTokenType() == Tokenizer.Operator &&\n\t (theOp.equals(\"<\") || theOp.equals(\">\")\n\t || theOp.equals(\"=\"))) {\n scanner.getNextToken();\n return theOp;\n }\n else\n return \"\";\n }", "title": "" }, { "docid": "d1100770aaf2ba851da24c0350d5e4b8", "score": "0.62623787", "text": "boolean tokenOperatorIsBinary(String token) {\n return !tokenOperatorIsUnary(token);\n }", "title": "" }, { "docid": "d63896905d0aaa369666a635f5947519", "score": "0.62289953", "text": "String getOperation();", "title": "" }, { "docid": "fd81828b943ea525706eb4139e467d5f", "score": "0.6194616", "text": "public java.lang.String getOperator(){\r\n return localOperator;\r\n }", "title": "" }, { "docid": "fd81828b943ea525706eb4139e467d5f", "score": "0.6194616", "text": "public java.lang.String getOperator(){\r\n return localOperator;\r\n }", "title": "" }, { "docid": "e33e9d6bd0c9abc84edea013020e4e06", "score": "0.6183155", "text": "void setOperador(java.lang.String operador);", "title": "" }, { "docid": "e33e9d6bd0c9abc84edea013020e4e06", "score": "0.61813956", "text": "void setOperador(java.lang.String operador);", "title": "" }, { "docid": "6af343bc371ccb5c2a142323cfd07710", "score": "0.6178066", "text": "interface Token {\n\n enum TokenType {ADD, SUB, MUL, DIV, LEFT, RIGHT, NUM}\n\n void accept(TokenVisitor visitor) throws ParseException;\n public String toString();\n public TokenType getTokenType();\n\n}", "title": "" }, { "docid": "1de94e65ca6dc6db48ade29e5cd17913", "score": "0.61736673", "text": "protected abstract String getOperationSymbol();", "title": "" }, { "docid": "886ccc8bdb67def2b508f8bcb3d9cf5d", "score": "0.6160252", "text": "@Test\n\tpublic final void testExtraerOperadorAditivo() {\n\t\tanalizadorLexico = new AnalizadorLexicoCatlike( );\n\t\tTokenCatlike token = analizadorLexico.extraerOperadorAditivo(\"98+256+a\",2);\n\t\tassertEquals( \"Error en el lexema\", \"+\", token.getLexema());\n\t\tassertEquals( \"Error en el tipo\", ConstantesTipos.OPERADORADITIVO, token.getTipo());\n\t\tassertEquals( \"Error en el índice del siguiente lexema\", 3, token.getIndiceSiguiente());\n\t}", "title": "" }, { "docid": "d03b961cf30055364a6113d4d8039cb0", "score": "0.6136732", "text": "public Operator<T> getOperator() {\r\n if (operator == null) {\r\n throw new IllegalStateException(\"token does not represent an operator\");\r\n }\r\n return operator;\r\n }", "title": "" }, { "docid": "d271ea792d7e32089c3a79f0aaa21a5c", "score": "0.61201423", "text": "String token();", "title": "" }, { "docid": "dca9dd10ad238f4abcbd550688f1b21d", "score": "0.60993755", "text": "public int getOp() {\n\t\treturn op;\n\t}", "title": "" }, { "docid": "55ea9cce2cdcc62df0b42ca6b606fc6a", "score": "0.60987175", "text": "java.lang.String getToken();", "title": "" }, { "docid": "55ea9cce2cdcc62df0b42ca6b606fc6a", "score": "0.60987175", "text": "java.lang.String getToken();", "title": "" }, { "docid": "55ea9cce2cdcc62df0b42ca6b606fc6a", "score": "0.60987175", "text": "java.lang.String getToken();", "title": "" }, { "docid": "55ea9cce2cdcc62df0b42ca6b606fc6a", "score": "0.60987175", "text": "java.lang.String getToken();", "title": "" }, { "docid": "55ea9cce2cdcc62df0b42ca6b606fc6a", "score": "0.60987175", "text": "java.lang.String getToken();", "title": "" }, { "docid": "55ea9cce2cdcc62df0b42ca6b606fc6a", "score": "0.60987175", "text": "java.lang.String getToken();", "title": "" }, { "docid": "55ea9cce2cdcc62df0b42ca6b606fc6a", "score": "0.60987175", "text": "java.lang.String getToken();", "title": "" }, { "docid": "55ea9cce2cdcc62df0b42ca6b606fc6a", "score": "0.60987175", "text": "java.lang.String getToken();", "title": "" }, { "docid": "704e0318bd0440e3bdfed80085d2f18f", "score": "0.6093059", "text": "String getToken();", "title": "" }, { "docid": "704e0318bd0440e3bdfed80085d2f18f", "score": "0.6093059", "text": "String getToken();", "title": "" }, { "docid": "7dae2431f3241a9110529c868e5e16e6", "score": "0.60865927", "text": "String getCommandToken();", "title": "" }, { "docid": "71d7db428100ee3d58538495535c578f", "score": "0.6082697", "text": "Token getToken();", "title": "" }, { "docid": "8ecdca506bf2949bea5ae6e2751b1862", "score": "0.60512775", "text": "private boolean isOperatorEva(char op) {\n\n if (op == '*' || op == '/' || op == '+' || op == '-' || op == '^') {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "4bed7a55d607c42729e34d6bc673b395", "score": "0.60440934", "text": "public String getOperator() {\r\n\r\n\t\treturn this.operator;\r\n\t}", "title": "" }, { "docid": "fc11f61d623fce166afef362728f9034", "score": "0.6035162", "text": "public OperatorSymbol(Operator operator) {\n this.operator = operator;\n }", "title": "" }, { "docid": "f59df7e7e7b50da767f9e24b91415ddb", "score": "0.6030103", "text": "public static Operator parseOperator(char op, boolean invertOperation){\n\t\tif(invertOperation){\n\t\t\tswitch(op){\n\t\t\t\tcase '+' : return Operator.SUBSTRACT;\n\t\t\t\tcase '-' : return Operator.ADD;\n\t\t\t}\t\t\n\t\t}else{\n\t\t\tswitch(op){\n\t\t\t\tcase '+' : return Operator.ADD;\n\t\t\t\tcase '-' : return Operator.SUBSTRACT;\n\t\t\t}\t\t\t\n\t\t}\n\t\treturn Operator.BLANK;\n\t}", "title": "" }, { "docid": "4485f231f5409d883eb0b002da4dfc01", "score": "0.6024071", "text": "@Test\n\tpublic final void testExtraerOperadorRelacional() {\n\t\tanalizadorLexico = new AnalizadorLexicoCatlike( );\n\t\tTokenCatlike token = analizadorLexico.extraerOperadorRelacional(\"98<=56+a\",1);\n\t\tassertEquals( \"Error en el lexema\", \"<=\", token.getLexema());\n\t\tassertEquals( \"Error en el tipo\", ConstantesTipos.OPERADORRELACIONAL, token.getTipo());\n\t\tassertEquals( \"Error en el índice del siguiente lexema\", 4, token.getIndiceSiguiente());\n\t}", "title": "" }, { "docid": "d7917b6e14e82599e12c7bb14b2a21ff", "score": "0.60236883", "text": "public String getOperator() {\n return operator;\n }", "title": "" }, { "docid": "d7917b6e14e82599e12c7bb14b2a21ff", "score": "0.60236883", "text": "public String getOperator() {\n return operator;\n }", "title": "" }, { "docid": "200ce18206c1f396e24e26352dba3fa3", "score": "0.6006773", "text": "private void op1() { \n\t\tif(accept(Token.Kind.ADD));\t\n\t\telse if(accept(Token.Kind.SUB));\t\n\t\telse if(accept(Token.Kind.OR));\t\n\t\telse {\n\t\t\tthrow new QuitParseException(reportSyntaxError(NonTerminal.OP1));\n\t\t}\n }", "title": "" }, { "docid": "3513c4b8cc39d0b09d2465532cb77b83", "score": "0.6006073", "text": "private CompOp compOp() {\r\n \r\n if (matchTokens(Symbol.LT)) {\r\n lexer.nextToken();\r\n return new CompOp(\"<\");\r\n } else if (matchTokens(Symbol.GT)) {\r\n lexer.nextToken();\r\n return new CompOp(\">\");\r\n } else if (matchTokens(Symbol.EQ)) {\r\n lexer.nextToken();\r\n return new CompOp(\"==\");\r\n } else if (matchTokens(Symbol.GE)) {\r\n lexer.nextToken();\r\n return new CompOp(\">=\");\r\n } else if (matchTokens(Symbol.LE)) {\r\n lexer.nextToken();\r\n return new CompOp(\"<=\");\r\n } else if (matchTokens(Symbol.NEQ)) {\r\n lexer.nextToken();\r\n return new CompOp(\"<>\");\r\n } else if (matchTokens(Symbol.NEQC)) {\r\n lexer.nextToken();\r\n return new CompOp(\"!=\");\r\n } else if (matchTokens(Symbol.IN)) {\r\n lexer.nextToken();\r\n return new CompOp(\"in\");\r\n } else if (matchTokens(Symbol.IS)) {\r\n lexer.nextToken();\r\n if (matchTokens(Symbol.NOT)){\r\n lexer.nextToken();\r\n return new CompOp(\"is not\");\r\n } else {\r\n return new CompOp(\"is\");\r\n }\r\n } else if (matchTokens(Symbol.NOT)){\r\n lexer.nextToken();\r\n if (matchTokens(Symbol.IN)){\r\n lexer.nextToken();\r\n return new CompOp(\"not in\");\r\n } else {\r\n return new CompOp(\"not\");\r\n }\r\n } else {\r\n error.show(\"Unexpected error on compOp.\");\r\n } \r\n \r\n return null;\r\n }", "title": "" }, { "docid": "18312fdb7016bf6cec716610298458d3", "score": "0.5995699", "text": "public ArithmeticOp getOp() {\n return op;\n }", "title": "" }, { "docid": "e6f8cf280764dc9a5a79599094e8cada", "score": "0.59912467", "text": "public void calcular_tokens() throws Exception {\n expressio = \"(\" + expressio + \")\"; // tancament (...) inicial\n afegir_operador('(');\n int n = tokenitzar(1);\n if (n != (expressio.length()-1)) error();\n \n }", "title": "" }, { "docid": "54664cec3d1df87154afaefc4f0dd5d5", "score": "0.5981002", "text": "private boolean parseToken(String str){\n\t\t\tif (str.equals(\"+\") ||\n\t\t\t\tstr.equals(\"-\") ||\n\t\t\t\tstr.equals(\"/\") ||\n\t\t\t\tstr.equals(\"*\")){\n\t\t\t\t\t\n\t\t\t\tif (this.getOperator() == null){\t\n\t\t\t\t\tdoOperator(str);\n\t\t\t\t\treturn true;\n\t\t\t\t}else{\n\t\t\t\t\tdoError(str);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t}else if (isNumber(str)){\n\t\t\t\tdoFraction(str + \"/1\");\n\t\t\t\treturn true;\n\t\t\t}else if(str.indexOf(\"/\") >= 1 ){\t\n\t\t\t\tdoFraction(str);\n\t\t\t\treturn true;\n\n\t\t\t}else if(str.toLowerCase().charAt(0) == 'a' ||\n\t\t\t\t\t str.toLowerCase().charAt(0) == 'n' ||\n\t\t\t\t\t str.toLowerCase().charAt(0) == 'c'){\n\t\t\t\t\tdoUnaryOperation(str);\n\t\t\t\t\treturn true;\n\t\t\t}else if(str.toLowerCase().charAt(0) == 'q'){\n\t\t\t\tthis.quit = true;\n\t\t\t\treturn true;\n\t\t\t}else{\n\t\t\t\tthis.doError(str);\n\t\t\t\treturn false;\n\t\t\t\n\t\t}\t\n\t}", "title": "" }, { "docid": "f23fda1dd25421202915404357b9948d", "score": "0.5959473", "text": "public String getOperation();", "title": "" }, { "docid": "cf6567c9939624c1daa97141df26a657", "score": "0.5958097", "text": "boolean tokenIsOperand(String token) {\n boolean isNumber = false;\n if (!tokenIsOperator(token) && !tokenIsParenthesis(token)) isNumber = true;\n return isNumber;\n }", "title": "" }, { "docid": "6dd454d74335fc36ca89b0686522805e", "score": "0.59533197", "text": "private boolean addop() {\n\t\t\n\t\tif (Proscanner.tokens.get(i).getValue().equals(\"+\") || Proscanner.tokens.get(i).getValue().equals(\"-\")) {\n\t\t\ti++;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "13d3297d3f60e2861d28c5542587a45b", "score": "0.59339756", "text": "@Test\n\tpublic final void testEsOperador() {\n\t\tanalizadorLexico = new AnalizadorLexicoCatlike( );\n\t\tboolean resultado = analizadorLexico.esOperador('+');\n\t\tassertTrue(\"Error en la comprovacion\",resultado);\n\t}", "title": "" }, { "docid": "83f7fdee8713b8ec00ee4d6ba55c57b0", "score": "0.59250003", "text": "public String getOperator() {\n\t\treturn operator;\n\t}", "title": "" }, { "docid": "83f7fdee8713b8ec00ee4d6ba55c57b0", "score": "0.59250003", "text": "public String getOperator() {\n\t\treturn operator;\n\t}", "title": "" }, { "docid": "6bd86088bf2efc309b96fcbf93011003", "score": "0.59136575", "text": "public ParserOperator operator ()\n {\n return _operator;\n }", "title": "" }, { "docid": "680fe5ad7483abb66ca22f5720877847", "score": "0.59077513", "text": "private ArithmeticOperator getArithmeticOperator() throws ParserException\n\t{\n\t\tArithmeticOperator op;\n\t\tToken tok = lex.getNextToken();\n\t\tif (tok.getTokenType() == TokenType.add_operator)\n\t\t\top = ArithmeticOperator.add_operator;\n\t\telse if (tok.getTokenType() == TokenType.sub_operator)\n\t\t\top = ArithmeticOperator.sub_operator;\n\t\telse if (tok.getTokenType() == TokenType.mul_operator)\n\t\t\top = ArithmeticOperator.mul_operator;\n\t\telse if (tok.getTokenType() == TokenType.div_operator)\n\t\t\top = ArithmeticOperator.div_operator;\n\t\telse\n\t\t\tthrow new ParserException (\"arithmetic operator expected at line number: \" + tok.getLineNumber() + \n\t\t\t\t\t\" column number: \" + tok.getColumnNumber());\n\t\treturn op;\n\t}", "title": "" }, { "docid": "35327952aad28782358e7677cfb7dcc2", "score": "0.59053177", "text": "@Test\n\tpublic final void testExtraerOperadorLogico() {\n\t\tanalizadorLexico = new AnalizadorLexicoCatlike( );\n\t\tTokenCatlike token = analizadorLexico.extraerOperadorLogico(\"98&256+a\",2);\n\t\tassertEquals( \"Error en el lexema\", \"&\", token.getLexema());\n\t\tassertEquals( \"Error en el tipo\", ConstantesTipos.OPERADORLOGICO, token.getTipo());\n\t\tassertEquals( \"Error en el índice del siguiente lexema\", 3, token.getIndiceSiguiente());\n\t}", "title": "" }, { "docid": "a9c9bbff20114b2eac1f962c7a532e18", "score": "0.58969086", "text": "private ParametersExpression funcOp() {\r\n\t\tif (lookahead.tokenType == TokenTypes.OPEN_BRACKET) {\r\n\t\t\t// func_op -> OPEN_BRACKET parameter CLOSE_BRACKET\r\n\t\t\tnextToken();\r\n\t\t\tParametersExpression parametersExpression = new ParametersExpression();\r\n\t\t\tparameter(parametersExpression);\r\n\t\t\tif (lookahead.tokenType != TokenTypes.CLOSE_BRACKET) {\r\n\t\t\t\tthrow new ParserException(\"Closing bracket expected and \" + lookahead.sequence + \" found instead\");\r\n\t\t\t}\r\n\t\t\tnextToken();\r\n\t\t\treturn parametersExpression;\r\n\t\t} else {\r\n\t\t\tthrow new ParserException(\"Open bracket expected and \" + lookahead.sequence + \" found instead\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "eb94665c3345b824eaeb77ae314d3a61", "score": "0.58945745", "text": "public int getOperator() {\n return operator;\n }", "title": "" }, { "docid": "47ab9caba9d7b5748d79e7f058ebee0d", "score": "0.5892739", "text": "public String getOperation(){\n return operation;\n }", "title": "" }, { "docid": "2c728875b1e666fe02b768cfae3878f4", "score": "0.5889975", "text": "Object getToken();", "title": "" }, { "docid": "7e6daf697d3ec2580afbe981fe48b3b9", "score": "0.58876526", "text": "@Test\n\tpublic final void testExtraerOperadorResta() {\n\t\tanalizadorLexico = new AnalizadorLexicoCatlike( );\n\t\tTokenCatlike token = analizadorLexico.extraerOperadorResta(\"98-256+a\",2);\n\t\tassertEquals( \"Error en el lexema\", \"-\", token.getLexema());\n\t\tassertEquals( \"Error en el tipo\", ConstantesTipos.OPERADORADITIVO, token.getTipo());\n\t\tassertEquals( \"Error en el índice del siguiente lexema\", 3, token.getIndiceSiguiente());\n\t}", "title": "" }, { "docid": "10e0a9fadd345d560394ecb3060d9bf5", "score": "0.58831674", "text": "private boolean isOperator() {\n\t\treturn (data[currentIndex] == '+'\n\t\t\t\t|| (data[currentIndex] == '-' && Character.isDigit(data[currentIndex + 1]) == false)\n\t\t\t\t|| data[currentIndex] == '*' || data[currentIndex] == '/' || data[currentIndex] == '^');\n\t}", "title": "" }, { "docid": "570ff7f817dcf915c8110e54756f14b9", "score": "0.5878743", "text": "@Override\n\tprotected String getEvaluableToken() {\n\t\treturn TOKEN;\n\t}", "title": "" }, { "docid": "62400b718bcd2803a37c7a81ba98e9f2", "score": "0.5876388", "text": "public void calcule(char operacion){\n if(operandos.size()>=2){\n if(String.valueOf(operacion).equals(\"+\")){\n Velocidad v1 = operandos.pop();\n Velocidad v2 = operandos.pop();\n Velocidad v3 = v1.sume(v2);\n operandos.push(v3);\n did=true;\n }\n else if(String.valueOf(operacion).equals(\"-\")){\n Velocidad v1 = operandos.pop();\n Velocidad v2 = operandos.pop();\n Velocidad v3 = v1.reste(v2);\n operandos.push(v3);\n did=true;\n }\n else if(String.valueOf(operacion).equals(\"x\")){\n Velocidad v1=operandos.pop();\n Velocidad v2=operandos.pop();\n operandos.push(v1.vectorial(v2));\n }\n }\n if(operandos.size()>=1){\n if(String.valueOf(operacion).equals(\"h\")){\n Velocidad v1 = operandos.pop();\n operandos.push(v1.velocidadH());\n did=true;\n }\n else if(String.valueOf(operacion).equals(\"v\")){\n Velocidad v1 = operandos.pop();\n operandos.push(v1.velocidadV());\n did=true;\n }\n else{did=false;}\n }\n if(operandos.empty()){did=false;}\n }", "title": "" }, { "docid": "5a75859767e41bcbc6aced95166fed56", "score": "0.58762234", "text": "protected void processToken(Message message, SecurityToken tok) {\n\n }", "title": "" }, { "docid": "f36f9294ce97af10f199c8ea06f2ee05", "score": "0.58753043", "text": "private void op2() { \n\t\tif(accept(Token.Kind.MUL));\n\t\telse if(accept(Token.Kind.DIV));\n\t\telse if(accept(Token.Kind.AND));\n\t\telse {\n\t\t\tthrow new QuitParseException(reportSyntaxError(NonTerminal.OP2));\n\t\t}\n }", "title": "" }, { "docid": "83584007cffcae11af3c8625c06391a1", "score": "0.587443", "text": "public String getOp()\n\t{\n\t\t\treturn opr;\n\t}", "title": "" }, { "docid": "9fde5ad815169c93a08ee73b821fb09c", "score": "0.5866677", "text": "private boolean isOperator(String element){\r\n \r\n switch(element){\r\n case \"+\":\r\n case \"-\":\r\n case \"*\":\r\n case \"/\":\r\n case \"%\":\r\n case \"~\":\r\n return true;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "132659bcf12299ed84799483acd5aa1f", "score": "0.5864594", "text": "int tokenOperatorPrecedence(String token) {\n int precedence = 0;\n //if (token.matches(\"select\")) precedence = 1;\n if (token.matches(\"load\")) precedence = 2;\n if (token.matches(\"show\")) precedence = 2;\n if (token.matches(\"where\")) precedence = 1;\n if (token.matches(\"over\")) precedence = 1;\n if (token.matches(\"join\")) precedence = 1;\n if (token.matches(\"by\")) precedence = 1;\n if (token.matches(\"times\")) precedence = 1;\n if (token.matches(\"union\")) precedence = 1;\n if (token.matches(\"intersection\")) precedence = 1;\n if (token.matches(\"difference\")) precedence = 1;\n if (token.matches(\"rename\")) precedence = 1;\n if (token.matches(\":=\")) precedence = 0;\n if (token.matches(\"alias\")) precedence = 0;\n if (token.matches(\"_\")) precedence = 13;\n if (token.matches(\"\\\\+\")) precedence = 11;\n if (token.matches(\"-\")) precedence = 11;\n if (token.matches(\"\\\\*\")) precedence = 12;\n if (token.matches(\"/\")) precedence = 12;\n if (token.matches(\"and\")) precedence = 4;\n if (token.matches(\"or\")) precedence = 3;\n if (token.matches(\"not\")) precedence = 13;\n if (token.matches(\"<\")) precedence = 9;\n if (token.matches(\"<=\")) precedence = 9;\n if (token.matches(\">\")) precedence = 9;\n if (token.matches(\">=\")) precedence = 9;\n if (token.matches(\"=\")) precedence = 8;\n if (token.matches(\"<>\")) precedence = 8;\n return precedence;\n }", "title": "" }, { "docid": "6685c213ef7b1913782b2bd1221dd265", "score": "0.58590794", "text": "@Override\r\n\tpublic Operation getOp() {\n\t\treturn operation;\r\n\t}", "title": "" }, { "docid": "171a6cd27fddc4f480f5c42e97ca1111", "score": "0.58588815", "text": "@Override\n\tpublic char getOperator(String formula) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "09bc0e00dba017e49bd9fd926832a0d1", "score": "0.58452", "text": "public String getToken();", "title": "" }, { "docid": "6a86330b585f2c42ed459bdb54298448", "score": "0.5844446", "text": "@Override\n\t\tpublic Operation getOp() {\n\t\t\treturn this.op;\n\t\t}", "title": "" }, { "docid": "99356a1237778a18fef4bb36827bbfb0", "score": "0.58255935", "text": "private boolean hasOperator(FCNSTreeNode node){\r\n \r\n switch(node.element){\r\n case \"+\":\r\n case \"-\":\r\n case \"*\":\r\n case \"/\":\r\n case \"%\":\r\n case \"~\":\r\n return true;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "d0be5668d34a8aca2a45fddc94cfbcb4", "score": "0.5816918", "text": "public TokenType sign(){\n\t\tif(lookahead.getType() == TokenType.PLUS){\n\t\t\tmatch(TokenType.PLUS);\n\t\t\treturn TokenType.PLUS;\n\t\t}\n\t\telse if(lookahead.getType() == TokenType.MINUS){\n\t\t\tmatch(TokenType.MINUS);\n\t\t\treturn TokenType.MINUS;\n\t\t}\n\t\telse{\n\t\t\terror(\"sign\");\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "5f40e14145cf076b2d78712278b051e5", "score": "0.5810524", "text": "private boolean isOperator(char operator) {\n if (operator == '+' || operator == '-' || operator == '*' || \n operator == '/' || operator == '^') {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "2a6a0cb1e9042f252d2ca332183089b5", "score": "0.58079094", "text": "public String getOperName() {\n\t\treturn operName;\n\t}", "title": "" }, { "docid": "04701e31bb22d26345a44e255973228f", "score": "0.5800048", "text": "public String getOperation() {\n return this.operation;\n }", "title": "" }, { "docid": "338d51b6c8104f1f820a8af9b9d64ecb", "score": "0.5795116", "text": "static int gettok() throws LexerException {\n // Skip any whitespace.\n while (LastChar == ' ' && Curr < Input.length()) {\n LastChar = Input.charAt(Curr++);\n }\n\n if (Character.isDigit(LastChar)) { // Number: [0-9]+\n while (Character.isDigit(LastChar) && Curr < Input.length()) {\n NumVal += LastChar - '0';\n LastChar = Input.charAt(Curr++);\n }\n\n if (Character.isDigit(LastChar) && Curr == Input.length()) {\n NumVal += LastChar - '0';\n Curr++;\n }\n\n Args.add(NumVal);\n NumVal = \"\";\n return TOK_NUM;\n }\n\n if (LastChar == '+' || LastChar == '-' || LastChar == '*' || LastChar == '/') {\n// if (Curr == 0 || Curr == Input.length())\n// throw new LexerException();\n\n Op = (char) LastChar;\n Args.add(String.valueOf(Op));\n\n if (Curr < Input.length())\n LastChar = Input.charAt(Curr++);\n else\n Curr++;\n\n return TOK_OP;\n }\n\n // Otherwise, just return the character as its ascii value.\n int ThisChar = LastChar;\n LastChar = Input.charAt(Curr++);\n return ThisChar;\n }", "title": "" }, { "docid": "82d2d7b77c9f818da4a62d9d425bb3a0", "score": "0.579074", "text": "public Token nextToken();", "title": "" }, { "docid": "a05887d6c3cc311f9a04a360d2936c77", "score": "0.5790254", "text": "public static String getOperation(Scanner scanner) {\r\n\t\tchar mathOperation;\r\n\t\tSystem.out.print(\"Please enter an operation (+, -, /, *, = or Q to quit): \");\r\n\t\twhile (true) {\r\n\t\t\tmathOperation = scanner.next().toUpperCase().charAt(0);\r\n\t\t\tString op = String.valueOf(mathOperation);\r\n\t\t\tswitch (mathOperation) {\r\n\t\t\t\tcase '+':\r\n\t\t\t\tcase '-':\r\n\t\t\t\tcase '/':\r\n\t\t\t\tcase '*':\r\n\t\t\t\tcase '=':\r\n\t\t\t\tcase 'Q':\r\n\t\t\t\t\treturn op;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tSystem.out.print(\"Invalid input (+, -, /, *, = or Q to quit): \");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0a95743af07843cee2c5b770426a5221", "score": "0.5779218", "text": "@Override\n\tpublic Operation getOp() {\n\n\t\treturn this.op;\n\t}", "title": "" }, { "docid": "ae3d6ccce6df4259cedc66c03cc8c1f0", "score": "0.57737887", "text": "public String getOperation() {\r\n\t\treturn operation;\r\n\t}", "title": "" }, { "docid": "7de591e0033619c157c40824c9042dda", "score": "0.5773016", "text": "public int getOp()\n // -end- 3949E7B90208 get_head3949E75A01EE \"op\"\n {\n // -beg- preserve=no 3949E7B90208 get_body3949E75A01EE \"op\"\n return op;\n // -end- 3949E7B90208 get_body3949E75A01EE \"op\"\n }", "title": "" } ]
b81c1ddde61f1ccea7c5848d682f25f8
This function sets the text for the text fields and for the combo boxes.
[ { "docid": "dadd718c752f8ac52a52c16273322890", "score": "0.0", "text": "public void sentCustomer(Customer customer, int index) {\n\n currentCustomer = customer;\n customerIndex = index;\n customerIdText.setText(Integer.toString(customer.getCustomerId()));\n customerNameText.setText(customer.getCustomerName());\n addressText.setText(customer.getCustomerAddress());\n postalCodeText.setText(customer.getCustomerPostalCode());\n phoneNumberText.setText(customer.getCustomerPhoneNumber());\n\n countryComboBox.setItems(Country.masterCountryList);\n countryComboBox.setValue(customer.getCustomerCountry());\n\n int countryID = countryComboBox.getValue().getCountryId();\n for (Division division : Division.masterDivisionList) {\n if (division.getCountryId() == countryID) {\n selectedDivisions.add(division);\n }\n }\n divisionComboBox.setItems(selectedDivisions);\n divisionComboBox.setValue(customer.getCustomerDivision());\n\n }", "title": "" } ]
[ { "docid": "7ba17a69f1653fadad6f5537f2e35afd", "score": "0.75240785", "text": "private void setTextFields()\n\t{\n\t\trelationshipTextField.setText(relationship);\n\t\tbirthdayTextField.setText(birthday);\n\t\tcompanyTextField.setText(company);\n\t\tfirstNameTextField.setText(first);\n\t\tlastNameTextField.setText(last);\n\t\taddressTextPane.setText(address);\n\t\tcityTextField.setText(city);\n\t\tstateTextField.setText(state);\n\t\tzipTextField.setText(zip);\n\t\tphoneTextField.setText(phone);\n\t\temailTextField.setText(email);\n\t}", "title": "" }, { "docid": "856cdfb8226a83c4231fc6549c40ad2d", "score": "0.7361504", "text": "private void setTextFields() {\r\n this.input = new TextField(\"\", 15);\r\n this.output = new TextField(\"\", 15);\r\n this.output.setEditable(false);\r\n }", "title": "" }, { "docid": "e1aa5d304f2d4acab8f00ee7ebdacf27", "score": "0.7172718", "text": "public void setTextFields() {\n pathTextField.setText(\"\");\n apiTextField.setText(\"\");\n projectTextField.setText(\"\");\n templateTextField.setText(\"\");\n lineTextField.setText(\"\");\n }", "title": "" }, { "docid": "85029281d0fd346a8766de594cac57bb", "score": "0.6868259", "text": "public void cajasTexto() {\n\t\trolBox.setModel(new DefaultComboBoxModel(new String[] {\"U\", \"A\"}));\n\t\trolBox.setBounds(599, 445, 52, 24);\n\t\tcontentPanel.add(rolBox);\n\t\t\n\t\tdeutorBox.setModel(new DefaultComboBoxModel(new String[] {\"true\", \"false\"}));\n\t\tdeutorBox.setBounds(714, 445, 64, 24);\n\t\tcontentPanel.add(deutorBox);\n\t\t\n\t\t//CONTENIDO CAJAS \n\t\ttxtDni = new JTextField();\n\t\ttxtDni.setBounds(57, 410, 95, 19);\n\t\tcontentPanel.add(txtDni);\n\t\ttxtDni.setColumns(10);\n\t\t\n\t\ttxtNom = new JTextField();\n\t\ttxtNom.setColumns(10);\n\t\ttxtNom.setBounds(57, 445, 95, 19);\n\t\tcontentPanel.add(txtNom);\n\t\t\n\t\ttxtCognoms = new JTextField();\n\t\ttxtCognoms.setColumns(10);\n\t\ttxtCognoms.setBounds(242, 410, 100, 19);\n\t\tcontentPanel.add(txtCognoms);\n\t\t\n\t\ttxtPassword = new JTextField();\n\t\ttxtPassword.setColumns(10);\n\t\ttxtPassword.setBounds(242, 445, 103, 19);\n\t\tcontentPanel.add(txtPassword);\n\t\t\n\t\ttxtAdresa = new JTextField();\n\t\ttxtAdresa.setColumns(10);\n\t\ttxtAdresa.setBounds(422, 410, 114, 19);\n\t\tcontentPanel.add(txtAdresa);\n\t\t\n\t\ttxtCorreu = new JTextField();\n\t\ttxtCorreu.setColumns(10);\n\t\ttxtCorreu.setBounds(422, 445, 114, 19);\n\t\tcontentPanel.add(txtCorreu);\n\t\t\n\t\ttxtTelf = new JTextField();\n\t\ttxtTelf.setColumns(10);\n\t\ttxtTelf.setBounds(599, 410, 100, 19);\n\t\tcontentPanel.add(txtTelf);\n\t\t\n\t}", "title": "" }, { "docid": "b0294152d9192f69d2b7fe41481fb8fa", "score": "0.67965347", "text": "private void fillFields()\n\t{\n\t\tnameField.setText(theObject.name);\n\t\tsiteNameTypeCombo.setSelection(theObject.siteNameTypePref);\n\t\tmediumTypeCombo.setSelection(theObject.transportMediumType);\n\t\tlastModifiedField.setText(theObject.lastModifyTime == null ? \"\"\n\t\t\t: Constants.defaultDateFormat.format(theObject.lastModifyTime));\n\t\tgoingThroughInit = false;\n\t\tmediumTypeSelected();\n\t}", "title": "" }, { "docid": "7a4ecbf55b53011334a8be90c4e44f41", "score": "0.6726511", "text": "public void setText(String text) {\n/* 105 */ this.comboBox.getEditor().setItem(text);\n/* */ }", "title": "" }, { "docid": "03a926550ca19222577ff6f7e6376d11", "score": "0.66484284", "text": "private void initializeFieldsForSettingsEditor() {\r\n\r\n Set<String> setOfSettingNames = headElements.keySet();\r\n\r\n cmbDocTypeNumber.addItem(NumberOfSchemaReport.noschema);\r\n cmbDocTypeNumber.addItem(NumberOfSchemaReport.J0147105);\r\n cmbDocTypeNumber.addItem(NumberOfSchemaReport.J1312002);\r\n\r\n\r\n if (_numberOfSchemaReport == NumberOfSchemaReport.J1312002) {\r\n cmbDocTypeNumber.setSelectedItem(NumberOfSchemaReport.J1312002);\r\n } else if (_numberOfSchemaReport == NumberOfSchemaReport.J0147105) {\r\n cmbDocTypeNumber.setSelectedItem(NumberOfSchemaReport.J0147105);\r\n } else {\r\n cmbDocTypeNumber.setSelectedItem(NumberOfSchemaReport.noschema);\r\n }\r\n\r\n for (String oneSettingName : setOfSettingNames) {\r\n switch (oneSettingName) {\r\n case \"TIN\":\r\n tfTIN.setText(headElements.get(oneSettingName));\r\n break;\r\n case \"C_DOC\":\r\n tfC_DOC.setText(headElements.get(oneSettingName));\r\n break;\r\n case \"C_DOC_SUB\":\r\n tfC_DOC_SUB.setText(headElements.get(oneSettingName));\r\n break;\r\n case \"PERIOD_MONTH\":\r\n tfPERIOD_MONTH.setText(headElements.get(oneSettingName));\r\n break;\r\n case \"PERIOD_TYPE\":\r\n\r\n String str_PERIOD_TYPE_value = headElements.get(oneSettingName);\r\n\r\n switch (str_PERIOD_TYPE_value) {\r\n case \"1\":\r\n cbPERIOD_TYPE.setSelectedIndex(0);\r\n break;\r\n case \"2\":\r\n cbPERIOD_TYPE.setSelectedIndex(1);\r\n break;\r\n case \"3\":\r\n cbPERIOD_TYPE.setSelectedIndex(2);\r\n break;\r\n case \"4\":\r\n cbPERIOD_TYPE.setSelectedIndex(3);\r\n break;\r\n case \"5\":\r\n cbPERIOD_TYPE.setSelectedIndex(4);\r\n break;\r\n default:\r\n }\r\n\r\n //.setText(oneSettingName);\r\n break;\r\n case \"PERIOD_YEAR\":\r\n tfPERIOD_YEAR.setText(headElements.get(oneSettingName));\r\n break;\r\n case \"D_FILL\":\r\n tfD_FILL.setText(headElements.get(oneSettingName));\r\n break;\r\n default:\r\n }\r\n }\r\n\r\n setOfSettingNames = bodyElements1.keySet();\r\n for (String oneSettingName : setOfSettingNames) {\r\n switch (oneSettingName) {\r\n case \"HSTI\":\r\n tfHSTI.setText(bodyElements1.get(oneSettingName));\r\n break;\r\n case \"HTIN\":\r\n tfHTIN.setText(bodyElements1.get(oneSettingName));\r\n break;\r\n case \"HNAME\":\r\n tfHNAME.setText(bodyElements1.get(oneSettingName));\r\n break;\r\n default:\r\n }\r\n }\r\n\r\n setOfSettingNames = bodyElements2.keySet();\r\n for (String oneSettingName : setOfSettingNames) {\r\n switch (oneSettingName) {\r\n case \"HBOS\":\r\n tfHBOS.setText(bodyElements2.get(oneSettingName));\r\n break;\r\n case \"HFILL\":\r\n tfHFILL.setText(bodyElements2.get(oneSettingName));\r\n break;\r\n default:\r\n }\r\n }\r\n }", "title": "" }, { "docid": "54e5f5aa4653e21d32e413f1b4dd6743", "score": "0.6616715", "text": "public void limpiarCampos() {\n txt3NombreMaestro.setText(\"\");\n txt4ApellidoPaterno.setText(\"\");\n txt5ApellidoMaterno.setText(\"\");\n cbox1Grado.setSelectedIndex(0);\n cbox2Grupo.setSelectedIndex(0);\n txt6Usuario.setText(\"\");\n txt2Contraseña.setText(\"\");\n\n }", "title": "" }, { "docid": "963d6f6309692da2056a7518a698d272", "score": "0.65990436", "text": "private void setText(){\n mediumColorMode.getItems().addAll(\"Text and Line Drawings Only\", \"Text and Photographs\", \"Full Photographs\");\n //Set default value of medium tab color mode options\n mediumColorMode.setValue(\"Text and Line Drawings Only\");\n //Disable two buttons in the hard tab\n //hardRunScanTailor.setDisable(true);\n //hardCreatePDF.setDisable(true);\n //Adds options to hard tab's layout options\n hardLayoutOption.getItems().addAll(\"Auto Detect\", \"One Page\", \"Two Page\");\n //Set default layout option\n hardLayoutOption.setValue(\"Auto Detect\");\n //Adds options to hard tab's orientation options\n hardOrientation.getItems().addAll(\"Left\", \"Right\", \"Upsidedown\");\n //Set default orientation options\n hardOrientation.setValue(\"Left\");\n //Sets default margin in hard tab\n hardMargins.getEditor().setPromptText(\"0.0 mm\");\n //Sets color mode options in hard tab\n hardColorMode.getItems().addAll(\"Text and Line Drawings Only\", \"Text and Photographs\", \"Full Photographs\");\n //Sets default value in hard tab color options\n hardColorMode.setValue(\"Text and Line Drawings Only\");\n }", "title": "" }, { "docid": "e2ac0683645299379c274655aebb90ed", "score": "0.656393", "text": "private void setValues(){\n txtNome.setText(c.getNome());\n txtEmail.setText(c.getEmail());\n txtCpf.setText(c.getCpf());\n txtTelefone.setText(c.getTelefone());\n txtEndereço.setText(c.getEndereco());\n }", "title": "" }, { "docid": "b91c218f083b4a9a292b072ab498ba89", "score": "0.65395075", "text": "private void settextfield()\r\n\t{\r\n\t\ttfields = new JTextField[lnames.length-2];\r\n\t\tfor (int i = 0; i < lnames.length-2; i++) \r\n\t\t{\r\n\t\t\ttfields[i] = new JTextField(INFO_SIZE);\r\n\t\t\ttfields[i].setEnabled(false);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "21a9d60c4fe2468147dbffbe521d7ae4", "score": "0.6532503", "text": "public void emptyTextFields(){\n datumField.setText(\"\");\n beginTijdField.setText(\"\");\n eindTijdField.setText(\"\");\n inlegGeldField.setText(\"\");\n uitersteField.setText(\"\");\n beschrijvingField.setText(\"\");\n }", "title": "" }, { "docid": "019d97f6ed2bfb5e8a84e5e70968240f", "score": "0.65181535", "text": "public void setTxtFieldText(String x)\r\n\t{\r\n\t\ttField.setText(x);\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}", "title": "" }, { "docid": "1bb0279ac2d455f73cc737276293fae4", "score": "0.6515978", "text": "public void setText(String text){\n for (int i = 0; i < txtBoxes.length; i++) {\n txtBoxes[i].setText(text);\n }\n }", "title": "" }, { "docid": "700162bf5f26f5087c3ea7093c1381f7", "score": "0.65148026", "text": "private void setTextInFields(ArrayList<String> stock) throws Exception {\n code.setText(stock.get(0));\n name.setText(stock.get(1));\n cnic.setText(stock.get(2));\n contact.setText(stock.get(3));\n add1.setText(stock.get(4));\n add2.setText(stock.get(5));\n if(stock.get(6).equalsIgnoreCase(\"Y\")){\n actType.setSelectedIndex(0);\n }else if(stock.get(6).equalsIgnoreCase(\"N\")){\n actType.setSelectedIndex(1);\n }else{\n actType.setSelectedIndex(0);\n }\n postCode.setText(stock.get(7));\n postName.setModel(buildOneComboBoxModel(stock.get(7)));\n salary.setText(stock.get(8));\n nok.setText(stock.get(9));\n relation.setText(stock.get(10));\n nokcell.setText(stock.get(11));\n dateJoining.setDate(f.toDate(stock.get(12)));\n dateLeaving.setDate(f.toDate(stock.get(13)));\n }", "title": "" }, { "docid": "caa41216d8f673b10f4b9f43dc9b4a8a", "score": "0.6498274", "text": "public void instructionsForSetting(){\n\t\t\tsettingInstructions = new JTextField();\n\t\t\tsettingInstructions.setText(\" 1) Choose your difficulty - 1 as the hardest and 5 as the easiest.\");\n\t\t\tsettingInstructions.setFont(new Font(\"Arial\", Font.BOLD, 10));\n\t\t\tsettingInstructions.setForeground(Color.blue);\n\t\t\tsettingInstructions.setBackground(Color.yellow);\n\t\t\tsettingInstructions.setFont( new Font(\"Serif\", Font.PLAIN, 14 ));\n\t\t\tsettingInstructions.setMargin( new Insets(7,7,7,7));\n\t\t\tsettingInstructions.setBounds(0,100,600,100);\n\t\t\tsettingInstructions.setEditable(false);\n\t\t\tadd(settingInstructions);\n\t\t }", "title": "" }, { "docid": "b567a4c6067bd606b73f216e5ce6f93d", "score": "0.6462197", "text": "public void setTextField() {\r\n showScore.setText(\"Score: \" + String.valueOf(playerPointCounter)\r\n + \"\\nMisses: \" + String.valueOf(gameOverCounter));\r\n showScore.setLayoutX(25);\r\n showScore.setLayoutY(35);\r\n showScore.setFill(Color.WHITE);\r\n //Font family, weight, font size\r\n showScore.setFont(Font.font(\"Baskerville Old Face\", FontWeight.BOLD, 20));\r\n }", "title": "" }, { "docid": "2b04da0718e89bd844f1bd29b3881cf1", "score": "0.6452809", "text": "public void setTextInTextField(String info) {\r\n\t\ttextField.setText(info);\r\n\t}", "title": "" }, { "docid": "63d5551319a6d374a840c83d1633691c", "score": "0.6407869", "text": "private void clearTxtFields() {\r\n customerNameTxtField.clear();\r\n customerAddressTxtField.clear();\r\n countryCB.getSelectionModel().clearSelection();\r\n countryCB.setPromptText(\"Select Country\");\r\n cityCB.getSelectionModel().clearSelection();\r\n cityCB.setPromptText(\"Select City\");\r\n postalCodeTxtField.clear();\r\n phoneNumberTxtField.clear();\r\n }", "title": "" }, { "docid": "7f7d0b44288f8353bda454892541e035", "score": "0.64022434", "text": "public void Limpiar(){\n txtMail.setText(\"\");\n txtPass.setText(\"\");\n txtnom.setText(\"\");\n txtape.setText(\"\");;\n txtTel.setText(\"\");\n cmbP.setSelectedIndex(0);\n cmbsx.setSelectedIndex(0);\n txtedad.setText(\"\");\n }", "title": "" }, { "docid": "eae5194019acb57b03addafc5e7408ca", "score": "0.6401971", "text": "protected void createTextFields()\n\t{\n\t\tComponentFactory factory = ComponentFactory.getInstance();\n\t\t\n\t\tnameTextField = factory.createTextField(ComponentFactory.TEXT);\n\t\tweightTextField = factory.createTextField(ComponentFactory.TEXT);\n\t\tdateTextField = factory.createTextField(ComponentFactory.TEXT);\n\t\tidTextField = factory.createTextField(ComponentFactory.TEXT);\n\t}", "title": "" }, { "docid": "026634cd48e69597e8ed4485e94b76bd", "score": "0.6391616", "text": "private void limpiar() {\n carnetFormattedTextField.setText(\"\");\n codigoCarreraFormattedTextField.setText(\"\");\n nombreTextField.setText(\"\");\n }", "title": "" }, { "docid": "c8d1ae11a528e419fd039d0d44264d05", "score": "0.63854176", "text": "@Override\r\n\tpublic void setText(String name, String text) {\n\t}", "title": "" }, { "docid": "7af3ac318ebad7dae268857d85163ff7", "score": "0.63643193", "text": "private void initDefaultValues(){\n\t\tdataBaseText.setText(\"\");\n\t\tprotocolCombo.removeAllItems();\n\t\tserverCombo.removeAllItems();\n\t\tserverCombo.setEditable(true);\n\t\treplyText.setEditable(false);\n\t}", "title": "" }, { "docid": "d1045c92e9eaf0e7527703c4135ddd8c", "score": "0.63586205", "text": "private void setTextField() {\n textField = new JTextField();\n /*\n * The search field in the parent is updated when the text field content\n * is changed\n */\n textField.getDocument().addDocumentListener(\n queryRowController.createDocumentListener());\n setTextFieldOnEnterListener(textField);\n }", "title": "" }, { "docid": "9bb634f2726634873f1359a7d5186eb1", "score": "0.63378036", "text": "public void createTextFields() {\n\n\t\tcp5 = new ControlP5(this); // create an instance of the controlP5 object for this program\n\n\t\tuser = cp5.addTextfield(\" \").setPosition(300, 300).setColorActive(color(239, 149, 109))\n\t\t\t\t.setColorBackground(color(32, 48, 99));\n\n\t}", "title": "" }, { "docid": "2fd82c377bca41c2e0e6001eb612c448", "score": "0.6313024", "text": "private void setTextProperties() {\n stationsBtn.textProperty().setValue(stringProperties.get(\"Station\"));\n favoritesBtn.textProperty().setValue(stringProperties.get(\"Favorites\"));\n fileMenu.textProperty().setValue(stringProperties.get(\"File\"));\n preferencesMenu.textProperty().setValue(stringProperties.get(\"Preferences\"));\n helpMenu.textProperty().setValue(stringProperties.get(\"Help\"));\n chooseLanguage.textProperty().setValue(stringProperties.get(\"Choose Language\"));\n englishBtn.textProperty().setValue(stringProperties.get(\"English\"));\n hebrewBtn.textProperty().setValue(stringProperties.get(\"Hebrew\"));\n }", "title": "" }, { "docid": "118c327b3a53ce083b022f15db10dfa0", "score": "0.63000715", "text": "@Override\n protected void initFieldsEdit() {\n this.txtAddressedTo.setText(getSectionMetadataValue(\"BungeniQuestionTo\"));\n return;\n }", "title": "" }, { "docid": "5600ca28ee80131ddf0ec39f9d04e7ec", "score": "0.6299833", "text": "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 1338, 1080);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField.setColumns(10);\n\t\ttextField.setBounds(539, 104, 42, 43);\n\t\tframe.getContentPane().add(textField);\n\t\t\n\t\ttxtS = new JTextField();\n\t\ttxtS.setEnabled(false);\n\t\ttxtS.setText(\" S\");\n\t\ttxtS.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttxtS.setColumns(10);\n\t\ttxtS.setBounds(539, 62, 42, 43);\n\t\tframe.getContentPane().add(txtS);\n\t\t\n\t\ttextField_2 = new JTextField();\n\t\ttextField_2.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_2.setColumns(10);\n\t\ttextField_2.setBounds(539, 147, 42, 43);\n\t\tframe.getContentPane().add(textField_2);\n\t\t\n\t\ttextField_3 = new JTextField();\n\t\ttextField_3.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_3.setColumns(10);\n\t\ttextField_3.setBounds(539, 190, 42, 43);\n\t\tframe.getContentPane().add(textField_3);\n\t\t\n\t\ttextField_4 = new JTextField();\n\t\ttextField_4.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_4.setColumns(10);\n\t\ttextField_4.setBounds(539, 233, 42, 43);\n\t\tframe.getContentPane().add(textField_4);\n\t\t\n\t\ttextField_5 = new JTextField();\n\t\ttextField_5.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_5.setColumns(10);\n\t\ttextField_5.setBounds(539, 276, 42, 43);\n\t\tframe.getContentPane().add(textField_5);\n\t\t\n\t\ttextField_6 = new JTextField();\n\t\ttextField_6.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_6.setColumns(10);\n\t\ttextField_6.setBounds(539, 318, 42, 43);\n\t\tframe.getContentPane().add(textField_6);\n\t\t\n\t\ttextField_7 = new JTextField();\n\t\ttextField_7.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_7.setColumns(10);\n\t\ttextField_7.setBounds(539, 361, 42, 43);\n\t\tframe.getContentPane().add(textField_7);\n\t\t\n\t\ttextField_8 = new JTextField();\n\t\ttextField_8.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_8.setColumns(10);\n\t\ttextField_8.setBounds(497, 190, 42, 43);\n\t\tframe.getContentPane().add(textField_8);\n\t\t\n\t\ttxtL = new JTextField();\n\t\ttxtL.setEnabled(false);\n\t\ttxtL.setText(\" L\");\n\t\ttxtL.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttxtL.setColumns(10);\n\t\ttxtL.setBounds(455, 190, 42, 43);\n\t\tframe.getContentPane().add(txtL);\n\t\t\n\t\ttextField_10 = new JTextField();\n\t\ttextField_10.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_10.setColumns(10);\n\t\ttextField_10.setBounds(412, 190, 42, 43);\n\t\tframe.getContentPane().add(textField_10);\n\t\t\n\t\ttextField_11 = new JTextField();\n\t\ttextField_11.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_11.setColumns(10);\n\t\ttextField_11.setBounds(369, 190, 42, 43);\n\t\tframe.getContentPane().add(textField_11);\n\t\t\n\t\ttextField_12 = new JTextField();\n\t\ttextField_12.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_12.setColumns(10);\n\t\ttextField_12.setBounds(455, 147, 42, 43);\n\t\tframe.getContentPane().add(textField_12);\n\t\t\n\t\ttextField_13 = new JTextField();\n\t\ttextField_13.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_13.setColumns(10);\n\t\ttextField_13.setBounds(455, 104, 42, 43);\n\t\tframe.getContentPane().add(textField_13);\n\t\t\n\t\ttextField_14 = new JTextField();\n\t\ttextField_14.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_14.setColumns(10);\n\t\ttextField_14.setBounds(455, 62, 42, 43);\n\t\tframe.getContentPane().add(textField_14);\n\t\t\n\t\ttextField_15 = new JTextField();\n\t\ttextField_15.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_15.setColumns(10);\n\t\ttextField_15.setBounds(455, 233, 42, 43);\n\t\tframe.getContentPane().add(textField_15);\n\t\t\n\t\ttextField_16 = new JTextField();\n\t\ttextField_16.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_16.setColumns(10);\n\t\ttextField_16.setBounds(455, 276, 42, 43);\n\t\tframe.getContentPane().add(textField_16);\n\t\t\n\t\ttextField_17 = new JTextField();\n\t\ttextField_17.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_17.setColumns(10);\n\t\ttextField_17.setBounds(369, 233, 42, 43);\n\t\tframe.getContentPane().add(textField_17);\n\t\t\n\t\ttextField_18 = new JTextField();\n\t\ttextField_18.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_18.setColumns(10);\n\t\ttextField_18.setBounds(369, 276, 42, 43);\n\t\tframe.getContentPane().add(textField_18);\n\t\t\n\t\ttextField_19 = new JTextField();\n\t\ttextField_19.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_19.setColumns(10);\n\t\ttextField_19.setBounds(369, 318, 42, 43);\n\t\tframe.getContentPane().add(textField_19);\n\t\t\n\t\ttextField_20 = new JTextField();\n\t\ttextField_20.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_20.setColumns(10);\n\t\ttextField_20.setBounds(369, 361, 42, 43);\n\t\tframe.getContentPane().add(textField_20);\n\t\t\n\t\ttextField_21 = new JTextField();\n\t\ttextField_21.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_21.setColumns(10);\n\t\ttextField_21.setBounds(369, 404, 42, 43);\n\t\tframe.getContentPane().add(textField_21);\n\t\t\n\t\ttextField_22 = new JTextField();\n\t\ttextField_22.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_22.setColumns(10);\n\t\ttextField_22.setBounds(369, 447, 42, 43);\n\t\tframe.getContentPane().add(textField_22);\n\t\t\n\t\ttextField_23 = new JTextField();\n\t\ttextField_23.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_23.setColumns(10);\n\t\ttextField_23.setBounds(369, 491, 42, 43);\n\t\tframe.getContentPane().add(textField_23);\n\t\t\n\t\ttxtE = new JTextField();\n\t\ttxtE.setEnabled(false);\n\t\ttxtE.setText(\" E\");\n\t\ttxtE.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttxtE.setColumns(10);\n\t\ttxtE.setBounds(369, 535, 42, 43);\n\t\tframe.getContentPane().add(txtE);\n\t\t\n\t\ttextField_25 = new JTextField();\n\t\ttextField_25.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_25.setColumns(10);\n\t\ttextField_25.setBounds(369, 577, 42, 43);\n\t\tframe.getContentPane().add(textField_25);\n\t\t\n\t\ttextField_26 = new JTextField();\n\t\ttextField_26.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_26.setColumns(10);\n\t\ttextField_26.setBounds(327, 404, 42, 43);\n\t\tframe.getContentPane().add(textField_26);\n\t\t\n\t\ttextField_27 = new JTextField();\n\t\ttextField_27.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_27.setColumns(10);\n\t\ttextField_27.setBounds(412, 404, 42, 43);\n\t\tframe.getContentPane().add(textField_27);\n\t\t\n\t\ttextField_28 = new JTextField();\n\t\ttextField_28.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_28.setColumns(10);\n\t\ttextField_28.setBounds(285, 404, 42, 43);\n\t\tframe.getContentPane().add(textField_28);\n\t\t\n\t\ttxtR = new JTextField();\n\t\ttxtR.setEnabled(false);\n\t\ttxtR.setText(\" R\");\n\t\ttxtR.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttxtR.setColumns(10);\n\t\ttxtR.setBounds(242, 404, 42, 43);\n\t\tframe.getContentPane().add(txtR);\n\t\t\n\t\ttextField_30 = new JTextField();\n\t\ttextField_30.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_30.setColumns(10);\n\t\ttextField_30.setBounds(200, 404, 42, 43);\n\t\tframe.getContentPane().add(textField_30);\n\t\t\n\t\ttextField_31 = new JTextField();\n\t\ttextField_31.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_31.setColumns(10);\n\t\ttextField_31.setBounds(157, 404, 42, 43);\n\t\tframe.getContentPane().add(textField_31);\n\t\t\n\t\ttextField_32 = new JTextField();\n\t\ttextField_32.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_32.setColumns(10);\n\t\ttextField_32.setBounds(114, 404, 42, 43);\n\t\tframe.getContentPane().add(textField_32);\n\t\t\n\t\ttextField_33 = new JTextField();\n\t\ttextField_33.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_33.setColumns(10);\n\t\ttextField_33.setBounds(114, 361, 42, 43);\n\t\tframe.getContentPane().add(textField_33);\n\t\t\n\t\ttextField_34 = new JTextField();\n\t\ttextField_34.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_34.setColumns(10);\n\t\ttextField_34.setBounds(114, 318, 42, 43);\n\t\tframe.getContentPane().add(textField_34);\n\t\t\n\t\ttextField_35 = new JTextField();\n\t\ttextField_35.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_35.setColumns(10);\n\t\ttextField_35.setBounds(114, 447, 42, 43);\n\t\tframe.getContentPane().add(textField_35);\n\t\t\n\t\ttextField_36 = new JTextField();\n\t\ttextField_36.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_36.setColumns(10);\n\t\ttextField_36.setBounds(114, 491, 42, 43);\n\t\tframe.getContentPane().add(textField_36);\n\t\t\n\t\ttextField_37 = new JTextField();\n\t\ttextField_37.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_37.setColumns(10);\n\t\ttextField_37.setBounds(114, 535, 42, 43);\n\t\tframe.getContentPane().add(textField_37);\n\t\t\n\t\ttextField_38 = new JTextField();\n\t\ttextField_38.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_38.setColumns(10);\n\t\ttextField_38.setBounds(327, 535, 42, 43);\n\t\tframe.getContentPane().add(textField_38);\n\t\t\n\t\ttextField_39 = new JTextField();\n\t\ttextField_39.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_39.setColumns(10);\n\t\ttextField_39.setBounds(285, 535, 42, 43);\n\t\tframe.getContentPane().add(textField_39);\n\t\t\n\t\ttextField_40 = new JTextField();\n\t\ttextField_40.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_40.setColumns(10);\n\t\ttextField_40.setBounds(242, 535, 42, 43);\n\t\tframe.getContentPane().add(textField_40);\n\t\t\n\t\ttextField_41 = new JTextField();\n\t\ttextField_41.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_41.setColumns(10);\n\t\ttextField_41.setBounds(412, 535, 42, 43);\n\t\tframe.getContentPane().add(textField_41);\n\t\t\n\t\ttextField_42 = new JTextField();\n\t\ttextField_42.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_42.setColumns(10);\n\t\ttextField_42.setBounds(455, 535, 42, 43);\n\t\tframe.getContentPane().add(textField_42);\n\t\t\n\t\ttextField_43 = new JTextField();\n\t\ttextField_43.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_43.setColumns(10);\n\t\ttextField_43.setBounds(497, 535, 42, 43);\n\t\tframe.getContentPane().add(textField_43);\n\t\t\n\t\ttextField_44 = new JTextField();\n\t\ttextField_44.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_44.setColumns(10);\n\t\ttextField_44.setBounds(539, 535, 42, 43);\n\t\tframe.getContentPane().add(textField_44);\n\t\t\n\t\ttextField_45 = new JTextField();\n\t\ttextField_45.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_45.setColumns(10);\n\t\ttextField_45.setBounds(582, 535, 42, 43);\n\t\tframe.getContentPane().add(textField_45);\n\t\t\n\t\ttextField_46 = new JTextField();\n\t\ttextField_46.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_46.setColumns(10);\n\t\ttextField_46.setBounds(582, 318, 42, 43);\n\t\tframe.getContentPane().add(textField_46);\n\t\t\n\t\ttxtR_1 = new JTextField();\n\t\ttxtR_1.setEnabled(false);\n\t\ttxtR_1.setText(\" R\");\n\t\ttxtR_1.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttxtR_1.setColumns(10);\n\t\ttxtR_1.setBounds(624, 318, 42, 43);\n\t\tframe.getContentPane().add(txtR_1);\n\t\t\n\t\ttextField_48 = new JTextField();\n\t\ttextField_48.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_48.setColumns(10);\n\t\ttextField_48.setBounds(666, 318, 42, 43);\n\t\tframe.getContentPane().add(textField_48);\n\t\t\n\t\ttextField_49 = new JTextField();\n\t\ttextField_49.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_49.setColumns(10);\n\t\ttextField_49.setBounds(624, 276, 42, 43);\n\t\tframe.getContentPane().add(textField_49);\n\t\t\n\t\ttextField_50 = new JTextField();\n\t\ttextField_50.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_50.setColumns(10);\n\t\ttextField_50.setBounds(624, 233, 42, 43);\n\t\tframe.getContentPane().add(textField_50);\n\t\t\n\t\ttextField_51 = new JTextField();\n\t\ttextField_51.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_51.setColumns(10);\n\t\ttextField_51.setBounds(624, 190, 42, 43);\n\t\tframe.getContentPane().add(textField_51);\n\t\t\n\t\ttextField_52 = new JTextField();\n\t\ttextField_52.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_52.setColumns(10);\n\t\ttextField_52.setBounds(624, 147, 42, 43);\n\t\tframe.getContentPane().add(textField_52);\n\t\t\n\t\ttextField_53 = new JTextField();\n\t\ttextField_53.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_53.setColumns(10);\n\t\ttextField_53.setBounds(624, 104, 42, 43);\n\t\tframe.getContentPane().add(textField_53);\n\t\t\n\t\ttextField_54 = new JTextField();\n\t\ttextField_54.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_54.setColumns(10);\n\t\ttextField_54.setBounds(624, 361, 42, 43);\n\t\tframe.getContentPane().add(textField_54);\n\t\t\n\t\ttextField_55 = new JTextField();\n\t\ttextField_55.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_55.setColumns(10);\n\t\ttextField_55.setBounds(624, 404, 42, 43);\n\t\tframe.getContentPane().add(textField_55);\n\t\t\n\t\ttextField_56 = new JTextField();\n\t\ttextField_56.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_56.setColumns(10);\n\t\ttextField_56.setBounds(624, 447, 42, 43);\n\t\tframe.getContentPane().add(textField_56);\n\t\t\n\t\ttextField_57 = new JTextField();\n\t\ttextField_57.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_57.setColumns(10);\n\t\ttextField_57.setBounds(582, 447, 42, 43);\n\t\tframe.getContentPane().add(textField_57);\n\t\t\n\t\ttextField_58 = new JTextField();\n\t\ttextField_58.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_58.setColumns(10);\n\t\ttextField_58.setBounds(666, 447, 42, 43);\n\t\tframe.getContentPane().add(textField_58);\n\t\t\n\t\ttxtE_1 = new JTextField();\n\t\ttxtE_1.setEnabled(false);\n\t\ttxtE_1.setText(\" E\");\n\t\ttxtE_1.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttxtE_1.setColumns(10);\n\t\ttxtE_1.setBounds(709, 447, 42, 43);\n\t\tframe.getContentPane().add(txtE_1);\n\t\t\n\t\ttextField_60 = new JTextField();\n\t\ttextField_60.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_60.setColumns(10);\n\t\ttextField_60.setBounds(752, 447, 42, 43);\n\t\tframe.getContentPane().add(textField_60);\n\t\t\n\t\ttextField_61 = new JTextField();\n\t\ttextField_61.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_61.setColumns(10);\n\t\ttextField_61.setBounds(666, 233, 42, 43);\n\t\tframe.getContentPane().add(textField_61);\n\t\t\n\t\ttxtS_1 = new JTextField();\n\t\ttxtS_1.setEnabled(false);\n\t\ttxtS_1.setText(\" S\");\n\t\ttxtS_1.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttxtS_1.setColumns(10);\n\t\ttxtS_1.setBounds(709, 233, 42, 43);\n\t\tframe.getContentPane().add(txtS_1);\n\t\t\n\t\ttextField_63 = new JTextField();\n\t\ttextField_63.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_63.setColumns(10);\n\t\ttextField_63.setBounds(752, 233, 42, 43);\n\t\tframe.getContentPane().add(textField_63);\n\t\t\n\t\ttextField_64 = new JTextField();\n\t\ttextField_64.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_64.setColumns(10);\n\t\ttextField_64.setBounds(794, 233, 42, 43);\n\t\tframe.getContentPane().add(textField_64);\n\t\t\n\t\ttextField_65 = new JTextField();\n\t\ttextField_65.setText(\" \");\n\t\ttextField_65.setFont(new Font(\"Perpetua Titling MT\", Font.BOLD, 24));\n\t\ttextField_65.setColumns(10);\n\t\ttextField_65.setBounds(836, 233, 42, 43);\n\t\tframe.getContentPane().add(textField_65);\n\t\t\n\t\tJButton button = new JButton(\"FINISH\");\n\t\tbutton.setFont(new Font(\"Tahoma\", Font.BOLD, 24));\n\t\tbutton.setBounds(312, 829, 179, 42);\n\t\tframe.getContentPane().add(button);\n\t\t\n\t\tJButton button_1 = new JButton(\"GIVE UP!\");\n\t\tbutton_1.setFont(new Font(\"Tahoma\", Font.BOLD, 24));\n\t\tbutton_1.setBounds(736, 829, 167, 42);\n\t\tframe.getContentPane().add(button_1);\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBounds(0, 0, 1320, 1020);\n\t\tframe.getContentPane().add(panel);\n\t\tpanel.setLayout(null);\n\t\t\n\t\tlblNewLabel = new JLabel(\"\");\n\t\tlblNewLabel.setBounds(895, 562, 56, 16);\n\t\tpanel.add(lblNewLabel);\n\t}", "title": "" }, { "docid": "00001d34e4286224ed882024d7d042cd", "score": "0.6297981", "text": "final protected void updateTextFields() {\r\n LocalDateTime dateValue = getSkinnable().getDateTimeValue();\r\n if( dateValue == null ) {\r\n valueFields.forEach( c -> {c.setValue( null );} );\r\n return;\r\n }\r\n dayField.setValue( dateValue.getDayOfMonth() );\r\n monthField.setValue( dateValue.getMonthValue() );\r\n yearField.setValue( dateValue.getYear() );\r\n hoursField.setValue( dateValue.getHour() );\r\n minutesField.setValue( dateValue.getMinute() );\r\n secondsField.setValue( dateValue.getSecond() );\r\n }", "title": "" }, { "docid": "217b49700832f4fc05cf4f4c61c336c8", "score": "0.62859654", "text": "private void setTextEmpty(){\n edtID.setText(\"\");\n edtEmail.setText(\"\");\n edtName.setText(\"\");\n }", "title": "" }, { "docid": "ad9194ae62d62b4ea6844083cf0b756d", "score": "0.6284806", "text": "@Override\r\n public void startEdit() {\r\n super.startEdit();\r\n \r\n //verifica se possui texto na celula\r\n if(textField == null) {\r\n createTextField(); //caso nao tenha, se cria\r\n }\r\n \r\n setText(null);\r\n setGraphic(textField);\r\n textField.selectAll();\r\n }", "title": "" }, { "docid": "8b2a30cb57b066e6bcb73d9fe54647aa", "score": "0.62738013", "text": "public void cleanText() {\n doctorView.getSearchTextField().setText(\"\");\n doctorView.getNameTextField().setText(\"\");\n doctorView.getComboBox().setSelectedItem(\"\");\n LOGGER.log(Level.INFO, \"Clean text\");\n }", "title": "" }, { "docid": "0a81ac3e47f8e0e8efb13adcfdff2b46", "score": "0.6268051", "text": "private void setFields()\n {\n nameField.setText(employee.getNome());\n addressField.setText(employee.getMorada());\n \n LocalDate localDate = getLocalDateFromDate(employee.getDatanascimento());\n birthdayDate.setValue(localDate);\n birthdayDate.setStyle(\"-fx-opacity: 1;\");\n \n String gender = getGenderFullName((employee.getSexo()));\n genderBox.setValue(gender);\n genderBox.setStyle(\"-fx-opacity: 1;\");\n \n String typeText = getTypeFullName(employee.isTipo());\n typeBox.setValue(typeText);\n typeBox.setStyle(\"-fx-opacity: 1;\");\n \n String activeText = getActiveFullText(employee.isActivo());\n activeBox.setValue(activeText);\n activeBox.setStyle(\"-fx-opacity: 1;\");\n \n if(employee.getHorario() != null)\n {\n List<HorarioBLL> employeeSchedule = HorarioService.getHelperList(\"FROM Horario WHERE idhorario = \" + employee.getHorario().getIdhorario());\n HorarioBLL schedule = employeeSchedule.get(0);\n\n firstEntranceField.setText( getDateTime(schedule.getHoraprimeiraentrada()) );\n firstExitField.setText( getDateTime(schedule.getHoraprimeirasaida()) );\n secondEntranceField.setText( getDateTime(schedule.getHorasegundaentrada()) );\n secondExitField.setText( getDateTime(schedule.getHorasegundasaida()) );\n }\n }", "title": "" }, { "docid": "a09f87938ffddf4d12ee3159f32ad038", "score": "0.6252627", "text": "public void setText(String text) { this.text = text; }", "title": "" }, { "docid": "d99b77c8ea3b12d926b58da9ee97f254", "score": "0.62518287", "text": "public admin() {\n initComponents();\n filltextfield();\n }", "title": "" }, { "docid": "cfe4c9745826f96c937d7db3c68dd025", "score": "0.6249575", "text": "private void initText() {\n\t}", "title": "" }, { "docid": "f091dc046d01d59424897ceb2e8122bc", "score": "0.6246838", "text": "public void clearTextFields() {\n hotelComboBox.setSelectedIndex(0);\n cityComboBox.setSelectedIndex(0);\n }", "title": "" }, { "docid": "316959d07a936404f314b049986a8b90", "score": "0.624538", "text": "private void setupComponents() {\n //Details\n txtResult.setEditable(false); //Let the result text bar be read only\n \n txtResult.setHorizontalAlignment(JTextField.RIGHT); //Text will come from RIGHT now!\n txtResult.setText(\"0\"); //Default 0\n txtResult.setFont(new Font(\"Arial\", Font.PLAIN, 20)); //Set text font\n\n txtResult.setBorder(new LineBorder(Color.BLACK)); //Let this textfield be more obvious\n txtResult.setBackground(Color.WHITE); //Same as up\n\n //Listener\n btn0.addActionListener(e -> addCharToTextfield('0'));\n btn1.addActionListener(e -> addCharToTextfield('1'));\n btn2.addActionListener(e -> addCharToTextfield('2'));\n btn3.addActionListener(e -> addCharToTextfield('3'));\n btn4.addActionListener(e -> addCharToTextfield('4'));\n btn5.addActionListener(e -> addCharToTextfield('5'));\n btn6.addActionListener(e -> addCharToTextfield('6'));\n btn7.addActionListener(e -> addCharToTextfield('7'));\n btn8.addActionListener(e -> addCharToTextfield('8'));\n btn9.addActionListener(e -> addCharToTextfield('9'));\n btnDot.addActionListener(e -> addCharToTextfield('.'));\n\n btnPlus.addActionListener(e -> operatorClicked('+'));\n btnSub.addActionListener(e -> operatorClicked('-'));\n btnMul.addActionListener(e -> operatorClicked('*'));\n btnDiv.addActionListener(e -> operatorClicked('/'));\n\n btnClear.addActionListener(e -> clearTextField());\n\n btnEqual.addActionListener(e -> caculateTheResult());\n }", "title": "" }, { "docid": "363dc39cd16e0c260976cf6109830d74", "score": "0.6244601", "text": "void reset(){\n \n NewspaperComboBox.setSelectedItem(\"\");\n Langfield.setText(\"\");\n Pricefield.setText(\"\");\n \n \n }", "title": "" }, { "docid": "92e9fe384fa48f140131cabc25501cf9", "score": "0.6238863", "text": "public void editarCuadrosTexto(){\r\n\t\t//editamos los campos\r\n\t\ttextFieldCodDepart.setEditable(true);\r\n\t\ttextFieldDepartamento.setEditable(true);\r\n\t\ttextFieldLocalidad.setEditable(true);\r\n\t}", "title": "" }, { "docid": "9faaf1aba5293346fc998fe08c04cd10", "score": "0.62306565", "text": "@Override\r\n\tpublic void setTextFieldString(String value) {\n\r\n\t}", "title": "" }, { "docid": "94cad31e39b40feb1f07bd3b241e2d18", "score": "0.62158364", "text": "public void CamposVacios(){\n txt_NombreNuevoUsuario.setText(\"\");\n txt_ApellidoPaternoNuevoUsuario.setText(\"\");\n txt_ApellidoMaternoNuevoUsuario.setText(\"\");\n txt_LoginNuevoUsuario.setText(\"\");\n txt_PasswordNuevoUsuario.setText(\"\");\n cmb_CargoNuevoUsuario.setSelectedIndex(0);\n \n \n }", "title": "" }, { "docid": "fa76f5d65bd5d353f968d35c82d62421", "score": "0.6210663", "text": "private void setContentForUpdate() {\n controlrat.setSelection(array[0]);\n controlcockroach.setSelection(array[1]);\n controlhousefly.setSelection(array[2]);\n controlmqt.setSelection(array[3]);\n controlinsectdisease.setSelection(array[4]);\n nearhouse.setText(checkEditText(array[5]));\n }", "title": "" }, { "docid": "cdcfd4f959669ce3d18f7c8673deac6d", "score": "0.6204229", "text": "private void updateComboText(Combo cmb, Text txt, String sel) {\n\n // Use the current selection on the Combo if no selection is provided.\n if (sel == null) {\n sel = cmb.getText();\n }\n\n // Update the Text.\n txt.setText(sel);\n\n // Update the Combo selection.\n int index = -1;\n boolean found = false;\n for (String str : cmb.getItems()) {\n if (str.equals(sel)) {\n found = true;\n break;\n }\n\n index++;\n }\n\n if (found) {\n cmb.select(index + 1);\n if (sel.equalsIgnoreCase(\"Other\")) {\n txt.setText(\"\");\n txt.setEnabled(true);\n } else {\n txt.setEnabled(false);\n }\n } else {\n cmb.select(cmb.getItemCount() - 1);\n txt.setEnabled(true);\n }\n\n }", "title": "" }, { "docid": "1225293c1be1be80d770ec1e08c5f963", "score": "0.61925834", "text": "public void LimpiarCampos(){\n txtNombre.setText(\"\");\n txtPass.setText(\"\");\n cmbRol.setSelectedIndex(0);\n this.IDactual=0;\n this.modo=\"agregar\";\n }", "title": "" }, { "docid": "d70b265d8f3b8e59ae74154b50cd970a", "score": "0.61710805", "text": "private void resetTextBox() {\n enterPartName.setText(\"\");\n enterPartDesc.setText(\"\");\n enterPartQuantity.setText(\"\");\n enterPartCost.setText(\"\");\n\n }", "title": "" }, { "docid": "cafbacee28e9e866fb3380842a94c3ce", "score": "0.6168166", "text": "private void resetTextFields() {\r\n\t\tkeyField.setText(\"\");\r\n\t\tmessageField.setText(\"\");\r\n\t}", "title": "" }, { "docid": "1c921dff119a457511e6c6b487228a8e", "score": "0.61677074", "text": "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 500, 400);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"NAME\");\r\n\t\tlblNewLabel.setBounds(10, 11, 86, 22);\r\n\t\tframe.getContentPane().add(lblNewLabel);\r\n\t\t\r\n\t\tJLabel lblGender = new JLabel(\"GENDER\");\r\n\t\tlblGender.setBounds(10, 44, 46, 14);\r\n\t\tframe.getContentPane().add(lblGender);\r\n\t\t\r\n\t\tJLabel lblDob = new JLabel(\"D.O.B\");\r\n\t\tlblDob.setBounds(10, 69, 46, 14);\r\n\t\tframe.getContentPane().add(lblDob);\r\n\t\t\r\n\t\tJLabel lblNewLabel_1 = new JLabel(\"AGE\");\r\n\t\tlblNewLabel_1.setBounds(10, 94, 46, 14);\r\n\t\tframe.getContentPane().add(lblNewLabel_1);\r\n\t\t\r\n\t\tJLabel lblQualification = new JLabel(\"QUALIFICATION\");\r\n\t\tlblQualification.setBounds(10, 119, 46, 14);\r\n\t\tframe.getContentPane().add(lblQualification);\r\n\t\t\r\n\t\ttextField = new JTextField();\r\n\t\ttextField.setBounds(128, 12, 86, 20);\r\n\t\tframe.getContentPane().add(textField);\r\n\t\ttextField.setColumns(10);\r\n\t\t\r\n\t\tJRadioButton rdbtnNewRadioButton = new JRadioButton(\"Male\\r\\n\");\r\n\t\trdbtnNewRadioButton.setBounds(124, 40, 53, 23);\r\n\t\tframe.getContentPane().add(rdbtnNewRadioButton);\r\n\t\t\r\n\t\tJRadioButton rdbtnNewRadioButton_1 = new JRadioButton(\"Female\");\r\n\t\trdbtnNewRadioButton_1.setBounds(175, 40, 59, 23);\r\n\t\tframe.getContentPane().add(rdbtnNewRadioButton_1);\r\n\t\t\r\n\t\tJComboBox comboBox = new JComboBox();\r\n\t\tcomboBox.setModel(new DefaultComboBoxModel(new String[] {\"1\", \"2\", \"3\", \"4\", \"5\", \"6\"}));\r\n\t\tcomboBox.setBounds(128, 66, 49, 20);\r\n\t\tframe.getContentPane().add(comboBox);\r\n\t\t\r\n\t\tJComboBox comboBox_1 = new JComboBox();\r\n\t\tcomboBox_1.setBounds(185, 66, 49, 20);\r\n\t\tframe.getContentPane().add(comboBox_1);\r\n\t\t\r\n\t\tJComboBox comboBox_2 = new JComboBox();\r\n\t\tcomboBox_2.setBounds(244, 66, 73, 20);\r\n\t\tframe.getContentPane().add(comboBox_2);\r\n\t\t\r\n\t\ttextField_1 = new JTextField();\r\n\t\ttextField_1.setBounds(128, 91, 49, 20);\r\n\t\tframe.getContentPane().add(textField_1);\r\n\t\ttextField_1.setColumns(10);\r\n\t\t\r\n\t\tJComboBox comboBox_3 = new JComboBox();\r\n\t\tcomboBox_3.setBounds(128, 116, 86, 20);\r\n\t\tframe.getContentPane().add(comboBox_3);\r\n\t\t\r\n\t\tJLabel label = new JLabel(\"\");\r\n\t\tlabel.setBounds(10, 144, 46, 14);\r\n\t\tframe.getContentPane().add(label);\r\n\t\t\r\n\t\tJButton btnSubmit = new JButton(\"Submit\");\r\n\t\tbtnSubmit.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnSubmit.setBounds(69, 189, 89, 23);\r\n\t\tframe.getContentPane().add(btnSubmit);\r\n\t}", "title": "" }, { "docid": "24e54a575ea18421a02bc42f946f1e28", "score": "0.6145549", "text": "private void rbItauActionPerformed(java.awt.event.ActionEvent evt) {\n txtCarteira.setText(\"112\");\n txtAgencia.setText(\"341\");\n txtDigitoAgencia.setText(\"1\");\n txtSacado.requestFocusInWindow();\n }", "title": "" }, { "docid": "ec56fae64b5694f21c2a61e4590d59b2", "score": "0.6143099", "text": "public void setText(final String text) {\n\t\tthis.textField.setText(text);\n\t}", "title": "" }, { "docid": "e4dabf9e70f624fdb2014f17eb7a8b6c", "score": "0.6137413", "text": "private void initComponents() {\n\n criteriaCombo = new javax.swing.JComboBox();\n pkText = new javax.swing.JTextField();\n detailsLabel = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n presentSharesText = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n newSharesText = new javax.swing.JTextField();\n amoutText = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n\n setClosable(true);\n org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(bankingapp.BankingApp.class).getContext().getResourceMap(SharesAdd.class);\n setTitle(resourceMap.getString(\"Form.title\")); // NOI18N\n setName(\"Form\"); // NOI18N\n\n criteriaCombo.setFont(resourceMap.getFont(\"criteriaCombo.font\")); // NOI18N\n criteriaCombo.setModel(new DefaultComboBoxModel(UserTypeComboItem.constructMenuItem()));\n criteriaCombo.setName(\"criteriaCombo\"); // NOI18N\n\n pkText.setFont(resourceMap.getFont(\"pkText.font\")); // NOI18N\n pkText.setName(\"pkText\"); // NOI18N\n pkText.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n pkTextActionPerformed(evt);\n }\n });\n pkText.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n pkTextKeyReleased(evt);\n pkTextKeyReleased1(evt);\n }\n });\n\n detailsLabel.setName(\"detailsLabel\"); // NOI18N\n\n jButton1.setFont(resourceMap.getFont(\"jLabel1.font\")); // NOI18N\n jButton1.setText(resourceMap.getString(\"jButton1.text\")); // NOI18N\n jButton1.setName(\"jButton1\"); // NOI18N\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel1.setFont(resourceMap.getFont(\"jLabel1.font\")); // NOI18N\n jLabel1.setText(resourceMap.getString(\"jLabel1.text\")); // NOI18N\n jLabel1.setName(\"jLabel1\"); // NOI18N\n\n presentSharesText.setEditable(false);\n presentSharesText.setFont(resourceMap.getFont(\"jLabel1.font\")); // NOI18N\n presentSharesText.setText(resourceMap.getString(\"presentSharesText.text\")); // NOI18N\n presentSharesText.setName(\"presentSharesText\"); // NOI18N\n\n jLabel2.setFont(resourceMap.getFont(\"jLabel1.font\")); // NOI18N\n jLabel2.setText(resourceMap.getString(\"jLabel2.text\")); // NOI18N\n jLabel2.setName(\"jLabel2\"); // NOI18N\n\n newSharesText.setFont(resourceMap.getFont(\"jLabel1.font\")); // NOI18N\n newSharesText.setText(resourceMap.getString(\"newSharesText.text\")); // NOI18N\n newSharesText.setName(\"newSharesText\"); // NOI18N\n\n amoutText.setFont(resourceMap.getFont(\"jLabel1.font\")); // NOI18N\n amoutText.setText(resourceMap.getString(\"amoutText.text\")); // NOI18N\n amoutText.setName(\"amoutText\"); // NOI18N\n\n jLabel3.setFont(resourceMap.getFont(\"jLabel1.font\")); // NOI18N\n jLabel3.setText(resourceMap.getString(\"jLabel3.text\")); // NOI18N\n jLabel3.setName(\"jLabel3\"); // NOI18N\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(87, 87, 87)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel2)\n .addComponent(jLabel1)\n .addComponent(criteriaCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(pkText, javax.swing.GroupLayout.DEFAULT_SIZE, 136, Short.MAX_VALUE)\n .addGap(50, 50, 50)\n .addComponent(detailsLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(107, 107, 107))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(newSharesText, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(presentSharesText, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 40, Short.MAX_VALUE))\n .addContainerGap())\n .addGroup(layout.createSequentialGroup()\n .addComponent(amoutText, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())))\n .addGroup(layout.createSequentialGroup()\n .addGap(198, 198, 198)\n .addComponent(jButton1)\n .addContainerGap(389, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(34, 34, 34)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(pkText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(detailsLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(criteriaCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(presentSharesText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(41, 41, 41)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(newSharesText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(32, 32, 32)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(amoutText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addGap(64, 64, 64)\n .addComponent(jButton1)\n .addContainerGap(43, Short.MAX_VALUE))\n );\n\n pack();\n }", "title": "" }, { "docid": "0950c8031c8414eefa103651223aa800", "score": "0.61318654", "text": "private void saveInput() {\n frmFld.label = txtLabel.getText();\n frmFld.control = comboControl.getSelectionIndex();\n }", "title": "" }, { "docid": "79a303d29b5cbb2900375edeb0a0b03f", "score": "0.61274415", "text": "private void setSavingsAccountTextFields() {\n\n if (\n (aNumber.getText().matches(\"[0-9]+\"))\n\n ) {\n int i = 0;\n try {\n account.setAccountNumber(Integer.parseInt(aNumber.getText()));\n } catch (NumberFormatException nme) {\n JOptionPane.showMessageDialog(null, \"Invalid account number\");\n i = -1;\n }\n String s = ((JTextField)dateChooser.getDateEditor().getUiComponent()).getText();\n if (s.equals(\"\")){\n JOptionPane.showMessageDialog(null, \"pick a date\");\n i = -1;\n }else {\n try {\n account.setDateOpened(dateChange(dateChooser));\n } catch (IllegalArgumentException nme) {\n JOptionPane.showMessageDialog(null, \"Invalid Date\");\n }\n }\n try {\n account.setAccountOwner(aOwner.getText());\n } catch (NumberFormatException nme) {\n JOptionPane.showMessageDialog(null, \"Invalid account name\");\n i = -1;\n }\n try {\n account.setAccountBalance(Double.parseDouble(aBal.getText()));\n } catch (NumberFormatException nme) {\n JOptionPane.showMessageDialog(null, \"Invalid account balance\");\n i = -1;\n }\n try {\n ((SavingsAccount) account).setMinBalance(Double.parseDouble(mBal.getText()));\n } catch (NumberFormatException nme) {\n JOptionPane.showMessageDialog(null, \"Invalid minimum balance\");\n i = -1;\n }\n try {\n ((SavingsAccount) account).setInterestRate(Double.parseDouble(iRate.getText()));\n } catch (NumberFormatException nme) {\n JOptionPane.showMessageDialog(null, \"Invalid interest rate\");\n i = -1;\n }\n if (i != -1) {\n if ((account.number < 0) ||\n ((account.number + \"\").length() > 10)) {\n\n JOptionPane.showMessageDialog(null, \"Invalid account number length of 10 digits and positive!\");\n\n } else {\n\n if (account.balance < 0) {\n\n JOptionPane.showMessageDialog(null, \"account balance needs to be positive!\");\n } else {\n\n if(((SavingsAccount) account).interestRate<0){\n\n JOptionPane.showMessageDialog(null, \"Interest rate needs to be positive!\");\n }else {\n\n if((((SavingsAccount) account).minBalance<0)||\n (((SavingsAccount) account).minBalance>account.balance)){\n JOptionPane.showMessageDialog(null, \"Min Balance needs to be positive and less than the account Balance!\");\n }else {\n bankModel.addAccount(account);\n //still need to fix gregorian calendar\n }\n }\n }\n }\n }\n }\n }", "title": "" }, { "docid": "7d76e1a46c2d221afa6360b6a6b6b433", "score": "0.61160755", "text": "public CostSharingEditor() {\r\n cmbType = new CoeusComboBox();\r\n txtComponent = new CoeusTextField();\r\n //Added COEUSDEV-415 : Award Cost sharing window - CS type does not stick for first row - Start\r\n txtAccountNumber = new CoeusTextField();\r\n //COEUSDEV-415 : End\r\n txtCurrency = new DollarCurrencyTextField();\r\n txtCurrency = new DollarCurrencyTextField(12,DollarCurrencyTextField.RIGHT,true);\r\n txtPercentage = new CurrencyField();\r\n \r\n }", "title": "" }, { "docid": "a7883098820dd15910ed7ace246e664e", "score": "0.61054367", "text": "private void setTextHints() {\n\tif(Utils.getUserSettings(mContext, Constants.SERVER) !=null){\n\t et_hostname.setText(Utils.getUserSettings(mContext, Constants.SERVER));\n\t et_hostname.setHint(Utils.getUserSettings(mContext, Constants.SERVER));\n\t}\n\tif(Utils.getUserSettings(mContext, Constants.USER) !=null){\n\t et_user.setText(Utils.getUserSettings(mContext, Constants.USER));\n\t et_user.setHint(Utils.getUserSettings(mContext, Constants.USER));\n\t}\n\tif(Utils.getUserSettings(mContext, Constants.USER) !=null){\n\t et_pass.setText(Utils.getUserSettings(mContext, Constants.PW));\n\t et_pass.setHint(Utils.getUserSettings(mContext, Constants.PW));\n\t}\n\tif(Utils.getUserSettings(mContext, Constants.FOLDER) !=null){\n\t et_folder.setText(Utils.getUserSettings(mContext, Constants.FOLDER));\n\t et_folder.setHint(Utils.getUserSettings(mContext, Constants.FOLDER));\n\t}\n\n }", "title": "" }, { "docid": "1bd92e8ccc9468ab1a657b86ded39220", "score": "0.61030644", "text": "@Override\n public void setText(String text) {\n\n }", "title": "" }, { "docid": "993081d0734a844e752d333a5b55bdd6", "score": "0.6094715", "text": "private void resetFields() {\r\n\t\tname.setText(\"\");\r\n\t\tcategory.setText(\"\");\r\n\t\ttype.setText(\"\");\r\n\t}", "title": "" }, { "docid": "a95a0c69d11d6941730fad4fe7ee65b1", "score": "0.6091116", "text": "private void prepareTextAndPasswordFields() {\n nickField = new TextField(lang.get(\"register.textFieldsContent.nickField\"));\n emailField = new TextField(lang.get(\"register.textFieldsContent.emailField\"));\n passwordField = new PasswordField();\n confirmPasswordField = new PasswordField();\n }", "title": "" }, { "docid": "1a568ad4df7d72ce3f89982262488d8e", "score": "0.60877347", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttextField.setText(\" \");\n\t\t\t\ttextField_1.setText(\" \");\n\t\t\t\ttextField_2.setText(\" \");\n\t\t\t\ttextField_3.setText(\" \");\n\t\t\t}", "title": "" }, { "docid": "ec52fb22811cdb409578c584daaad75f", "score": "0.60820657", "text": "public void fillFieldValues() {\n kValue = new JTextField(\"\" + wta.getK());\n }", "title": "" }, { "docid": "4cf8d762f2dacf7ea2d204483b101097", "score": "0.60731494", "text": "public void azzeraCampi() {\n nome.setText(\"\");\n kcal.setText(\"\");\n gruppo.setSelectedIndex(0);\n portata.setSelectedIndex(0);\n allergia.setSelectedIndex(0);\n compatibilita.setSelectedIndex(0);\n }", "title": "" }, { "docid": "f0974d675054f5001367dfd93228576d", "score": "0.60678303", "text": "private void initContent() {\n namePatternField.setText(namePattern != null ? namePattern : \"\");\n namePatternField.addModifyListener(new ModifyListener() {\n public void modifyText(ModifyEvent e) {\n namePattern = namePatternField.getText();\n }\n });\n\n locationPatternField.setText(locationPattern != null ? locationPattern : \"\");\n locationPatternField.addModifyListener(new ModifyListener() {\n public void modifyText(ModifyEvent e) {\n locationPattern = locationPatternField.getText();\n }\n });\n\n FavoriteItemType[] allTypes = FavoriteItemType.getTypes();\n for (int i = 0; i < allTypes.length; i++) {\n FavoriteItemType eachType = allTypes[i];\n if (eachType == FavoriteItemType.UNKNOWN)\n continue;\n Button button = typeFields.get(eachType);\n button.setSelection(selectedTypes.contains(eachType));\n }\n }", "title": "" }, { "docid": "03aecfd70ebca9d3a0717864af89259f", "score": "0.6061702", "text": "public void setTextField(TextField textfield) {\n\t\tthis.textfield = textfield;\n\t}", "title": "" }, { "docid": "8b343cded0c36e69a96d85866f3a3eab", "score": "0.6061327", "text": "void clearTextFields()\n {\n txtfname.setText(\"\");\n txtlname.setText(\"\");\n txtnic.setText(\"\");\n txtaddress.setText(\"\");\n txtcontact.setText(\"\");\n\n txtusername.setText(\"\");\n txtemail.setText(\"\");\n txtpassword.setText(\"\");\n \n //Curser position move to Cashier ID text field\n lblCashierID.requestFocus();\n }", "title": "" }, { "docid": "4ab654969054985a970f4cfce4a6f587", "score": "0.6057916", "text": "public void setText(String text);", "title": "" }, { "docid": "4ab654969054985a970f4cfce4a6f587", "score": "0.6057916", "text": "public void setText(String text);", "title": "" }, { "docid": "4ab654969054985a970f4cfce4a6f587", "score": "0.6057916", "text": "public void setText(String text);", "title": "" }, { "docid": "e4afa4e6ed72e1fd6ba1468cb79e5a96", "score": "0.6056206", "text": "private void clearFields(){\n fieldName.setText(\"\");\n fieldSurname.setText(\"\");\n choiceBoxPeriod.setValue(null);\n choiceBoxTitleStudy.setValue(null);\n }", "title": "" }, { "docid": "6b24aebcaed26cc01057babe709f9871", "score": "0.6042289", "text": "private void showTextPanel()\n {\n dayComboBox.setVisible(false);\n monthComboBox.setVisible(false);\n yearComboBox.setVisible(false);\n searchTextField.setVisible(true);\n }", "title": "" }, { "docid": "a9cd202a552f013200a816f552c8c594", "score": "0.6036209", "text": "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 450, 515);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\ttf1 = new JTextField();\r\n\t\ttf1.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyReleased(KeyEvent arg0) {\r\n\t\t\t\ttf2.setText(tf1.getText());\r\n\t\t\t}\r\n\t\t});\r\n\t\ttf1.setBounds(85, 47, 86, 20);\r\n\t\tframe.getContentPane().add(tf1);\r\n\t\ttf1.setColumns(10);\r\n\t\t\r\n\t\ttf2 = new JTextField();\r\n\t\t\r\n\t\ttf2.setBounds(85, 145, 86, 20);\r\n\t\tframe.getContentPane().add(tf2);\r\n\t\ttf2.setColumns(10);\r\n\t\t\r\n\t\tJLabel Textbox1 = new JLabel(\"Text1\");\r\n\t\tTextbox1.setBounds(29, 50, 46, 14);\r\n\t\tframe.getContentPane().add(Textbox1);\r\n\t\t\r\n\t\tlblText = new JLabel(\"Text2\");\r\n\t\tlblText.setBounds(29, 148, 46, 14);\r\n\t\tframe.getContentPane().add(lblText);\r\n\t\t\r\n\t\tJButton btnNewButton = new JButton(\"Exit\");\r\n\t\tbtnNewButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t\r\n\t\t\t\ttf2.setText(\"Hello\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton.setBounds(183, 214, 89, 23);\r\n\t\tframe.getContentPane().add(btnNewButton);\r\n\t\t\r\n\t\ttf3 = new JTextField();\r\n\t\ttf3.addFocusListener(new FocusAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void focusGained(FocusEvent arg0) {\r\n\t\t\t\ttf4.setText(\"Focus Gained\");\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic void focusLost(FocusEvent arg0) {\r\n\t\t\t\ttf4.setText(\"Focus Lost\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\ttf3.setBounds(299, 47, 86, 20);\r\n\t\tframe.getContentPane().add(tf3);\r\n\t\ttf3.setColumns(10);\r\n\t\t\r\n\t\ttf4 = new JTextField();\r\n\t\ttf4.setBounds(299, 145, 86, 20);\r\n\t\tframe.getContentPane().add(tf4);\r\n\t\ttf4.setColumns(10);\r\n\t\t\r\n\t\tlblNewLabel = new JLabel(\"Text4\");\r\n\t\tlblNewLabel.setBounds(220, 148, 46, 14);\r\n\t\tframe.getContentPane().add(lblNewLabel);\r\n\t\t\r\n\t\tlblText_1 = new JLabel(\"Text3\");\r\n\t\tlblText_1.setBounds(220, 50, 46, 14);\r\n\t\tframe.getContentPane().add(lblText_1);\r\n\t\t\r\n\t\ttf5 = new JTextField();\r\n\t\ttf5.addFocusListener(new FocusAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void focusGained(FocusEvent arg0) {\r\n\t\t\t\ttf5.setEnabled(false);\r\n\t\t\t\ttf6.setEnabled(true);\r\n\t\t\t}\t\t\r\n\t\t});\r\n\t\t\r\n\t\ttf5.setBounds(61, 295, 86, 20);\r\n\t\tframe.getContentPane().add(tf5);\r\n\t\ttf5.setColumns(10);\r\n\t\t\r\n\t\ttf6 = new JTextField();\r\n\t\ttf6.addFocusListener(new FocusAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void focusGained(FocusEvent arg0) {\r\n\t\t\t\ttf6.setEnabled(false);\r\n\t\t\t\ttf5.setEnabled(true);\r\n\t\t\t}\t\t\r\n\t\t});\r\n\t\t\r\n\t\t\r\n\t\ttf6.setBounds(61, 396, 86, 20);\r\n\t\tframe.getContentPane().add(tf6);\r\n\t\ttf6.setColumns(10);\r\n\t}", "title": "" }, { "docid": "edb553b06a558a84438798f21706b84e", "score": "0.60339427", "text": "void setText(String text);", "title": "" }, { "docid": "cec53107f0e2ed720ebccc0363da3ecf", "score": "0.6031086", "text": "private void setQuestionTextBox(){\n EditText questionEdit = (EditText)findViewById(R.id.question_edit);\n String question = mDeckInfo.getQuestion();\n questionEdit.setText(question);\n }", "title": "" }, { "docid": "d45905def9f2e8115124d936d117120a", "score": "0.6025347", "text": "private void setTextFields() {\n mVideoTitle.setText(\"\");\n mVideoTags.setText(\"\");\n mVideoDescription.setText(\"\");\n }", "title": "" }, { "docid": "d9bdbe2781e1d9218721f744e997ba34", "score": "0.6009946", "text": "void setTxtAccount(String text) {\n txtAccount.setText(text);\n }", "title": "" }, { "docid": "f485c12728cbb5d0fe11cd82a850d248", "score": "0.6004361", "text": "public void setNameText(String text) {\n nameText.setText(text);\n }", "title": "" }, { "docid": "43fe04710da9877348a247adff7651a5", "score": "0.60039747", "text": "public JuegoDelGato() {\n initComponents();\n \n \n txtJu1.setText(\"Es tu turno\");\n txtJu2.setText(\"Espera\");\n \n \n \n \n \n \n }", "title": "" }, { "docid": "0045df2bf59a91188415b32b58758383", "score": "0.6003736", "text": "private void setTextBoxListeners() {\n textBoxes.add(tfDatabasePath);\n textBoxes.add(tbDbHostname);\n textBoxes.add(tbDbPort);\n // textBoxes.add(tbDbName);\n textBoxes.add(tbDbUsername);\n textBoxes.add(jpDbPassword);\n addDocumentListeners(textBoxes, textBoxChangedListener);\n }", "title": "" }, { "docid": "50ad6127bdb2412dd9182d70ed08dddf", "score": "0.60000753", "text": "private void setText(String t) {\n txt += t;//<Si presionas un nuevo numero, lo concatena a lo anterior\n text.setText(txt);//<Coloca el nuevo numero en el textField\n }", "title": "" }, { "docid": "cc1814fafc2d5cd704a567168ae00e38", "score": "0.59967226", "text": "public void setText(String text)\n {\n // get the last element waiting longest for a text and set it\n int index = processingTextFields.remove(0);\n changeText(index, text);\n }", "title": "" }, { "docid": "7e3ccdbb169d1872285dd9c4d4da819e", "score": "0.59942967", "text": "public void setText(String text){\n this.text = text;\n }", "title": "" }, { "docid": "a6ffcb2d3610f5fc5d83e84607df0625", "score": "0.5993604", "text": "private void initComponents() {\n label1 = new JLabel();\n label2 = new JLabel();\n idTextField = new JTextField();\n label3 = new JLabel();\n label4 = new JLabel();\n useTypeComboBox = new JComboBox();\n button1 = new JButton();\n button2 = new JButton();\n passwordField = new JPasswordField();\n\n //======== this ========\n setTitle(\"\\u6559\\u52a1\\u7ba1\\u7406\\u7cfb\\u7edf\");\n Container contentPane = getContentPane();\n\n //---- label1 ----\n label1.setText(\"\\u6559 \\u52a1 \\u7ba1 \\u7406 \\u7cfb \\u7edf\");\n label1.setFont(new Font(\"Microsoft YaHei UI\", Font.PLAIN, 24));\n\n //---- label2 ----\n label2.setText(\"\\u8d26\\u53f7\\uff1a\");\n label2.setFont(new Font(\"Microsoft YaHei UI\", Font.PLAIN, 16));\n\n //---- idTextField ----\n idTextField.setFont(new Font(\"Microsoft YaHei UI\", Font.PLAIN, 16));\n\n //---- label3 ----\n label3.setText(\"\\u5bc6\\u7801\\uff1a\");\n label3.setFont(new Font(\"Microsoft YaHei UI\", Font.PLAIN, 16));\n\n //---- label4 ----\n label4.setText(\"\\u7528\\u6237\\uff1a\");\n label4.setFont(new Font(\"Microsoft YaHei UI\", Font.PLAIN, 16));\n\n //---- useTypeComboBox ----\n useTypeComboBox.setFont(new Font(\"Microsoft YaHei UI\", Font.PLAIN, 16));\n\n //---- button1 ----\n button1.setText(\"\\u767b \\u5f55\");\n button1.setFont(new Font(\"Microsoft YaHei UI\", Font.PLAIN, 16));\n button1.addActionListener(e -> loginButton1ActionPerformed(e));\n\n //---- button2 ----\n button2.setText(\"\\u91cd \\u7f6e\");\n button2.setFont(new Font(\"Microsoft YaHei UI\", Font.PLAIN, 16));\n button2.addActionListener(e -> clearAllButton2ActionPerformed(e));\n\n //---- passwordField ----\n passwordField.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 16));\n\n GroupLayout contentPaneLayout = new GroupLayout(contentPane);\n contentPane.setLayout(contentPaneLayout);\n contentPaneLayout.setHorizontalGroup(\n contentPaneLayout.createParallelGroup()\n .addGroup(contentPaneLayout.createSequentialGroup()\n .addGroup(contentPaneLayout.createParallelGroup()\n .addGroup(contentPaneLayout.createSequentialGroup()\n .addGap(177, 177, 177)\n .addComponent(label1))\n .addGroup(contentPaneLayout.createSequentialGroup()\n .addGap(123, 123, 123)\n .addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.LEADING, false)\n .addGroup(contentPaneLayout.createSequentialGroup()\n .addComponent(label3)\n .addGap(18, 18, 18)\n .addComponent(passwordField))\n .addGroup(contentPaneLayout.createSequentialGroup()\n .addComponent(label2)\n .addGap(18, 18, 18)\n .addComponent(idTextField, GroupLayout.PREFERRED_SIZE, 193, GroupLayout.PREFERRED_SIZE))\n .addGroup(contentPaneLayout.createSequentialGroup()\n .addComponent(label4)\n .addGap(18, 18, 18)\n .addComponent(useTypeComboBox))\n .addGroup(GroupLayout.Alignment.TRAILING, contentPaneLayout.createSequentialGroup()\n .addComponent(button1, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)\n .addGap(30, 30, 30)\n .addComponent(button2, GroupLayout.PREFERRED_SIZE, 107, GroupLayout.PREFERRED_SIZE)))))\n .addContainerGap(171, Short.MAX_VALUE))\n );\n contentPaneLayout.setVerticalGroup(\n contentPaneLayout.createParallelGroup()\n .addGroup(contentPaneLayout.createSequentialGroup()\n .addGap(63, 63, 63)\n .addComponent(label1)\n .addGap(36, 36, 36)\n .addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n .addComponent(label2)\n .addComponent(idTextField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n .addGap(32, 32, 32)\n .addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n .addComponent(label3)\n .addComponent(passwordField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n .addGap(33, 33, 33)\n .addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n .addComponent(label4)\n .addComponent(useTypeComboBox, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n .addGap(44, 44, 44)\n .addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n .addComponent(button1)\n .addComponent(button2))\n .addContainerGap(39, Short.MAX_VALUE))\n );\n pack();\n setLocationRelativeTo(getOwner());\n // JFormDesigner - End of component initialization //GEN-END:initComponents\n }", "title": "" }, { "docid": "4db994b6b8354a2cb58e3d904e1b2c7f", "score": "0.5989937", "text": "private void cleanFields(){\n\n company.setText(\"\");\n email.setText(\"\");\n landline.setText(\"\");\n cell.setText(\"\");\n city.setText(\"\");\n address.setText(\"\");\n customerNumber.setText(\"-1\");\n erpNumber.setText(\"-1\");\n }", "title": "" }, { "docid": "7b49fb34be55e00ec3c7c444e11b7415", "score": "0.59898245", "text": "public void updateText() {\n if(subMoney) {\n title.setText(R.string.spendingTitleValue);\n plusOrMinus.setText(R.string.spendValue);\n }\n else {\n title.setText(R.string.incomeValue);\n plusOrMinus.setText(R.string.notSpendValue);\n }\n\n if(necessity)\n necOrDesire.setText(R.string.necessityValue);\n else\n necOrDesire.setText(R.string.notNecessityValue);\n }", "title": "" }, { "docid": "1c525ccc8d7b508ca5ef91a84e043549", "score": "0.5987538", "text": "private void clearTextFields() {\n aOwner.setText(\"\");\n aNumber.setText(\"\");\n mBal.setText(\"\");\n mFee.setText(\"\");\n ((JTextField)dateChooser.getDateEditor().getUiComponent()).setText(\"\");\n //dateOpened.setText(\"\");\n iRate.setText(\"\");\n aBal.setText(\"\");\n }", "title": "" }, { "docid": "f24f0120daf24a417b6a315f9df5b934", "score": "0.59864604", "text": "public void clearTextFields()\n {\n itemDetails.setText(\"\");\n itemName.setText(\"\");\n itemCategory.setText(\"\");\n itemQuantity.setText(\"\");\n itemSP.setText(\"\");\n itemIP.setText(\"\");\n }", "title": "" }, { "docid": "c6f2b1daa3d6e07d1d9afe638b546139", "score": "0.59861404", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n sec = new javax.swing.JComboBox();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n ans = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jLabel3 = new javax.swing.JLabel();\n name = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n sec.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n sec.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Whats Your favourite Animal?\", \"Whats Your Favourite Player?\", \"Who is Your Best Friend?\", \"What Do You Like To Eat?\", \"Where did you go last summer?\", \"What is your Favourite Restaurant?\" }));\n\n jLabel1.setText(\"Security Question \");\n\n jLabel2.setText(\"Answer\");\n\n ans.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n jButton1.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jButton1.setText(\"Ok\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jButton2.setText(\"Cant Remember\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jLabel3.setText(\"Account\");\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(61, 61, 61)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 56, Short.MAX_VALUE)\n .addComponent(jButton2)\n .addGap(74, 74, 74))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel2)\n .addComponent(jLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(sec, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(ans)\n .addComponent(name))\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.BASELINE)\n .addComponent(jLabel3)\n .addComponent(name, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(12, 12, 12)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(sec, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addGap(25, 25, 25)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(ans, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, 35, Short.MAX_VALUE)\n .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n\n pack();\n }", "title": "" }, { "docid": "71c53bcd9fa464de51d708423a720c34", "score": "0.598586", "text": "private void createTextField(){\n \n amountLabel = new JLabel(\"Initial Amount\");\n interestRateLabel = new JLabel(\"Annual Interest Rate\");\n numYearsLabel = new JLabel(\"Number Of Years\");\n error = new JLabel(\"\");\n \n final int FIELD_WIDTH = 10;\n amountField = new JTextField(FIELD_WIDTH);\n interestRateField = new JTextField(FIELD_WIDTH);\n numYearsField = new JTextField(FIELD_WIDTH);\n \n }", "title": "" }, { "docid": "aaedd77aac314dbb381b7faa465ef110", "score": "0.5984337", "text": "public void setText(String text){\r\n\t\ttxt = text;\r\n\t}", "title": "" }, { "docid": "78a316799d7cb590992fdbcaa802933a", "score": "0.59828544", "text": "private void setupTextUI(TextField t, String ff, double f, double w, Pos p, double x, double y, boolean e) {\n\t\tt.setFont(Font.font(ff, f));\n\t\tt.setMinWidth(w);\n\t\tt.setMaxWidth(w);\n\t\tt.setAlignment(p);\n\t\tt.setLayoutX(x);\n\t\tt.setLayoutY(y);\n\t\tt.setEditable(e);\n\t}", "title": "" }, { "docid": "48bdd38ba1379508b2778e96e922b4ec", "score": "0.59746253", "text": "protected void fillGUIElements() { \n\n if (m_partToEdit == null) {\n setEnabled(false);\n return;\n }\n \n m_operator.setSelectedItem(m_partToEdit.m_boundOperator.toString());\n m_year.setSelectedItem(numericValueToString(m_partToEdit.m_year)); \n m_month.setSelectedItem(m_partToEdit.getMonthString()); \n m_week_of_yr.setSelectedItem(numericValueToString(m_partToEdit.m_week_of_yr)); \n m_week_of_month.setSelectedItem(numericValueToString(m_partToEdit.m_week_of_month)); \n m_day_of_yr.setSelectedItem(numericValueToString(m_partToEdit.m_day_of_yr)); \n m_day_of_month.setSelectedItem(numericValueToString(m_partToEdit.m_day_of_month)); \n m_day_of_week.setSelectedItem(m_partToEdit.getDayString()); \n m_hour_of_day.setSelectedItem(numericValueToString(m_partToEdit.m_hour_of_day)); \n m_min_of_hour.setSelectedItem(numericValueToString(m_partToEdit.m_min_of_hour)); \n m_second.setSelectedItem(numericValueToString(m_partToEdit.m_second));\n \n /*((SpinnerNumberModel)m_week_of_yr.getModel()).setValue(partToEdit.m_week_of_yr);\n ((SpinnerNumberModel)m_week_of_month.getModel()).setValue(partToEdit.m_week_of_month);\n ((SpinnerNumberModel)m_day_of_yr.getModel()).setValue(partToEdit.m_day_of_yr);\n ((SpinnerNumberModel)m_day_of_month.getModel()).setValue(partToEdit.m_day_of_month); */\n \n /*((SpinnerNumberModel)m_hour_of_day.getModel()).setValue(partToEdit.m_hour_of_day);\n ((SpinnerNumberModel)m_min_of_hour.getModel()).setValue(partToEdit.m_min_of_hour);\n ((SpinnerNumberModel)m_second.getModel()).setValue(partToEdit.m_second); */\n }", "title": "" }, { "docid": "1ac5eeaad3825733dd2b6dc6f0d65aab", "score": "0.59730303", "text": "private void initialize() {\r\n\t\tsetFrame(new JFrame());\r\n\t\tgetFrame().setBounds(100, 100, 800, 500);\r\n\t\tgetFrame().setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tgetFrame().getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"Enter Admin Code :\");\r\n\t\tlblNewLabel.setForeground(new Color(0, 0, 128));\r\n\t\tlblNewLabel.setFont(new Font(\"Times New Roman\", Font.BOLD, 14));\r\n\t\tlblNewLabel.setBounds(107, 73, 126, 24);\r\n\t\tgetFrame().getContentPane().add(lblNewLabel);\r\n\t\t\r\n\t\ttextField = new JTextField();\r\n\t\ttextField.setBounds(278, 77, 220, 19);\r\n\t\tgetFrame().getContentPane().add(textField);\r\n\t\ttextField.setColumns(10);\r\n\t\t\r\n\t\tDisplay_Info();\r\n\t}", "title": "" }, { "docid": "f0b8a163fa5d79f98b0186a44ee0d757", "score": "0.5972326", "text": "public void setText(String text)\n {\n getComponent().setText(text);\n }", "title": "" }, { "docid": "87c12404e4eea62fe21300ae4bd9129c", "score": "0.5969676", "text": "public void setFieldText(String message)\n {\n input.setText(\"\"+message);\n new_amount = true;\n decimal = true;\n }", "title": "" }, { "docid": "7632918eefc622541a3c5c784c76f408", "score": "0.5963405", "text": "private void myInit() {\n \n init_key();\n init_tbl_encoded();\n jPanel1.setVisible(false);\n List<String> datas = new ArrayList();\n int year = FitIn.toInt(DateType.y.format(new Date()));\n for (int i = 1500; i < year + 1; i++) {\n// year += i;\n datas.add(\"\" + i);\n }\n set_book_no();\n jTextField1.grabFocus();\n cb_year.setModel(new ListComboBoxModel(datas));\n cb_year_bap.setModel(new ListComboBoxModel(datas));\n cb_year_bap.setEditable(true);\n cb_year.setEditable(true);\n AutoCompletion.enable(jComboBox1, true);\n AutoCompletion.enable(jComboBox2, true);\n AutoCompletion.enable(cb_year, true);\n\n AutoCompletion.enable(jComboBox8, true);\n AutoCompletion.enable(jComboBox4, true);\n AutoCompletion.enable(cb_year_bap, true);\n\n AutoCompletion.enable(cb_book, true);\n AutoCompletion.enable(jComboBox7, true);\n\n }", "title": "" }, { "docid": "d2bf49e64e79ac83b1b7ae2f23411dee", "score": "0.5961824", "text": "private void setAlltext(ResultSet result) {\n try {\n empNojTextField.setText(result.getString(\"emp_no\"));\n apellidosjTextField.setText(result.getString(\"apellido\"));\n dirjTextField.setText(result.getString(\"oficio\"));\n oficiojTextField.setText(result.getString(\"dir\"));\n fechajTextField.setText(result.getString(\"fecha_alt\"));\n salariojTextField.setText(result.getString(\"salario\"));\n comisionjTextField.setText(result.getString(\"comision\"));\n deptNoEmpleadosjTextField.setText(result.getString(\"dept_no\"));\n } catch (SQLException ex) {\n Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);\n } \n }", "title": "" }, { "docid": "60026d6fcab2d014a8bf4f52fd01da4b", "score": "0.5958793", "text": "private void setCheckingAccountTextFields() {\n\n int i = 0;\n if (\n (aNumber.getText().matches(\"[0-9]+.\"))\n\n ) {\n try {\n account.setAccountNumber(Integer.parseInt(aNumber.getText()));\n } catch (NumberFormatException nme) {\n JOptionPane.showMessageDialog(null, \"Invalid account number\");\n i = -1;\n }\n String s = ((JTextField)dateChooser.getDateEditor().getUiComponent()).getText();\n if (s.equals(\"\")){\n JOptionPane.showMessageDialog(null, \"pick a date\");\n i = -1;\n }else {\n try {\n account.setDateOpened(dateChange(dateChooser));\n } catch (IllegalArgumentException nme) {\n JOptionPane.showMessageDialog(null, \"Invalid Date\");\n }\n }\n try {\n account.setAccountOwner(aOwner.getText());\n } catch (NumberFormatException nme) {\n JOptionPane.showMessageDialog(null, \"Invalid account name\");\n i = -1;\n }\n try {\n account.setAccountBalance(Double.parseDouble(aBal.getText()));\n } catch (NumberFormatException nme) {\n JOptionPane.showMessageDialog(null, \"Invalid account balance\");\n i = -1;\n }\n try {\n ((CheckingAccount) account).setMonthlyFee(Double.parseDouble(mFee.getText()));\n } catch (NumberFormatException nme) {\n JOptionPane.showMessageDialog(null, \"Invalid monthly fee\");\n i = -1;\n }\n\n\n if (i != -1) {\n\n\n if ((account.number < 0) ||\n ((account.number + \"\").length() > 10)) {\n\n JOptionPane.showMessageDialog(null, \"Invalid account number length of 10 digits and positive!\");\n\n } else {\n\n\n\n\n\n\n\n if (account.balance < 0) {\n\n JOptionPane.showMessageDialog(null, \"account balance needs to be positive!\");\n } else {\n\n\n if (((CheckingAccount) account).monthlyFee < 0) {\n\n JOptionPane.showMessageDialog(null, \"Monthly fee needs to be positive!\");\n\n } else {\n\n\n bankModel.addAccount(account);\n //still need to fix gregorian calendar\n }\n\n\n }\n }\n }\n }\n }", "title": "" }, { "docid": "fcd096b8638930d7257d53898c0c3f70", "score": "0.59540457", "text": "public RoomSearchForm() {\n initComponents();\n unavailableTextField.setVisible(false);\n incorrectTextField1.setVisible(true);\n incorrectTextField1.setText(\" \");\n\n }", "title": "" }, { "docid": "1858afbf860cf7ab2937edc6e20deeb4", "score": "0.5953758", "text": "public void reset(){\n ts.reset();\n namefield.setText(\"e.g. Apple\");\n carbfield.setText(\"\");\n }", "title": "" }, { "docid": "2d08f5692ce850b0f20b1afff4a66a88", "score": "0.59529346", "text": "public void setUpperCase() {\r\n\t\tCollection<Component> collection = groupboxEditar.getFellows();\r\n\t\tfor (Component abstractComponent : collection) {\r\n\t\t\tif (abstractComponent instanceof Textbox) {\r\n\t\t\t\tTextbox textbox = (Textbox) abstractComponent;\r\n\t\t\t\tif (!(textbox instanceof Combobox)) {\r\n\t\t\t\t\t((Textbox) abstractComponent)\r\n\t\t\t\t\t\t\t.setText(((Textbox) abstractComponent).getText()\r\n\t\t\t\t\t\t\t\t\t.trim().toUpperCase());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2d08f5692ce850b0f20b1afff4a66a88", "score": "0.59529346", "text": "public void setUpperCase() {\r\n\t\tCollection<Component> collection = groupboxEditar.getFellows();\r\n\t\tfor (Component abstractComponent : collection) {\r\n\t\t\tif (abstractComponent instanceof Textbox) {\r\n\t\t\t\tTextbox textbox = (Textbox) abstractComponent;\r\n\t\t\t\tif (!(textbox instanceof Combobox)) {\r\n\t\t\t\t\t((Textbox) abstractComponent)\r\n\t\t\t\t\t\t\t.setText(((Textbox) abstractComponent).getText()\r\n\t\t\t\t\t\t\t\t\t.trim().toUpperCase());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" } ]
da7a1724ea320c04d2d8d1570a94f252
/ renamed from: g
[ { "docid": "157931a7240c94d78b944082b17f4f49", "score": "0.0", "text": "public void mo35843g() {\n this.f17531f = true;\n AdMostInterstitial adMostInterstitial = new AdMostInterstitial(C3597b.m12267a().f10092a, \"28e2fdd0-950b-4c26-a11d-91fac9091e8d\", new C6714i());\n this.f17533h = adMostInterstitial;\n adMostInterstitial.refreshAd(false);\n new Handler().postDelayed(new C6715j(), 15000);\n }", "title": "" } ]
[ { "docid": "eeffb518b397bcac8ab03d3403c30875", "score": "0.65594155", "text": "public boolean g()\r\n/* 66: */ {\r\n/* 67:164 */ return this.g;\r\n/* 68: */ }", "title": "" }, { "docid": "e52dc13fbca20d52913e7c65f2e92fad", "score": "0.6531118", "text": "public float g()\r\n/* 34: */ {\r\n/* 35:447 */ return this.d;\r\n/* 36: */ }", "title": "" }, { "docid": "6f20c91076a7fbfd64440473191e16d7", "score": "0.612858", "text": "public int returnG(){\n return g;\n }", "title": "" }, { "docid": "34ba28275750fe1defc663793b813a9e", "score": "0.6074388", "text": "public int func_70627_aG() { return 200; }", "title": "" }, { "docid": "f7fb2fc0d418738b05495abf5d2972cd", "score": "0.6069771", "text": "@Override\n\tpublic String simbolo() {\n\t\treturn \"G#\";\n\t}", "title": "" }, { "docid": "fcdc21c2df394a0c65cd40818492d781", "score": "0.6063931", "text": "protected abstract ak mo2234a(C0901g c0901g);", "title": "" }, { "docid": "36b1e8809e6d2697c3f459103ba2d3c9", "score": "0.60337293", "text": "void mo1833jg();", "title": "" }, { "docid": "980099444017b5ab0af3183e8d407570", "score": "0.6003585", "text": "public void gravarGR(GramaticaRegular gr) {\r\n }", "title": "" }, { "docid": "0704a2a4b95d51f2ce30279a8a014b4e", "score": "0.5990618", "text": "public void mo6391g() {\n }", "title": "" }, { "docid": "1bfb253d1b42798343c5785307116940", "score": "0.59704316", "text": "protected void m12830a(gs gsVar) {\n }", "title": "" }, { "docid": "b61de30ea75d193ebd6a3c58eeb757f1", "score": "0.5939652", "text": "public void lerGR(GramaticaRegular gr) {\r\n }", "title": "" }, { "docid": "6d67cb44ad766923eb36c74bf4156fda", "score": "0.5906122", "text": "public abstract void mo4389g();", "title": "" }, { "docid": "1d3a128bf67fb4ab73f1f876ad906729", "score": "0.59004855", "text": "private static java.lang.String g(@android.support.annotation.NonNull java.lang.String r3) {\n /*\n java.util.Locale r0 = java.util.Locale.US\n java.lang.String r3 = r3.toLowerCase(r0)\n java.lang.String r3 = r3.trim()\n int r0 = r3.hashCode()\n r1 = -1349116587(0xffffffffaf961d55, float:-2.7305683E-10)\n r2 = 2\n if (r0 == r1) goto L_0x0024\n r1 = 1787472634(0x6a8aaafa, float:8.381959E25)\n if (r0 == r1) goto L_0x001a\n goto L_0x002e\n L_0x001a:\n java.lang.String r0 = \"straight\"\n boolean r3 = r3.equals(r0)\n if (r3 == 0) goto L_0x002e\n r3 = 1\n goto L_0x002f\n L_0x0024:\n java.lang.String r0 = \"curved\"\n boolean r3 = r3.equals(r0)\n if (r3 == 0) goto L_0x002e\n r3 = 2\n goto L_0x002f\n L_0x002e:\n r3 = -1\n L_0x002f:\n if (r3 == r2) goto L_0x0034\n java.lang.String r3 = \"straight\"\n return r3\n L_0x0034:\n java.lang.String r3 = \"curved\"\n return r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.inmobi.ads.ao.g(java.lang.String):java.lang.String\");\n }", "title": "" }, { "docid": "0f31cf4b461b818907711092c779f02b", "score": "0.58768487", "text": "public abstract void mo6106g();", "title": "" }, { "docid": "7fea881df8b92e0b738c70502cf2a2db", "score": "0.5845683", "text": "String mo79970g();", "title": "" }, { "docid": "fea7a2b12d2393c5b331cdd73164085e", "score": "0.58257955", "text": "private static void problem11() {\n\t\t\n\t}", "title": "" }, { "docid": "369b91b6f9052a69601b4e870669adc3", "score": "0.579856", "text": "private void l__________________________________________________l(){}", "title": "" }, { "docid": "318a176071770bdaa2b0887dea91c44d", "score": "0.5788395", "text": "public int getG() {\r\n return g;\r\n }", "title": "" }, { "docid": "7c84d553724230bcfd479568ecb0b8c2", "score": "0.57665336", "text": "public final void zzg() {\r\n zzb.zzc(\"\");\r\n zzj();\r\n }", "title": "" }, { "docid": "1120078882eb0f11c4c8448fde6b19d6", "score": "0.57643247", "text": "public int getG(int x, int y);", "title": "" }, { "docid": "2488b28edc5266b68336c5456c62090a", "score": "0.5754736", "text": "public aej l() {\r\n/* 239 */ this.g = true;\r\n/* 240 */ return this;\r\n/* */ }", "title": "" }, { "docid": "d18a5453cb937c44d51c46c967f1f4f6", "score": "0.57515204", "text": "protected void method_3848() {}", "title": "" }, { "docid": "9549afe85a92717d17a462ef2239720b", "score": "0.5750899", "text": "void mo13744g();", "title": "" }, { "docid": "f67db0e6433d926cb1c90fe9b7ace453", "score": "0.5699383", "text": "void mo56262a(C3946e eVar, C3953g gVar);", "title": "" }, { "docid": "4398ad887cd9c657b3e2d43272ed07c0", "score": "0.5691752", "text": "default G gene() {\n\t\treturn get(0);\n\t}", "title": "" }, { "docid": "d07316e31c41cf803c9fe92f7842c3ed", "score": "0.5678189", "text": "public Guard hdG() {\n\t\treturn(gu(0));\n\t}", "title": "" }, { "docid": "91194a898c5c62a6fb25ba8a3ae4f0d9", "score": "0.5675583", "text": "public final void mo74763d(C29296g gVar) {\n }", "title": "" }, { "docid": "cceb75e300680863441470c7846ea4ff", "score": "0.56675863", "text": "public final void mo74759a(C29296g gVar) {\n }", "title": "" }, { "docid": "496e00f0a95a2971cc429439c2fbaece", "score": "0.56671345", "text": "public GFG(int k) { this.k = k; }", "title": "" }, { "docid": "fd6701f797dfea9f5d486165efe0964c", "score": "0.5648", "text": "protected abstract wy mo2236d();", "title": "" }, { "docid": "3301c4c4dddfe1a81c4ba7122c68338e", "score": "0.56347346", "text": "@Override\n\tpublic void draw(Graphics g) {\n\t\t\n\t}", "title": "" }, { "docid": "22152d03bb0feb37bfd98d85abfa5f2a", "score": "0.5624516", "text": "public boolean g(int c) {\n/* 457 */ if (this.n == null || this.n[c] == null) {\n/* 458 */ return false;\n/* */ }\n/* 460 */ return true;\n/* */ }", "title": "" }, { "docid": "2b132293ac63357bd10cafd5ea25351e", "score": "0.5595539", "text": "private int g(int rgb) {\n \treturn (rgb & 0x00ff00) >> 8;\n }", "title": "" }, { "docid": "37753a8d7f30fae6899d23e4770f9fae", "score": "0.5595111", "text": "public String generateGtr();", "title": "" }, { "docid": "a450cd8bc2a851bf702798a770940e1e", "score": "0.5585247", "text": "void mo82657d();", "title": "" }, { "docid": "3f9d6be79facc256780c2e4dfe462388", "score": "0.5585179", "text": "public abstract void mo1508a(C0370g gVar);", "title": "" }, { "docid": "97c456611a497fb152db478124462615", "score": "0.5581931", "text": "public void mo7874b() {\n }", "title": "" }, { "docid": "b9dd0043f8a6175483ed0ede0550955c", "score": "0.5570653", "text": "public I m2227g(O o) {\n return this.Eh.mo1766g(o);\n }", "title": "" }, { "docid": "60ad9f91599b0adc61236fc9a5b5c0dc", "score": "0.5566", "text": "void mo38492b();", "title": "" }, { "docid": "2694531d34cad9815a3e1c960afe70e1", "score": "0.55581284", "text": "public void setG(int g) {\r\n this.g = g;\r\n }", "title": "" }, { "docid": "93de84d0e77a5e19e12e7d0655c39af3", "score": "0.55491495", "text": "@Override\n\tpublic void agit() {\n\t\t\n\t}", "title": "" }, { "docid": "8ce740dd8eba0182641be64ba82b73d2", "score": "0.5544711", "text": "protected void d()\r\n/* 571: */ {\r\n/* 572:533 */ this.g = 0;\r\n/* 573:534 */ this.h.clear();\r\n/* 574: */ }", "title": "" }, { "docid": "8184fcf54b596c15be74898dab0fe5cc", "score": "0.55366755", "text": "void getGraphics(Graphics tempg){\r\n\t\tg = tempg;\r\n\t}", "title": "" }, { "docid": "d92cd99967db022b68c7a640590d4ffe", "score": "0.5531313", "text": "private int m147844g() {\n C47338d a = C47338d.m147803a();\n if (a.f121451g > 0) {\n return a.f121451g;\n }\n if (this.f121483a == 1) {\n return a.f121452h;\n }\n if (this.f121483a == 2) {\n return a.f121453i;\n }\n return a.f121451g;\n }", "title": "" }, { "docid": "751b5f7293c46ddda1be559b7662f90b", "score": "0.55281883", "text": "public gGA(Problem problem){\n this.problem_ = problem; \n }", "title": "" }, { "docid": "9f0688274acb7c3569ca3a9f9e01c75c", "score": "0.55057055", "text": "public java.lang.String g(java.lang.String r12, com.bca.xco.widget.a.a r13, com.bca.xco.widget.a.b r14) {\n /*\n r11 = this;\n java.util.TreeMap r0 = new java.util.TreeMap\n r0.<init>()\n java.lang.String r1 = r14.g()\n java.lang.String r2 = \"XCOID\"\n r0.put(r2, r1)\n java.lang.String r1 = r14.c()\n java.lang.String r2 = \"MaxLimit\"\n r0.put(r2, r1)\n java.lang.String r1 = r14.e()\n java.lang.String r2 = \"MerchantID\"\n r0.put(r2, r1)\n java.lang.String r14 = r14.f()\n java.lang.String r1 = \"OTP\"\n r0.put(r1, r14)\n com.bca.xco.widget.e.d r14 = new com.bca.xco.widget.e.d\n r14.<init>()\n com.bca.xco.widget.d.a.u r1 = r11.f4695b\n java.lang.String r2 = r14.a(r0)\n com.bca.xco.widget.d.a.y r1 = com.bca.xco.widget.d.a.y.a((com.bca.xco.widget.d.a.u) r1, (java.lang.String) r2)\n com.bca.xco.widget.e.b r2 = r11.f4696c\n java.lang.String r2 = r2.a()\n com.bca.xco.widget.e.b r3 = r11.f4696c\n java.lang.String r4 = r13.d()\n java.lang.String r8 = r13.a()\n java.lang.String r9 = r14.a(r0)\n java.lang.String r5 = \"PUT\"\n java.lang.String r6 = \"/xco/credentials/limits\"\n r7 = 0\n r10 = r2\n java.lang.String r14 = r3.a(r4, r5, r6, r7, r8, r9, r10)\n com.bca.xco.widget.d.a.x$a r0 = new com.bca.xco.widget.d.a.x$a\n r0.<init>()\n java.lang.StringBuilder r3 = new java.lang.StringBuilder\n r3.<init>()\n java.lang.String r4 = \"Bearer \"\n r3.append(r4)\n java.lang.String r4 = r13.a()\n r3.append(r4)\n java.lang.String r3 = r3.toString()\n java.lang.String r4 = \"Authorization\"\n com.bca.xco.widget.d.a.x$a r0 = r0.a((java.lang.String) r4, (java.lang.String) r3)\n java.lang.String r3 = r13.b()\n java.lang.String r4 = \"Content-Type\"\n com.bca.xco.widget.d.a.x$a r0 = r0.a((java.lang.String) r4, (java.lang.String) r3)\n java.lang.String r3 = r13.c()\n java.lang.String r4 = \"X-BCA-Key\"\n com.bca.xco.widget.d.a.x$a r0 = r0.a((java.lang.String) r4, (java.lang.String) r3)\n java.lang.String r3 = \"X-BCA-Timestamp\"\n com.bca.xco.widget.d.a.x$a r0 = r0.a((java.lang.String) r3, (java.lang.String) r2)\n java.lang.String r2 = \"X-BCA-Signature\"\n com.bca.xco.widget.d.a.x$a r14 = r0.a((java.lang.String) r2, (java.lang.String) r14)\n java.lang.String r13 = r13.e()\n java.lang.String r0 = \"X-Client-DeviceInfo\"\n com.bca.xco.widget.d.a.x$a r13 = r14.a((java.lang.String) r0, (java.lang.String) r13)\n com.bca.xco.widget.d.a.x$a r12 = r13.a((java.lang.String) r12)\n com.bca.xco.widget.d.a.x$a r12 = r12.b((com.bca.xco.widget.d.a.y) r1)\n com.bca.xco.widget.d.a.x r12 = r12.b()\n com.bca.xco.widget.d.a.s r13 = r11.f4694a\n com.bca.xco.widget.d.a.b r12 = r13.a((com.bca.xco.widget.d.a.x) r12)\n com.bca.xco.widget.d.a.z r12 = r12.a()\n r13 = 0\n com.bca.xco.widget.d.a.aa r14 = r12.e() // Catch:{ Throwable -> 0x00c7 }\n java.lang.String r13 = r14.e() // Catch:{ Throwable -> 0x00c7 }\n if (r12 == 0) goto L_0x00c4\n r12.close()\n L_0x00c4:\n return r13\n L_0x00c5:\n r14 = move-exception\n goto L_0x00c9\n L_0x00c7:\n r13 = move-exception\n throw r13 // Catch:{ all -> 0x00c5 }\n L_0x00c9:\n if (r12 == 0) goto L_0x00d4\n if (r13 == 0) goto L_0x00d1\n r12.close() // Catch:{ Throwable -> 0x00d4 }\n goto L_0x00d4\n L_0x00d1:\n r12.close()\n L_0x00d4:\n throw r14\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bca.xco.widget.c.a.g(java.lang.String, com.bca.xco.widget.a.a, com.bca.xco.widget.a.b):java.lang.String\");\n }", "title": "" }, { "docid": "b994690508de49d44c8a7eaf57cbc1d2", "score": "0.548956", "text": "public abstract void kresliTvarCely(Graphics2D g);", "title": "" }, { "docid": "a4c73ba51d3aac4c5bb273ee0b4f1213", "score": "0.5473699", "text": "public int getG(){\n\t\treturn gVal;\n\t}", "title": "" }, { "docid": "a4b1dcc29a6e99b992361c9e879cbf90", "score": "0.545569", "text": "void mo27986gI(String str);", "title": "" }, { "docid": "a912bd4cfc059b34b06b121c444f29ef", "score": "0.5447263", "text": "void mo41291b();", "title": "" }, { "docid": "470d5acf47201b8858b1a7c0ffbfb2ab", "score": "0.5445683", "text": "@Override\r\n\tpublic void draw(Graphics g) {\n\t\t\r\n\t}", "title": "" }, { "docid": "470d5acf47201b8858b1a7c0ffbfb2ab", "score": "0.5445683", "text": "@Override\r\n\tpublic void draw(Graphics g) {\n\t\t\r\n\t}", "title": "" }, { "docid": "211012bd126097366ea6f45efd474be0", "score": "0.5439389", "text": "static gh a(String paramString1, String paramString2) throws gf\r\n/* 85: */ {\r\n/* 86: 84 */ paramString2 = paramString2.trim();\r\n/* 87: */ gh localObject;\r\n/* 88: */ String str;\r\n/* 89: */ int i;\r\n/* 90: 86 */ if (paramString2.startsWith(\"{\"))\r\n/* 91: */ {\r\n/* 92: 87 */ paramString2 = paramString2.substring(1, paramString2.length() - 1);\r\n/* 93: */ \r\n/* 94: 89 */ localObject = new gi(paramString1);\r\n/* 95: 90 */ while (paramString2.length() > 0)\r\n/* 96: */ {\r\n/* 97: 91 */ str = b(paramString2, true);\r\n/* 98: 92 */ if (str.length() > 0)\r\n/* 99: */ {\r\n/* 100: 93 */ boolean bool = false;\r\n/* 101: 94 */ ((gi)localObject).b.add(a(str, bool));\r\n/* 102: */ }\r\n/* 103: 97 */ if (paramString2.length() < str.length() + 1) {\r\n/* 104: */ break;\r\n/* 105: */ }\r\n/* 106:101 */ i = paramString2.charAt(str.length());\r\n/* 107:102 */ if ((i != 44) && (i != 123) && (i != 125) && (i != 91) && (i != 93)) {\r\n/* 108:103 */ throw new gf(\"Unexpected token '\" + i + \"' at: \" + paramString2.substring(str.length()));\r\n/* 109: */ }\r\n/* 110:105 */ paramString2 = paramString2.substring(str.length() + 1);\r\n/* 111: */ }\r\n/* 112:108 */ return localObject;\r\n/* 113: */ }\r\n/* 114:109 */ if ((paramString2.startsWith(\"[\")) && (!b.matcher(paramString2).matches()))\r\n/* 115: */ {\r\n/* 116:110 */ paramString2 = paramString2.substring(1, paramString2.length() - 1);\r\n/* 117: */ \r\n/* 118:112 */ localObject = new gj(paramString1);\r\n/* 119:113 */ while (paramString2.length() > 0)\r\n/* 120: */ {\r\n/* 121:114 */ str = b(paramString2, false);\r\n/* 122:115 */ if (str.length() > 0)\r\n/* 123: */ {\r\n/* 124:116 */ boolean i1 = true;\r\n/* 125:117 */ ((gj)localObject).b.add(a(str, i1));\r\n/* 126: */ }\r\n/* 127:120 */ if (paramString2.length() < str.length() + 1) {\r\n/* 128: */ break;\r\n/* 129: */ }\r\n/* 130:124 */ char c = paramString2.charAt(str.length());\r\n/* 131:125 */ if ((c != ',') && (c != '{') && (c != '}') && (c != '[') && (c != ']')) {\r\n/* 132:126 */ throw new gf(\"Unexpected token '\" + c + \"' at: \" + paramString2.substring(str.length()));\r\n/* 133: */ }\r\n/* 134:128 */ paramString2 = paramString2.substring(str.length() + 1);\r\n/* 135: */ }\r\n/* 136:131 */ return localObject;\r\n/* 137: */ }\r\n/* 138:134 */ return new gk(paramString1, paramString2);\r\n/* 139: */ }", "title": "" }, { "docid": "95b1b85e56810ea110be9d76384c49b0", "score": "0.54277366", "text": "public void m2226a(gd gdVar) {\n this.Eg = gdVar;\n }", "title": "" }, { "docid": "35a64355150aacab27e078df8573cac5", "score": "0.5427371", "text": "private void j() {\n }", "title": "" }, { "docid": "d0de4a3ceb450f1fba671d22b7be83c6", "score": "0.541093", "text": "@Override\n\t\tpublic void paint(Graphics g) {\n\n\t\t}", "title": "" }, { "docid": "ad9858643cb51c92112f1a2ed05ea34e", "score": "0.5404959", "text": "public void mo7876d() {\n }", "title": "" }, { "docid": "aff65c8b38cadfd668d83e276c84fb70", "score": "0.5391489", "text": "public final boolean zzg() {\n return true;\n }", "title": "" }, { "docid": "de0e53f012c9596d83cb22a64070c083", "score": "0.53909016", "text": "protected void gPre(){}", "title": "" }, { "docid": "ec48fb492fe37ac495140ea6ebe11109", "score": "0.53817374", "text": "public byte getG(int x, int y) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "5477922fce309be487fa552d27c3bf32", "score": "0.5377456", "text": "public void mo7873a() {\n }", "title": "" }, { "docid": "63caefb96e3d0477eca74500d49989ca", "score": "0.53738636", "text": "public interface a {\n void a();\n\n void a(g gVar);\n}", "title": "" }, { "docid": "000abb56675f31c940d270b78dc7b380", "score": "0.5369976", "text": "long mo39589a(brg brg) throws IOException;", "title": "" }, { "docid": "54d56af064d040c1c39b2d1d2eea7cec", "score": "0.5358425", "text": "public abstract void a(dg dgVar, int i);", "title": "" }, { "docid": "1c4f29f19594e69e821f12d3ab8453ee", "score": "0.53564817", "text": "void mo25102a(int i, int i2, C21644g c21644g);", "title": "" }, { "docid": "386f36e5c9cd057171ef700f3e7dc517", "score": "0.5350213", "text": "<T> zzgse(com.google.android.gms.internal.zzgsc<?, T> r1, T r2) {\n /*\n r0 = this;\n r0.<init>()\n r0.zza = r1\n r0.zzb = r2\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzgse.<init>(com.google.android.gms.internal.zzgsc, java.lang.Object):void\");\n }", "title": "" }, { "docid": "48d7d887a3043e69c81b131c4fbc7ca1", "score": "0.5348392", "text": "public IGwtGraphics2DSimple g() {\n\t\tdebug();\n\t\treturn null;\n\t}", "title": "" }, { "docid": "9ac4265fad7ad4e3411284a4b271928a", "score": "0.5347959", "text": "@Override // defpackage.AbstractC3255jk0\n public boolean b(C2740gj0 gj0) {\n try {\n IS0 a2 = gj0.a();\n C0942Pj0 pj0 = a2.d;\n int i = 4;\n if (!pj0.a(4)) {\n i = 0;\n }\n if (!pj0.c(i)) {\n return false;\n }\n switch (pj0.d) {\n case -2:\n return AbstractC3484l30.b(AbstractC2654gB0.f9984a, a2);\n case -1:\n default:\n return false;\n case 0:\n ZA0 d = ZA0.d(a2.b());\n ((AbstractC1617aA0) this.G).n(d.d, d.e, d.f, d.g, d.h);\n return true;\n case 1:\n C1971cB0 d2 = C1971cB0.d(a2.b());\n ((AbstractC1617aA0) this.G).z(d2.d, d2.e);\n return true;\n case 2:\n ((AbstractC1617aA0) this.G).q(C2142dB0.d(a2.b()).d);\n return true;\n case 3:\n C2740gj0 b = a2.b();\n CC[] ccArr = C1620aB0.b;\n C4709sD sDVar = new C4709sD(b);\n sDVar.b();\n try {\n sDVar.c(C1620aB0.b);\n sDVar.a();\n ((AbstractC1617aA0) this.G).p();\n return true;\n } catch (Throwable th) {\n sDVar.a();\n throw th;\n }\n case 4:\n C2740gj0 b2 = a2.b();\n CC[] ccArr2 = VA0.b;\n C4709sD sDVar2 = new C4709sD(b2);\n sDVar2.b();\n try {\n sDVar2.c(VA0.b);\n sDVar2.a();\n ((AbstractC1617aA0) this.G).y();\n return true;\n } catch (Throwable th2) {\n sDVar2.a();\n throw th2;\n }\n case 5:\n ((AbstractC1617aA0) this.G).G(XA0.d(a2.b()).d);\n return true;\n case 6:\n ((AbstractC1617aA0) this.G).a0(C1800bB0.d(a2.b()).d);\n return true;\n case Version.VERSION_7:\n C2740gj0 b3 = a2.b();\n CC[] ccArr3 = WA0.b;\n C4709sD sDVar3 = new C4709sD(b3);\n sDVar3.b();\n try {\n sDVar3.c(WA0.b);\n sDVar3.a();\n ((AbstractC1617aA0) this.G).o();\n return true;\n } catch (Throwable th3) {\n sDVar3.a();\n throw th3;\n }\n case Version.VERSION_8:\n C2740gj0 b4 = a2.b();\n CC[] ccArr4 = YA0.b;\n C4709sD sDVar4 = new C4709sD(b4);\n sDVar4.b();\n try {\n sDVar4.c(YA0.b);\n sDVar4.a();\n ((AbstractC1617aA0) this.G).U();\n return true;\n } catch (Throwable th4) {\n sDVar4.a();\n throw th4;\n }\n }\n } catch (C4200pE e) {\n System.err.println(e.toString());\n return false;\n }\n }", "title": "" }, { "docid": "6ba0e2d209656b7344154e59744d554d", "score": "0.5344891", "text": "void mo26143b();", "title": "" }, { "docid": "af07c8cc1f091d3598efa2e75823dd68", "score": "0.5341235", "text": "protected int q()\r\n/* 203: */ {\r\n/* 204:241 */ return this.I.t.c;\r\n/* 205: */ }", "title": "" }, { "docid": "d2e0adbb3effe502b8759d2adca44d3e", "score": "0.5341158", "text": "public interface C1668d {\n /* renamed from: a */\n void mo7251a(C1671e eVar, C1673g gVar);\n }", "title": "" }, { "docid": "09a6de987f28bf098fc214ec8e77a8ee", "score": "0.533701", "text": "void mo114996a();", "title": "" }, { "docid": "c4df04a1c182f4844171540b41fb52bd", "score": "0.53348434", "text": "void mo1764b();", "title": "" }, { "docid": "245d456bd452632b9011d99d807c8ae1", "score": "0.5318612", "text": "void mo2956b() {\n }", "title": "" }, { "docid": "e993292f52a01e92645daa083e28aab8", "score": "0.53159493", "text": "public void e() {\n if (this.g == -1) return;\n boolean bl2 = true;\n if (!bl2) return;\n this.a(this.g, this.g);\n }", "title": "" }, { "docid": "41a23e464ece9c411b964a0e7729719d", "score": "0.5313864", "text": "public abstract int a(dg dgVar);", "title": "" }, { "docid": "21e83e0c6fdd60581bc05b6e8f682d1e", "score": "0.53129226", "text": "public void mo7875c() {\n }", "title": "" }, { "docid": "ae1c63ff333ae1d2f703093b9c150faa", "score": "0.5311347", "text": "public abstract void mo6109l();", "title": "" }, { "docid": "bfa61997aeeb17c616bba35260c2ed9e", "score": "0.5311309", "text": "public interface C3951a {\n /* renamed from: a */\n void mo56262a(C3946e eVar, C3953g gVar);\n }", "title": "" }, { "docid": "432742d42c2a7fa003c6d42cd29edbb3", "score": "0.5295892", "text": "public String tryToCollectABag();", "title": "" }, { "docid": "b41511067b7d6f26d626d8b224bda855", "score": "0.5290201", "text": "void mo28186c();", "title": "" }, { "docid": "f195b95ad03494d5cd3bdfbcb038ae51", "score": "0.52859503", "text": "public abstract void mo42486b();", "title": "" }, { "docid": "a9284f632086ad582e824139b11b0f53", "score": "0.5285926", "text": "private void draw(Graphics g)\n\t{\n\t}", "title": "" }, { "docid": "72146204d8fc20e067f4706ea4cdc1bd", "score": "0.5282658", "text": "int getGid();", "title": "" }, { "docid": "523a0149ebf6ca49814ab1aca834671a", "score": "0.5273948", "text": "void mo84812b();", "title": "" }, { "docid": "fb11892955e52f167f3cf8acf005d1bf", "score": "0.5264594", "text": "@Override\r\n\tpublic void render(Graphics g) {\n\r\n\t}", "title": "" }, { "docid": "fa476134c2426593cb575314a67b6374", "score": "0.52634555", "text": "IntegerValue getG();", "title": "" }, { "docid": "24c83406fa5514079fde3bf37d9f65a8", "score": "0.52624094", "text": "void mo12763b();", "title": "" }, { "docid": "9c3b085a1731de500809098163eee381", "score": "0.5259123", "text": "public interface gn {\n\n /* renamed from: com.google.android.gms.b.gn.a */\n public static class C3231a {\n public final int f11156a;\n public final long f11157b;\n public final long f11158c;\n }\n\n C3231a m12902a(Context context);\n}", "title": "" }, { "docid": "545481926e3930603a27e7693b6324a3", "score": "0.5256823", "text": "void mo25582a();", "title": "" }, { "docid": "1e77c77bb37d8ccbf1a6a1c39fb82213", "score": "0.5253101", "text": "void mo1832jf();", "title": "" }, { "docid": "2bbe0391572d13daea70d286e6bb2353", "score": "0.52464527", "text": "protected void setG(float g) {\n _g = g;\n }", "title": "" }, { "docid": "c8eba3036a517bf5c8322e6c193c82ba", "score": "0.5243697", "text": "void mo29066c();", "title": "" }, { "docid": "321f3864a37c4f67a10dbc669dfb96ac", "score": "0.5241889", "text": "public void d() {\n this.a = a.a();\n this.b = g.t();\n b(1);\n }", "title": "" }, { "docid": "301ad8bfd59dff5ead8e778f0b03554e", "score": "0.52412045", "text": "private static gh a(String paramString, boolean paramBoolean) throws gf\r\n/* 142: */ {\r\n/* 143:138 */ String str1 = c(paramString, paramBoolean);\r\n/* 144:139 */ String str2 = d(paramString, paramBoolean);\r\n/* 145:140 */ return a(new String[] { str1, str2 });\r\n/* 146: */ }", "title": "" }, { "docid": "68fd5dc9877855207f633162e1ee9250", "score": "0.52392805", "text": "void mo3811b();", "title": "" }, { "docid": "6b61d8b96a1d28f906dc42252aa0c212", "score": "0.52337754", "text": "public C13563g(T t, Throwable th) {\n super(t, th, null);\n C32569u.m150519b(th, C6969H.m41409d(\"G6C9BD61FAF24A226E8\"));\n }", "title": "" }, { "docid": "7c4f2f94b290de5507eb56a649c4fab9", "score": "0.5231311", "text": "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "title": "" }, { "docid": "9a750498f3ab618cf9f880774fe4e791", "score": "0.52263147", "text": "Style mo3983g();", "title": "" }, { "docid": "578779cf380511ffbb0fc61ce4dc3462", "score": "0.52259076", "text": "void mo39058a(abo abo);", "title": "" }, { "docid": "66f76462eb0121053379289c39650179", "score": "0.52239317", "text": "public void mo19333b() {\n }", "title": "" } ]
cdac6198b7ce252ee09cc7e4b725ee38
this method is for converting the submittedValue (here it means the contact person id) to the contact person object the reason for using this method is, the dropdown box in the xhtml does not capture the contact person object, but the id.
[ { "docid": "201203f4b600ac220690e76fcb523359", "score": "0.5698068", "text": "public Animal getAsObject(FacesContext facesContext, UIComponent component, String submittedValue) {\r\n if (submittedValue.trim().equals(\"\")) {\r\n return null;\r\n } else {\r\n try {\r\n int number = Integer.parseInt(submittedValue);\r\n\r\n for (Animal animal : animalDB) {\r\n if (animal.getAnimalID()== number) {\r\n return animal;\r\n }\r\n }\r\n\r\n } catch(NumberFormatException exception) {\r\n throw new ConverterException(new FacesMessage(FacesMessage.SEVERITY_ERROR, \"Conversion Error\", \"Not a valid role person\"));\r\n }\r\n }\r\n\r\n return null;\r\n }", "title": "" } ]
[ { "docid": "e98785809b6379158153ea103fbf2241", "score": "0.5975137", "text": "@Override\n public Object getAsObject(FacesContext context, UIComponent component, String submittedValue) {\n FindentityDAO findDAO = new FindentityDAO();\n Integer id = Integer.parseInt(submittedValue);\n //System.out.println(id);\n Laboratorio ca = findDAO.findLaboratorio(id);\n return ca;\n }", "title": "" }, { "docid": "4b1852658b227a9ec56c603638ce0f0a", "score": "0.5767302", "text": "public void selectedContact(String selectedValue){\n\t\tfor(MyContact x: returnValues){\n\t\t\tif(selectedValue.contains(x.getFirst_name())){\n\t\t\t\tvalueTOUpdate_id = x.getDoc_id();\n\t\t\t\tvalueTOUpdate_fname = x.getFirst_name();\n\t\t\t\tvalueTOUpdate_lname = x.getLast_name();\n\t\t\t\tvalueTOUpdate_phone = x.getPhone();\n\t\t\t\tvalueTOUpdate_email = x.getEmail();\n\t\t\t}\t\t\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "6b6d07d8693af49dc540ba7ec01ceff3", "score": "0.5412395", "text": "private void setData(PersonInfoFormBean personInfoFormBean, Object source){\r\n if(source.equals(txtAdminOfficer)){\r\n setAdminOfficerId(personInfoFormBean.getPersonID());\r\n }else if(source.equals(txtUnitHead)){\r\n setUnitHeadId(personInfoFormBean.getPersonID());\r\n }else if(source.equals(txtDeanVp)){\r\n setDeanVpId(personInfoFormBean.getPersonID());\r\n }else if(source.equals(txtOspAdmin)){\r\n setOspAdminId(personInfoFormBean.getPersonID());\r\n }else if(source.equals(txtOtherIndToNotify)){\r\n setOtherIndToNotifyId(personInfoFormBean.getPersonID());\r\n }\r\n }", "title": "" }, { "docid": "1cb7fc2cea28ee3de47e55474a94108a", "score": "0.52377737", "text": "public Object getFieldValue() {\n Object val = null;\n\n try {\n String text;\n // If the ComboBox is editable then we want the current text of the editor\n // field, otherwise we want the current selection\n if (isEditable())\n text = ((JTextField) getEditor().getEditorComponent()).getText();\n else\n text = toString(getSelectedItem());\n\n // If valueColumn != displayColumn then the value we have is the display\n // value and we need to get the corresponding value\n if (getRecordSource() != null && getValueColumn() != getDisplayColumn()) {\n if (containsString(text)) {\n if (isEditable())\n val = valueList.get(indexOfString(text));\n else\n val = valueList.get(getSelectedIndex());\n }\n // If there is no corresponding value, give the unlistedSelectionHandler\n // a crack at the problem (if there is one) and respond accordingly\n // See UnlistedSelectionHandler.unlistedSelection for more information\n\n else {\n handleUnlistedSelection(text);\n }\n }\n else\n val = toObject(text, getFieldType());\n } catch (Exception ex) {\n // Display an error message and take back the focus\n JOptionPane.showMessageDialog(getParent(), getFormatErrorMessage(), \"Error\", JOptionPane.ERROR_MESSAGE);\n\n // The following is a workaround for a bug that causes the requestFocus method to generate another FocusLostEvent\n SwingUtilities.invokeLater(new Runnable() {\n public void run(){\n if (isEditable())\n getEditor().getEditorComponent().requestFocusInWindow();\n else\n requestFocusInWindow();\n }\n });\n\n // If the window is being closed throw an exception to allow the\n // possibility of the window close being canceled\n if (((AbstractDBContainer) getParent()).isWindowClosing())\n throw new WindowClosingException();\n }\n \n return val;\n }", "title": "" }, { "docid": "481df0ca2950a9bd41646abdbd3cc3f6", "score": "0.5169658", "text": "@Override\r\n\tprotected Object getConvertedValue(FacesContext context,\r\n\t\t\tObject newSubmittedValue) throws ConverterException {\n\t\treturn super.getConvertedValue(context, newSubmittedValue);\r\n\t}", "title": "" }, { "docid": "452efa66459063ee4b232819011044e0", "score": "0.5108559", "text": "@Override\n public String getAsString(FacesContext context, UIComponent component, Object valueToRender) {\n Laboratorio laboratorio = (Laboratorio) valueToRender;\n Integer id = laboratorio.getId();\n return String.valueOf(id);\n }", "title": "" }, { "docid": "bcc51c4062a92469974cda285c9caa98", "score": "0.50350666", "text": "public String getIDValue() {\n\t\treturn idTextBox.getText();\n\t}", "title": "" }, { "docid": "0b9c4eb59556d7d66532bd6c0c40aea8", "score": "0.50256187", "text": "public T caseValueForm(ValueForm object)\n {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "fa70d63163ac53024a7276ff904abb8a", "score": "0.5023279", "text": "private void setBeanData() {\r\n try{\r\n departmentPersonFormBean=new DepartmentPersonFormBean();\r\n departmentPersonFormBean.setPersonId((txtId.getText()).trim());\r\n departmentPersonFormBean.setSsn((txtSsn.getText()).trim());\r\n departmentPersonFormBean.setLastName((txtLastName.getText()).trim());\r\n departmentPersonFormBean.setFirstName((txtFirstName.getText()).trim());\r\n departmentPersonFormBean.setMiddleName((txtMidleName.getText()).trim());\r\n departmentPersonFormBean.setFullName((txtFullName.getText()).trim());\r\n departmentPersonFormBean.setPriorName((txtPriorName.getText()).trim());\r\n departmentPersonFormBean.setUserName((txtUserName.getText()).trim());\r\n departmentPersonFormBean.setEmailAddress((txtEmail.getText()).trim());\r\n Date modifiedDobDate;\r\n String dateValue;\r\n dateValue = dtUtils.restoreDate(txtDOB.getText(), DATE_SEPARATERS);\r\n if( dateValue.trim().length() >0 && dateValue != null ){\r\n modifiedDobDate = dtFormat.parse(dateValue);\r\n departmentPersonFormBean.setDateOfBirth(\r\n new java.sql.Date(modifiedDobDate.getTime()));\r\n }\r\n \r\n if (!EMPTY_STRING.equals(txtAge.getText())) {\r\n departmentPersonFormBean.setAge(\r\n Integer.parseInt((txtAge.getText()).trim()));\r\n }\r\n if (!EMPTY_STRING.equals(txtAgeByFiscal.getText())) {\r\n departmentPersonFormBean.setAgeByFiscalYear(\r\n Integer.parseInt((txtAgeByFiscal.getText()).trim()));\r\n }\r\n departmentPersonFormBean.setGender((txtGender.getText()).trim());\r\n departmentPersonFormBean.setRace((txtRace.getText()).trim());\r\n departmentPersonFormBean.setOfficeLocation((txtOfficeLocation.getText()).trim());\r\n departmentPersonFormBean.setOfficePhone((txtOfficePhone.getText()).trim());\r\n departmentPersonFormBean.setSecOfficeLocation((txtSecOfficeLoc.getText()).trim());\r\n departmentPersonFormBean.setSecOfficePhone((txtSecOfficePhone.getText()).trim());\r\n departmentPersonFormBean.setSaltuation((txtSalutation.getText()).trim());\r\n departmentPersonFormBean.setDirTitle((txtDirectoryTitle.getText()).trim());\r\n departmentPersonFormBean.setPrimaryTitle((txtPrimaryTitle.getText()).trim());\r\n departmentPersonFormBean.setDirDept((txtDirectoryDept.getText()).trim());\r\n departmentPersonFormBean.setHomeUnit((txtHomeUnit.getText()).trim());\r\n departmentPersonFormBean.setEduLevel((txtEducationalLevel.getText()).trim());\r\n departmentPersonFormBean.setDegree((txtDegree.getText()).trim());\r\n departmentPersonFormBean.setMajor((txtMajor.getText()).trim());\r\n departmentPersonFormBean.setSchool((txtSchool.getText()).trim());\r\n departmentPersonFormBean.setYearGraduated((txtYearGraduated.getText()).trim());\r\n \r\n departmentPersonFormBean.setVeteran(chkVetran.isSelected());\r\n departmentPersonFormBean.setVeteranType((txtVetranType.getText()).trim());\r\n departmentPersonFormBean.setHandicap(chkHandicapped.isSelected());\r\n departmentPersonFormBean.setHandiCapType(\r\n (txtHandicappedType.getText()).trim());\r\n departmentPersonFormBean.setHasVisa(chkHasVisa.isSelected());\r\n departmentPersonFormBean.setCountryCitizenship(\r\n (txtCitzenship.getText()).trim());\r\n departmentPersonFormBean.setVisaCode((txtVisaCode.getText()).trim());\r\n departmentPersonFormBean.setVisaType((txtVisaType.getText()).trim());\r\n Date modifiedRenewalDate;\r\n dateValue = dtUtils.restoreDate(\r\n txtVisaRenewalDate.getText(), DATE_SEPARATERS);\r\n if (dateValue.trim().length() >0 && dateValue != null) {\r\n modifiedRenewalDate = dtFormat.parse(dateValue);\r\n departmentPersonFormBean.setVisaRenDate(\r\n new java.sql.Date(modifiedRenewalDate.getTime()));\r\n }\r\n departmentPersonFormBean.setFaculty(chkFaculty.isSelected());\r\n departmentPersonFormBean.setGraduateStudentStaff(\r\n chkGradStrudentStaff.isSelected());\r\n departmentPersonFormBean.setResearchStaff(chkResearchStaff.isSelected());\r\n departmentPersonFormBean.setServiceStaff(chkServiceStaff.isSelected());\r\n departmentPersonFormBean.setSupportStaff(chkSupportStaff.isSelected());\r\n departmentPersonFormBean.setOtherAcademicGroup(chkOtherAccadem.isSelected());\r\n departmentPersonFormBean.setMedicalStaff(chkMedicalStaff.isSelected());\r\n departmentPersonFormBean.setVacationAccural(chkVecationAccural.isSelected());\r\n departmentPersonFormBean.setOnSabbatical(chkOnSabatical.isSelected());\r\n departmentPersonFormBean.setProvided((txtIdProvided.getText()).trim());\r\n departmentPersonFormBean.setVerified((txtIdVerified.getText()).trim());\r\n modified = true;\r\n \r\n //Added for Person Enhancement Case#1602 - Contact Info Start 5\r\n \r\n departmentPersonFormBean.setAddress1(txtAddress1.getText().trim());\r\n departmentPersonFormBean.setAddress2(txtAddress2.getText().trim());\r\n departmentPersonFormBean.setAddress3(txtAddress3.getText().trim());\r\n departmentPersonFormBean.setCity(txtCity.getText().trim());\r\n departmentPersonFormBean.setCounty(txtCounty.getText().trim());\r\n departmentPersonFormBean.setPostalCode(txtPostalCode.getText().trim());\r\n departmentPersonFormBean.setFaxNumber(txtFax.getText().trim());\r\n departmentPersonFormBean.setPagerNumber(txtPager.getText().trim());\r\n departmentPersonFormBean.setMobilePhNumber(txtMobile.getText().trim());\r\n departmentPersonFormBean.setEraCommonsUsrName(txtERACommonsUserName.getText().trim());\r\n \r\n ComboBoxBean cmbCountryBean = (ComboBoxBean)cmbCountry.getSelectedItem();\r\n departmentPersonFormBean.setCountryCode(cmbCountryBean.getCode());\r\n \r\n ComboBoxBean cmbStateBean = (ComboBoxBean)cmbState.getSelectedItem();\r\n if(cmbCountryBean.getCode().equalsIgnoreCase(\"USA\")){\r\n departmentPersonFormBean.setState(cmbStateBean.getCode());\r\n }else{\r\n JTextField txtState = (JTextField)cmbState.getEditor().getEditorComponent();\r\n departmentPersonFormBean.setState(txtState.getText().trim());\r\n }\r\n //Added for Person Enhancement Case#1602 - Contact Info End 5\r\n \r\n } catch(Exception exception) {\r\n exception.printStackTrace();\r\n }\r\n \r\n }", "title": "" }, { "docid": "6772e8c37fec521276f3bf420573e6f5", "score": "0.49963412", "text": "public java.lang.Object getContactID() {\n return contactID;\n }", "title": "" }, { "docid": "6772e8c37fec521276f3bf420573e6f5", "score": "0.49963412", "text": "public java.lang.Object getContactID() {\n return contactID;\n }", "title": "" }, { "docid": "7e475fc20fea71c6be3c0562992d0651", "score": "0.49781045", "text": "public IFormField setValue( Object value );", "title": "" }, { "docid": "b30235c52f2fdee5bdc0b74ed7f9923f", "score": "0.4971919", "text": "@Override\n public Object getAsObject(FacesContext context, UIComponent component, String value) {\n \n if( value.isEmpty() )\n return null;\n \n Long id = Long.valueOf( value );\n Grupa g;\n if( id != 0L) \n g = grupaRepo.findOne(id);\n else\n g = null; //p = new Projekt();\n return g;\n }", "title": "" }, { "docid": "1ef33acdcd0d1eb2ac070992d40a1eec", "score": "0.49578524", "text": "public String getOidValue()\n {\n return oidCombo.getText();\n }", "title": "" }, { "docid": "f9969aa97ab7eb65f281491b559a07e9", "score": "0.49536985", "text": "private static void editValue() {\n int row = m_entityTable.getSelectedRow();\n if (row == -1) {\n System.out.println(\"no selection\");\n return;\n }\n int entityType = PDSGUIController.getEntityList().getEntityTableModel().getRowType(row);\n String entityName = (String) PDSGUIController.getEntityList().getEntityTableModel().getValueAt(row, 0);\n String entityValue = (String) PDSGUIController.getEntityList().getEntityTableModel().getValueAt(row, 1);\n new PDSEditEntityDialog(new JFrame(), true, entityName, PDSEntityValueTypes.convert(entityType), entityValue).show();\n }", "title": "" }, { "docid": "ec26ae8e9a0594a971bc0bef9616e596", "score": "0.49360114", "text": "@GetMapping(\"/editContactDetails\")\n\tpublic String showFormForUpdate(@RequestParam(\"contactId\") Integer contactId,Model model) {\n\t\tContactDetails contactDetailsById = contactDetailsService.getContactDetailsById(contactId);\n\t\tif(contactDetailsById != null) {\n\t\t\tmodel.addAttribute(\"contactForm\", contactDetailsById);\n\t\t}\t\t\n\t\treturn AppConstants.CONTACTFORM;\n\t}", "title": "" }, { "docid": "115e26483a15ef58c997df7f91ee18cb", "score": "0.49341178", "text": "public AgPerson.Builder setId(java.lang.CharSequence value) {\n validate(fields()[0], value);\n this.id = value;\n fieldSetFlags()[0] = true;\n return this; \n }", "title": "" }, { "docid": "86026d665af4b22c5f196c37f39f5e92", "score": "0.4918892", "text": "public String getContactId() {\n return contactId;\n }", "title": "" }, { "docid": "02b5904139f5412f6af9dd4cde1fdbc0", "score": "0.49047345", "text": "public String getPatientId(){\n return patientId.getText();\n }", "title": "" }, { "docid": "64d2dbdf0c067785ec814bb45c0875c7", "score": "0.48844582", "text": "public String getEmail_From_Uid() \n{\nreturn (String)get_Value(\"Email_From_Uid\");\n}", "title": "" }, { "docid": "64d2dbdf0c067785ec814bb45c0875c7", "score": "0.48844582", "text": "public String getEmail_From_Uid() \n{\nreturn (String)get_Value(\"Email_From_Uid\");\n}", "title": "" }, { "docid": "64d2dbdf0c067785ec814bb45c0875c7", "score": "0.48844582", "text": "public String getEmail_From_Uid() \n{\nreturn (String)get_Value(\"Email_From_Uid\");\n}", "title": "" }, { "docid": "64d2dbdf0c067785ec814bb45c0875c7", "score": "0.48844582", "text": "public String getEmail_From_Uid() \n{\nreturn (String)get_Value(\"Email_From_Uid\");\n}", "title": "" }, { "docid": "ab687227a761a76bdaf4cb127d92eb08", "score": "0.48790792", "text": "@Override\n public String getAsString(FacesContext context, UIComponent component, Object value) {\n \n Grupa g;\n try {\n g = (Grupa)value;\n } catch ( ClassCastException e) {\n g = new Grupa();\n }\n \n return g != null ? g.getId().toString() : \"0\";\n \n }", "title": "" }, { "docid": "8d845050c382823938399ca4364d8291", "score": "0.48776734", "text": "public Object getAsObject(FacesContext context, UIComponent component,\n\t\t\tString value) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "953c7a2b7d588cdfc493a920be6b565d", "score": "0.48733056", "text": "public String getFieldValue()\n {\n return field_value.getCombo().getText();\n }", "title": "" }, { "docid": "7d46aacbf29bf38b27e134ff87ab7c18", "score": "0.48676893", "text": "public void setContactId(int contactId) { this.contactId = contactId; }", "title": "" }, { "docid": "65ab83f32fbe5587d2364504e8303338", "score": "0.48560727", "text": "@JsonSetter(\"personId\")\r\n public void setPersonId (String value) { \r\n this.personId = value;\r\n notifyObservers(this.personId);\r\n }", "title": "" }, { "docid": "7bebda7d2245ff77ee951a94b89a4fbc", "score": "0.48354882", "text": "@Override\n public void decode(FacesContext context, UIComponent component)\n {\n String clientId = component.getClientId(context);\n \n ExternalContext ext = context.getExternalContext();\n Map<String,String> paramMap = ext.getRequestParameterMap();\n \n String value = paramMap.get(clientId);\n \n ((UIForm) component).setSubmitted(value != null);\n \n if (log.isLoggable(Level.FINE) && value != null) {\n log.fine(\"JSF[\" + context.getViewRoot().getViewId()\n \t + \"] decoding form data for '\" + clientId + \"'\");\n }\n }", "title": "" }, { "docid": "73e785617419142bc73fbb40a0393213", "score": "0.4833032", "text": "private com.google.protobuf.SingleFieldBuilderV3<\n io.dstore.values.StringValue, io.dstore.values.StringValue.Builder, io.dstore.values.StringValueOrBuilder> \n getPersonIdentificationValuesFieldBuilder() {\n if (personIdentificationValuesBuilder_ == null) {\n personIdentificationValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n io.dstore.values.StringValue, io.dstore.values.StringValue.Builder, io.dstore.values.StringValueOrBuilder>(\n getPersonIdentificationValues(),\n getParentForChildren(),\n isClean());\n personIdentificationValues_ = null;\n }\n return personIdentificationValuesBuilder_;\n }", "title": "" }, { "docid": "227e7d9f7fa6b658e4b3ffa4bf06f125", "score": "0.48327392", "text": "@Override\n public void onClick(View v) {\n // pass id here\n Intent it = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI);\n startActivityForResult(it, PICK_CONTACT);\n }", "title": "" }, { "docid": "4588afaf1674209e86462123b5d184ae", "score": "0.48251006", "text": "public String getPhone() \n{\nreturn (String)get_Value(\"Phone\");\n}", "title": "" }, { "docid": "e35096f59774b31724d805035573c1e1", "score": "0.4820394", "text": "@Override\n public void fillForm(DomainObject domainObject) {\n ((IValue)panel).setValue(domainObject);\n }", "title": "" }, { "docid": "f626eed826c652bd6d76f9a1964cf2e3", "score": "0.4817068", "text": "private Integer getSelectedAdultTo() {\n\t\tif (cmbAdultTo.getSelectedItem() != null && !StringUtils.isEmpty(cmbAdultTo.getSelectedItem().getValue()))\n\t\t\treturn Integer.parseInt(cmbAdultTo.getSelectedItem().getValue().toString());\n\t\treturn null;\n\t}", "title": "" }, { "docid": "c18443f60a7b2c5eb7a2391585c475fc", "score": "0.48112103", "text": "public String getValue_txt_Phone_Number_Field(){\r\n\t\treturn txt_Phone_Number_Field.getAttribute(\"value\");\r\n\t}", "title": "" }, { "docid": "cc6e2d670f79e9586d81970d60c94223", "score": "0.48062405", "text": "public void setContactID(java.lang.Object contactID) {\n this.contactID = contactID;\n }", "title": "" }, { "docid": "cc6e2d670f79e9586d81970d60c94223", "score": "0.48062405", "text": "public void setContactID(java.lang.Object contactID) {\n this.contactID = contactID;\n }", "title": "" }, { "docid": "71f12a62d576af7ce975632b3a6bd731", "score": "0.47953317", "text": "private Object formControlValue( Object value ) {\r\n Object result = null;\r\n if ( value == null ) {\r\n result = value;\r\n } else if ( type == ControlType.INTEGER && (value instanceof Number) ) {\r\n result = new MutableDouble( ((Number) value).longValue() );\r\n } else if ( type == ControlType.FLOAT && (value instanceof Number) ) {\r\n result = new MutableDouble( ((Number) value).doubleValue() );\r\n } else {\r\n result = value;\r\n }\r\n return result;\r\n }", "title": "" }, { "docid": "eed3ff26f9dcb083dfef59e8a22a54de", "score": "0.47918302", "text": "public int getContactID() {\r\n return contactID;\r\n }", "title": "" }, { "docid": "f23855919c314f919435fdea482f7b4c", "score": "0.47906157", "text": "public Object getSelectedValue();", "title": "" }, { "docid": "e667405ddee92917e93abbd5e32bd8ab", "score": "0.47807708", "text": "private void Select(String Id,String Value) {\n\n //Selectselect= new Select (driver.findElement(locator));\n //select.selectByVisibleText(value);\n\n if (Value.toLowerCase().trim().contains(\"customercountry\")\n || Value.toLowerCase().trim().contains(\"customername\")\n || Value.toLowerCase().trim().contains(\"customerpassport\"))\n\n {\n Value=server.getParameters().get(Value).toString();\n }\n\n if (Value.contains(\"XXRead\"))\n {\n Value = dict.get(Value);\n }\n\n Select dropdown = new Select(browser.getDriver().findElement(By.id(Id)));\n dropdown.selectByVisibleText(Value);\n\n }", "title": "" }, { "docid": "df07784f6d1cf3fc6a675d0315982069", "score": "0.47678113", "text": "@GetMapping(\"/projectContactCreator/{contactID}\")\n public String projectContactCreator(@PathVariable(\"contactID\") Integer contactID, Model model) {\n ProjectDTO projectDTO = new ProjectDTO();\n projectDTO.setProjectID(contactID);\n model.addAttribute(\"projectDTO\", projectDTO);\n model.addAttribute(\"viewTable\", false);\n\n return \"projects/projectContactCreator\";\n }", "title": "" }, { "docid": "97835a4febd996b5e29f6b99b41ade08", "score": "0.47558677", "text": "public String getPhone2() \n{\nreturn (String)get_Value(\"Phone2\");\n}", "title": "" }, { "docid": "52f21bb25943363d52146e76fcec3fd2", "score": "0.47485632", "text": "@Override\r\n\tpublic Object getAsObject(FacesContext context, UIComponent component, String value) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "2ebbc39e4a39b7338e52a78c3dc71361", "score": "0.4744606", "text": "@Override\n public final int getId() {\n return thisContactId;\n }", "title": "" }, { "docid": "064e3ebb28eeb88a614f018d95331133", "score": "0.47391325", "text": "@Override\n\tpublic String getAsString(FacesContext fc, UIComponent uic, Object object) throws ConverterException {\n\t\t if(object != null) {\n\t return String.valueOf(((Professor) object).getId());\n\t }\n\t else {\n\t return null;\n\t }\n\t}", "title": "" }, { "docid": "07fe881bcdf7c64a162492bb8145bc05", "score": "0.4738692", "text": "private void comboPersonas(HTMLSelectElement combo, int numeroAccion, String impacto, int defecto, int area, boolean mostrarTodos) {\n/* 1230 */ SisUsuariosDAO pf = new SisUsuariosDAO();\n/* 1231 */ Collection arr = new ArrayList();\n/* 1232 */ if (mostrarTodos) {\n/* 1233 */ arr = pf.cargarActivoDeArea(area);\n/* */ } else {\n/* */ \n/* 1236 */ arr = pf.cargarPorCodigo(defecto);\n/* */ } \n/* */ \n/* 1239 */ Iterator iterator = arr.iterator();\n/* 1240 */ while (iterator.hasNext()) {\n/* 1241 */ SisUsuariosDTO personaDelArea = (SisUsuariosDTO)iterator.next();\n/* */ \n/* 1243 */ HTMLOptionElement op = (HTMLOptionElement)this.pagHTML.createElement(\"option\");\n/* 1244 */ op.setValue(\"\" + personaDelArea.getCodigoEmpleado());\n/* 1245 */ op.appendChild(this.pagHTML.createTextNode(personaDelArea.getApellidos() + \" \" + personaDelArea.getNombres()));\n/* */ \n/* 1247 */ if (defecto == personaDelArea.getCodigoEmpleado()) {\n/* 1248 */ Attr escogida = this.pagHTML.createAttribute(\"selected\");\n/* 1249 */ escogida.setValue(\"on\");\n/* 1250 */ op.setAttributeNode(escogida);\n/* */ } \n/* */ \n/* 1253 */ combo.appendChild(op);\n/* */ } \n/* */ }", "title": "" }, { "docid": "297c542969c317feddc60d350976c293", "score": "0.47353154", "text": "public DepartmentPersonFormBean display(){\r\n dlgAddPerson.setVisible(true);\r\n if (recordAdded) {\r\n return departmentPersonFormBean;\r\n } else {\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "1fb1bdbaef845d7d383f9d0ca0f9e466", "score": "0.4720317", "text": "@Override\n\tpublic String getValue() {\n\t\tString val=\"\";\n\t\ttry {\n\t\t\tval=_options.getJSONObject(_spinner.getSelectedItemPosition()).getString(\"value\");\n\t\t} catch (JSONException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif(_property.has(TypeFieldProperty.Remember.toString()))\n\t\t{\n\t\t\tAppState.preference.setString(\"form_\"+_field_name, val);\n\t\t}\n\t\treturn val;\n\t}", "title": "" }, { "docid": "42031ee14e4b6a026f79dde5ff78fc80", "score": "0.47191405", "text": "public String getEmail_Info_To() \n{\nreturn (String)get_Value(\"Email_Info_To\");\n}", "title": "" }, { "docid": "42031ee14e4b6a026f79dde5ff78fc80", "score": "0.47191405", "text": "public String getEmail_Info_To() \n{\nreturn (String)get_Value(\"Email_Info_To\");\n}", "title": "" }, { "docid": "42031ee14e4b6a026f79dde5ff78fc80", "score": "0.47191405", "text": "public String getEmail_Info_To() \n{\nreturn (String)get_Value(\"Email_Info_To\");\n}", "title": "" }, { "docid": "42031ee14e4b6a026f79dde5ff78fc80", "score": "0.47191405", "text": "public String getEmail_Info_To() \n{\nreturn (String)get_Value(\"Email_Info_To\");\n}", "title": "" }, { "docid": "6416dadf6d5eb6dbc6f3b9f58df7b92d", "score": "0.4717619", "text": "@Override\n public Object convertFormValueToModelValue(String propertyValue) {\n return propertyValue;\n }", "title": "" }, { "docid": "ac8cbd1d8fe5a931747331867934eb6d", "score": "0.47104603", "text": "public void editContact() {\n\n System.out.println(\"Select customer id to edit : \");\n\n int id = scanner.nextInt();\n User u = getContactById(id);\n\n //Optional<User> userOpt = getContactById(userId);\n\n\n for (User u : contacts) {\n\n if( u.getUserID() == userId ) {\n\n switch (scanner.nextLine()) {\n case \"first name\" :\n String name = scanner.nextLine();\n if(isName(name) ){\n u.setFirstName(name); }\n break;\n case \"last name\" :\n u.setLastName( editName(scanner.nextLine()) );\n break;\n case \"email\" :\n u.setEmail( editEmail(scanner.nextLine()) );\n break;\n case \"age\" :\n u.setAge( editAge(scanner.nextInt()) );\n break;\n case \"phone\" :\n u.setPhoneNumbers(editPhone(scanner.nextLine(), scanner.nextLine(), scanner.nextLine()));\n break;\n case \"adress\" :\n u.setAddress(editAddress(scanner.nextLine(), scanner.nextInt(), scanner.nextInt(), scanner.nextLine(),\n scanner.nextLine(), scanner.nextLine(), scanner.nextLine()));\n break;\n case \"job\" :\n\n u.setJobTitle(editJob(scanner.nextLine()));\n break;\n case \"company\" :\n u.setCompany( editCompany(scanner.nextLine(), scanner.nextLine(), scanner.nextInt(),\n scanner.nextInt(), scanner.nextLine(), scanner.nextLine(), scanner.nextLine(), scanner.nextLine() ));\n break;\n case \"favorite\" :\n u.setFavorite(isFavorite(scanner.hasNextBoolean()));\n break;\n default:\n System.out.println(\"Invalid input.\");\n // metoda recursiva, se cheama singura\n // editContact\n\n\n }\n }\n }\n // input scanner -> make switch\n\n\n\n\n System.out.println(\"Contact not found.\");\n\n }", "title": "" }, { "docid": "4908730d3564d3f16d959db486d6d14c", "score": "0.470593", "text": "public Builder setPersonIdentificationValues(io.dstore.values.StringValue value) {\n if (personIdentificationValuesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n personIdentificationValues_ = value;\n onChanged();\n } else {\n personIdentificationValuesBuilder_.setMessage(value);\n }\n\n return this;\n }", "title": "" }, { "docid": "90faf34581972f5c3a55fff3107de581", "score": "0.46932167", "text": "public int getContactID() {\n return contactID;\n }", "title": "" }, { "docid": "90faf34581972f5c3a55fff3107de581", "score": "0.46932167", "text": "public int getContactID() {\n return contactID;\n }", "title": "" }, { "docid": "c97c7467cacb180c2f94cd2ede119577", "score": "0.46929717", "text": "String getCurrentSelectedParamerterObjId();", "title": "" }, { "docid": "edbba2e2074649889ce03652f45f7ca6", "score": "0.46749943", "text": "private void setFormComponentValue(FormComponent formComponent, String value)\r\n \t{\r\n \t\tbaseWicketTester.getServletRequest().setParameter(formComponent.getInputName(), value);\r\n \t}", "title": "" }, { "docid": "795b55fca8299f6cf69134c189da9258", "score": "0.46733958", "text": "private Contact selectContact(int contactId){\n for(Contact contact: contacts){\n if(contact.getId() == contactId){\n return contact;\n }\n }\n return null;\n }", "title": "" }, { "docid": "c13a249c61d9420d6edbd2dfa0c1cdf8", "score": "0.46565676", "text": "@Override\n public void onActivityResult(int reqCode, int resultCode, Intent data) {\n super.onActivityResult(reqCode, resultCode, data);\n\n if (reqCode == PICK_CONTACT) {\n if (resultCode == RESULT_OK) {\n Uri contactData = data.getData();\n Cursor c = getActivity().getContentResolver().query(contactData, null, null, null, null);\n\n if (c.moveToFirst()) {\n String name = c.getString(c.getColumnIndexOrThrow(ContactsContract.Contacts.DISPLAY_NAME));\n Toast.makeText(getContext(), \"You've picked:\" + name, Toast.LENGTH_LONG).show();\n ContentResolver cr = getActivity().getContentResolver();\n Cursor cursor = cr.query(ContactsContract.Contacts.CONTENT_URI, null,\n \"DISPLAY_NAME = '\" + name + \"'\", null, null);\n if (cursor.moveToFirst()) {\n String contactId =\n cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts._ID));\n //\n // Get all phone numbers.\n //\n Cursor phones = cr.query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null,\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID + \" = \" + contactId, null, null);\n while (phones.moveToNext()) {\n String number = phones.getString(phones.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));\n number = number.replaceAll(\"\\\\s\", \"\");\n number = number.replaceAll(\"-\", \"\");\n actContact.setText(Miscellaneous.removeCountryCode(number));\n }\n phones.close();\n }\n cursor.close();\n\n }\n\n\n }\n }\n }", "title": "" }, { "docid": "b5ac6e90c70a558f39c726be298154f8", "score": "0.46531653", "text": "public String getCustomerNo() \n{\nreturn (String)get_Value(\"CustomerNo\");\n}", "title": "" }, { "docid": "b5ac6e90c70a558f39c726be298154f8", "score": "0.46531653", "text": "public String getCustomerNo() \n{\nreturn (String)get_Value(\"CustomerNo\");\n}", "title": "" }, { "docid": "b5ac6e90c70a558f39c726be298154f8", "score": "0.46531653", "text": "public String getCustomerNo() \n{\nreturn (String)get_Value(\"CustomerNo\");\n}", "title": "" }, { "docid": "b5ac6e90c70a558f39c726be298154f8", "score": "0.46531653", "text": "public String getCustomerNo() \n{\nreturn (String)get_Value(\"CustomerNo\");\n}", "title": "" }, { "docid": "f275040142ac8df517ef7317a3a3f5d5", "score": "0.46496215", "text": "public void setContactID(int contactID) {\r\n this.contactID = contactID;\r\n }", "title": "" }, { "docid": "6f718ac049d73c6e519a3efb9c2a4c18", "score": "0.46440193", "text": "public Integer getContactId() {\n return contactId;\n }", "title": "" }, { "docid": "dd15cd4c29108add0fab6f8990658a6b", "score": "0.46409753", "text": "@Override\r\n\tpublic Object convertValue(Map<String, Object> context, Object value, Class toType) {\n\t\tif(toType == String.class){\r\n\t\t\tOrg org = (Org)value;\r\n\t\t\treturn (Object) org.getOrgName() + \",\" + org.getBz() + \",\" + org.getZfbz();\r\n\t\t}\r\n\t\tif(toType == Org.class){\r\n\t\t\tString pm[] = (String[]) value;\r\n\t\t\tString v = pm[0];\r\n\t\t\tString tag[] = v.split(\",\");\r\n\t\t\tOrg org = new Org();\r\n\t\t\tfor(int i=0;i<tag.length;i++){\r\n\t\t\t\tif(i==0){\r\n\t\t\t\t\torg.setOrgName(tag[i]);\r\n\t\t\t\t}\r\n\t\t\t\tif(i==1){\r\n\t\t\t\t\t\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\torg.setBz(new SimpleDateFormat(\"yyyy-MM-dd\").parse(tag[i]+\"\"));\r\n\t\t\t\t\t} catch (ParseException 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}\r\n\t\t\t\tif(i==2){\r\n\t\t\t\t\torg.setZfbz(Integer.parseInt(tag[i]));\r\n\t\t\t\t}\r\n\t\t\t\tif(i==3){\r\n\t\t\t\t\torg.setEmail(tag[i]);;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn org;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "72daefa0be49588bd0e52d9c05f6e266", "score": "0.46342817", "text": "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode == REQ_PICK_CONTACT) {\n if (resultCode == RESULT_OK) {\n Uri contactData = data.getData();\n Cursor cursor = managedQuery(contactData, null, null, null, null);\n cursor.moveToFirst();\n\n String number = cursor.getString(cursor.getColumnIndexOrThrow(ContactsContract.CommonDataKinds.Phone.NUMBER));\n Commons.user.setPhone(number);\n }\n }\n }", "title": "" }, { "docid": "afbd1e384f3a78528d760f324fa4e11f", "score": "0.46156496", "text": "public int getContactId() {\n return contactId;\n }", "title": "" }, { "docid": "afbd1e384f3a78528d760f324fa4e11f", "score": "0.46156496", "text": "public int getContactId() {\n return contactId;\n }", "title": "" }, { "docid": "001fbd15d05d14625e8ebb4d592da6c6", "score": "0.46108726", "text": "public Integer getContact_ID() {\n return Contact_ID;\n }", "title": "" }, { "docid": "3866c472c595de87ca7e4c3122ab4640", "score": "0.46107706", "text": "protected abstract void assignValueToFormComponent(FormComponent formComponent, String value);", "title": "" }, { "docid": "68a7114487517bb5844412606697d59a", "score": "0.4609863", "text": "public void setContactId(int ContactId);", "title": "" }, { "docid": "65adf81dd470c9bc7add83fa387cfa12", "score": "0.46087936", "text": "@Override\n public Proyecto getAsObject(FacesContext context, UIComponent component, String value) {\n List<Proyecto> proyectos = (List<Proyecto>) context.getApplication().evaluateExpressionGet(context, \"#{proyectoBean.proyectosUsuarioSesion}\", List.class);\n for (Proyecto proyecto : proyectos)\n if (proyecto.toString().equals(value))\n return proyecto;\n return null;\n }", "title": "" }, { "docid": "237b55069c4da564b6991024f1915c33", "score": "0.4606194", "text": "@Override\r\n\tpublic Object createValue( String componentName, IJp2pProperties id ){\r\n\t\treturn id.toString();\r\n\t}", "title": "" }, { "docid": "73579ed9e50de4577e46b3cedfafa11d", "score": "0.46057826", "text": "public int getContactId();", "title": "" }, { "docid": "3e403c8a7fe2aaac355cf99de045cec1", "score": "0.46045348", "text": "@Override\n public ActionForward execute(ActionMapping mapping, ActionForm form,\n HttpServletRequest request, HttpServletResponse response)\n throws Exception {\n\n String id = request.getParameter(\"id\");\n int subjectID = Integer.parseInt(id);\n ResourceBO resourceBO = ResourceBO.getResourceBO();\n List<Resource> chapters = resourceBO.getAllResource(subjectID,7);\n response.setCharacterEncoding(\"UTF-8\");\n response.getWriter().println(\"<select class=\\\"combobox\\\" id=\\\"dropOrderChapterSubject\\\" name=\\\"dropOrderChapterSubject\\\">\"); \n for (int i = 0; i < chapters.size(); i++) {\n Resource resource = chapters.get(i);\n response.getWriter().println(\"<option value = \"+ resource.getOrderChapter() +\" >\");\n response.getWriter().println(resource.getOrderChapter());\n response.getWriter().println(\"</option>\");\n }\n response.getWriter().println(\"</select>\"); \n return null;\n }", "title": "" }, { "docid": "e7a1991286755bd7c2b3e2ea184662d3", "score": "0.4598278", "text": "public Builder mergePersonIdentificationValues(io.dstore.values.StringValue value) {\n if (personIdentificationValuesBuilder_ == null) {\n if (personIdentificationValues_ != null) {\n personIdentificationValues_ =\n io.dstore.values.StringValue.newBuilder(personIdentificationValues_).mergeFrom(value).buildPartial();\n } else {\n personIdentificationValues_ = value;\n }\n onChanged();\n } else {\n personIdentificationValuesBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "title": "" }, { "docid": "8761629a9471e162a8f963778b6ec315", "score": "0.45960057", "text": "private User getDetailData() {\n //get values from the form to be added to the user table\n user.setSurname(txtSurname.getText());\n user.setIdcardno(txtRegNo.getText());\n user.setFirstname(txtFirstname.getText());\n user.setMiddlename(txtMiddlename.getText());\n user.setGender(buttonGroup1.getSelection().getActionCommand());\n user.setAddress(txtAddress.getText());\n user.setDepartment(cboDepartment.getSelectedItem().toString());\n user.setPhoneno(txtPhone.getText());\n user.setUserCategory(buttonGroup2.getSelection().getActionCommand());\n\n // format the text from the Calendar\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n\n try {\n\n dateRegistered = format.format(dateChooser.getDate());\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n user.setDateRegistered(dateRegistered);\n\n return user;\n }", "title": "" }, { "docid": "1390582079b31f2171849116cefb2b5e", "score": "0.45874944", "text": "public io.dstore.values.StringValue.Builder getPersonIdentificationValuesBuilder() {\n \n onChanged();\n return getPersonIdentificationValuesFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "60fb34bb0536abf65bd36777c0ddeee5", "score": "0.45858797", "text": "public void valueChange(ValueChangeEvent event) {\n \tselectedCustomer = (Customer2)event.getProperty().getValue();\n \t\n \tif(selectedCustomer != null){\n \t\tBeanItem<Customer2> customerBeanItem = new BeanItem<Customer2>(selectedCustomer);\n \t\tcustomerBeanForm.setItemDataSource(customerBeanItem);\n \t\tcustomerBeanForm.setWriteThrough(true);\n \t\tformatCustomerBeanForm();\n \t\t\t}\n }", "title": "" }, { "docid": "18904a5bd510d47fc8bc31030a318b3e", "score": "0.4584867", "text": "public ProfileForm(SalesPerson salesPerson) {\n this.id = salesPerson.getId();\n this.firstName = salesPerson.getFirstName();\n this.secondName = salesPerson.getSecondName();\n this.street = salesPerson.getStreet();\n this.streetNumber = salesPerson.getStreetNumber();\n this.zip = salesPerson.getZip();\n this.city = salesPerson.getCity();\n this.phone = salesPerson.getPhone();\n this.country = salesPerson.getCountry();\n this.email = salesPerson.getEmail();\n this.iban = salesPerson.getIban();\n this.bic = salesPerson.getBic();\n }", "title": "" }, { "docid": "66dbe0b6d1880b2022ac66cfb93285fc", "score": "0.45838627", "text": "public String getValue_txt_Email_Address_Field(){\r\n\t\treturn txt_Email_Address_Field.getAttribute(\"value\");\r\n\t}", "title": "" }, { "docid": "1f315d130de7486892a6568e77cae091", "score": "0.45820516", "text": "public void contactCBSet() {\n // try-catch deals with scenario in which nothing is selected.\n try {\n AddAppointmentController.selectedContact = contactCB.getSelectionModel().getSelectedItem();\n }\n catch (NullPointerException ignored) {\n }\n }", "title": "" }, { "docid": "5c54b1fa387ae0e36c7b408483bb3e02", "score": "0.4580904", "text": "private void enterPatientIDOrName(String nameOrID) {\n setTextToField(By.id(searchTxtBox),nameOrID);\n }", "title": "" }, { "docid": "7a85e7be01b82b037d4bf620965f2e9e", "score": "0.4574304", "text": "public int getSelectedObject(){\n return selectedObjectId;\n }", "title": "" }, { "docid": "dcce9a7b5113f52e0fa1c689e22b29f2", "score": "0.45669103", "text": "public String getDisplayableSelectedValue();", "title": "" }, { "docid": "74fa222202ff09f51f6231b5ecccf37a", "score": "0.45656097", "text": "public Builder setPersonIdentificationValues(\n io.dstore.values.StringValue.Builder builderForValue) {\n if (personIdentificationValuesBuilder_ == null) {\n personIdentificationValues_ = builderForValue.build();\n onChanged();\n } else {\n personIdentificationValuesBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "title": "" }, { "docid": "2bffd1c1f4ae2a20c6389f3dbfb6f83b", "score": "0.45603594", "text": "DeptContact selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "d9ddffb4bf1c8bf7a2f2dd8c0206a401", "score": "0.45528483", "text": "public void setContactID(int contactID) {\n this.contactID = contactID;\n }", "title": "" }, { "docid": "5fb50b869a19338a800ab1fe58b3c0f6", "score": "0.45510763", "text": "protected <T extends Contact> T fillContact(T contact, ContactDto dto) {\n contact.setId(dto.getId());\n contact.setNotes(Optional.ofNullable(dto.getNotes()).orElse(\"\"));\n dto.setNotes(null);\n contact.setJson(objectMapper.convertValue(dto, JsonNode.class));\n return contact;\n }", "title": "" }, { "docid": "1ab0b96f0e0f01e73424881021cbbce8", "score": "0.45440465", "text": "public void setCompetitionId(ObjectToId pCompetitionId) {\r\n\t\tcompetitionId = pCompetitionId;\r\n\t}", "title": "" }, { "docid": "43bc23a62f9050d2b9bc86fc155feb54", "score": "0.4537247", "text": "public void onEdit() {\n if (enfcons.getSelectionModel().getSelectedItem() != null) {\n AdmEnf selectedOne = enfcons.getSelectionModel().getSelectedItem();\n id=Integer.toString(selectedOne.getId());\n pid=selectedOne.getId();\n\n\n\n ParentModifier.getid(pid);\n //\n\n\n }\n }", "title": "" }, { "docid": "1c5622f74b93c28cc44ebc4fd55d4e8d", "score": "0.4534959", "text": "@Override\n\tpublic UserContact select(String contactId) {\n\t\treturn userContactDao.selectByPrimaryKey(contactId);\n\t}", "title": "" }, { "docid": "9b8a90b58568ed8840269560ccfc48d8", "score": "0.45329413", "text": "public void getSelectId(String id1, Model model) {\n\t\tString userId = sessionRepository.getSelectId(id1);\n\t\tmodel.addAttribute(\"userId\", id1);\n\t\tif(userId == null) {\n\t\t\tSystem.out.println(\"aaaa\");\n\t\t\tmodel.addAttribute(\"msg\", \"사용가능한 id입니다.\");\n\t\t\tmodel.addAttribute(\"num\", 2);\n\t\t}else {\n\t\t\tmodel.addAttribute(\"msg\", \"사용중인 id입니다. 다시작성해 주세요.\");\n\t\t\tmodel.addAttribute(\"num\", 1);\n\t\t}\n\t}", "title": "" }, { "docid": "65a719d3c267f76f8e7ec0c7cfc1ad1d", "score": "0.4529793", "text": "public String getEditContactName() {\n\n System.out.println(\"Enter Contact Name To Edit : \");\n String contactName = sc.next();\n\n return contactName;\n }", "title": "" }, { "docid": "d355f24f9622ee8f7affde29b1152853", "score": "0.45279935", "text": "public void handleContactPicker(int resultCode, Intent data) {\n if (resultCode == Activity.RESULT_OK) {\n List<Contact> contacts =\n data.getParcelableArrayListExtra(ContactsActivity.EXTRA_CONTACTS);\n\n for (Contact contact : contacts) {\n Attendee user = new Attendee(contact.id);\n\n String[] emails = contact.getEmails();\n if (emails != null && emails.length > 0) {\n user.email = emails[0];\n }\n\n String[] phones = contact.getPhones();\n if (phones != null && phones.length > 0) {\n user.phoneNumber = phones[0];\n }\n\n user.firstName = contact.firstName;\n user.lastName = contact.lastName;\n\n if (user.firstName == null && user.lastName == null) {\n user.firstName = contact.displayName;\n }\n\n if (!event.attendees.contains(user)) {\n event.attendees.add(user);\n createGuest(contact);\n }\n }\n }\n }", "title": "" }, { "docid": "e4982b8b9179ac0aff6d0aa3217301dc", "score": "0.45219842", "text": "public void cleanVehiclesIdsFields(){\r\n\t\t// 1. Remove all options\r\n\t\tcomboBoxVehiclesId.removeAllItems();\r\n\t\t\r\n\t\t// 2. Put just the default one\r\n\t\tcomboBoxVehiclesId.addItem(controlPanel._T(\"Choose_vehicles_id_field\"));\r\n\t}", "title": "" } ]
d7e1e107c92888bfcd3f20582b8913fd
Sets the selected track as the current track
[ { "docid": "c3181b424c53aa2935cadef55909c297", "score": "0.5415742", "text": "public void setCurrent(final boolean current) {\r\n if (current != _current) {\r\n _current = current;\r\n invalidate();\r\n }\r\n }", "title": "" } ]
[ { "docid": "4789e86a11dcf5fa8ac2a071a6714d56", "score": "0.7679216", "text": "public void setCurrentTrack(Track currentTrack) {\n this.currentTrack = currentTrack;\n }", "title": "" }, { "docid": "406962e7303350bc56e1ecc85b369040", "score": "0.7399519", "text": "public void setSelectedTrack(Track trackToSelect) {\n\t\tif (trackToSelect != null) {\n\t\t\t// unselect the previous track\n\t\t\tif (selectedTrack != null) {\n\t\t\t\tselectedTrack.setSelected(false);\n\t\t\t}\n\t\t\t// select the dragged over track\n\t\t\tselectedTrack = trackToSelect;\n\t\t\tselectedTrack.setSelected(true);\n\t\t}\n\t}", "title": "" }, { "docid": "6e81358ad260381ce5a52721b396d43d", "score": "0.6816525", "text": "public void setCurrTrack(Track currTrack){\r\n this.currTrack = currTrack;\r\n }", "title": "" }, { "docid": "fa3d0cb04f8b94366ab4e8b488bebe4f", "score": "0.64199144", "text": "void trackSelected(int position, AppArtist artist);", "title": "" }, { "docid": "f90b9c3dcd15d28cd58103a557a2d9cf", "score": "0.63197386", "text": "public void setEntryWithFocusAsCurrent() {\r\n final int index = getFieldWithFocusIndex();\r\n if (index != getPlaylistIndex()) {\r\n ((MediaPlayerDemo) _handler).setCurrentTrackIndex(index);\r\n _handler.mediaAction(MediaPlayerDemo.MEDIA_ACTION_CHANGE_TRACK,\r\n MediaPlayerDemo.MEDIA_ACTION_SOURCE_UI, null);\r\n }\r\n }", "title": "" }, { "docid": "f6b9e26d8fd90c3fb2313da0a27ff2cd", "score": "0.6231401", "text": "public void setSelected(Boolean selected){\n\n this.selected = selected;\n setChanged();\n if(selected){\n\n notifyObservers(VideoStates.SELECTED);\n }\n else{\n\n notifyObservers(VideoStates.UNSELECTED);\n }\n\n }", "title": "" }, { "docid": "8400f1fbec117145d9c1efb41a682ac0", "score": "0.6203193", "text": "public void playCurrentTrack() {\n setUpCurrentTrack();\n currentProcessor.play();\n }", "title": "" }, { "docid": "510b0e935015a1f80189fe6e145fe1e2", "score": "0.6192026", "text": "public SelectButton(UITrack uiTrack) {\n final MusicPlayer mp = MusicPlayer.getInstance();\n Track track = uiTrack.getTrack();\n if (track.equals(mp.getCurrentTrack())) {\n setStyle(\"-fx-background-color: #8290ed; -fx-text-fill: White\");\n } else {\n setStyle(\"-fx-background-color: White\");\n }\n setAlignment(Pos.CENTER_LEFT);\n setText(uiTrack.getTrack().toString().replace(\"_\", \" \"));\n setPrefWidth(10000);\n setOnAction(event -> {\n if (!mp.getCurrentTrack().equals(uiTrack.getTrack()) || !mp.isPlaying()) {\n mp.selectTrack(track);\n mp.play();\n uiTrack.update();\n }\n });\n }", "title": "" }, { "docid": "d3927a67b89ab9235adad64c89331767", "score": "0.6135758", "text": "void setSelection(Player player, Selection selection);", "title": "" }, { "docid": "fa952fc66d1aa1a977c52c4488b0b4e0", "score": "0.6068702", "text": "private void setFirstSong() {\n playSongs(track);\n updateText();\n }", "title": "" }, { "docid": "91c93495011f31dd2d4a041e792c61b5", "score": "0.6062642", "text": "public void setTrack(Track item) {\n track = item;\n Log.i(TAG + \"Request\", \"Track was set: \" + track.name);\n\n if(!requestAudioFocus()){\n updateMetadata();\n return;\n }\n\n mediaSession.setActive(true);\n pushTrackToCast(true,0);\n spotifyPlayer.playUri(mOperationCallback, track.uri, 0, 0);\n spotifyPlayer.setPlaybackBitrate(mOperationCallback, PlaybackBitrate.BITRATE_LOW);\n\n updateMetadata();\n }", "title": "" }, { "docid": "34d6333b17b22af0f30c61ae68296a2c", "score": "0.6017765", "text": "public void setUpCurrentTrack() {\n if (currentProcessor != null) {\n currentProcessor.unload();\n }\n currentProcessor = new TrackProcessor(attributes);\n pcc = App.getController().getPlayerControlsController();\n pcc.setPcs(currentProcessor);\n\n try {\n currentProcessor.load(currentTrack, 1.0, 1.0);\n } catch (EncoderException | LineUnavailableException e) {\n log.error(\"Thread interrupted\");\n log.trace(StackTrace.stackTrace(e));\n }\n\n // Wait for track processor to be ready\n while (currentProcessor.getState() != PlayerState.READY) {\n try {\n Thread.sleep(10);\n } catch (InterruptedException e) {\n log.error(\"Thread interrupted\");\n log.trace(StackTrace.stackTrace(e));\n }\n }\n }", "title": "" }, { "docid": "987bf59735bfe5a1bf7be2df90ccf784", "score": "0.60011375", "text": "public Track getCurrentTrack(){\n return mCurrentTrack;\n }", "title": "" }, { "docid": "33cef9a205b2c6774338ccfcd78999a6", "score": "0.59707", "text": "public Track getCurrentTrack(){\n return track;\n }", "title": "" }, { "docid": "d4c6bede5b92e6d2d00c2c1c1c8f9014", "score": "0.58704025", "text": "private void onCurrentTrackChanged(Observable observable)\n {\n lblCurrentTrackName.setText(trackManager.getCurrentTrack().getName());\n lblCurrentTrackArtist.setText(trackManager.getCurrentTrack().getArtist());\n lblCurrentTrackAlbum.setText(trackManager.getCurrentTrack().getAlbum());\n lblCurrentTrackYear.setText(trackManager.getCurrentTrack().getYear());\n }", "title": "" }, { "docid": "a14733ff5a26a64457aadf303bb7e9c0", "score": "0.5848142", "text": "public Track getCurrentTrack() {\n return currentTrack;\n }", "title": "" }, { "docid": "611bf85c4b7218efe5e038ce2e8ff257", "score": "0.5808779", "text": "@Override\n\tpublic void update() {\n\t\ttrack = geo.getCurrentTrack();\n\t}", "title": "" }, { "docid": "dd9ff4b788dfe8abf2b495fe3e9f8466", "score": "0.5792042", "text": "public void setSelected(T selected) {\n this.selected = selected;\n }", "title": "" }, { "docid": "588ecfd1bc22cfe83ca59165f3d1bceb", "score": "0.57836604", "text": "public void setModelAndSong(TunesModel model, Songs selectedSong) {\n this.model=model;\n this.selectedSong=selectedSong;\n fillArea();\n }", "title": "" }, { "docid": "859f12a3dcffc5013ee6fff0ab8b8f74", "score": "0.57001233", "text": "public void editTrack(Track track) {\n\t\t\n\t}", "title": "" }, { "docid": "6e2041c81319f419a605f533cafd374c", "score": "0.5687454", "text": "public void setCurrent(ProgramSlot obj) {\n current = obj;\n }", "title": "" }, { "docid": "e14622627f16b6c3c4137175bae92cb3", "score": "0.5682545", "text": "public void setVehicleSelected(VehicleDAO vehicleSelected) {\n this.vehicleSelected = vehicleSelected;\n System.out.println(\"new Vehicle selected to track\");\n }", "title": "" }, { "docid": "3911edeaa3db32006f5d4db330b90958", "score": "0.56449616", "text": "public abstract Trackable setTrackable(Trackable newT);", "title": "" }, { "docid": "04be4aec3a688055d7d1ed46685ae795", "score": "0.56146103", "text": "private void currentSong(int currentPos) {\n song = songList.get(currentPos);\n setTitle(song.getSongTitle());\n\n songTitle.setText(song.getSongTitle());\n songAuthor.setText(song.getAuthorName());\n myCurrentSong = song.getMyMusic();\n }", "title": "" }, { "docid": "2b800099d04c6a53e689016a6f0db942", "score": "0.5610955", "text": "public void setCurrent(boolean current) { this.current = current; }", "title": "" }, { "docid": "30777fa90f73aac2d0db7a9b7004cbfa", "score": "0.56063133", "text": "void setPositionSelected(int target);", "title": "" }, { "docid": "d074d890b601d5e7fd0bab08e899db50", "score": "0.5596057", "text": "public void setSelected(boolean way) {\r\n if (way) {\r\n select();\r\n } else {\r\n deselect();\r\n }\r\n }", "title": "" }, { "docid": "016f258d2d011b7bd9f7fa118b801aec", "score": "0.5593103", "text": "@Override\n\tpublic void setCurrent(boolean current) {\n\t\tmodel.setCurrent(current);\n\t}", "title": "" }, { "docid": "c291de18bdf7f0d09010488e11294c91", "score": "0.55885744", "text": "public static void setSong(Song newSong) {\n nowPlayingSong = newSong ;\n }", "title": "" }, { "docid": "600283446221f64b9d273aae267e0a3f", "score": "0.5569381", "text": "protected void setSelected(File selected) {\n\t\tthis.selected = selected;\n\t\tthis.state.updateStateMachine();\n\t}", "title": "" }, { "docid": "b42e8961eaa3d5178f37e1fd4b357319", "score": "0.55678886", "text": "public void setSelected(boolean selected)\n {\n if (this.selected != selected) // can only be selected once\n {\n this.selected = selected;\n switch (orientation)\n {\n case Hand.SOUTH: setY(getY() + (selected ? -20 : 20));\n break;\n case Hand.NORTH: setY(getY() - (selected ? -20 : 20));\n break;\n case Hand.WEST: setX(getX() + (selected ? 20 : -20));\n break;\n case Hand.EAST: setX(getX() - (selected ? 20 : -20));\n break;\n }\n }\n }", "title": "" }, { "docid": "8a4f98cd47fe71a64f684376d3a0d56f", "score": "0.55583507", "text": "@Override\n public void valueChanged(ListSelectionEvent e) {\n selectedIndex = playlistView.getSelectedIndex();\n }", "title": "" }, { "docid": "488a0e3726fba896587f8bac529cd26e", "score": "0.5557902", "text": "public void setSelectedVideo(VideoFile vFile) {\n\t\tcurrentVFile = vFile;\n\t}", "title": "" }, { "docid": "f330470cff47738b01a7bb32a2e28cab", "score": "0.5550816", "text": "public void onTrackSelected(Uri artistTopTracksUri);", "title": "" }, { "docid": "694c33325a1277617e3462cf9a8bc0c8", "score": "0.5547209", "text": "private void onTourSelected(ObservableValue<? extends Tour> obs, Tour oldSelection, Tour newSelection) {\n //the selected item is assigned to selectedTour\n selectedTour = newSelection;\n\n //if the same thing was selected: do nothing\n if (oldSelection == newSelection)\n return;\n }", "title": "" }, { "docid": "fd87f91cdf2d56675e307f8abe7576ed", "score": "0.5545439", "text": "public void setCurrent() { curLib = this; }", "title": "" }, { "docid": "35e3a1fd6a9b92919e4700a426dc1e9c", "score": "0.5537597", "text": "public void previousTrack() {\n\t\tiTunes.invoke(\"PreviousTrack\");\n\t}", "title": "" }, { "docid": "f7c34b2e73ca94b3da5d4ebd815b00df", "score": "0.55173314", "text": "public void setCurrentPlayer(int player) {\n currentPlayer = player;\n }", "title": "" }, { "docid": "1f5b9e75c3dae581d6c307fe390ad9d5", "score": "0.55108774", "text": "@Override\n\t\t\tpublic void elementaryStreamSelected(MediaPlayer mediaPlayer, TrackType type, int id) {\n\n\t\t\t}", "title": "" }, { "docid": "41430ac3d2baec33d6193a7c08e58299", "score": "0.5504401", "text": "private void loadCurrentTrack () {\n path = new File(\"D:\\\\files\\\\music\\\\Bastille – World Gone Mad.mp3\");\n media = new Media (path.toURI().toString());\n mediaPlayer = new MediaPlayer(media);\n\n //isTrackLoad = true;\n }", "title": "" }, { "docid": "0aa893a15ec78e3ad3e7071d0ed44775", "score": "0.54866165", "text": "public void addCurrentTrack(Track track, Room room) {\n room.addCurrentTrack(track);\n roomRepository.save(room);\n }", "title": "" }, { "docid": "1e6b2205074f0eded78a64290a713b86", "score": "0.5474079", "text": "void setTargetSelected(int target);", "title": "" }, { "docid": "ff6c479eeb981b78091c4aafadd37d75", "score": "0.5470605", "text": "private void setTrackingState(Boolean tracking)\n {\n if ( mIsTracking != tracking ) {\n // Keep track of state\n mIsTracking = tracking;\n // Reflect change in GUI\n updateGUI();\n if ( mIsTracking ) {\n showCurrentStep();\n } else {\n hideCurrentStep();\n }\n }\n }", "title": "" }, { "docid": "104ce6a90b6d00a60b23ef841eb7b7e0", "score": "0.5459872", "text": "public void setCurrentViewItem(BreadcrumbItem currentViewItem) {\r\n this.currentViewItem = currentViewItem;\r\n }", "title": "" }, { "docid": "c49be14562dcd74bf8dabbd8bd207497", "score": "0.54536843", "text": "public void updateSelectedSample(SampleInfo selectedInfo);", "title": "" }, { "docid": "4346dbe475ebe76ae0129f7112fad279", "score": "0.54360914", "text": "@VTID(32)\r\n IITTrackCollection selectedTracks();", "title": "" }, { "docid": "322c2000025e052299288452a1dc6d1b", "score": "0.5431402", "text": "public void setCurrentTick(int currentTick) {\n this.currentTick = currentTick;\n }", "title": "" }, { "docid": "a1512e233ac323af83622ea291bd5191", "score": "0.541868", "text": "protected void setCurrentPlayer(int currentTurn) {\n\t\tcurrentPlayer = blackJackHand.get(currentTurn);\n\t}", "title": "" }, { "docid": "2f04e060691f574e82d6cd8913a5533a", "score": "0.54123515", "text": "void setCurrentCompetition(CompetitionModel competition);", "title": "" }, { "docid": "eb4e080f8da0f4e5fd4b991c77656792", "score": "0.54080003", "text": "public void setPreviousSong() throws BLLException\n {\n if (list == null)\n {\n throw new BLLException(\"No play list\");\n }\n \n list.setPreviousIndex();\n setMedia(list.getCurrentlyPlaying());\n }", "title": "" }, { "docid": "89c12943d428cf15194fefaa1c6603b1", "score": "0.5395037", "text": "public void select (Widget widget, Point localLocation, boolean invertSelection) {\n model.increase ();\n }", "title": "" }, { "docid": "db6856f0a8340c9e85a8f80a80e4a4ec", "score": "0.5390808", "text": "public void selected()\n\t{\n\t\tMobclickAgent.onEvent( iLoongLauncher.getInstance() , \"DoubleRefersToPageEdit\" );\n\t\tisSelected = true;\n\t\tviewParent.onCtrlEvent( this , MSG_ICON_SELECTED );\n\t}", "title": "" }, { "docid": "517b6c05459e598faaa3c12a9e291021", "score": "0.53830606", "text": "public void nextTrack() {\n\t\tiTunes.invoke(\"NextTrack\");\n\t}", "title": "" }, { "docid": "c45b9fe002ddd949743a6aba0f52d712", "score": "0.53716195", "text": "void setSelectedDirectly(boolean selected) {\n\t\t_selected = selected;\n\t}", "title": "" }, { "docid": "a7d79983cca8ca808c1f74a17b75f46f", "score": "0.5371264", "text": "private void playTrack (Track track) {\n //set cur, next, prev tracks\n currentTrack = track;\n int totalTracks = tracks.size();\n int curTrackNumber = tracks.indexOf(currentTrack);\n int next = curTrackNumber + 1;\n int prev = curTrackNumber - 1;\n\n if (prev >= 0)\n prevTrack = tracks.get(prev);\n else\n prevTrack = tracks.get(totalTracks-1);\n\n if (next < totalTracks)\n nextTrack = tracks.get(next);\n else\n nextTrack = tracks.get(0);\n\n if (mediaPlayer != null){\n mediaPlayer.stop();\n mediaPlayer = null;\n }\n\n mediaPlayer = new MediaPlayer(currentTrack.getMedia());\n mediaPlayer.play();\n setTimeLabelAndProgressBar(mediaPlayer);\n\n setInfoFromMedia(prevTrack);\n setInfoFromMedia(currentTrack);\n setInfoFromMedia(nextTrack);\n setMediaInfo();\n\n }", "title": "" }, { "docid": "7db77a14c0cef36a38ac848dafe2daab", "score": "0.53650856", "text": "public void choosePicked() {\n\n currentlyUsing = true;\n chooser.getSelected().schedule();\n\n }", "title": "" }, { "docid": "68da57fe4178fff72082b1691e99a07d", "score": "0.5364586", "text": "public void setSelected(StarObjectClass self,boolean selected){\r\n \t\tStarCLEView view = (StarCLEView)WrapAndroidClass.GetAndroidObject(self,\"AndroidObject\");\r\n \t\tif( view != null )\r\n \t\t\tview.setSelected(selected);\r\n \t\treturn;\r\n \t}", "title": "" }, { "docid": "4adc64dcd642ae1e0fa2606efd7ae37d", "score": "0.5352424", "text": "public void setCurrentPlayer(Player currentPlayer) {\n this.currentPlayer = currentPlayer;\n }", "title": "" }, { "docid": "712eb1985474542a5bbee4d33b1b0df3", "score": "0.5349369", "text": "public void recordCurrentSelection() {\n previousSelectedPaths = displayTree.getSelectionPaths();\n }", "title": "" }, { "docid": "6e893c0fa53ec7939ddfef7f35150c0b", "score": "0.5339736", "text": "@Override\n\t\tpublic void onClick() {\n\t\t\tsetSelect(currentSelect);\n\t\t}", "title": "" }, { "docid": "2608b14e505c1068af5fa798b6114a9f", "score": "0.53241396", "text": "@Override\r\n public void next() {\n PlayListComponent track = rpIterator.next();\r\n if (track instanceof Track){\r\n setCurrentTrack((Track)track);\r\n }\r\n //if(getCurrentTrack() >= getRecord().getTracks().length - 1) {\r\n // System.out.println(\"Das Ende der Schallplatte: \" + getRecord().getTitle() + \" Track: \" + getRecord().getTracks()[getCurrentTrack()].getTitle() + \" ist erreicht.\");\r\n // state = State.STOP;\r\n //} else {\r\n // setCurrentTrack(getCurrentTrack() + 1);\r\n //}\r\n }", "title": "" }, { "docid": "51708bf303e6e8fce2ee56a75e893de3", "score": "0.53149945", "text": "void setCurrentTick(int currentTick);", "title": "" }, { "docid": "6e6a1211bc40f13e479ac5a610f9a884", "score": "0.53120404", "text": "public void setCurrentMusic(GameMusic music)\n {\n if(currentMusic == music)\n return;\n\n // Stop any music if we have one\n if(currentMusic != null)\n {\n // Stop it\n currentMusic.stop();\n // Reset flag\n fadingMusic = false;\n }\n // Set the current music\n currentMusic = music;\n // Disable the music if sound is muted\n if(!statsSaver.savedData.musicState)\n currentMusic.setVolume(0f);\n }", "title": "" }, { "docid": "9a79cfcd57e9da669d81a52c8fc26da1", "score": "0.5307438", "text": "public AudioTrack getCurrentTrack() {\n return player.getPlayingTrack();\n }", "title": "" }, { "docid": "12796fb14664bfab27b219a7895e41fb", "score": "0.5305689", "text": "public void setCurrentPlayer(Board currentPlayer){\n this.currentPlayer = currentPlayer;\n }", "title": "" }, { "docid": "eac68ac28f606a76c3da20cabda9f724", "score": "0.5304948", "text": "public void PrevTrack();", "title": "" }, { "docid": "80d0a62d562d325fb98e2bdc6a02ce2e", "score": "0.52963984", "text": "private void setCurrentSpectrumId(String currentSpectrumId)\r\n\t{\r\n\t\tthis.currentSpectrumId = currentSpectrumId;\r\n\t}", "title": "" }, { "docid": "57254ee6c7882a30717f6a62d07a42f2", "score": "0.5292908", "text": "public void setSelectedPoint(ElementPosition selectedPoint){\n this.selectedPoint = selectedPoint;\n }", "title": "" }, { "docid": "297a0b070c3e2317e70dda5ea2bd5bf4", "score": "0.5265623", "text": "public void setSelectedItem( T item ) {\n \t\tsearchPanel.setSelectedItem( item );\n \t}", "title": "" }, { "docid": "737c72295c553392d14204ac7f46b525", "score": "0.52633345", "text": "private void setAsSelected(ViewHolder holder) {\n holder.mView.setSelected(true);\n }", "title": "" }, { "docid": "b61fbea26c79bebaa2c531ab11b45e05", "score": "0.525772", "text": "public void setTracking(Thing tracking) {\n this.tracking = tracking;\n previousRotatingWith = getRotatingWith();\n }", "title": "" }, { "docid": "cf1254bcca99a564e0f9f8bf764a3986", "score": "0.5251248", "text": "public void setCurrentPlayer(String currentPlayer) {\n\t\tthis.currentPlayer = currentPlayer;\n\t}", "title": "" }, { "docid": "ccf5a762d202e85bd81655c85ae89a89", "score": "0.5248306", "text": "public void setSong(Song s)\n {\n thisSong = s;\n }", "title": "" }, { "docid": "f71e44624c58141236f07027b23b9f8e", "score": "0.52376467", "text": "public void cutTrack() {\n\t\tif (selectedTrack != null) {\n\t\t\ttry {\n\t\t\t\tgetModel().deleteTrack(selectedTrack);\n\t\t\t\tselectedTrack = null;\n\t\t\t} catch (Exception e) {\n\t\t\t\tExceptionManager.getInstance().caughtException(Thread.currentThread(), e, \"Error while cutting the track\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "95a1cc9e26c784bdbb756804982c4c3f", "score": "0.5231097", "text": "public void setSelection(PersistenceItem item) {\n this.selection = item;\n }", "title": "" }, { "docid": "20f3d59082a48e498bef329906623cd8", "score": "0.52309346", "text": "public static void setCurrent(Library lib) { curLib = lib; }", "title": "" }, { "docid": "a71b78c941bf62ce068cfb90bae89bde", "score": "0.52287287", "text": "public void setSelected(Boolean selected) {\n\t\tanswerChecked = selected;\n\t}", "title": "" }, { "docid": "18e221a4ab7b7801c225d5f80d1daa36", "score": "0.5223122", "text": "public void setSelected(boolean selected) { this.selected = selected; }", "title": "" }, { "docid": "04223592ba2e82a53a747b851202eac5", "score": "0.52145046", "text": "public void setSelected(boolean selected) {\n if (selected == isSelected()) {\n // Already in correct state, do nothing.\n return;\n }\n\n // This will cause an event that redraws everything\n if (selected) {\n information.markSelected(task);\n } else {\n information.markUnselected(task);\n }\n }", "title": "" }, { "docid": "0e6b4f2ee8babd5810913ab581372c3f", "score": "0.52103037", "text": "@Override\n\tpublic void onClick(Grid grid, Player player) \n\t{\n\t\tplayer.setCurrentPiece(this);\n\t}", "title": "" }, { "docid": "bfcab77eb17d2bf4a51c4cfbd63fce4d", "score": "0.52049303", "text": "public final void SetSelectedObject(PObject selObj)\n {\n OnObjectSelected(selObj);\n\tSetSelectedObjects(new PObject[]{selObj});\n\tm_selObj = selObj;\n }", "title": "" }, { "docid": "d7adc73950078a6da2e2ba4753baf09d", "score": "0.5202069", "text": "private void gotoPlaylistIndex(int index) {\n\n\t\tplaylistIndex = index;\n\t\t// playlistView.smoothScrollToPosition(index);\n\t\tcurVideoInfo = (VideoInfo) curPlaylistInfo.videos.get(index);\n\t\tprepareVideoInfo();\n\n\t\t// ###workaround of highlighting selected item...\n\t\tfor (int i = 0; i < curPlaylistInfo.videos.size(); i++) {\n\t\t\tcurPlaylistInfo.videos.get(i).selected = false;\n\t\t}\n\t\tcurPlaylistInfo.videos.get(index).selected = true;\n\t\tplaylistAdaptor.notifyDataSetChanged();\n\t}", "title": "" }, { "docid": "498d5eda5c7c552c7bf49ed4ec56731f", "score": "0.51936996", "text": "public void setCurrent( String newCurrent )\r\n {\r\n current = newCurrent;\r\n }", "title": "" }, { "docid": "94116c7130e60644abd898ee8f1e71a6", "score": "0.5191997", "text": "public void setCurrent(Node c) {\n current = c;\n }", "title": "" }, { "docid": "1e15caf4de4f40baa1d33065834824fe", "score": "0.51852715", "text": "private void updateSelection()\n\t{\n\t\tselected = getUpdatedSelection();\n\t}", "title": "" }, { "docid": "2a1a1f85f650b4851b9abdcf0090e269", "score": "0.5184454", "text": "private void setSelected(ViewHolder viewHolder) {\n if(!CommonUtils.getBooleanFromSharedPreference(mContext, SharedPref.TWO_PANE_MODE))\n return;\n if(isFirstTime) {\n updateRestaurantDetail(createRestaurantObj(viewHolder.getAdapterPosition()));\n isFirstTime = false;\n }\n if(previousSelected != null)\n previousSelected.backgroundHighlighter.setBackgroundColor(Color.WHITE);\n viewHolder.backgroundHighlighter.setBackgroundColor(mContext.getResources().getColor(R.color.colorSelection));\n previousSelected = viewHolder;\n selectedItemPosition = viewHolder.getAdapterPosition();\n }", "title": "" }, { "docid": "870c81fba7359ae88bf3b52404008ccd", "score": "0.51821846", "text": "protected void setSelected(boolean selected) {\n\t\tthis.selected = selected;\n\t}", "title": "" }, { "docid": "8334ccc0fec0be154a97edf6d8debe3f", "score": "0.5175104", "text": "public void setNextSong() throws BLLException\n {\n if (list == null)\n {\n throw new BLLException(\"No play list\");\n }\n \n list.setNextIndex();;\n setMedia(list.getCurrentlyPlaying());\n }", "title": "" }, { "docid": "11729dd40c7d36d05a61a58a8a316788", "score": "0.5174762", "text": "public static void setCurrent(Graphics current) {\n/* 71 */ if (currentGraphics != current) {\n/* 72 */ if (currentGraphics != null) {\n/* 73 */ currentGraphics.disable();\n/* */ }\n/* 75 */ currentGraphics = current;\n/* 76 */ currentGraphics.enable();\n/* */ } \n/* */ }", "title": "" }, { "docid": "7f95fae28b7c2e500c30d18be2bdab86", "score": "0.5165238", "text": "public void setSelection(Capability cap) {\r\n\t\tlistComposite.setSelection(cap);\r\n\t}", "title": "" }, { "docid": "6e3f6d8d2c5d3bb7dfb2d5e3e334196c", "score": "0.5163132", "text": "public void play()\n\t{\n\t\t//Starts the selector again\n\t\tselector.start();\n\t\t//Makes the song resume from where it was paused\n\t\tif (selector.getRotations() > 0 || selector.getAngle() > (360f - 45 + (int) rhythm.circleList.get(0).getRadiusAsAngle() - 16))\n\t\t\trhythm.currentSong.resume();\n\t}", "title": "" }, { "docid": "885fddb045e0cc199bb16b02f12e51bc", "score": "0.5161937", "text": "public void setCurrentTeam(Team currentTeam) {\n this.currentTeam = currentTeam;\n }", "title": "" }, { "docid": "e3f8eaa6b1e2b63ebebc4d7a5103d360", "score": "0.516161", "text": "public abstract void markAction(String player, SimplePlayer selected, int value);", "title": "" }, { "docid": "6f5002a7ad7aa601077ddb0f14178c25", "score": "0.5158386", "text": "public void setSelected(boolean selected){\n this.selected = selected;\n }", "title": "" }, { "docid": "ce6c430819bd2bb3b0b6ba018717e9ff", "score": "0.5153598", "text": "public void setRoundTrack(RoundTrack roundTrack) {\n this.roundTrack = roundTrack;\n }", "title": "" }, { "docid": "9db48bd30c03ead6d52e5a4640ca7de8", "score": "0.5152282", "text": "void setSelected(boolean selected);", "title": "" }, { "docid": "e876b5d5e79719b431805a2dcc3e6572", "score": "0.515195", "text": "public void setSelected(Boolean selected) {\n this.selected = selected;\n }", "title": "" }, { "docid": "905b8fc4249acc15670435010fe3e481", "score": "0.5151135", "text": "public IITTrack getCurrentTrack() {\n\t\tVariant variant = iTunes.getProperty(\"CurrentTrack\");\n\t\tif (variant.isNull()) {\n\t\t\treturn null;\n\t\t}\n\t\tDispatch item = variant.toDispatch();\n\t\tIITTrack track = new IITTrack(item);\n\t\tif (track.getKind() == IITTrackKind.ITTrackKindFile) {\n\t\t\treturn new IITFileOrCDTrack(item);\n\t\t} else if (track.getKind() == IITTrackKind.ITTrackKindCD) {\n\t\t\treturn new IITFileOrCDTrack(item);\n\t\t} else if (track.getKind() == IITTrackKind.ITTrackKindURL) {\n\t\t\treturn new ITURLTrack(item);\n\t\t} else {\n\t\t\treturn track;\n\t\t}\n\t}", "title": "" }, { "docid": "9878c200fcbc421f8f7ad3eff511d389", "score": "0.51362425", "text": "public void setSelected(Selectable s) {\r\n if (selected != null) {\r\n selected.isSelectedOnCanvas = false;\r\n }\r\n if (s != null) {\r\n s.isSelectedOnCanvas = true;\r\n }\r\n\r\n selected = s;\r\n }", "title": "" }, { "docid": "d7756366f03462e755ece95c15ccb141", "score": "0.51258063", "text": "public void setMedia(PlayList selectedPlayList) throws BLLException\n {\n list = selectedPlayList;\n player = new MediaPlayer(list.getCurrentlyPlaying().getMedia());\n currentMedia = list.getCurrentlyPlaying();\n \n player.setOnEndOfMedia(() -> //After one song has ended, play the next one\n {\n try\n {\n this.playNextSong();\n } catch (BLLException ex)\n {\n System.out.println(ex.getMessage());\n }\n });\n }", "title": "" } ]
614facbdae2452d2d5da28c4d9912cef
Resources allocated to mongod hosts. .yandex.cloud.mdb.mongodb.v1.Resources resources = 2;
[ { "docid": "4a66652fe6e67038337b469566a34a3e", "score": "0.0", "text": "private com.google.protobuf.SingleFieldBuilderV3<\n yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources, yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.Builder, yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder> \n getResourcesFieldBuilder() {\n if (resourcesBuilder_ == null) {\n resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources, yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.Builder, yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder>(\n getResources(),\n getParentForChildren(),\n isClean());\n resources_ = null;\n }\n return resourcesBuilder_;\n }", "title": "" } ]
[ { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.72638804", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.72638804", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.72638804", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.72638804", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.72638804", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.72624826", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.72624826", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.72624826", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.72624826", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.72624826", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7262413", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7262413", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7262413", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7262413", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7262413", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7262413", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7262413", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7262413", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7262413", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7262413", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7262413", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7262413", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7262413", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7262413", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7262413", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7262413", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7262413", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7262413", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7262413", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7262413", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7262413", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7262413", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7262413", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7262413", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7262413", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7262413", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7262413", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6413184", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6413184", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6413184", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6413184", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6413184", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6413184", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6413184", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6413184", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6413184", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6413184", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6413184", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6413184", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6413184", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6413184", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6413184", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6413184", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6413184", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6413184", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6413184", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6413184", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6413184", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6412614", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6412614", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6412614", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6412614", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6412614", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6412614", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6412614", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6412614", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6412614", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6412614", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6412614", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6409794", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6409794", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6409794", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6409794", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6409794", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "b5cda832cee16213be99c0ad03f0dee1", "score": "0.6134075", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "547e22388d1b34c431c4aa93e42ba8bb", "score": "0.60577965", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Mongodb4_2.Mongos getMongos();", "title": "" }, { "docid": "eff577fd0682691e7d64191a9b918c6c", "score": "0.60055", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Mongodb4_4.Mongos getMongos();", "title": "" }, { "docid": "cded3f2ced08e46478fd09d7f2c78b3d", "score": "0.6001408", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Mongodb4_0.Mongos getMongos();", "title": "" }, { "docid": "34166f33f8b55424a9340e80a66ebdd1", "score": "0.59599835", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Mongodb3_6.Mongos getMongos();", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.5946697", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.5946697", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.5946697", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.5946697", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.5946697", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.59462196", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.59462196", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.59462196", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.59462196", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.59462196", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.594533", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.594533", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.594533", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.594533", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.594533", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.594533", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.594533", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.594533", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.594533", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.594533", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.594533", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.594533", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" } ]
339bc6dae9693ab213f81326aaccc907
Get all string match with pattern
[ { "docid": "0fc9954f48ab05b4d587fec8aed6f19a", "score": "0.5695486", "text": "public static ArrayList<String> getAllInGroup(String content, Pattern p) {\n ArrayList<String> result = null;\n Matcher m = p.matcher(content);\n while (m.find()) {\n if (result == null) {\n result = new ArrayList<String>();\n }\n result.add(m.group());\n }\n return result;\n }", "title": "" } ]
[ { "docid": "3e22fc20e7bf6bee5afc561e87738707", "score": "0.7163768", "text": "public List<String> matches();", "title": "" }, { "docid": "b5cb37894ad5f4734275b6f8d88c6887", "score": "0.6769074", "text": "public ArrayList<String> findPattern(String s, String p){\n\t\tArrayList<String> ret = new ArrayList<>();\n\t\tPattern pattern = Pattern.compile(p);\n\t\tMatcher matcher = pattern.matcher(s);\n\t\twhile (matcher.find()){\n\t\t\tret.add(matcher.group(0));\n\t\t}\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "24950a5ac1e550e6b5b1421c1ac61ce5", "score": "0.65829414", "text": "String match();", "title": "" }, { "docid": "4f6fef081734d2b96626869d4ff074bd", "score": "0.642229", "text": "List<E> find(String pattern);", "title": "" }, { "docid": "7adcc1dae1ffd597215103fe2d6f79b5", "score": "0.63420117", "text": "public Set<String> findMatches(final Pattern pattern) {\n\treturn findMatches(new ResourceMatcher() {\n\t\tpublic boolean matches(String resource) {\n\t\t return pattern.matcher(resource).matches();\n\t\t} });\n }", "title": "" }, { "docid": "d34e8e3aef0883f47c29846ecf2d23d7", "score": "0.62536466", "text": "public static ArrayList<String> getMatches(String s, String regex) {\r\n // Stores any valid fish found\r\n ArrayList<String> matches = new ArrayList<String>();\r\n \r\n // Iterate through substrings\r\n for (int i = 0; i <= s.length()-minFishLength; i++) {\r\n for (int j = i+minFishLength; j <= s.length(); j++) {\r\n // If the current substring matches the regular expression, \r\n // it is added the the matches list\r\n if(s.substring(i, j).matches(regex)){\r\n matches.add(s.substring(i, j));\r\n \r\n // Don't need to continue looping from this i value\r\n break;\r\n }\r\n }\r\n }\r\n \r\n // Returns the valid fish found\r\n return matches;\r\n }", "title": "" }, { "docid": "a4bb4d112fdeb85641f8dcf5cbb6156e", "score": "0.61335117", "text": "private Matcher findPatternMatcherFromString(List<Pattern> patterns, String string,\n boolean startsAndEndsByWholeWord) {\n Matcher isMatcherFound = null;\n for (Pattern pattern : patterns) {\n Matcher matcher = pattern.matcher(string);\n if (matcher.find()) {\n if (startsAndEndsByWholeWord && (!verifyMatcherStartingByAWord(matcher, string) ||\n !verifyMatcherEndingByAWord(matcher, string))) {\n continue;\n }\n isMatcherFound = matcher;\n break;\n }\n }\n return isMatcherFound;\n }", "title": "" }, { "docid": "b883482320c4b87d28be16b68c0bb1d3", "score": "0.5957428", "text": "@Nonnull\n public List<String> filteredBy (@Nonnull String regexp);", "title": "" }, { "docid": "f01dcd45005557557123579896963180", "score": "0.59455675", "text": "Map<String, List<String>> getAllPatternParameters(final String pattern);", "title": "" }, { "docid": "91c2d6f2f1d5f301db8986113b42a1a0", "score": "0.59426284", "text": "public static void main(String[] args) {\n\n String myStrings = \"missisipi\";\n Pattern p = Pattern.compile(\"mi(*?pi)pi\");\n Matcher m = p.matcher(River);\n while(1){\n System.out.println(m.group(1));\n }\n }", "title": "" }, { "docid": "5b3893790cc993684e6d35bf827d9e19", "score": "0.58974797", "text": "public abstract S patternFilter(String pattern);", "title": "" }, { "docid": "c66cbddcb21a91388e2f5eefa66425a8", "score": "0.58757603", "text": "private static List<String> findPatterns(String s) {\n\n List<String> res = new ArrayList<>();\n\n boolean isTimes = false;\n boolean inPattern = false;\n int beginIndex = -1;\n int endIndex = -1;\n int firstDigitIndex = -1;\n int bracketsCounter = 0;\n\n for (int i = 0; i < s.length(); i++) {\n if (isDigit(s.charAt(i))) {\n isTimes = true;\n if (firstDigitIndex == -1) {\n if (inPattern) {\n endIndex = i;\n res.add(s.substring(beginIndex, endIndex));\n inPattern = false;\n firstDigitIndex = i;\n beginIndex = i;\n endIndex = -1;\n } else {\n firstDigitIndex = i;\n beginIndex = i;\n }\n } else {\n // skip all digit, do nothing\n }\n } else if (isTimes && isStartBrackets(s.charAt(i))) {\n bracketsCounter++;\n } else if (isTimes && isEndBrackets(s.charAt(i))) {\n if (--bracketsCounter == 0) {\n endIndex = i + 1;\n res.add(s.substring(beginIndex, endIndex));\n beginIndex = -1;\n endIndex = -1;\n inPattern = false;\n isTimes = false;\n firstDigitIndex = -1;\n }\n } else {\n if (inPattern) {\n // do nothing\n endIndex = i + 1;\n if (endIndex == s.length()) {\n res.add(s.substring(beginIndex, endIndex));\n // inPattern = false;\n }\n } else {\n inPattern = true;\n if (beginIndex == -1) {\n beginIndex = i;\n }\n if (i == s.length() - 1) {\n res.add(s.substring(beginIndex));\n }\n }\n }\n }\n\n System.out.println(res);\n return res;\n\n }", "title": "" }, { "docid": "79f1409d92fcb37d3f3b35355c748def", "score": "0.5846968", "text": "public String[] getMatched(String prefix)\n {\n if (prefix.equals(\"\")) { // all methods match to a null string\n return listOfAllVariables;\n }\n int i = firstIndexOfMatchedString(prefix);\n int j = lastIndexOfMatchedString(prefix, i);\n String[] matches = new String[j-i];\n\n for (int k = 0; k < matches.length; k++)\n {\n matches[k] = listOfAllVariables[i+k];\n }\n\n return matches;\n }", "title": "" }, { "docid": "93b3e7746f31578a1b6e42b685f42d86", "score": "0.58137876", "text": "public abstract String getPatternRegExToMatch(Context ctx, String name, Object obj);", "title": "" }, { "docid": "dfdcb700c679c3924ba636fd1ba24223", "score": "0.57381225", "text": "List<Plant> findByNameContaining(String pattern);", "title": "" }, { "docid": "75f123dae5d685f48fe49624bd5546ef", "score": "0.5729039", "text": "@CodeConfirmed(\"blue.2.2.5\")\n\tprotected CArray<String> findMacros(String pattern, CArray<String> texts) {\n\t\tCArray<String> result = new CArray();\n\n\t\tfor (String text : texts) {\n\t\t\tCArray<CArray> _matches = new CArray();\n\t\t\tpreg_match_all(pattern, text, _matches);\n\t\t\tresult = array_merge(result, _matches.get(0));\n\t\t}\n\n\t\treturn array_unique(result);\n\t}", "title": "" }, { "docid": "cba84d7044331655a5aca1f596389a2e", "score": "0.57168883", "text": "public static void main(String[] args) {\n\t\tString str = \"abc\";\n\t\tString pat = \"[abc]\";\n\t\tPattern p = Pattern.compile(pat);\n\t\tjava.util.regex.Matcher m = p.matcher(str);\n\t\tSystem.out.println(m);\n\n\t}", "title": "" }, { "docid": "d2ac25f43aae34ef28ff3dbf3feb9634", "score": "0.5703049", "text": "public String[] splittedString(String regexp) {\r\n return stringValue().split(regexp);\r\n }", "title": "" }, { "docid": "4387d0a60855f6110f835090ad58f524", "score": "0.5698461", "text": "@Override\r\n\tpublic String getOnlyMatchingLines(String pattern, String input) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "53d0ab233d74cacea7e1700c94431cef", "score": "0.56766975", "text": "public static List<String> findAll(){\n\t\treturn findAll(\".*\");\n\t}", "title": "" }, { "docid": "d9b114dd80ad33213bae989f3ed3744e", "score": "0.5639213", "text": "public List<Boolean> camelMatch(String[] queries, String pattern) {\n List<Boolean> res = new ArrayList<>();\n String[] patternSegments = toStringArray(pattern);\n for (String query : queries) {\n String[] querySegments = toStringArray(query);\n if (querySegments.length != patternSegments.length) {\n res.add(false);\n continue;\n }\n\n boolean flag = true;\n System.out.println(query);\n for (int j = 0; j < querySegments.length; j++) {\n int patternCharPosition = 0;\n for (int k = 0; k < querySegments[j].length() && patternCharPosition < patternSegments[j].length(); k++) {\n if (querySegments[j].charAt(k) == patternSegments[j].charAt(patternCharPosition)) {\n patternCharPosition++;\n }\n System.out.println(patternCharPosition + \"?= \" + patternSegments[j].length());\n if (k == querySegments[j].length() - 1 && patternCharPosition < patternSegments[j].length()) {\n flag = false;\n break;\n }\n }\n }\n if (!flag)\n res.add(false);\n else\n res.add(true);\n }\n return res;\n }", "title": "" }, { "docid": "aee09a89413fef2b0dbdffa51870410a", "score": "0.55987746", "text": "public ArrayList<String> extractAllRegexes(String theRegex, String str2Check) {\n ArrayList<String> list = new ArrayList<String>();\n Pattern checkRegex = Pattern.compile(theRegex);\n Matcher regexMatcher = checkRegex.matcher(str2Check);\n while (regexMatcher.find()) {\n if (regexMatcher.group().length() != 0) {\n list.add(regexMatcher.group().trim());\n }\n }\n return list;\n }", "title": "" }, { "docid": "931069d4396df431341f70c6d36f0292", "score": "0.5570417", "text": "@Override\r\n\tpublic String getMatchingLinesOnlyMatchingPart(String pattern, String input) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "6caf6edf27ec12fd7b3d47f630bd83a0", "score": "0.55626225", "text": "public String[] readPattern(String pattern) {\n open();\n if (br == null) {\n return null;\n }\n\n ArrayList<String> v = new ArrayList<String>();\n try {\n Pattern p = Pattern.compile(pattern);\n for (;;) {\n String line = br.readLine();\n if (line == null)\n break;\n\n Matcher m = p.matcher(line);\n if (m.find()) {\n if (m.groupCount() > 0) {\n StringBuilder sb = new StringBuilder();\n for (int i = 1; i <= m.groupCount(); i++) {\n sb.append(m.group(i));\n }\n v.add(sb.toString());\n } else {\n v.add(line);\n }\n }\n }\n br.close();\n } catch (Exception exc) {\n exc.printStackTrace();\n }\n\n String[] vs = v.toArray(new String[v.size()]);\n return vs;\n }", "title": "" }, { "docid": "4a64a5b64a8cdb04057715de5447cbdd", "score": "0.5560994", "text": "public List<List<String>> match(String block, String pattern) {\n\n checkNotNull(block, \"The 'block' should not be null\");\n checkNotNull(pattern, \"The 'pattern' should not be null\");\n checkArgument(!block.isEmpty(), \"the 'block' should not be empty\");\n checkArgument(!pattern.isEmpty(), \"the 'pattern' should not be empty\");\n\n List<List<String>> output = new ArrayList<List<String>>();\n\n // Use regex to find the pattern into the block\n Pattern p = Pattern.compile(pattern);\n Matcher m = p.matcher(block);\n\n while (m.find()) {\n\n List<String> groups = new ArrayList<String>();\n\n // As we don't know information about the number of group defined by\n // the user, we get all groups and put it in a list\n for (int i = 1; i <= m.groupCount(); i++) {\n groups.add(m.group(i));\n }\n\n output.add(groups);\n }\n\n return output;\n }", "title": "" }, { "docid": "7d0462db7b54c3c50621a32aa90ac7e9", "score": "0.5555534", "text": "String Look();", "title": "" }, { "docid": "2bd2b6d75fa53964a2da51ce2f171817", "score": "0.55464906", "text": "public static List<Sequence> findSequences(String str) {\r\n\t\t\r\n\t\tList<Sequence> retval = new ArrayList<Sequence>();\r\n\t\tMap<String, Sequence> seqns = new HashMap<String, Sequence>(); \r\n\t\t\r\n\t\tfor (int size = 1; size <= str.length(); size ++) {\r\n\t\t\tfor (int i = 0; i < str.length() - size * 2; i++) {\r\n\t\t\t\tString pattern = str.substring(i, i + size);\r\n\t\t\t\tString testPattern = str.substring(i + size, i + size * 2);\r\n\t\t\t\tif (pattern.equals(testPattern)) {\r\n\t\t\t\t\t// check if pattern already founded in subpatterns\r\n\t\t\t\t\tif (!isSuperString(seqns, pattern)) {\r\n\t\t\t\t\t\tif (seqns.containsKey(pattern)) {\r\n\t\t\t\t\t\t\tSequence sq = seqns.get(pattern);\r\n\t\t\t\t\t\t\tsq.addPosition(i);\r\n\t\t\t\t\t\t\tsq.addPosition(i + size);\r\n//\t\t\t\t\t\t\tSystem.out.println(sq);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tSequence sq = new Sequence(i, size, pattern);\r\n\t\t\t\t\t\t\tsq.addPosition(i + size);\r\n\t\t\t\t\t\t\tseqns.put(pattern, sq);\r\n//\t\t\t\t\t\t\tSystem.out.println(sq);\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\tfor(Sequence sq : seqns.values()) {\r\n\t\t\tretval.add(sq);\r\n\t\t}\r\n\t\treturn retval;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "ae00c74b4b40ed5e9713e2ccb7c09fe5", "score": "0.5537318", "text": "public static String findMatches( ScriptEngine scriptEngine, String input, String regex, String separator ) {\r\n final String script = \"(function getMatch(){\" + \"var url = \\\"\" + input + \"\\\"; var regex=new RegExp(\\\"\" + regex\r\n + \"\\\", \\\"g\\\");var matches = url.match(regex);return matches.join('\" + separator + \"');})();\";\r\n return (String) scriptEngine.executeScript( script, null );\r\n }", "title": "" }, { "docid": "aa5be2e05f821347f82db3a59809eb04", "score": "0.5536427", "text": "private void keywordPatternMatcher(String searchString) {\n\t\tPattern pattern = Pattern.compile(\"<text>(.*)</text>\");\n\n\t\tMatcher match = pattern.matcher(searchString);\n\n\t\twhile(match.find()) {\n\t\t\tkw.add(match.group(1));\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "e020758b29b46400b19ec5358a10295a", "score": "0.5475577", "text": "public ArrayList<String> extractAllRegexes(enumRegexGrimoire theRegex, String str2Check) {\n ArrayList<String> list = new ArrayList<String>();\n Pattern checkRegex = Pattern.compile(regexDictionary.get(theRegex));\n Matcher regexMatcher = checkRegex.matcher(str2Check);\n while (regexMatcher.find()) {\n if (regexMatcher.group().length() != 0) {\n list.add(regexMatcher.group().trim());\n }\n }\n return list;\n }", "title": "" }, { "docid": "ee74020665083324a72178b735a19bc1", "score": "0.5474014", "text": "void search(String pat, String txt) {\n int M = pat.length();\n int N = txt.length();\n /* A loop to slide pat[] one by one */\n for (int i = 0; i <= N - M; i++) {\n int j;\n /* For current index i, check for pattern match */\n for (j = 0; j < M; j++) {\n if (txt.charAt(i + j) != pat.charAt(j)) {\n break;\n }\n }\n if (j == M) // if pat[0...M-1] = txt[i, i+1, ...i+M-1]\n {\n System.out.print(\"Pattern found at index \" + i);\n }\n }\n }", "title": "" }, { "docid": "85b230caf5414227af613787b6b62ac7", "score": "0.5438167", "text": "private String[] submatch(String line, String expr) {\n\t\tString[] _results = new String[2];\n\t\tREMatch match = regex(line, expr);\n\t\tif (match != null) {\n\t\t\t_results[0] = match.toString(1);\n\t\t\t_results[1] = match.toString(2);\n\t\t\t}\n\t\telse _results = null;\t\n\t\treturn _results;\n\t\t}", "title": "" }, { "docid": "2e07b7f0c9d240bf3140507f6d34ba0e", "score": "0.54375523", "text": "public List<Integer> findPattern(String pattern, String text) {\n ArrayList<Integer> result = new ArrayList<Integer>();\n // Implement this function yourself\n\n String S = pattern+'$'+text;\n //compute prefix function; input to computeprefixfunction is S, not pattern\n int[] s = new int[S.length()];\n int border = 0;\n s[0] = 0;\n for (int i = 1; i < S.length(); i++){\n while ((border > 0) && (S.charAt(i) != S.charAt(border))){//use charAt, not substring\n border = s[border - 1];\n }\n if (S.charAt(i) == S.charAt(border)){\n border++;\n }\n else{\n border = 0;\n }\n s[i] = border;\n }\n /*\n for (int i = 0; i < s.length; i++){\n System.out.print(s[i]+\" \");\n }\n */\n //find all occurances\n for (int i = pattern.length() + 1; i < S.length(); i++){\n if (s[i] == pattern.length()){\n result.add(i - 2*pattern.length());\n }\n }\n \n return result;\n }", "title": "" }, { "docid": "c4e9ab2b0f7af751648b85131e991cb8", "score": "0.54346246", "text": "public static void main(String[] args) {\n String str = \"abc\";\n String[] ans = allStrings(str , 2);\n for (String a:ans)\n {\n System.out.println(a);\n }\n }", "title": "" }, { "docid": "7b04c44cbb3c546f8efbcd863c867074", "score": "0.54333544", "text": "private static List<String> extracteService(String expression, String start, String end) {\n String pattern = start + \"(\\\\w+)\" + end;\r\n Pattern patternToBeExec = Pattern.compile(pattern);\r\n Matcher matcher = patternToBeExec.matcher(expression);\r\n List<String> res = new ArrayList();\r\n while (matcher.find()) {\r\n res.add(matcher.group().replace(start, \"\").replace(end, \"\"));\r\n }\r\n return res;\r\n }", "title": "" }, { "docid": "d9ae60c2b78eb4044ec1585d832f896a", "score": "0.54089427", "text": "private Object[] getPatternItems() {\n if (patternItems != null) {\n return patternItems;\n }\n\n patternItems = PARSED_PATTERN_CACHE.get(pattern);\n if (patternItems != null) {\n return patternItems;\n }\n\n boolean isPrevQuote = false;\n boolean inQuote = false;\n StringBuilder text = new StringBuilder();\n char itemType = 0; // 0 for string literal, otherwise date/time pattern character\n int itemLength = 1;\n\n List<Object> items = new ArrayList<Object>();\n\n for (int i = 0; i < pattern.length(); i++) {\n char ch = pattern.charAt(i);\n if (ch == '\\'') {\n if (isPrevQuote) {\n text.append('\\'');\n isPrevQuote = false;\n } else {\n isPrevQuote = true;\n if (itemType != 0) {\n items.add(new PatternItem(itemType, itemLength));\n itemType = 0;\n }\n }\n inQuote = !inQuote;\n } else {\n isPrevQuote = false;\n if (inQuote) {\n text.append(ch);\n } else {\n if (isSyntaxChar(ch)) {\n // a date/time pattern character\n if (ch == itemType) {\n itemLength++;\n } else {\n if (itemType == 0) {\n if (text.length() > 0) {\n items.add(text.toString());\n text.setLength(0);\n }\n } else {\n items.add(new PatternItem(itemType, itemLength));\n }\n itemType = ch;\n itemLength = 1;\n }\n } else {\n // a string literal\n if (itemType != 0) {\n items.add(new PatternItem(itemType, itemLength));\n itemType = 0;\n }\n text.append(ch);\n }\n }\n }\n }\n // handle last item\n if (itemType == 0) {\n if (text.length() > 0) {\n items.add(text.toString());\n text.setLength(0);\n }\n } else {\n items.add(new PatternItem(itemType, itemLength));\n }\n\n patternItems = items.toArray(new Object[items.size()]);\n\n PARSED_PATTERN_CACHE.put(pattern, patternItems);\n\n return patternItems;\n }", "title": "" }, { "docid": "52ca75923a470e49c1104f2e61cb51b5", "score": "0.5396792", "text": "public static void main(String[] args) {\n\t\t\n\t\tString regexPattern = \"[a-zA-Z]+\";\n\t\t\n\t\tString str = \"The quick brown fox jumped over the lazy dog...\";\n\t\t\n\t\tPattern p = Pattern.compile(regexPattern);\n\t\t\n\t\tMatcher m = p.matcher(str);\n\t\t\n\t\twhile(m.find()){\n\t\t\tSystem.out.println(m.group());\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\n\t}", "title": "" }, { "docid": "1bbe3723f775a608f8de26ed640b26f5", "score": "0.5396124", "text": "M matcher(CharSequence cs);", "title": "" }, { "docid": "0ea15a0ee2ac92245b9bf4602e7545ea", "score": "0.53666776", "text": "java.util.List<java.lang.String>\n getMatchedLinesList();", "title": "" }, { "docid": "0ea99900571693501af61e911e8ff03e", "score": "0.5359821", "text": "List<String> getProbePatternList();", "title": "" }, { "docid": "ff913e20bdda47535563cbc9fb808fc2", "score": "0.5356487", "text": "public ArrayList<String> resolve_string_wildcard(String query){\n ArrayList<String> no_as = new ArrayList<>();\r\n if(query.contains(\"*\")==false){\r\n no_as.add(query);\r\n return no_as;\r\n }\r\n int idx_as = query.indexOf(\"*\");\r\n List<KGramPostingsEntry> left_kgram = this.get_k_grams(\"^\" + query.substring(0,idx_as));\r\n List<KGramPostingsEntry> right_kgram = this.get_k_grams(query.substring(idx_as + 1, query.length()) + \"$\");\r\n\r\n if (left_kgram.size() > 1) {\r\n left_kgram = left_kgram.subList(0, left_kgram.size() - 1);\r\n }\r\n\r\n if (right_kgram.size() > 1) {\r\n right_kgram = right_kgram.subList(1, right_kgram.size());\r\n }\r\n List<KGramPostingsEntry> merged_kgram = this.union(left_kgram,right_kgram);\r\n //need to transform from id to term\r\n ArrayList<String> filtered_words = new ArrayList<>();\r\n // need to study the different types\r\n String regex = \"\";\r\n\r\n //regex = String.format(\"^%s.*%s$\", query.substring(0, idx_as),query.substring(idx_as + 1, query.length()));\r\n regex = query.replace(\"*\",\".*\");\r\n for(int i=0; i<merged_kgram.size(); i++){\r\n KGramPostingsEntry entry = merged_kgram.get(i);\r\n String hh = id2term.get(entry.tokenID);\r\n if(Pattern.matches(regex,hh)){\r\n filtered_words.add(hh);\r\n }\r\n }\r\n return filtered_words;\r\n }", "title": "" }, { "docid": "9412e5407b6487f9600a2096d178b046", "score": "0.53484297", "text": "public String patternNameFrom();", "title": "" }, { "docid": "8f0734c1a03859003526e53176c498a7", "score": "0.5338918", "text": "public boolean esPercedero(String current){\r\n final String string=current;\r\n boolean bandera=true;\r\n final Pattern pattern=Pattern.compile(regex,Pattern.MULTILINE);\r\n final Matcher matcher = pattern.matcher(string);\r\n while (matcher.find()) {\r\n System.out.println(\"Full match: \" + matcher.group(0));\r\n for (int i = 1; i <= matcher.groupCount(); i++) {\r\n System.out.println(\"Group \" + i + \": \" + matcher.group(i));\r\n \r\n }\r\n bandera=false;\r\n \r\n}\r\n return bandera;\r\n \r\n \r\n \r\n }", "title": "" }, { "docid": "5d38f9bac0b4e2a185353371263b661f", "score": "0.5322541", "text": "protected Vector<String> getAllMatchingTests(String match) {\n Class<? extends AbstractJDITest> theClass = this.getClass();\n java.lang.reflect.Method[] methods = theClass.getDeclaredMethods();\n Vector<String> result = new Vector();\n for (int i = 0; i < methods.length; i++) {\n java.lang.reflect.Method m = methods[i];\n String name = m.getName();\n Class<?>[] parameters = m.getParameterTypes();\n if (parameters.length == 0 && name.startsWith(match)) {\n if (!isExcludedTest(name)) {\n result.add(name);\n } else\n System.out.println(name + \" is excluded.\");\n }\n }\n return result;\n }", "title": "" }, { "docid": "87ca13e612e82e595cbf3a5d9eefd835", "score": "0.5288604", "text": "private String getAllMatchedURLs()\n\t{\n\t\tString returnString=\"MATCHED\";\n\t\n\t\ttry (BufferedReader in = new BufferedReader(new FileReader(currentDatabase))) \n\t\t{\n\t\t\tString line;\n\t\t\twhile ((line = in.readLine()) != null && (line.length()==0 || line.charAt(0) != 'M'));//find either the start of MATCHED of end of file if it doesn't exist\n\t\t\tif (line != null)\n\t\t\t{\n\t\t\t\twhile ((line = in.readLine()) != null && line.length()>0 && line.charAt(0) == '\"') \n\t\t\t\t{\n\t\t\t\t\treturnString += \"\\n\"+line;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn returnString;\n\t}", "title": "" }, { "docid": "0bb622b26f108cd970cbed9d1f1dee86", "score": "0.5281746", "text": "public static Set<String> getBookmarkNamesMatching(Pattern regex, XTextRange range)\n {\n HashSet<String> found = new HashSet<>();\n HashSet<String> started = new HashSet<>();\n\n UNO.forEachTextPortionInRange(range, o -> {\n try\n {\n XNamed bookmark = UNO.XNamed(UnoProperty.getProperty(o, UnoProperty.BOOKMARK));\n String name = (bookmark != null) ? bookmark.getName() : \"\";\n\n if (regex.matcher(name).matches())\n {\n if (Boolean.TRUE.equals(UnoProperty.getProperty(o, UnoProperty.IS_START)))\n {\n if (Boolean.TRUE.equals(UnoProperty.getProperty(o, UnoProperty.IS_COLLAPSED)))\n {\n found.add(name);\n } else\n {\n started.add(name);\n }\n } else if (started.contains(name))\n {\n found.add(name);\n }\n }\n } catch (UnoHelperException e)\n {\n throw new UnoHelperRuntimeException(e);\n }\n });\n\n return found;\n }", "title": "" }, { "docid": "7d165192129e542747bf058382a7fc13", "score": "0.5280359", "text": "@Nonnull\n\tpublic Matcher testReportNonStaticPatternCompileWithStaticRegex() {\n\t\tfinal String test = \"cabecera\";\n\t\tfinal Pattern patcom = Pattern.compile(STRING_REGEX);\n\t\treturn patcom.matcher(test);\n\t}", "title": "" }, { "docid": "0bfc338b4da3cc10facd2e06ca0b0e1d", "score": "0.52795625", "text": "public static List<String> getMatchingStrings(List<String> original, String arg)\n\t{\n\t\tif(original == null || arg == null) return null;\n\t\tList<String> matching = new ArrayList<String>();\n\t\tfor(String s : original)\n\t\t{\n\t\t\tif(s.toLowerCase().startsWith(arg.toLowerCase())) matching.add(s);\n\t\t}\n\t\treturn matching;\n\t}", "title": "" }, { "docid": "d84278eddc16fb9ed14bb97c80669010", "score": "0.5277891", "text": "public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n\n// String part = scanner.nextLine();\n// String line = scanner.nextLine();\n\n // Pattern pattern = Pattern.compile(\"(?i)\\\\b[a-z]+\" + part + \"[a-z]+\\\\b\");\n // Pattern pattern = Pattern.compile(\"(?i)\\\\b\" + part + \"\\\\b\");\n// Pattern pattern = Pattern.compile((\"\\\\b\"+part+\"|\"+part+\"\\\\b\")); //its right\n// Pattern pattern1 = Pattern.compile(\"[a-z]?\"+part+\"\\\\W\",Pattern.CASE_INSENSITIVE);\n//// Pattern pattern2 = Pattern.compile(\"\\\\W\"+part+\"\\\\b\",Pattern.CASE_INSENSITIVE);\n//// Matcher matcher1 = pattern1.matcher(line);\n//// Matcher matcher2 = pattern2.matcher(line);\n////\n//// System.out.println(matcher1.find());\n//// System.out.println(matcher2.find());\n// Matcher matcher = pattern.matcher(line);\n// System.out.println(matcher.find());\n\n // System.out.println(matcher1.find() ? \"YES\" : \"NO\");\n\n /* int size = Integer.parseInt(scanner.nextLine());\n String line = scanner.nextLine();\n\n Pattern pattern = Pattern.compile(\"\\\\b[A-Za-z]{\"+ size + \"}\\\\b\");\n Matcher matcher = pattern.matcher(line);\n\n System.out.println(matcher.find());\n\n */\n\n// String javaText = \"Java supports regular expressions. LET'S USE JAVA!!!\";\n//\n// Pattern javaPattern = Pattern.compile(\"java\", Pattern.CASE_INSENSITIVE);\n// Matcher matcher = javaPattern.matcher(javaText);\n//\n// System.out.println(matcher.find()); // prints \"true\"\n// System.out.println(matcher.start()); // 0, the starting index of match\n// System.out.println(matcher.end()); // 4, the index followed the last index of match\n// System.out.println(matcher.group()); // \"Java\", a substring that matches the pattern\n\n\n\n }", "title": "" }, { "docid": "6ee8562d62ce0c245f741257fcbe7a28", "score": "0.5277045", "text": "private static void search(String pattern, String text) {\n\t\tint n = text.length();\n\t\tint m = pattern.length();\n\t\t\n\t\tchar txt[] = text.toCharArray();\n\t\tchar pat[] = pattern.toCharArray();\n\t\t\n\t\t/* A loop to slide pat[] one by one */\n\t for (int i = 0; i <= n - m; i++)\n\t {\n\t int j;\n\t \n\t /* For current index i, check for pattern match */\n\t for (j = 0; j < m; j++)\n\t {\n\t if (txt[i+j] != pat[j])\n\t break;\n\t }\n\t if (j == m) // if pat[0...M-1] = txt[i, i+1, ...i+M-1]\n\t {\n\t System.out.println(\"Pattern found at index \\n \"+ i);\n\t }\n\t }\n\t}", "title": "" }, { "docid": "897c0434cf5f126a494fb2f07b13496c", "score": "0.5273476", "text": "public interface PatternMatcher {\n\n void setPattern(String pattern);\n\n String getPattern();\n\n void setInputString(String inputString);\n\n String getInputString();\n\n String match();\n}", "title": "" }, { "docid": "4836500d10373b7dc3b044fc58505079", "score": "0.52640104", "text": "private int[] compute(String pattern) {\n final int[] prefixes = new int[pattern.length()];\n prefixes[0] = 0;\n for (int i = 1; i < pattern.length() + 1; i++) {\n String prefix = null;\n for (int j = i - 1; j >= 0; j--) {\n if (pattern.substring(0, i).endsWith(pattern.substring(0, j))) {\n prefix = pattern.substring(0, j);\n break;\n }\n }\n if (prefix == null) {\n prefixes[i - 1] = 0;\n } else {\n prefixes[i - 1] = prefix.length();\n }\n }\n return prefixes;\n }", "title": "" }, { "docid": "9baf0e70182d12ef24a747d761c9e1e1", "score": "0.525979", "text": "public static ArrayList<String> getCamelCaseMatchingStrings(ArrayList<String> list,\n String pattern) {\n ArrayList<String> patternList = new ArrayList<>();\n for (int i = 0; i < list.size(); i++) {\n String s = list.get(i);\n int len = 0;\n int pattern_len = pattern.length() - 1;\n int patIndex = 0;\n while (len != s.length() - 1 && patIndex <= pattern_len) {\n if (s.charAt(len) == pattern.charAt(patIndex)) {\n len++;\n if (patIndex == pattern_len) {\n patternList.add(s);\n break;\n }\n patIndex++;\n continue;\n } else if ((!Character.isUpperCase(pattern.charAt(patIndex)))) {\n break;\n }\n len++;\n }\n }\n return patternList;\n }", "title": "" }, { "docid": "f7810c90f73b812118dcf2ca63b36d54", "score": "0.52587897", "text": "public static void main(String[] args) {\n String s = \"%one%%two%%%three%%%%\";\n String[] array = s.split(\"[a-z]+\");\n for(String str : array){\n System.out.println(str);\n }\n\n }", "title": "" }, { "docid": "ab6e9771db139478e5ad54ef31b0b564", "score": "0.52490276", "text": "public static void main(String[] args) {\n String text = \"hopefully today I get to eat a great lunch and then play some videogames\";\r\n String pattern = \"unc\";\r\n \r\n int position = findPattern(text, pattern);\r\n \r\n System.out.println(\"Found match in position \" + position);\r\n }", "title": "" }, { "docid": "e71e7cbdf76e8ce743d7fb95e790f99f", "score": "0.5221624", "text": "protected abstract Pattern filterToPattern(String filter);", "title": "" }, { "docid": "f7000324b0251d8c5fc5037b4cb46260", "score": "0.5215394", "text": "protected List<Pattern> buildPatterns(){\r\n StringBuilder keys = new StringBuilder();\r\n StringBuilder funcs = new StringBuilder();\r\n Pattern keywordPattern, functionPattern, operatorPattern,commentPattern,digitPattern,stringPattern;\r\n for (String token : keywords) {\r\n \r\n keys.append(\"\\\\b\"); // Start of word boundary\r\n keys.append(token);\r\n keys.append(\"\\\\b|\"); // End of word boundary and an or for the next word\r\n \r\n }\r\n\r\n if (keys.length() > 0) {\r\n \r\n keys.deleteCharAt(keys.length() - 1); // Remove the trailing \"|\"\r\n \r\n }\r\n \r\n \r\n for (String token : functions) { \r\n funcs.append(\"\\\\b\"); // Start of word boundary\r\n funcs.append(token);\r\n funcs.append(\"\\\\b|\"); // End of word boundary and an or for the next word \r\n }\r\n if (funcs.length() > 0) { \r\n funcs.deleteCharAt(funcs.length() - 1); // Remove the trailing \"|\" \r\n } \r\n keywordPattern = Pattern.compile(keys.toString());\r\n functionPattern = Pattern.compile(funcs.toString());\r\n operatorPattern = Operators;\r\n commentPattern = Comments;\r\n digitPattern = Digits;\r\n stringPattern = Strings;\r\n List<Pattern> patterns = new ArrayList<Pattern>();\r\n patterns.add(keywordPattern); //[0] keywordPattern\r\n patterns.add(functionPattern);//[1] functionPattern\r\n patterns.add(operatorPattern); //[2] operatorPattern\r\n patterns.add(commentPattern);//[3] commentPattern\r\n patterns.add(digitPattern);//[4] digitPattern\r\n patterns.add(stringPattern);//[5] stringPattern\r\n return patterns;\r\n \r\n }", "title": "" }, { "docid": "ff21b184099919866f75db26a7adfc84", "score": "0.5203924", "text": "public static void main(String[] args) {\n\t\tPattern pat=Pattern.compile(\"com[^abc]at\");\n\t\t\n\t\tMatcher matcher=pat.matcher(\"compat\");\n\t\t\n\t\tif(matcher.matches())\n\t\t{\n\t\t\tSystem.out.println(\"String matched\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"String did not match\");\n\t\t}\n\n\t}", "title": "" }, { "docid": "bcd2714e6d42364b48cf9e9742adee37", "score": "0.52035433", "text": "public abstract S regexFilter(String regex);", "title": "" }, { "docid": "28dfa647fa9e5dac6808b9029a0e9370", "score": "0.5203289", "text": "public String getMatches() {\n return matches;\n }", "title": "" }, { "docid": "4dae59f86857b07ff07022f8e73755ea", "score": "0.51811576", "text": "static String[] splitOnTokens(String text) {\n // used by wildcardMatch\n // package level so a unit test may run on this\n\n if (text.indexOf('?') == -1 && text.indexOf('*') == -1)\n return new String[] { text };\n\n char[] array = text.toCharArray();\n ArrayList<String> list = new ArrayList<String>();\n StringBuilder buffer = new StringBuilder();\n for (int i = 0; i < array.length; i++) {\n if (array[i] == '?' || array[i] == '*') {\n if (buffer.length() != 0) {\n list.add(buffer.toString());\n buffer.setLength(0);\n }\n if (array[i] == '?')\n list.add(\"?\");\n else if (list.isEmpty() ||\n i > 0 && !list.get(list.size() - 1).equals(\"*\"))\n list.add(\"*\");\n }\n else\n buffer.append(array[i]);\n }\n if (buffer.length() != 0)\n list.add(buffer.toString());\n\n return list.toArray( new String[ list.size() ] );\n }", "title": "" }, { "docid": "d0ec564e6a812c952e9f1283ea9a76d4", "score": "0.517349", "text": "public static void main(String args[])\r\n\t{\r\n\t\tString regex=\"\\\\b\\\\w+\\\\b\";\r\n\t\tPattern p=Pattern.compile(regex);\r\n\r\n\t\tString input=\"Finally, something useful. As you can see, this regex \"+\r\n\t\t\t\"matches words.\";\r\n\t\tMatcher m=p.matcher(input);\r\n\r\n\t\tint count=0;\r\n\t\twhile(m.find())\r\n\t\t{\r\n\t\t\tcount++;\r\n\t\t\tint start=\tm.start();\r\n\t\t\tint end=\tm.end();\r\n\t\t\tSystem.out.println(\"found match starting at \" +\r\n\t\t\t\t start + \" and ending at \" + end );\r\n\r\n\t\t\tString matched=m.group();\r\n\t\t\tSystem.out.println(\"Matched \\t\" + matched);\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"\\n\\nMatched \"+count+\" time(s)\");\r\n\t\t/* Side note:\r\n\t\t * \\w only works for ASCII\r\n\t\t * \\b works for all of Unicode\r\n\t\t */\r\n\t}", "title": "" }, { "docid": "30426728acc5e2972984216b21366c10", "score": "0.5166495", "text": "@Override public Map<Long, Integer> regexSearch(String query) throws RegExParsingException {\n SuccinctRegEx succinctRegEx = new SuccinctRegEx(this, query);\n\n Set<RegExMatch> chunkResults = succinctRegEx.compute();\n Map<Long, Integer> results = new TreeMap<Long, Integer>();\n for (RegExMatch result : chunkResults) {\n results.put(result.getOffset(), result.getLength());\n }\n\n return results;\n }", "title": "" }, { "docid": "fde2812b3bcb6724f61f6b37f8ecd7ad", "score": "0.515939", "text": "public static void main(String args[])\n throws RegularExpressionException {\n\n // a*\n Parser<Character, NullCloneable, NullCloneable> aStar = value(\"a*\");\n showMatch(aStar, \"\");\n showMatch(aStar, \"a\");\n showMatch(aStar, \"aa\");\n showMatch(aStar, \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\");\n\n // (a|b)*\n Parser<Character, NullCloneable, NullCloneable> abStar = value(\"(a|b)*\");\n showMatch(abStar, \"aabbaabaabba\");\n showMatch(abStar, \"aabbaabaabbaZ\");\n\n // a few other examples\n showMatch(value(\"a*a*\"), \"aaaa\");\n showMatch(value(\"a|bc\"), \"bc\");\n showMatch(value(\"a|bc|d\"), \"bc\");\n\n // four letters\n Parser<Character, NullCloneable, NullCloneable> L = new Letter<>();\n Parser<Character, NullCloneable, NullCloneable> L4\n = new Sequence<Character, NullCloneable, NullCloneable>(\"LLLL\").\n add(L).add(L).add(L).add(L);\n showMatch(L4, \"java\");\n showMatch(L4, \"joe\");\n showMatch(new Repetition<>(L), \"coffee\");\n }", "title": "" }, { "docid": "762aea55b7c614282277215a40aa6099", "score": "0.51549524", "text": "private Pattern getPattern() {\n\t\treturn Pattern.compile( getRegEx() );\n\t}", "title": "" }, { "docid": "ff2f34e0aa36e89b0638a7d71f86964f", "score": "0.5149891", "text": "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n \n RegularExpression<String> regex = RegularExpressions.word(args[0]);\n System.out.println(\"regex: \" + regex);\n System.out.println();\n \n while (scan.hasNextLine()) {\n String line = scan.nextLine();\n \n System.out.println(\"contains: \" + regex.apply(Arrays.asList(line.split(\"\\\\s+\"))));\n System.out.println(\"matches: \" + regex.matches(Arrays.asList(line.split(\"\\\\s+\"))));\n System.out.println();\n }\n }", "title": "" }, { "docid": "46741303342565cb88f09daab3cbbc28", "score": "0.5147214", "text": "public List<String> findAndReplacePattern(String[] words, String pattern) {\n List<String> list = new ArrayList<>();\n boolean broken = false;\n for (int i = 0; i < words.length; i++) {\n char[] arr1 = new char[26];\n char[] arr2 = new char[26];\n for (int j = 0; j < words[i].length(); j++) {\n if (arr1[words[i].charAt(j) - 'a'] == pattern.charAt(j) || arr1[words[i].charAt(j) - 'a'] == '\\u0000') {\n if (arr1[words[i].charAt(j) - 'a'] == '\\u0000') {\n arr1[words[i].charAt(j) - 'a'] = pattern.charAt(j);\n }\n }\n else {\n broken = true;\n break;\n }\n if (arr2[pattern.charAt(j) - 'a'] == words[i].charAt(j) || arr2[pattern.charAt(j) - 'a'] == '\\u0000') {\n if (arr2[pattern.charAt(j) - 'a'] == '\\u0000') {\n arr2[pattern.charAt(j) - 'a'] = words[i].charAt(j);\n }\n }\n else {\n broken = true;\n break;\n }\n }\n if (!broken) {\n list.add(words[i]);\n }\n broken = false;\n }\n return list;\n }", "title": "" }, { "docid": "9a99b84db892a6c0ab653ce13b20d68e", "score": "0.5143728", "text": "@Override\r\n\tpublic String getNonMatchingLines(String pattern, String input) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "d8c63d1ef77ea14727967d99a9babe70", "score": "0.51297396", "text": "static CharacterPredicate pattern(String pattern) {\n return PatternParser.PATTERN.parse(pattern).get();\n }", "title": "" }, { "docid": "ea973aa8fb2eece10bcb28cd6fff6492", "score": "0.5107139", "text": "private boolean wildcardMatchDP(String s, String p) {\n int sLen = s.length();\n int pLen = p.length();\n boolean[][] result = new boolean[sLen + 1][pLen + 1]; //source along rows and pattern along cols\n \n //base\n result[0][0] = true; //empty pattern matches empty source\n for(int i = 1; i <= sLen; i++)\n {\n result[i][0] = false; //any source cant match an empty pattern\n }\n for(int i = 1; i <= pLen; i++)\n {\n if(p.charAt(i - 1) == '*') //exploring the 0 case alone i.e not including * in pattern and matching other parts\n {\n result[0][i] = result[0][i - 1]; \n }\n //all other cells in 0th row are false -> source is empty\n }\n \n for(int i = 1; i <= sLen; i++)\n {\n for(int j = 1; j <= pLen; j++)\n {\n if(s.charAt(i - 1) == p.charAt(j - 1) || p.charAt(j - 1) == '?')\n {\n //current char matches -> so match s[0 to i - 1] and p[o to j - 1]\n result[i][j] = result[i - 1][j - 1];\n }\n else if(p.charAt(j - 1) == '*')\n {\n boolean zeroCase = result[i][j - 1]; //ignore current * and match s[o to i] and p[o to j - 1]\n boolean oneCase = result[i - 1][j]; //consider that current * matches matches current char at s and match s[0 to i - 1] and p[0 t o j]\n result[i][j] = zeroCase || oneCase;\n }\n else //no need to set explicitly\n {\n //chars not equal\n result[i][j] = false;\n }\n }\n }\n \n return result[sLen][pLen];\n }", "title": "" }, { "docid": "9904ba904aacc325c036e8e13d6f95ff", "score": "0.5104525", "text": "public static List<Pattern> getPatternsFromStrings(List<String> strings) {\n List<Pattern> patterns = Lists.newArrayList();\n for (String s : strings) {\n patterns.add(Pattern.compile(s));\n }\n return patterns;\n }", "title": "" }, { "docid": "3d1b9f7e4ad3ff15c13e7bb7e19cba64", "score": "0.5100793", "text": "public List<Match<E>> findAll(List<E> tokens) {\n List<Match<E>> results = new ArrayList<Match<E>>();\n \n int start = 0;\n Match<E> match;\n do {\n match = this.find(tokens, start);\n \n if (match != null) {\n start = match.endIndex();\n \n // match may be empty query string has all optional parts\n if (!match.isEmpty()) {\n results.add(match);\n }\n }\n } while (match != null);\n \n return results;\n }", "title": "" }, { "docid": "02ba133af2e093b475edf01a3eb26934", "score": "0.5087526", "text": "public List<String> getSearchPattern() {\r\n\t\treturn searchPattern;\r\n\t}", "title": "" }, { "docid": "fb6d75d1793b4186d2daf077b6e080fe", "score": "0.5084002", "text": "static String[] splitOnTokens(String text)\r\n {\r\n // used by wildcardMatch\r\n // package level so a unit test may run on this\r\n\r\n if (text.indexOf('?') == -1 && text.indexOf('*') == -1)\r\n {\r\n return new String[]\r\n {\r\n text\r\n };\r\n }\r\n\r\n char[] array = text.toCharArray();\r\n ArrayList<String> list = new ArrayList<String>();\r\n StringBuilder buffer = new StringBuilder();\r\n for (int i = 0; i < array.length; i++)\r\n {\r\n if (array[i] == '?' || array[i] == '*')\r\n {\r\n if (buffer.length() != 0)\r\n {\r\n list.add(buffer.toString());\r\n buffer.setLength(0);\r\n }\r\n if (array[i] == '?')\r\n {\r\n list.add(\"?\");\r\n }\r\n else if (list.isEmpty()\r\n || i > 0 && list.get(list.size() - 1).equals(\"*\") == false)\r\n {\r\n list.add(\"*\");\r\n }\r\n }\r\n else\r\n {\r\n buffer.append(array[i]);\r\n }\r\n }\r\n if (buffer.length() != 0)\r\n {\r\n list.add(buffer.toString());\r\n }\r\n\r\n return list.toArray(new String[list.size()]);\r\n }", "title": "" }, { "docid": "be283140e0a5cea539d17679ecc61315", "score": "0.50805175", "text": "public String matchTasks(String str) {\r\n String output = \"\";\r\n int n = 0;\r\n for (int i = 0; i < numItems; i++) {\r\n int index = n + 1;\r\n if (tasks.get(i).toString().contains(str)) {\r\n output += index + \".\" + tasks.get(i);\r\n n++;\r\n }\r\n }\r\n return output;\r\n }", "title": "" }, { "docid": "85379ecf0fe92fc89398bb3f66458f0a", "score": "0.50802696", "text": "public static void main(String[] args) {\n String text = \"aaa\";\r\n Matcher m1 = Pattern.compile(\"(?=[a])\").matcher(text);\r\n Matcher m2 = Pattern.compile(\"(?![a])\").matcher(text);\r\n Matcher m3 = Pattern.compile(\"(?<=[a])\").matcher(text);\r\n Matcher m4 = Pattern.compile(\"(?<![a])\").matcher(text);\r\n Matcher m5 = Pattern.compile(\"(?>[a])\").matcher(text);\r\n\r\n System.out.println(\"m1 : \" + m1.replaceAll(\"B\"));\r\n System.out.println(\"m2 : \" + m2.replaceAll(\"B\"));\r\n System.out.println(\"m3 : \" + m3.replaceAll(\"B\"));\r\n System.out.println(\"m4 : \" + m4.replaceAll(\"B\"));\r\n System.out.println(\"m5 : \" + m5.replaceAll(\"B\"));\r\n\r\n camelToUnderCore(\"Hi How areYouToday\");\r\n underCoreToCamel(\"Hi How are_you_today\");\r\n\r\n List<String> list = new ArrayList<>();\r\n list.add(\"file_no\");\r\n list.add(\"cli_filenm\");\r\n list.add(\"svr_filenm\");\r\n list.add(\"file_dir\");\r\n list.add(\"file_sz\");\r\n list.add(\"reg_dt\");\r\n list.add(\"reg_usrcd\");\r\n list.add(\"file_rmrk\");\r\n list.add(\"use_yn\");\r\n list.add(\"file_type\");\r\n\r\n for (final String str : list) {\r\n underCoreToCamel(str);\r\n }\r\n\r\n try {\r\n System.out.println(\"¾ß\".getBytes(\"EUC-KR\").length);\r\n System.out.println(\"ÇÑ\".getBytes().length);\r\n } catch (UnsupportedEncodingException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n\r\n String[] str = new String[] {\"msg_ref_no\"\r\n ,\"msg_seq\"\r\n ,\"msg_type\"\r\n ,\"msg_ref_type\"\r\n ,\"msg_ttl\"\r\n ,\"msg_cntn\"\r\n ,\"sender\"\r\n ,\"sender_type\"\r\n ,\"send_org_cd\"\r\n ,\"send_cus_cd\"\r\n ,\"send_user_cd\"\r\n ,\"receiver\"\r\n ,\"rcv_cus_cd\"\r\n ,\"rcv_user_nm\"\r\n ,\"send_status\"\r\n ,\"send_rslt_msg\"\r\n ,\"reg_dt\"};\r\n \r\n for (String string : str) {\r\n underCoreToCamel(string);\r\n }\r\n\r\n\r\n }", "title": "" }, { "docid": "3fb43e9822b7012b161f8f5ae4bcd3b6", "score": "0.5075495", "text": "java.lang.String getMatchedLines(int index);", "title": "" }, { "docid": "eda3af2fb6b54dc3d52187945f01ed11", "score": "0.5064551", "text": "public ArrayList<String> generate_candidate_keywords(String[] sentences,String pattern){\n\t\tArrayList<String> phrase_list=new ArrayList<String>();\n\t\tfor(String s:sentences){\n//\t\t\tSystem.out.println(s);\n\t\t\ts=s.replaceAll(\"^\\\\s+|\\\\s+$\", \"\");\n//\t\t\ts=s.toLowerCase();\n\t\t\ts=s.replaceAll(\"(?i)\"+pattern, \"|\");\n//\t\t\tSystem.out.println(s);\n\t\t\tString[] phrases=s.split(\"\\\\|\");\n\t\t\tfor(String phrase:phrases){\n//\t\t\t\tSystem.out.println(phrase);\n\t\t\t\tphrase=phrase.replaceAll(\"^(\\\\s)+|(\\\\s)+$\", \"\");\n\t\t\t\tif(!phrase.equals(\"\") && phrase.length()<30 && phrase.matches(\"^[a-z].*\")){\n//\t\t\t\t\tSystem.out.println(phrase);\n\t\t\t\t\tphrase_list.add(phrase);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn phrase_list;\n\t}", "title": "" }, { "docid": "2a1233bb0a7941a5819249256017856e", "score": "0.50617594", "text": "private static void naivePatternSearch(String text, String pattern) {\n\t\tfor(int i = 0;i<=(text.length());i++){\n\t\t\tint j;\n\t\t\tfor(j = 0;j<pattern.length();j++){\n\t\t\t\tif(text.charAt(i+j)!=pattern.charAt(j)){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(j == pattern.length()){\n\t\t\t\tSystem.out.println(\"Found at \"+i);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "aeae0ea55189eee044a08ee02462e918", "score": "0.50536716", "text": "public static void main(String[] args) {\n String testInput1 = \"ABba\";\n String testInput2 = \"ABbCca\";\n String testInput3 = \"949939\";\n\n System.out.println(matchCharacters(testInput1));\n System.out.println(matchCharacters(testInput2));\n System.out.println(matchCharacters(testInput3));\n }", "title": "" }, { "docid": "b3a915f2dafaef07e3f90827acaa61c4", "score": "0.5046032", "text": "public String[] split(String patternString) {\n final List<String> result = new ArrayList<String>();\n\n int startPos = 0;\n int periodPos = nextPeriodPos(patternString, startPos);\n while (periodPos >= 0) {\n final String patternConstituent = patternString.substring(startPos, periodPos);\n result.add(patternConstituent);\n\n startPos = periodPos + 1;\n periodPos = nextPeriodPos(patternString, startPos);\n }\n result.add(patternString.substring(startPos));\n\n return result.toArray(new String[result.size()]);\n }", "title": "" }, { "docid": "94ed465841f1fb019f9c26cf00cdb93b", "score": "0.5045496", "text": "public ArrayList<Task> findTasks(String pattern) {\n\n ArrayList<Task> foundTasks = new ArrayList<>();\n\n for (Task task : taskList) {\n if (hasPattern(task, pattern)) {\n foundTasks.add(task);\n }\n }\n\n return foundTasks;\n }", "title": "" }, { "docid": "40646f0b7b5e8db1a90908e663303dd3", "score": "0.50453377", "text": "String getDontInjectRegex();", "title": "" }, { "docid": "b7f27bebc299386afc9a43d53db61357", "score": "0.50386393", "text": "Collection getClsNameMatches(String s, int maxMatches);", "title": "" }, { "docid": "01894fafe4b73fbb12a0e4c1ad67fb91", "score": "0.50381017", "text": "private static int[] matchingStrings(String[] strings, String[] queries) {\n for(String string : strings) {\n addString(string);\n }\n\n return getMatches(queries);\n }", "title": "" }, { "docid": "3391ef95cf9bc9a2e85f876ad98bc5ff", "score": "0.5036728", "text": "public static void main(String[] args) {\n\t\tString str = \"430421199609165679|9223372035371608591|9223372035371583865|105386471|4301220124|192.168.8.78,4301220124,430421199609165679,192.168.8.78,2016-12-31 14:53:36,10020,1512330519,~原H点~,105386471,二班伙伴嗨嗨嗨,2016-12-31 21:45:42,2016-12-31 21:46:05,3,650,/WJ_RESOURCE/NET/CHAT/2017/1/1/0/55/0504_20170101005418_W34301220124_C749066F86F91B56DE1D97857E59B72D_CF639D29773E0CB72E594394EA7FD796_192.168.8.78.GCHAT\";\r\n\t\tString s = \"tan ten ttn tcn d.xlsx aa.docx\";\r\n\t\tString regex = \"\\\\.(xlsx|docx)\";\r\n\t\tPattern p = Pattern.compile(regex);\r\n\t\tMatcher m = p.matcher(s);\r\n\t\t\r\n\t\tSystem.out.println(m.matches());\r\n\t\tSystem.out.println(m.groupCount());\r\n\t\twhile(m.find()) {\r\n//\t System.out.println(\"Match \" + m.group() +\" at positions \" + m.start() + \"-\" + (m.end() - 1));\r\n\t\t\tSystem.out.println(m.group());\r\n\t\t\t\r\n//\t\t\tint i = 0;\r\n//\t\t\twhile(m.find(i)) {\r\n//\t\t\t System.out.println(m.group(i+1));\r\n//\t\t\t i++;\r\n//\t\t\t }\r\n\t }\r\n\t\t\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\r\n\t\tSystem.out.println(sdf.format(new Date()));\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "6de9e960a8a7c4602aa4e55a32bfefb8", "score": "0.5029522", "text": "private String evaluatePackagePattern(String s) {\n\t\tStringBuffer buf= new StringBuffer();\n\t\tboolean hasWildCard= false;\n\t\tfor (int i= 0; i < s.length(); i++) {\n\t\t\tchar ch= s.charAt(i);\n\t\t\tif (ch == '.') {\n\t\t\t\tif (!hasWildCard) {\n\t\t\t\t\tbuf.append('*');\n\t\t\t\t}\n\t\t\t\thasWildCard= false;\n\t\t\t} else if (ch == '*' || ch =='?') {\n\t\t\t\thasWildCard= true;\n\t\t\t}\n\t\t\tbuf.append(ch);\n\t\t}\n\t\tif (!hasWildCard) {\n\t\t\tbuf.append('*');\n\t\t}\n\t\treturn buf.toString();\n\t}", "title": "" }, { "docid": "91544a0d9cadeb69b34a4816e4788b63", "score": "0.50278926", "text": "protected Pattern[] precalculate(String list) {\n\t\tif (list == null)\n\t\t\treturn new Pattern[0];\n\t\tlist = list.trim();\n\t\tif (list.length() < 1)\n\t\t\treturn new Pattern[0];\n\t\tlist = list + \",\";\n\t\tArrayList<Pattern> reList = new ArrayList<Pattern>();\n\t\tdo {\n\t\t\tif (list.length() <= 0)\n\t\t\t\tbreak;\n\t\t\tint comma = list.indexOf(',');\n\t\t\tif (comma < 0)\n\t\t\t\tbreak;\n\t\t\tString pattern = list.substring(0, comma).trim();\n\t\t\ttry {\n\t\t\t\treList.add(Pattern.compile(pattern));\n\t\t\t} catch (PatternSyntaxException e) {\n\t\t\t\tIllegalArgumentException iae = new IllegalArgumentException(sm\n\t\t\t\t\t\t.getString(\"requestFilterValve.syntax\", pattern));\n\t\t\t\tjdkCompat.chainException(iae, e);\n\t\t\t\tthrow iae;\n\t\t\t}\n\t\t\tlist = list.substring(comma + 1);\n\t\t} while (true);\n\t\tPattern reArray[] = new Pattern[reList.size()];\n\t\treturn (Pattern[]) reList.toArray(reArray);\n\t}", "title": "" }, { "docid": "eaa9c39606c8d3845d760f73ec0fb386", "score": "0.5024768", "text": "public static List<String> getKeys(String string) {\n List<String> keys = new ArrayList<>();\n Matcher matcher = PLACEHOLDER_PATTERN.matcher(string);\n while (matcher.find()) {\n keys.add(StringUtils.substringBetween(\n StringUtils.defaultString(matcher.group()),\n PLACEHOLDER_BEGIN,\n PLACEHOLDER_END));\n }\n\n return keys;\n }", "title": "" }, { "docid": "6c67e9d4d0a2c2873740267cb559aa1a", "score": "0.50185245", "text": "public static void main(String[] args) {\n String s1 = \"burger.letters.com - - [01Jul1996:00:00:12 -0400] 'GET /images/NASA-logosmall.gif' HTTP/1.0\";\n String s2 = \"burger.letters.com - - [01Jul1996:00:00:12 -0400] 'GET /images/NASA-logosmall.GIF' HTTP/1.0\";\n\n Pattern p = Pattern.compile(\"(.*)(GET\\\\s)(.*\\\\.GIF|.*\\\\.gif)(.*)\");\n Matcher m = p.matcher(s2);\n if (m.find()) {\n System.out.println(m.group(1));\n System.out.println(m.group(2));\n System.out.println(m.group(3));\n System.out.println(m.group(4));\n } else {\n System.out.println(\"no match\");\n }\n }", "title": "" }, { "docid": "720c0ac233432a4811fe2f83383d58bb", "score": "0.5010849", "text": "public Set<String> getAll() {\n\treturn findMatches(new ResourceMatcher() {\n\t\tpublic boolean matches(String resource) {\n\t\t return true;\n\t\t} });\n }", "title": "" }, { "docid": "708007ef3ad9d9014f4a3e8c0bc58cc2", "score": "0.5006983", "text": "public abstract String[] getWordList(String filter);", "title": "" }, { "docid": "084e0fc3f284cd2698a5e017bf660a5a", "score": "0.500091", "text": "public List<Rule> extract(String [] inputs);", "title": "" }, { "docid": "ee08370f3bfa7b2338f4d5ab87bf5a63", "score": "0.4994118", "text": "@Nonnull\n\tpublic Matcher testReportNonStaticPatternCompileWithFinalLocalRegex() {\n\t\tfinal String regex = \"[bcd]\";\n\t\tfinal String test = \"cabecera\";\n\t\tfinal String regex2 = regex + \"[e]\";\n\t\tfinal Pattern pattern = Pattern.compile(regex2);\n\t\treturn pattern.matcher(test);\n\t}", "title": "" }, { "docid": "4efb4f69ebc1371d50c4a6aeec9b80f8", "score": "0.49901205", "text": "@Test\r\n\tpublic void testSimpleMatch(){\r\n\t\tString[] patterns = {\".*\\\\QMissing SDI/[CheckSDI]\\\\E.*\"};\r\n\t\tassertNotNull(StringHelper.match(patterns, \"####Missing SDI/[CheckSDI]####\"));\r\n\t}", "title": "" }, { "docid": "0adaa92ad45b51ad69f8469a60fe248b", "score": "0.4961046", "text": "public int searchTweetsNaive(String pattern, List<String> ans) {\n\t\tint count = 0;\n\t\tint m = pattern.length();\n\t\tfor (String text : tweets){ // Iterate all tweets\n\t\t\tResult res = StringMatch.matchNaive(pattern, text);\n\t\t\tif (res.pos != -1)\n\t\t\t\tans.add(text);\n\t\t\tcount += res.comps;\n\t\t}\n\t\treturn count;\n\t}", "title": "" }, { "docid": "9f3ef6442a6f100d501e143796969817", "score": "0.49486262", "text": "private List<Pattern> findMatchedPatternsWithLeastWildcards() {\n Map<Integer, List<Pattern>> patternMap = sameLengthPatterns.stream()\n .filter(this::isPatternAMatch)\n .collect(Collectors.groupingBy(this::numberOfWildcardsInPattern));\n\n return patternMap.isEmpty() ? Collections.emptyList() : patternMap.get(Collections.min(patternMap.keySet()));\n }", "title": "" }, { "docid": "9a987481c1a4cb0d7ad4e241bad33b29", "score": "0.49450442", "text": "public interface IPatterns {\n String LOGIN = \"[a-zA-Z0-9]{5,}\";\n String EMAIL = \"[a-zA-Z0-9.-_]+@[a-zA-Z0-9.-_]+\\\\.[a-zA-Z0-9.-_]+\";\n String PASSWORD = \"[a-zA-Z0-9]{5,}\";\n String TEXT = \".+\";\n String UNP = \"\\\\d{9,10}\";\n String NUMGOS = \"\\\\d{4} [A-Z]{2}-\\\\d\";\n}", "title": "" }, { "docid": "1d8752e47eb53961a4f3b9ab1ee00fcb", "score": "0.4941172", "text": "List<String> getNames (String partial);", "title": "" }, { "docid": "3368b29a48e3a0ed77f227dc17f856d7", "score": "0.49383676", "text": "public String pattern() {\n\t\treturn needleString;\n\t}", "title": "" } ]
302e03952d2839f8fc1a8c06a32f41b4
Returns the message of the option.
[ { "docid": "1326d2a6ab0b5712248eb66c08293cd7", "score": "0.0", "text": "public String getMessage() {\n String temp = msg;\n for (int i=0; i<temp.length(); i++) {\n if (temp.charAt(i) == '+' || temp.charAt(i) == '-') {\n temp = \"<b>\" + temp.substring(0,i-4) + \"</b>\" + temp.substring(i-4);\n return temp;\n }\n }\n return (\"<b>\" + temp + \"<b>\");\n }", "title": "" } ]
[ { "docid": "41a8b25d495a336566474ddac8462fc7", "score": "0.6887198", "text": "public String getOptionUsage()\n {\n return \"\";\n }", "title": "" }, { "docid": "645db007a8d30a87ae1615bf35e7a99b", "score": "0.6755866", "text": "java.lang.String getOption();", "title": "" }, { "docid": "6f54fa67f568a37af99120a105201562", "score": "0.674851", "text": "public String getOptionLabel() ;", "title": "" }, { "docid": "61d968f31f3eb38eaaedcd647ce8e46a", "score": "0.6709317", "text": "public java.lang.String getOption() {\n java.lang.Object ref = option_;\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 option_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "223666c5ff8af50820943297c9a16fd6", "score": "0.66708404", "text": "public String getOption() {\n return (option);\n }", "title": "" }, { "docid": "8378dd91f5f829efddbdbab6e5d0f816", "score": "0.6640613", "text": "public java.lang.String getOption() {\n java.lang.Object ref = option_;\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 option_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "885c0152eb47529f16c6364b5f903a06", "score": "0.6596281", "text": "@Override\n\tpublic String getMessage() {\n\t\treturn msg;\n\t}", "title": "" }, { "docid": "5b1061f1ebfe1ca18e71d8458b8bdf97", "score": "0.6589225", "text": "java.lang.String getMessage();", "title": "" }, { "docid": "5b1061f1ebfe1ca18e71d8458b8bdf97", "score": "0.6589225", "text": "java.lang.String getMessage();", "title": "" }, { "docid": "5b1061f1ebfe1ca18e71d8458b8bdf97", "score": "0.6589225", "text": "java.lang.String getMessage();", "title": "" }, { "docid": "5b1061f1ebfe1ca18e71d8458b8bdf97", "score": "0.6589225", "text": "java.lang.String getMessage();", "title": "" }, { "docid": "5b1061f1ebfe1ca18e71d8458b8bdf97", "score": "0.6589225", "text": "java.lang.String getMessage();", "title": "" }, { "docid": "5b1061f1ebfe1ca18e71d8458b8bdf97", "score": "0.6589225", "text": "java.lang.String getMessage();", "title": "" }, { "docid": "5b1061f1ebfe1ca18e71d8458b8bdf97", "score": "0.6589225", "text": "java.lang.String getMessage();", "title": "" }, { "docid": "5b1061f1ebfe1ca18e71d8458b8bdf97", "score": "0.6589225", "text": "java.lang.String getMessage();", "title": "" }, { "docid": "5b1061f1ebfe1ca18e71d8458b8bdf97", "score": "0.6589225", "text": "java.lang.String getMessage();", "title": "" }, { "docid": "5b1061f1ebfe1ca18e71d8458b8bdf97", "score": "0.6589225", "text": "java.lang.String getMessage();", "title": "" }, { "docid": "5b1061f1ebfe1ca18e71d8458b8bdf97", "score": "0.6589225", "text": "java.lang.String getMessage();", "title": "" }, { "docid": "5b1061f1ebfe1ca18e71d8458b8bdf97", "score": "0.6589225", "text": "java.lang.String getMessage();", "title": "" }, { "docid": "3760345ff3adfc03e41a5a626223d7de", "score": "0.65624744", "text": "@Override\n public String getMessage() {\n return this.messageBuilder.toString();\n }", "title": "" }, { "docid": "2ca30805153b2adf8402312e408d4067", "score": "0.6471746", "text": "public String getOptionDesc() {\n return optionDesc;\n }", "title": "" }, { "docid": "ebab2c00e46ce7f5071851c01c00292d", "score": "0.6467594", "text": "@Override\r\n\tpublic String getMessage() {\r\n\t\treturn this.message;\r\n\t}", "title": "" }, { "docid": "20af5621683be28efb2529a0d6d6eab2", "score": "0.64508307", "text": "public String getOption() {\r\n return option;\r\n }", "title": "" }, { "docid": "efe2f8bf9d9abd27f227a86f9917df92", "score": "0.64303017", "text": "@Override\n\tpublic String getMessage() {\n\t\treturn this.message;\n\t}", "title": "" }, { "docid": "9970a972277d2ab37312d565ec30a51b", "score": "0.6428314", "text": "String getMessage();", "title": "" }, { "docid": "9970a972277d2ab37312d565ec30a51b", "score": "0.6428314", "text": "String getMessage();", "title": "" }, { "docid": "9970a972277d2ab37312d565ec30a51b", "score": "0.6428314", "text": "String getMessage();", "title": "" }, { "docid": "9970a972277d2ab37312d565ec30a51b", "score": "0.6428314", "text": "String getMessage();", "title": "" }, { "docid": "9970a972277d2ab37312d565ec30a51b", "score": "0.6428314", "text": "String getMessage();", "title": "" }, { "docid": "9970a972277d2ab37312d565ec30a51b", "score": "0.6428314", "text": "String getMessage();", "title": "" }, { "docid": "9970a972277d2ab37312d565ec30a51b", "score": "0.6428314", "text": "String getMessage();", "title": "" }, { "docid": "0ecfee3cf7cb67ca3b5b886adae89716", "score": "0.6424581", "text": "public String getMessage() {\r\n return this.text;\r\n }", "title": "" }, { "docid": "b1c77dfd5893caf8010a60f795e21f94", "score": "0.6405498", "text": "public String getOption() {\n return option;\n }", "title": "" }, { "docid": "49fe88c6d25bcaf3ecde31fd46680aa8", "score": "0.6386654", "text": "public String getOptionDescription() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "e8229cc5a41fbe4f2ee51735a08307e6", "score": "0.6377784", "text": "public String getMessage();", "title": "" }, { "docid": "e8229cc5a41fbe4f2ee51735a08307e6", "score": "0.6377784", "text": "public String getMessage();", "title": "" }, { "docid": "4d4adc874d563edaad23b98413540087", "score": "0.637057", "text": "@Override\n public String getMessage() {\n return message;\n }", "title": "" }, { "docid": "4d4adc874d563edaad23b98413540087", "score": "0.637057", "text": "@Override\n public String getMessage() {\n return message;\n }", "title": "" }, { "docid": "82c4b734c46aa23efe4c2011f7578051", "score": "0.63695884", "text": "@Override\n public String getMessage() {\n return message;\n }", "title": "" }, { "docid": "65d84dcb4b05db677345908218fd4289", "score": "0.6356326", "text": "@Override\n public String getMessage() {\n return \"\\nSelezionare una tra le opzioni proposte:\\n\";\n }", "title": "" }, { "docid": "cfc458ddd3c649c7bae6d35cfc71e9c5", "score": "0.6355489", "text": "public String getMessage()\r\n\t{\r\n\t\treturn msg;\r\n\t}", "title": "" }, { "docid": "dfd3920dee46d1768092fde01f2fda3b", "score": "0.6349134", "text": "public String getQuestionMessage() {\n return JOptionPane.showInputDialog(null, questionMessage, questionHeader, messageType);\n }", "title": "" }, { "docid": "eabefc1881d565fb0b56081df197b542", "score": "0.6318722", "text": "public String getMessage() {\r\n\t\treturn super.getMessage();\r\n\t}", "title": "" }, { "docid": "8225d1e1b49939133e8ab489fccf7c65", "score": "0.63170135", "text": "public String getMessage() {\n return getVerfDescription()\n + ((moreData != null) ? (\"\\n (\" + moreData + \")\") : \"\");\n }", "title": "" }, { "docid": "791d99137afe525bcae3dd6c89c4f003", "score": "0.6306017", "text": "public Label getMessage () {return this.message ;}", "title": "" }, { "docid": "b3ac55aee0af19a8076d38845b8c1c11", "score": "0.63007176", "text": "public String getMessage()\n {\n return answer.substring(0, answer.length() - 1) + \"]}\";\n }", "title": "" }, { "docid": "f924ecb3e7703ed864729eb72f9ed462", "score": "0.62973315", "text": "public JLabel getMessage() {\n\t\treturn message;\n\t}", "title": "" }, { "docid": "0161983ec52d77a58b8eba87d0ebb96a", "score": "0.62972915", "text": "java.lang.String getMessageText();", "title": "" }, { "docid": "d2bde001752208ce953fe4fc318dc2d3", "score": "0.62955034", "text": "public String getMessage() {\n return null;\n }", "title": "" }, { "docid": "d2bde001752208ce953fe4fc318dc2d3", "score": "0.62955034", "text": "public String getMessage() {\n return null;\n }", "title": "" }, { "docid": "baf0aea30c5af158b3a16279667ba2cf", "score": "0.62950104", "text": "private String getMessage(EnumPlayerModelParts playerModelParts) {\n/* */ String s;\n/* 102 */ if (this.mc.gameSettings.getModelParts().contains(playerModelParts)) {\n/* */ \n/* 104 */ s = I18n.format(\"options.on\", new Object[0]);\n/* */ }\n/* */ else {\n/* */ \n/* 108 */ s = I18n.format(\"options.off\", new Object[0]);\n/* */ } \n/* */ \n/* 111 */ return String.valueOf(playerModelParts.getName().getFormattedText()) + \": \" + s;\n/* */ }", "title": "" }, { "docid": "38d06db8a77359fb2510347cbba0e2c6", "score": "0.6294328", "text": "public String getErrorMessage() {\n return \"OOPS!!! I'm sorry, but I don't know what that means :-( \" + \"\\n\" +\n \"Type 'help' to see the list of commands available!\";\n }", "title": "" }, { "docid": "fafda513052f7081eb06e15b92b1599f", "score": "0.6291369", "text": "String getOption();", "title": "" }, { "docid": "ef05141cd684425886bf9dec48d37c77", "score": "0.62846345", "text": "public String actGetSelectLabel(){\n\t\tactionClick1.click();\r\n\t\tactionButton1.click();\r\n\t\treturn actionMessage.getText();\r\n\t}", "title": "" }, { "docid": "2af224ab40fe5aa62a2b03cf00b438b8", "score": "0.6277759", "text": "@Override\n public String getMessage() {\n return String.format(\"[E][%s] %s (at: %s)\", this.getIsDoneIcon(), this.message,\n this.getPrettierEventTime());\n }", "title": "" }, { "docid": "8704ddab2e25fd8b30cfdc637a2cb941", "score": "0.6251965", "text": "public String getMessage() {\n return message;\r\n }", "title": "" }, { "docid": "738720f32c4f90c71ade204d8a1f2b62", "score": "0.62425125", "text": "public static String getWinMessage() {\n\t\tString[] options = {\n\t\t\t\t\"You win!\",\n\t\t\t\t\"Great job!\",\n\t\t\t\t\"Excellent!\",\n\t\t\t\t\"Nicely done!\",\n\t\t\t\t\"Well-done!\",\n\t\t\t\t\"Impressive!\",\n\t\t\t\t\"Congratulations!\",\n\t\t\t\t\"You finished the level!\",\n\t\t\t\t\"Nice job!\",\n\t\t\t\t\"You make it look easy!\",\n\t\t};\n\t\treturn options[(int) (Math.random() * options.length)];\n\t}", "title": "" }, { "docid": "3789bbc376d071dd2d8332d51ed1bb9a", "score": "0.6234887", "text": "public @Nullable String getMessage() {\n\t\treturn impl.message();\n\t}", "title": "" }, { "docid": "4d231db65acd14bd624a1ecbec550ee8", "score": "0.6224928", "text": "java.lang.String getMsg();", "title": "" }, { "docid": "4d231db65acd14bd624a1ecbec550ee8", "score": "0.6224928", "text": "java.lang.String getMsg();", "title": "" }, { "docid": "7ba652cf37161804c037fbbcff8e1f1a", "score": "0.6204759", "text": "String message() ;", "title": "" }, { "docid": "6935d8c8973e42e739572cac72b61439", "score": "0.6202103", "text": "public String getMessage() {\n\t\treturn message;\n\t}", "title": "" }, { "docid": "6935d8c8973e42e739572cac72b61439", "score": "0.6202103", "text": "public String getMessage() {\n\t\treturn message;\n\t}", "title": "" }, { "docid": "6935d8c8973e42e739572cac72b61439", "score": "0.6202103", "text": "public String getMessage() {\n\t\treturn message;\n\t}", "title": "" }, { "docid": "6935d8c8973e42e739572cac72b61439", "score": "0.6202103", "text": "public String getMessage() {\n\t\treturn message;\n\t}", "title": "" }, { "docid": "6935d8c8973e42e739572cac72b61439", "score": "0.6202103", "text": "public String getMessage() {\n\t\treturn message;\n\t}", "title": "" }, { "docid": "6935d8c8973e42e739572cac72b61439", "score": "0.6202103", "text": "public String getMessage() {\n\t\treturn message;\n\t}", "title": "" }, { "docid": "6935d8c8973e42e739572cac72b61439", "score": "0.6202103", "text": "public String getMessage() {\n\t\treturn message;\n\t}", "title": "" }, { "docid": "6935d8c8973e42e739572cac72b61439", "score": "0.6202103", "text": "public String getMessage() {\n\t\treturn message;\n\t}", "title": "" }, { "docid": "6935d8c8973e42e739572cac72b61439", "score": "0.6202103", "text": "public String getMessage() {\n\t\treturn message;\n\t}", "title": "" }, { "docid": "6935d8c8973e42e739572cac72b61439", "score": "0.6202103", "text": "public String getMessage() {\n\t\treturn message;\n\t}", "title": "" }, { "docid": "6935d8c8973e42e739572cac72b61439", "score": "0.6202103", "text": "public String getMessage() {\n\t\treturn message;\n\t}", "title": "" }, { "docid": "6935d8c8973e42e739572cac72b61439", "score": "0.6202103", "text": "public String getMessage() {\n\t\treturn message;\n\t}", "title": "" }, { "docid": "189ef2b33bdd479009f09869998f62c0", "score": "0.62018794", "text": "public String getMessage()\n {\n return message;\n }", "title": "" }, { "docid": "c7422767ae4f5350ea4218b43c9c3fd4", "score": "0.6199798", "text": "@Override\n\tpublic String getMessage() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "5367ed1fef3683a6d27dd11c4d90c433", "score": "0.6197301", "text": "public String getMessage() {\r\n return message;\r\n }", "title": "" }, { "docid": "5367ed1fef3683a6d27dd11c4d90c433", "score": "0.6197301", "text": "public String getMessage() {\r\n return message;\r\n }", "title": "" }, { "docid": "a52161645cb941b15e0998f77edfbf32", "score": "0.6181868", "text": "public String help_message();", "title": "" }, { "docid": "ea7b2e5039c9da35a36d001f19b98ef2", "score": "0.61663496", "text": "public String getMessage(){\n return getErrorMessage();\n }", "title": "" }, { "docid": "49462ef250809c49206d293f5d04f973", "score": "0.61652637", "text": "public String getMessage() {\n return message;\n }", "title": "" }, { "docid": "49462ef250809c49206d293f5d04f973", "score": "0.61652637", "text": "public String getMessage() {\n return message;\n }", "title": "" }, { "docid": "49462ef250809c49206d293f5d04f973", "score": "0.61652637", "text": "public String getMessage() {\n return message;\n }", "title": "" }, { "docid": "49462ef250809c49206d293f5d04f973", "score": "0.61652637", "text": "public String getMessage() {\n return message;\n }", "title": "" }, { "docid": "2ac02c771a6ed182e83d0b2a0f473264", "score": "0.6161798", "text": "public String getMessage() {\n return message;\n }", "title": "" }, { "docid": "2ac02c771a6ed182e83d0b2a0f473264", "score": "0.6161798", "text": "public String getMessage() {\n return message;\n }", "title": "" }, { "docid": "2ac02c771a6ed182e83d0b2a0f473264", "score": "0.6161798", "text": "public String getMessage() {\n return message;\n }", "title": "" }, { "docid": "2ac02c771a6ed182e83d0b2a0f473264", "score": "0.6161798", "text": "public String getMessage() {\n return message;\n }", "title": "" }, { "docid": "2ac02c771a6ed182e83d0b2a0f473264", "score": "0.6161798", "text": "public String getMessage() {\n return message;\n }", "title": "" }, { "docid": "2ac02c771a6ed182e83d0b2a0f473264", "score": "0.6161798", "text": "public String getMessage() {\n return message;\n }", "title": "" }, { "docid": "2ac02c771a6ed182e83d0b2a0f473264", "score": "0.6161798", "text": "public String getMessage() {\n return message;\n }", "title": "" }, { "docid": "2ac02c771a6ed182e83d0b2a0f473264", "score": "0.6161798", "text": "public String getMessage() {\n return message;\n }", "title": "" }, { "docid": "2ac02c771a6ed182e83d0b2a0f473264", "score": "0.6161798", "text": "public String getMessage() {\n return message;\n }", "title": "" }, { "docid": "2ac02c771a6ed182e83d0b2a0f473264", "score": "0.6161798", "text": "public String getMessage() {\n return message;\n }", "title": "" }, { "docid": "2ac02c771a6ed182e83d0b2a0f473264", "score": "0.6161798", "text": "public String getMessage() {\n return message;\n }", "title": "" }, { "docid": "2ac02c771a6ed182e83d0b2a0f473264", "score": "0.6161798", "text": "public String getMessage() {\n return message;\n }", "title": "" }, { "docid": "2ac02c771a6ed182e83d0b2a0f473264", "score": "0.6161798", "text": "public String getMessage() {\n return message;\n }", "title": "" }, { "docid": "2ac02c771a6ed182e83d0b2a0f473264", "score": "0.6161798", "text": "public String getMessage() {\n return message;\n }", "title": "" }, { "docid": "6297a0c0db5bbce2f992808d74e591d1", "score": "0.61607105", "text": "public String getMessage() {\r\n return message;\r\n }", "title": "" }, { "docid": "bce9c07dc17de72e395d5962c2f6d5f1", "score": "0.61574644", "text": "public String getMessage(){\r\n return MESSAGE;\r\n }", "title": "" }, { "docid": "59ffc014d8e9b869b2c80ff02f381f80", "score": "0.6151451", "text": "@Override\n\tpublic String actionMessage() {\n\t\treturn this.msg;\n\t}", "title": "" }, { "docid": "8d020ae54501d171dd1f9bcc1e621d99", "score": "0.61510575", "text": "@Override\r\n\tpublic String getMessage() {\n\t\treturn \"The evolved version\";\r\n\t}", "title": "" } ]
678a53efa6251f58082c567d4b95ff5c
Convert long value to bytes which are put into a given array.
[ { "docid": "64a0e5941c35c06ebb2f0797b93f7719", "score": "0.76384014", "text": "static void longToByteArray(long val, byte[] buffer, int start) {\n buffer[start] = (byte) (val >>> 56);\n buffer[start + 1] = (byte) ((val >>> 48) & 0x0ff);\n buffer[start + 2] = (byte) ((val >>> 40) & 0x0ff);\n buffer[start + 3] = (byte) ((val >>> 32) & 0x0ff);\n buffer[start + 4] = (byte) ((val >>> 24) & 0x0ff);\n buffer[start + 5] = (byte) ((val >>> 16) & 0x0ff);\n buffer[start + 6] = (byte) ((val >>> 8) & 0x0ff);\n buffer[start + 7] = (byte) val;\n }", "title": "" } ]
[ { "docid": "86e00cbb7ed16eebd331e8ae552031b6", "score": "0.761507", "text": "public static byte[] longToBytes(long val) {\n\n ByteBuffer buffer = ByteBuffer.allocate(8);\n buffer.putLong(val);\n\n return buffer.array();\n }", "title": "" }, { "docid": "0d7d1406720f8518c306ef7d69f57a03", "score": "0.7573263", "text": "public static byte[] longToByteArray(long value)\n {\n byte[] buffer = new byte[8]; //longs are 8 bytes I believe\n for (int i = 7; i >= 0; i--) { //fill from the right\n buffer[i] = (byte) (value & 0x00000000000000ff); //get the bottom byte\n\n //System.out.print(\"\"+Integer.toHexString((int)buffer[i])+\",\");\n value = value >>> 8; //Shift the value right 8 bits\n }\n return buffer;\n }", "title": "" }, { "docid": "8bd0098e6b0bc18cf9b3d6e793f33008", "score": "0.75531024", "text": "private static byte[] convertLongArrayToByte(long[] theVal) {\n\t\tint len = theVal.length*8;\n\t\tbyte[] byteVals = new byte[len];\n\t\tfor(int i = 0; i < theVal.length; i++) {\n\t\t\t\n\t\t\tBigInteger temp = BigInteger.valueOf(Long.parseUnsignedLong(Long.toUnsignedString(theVal[i])));\n\t\t\t\n\n\t\t\tbyte[] t = temp.toByteArray();\n\t\t\tint ledZero = 8 - t.length;\n\t\t\tint counter = 0;\n\t\t\t\tfor(int j = 8*i; j < (8*i)+8; j++) {\n\t\t\t\t\tif(ledZero > 0 && t.length != 8) {\n\t\t\t\t\t\tbyteVals[j] = 0;\n//\t\t\t\t\t\tSystem.out.println(\"hiit\");\n\t\t\t\t\t\tledZero--;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tbyteVals[j] = t[counter];\n\t\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn byteVals;\n\t}", "title": "" }, { "docid": "0a12b472d17ec2a305df35c6c3019a13", "score": "0.72297955", "text": "private static byte[] toByteArray(long value) {\n byte[] result = new byte[8];\n for (int i = 7; i >= 0; i--) {\n result[i] = (byte) (value & 0xffL);\n value >>= 8;\n }\n return result;\n }", "title": "" }, { "docid": "d74377669b97b1cfcfed8d4ad0519ba3", "score": "0.71996945", "text": "private void writeInteger64ToByteArray(long value) {\n\t\tlongintBytes[7] = (byte)value; value >>>= 8;\n\t\tlongintBytes[6] = (byte)value; value >>>= 8;\n\t\tlongintBytes[5] = (byte)value; value >>>= 8;\n\t\tlongintBytes[4] = (byte)value; value >>>= 8;\n\t\tlongintBytes[3] = (byte)value; value >>>= 8;\n\t\tlongintBytes[2] = (byte)value; value >>>= 8;\n\t\tlongintBytes[1] = (byte)value; value >>>= 8;\n\t\tlongintBytes[0] = (byte)value;\n\n\t\ttry {\n\t\t\tstream.write(longintBytes);\n\t\t} catch (IOException ex) {\n\t\t\tthrow new RuntimeException(\"You're screwed:\"\n\t\t\t\t\t+ \" IOException writing to a ByteArrayOutputStream\", ex);\n\t\t}\n\t}", "title": "" }, { "docid": "401aa4df5eb64c3fd5cbc24ca529c28a", "score": "0.7125889", "text": "public final static byte[] Long( long num){\n byte[] ret = new byte[8];\n return Long(num,ret);\n }", "title": "" }, { "docid": "87b427d76658c4e6307251309319dd01", "score": "0.7086574", "text": "void writeArrayOfLong(long[] v);", "title": "" }, { "docid": "122d66c4f50d22ec918f8f828134736c", "score": "0.70491624", "text": "public static byte[] longToByteArray(long input) {\n return new byte[]{\n (byte) ((input & 0xFF00000000000000l) >> 56),\n (byte) ((input & 0x00FF000000000000l) >> 48),\n (byte) ((input & 0x0000FF0000000000l) >> 40),\n (byte) ((input & 0x000000FF00000000l) >> 32),\n (byte) ((input & 0x00000000FF000000l) >> 24),\n (byte) ((input & 0x0000000000FF0000l) >> 16),\n (byte) ((input & 0x000000000000FF00l) >> 8),\n (byte) ((input & 0x00000000000000FFl)),\n };\n }", "title": "" }, { "docid": "2ea0f085ece4ff9709e2ad4906a43a90", "score": "0.69550914", "text": "public static byte[] longToBytes8(long values) {\n byte[] buffer = new byte[8];\n for (int i = 0; i < 8; i++) {\n int offset = 64 - (i + 1) * 8;\n buffer[i] = (byte) ((values >> offset) & 0xff);\n }\n return buffer;\n }", "title": "" }, { "docid": "8a031fa4bf3a5221432c8f75ffde4cd0", "score": "0.69436044", "text": "byte[] serializeLong(Long value)\n\t{\n\t\tbyte[] buffer = new byte[10];\n\t\t\n\t\tByteBuffer writeable = ByteBuffer.wrap(buffer);\n\t\tint nBytes = Leb128.writeUnsigned(writeable, value);\n\t\t\t\n\t\t\n\t\treturn Arrays.copyOf(buffer, nBytes);\n\t}", "title": "" }, { "docid": "ff11823e9c6f62ab4a1480cb0bec3252", "score": "0.6843785", "text": "private static byte[] longToBytes(long meterPosition) {\n return ByteBuffer.allocate(Long.SIZE / Byte.SIZE).putLong(meterPosition).array();\n }", "title": "" }, { "docid": "6d21edee997b0eca5e7d03d691fae110", "score": "0.6817277", "text": "public static byte[] toBytes(long n) {\n byte[] b = new byte[8];\n\n b[0] = (byte) (n);\n n >>>= 8;\n b[1] = (byte) (n);\n n >>>= 8;\n b[2] = (byte) (n);\n n >>>= 8;\n b[3] = (byte) (n);\n n >>>= 8;\n b[4] = (byte) (n);\n n >>>= 8;\n b[5] = (byte) (n);\n n >>>= 8;\n b[6] = (byte) (n);\n n >>>= 8;\n b[7] = (byte) (n);\n\n return b;\n }", "title": "" }, { "docid": "be12055b71ec8b75f3317a066cd35b43", "score": "0.66738784", "text": "public byte[] getBytes() {\n long v = ((Long) _value).longValue();\n\n byte[] ret = null;\n\n ByteBuffer bb = ByteBuffer.allocate(_iByteSize);\n\n switch (_iByteSize) {\n case 1:\n ret = bb.put((byte) v).array();\n break;\n case 2:\n ret = bb.putShort((short) v).array();\n break;\n case 4:\n ret = bb.putInt((int) v).array();\n break;\n case 8:\n default:\n ret = bb.putLong(v).array();\n break;\n }\n\n return ret;\n }", "title": "" }, { "docid": "e4efec773aeb33f0c65795f8af5041bb", "score": "0.6630198", "text": "private static long[] convertByteArrayToArray(byte[] theVal) {\n\t\tint len = theVal.length/8;\n\t\tlong[] longVals = new long[len];\n\t\tfor(int i = 0; i < longVals.length; i++) {\n\t\t\tbyte[] bits = Arrays.copyOfRange(theVal, 8*i, (8*i)+8);\n//\t\t\tSystem.out.println(\"the bits at \" + i + \" are\" + Arrays.toString(bits));\n\t\t\tBigInteger ex = new BigInteger(bits);\n\t\t\t\n\t\t\tlongVals[i] = ex.longValue();\n\t\t}\n\t\treturn longVals;\n\t}", "title": "" }, { "docid": "0144ce7fcdd10c7d7e92f715bf0aa7f7", "score": "0.64891034", "text": "long[] toArray();", "title": "" }, { "docid": "ba8004388161216eecea2eb93ab0f62c", "score": "0.6352487", "text": "public static byte[] encodeLong(int i) {\n byte[] bArr = new byte[4];\n encodeLong(bArr, 0, i);\n return bArr;\n }", "title": "" }, { "docid": "c5b299b51ea128024d4919b69aad044f", "score": "0.63288975", "text": "static public byte[] convertLongToByte8 (long l, boolean swapBytes)\n {\n byte[] buf = new byte[8];\n\n if ( swapBytes )\n {\n buf[0] = (byte)((l & 0x000000FF) >> 0);\n buf[1] = (byte)((l & 0x0000FF00) >> 8);\n buf[2] = (byte)((l & 0x00FF0000) >> 16);\n buf[3] = (byte)((l & 0xFF000000) >> 24);\n l >>>= 32; //because & only works with ints, we need to shift the last 4 bytes down\n buf[4] = (byte)((l & 0x000000FF) >> 0);\n buf[5] = (byte)((l & 0x0000FF00) >> 8);\n buf[6] = (byte)((l & 0x00FF0000) >> 16);\n buf[7] = (byte)((l & 0xFF000000) >> 24);\n }\n else\n {\n buf[7] = (byte)((l & 0x000000FF) >> 0);\n buf[6] = (byte)((l & 0x0000FF00) >> 8);\n buf[5] = (byte)((l & 0x00FF0000) >> 16);\n buf[4] = (byte)((l & 0xFF000000) >> 24);\n l >>>= 32; //because & only works with ints, we need to shift the last 4 bytes down\n buf[3] = (byte)((l & 0x000000FF) >> 0);\n buf[2] = (byte)((l & 0x0000FF00) >> 8);\n buf[1] = (byte)((l & 0x00FF0000) >> 16);\n buf[0] = (byte)((l & 0xFF000000) >> 24);\n }\n\n return buf;\n }", "title": "" }, { "docid": "295185944602fa00297c0c42dd7ad71d", "score": "0.6209016", "text": "public void writeLongArray(long[] a) throws IOException {\n writeUintCompressed(a.length);\n for (long l : a)\n writeLong(l);\n }", "title": "" }, { "docid": "03b3a02b3fa81d8cad59538c9ec6395c", "score": "0.6177443", "text": "public static byte[] toUint32(long value) {\n return new byte[]{(byte) (value >>> 24), (byte) (value >>> 16), (byte) (value >>> 8), (byte) (value & 0xFF)};\n }", "title": "" }, { "docid": "02c7d841e57eddcde16518b6acb9b823", "score": "0.6152453", "text": "public static long byteArrayToLong(byte[] buffer)\n {\n long value = 0;\n long multiplier = 1;\n for (int i = 7; i >= 0; i--) { //get from the right\n\n //System.out.println(Long.toHexString(multiplier)+\"\\t\"+Integer.toHexString((int)buffer[i]));\n value = value + (buffer[i] & 0xff) * multiplier; // add the value * the hex mulitplier\n multiplier = multiplier << 8;\n }\n return value;\n }", "title": "" }, { "docid": "46f88c64d5a28e1d4042740ba636ab00", "score": "0.61444414", "text": "public static void putLong(byte[] data, int offset, long value) {\r\n int limit = LONG_SIZE + offset;\r\n long v = value;\r\n \r\n for (int j = offset; j < limit; j++) {\r\n data[j] = (byte) (v & 0xFF);\r\n v >>= 8;\r\n }\r\n }", "title": "" }, { "docid": "226241be695f720c10b68e0a7880ec84", "score": "0.61221355", "text": "static public byte[] toIPByteArray(long addr){\n return new byte[]{(byte)addr,(byte)(addr>>>8),(byte)(addr>>>16),(byte)(addr>>>24)};\n }", "title": "" }, { "docid": "f20226c73994d1ec8a33fa6b073bf7f8", "score": "0.61190367", "text": "public static long byteArrayToLong(byte[] b) {\n\t\tlong value = 0;\n\t\tfor (int i = 0; i < b.length; i++) {\n\t\t\tvalue += (b[i] & 0xff) << (8 * i);\n\t\t}\n\t\treturn value;\n\t}", "title": "" }, { "docid": "9bc8bb9b4feccc9f12840b3ae3e818dd", "score": "0.6117693", "text": "static public byte[] convertLongToByte4 (long l, boolean swapBytes)\n {\n byte[] buf = new byte[4];\n\n if ( swapBytes )\n {\n buf[0] = (byte)((l & 0x000000FF) >> 0);\n buf[1] = (byte)((l & 0x0000FF00) >> 8);\n buf[2] = (byte)((l & 0x00FF0000) >> 16);\n buf[3] = (byte)((l & 0xFF000000) >> 24);\n }\n else\n {\n buf[3] = (byte)((l & 0x000000FF) >> 0);\n buf[2] = (byte)((l & 0x0000FF00) >> 8);\n buf[1] = (byte)((l & 0x00FF0000) >> 16);\n buf[0] = (byte)((l & 0xFF000000) >> 24);\n }\n\n return buf;\n }", "title": "" }, { "docid": "d96e220f1c52e9630247ac80b8938c5c", "score": "0.6098498", "text": "public static long arrayToLong(byte[] input) {\n\tlong out = 0;\n\tfor (int i = input.length - 1; i >= 0; i--) {\n\t out |= input[i] & 0xFF;\n\t if (i != 0) {\n\t\tout <<= 8;\n\t }\n\t}\n\treturn out;\n }", "title": "" }, { "docid": "e69805f6bed50352c90c4e32b5b70c5a", "score": "0.60946965", "text": "public byte[] squeezeBytesLong( long[] hashed, int digest_len )\n {\n int end_point = digest_len / 64;\n byte[] hash = new byte[digest_len / 8];\n for( int i = 0; i < end_point; i++ )\n {\n ByteBuffer buf = ByteBuffer.allocate(8);\n buf.putLong( hashed[i] );\n byte[] arr = buf.array();\n for( int j = 0; j < 8; j++ ) {\n hash[(i * 8) + j] = arr[j];\n }\n }\n return hash;\n }", "title": "" }, { "docid": "853c4ae27196faef0f1832562d6c37e0", "score": "0.60669684", "text": "public static void encodeLong(byte[] bArr, int i, int i2) {\n bArr[i + 0] = (byte) (i2 & 255);\n bArr[i + 1] = (byte) ((i2 >> 8) & 255);\n bArr[i + 2] = (byte) ((i2 >> 16) & 255);\n bArr[i + 3] = (byte) ((i2 >> 24) & 255);\n }", "title": "" }, { "docid": "605770dccda83875b741fe33c35d5dfa", "score": "0.60655415", "text": "public static byte[] truncateIntToLEByteArray(int[] values) {\n byte[] array = new byte[values.length * 2];\n \n for(int i = 0; i < values.length; i++) {\n array[2 * i] = (byte)( values[i] & 0xff);\n array[2 * i + 1] = (byte)((values[i] >> 8) & 0xff);\n }\n \n return array;\n }", "title": "" }, { "docid": "05e5c7132cf46e83e8365b8f5ac6e8fb", "score": "0.60368955", "text": "public static byte[] toUint64(BigInteger value) {\n return new byte[]{value.shiftRight(56).byteValue(), value.shiftRight(48).byteValue(), value.shiftRight(40).byteValue(),\n value.shiftRight(32).byteValue(), value.shiftRight(24).byteValue(), value.shiftRight(16).byteValue(),\n value.shiftRight(8).byteValue(), value.and(BigInteger.valueOf(0xFF)).byteValue()};\n }", "title": "" }, { "docid": "ccb1e9419f72d5c7f1cc6e420a75a040", "score": "0.6019317", "text": "public byte[] toByteArray() {\n\n final int byteOfLong = Long.SIZE / Byte.SIZE;\n byte[] ba = new byte[byteOfLong * 2];\n byte[] t1 = ByteBuffer.allocate(byteOfLong).putLong(sendTs).array();\n byte[] t2 = ByteBuffer.allocate(byteOfLong).putLong(recvTs).array();\n\n for (int i = 0; i < byteOfLong; i++) {\n ba[i] = t1[i];\n }\n\n for (int i = 0; i < byteOfLong; i++) {\n ba[i + byteOfLong] = t2[i];\n }\n return ba;\n }", "title": "" }, { "docid": "7d02f664f51cac4e6061a9e9e3f00469", "score": "0.59786206", "text": "private static byte[] toByteArray(int val)\r\n\t{\r\n\t\tbyte[] res = new byte[3];\r\n\t\tres[0] = (byte) (val / 0x10000);\r\n\t\tres[1] = (byte) ((val - res[0] * 0x10000) / 0x100);\r\n\t\tres[2] = (byte) (val - res[0] * 0x10000 - res[1] * 0x100);\r\n\t\treturn res;\r\n\t}", "title": "" }, { "docid": "26b22379c5c91de0336defb0a8548c96", "score": "0.59457", "text": "private byte[] toPrimitiveBytes(Object[] arr)\n\t{\t\n\t\tbyte[] result = new byte[arr.length];\n\t\t\n\t\tfor (int i = 0; i < arr.length; i++)\n\t\t{\n\t\t\tresult[i] = (byte) arr[i];\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "title": "" }, { "docid": "9f0c27364239f3e169095e58f97b8a66", "score": "0.5943838", "text": "private static ByteBuffer\n toBuffer(int[] array)\n {\n ByteBuffer result = ByteBuffer.allocate(array.length);\n for (int i = 0; i < array.length; ++i)\n result.put((byte)(array[i] & 0xff));\n\n result.flip();\n return result;\n }", "title": "" }, { "docid": "fc3b1b81517f7e62400556e29a2ae7fe", "score": "0.5941158", "text": "static byte[] toPrimitiveByteArray(Byte[] wrappedArray) {\n\t\tbyte[] array = new byte[wrappedArray.length];\n \t \n\t\tfor(int i = 0; i < wrappedArray.length; i++){\n\t\t\tarray[i] = wrappedArray[i].byteValue();\n\t\t}\n\t\treturn array;\n\t}", "title": "" }, { "docid": "21a326a73c01e3cf8ec6828fa6450303", "score": "0.59399027", "text": "public void writeLongs(long[] object) {\n for (int i = 0, n = object.length; i < n; i++) {\n writeLong(object[i]);\n }\n }", "title": "" }, { "docid": "0046e78f7d1e042a56886f6c158bd677", "score": "0.5925632", "text": "static void l2bBig(long[] in, int inOfs, byte[] out, int outOfs, int len) {\n len += outOfs;\n while (outOfs < len) {\n long i = in[inOfs++];\n out[outOfs++] = (byte)(i >> 56);\n out[outOfs++] = (byte)(i >> 48);\n out[outOfs++] = (byte)(i >> 40);\n out[outOfs++] = (byte)(i >> 32);\n out[outOfs++] = (byte)(i >> 24);\n out[outOfs++] = (byte)(i >> 16);\n out[outOfs++] = (byte)(i >> 8);\n out[outOfs++] = (byte)(i );\n }\n }", "title": "" }, { "docid": "6f05ebab8ed9752929941413e5f47aee", "score": "0.5925293", "text": "public static long bytes8ToLong(byte[] buffer) {\n long values = 0;\n for (int i = 0; i < 8; i++) {\n values <<= 8;\n values |= (buffer[i] & 0xff);\n }\n return values;\n }", "title": "" }, { "docid": "ed1554712947d98096d0f40f7454520c", "score": "0.5905853", "text": "public static long toLong( byte[] b ) {\n\n return ((((long) b[8]) & 0xFF) +\n ((((long) b[7]) & 0xFF) << 8) +\n ((((long) b[6]) & 0xFF) << 16) +\n ((((long) b[5]) & 0xFF) << 24) +\n ((((long) b[4]) & 0xFF) << 32) +\n ((((long) b[3]) & 0xFF) << 40) +\n ((((long) b[2]) & 0xFF) << 48) +\n ((((long) b[1]) & 0xFF) << 56));\n }", "title": "" }, { "docid": "253adabcd35e049a4975cd6296224b36", "score": "0.58672774", "text": "public void writeLong(long value) {\n require(8);\n\n byte[] buffer = this.bytes;\n buffer[this.position++] = (byte) (value >>> 56);\n buffer[this.position++] = (byte) (value >>> 48);\n buffer[this.position++] = (byte) (value >>> 40);\n buffer[this.position++] = (byte) (value >>> 32);\n buffer[this.position++] = (byte) (value >>> 24);\n buffer[this.position++] = (byte) (value >>> 16);\n buffer[this.position++] = (byte) (value >>> 8);\n buffer[this.position++] = (byte) value;\n }", "title": "" }, { "docid": "b1c144bd36c16db51c2f84ababbb3e4c", "score": "0.5865009", "text": "public void testToBytes()\n {\n final ZipLong zipLong = new ZipLong( 0x12345678 );\n final byte[] result = zipLong.getBytes();\n assertEquals( \"length getBytes\", 4, result.length );\n assertEquals( \"first byte getBytes\", 0x78, result[ 0 ] );\n assertEquals( \"second byte getBytes\", 0x56, result[ 1 ] );\n assertEquals( \"third byte getBytes\", 0x34, result[ 2 ] );\n assertEquals( \"fourth byte getBytes\", 0x12, result[ 3 ] );\n }", "title": "" }, { "docid": "1f97a800985f84889f4753484c6cf464", "score": "0.5862496", "text": "public static void putLong(byte[] bufCmd, long val) {\n Arrays.fill(bufCmd, (byte) 0);\n for (int i = 0; i < 8; i++) {\n bufCmd[i] = (byte) ((val >> 8 * i) & 0xFF);\n }\n }", "title": "" }, { "docid": "15e99e0385a8006b2492785c31349304", "score": "0.5854732", "text": "static long byteArrayToLong(byte[] buffer, int start) {\n return (((long)buffer[start]) << 56) |\n (((long)buffer[start + 1] & 0x0ffL) << 48) |\n (((long)buffer[start + 2] & 0x0ffL) << 40) |\n (((long)buffer[start + 3] & 0x0ffL) << 32) |\n (((long)buffer[start + 4] & 0x0ffL) << 24) |\n (((long)buffer[start + 5] & 0x0ffL) << 16) |\n (((long)buffer[start + 6] & 0x0ffL) << 8) |\n ((long)buffer[start + 7] & 0x0ff);\n }", "title": "" }, { "docid": "705e703af6a8ad93fd92184e0991c62d", "score": "0.5829703", "text": "public static byte[] convertDDInteger(long content, boolean isLittleEndian) {\r\n\r\n\t\tif(content > 4294967295L || content < 0) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tint input = (int) content;\r\n\r\n\t\tByteBuffer buffer = ByteBuffer.allocate(4).putInt(input);\r\n\r\n\t\tbyte[] result = buffer.array();\r\n\r\n\t\treturn isLittleEndian ? ByteArray.reverse(result) : result;\r\n\t}", "title": "" }, { "docid": "c965389e1febd1c9a7f2b531cfba837d", "score": "0.57880026", "text": "public String toLongs() {\n String result = \"\";\n for (long l : a) {\n result += Long.toUnsignedString(l) + \"\\n\";\n }\n return result;\n }", "title": "" }, { "docid": "296890a88c237d74f782147f9d9a39bb", "score": "0.5782329", "text": "public byte[] getBytes() {\r\n\t\tif (Linker32.bigEndian) {\r\n\t\t\treturn ByteBuffer.allocate(4).putInt(val).array();\r\n\t\t} else {\r\n\t\t\treturn ByteBuffer.allocate(4).order(ByteOrder.LITTLE_ENDIAN).putInt(val).array();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "507816357a3e901852ff2a799cdab1ba", "score": "0.5743396", "text": "byte[] toBytes();", "title": "" }, { "docid": "2b3942ec867f10132102061d24cca9cb", "score": "0.57237804", "text": "private static long getLong(byte[] array, int start) {\n \tif(array.length - start < 8) {\n \t\tthrow new RuntimeException(\"Cannot retrieve 8 bytes from array of length \" + array.length + \" with starting point \" + start);\n \t}\n \tbyte[] subArray = new byte[8];\n \tSystem.arraycopy(array, start, subArray, 0, 8);\n \treturn ByteBuffer.wrap(subArray).getLong();\n }", "title": "" }, { "docid": "c9e817d3fc8abdd41a86d5c99f1569a7", "score": "0.5714844", "text": "public static byte[] convertToByteArray(List<Byte> a) {\n\t\tbyte[] b = new byte[a.size()];\n\t\tfor (int i = 0; i < a.size(); i++) {\n\t\t\tb[i] = a.get(i);\n\t\t}\n\t\treturn b;\n\t}", "title": "" }, { "docid": "569d5f30e9365ed579deade4ff913714", "score": "0.56790125", "text": "private void writeInteger32ToByteArray(int value) {\n\t\t//byte[] intBytes = new byte[4];\n\t\t//I allocated the this buffer globally so the GC has less work\n\n\t\tintBytes[3] = (byte)value; value >>>= 8;\n\t\tintBytes[2] = (byte)value; value >>>= 8;\n\t\tintBytes[1] = (byte)value; value >>>= 8;\n\t\tintBytes[0] = (byte)value;\n\n\t\ttry {\n\t\t\tstream.write(intBytes);\n\t\t} catch (IOException ex) {\n\t\t\tthrow new RuntimeException(\"You're screwed:\"\n\t\t\t\t\t+ \" IOException writing to a ByteArrayOutputStream\", ex);\n\t\t}\n\t}", "title": "" }, { "docid": "d0651300624889a3ade552e4d83d3152", "score": "0.5676891", "text": "public static Long[] toLongArray(long[] array) {\r\n return ArrayUtils.toObject(array);\r\n }", "title": "" }, { "docid": "4940afee99c7423edc76d0046a803f7d", "score": "0.5635996", "text": "public static byte convertLongtoUnsignedByte(long data) {\n\t return (byte) (data & 0xff);\r\n\t }", "title": "" }, { "docid": "55dc742c6451d683bc48f5b1bccc998c", "score": "0.56313646", "text": "public LargeInteger(byte[] b) {\n\t\tval = b;\n\t}", "title": "" }, { "docid": "e7aaeb39f7a675cfc7b1b706448430e1", "score": "0.56298923", "text": "static MIXChar[] decode(long[] l) {\n int size = l.length * CHAR_PER_LONG;\n MIXChar[] unpacked = new MIXChar[size];\n for (int i = 0; i < l.length; i++) {\n long currentLong = l[i];\n for (int j = 0; j < CHAR_PER_LONG; j++) {\n unpacked[j + (i * CHAR_PER_LONG)] = new MIXChar(\n (int) Long.divideUnsigned(currentLong, \n (long) (Math.pow(BASE, POWER - j))));\n currentLong = Long.remainderUnsigned(currentLong, \n (long) Math.pow(BASE, POWER - j));\n }\n }\n return unpacked;\n }", "title": "" }, { "docid": "2763cbca724f27dbba11d048799f7db1", "score": "0.5619562", "text": "private static byte[] intToByteArray(int value) {\r\n\t\tbyte[] intBytes = new byte[]{\r\n\t\t\t(byte)(value >>> 24),\r\n\t\t\t(byte)(value >>> 16),\r\n (byte)(value >>> 8),\r\n (byte)(value)\r\n\t\t};\r\n\t\treturn intBytes;\r\n\t}", "title": "" }, { "docid": "442b4e3478dca9a0a7245d36f9c758f4", "score": "0.56088173", "text": "private static void int2byte(int[] in, byte[] out) {\n for (int inpos = 0, outpos = 0; inpos < 4; inpos++) {\n out[outpos++] = (byte) (in[inpos] & 0xff);\n out[outpos++] = (byte) ((in[inpos] >>> 8) & 0xff);\n out[outpos++] = (byte) ((in[inpos] >>> 16) & 0xff);\n out[outpos++] = (byte) ((in[inpos] >>> 24) & 0xff);\n }\n }", "title": "" }, { "docid": "31886420a1f75a2efe6edaa201a0fa5b", "score": "0.56061935", "text": "static Byte[] toWrapperByteArray(byte[] primitiveArray) {\n\t\tByte[] array = new Byte[primitiveArray.length];\n \t \n\t\tfor(int i = 0; i < primitiveArray.length; i++)\n\t\t\tarray[i] = primitiveArray[i];\n\t\treturn array;\n\t}", "title": "" }, { "docid": "746aa936e591d6f39b156b679217c9a9", "score": "0.5590178", "text": "void writeArrayOfByte(byte[] v);", "title": "" }, { "docid": "1da286fd86fe4df2977eee315200700f", "score": "0.5582015", "text": "public long[] longArray();", "title": "" }, { "docid": "100ade55ca4bd42fd4e5b778ad036f58", "score": "0.5566229", "text": "private byte byteFromLong(long value, int position) {\n\t\tbyte b = -1; // = 11111111\n\t\treturn (byte) ((value & this.byteBitMask(b, position)) >>> (position - 1) * 8);\n\t}", "title": "" }, { "docid": "5465498a54fce2928b4942554b22487c", "score": "0.55619717", "text": "public static void wordToBytes(final long word, final byte[] bytes, final int off)\n {\n Pack.longToLittleEndian(word, bytes, off);\n }", "title": "" }, { "docid": "8627ed51ead2d0f8e2731bc6cc02bd37", "score": "0.55483", "text": "public byte[] toBytes() {\n\t\tbyte[] bytes = new byte[4 + 4 + data.length];\n\t\tbyte[] lenbytes = intToByteArray(data.length);\n\t\t\n\t\tfor (int i=0; i<4; i++) bytes[i] = type[i];\n\t\tfor (int i=0; i<4; i++) bytes[i+4] = lenbytes[i];\n\t\tfor (int i=0; i<data.length; i++) bytes[i+8] = data[i];\n\t\t\n\t\treturn bytes;\n\t}", "title": "" }, { "docid": "cd033597b18264f7516a73fc10d2e678", "score": "0.5541252", "text": "static void b2lBig(byte[] in, int inOfs, long[] out, int outOfs, int len) {\n len += inOfs;\n while (inOfs < len) {\n int i1 = ((in[inOfs + 3] & 0xff) )\n | ((in[inOfs + 2] & 0xff) << 8)\n | ((in[inOfs + 1] & 0xff) << 16)\n | ((in[inOfs ] ) << 24);\n inOfs += 4;\n int i2 = ((in[inOfs + 3] & 0xff) )\n | ((in[inOfs + 2] & 0xff) << 8)\n | ((in[inOfs + 1] & 0xff) << 16)\n | ((in[inOfs ] ) << 24);\n out[outOfs++] = ((long)i1 << 32) | (i2 & 0xffffffffL);\n inOfs += 4;\n }\n }", "title": "" }, { "docid": "f74e5d28c9223eb1a66038c4ae69ee0a", "score": "0.55396336", "text": "@Override\n public byte[] asBytes(int rowNumber) {\n return ByteBuffer.allocate(8).putLong(get(rowNumber)).array();\n }", "title": "" }, { "docid": "407d3443f5eb6f3eb77af2a96e15a8e5", "score": "0.5537663", "text": "public static byte[] convertIntToByteArray(int val) {\r\n\t\tbyte[] ret = new byte[4];\r\n\t\tret[0] = (byte) ((0xFF000000 & val) >> 24);\r\n\t\tret[1] = (byte) ((0x00FF0000 & val) >> 16);\r\n\t\tret[2] = (byte) ((0x0000FF00 & val) >> 8);\r\n\t\tret[3] = (byte) (0x000000FF & val);\r\n\t\treturn ret;\r\n\t}", "title": "" }, { "docid": "effb02d8b5db153975556d8959297e4a", "score": "0.5535579", "text": "private byte[] shortToByteArray(short number) {\n return new byte[]{\n (byte) ((number >> 8) & 0xff),\n (byte) (number)};\n }", "title": "" }, { "docid": "45373192869a85faa1ef05ec8b56b8cc", "score": "0.5530612", "text": "public static final byte[] toBytes(int v) {\n\t\treturn new byte[] { (byte) (v >> 3 * Byte.SIZE), (byte) (v >> 2 * Byte.SIZE), (byte) (v >> Byte.SIZE), (byte) v };\n\t}", "title": "" }, { "docid": "e1ccff59ebf5fce44528452608d4f49d", "score": "0.5530502", "text": "public static byte[] bigIntegerTo32Bytes(BigInteger b) {\n byte[] bytes = b.toByteArray();\n Preconditions.checkArgument(bytes.length <= 33);\n if (bytes.length == 33) {\n // The result is 32 bytes, but with zero at the beginning, which we\n // strip\n Preconditions.checkArgument(bytes[0] == 0);\n return Arrays.copyOfRange(bytes, 1, 33);\n }\n // The result is 32 bytes or less, make it 32 bytes with the data at the\n // end\n byte[] result = new byte[32];\n System.arraycopy(bytes, 0, result, result.length - bytes.length, bytes.length);\n return result;\n }", "title": "" }, { "docid": "5d32fced075b26089abd9066583194e3", "score": "0.55142933", "text": "public void encodeLong(long l) {\n baos.writeLongLE(l);\n }", "title": "" }, { "docid": "bc11fe552fa7f4e25f75d78258be3ce5", "score": "0.5507117", "text": "static public void convertIntegerToByteArray(int i, byte[] b, int offset, ByteOrder type) {\n ByteBuffer.wrap(b, offset, 4).order(type).putInt(i);\n }", "title": "" }, { "docid": "bd07a0b4038d1de760de8ed9bc67170d", "score": "0.5492828", "text": "@Test\n public void testLongArray() throws Exception {\n long[] array = new long[] {4, 5, 6};\n\n DataOutputStream out = getDataOutput();\n DataSerializer.writeLongArray(array, out);\n out.flush();\n\n DataInput in = getDataInput();\n long[] array2 = DataSerializer.readLongArray(in);\n\n assertEquals(array.length, array2.length);\n for (int i = 0; i < array.length; i++) {\n assertEquals(array[i], array2[i]);\n }\n }", "title": "" }, { "docid": "36fc1a4b0b377ba02c889d0062cd6b2a", "score": "0.5490152", "text": "public static byte[] intToByteArray(int value) {\n return new byte[] {\n (byte) (value >>> 24),\n (byte) (value >>> 16),\n (byte) (value >>> 8),\n (byte) value};\n }", "title": "" }, { "docid": "6536eb7793c9e25417e37af1eeb8dc58", "score": "0.5481611", "text": "public ByteBuffer convert(byte[] bArr) {\n return ByteBuffer.wrap(bArr);\n }", "title": "" }, { "docid": "4d5386bde9464bc53446971b4d1588df", "score": "0.54809034", "text": "public abstract byte[] toBytes();", "title": "" }, { "docid": "9f0088cd60b205bd126272074fc10997", "score": "0.5459521", "text": "public static long arrayToLong(int[] input) {\n\tint multiplier = 1;\n\tlong output = 0;\n\tfor (int i = 0; i < input.length; i++) {\n\t output += (int) input[i] * multiplier;\n\t multiplier *= 256;\n\t}\n\treturn output;\n }", "title": "" }, { "docid": "ae9cf9fa00bf364c2beeb25bd377bd57", "score": "0.54568154", "text": "private static void m984a(byte[] bArr, int i, long j) {\n bArr[i] = (byte) ((int) (j >> 56));\n bArr[i + 1] = (byte) ((int) (j >> 48));\n bArr[i + 2] = (byte) ((int) (j >> 40));\n bArr[i + 3] = (byte) ((int) (j >> 32));\n bArr[i + 4] = (byte) ((int) (j >> 24));\n bArr[i + 5] = (byte) ((int) (j >> 16));\n bArr[i + 6] = (byte) ((int) (j >> 8));\n bArr[i + 7] = (byte) ((int) j);\n }", "title": "" }, { "docid": "992de818c100bc0bb78e16f875e953a5", "score": "0.54540163", "text": "long getLongArray(int index);", "title": "" }, { "docid": "dfa86a2beef6ebaab94a582b520ec183", "score": "0.5414929", "text": "public byte[] bigIntToBytes(BigInteger r) {\n int expectedLength = (this.p.bitLength() + 7) / 8;\n byte[] tmp = r.toByteArray();\n if (tmp.length == expectedLength) {\n return tmp;\n }\n if (tmp[0] == 0 && tmp.length == expectedLength + 1) {\n byte[] rv = new byte[(tmp.length - 1)];\n System.arraycopy(tmp, 1, rv, 0, rv.length);\n return rv;\n }\n byte[] rv2 = new byte[expectedLength];\n System.arraycopy(tmp, 0, rv2, rv2.length - tmp.length, tmp.length);\n return rv2;\n }", "title": "" }, { "docid": "7ddbd4e7bae090b4bfbb6bef4df5d572", "score": "0.5414843", "text": "public org.apache.gora.cassandra.example.generated.AvroSerialization.CassandraRecord.Builder setArrayLong(java.util.List<java.lang.Long> value) {\n validate(fields()[7], value);\n this.arrayLong = value;\n fieldSetFlags()[7] = true;\n return this; \n }", "title": "" }, { "docid": "02a9f858fb6d4c2d7a56458525402535", "score": "0.53913224", "text": "protected static void guid_to_bytes (\r\n\t BigInteger guid, byte [] buf, int offset) {\n byte [] guid_bytes = guid.toByteArray ();\r\n\tif (guid_bytes.length < 20) {\r\n\t System.arraycopy (guid_bytes, 0, buf,\r\n\t\t offset + 20 - guid_bytes.length, guid_bytes.length);\r\n\t}\r\n\telse {\r\n\t int guid_offset = (guid_bytes.length > 20) ? 1 : 0;\r\n\t System.arraycopy (guid_bytes, guid_offset, buf, offset, 20);\r\n\t}\r\n }", "title": "" }, { "docid": "a6cda989fc3859628b72abac20701e16", "score": "0.5383073", "text": "public static byte[] BigIntToByteArray(BigInteger x) {\n\t\tbyte[] xBytes = x.toByteArray();\n\t\tbyte[] zero = {0};\n\t\tbyte[] newArray = new byte[xBytes.length+ zero.length];\n\t\tSystem.arraycopy(zero, 0, newArray, 0, zero.length);\n\t\tSystem.arraycopy(xBytes, 0, newArray, zero.length, xBytes.length);\n\t\treturn newArray;\n\t}", "title": "" }, { "docid": "16bc20ed93ae6832897364f923c10770", "score": "0.53707373", "text": "private static String m3274a(byte[] bArr) {\n Formatter formatter = new Formatter();\n int length = bArr.length;\n for (int i = 0; i < length; i++) {\n formatter.format(\"%02x\", new Object[]{Byte.valueOf(bArr[i])});\n }\n bArr = formatter.toString();\n formatter.close();\n return bArr;\n }", "title": "" }, { "docid": "df355d19707ff80164431ed219c56f08", "score": "0.53699344", "text": "public static String toByteString(byte[] ary) {\n return Arrays.toString(ary);\n }", "title": "" }, { "docid": "aac31494f1b56e6bd1889b7f9267793f", "score": "0.5362143", "text": "public void setArrayLong(java.util.List<java.lang.Long> value) {\n this.arrayLong = (value instanceof org.apache.gora.persistency.Dirtyable) ? value : new org.apache.gora.persistency.impl.DirtyListWrapper(value);\n setDirty(7);\n }", "title": "" }, { "docid": "3e06524c9dea250cc5bd3e3993e765f7", "score": "0.5358476", "text": "byte[] toByteArray();", "title": "" }, { "docid": "3e06524c9dea250cc5bd3e3993e765f7", "score": "0.5358476", "text": "byte[] toByteArray();", "title": "" }, { "docid": "c68613a7cbaca68e57be3c6c9236d4ea", "score": "0.53549117", "text": "protected static byte[] intToBytes(int time) {\n int pos1 = time & 0xFF000000;\n pos1 >>= 24;\n int pos2 = time & 0x00FF0000;\n pos2 >>= 16;\n int pos3 = time & 0x0000FF00;\n pos3 >>= 8;\n int pos4 = time & 0x000000FF;\n return new byte[]{(byte) pos1, (byte) pos2, (byte) pos3, (byte) pos4};\n }", "title": "" }, { "docid": "69fef283e1a5f0c64ebe35041cf1fef4", "score": "0.5354185", "text": "public static long bytesToLong(byte[] bytes) {\n\n if (bytes.length != 8)\n {\n throw new IllegalArgumentException(\"expected 8 byte array\");\n }\n\n ByteBuffer buffer = ByteBuffer.allocate(8);\n buffer.put(bytes);\n buffer.flip();\n\n return buffer.getLong();\n }", "title": "" }, { "docid": "e06eb62b6b3e61fd837a4a4446b9a0e4", "score": "0.5330882", "text": "protected long[] longListToArray(final List<Long> longList) {\n return longList.stream().mapToLong(Long::longValue).toArray();\n }", "title": "" }, { "docid": "b73b0a79dea5db08cc37e45261ef91a4", "score": "0.5325709", "text": "public static List<Long> long_array_to_list (long[] arr) {\n\t\tArrayList<Long> w = new ArrayList<Long>();\n\t\tfor (long x: arr) {\n\t\t\tw.add (new Long(x));\n\t\t}\n\t\treturn w;\n\t}", "title": "" }, { "docid": "6d10331781125440232ca5c6db26dee5", "score": "0.5315168", "text": "private static byte[] convertOIDtoByte() {\r\n\t\tString[] oidNumber = oid.split(\"\\\\.\");\r\n\t\tbyte[] oidBytes = new byte[oidNumber.length];\t\t\r\n\t\tint i = 0;\r\n\t\tfor(String s: oidNumber ) {\r\n\t\t\toidBytes[i] = Byte.valueOf(s);\r\n\t\t\ti++;\r\n\t\t}\r\n\t\tbyte[] oidHandle = new byte[oidBytes.length-1];\r\n\t\toidHandle[0] = (byte) (oidBytes[0]*40+oidBytes[1]);\r\n\t\tfor(int j=2; j<oidBytes.length;j++)\r\n\t\t{\r\n\t\t\toidHandle[j-1] = oidBytes[j];\r\n\t\t}\r\n\t\treturn oidHandle;\r\n\t}", "title": "" }, { "docid": "ceecd8231052059f0d56cabd96af0b30", "score": "0.53056455", "text": "public static long byteArrayToLong(byte[] bytes, int pos, int len) {\n byte[] intByte = new byte[8];\n System.arraycopy(bytes, pos, intByte, 0, len);\n return ByteBuffer.wrap(intByte).order(ByteOrder.LITTLE_ENDIAN).getInt();\n }", "title": "" }, { "docid": "ae4280b0c9bf70b7e39bc0b9e621b98c", "score": "0.52953047", "text": "public byte[] intToByteArray(final int i) {\r\n BigInteger number = BigInteger.valueOf( i );\r\n byte[] b = number.toByteArray(); // len of array == 2\r\n byte[] addElem = new byte[2];\r\n if (b.length == 1) {\r\n addElem[1] = b[0];\r\n return addElem;\r\n }\r\n return b;\r\n }", "title": "" }, { "docid": "c7fb0a76809aed3c5d3946b07c010448", "score": "0.527868", "text": "public static byte[] intToByte(int i) {\n byte res[] = new byte[4];\n\n res[0] = (byte)(i >> 24);\n res[1] = (byte)((i << 8) >> 24);\n res[2] = (byte)((i << 16) >> 24);\n res[3] = (byte)((i << 24) >> 24);\n\n return res;\n }", "title": "" }, { "docid": "2ebf0441ddd03b24da43806796b74846", "score": "0.52745146", "text": "private static byte[] m7047b(long j) {\n ByteBuffer allocate = ByteBuffer.allocate(2);\n allocate.putShort((short) ((int) j));\n allocate.order(ByteOrder.BIG_ENDIAN);\n allocate.position(0);\n return allocate.array();\n }", "title": "" }, { "docid": "d8779c3b3b51706e8f832d2c4d7feee4", "score": "0.5240492", "text": "public static String asString(byte[] b, int l) {\n\t\treturn (new Bits(b, l)).toString();\n\t}", "title": "" }, { "docid": "2be416e722d00ef6185a96b9dc35d294", "score": "0.5233193", "text": "private static long bitToLong(boolean[] bit) throws WireException {\n\t\tif (bit != null && bit.length > 0 && bit.length <= Long.SIZE) { // bit number bigger then long\n\t\t\tlong result = 0L;\n\t\t\tfor (int i = 0; i < bit.length; i++) {\n\t\t\t\tif (bit[i]) {\n\t\t\t\t\tresult = (result | (1L << i));\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t\tthrow new WireException(\"long cannot represent value\");\n\t}", "title": "" }, { "docid": "af310764fc281e2087d7ab532961acfe", "score": "0.5226256", "text": "private byte[] intToByteArray(final int integer) {\n\t\tint byteNum = 4;\n\t\tbyte[] byteArray = new byte[4];\n\n\t\tfor (int n = 0; n < byteNum; n++)\n\t\t\tbyteArray[n] = (byte) (integer >>> (n * 8));\n\n\t\treturn (byteArray);\n\t}", "title": "" }, { "docid": "3a1eadeb1feae9a50bcdf69778bde678", "score": "0.5221608", "text": "private byte[] shortToBytes(short value)\n {\n return new byte[] {(byte) (value >> 8), (byte) value};\n }", "title": "" }, { "docid": "693a6f9ce0a86add765b996f4e3d6d18", "score": "0.521989", "text": "public static byte[] intToByteArray(int param) { \n byte[] result = new byte[4]; \n for (int i = 0; i < 4; i++) { \n int offset = (result.length - 1 - i) * 8; \n result[i] = (byte) ((param >>> offset) & MASK); \n } \n return result; \n }", "title": "" }, { "docid": "8b19bd4b1ea4d6896a0488d7c534848e", "score": "0.52179784", "text": "public abstract byte[] toCompactByteArray();", "title": "" } ]
b61d5fd53f4889ec617a7aac6372d44d
/ access modifiers changed from: private
[ { "docid": "0646050325100fde07299cb82c373410", "score": "0.0", "text": "public void b(SHARK_CHOPTION shark_choption) {\n ad.d();\n int i = R.string.operation_failed;\n switch (shark_choption) {\n case SHARK_CH_DELETE:\n i = R.string.delete_failed;\n break;\n }\n b(i);\n }", "title": "" } ]
[ { "docid": "76a80470fd21f5a9092c258ed3a8a632", "score": "0.702043", "text": "private static void 로또번호리스트() {\n\t\t\r\n\t}", "title": "" }, { "docid": "434e4a5ff222046d0f614414fae44211", "score": "0.6828894", "text": "private Reflexion() {\n\t}", "title": "" }, { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.6756218", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "095e6ff8bab7af049b3fedcf55fc5bad", "score": "0.67150176", "text": "private LieferungModul() {\r\n\t}", "title": "" }, { "docid": "8df2860821597c6966a39b685d85efbd", "score": "0.67005455", "text": "private FahrzeugVerwaltung() {\n\t}", "title": "" }, { "docid": "9969c2cd0a26f223be9eea348d1c6160", "score": "0.66794604", "text": "private static void 로또수동생성() {\n\t\t\r\n\t}", "title": "" }, { "docid": "edf377f03250c28c266b873c577d54a5", "score": "0.6639594", "text": "private VyhozeniVyjimky() {}", "title": "" }, { "docid": "288fd3ee71b736e770bbef790831c263", "score": "0.6594893", "text": "User mo18615e();", "title": "" }, { "docid": "76e3d99118a00e74a082f6a955778f7d", "score": "0.6530924", "text": "Grensesnitt(){}", "title": "" }, { "docid": "1dd3d9bdd67d8cc8bddfe021796a9286", "score": "0.649101", "text": "@Override\n protected void lodate() {\n\n }", "title": "" }, { "docid": "63a51b9825ac81396e1d7ad0b9f3ed82", "score": "0.6473554", "text": "@Override\n\tpublic void 군무() {\n\t\t\n\t}", "title": "" }, { "docid": "15ae679aae74424c73fde647cf4332f6", "score": "0.6463314", "text": "@Override\r\n\t\t\tpublic void hissetmek() {\n\r\n\t\t\t}", "title": "" }, { "docid": "d92d5fe4c6efcfe66d53457e76817518", "score": "0.6408713", "text": "@Override\r\n\t\t\tprotected void init() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "a02f8e0f4ed0eefc7c02ba56f806759b", "score": "0.6383363", "text": "private Implementation() {\n \t}", "title": "" }, { "docid": "00075c50e26b18237953cd05ffd5428b", "score": "0.6379721", "text": "@Override\n\tpublic void beber() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.6374885", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "b62655d47438ae6875a06d0702721dbc", "score": "0.63674223", "text": "@Override\r\n\t\t\tpublic void koklama() {\n\r\n\t\t\t}", "title": "" }, { "docid": "bfad11e436c98998f434617a4d2907e5", "score": "0.62920994", "text": "@Override\r\n\tpublic void adharno() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a0486d5f3890f3b56ce5a39122c4bdd7", "score": "0.6279874", "text": "@Override\r\n\tvoid metodo4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2ca03152c97df4cbb73238cb18ab9f3d", "score": "0.62493205", "text": "private Accessors()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "title": "" }, { "docid": "dda3b5a5b8e9e69b6eec0807bf162606", "score": "0.62276703", "text": "@Override\r\n\tpublic void rozmnozovat() {\n\t\t\r\n\t}", "title": "" }, { "docid": "618d7ccba57db26436549f0e57001667", "score": "0.6217603", "text": "private Method() {\n \n }", "title": "" }, { "docid": "001227e6b58a587f9eb4f77b15fc3588", "score": "0.6210607", "text": "@Override\n\tprotected void local() {\n\t\t\n\t}", "title": "" }, { "docid": "03b93c6668ea7af171bbcdb3af74bb4a", "score": "0.6197318", "text": "@Override\n public void bicar() {\n }", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6157574", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6157574", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "b7d3c2b49702a5ed673b243bf8d2b7c0", "score": "0.61508197", "text": "@Override\n\tprotected void funcionario() {\n\t\t\n\t}", "title": "" }, { "docid": "4dbddd6455ce7cd96d4f1150c905a6aa", "score": "0.61225665", "text": "private Tas() {\n\t}", "title": "" }, { "docid": "73f45b190ed6242b51c144a24f8d4b9e", "score": "0.6117861", "text": "abstract void mo14279d();", "title": "" }, { "docid": "2bd152bb33ecbe797b9818e175c5d4ec", "score": "0.6114493", "text": "public void mo55659a() {\n }", "title": "" }, { "docid": "69b02b239ae9076ca877c903d4790caa", "score": "0.6113243", "text": "private Helper() {\n\t}", "title": "" }, { "docid": "69b02b239ae9076ca877c903d4790caa", "score": "0.6113243", "text": "private Helper() {\n\t}", "title": "" }, { "docid": "dc9f6ac22366497ef7fbccd6dcc8a72c", "score": "0.6109214", "text": "abstract void mo14278c();", "title": "" }, { "docid": "1c10afc999966d89d84d1fb549910281", "score": "0.6100519", "text": "@Override \n\t\tprotected void parse() {\t\t\t\n\t\t}", "title": "" }, { "docid": "a55a117206823f1c09b2ed1fbc8a44d9", "score": "0.6082599", "text": "private Utilities() {}", "title": "" }, { "docid": "cef8fd91d7e1564d18744c43a537e46d", "score": "0.6073985", "text": "private SwephData() {\n\t}", "title": "" }, { "docid": "27c725838f280928d869cc973588317c", "score": "0.607244", "text": "@Override\r\n\tpublic void doSelfOpertion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "07641589c590a59be0ae70c608a2e6cf", "score": "0.60649467", "text": "private Vehicules() {\n\t // do nothing. \n\t }", "title": "" }, { "docid": "c95af00aee2fa41e8a03e3640ca30750", "score": "0.60286444", "text": "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "title": "" }, { "docid": "42c3f8e63385f8e328b6828c1f7243d4", "score": "0.6021172", "text": "@Override\r\n\t\tpublic void method_4() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "3b072172b17a5e5ab0081f24545795f2", "score": "0.6013988", "text": "public void przymocowac() {\n\t\t\n\t}", "title": "" }, { "docid": "2f21ca1739e00ae56c23a35b7001f617", "score": "0.5996515", "text": "private OrangizerUtils() {\n\t}", "title": "" }, { "docid": "f15b553b0e56273af7458108504ab24b", "score": "0.59912467", "text": "private ZapLoadData() {\n\t}", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.5990985", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cfd9d53fc52f6a8d17c1c8a1cbece841", "score": "0.5981271", "text": "private Joueur(){\n\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.59754145", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "7024ca2602bbefc8bc35db85a175caf7", "score": "0.5973242", "text": "private PMF() {\r\n\t}", "title": "" }, { "docid": "5cefbadea83be11ad13c33ddfc3b004d", "score": "0.5958594", "text": "private Util() {\n\t}", "title": "" }, { "docid": "7a64af47763e4842ef0277e0c557687f", "score": "0.5955987", "text": "@Override\n public void init() {\n }", "title": "" }, { "docid": "17e507b0166d99f88c8237ad30d967b7", "score": "0.59546876", "text": "public void zamowic() {\n\t\t\n\t}", "title": "" }, { "docid": "f350fb57d7c81ec6d70f2643960940a8", "score": "0.5943536", "text": "@Override \r\n public void init() {\n \r\n }", "title": "" }, { "docid": "106ce0ada7b978eeffda7ec9cccc29e2", "score": "0.5943272", "text": "public void дразнит() {\n\n\t}", "title": "" }, { "docid": "6bbc7abb32892722b68179a2ccfb8089", "score": "0.59393233", "text": "private Util(){}", "title": "" }, { "docid": "61358eff9372995c8157b02d47a44a6a", "score": "0.5930567", "text": "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "title": "" }, { "docid": "bafbaf544b91771e6b5cac65ffcd3624", "score": "0.5930047", "text": "private CaculateUtil() {\r\n\t}", "title": "" }, { "docid": "7920c09db3c9e00c50166ff7173e38da", "score": "0.592298", "text": "@Override \n public boolean purelyLogic(){ return true ; }", "title": "" }, { "docid": "4a3a3aeaffc4b367a8aa8488e4b59610", "score": "0.5912368", "text": "public void mo10856b() {\n }", "title": "" }, { "docid": "c612bcadafd393d086f44fd19558a8be", "score": "0.58973134", "text": "@Override\r\n\tpublic void inicialize() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a5d63cf5eb472d80fba18b0149c96501", "score": "0.58954483", "text": "@Override\n\tpublic void memberSecession() {\n\t\t\n\t}", "title": "" }, { "docid": "6bfb85fa08b97b89949cd0c2cb1aaa3b", "score": "0.5894535", "text": "protected MyNP() {/* intentionally empty block */}", "title": "" }, { "docid": "fafc7a99b1e0f054152226485eece63e", "score": "0.5888877", "text": "protected void func_75487_m() { super.func_75487_m(); }", "title": "" }, { "docid": "2fc21a363d0fbbb01cad08a3c475e42c", "score": "0.5886371", "text": "private boolean isPrivate() {\r\n return true;\r\n }", "title": "" }, { "docid": "56f6c4b0e4ef02b391d533eb2193ee02", "score": "0.58824027", "text": "private Rosenbrock2DExampleSmp() { }", "title": "" }, { "docid": "849694ebcb0f3deb1486555ab5881265", "score": "0.58788335", "text": "private I000005() {\r\n\t}", "title": "" }, { "docid": "6992d229a7587cf23baf9b2001bcb56c", "score": "0.5869913", "text": "protected abstract void mo766b();", "title": "" }, { "docid": "36e400a516499204257ae497b7df4f8f", "score": "0.5867579", "text": "private Util() {}", "title": "" }, { "docid": "baa7a60bd2c741406a60939eeef15a48", "score": "0.5864628", "text": "private New() {\n\t}", "title": "" }, { "docid": "79434840a1497982c86bb9b36527139d", "score": "0.5861478", "text": "@Override\n\tpublic void init() {}", "title": "" }, { "docid": "79434840a1497982c86bb9b36527139d", "score": "0.5861478", "text": "@Override\n\tpublic void init() {}", "title": "" }, { "docid": "2467341b61e2b3185a3755dc7540bc55", "score": "0.58603585", "text": "public abstract void mo20553b();", "title": "" }, { "docid": "d1bbb9bc3b89cd96535f71da8bdcaf2e", "score": "0.5857156", "text": "public abstract void mo1473c();", "title": "" }, { "docid": "da60287e2c23fee473034570c51fb9f6", "score": "0.58545387", "text": "private ReducedTools()\r\n \t{}", "title": "" }, { "docid": "37c402b607c50605f725f09534f19a56", "score": "0.5850211", "text": "private API() {\n }", "title": "" }, { "docid": "b6d3acffe4d345e208dbd5404078f39a", "score": "0.5848168", "text": "protected abstract Object method_752();", "title": "" }, { "docid": "f4f7bcdf27874d7a17a80f57f8df43e0", "score": "0.58428806", "text": "public void mo10744d() {\n }", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.5835451", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.5835451", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "c58bd028a86302d6e5fb5909e112e096", "score": "0.5830912", "text": "public abstract void mo1474d();", "title": "" }, { "docid": "379690e36f3184d538ef30736ebe24fe", "score": "0.5829972", "text": "static void parkBike(){}", "title": "" }, { "docid": "b498ecba1a925940a261a229ab5a0dce", "score": "0.58222246", "text": "PublicAccess createPublicAccess();", "title": "" }, { "docid": "a7ada994943f62a4589674e89199475b", "score": "0.58144844", "text": "@Override\n public void init() {}", "title": "" }, { "docid": "afe4974c1bb08d001eb247949dc197ba", "score": "0.58143383", "text": "public void publicar() {\n throw new UnsupportedOperationException(\"Not implemented yet.\");\r\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.581364", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.581364", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.581364", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.581364", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.581364", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.581364", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.581364", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.581364", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.581364", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.581364", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.581364", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.581364", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.581364", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.581364", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "cce15f647f795017e06f2ca544477ccd", "score": "0.5813625", "text": "@Override\n\tpublic void chamCong() {\n\n\t}", "title": "" }, { "docid": "e41e83e59c632c7e6180786a0238f944", "score": "0.5812404", "text": "@Override\r\n\tpublic void cry() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d66d6345279c0b2ee4249446c0486094", "score": "0.5810805", "text": "private void init() { }", "title": "" }, { "docid": "07ee9045baf697a3a27a0ca85292b26d", "score": "0.5809088", "text": "private HandleSupport() {\n }", "title": "" }, { "docid": "efc2a9882f432c399faac30aa8046af4", "score": "0.5805299", "text": "private MdcEratostenes() {\n //para satisfazer o checkstyle\n }", "title": "" } ]
1f5df9040675eeac3b6e4dbeb027ae4f
create excel .xls does not recommend .xls file
[ { "docid": "e1758bf6dea2ca69fc8efd56c6008614", "score": "0.67184097", "text": "@Deprecated\r\n public static Excel createXls() {\r\n return new Excel(new HSSFWorkbook(), null);\r\n }", "title": "" } ]
[ { "docid": "26d42491b29dc9fda2516a8f98fb16a3", "score": "0.7221971", "text": "static void writeXLSFile() {\n\t\t//Create xls sheet\n\t\tWorkbook workbook = new XSSFWorkbook();\t\t \n\t\tSheet sheet = workbook.createSheet(\"Persons\");\n\t\t//Set sheet default size.\n\t\tsheet.setColumnWidth(0, 6000);\n\t\tsheet.setColumnWidth(1, 4000);\n\t\t\n\t\t//Create custom header.\n\t\tRow header = sheet.createRow(0);\n\t\t\n\t\t//set header style.\n\t\tCellStyle headerStyle = workbook.createCellStyle();\n\t\theaderStyle.setFillForegroundColor(IndexedColors.LIGHT_BLUE.getIndex());\n\t\theaderStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\t\t\n\t\t//Set font of header.\n\t\tXSSFFont font = ((XSSFWorkbook) workbook).createFont();\n\t\tfont.setFontName(\"Arial\");\n\t\tfont.setFontHeightInPoints((short) 16);\n\t\tfont.setBold(true);\n\t\theaderStyle.setFont(font);\n\t\t\n\t\t//Set 1st header name.\n\t\tCell headerCell = header.createCell(0);\n\t\theaderCell.setCellValue(\"Name\");\n\t\theaderCell.setCellStyle(headerStyle);\n\t\t//Set 2nd header name.\n\t\theaderCell = header.createCell(1);\n\t\theaderCell.setCellValue(\"Age\");\n\t\theaderCell.setCellStyle(headerStyle);\n\t\t//Set cell style.\n\t\tCellStyle style = workbook.createCellStyle();\n\t\tstyle.setWrapText(true);\n\t\t\n\t\tRow row = sheet.createRow(1);\n\t\t//Set 1st row 1 column value.\n\t\tCell cell = row.createCell(0);\n\t\tcell.setCellValue(\"Tamal Nayek\");\n\t\tcell.setCellStyle(style);\n\t\t//Set 1st row 2nd column value. \n\t\tcell = row.createCell(1);\n\t\tcell.setCellValue(30);\n\t\tcell.setCellStyle(style);\n\t\t\n\t\tFile currDir = new File(\".\");\n\t\tString path = currDir.getAbsolutePath();\n\t\tSystem.out.println(\"**Path =\"+path);\n\t\tString fileLocation = path.substring(0, path.length() - 1) + \"temp.xlsx\";\n\t\t \n\t\ttry {\n\t\t\tFileOutputStream outputStream = new FileOutputStream(fileLocation);\n\t\t\tworkbook.write(outputStream);\n\t\t\tworkbook.close();\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\t\n\t\t\n\t}", "title": "" }, { "docid": "f66f791307409f8606093282b906e0ff", "score": "0.7126606", "text": "public void createExcel(List<T> objects){\r\n\t\tif(objects==null || objects.isEmpty()){\r\n\t\t\tSystem.out.println(\"Input data is Empty , Please provide some proper data..................\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tClass<? extends Object> claszz = objects.get(0).getClass();\r\n\t\tif(\"\".equals(fileName)){\r\n\t\t\tfileName = claszz.getSimpleName().concat(\".xls\");\r\n\t\t}\r\n\t\tField[] fields = claszz.getDeclaredFields();\r\n\t\tsheet = workbook.createSheet();\r\n\r\n\t\t//Create header\r\n\t\tcurrentRow = sheet.createRow(rowIndex++);\r\n\t\tArrays.stream(fields).forEach(this::createHeader);\r\n\t\t\r\n\t\t//Create Columns\r\n\t\tcurrentRow = sheet.createRow(rowIndex++);\r\n\t\tobjects.forEach(this::createCurrentRow);\r\n\t\t\r\n\t\tthis.saveAndClose();\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "d95ba03ac5f7810249d5ffdb44099607", "score": "0.71131253", "text": "public void createExcel(HttpServletRequest request, HttpServletResponse response) throws FileNotFoundException, IOException,Exception{\n String address = request.getRealPath(\"\");\r\n\r\n \tFileOutputStream fos = new FileOutputStream(address+\"/salary/initSalary.xls\");\r\n \tHSSFWorkbook workbook = new HSSFWorkbook();\r\n \tHSSFSheet sheet = workbook.createSheet();\r\n \tworkbook.setSheetName(0, \"工资表\");\r\n \tHSSFRow row = sheet.createRow((short)0);\r\n \trow.setHeight((short)400);\r\n HSSFCell cell1 = row.createCell(0);\r\n //cell1.setEncoding(HSSFCell.ENCODING_UTF_16);\r\n cell1.setCellValue(\"部门\");\r\n \r\n HSSFCell cell2 = row.createCell(1);\r\n //cell2.setEncoding(HSSFCell.ENCODING_UTF_16);\r\n cell2.setCellValue(\"姓名\");\r\n \r\n HSSFCell cell3 = row.createCell(2);\r\n //cell3.setEncoding(HSSFCell.ENCODING_UTF_16);\r\n cell3.setCellValue(\"职务级别\");\r\n \r\n HSSFCell cell4 = row.createCell(3);\r\n //cell4.setEncoding(HSSFCell.ENCODING_UTF_16);\r\n cell4.setCellValue(\"年份\");\r\n \r\n \r\n HSSFCell cell5 = row.createCell(4);\r\n //cell5.setEncoding(HSSFCell.ENCODING_UTF_16);\r\n cell5.setCellValue(\"月份\");\r\n \r\n \tConnection conn = new DBConnect().getConnect(\"\");\r\n \tSalaryService salaryService = new SalaryService(conn);\r\n \tList<String> list = salaryService.getExcelValue();\r\n \tint j = 5;\r\n \tfor(int i = 0;i<list.size();i++){\r\n \t\tHSSFCell cell = row.createCell(j);\r\n \t\t//cell.setEncoding(HSSFCell.ENCODING_UTF_16);\r\n \t\tcell.setCellValue(list.get(i));\r\n \t\tj++;\r\n \t}\r\n workbook.write(fos);\r\n fos.close();\r\n \tDbUtil.close(conn);\r\n \t//打包成zip文件\r\n \tFileOutputStream fos2 = null;\r\n ZipOutputStream zos = null;\r\n try {\r\n \t new File(address+\"/salary/salary_template.zip\").delete();\r\n fos = new FileOutputStream(address+\"/salary/salary_template.zip\");\r\n zos = new ZipOutputStream(fos);\r\n this.writeZip(new File(address+\"/salary/initSalary.xls\"), \"\", zos);\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n } finally {\r\n try {\r\n if (zos != null) {\r\n zos.close();\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }\r\n new File(address+\"/salary/initSalary.xls\").delete(); \r\n \t\r\n }", "title": "" }, { "docid": "df5387e3e753ac29103bdd82398530f1", "score": "0.7049185", "text": "public static void write2XL(String fileName){\n try {\n workbook = new XSSFWorkbook();\n //Add a worksheet\n XSSFSheet sheet = workbook.createSheet(\"Sheet1\");\n //Create two rows and add content in first 3 cells of each row\n for (int i = 0; i < 2; i++) {\n XSSFRow row = sheet.createRow(i);\n row.createCell(0).setCellValue(new Faker().name().firstName());\n row.createCell(1).setCellValue(new Faker().address().streetAddressNumber());\n row.createCell(2).setCellValue(new Faker().phoneNumber().phoneNumber());\n }\n FileOutputStream fout = new FileOutputStream(fileName);\n workbook.write(fout);\n fout.flush();\n log.info(\"Write operation performed on Workbook \"+fileName);\n fout.close();\n }catch (Exception e)\n {\n e.printStackTrace();\n log.error(e.getMessage());\n }\n }", "title": "" }, { "docid": "fb6dfe38a13b51c9c1449ff675499fb9", "score": "0.6941781", "text": "public void excelTemplate() {\n\t\ttry {\n\t\t\twriteExcel();\n\t\t\tLabel Sno = new Label(0, 0, \"Sno\");\n\t\t\tLabel testCasesname = new Label(1, 0, \"Testcase Name\");\n\t\t\tLabel expected = new Label(2, 0, \"Expected\");\n\t\t\tLabel actual = new Label(3, 0, \"Actual\");\n\t\t\tLabel status = new Label(4, 0, \"Status\");\n\t\t\twriteSheet.addCell(Sno);\n\t\t\twriteSheet.addCell(testCasesname);\n\t\t\twriteSheet.addCell(expected);\n\t\t\twriteSheet.addCell(actual);\n\t\t\twriteSheet.addCell(status);\n\t\t\t//System.out.println(\"Template Created\");\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "8911e5ed4c7274b0852c4ee09c838afb", "score": "0.6940738", "text": "public void createExcel(int ID,String path){\n \n try {\n WritableWorkbook workbook = Workbook.createWorkbook(new File(path)); // creating Object of WritableWorkbook\n workbook.createSheet(\"CAD_IS\", 0); \n workbook.write();\n workbook.close();\n } catch (IOException ex) { // try for another path\n this.AddDataToDataFile(ID, \"..\\\\DataFile//CAD_IS.xls\");\n \n } catch (WriteException ex) {\n Logger.getLogger(First_Interface.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n }", "title": "" }, { "docid": "c4423b26af6c9be5281f0a29e7c79cdc", "score": "0.68519235", "text": "public void createExcel(String filename,double val) throws IOException {\n\t\tXSSFWorkbook workbook = new XSSFWorkbook();\n\t\tXSSFSheet sheet = workbook.createSheet();\n\t\t\n\t\tXSSFRow row=sheet.createRow(1);\n\t\tXSSFCell cell =row.createCell(0);\n\t\t\n\t\tcell.setCellValue(val);\n\t\t\n\t\tFileOutputStream out = new FileOutputStream(new File(filename));\n\t\t workbook.write(out); \n out.close(); \n workbook.close();\n\t\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "1b4e7b07ddd2e1a07288288380b8916a", "score": "0.6824451", "text": "private static void createExcel() throws Exception{\n\n\t\tList<Word> allWords = getAllWords();\n\n//\t\tif(true){\n//\t\t\treturn;\n//\t\t}\n\t\t\n\t\tWord tmpWord;\n\t\tfor (int i = 0; i < allWords.size(); i++) {\n\t\t\t\n\t\t\t//set phone flag\n\t\t\ttmpWord = allWords.get(i);\n\t\t\tif (!EUtil.vcabSet.contains(tmpWord.getName())) {\n\t\t\t\ttmpWord.getVcab().setLocalHasPhone(false);\n\t\t\t}\n\t\t\tif (!EUtil.enSet.contains(tmpWord.getName())) {\n\t\t\t\ttmpWord.getIciba().setLocalEnHasMp3(false);\n\t\t\t}\n\t\t\tif (!EUtil.usSet.contains(tmpWord.getName())) {\n\t\t\t\ttmpWord.getIciba().setLocalUsHasMp3(false);\n\t\t\t}\n\t\t\tif (!EUtil.xrSet.contains(tmpWord.getName())) {\n\t\t\t\ttmpWord.getXr().setLocalXrHasMp3(false);\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t//create errorList\n\t\tList<String> errorList = Collections.synchronizedList(new ArrayList<String>());\n\t\tTExcel.init(errorList);\n\t\t\n\t\t//submit tasks for downloading mp3\n\t\tBoundedExecutor be = new BoundedExecutor(200);//default 300\n\t\tfor (int i = 0; i < allWords.size(); i++) {\n\t\t\ttmpWord = allWords.get(i);\n\t\t\tTExcel tp = new TExcel(tmpWord);\n\t\t\ttry {\n\t\t\t\tbe.submit(tp);\n\t\t\t\tSystem.out.println(i + \":\"+tmpWord.getName()+\":submited:\");\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\tbe.getExecutorService().shutdown();\n\t\ttry {\n\t\t\tbe.getExecutorService().awaitTermination(1, TimeUnit.DAYS);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t//EUtil.toExcel(EUtil.sortBySentence(allWords));\n\t\t//EUtil.toExcel(allWords);\n\t\tColumns[] columnsResult = new Columns[] { \n\t\t\t\tColumns.VCAB_SYNONYMS,\n\t\t\t\tColumns.DICTCN_MEANING,\n\t\t\t\tColumns.WORD, \n\t\t\t\tColumns.VCAB_MP3, \n\t\t\t\t//Columns.ICIBA_EN, Columns.ICIBA_US, Columns.PHONE_XR,\n\t\t\t\tColumns.VCAB_MEANING, \n\t\t\t\tColumns.VCAB_BLURB_SHORT, \n\t\t\t\tColumns.VCAB_BLURB_LONG, \n\t\t\t\t//Columns.VCAB_SENTENCES\n\t\t\t\t};\n\t\tEUtil.listToExcel(allWords, columnsResult);\n\t\t\n\t\t//log errors\n\t\tDateFormat dfLog = new SimpleDateFormat(\"yyyyMMdd-hhmmss\");\n\t\tString errorFileName = LOG_DIR + \"/error-\" + dfLog.format(new Date()) + \".txt\";\n\t\tFileUtil.listToFile(errorList, errorFileName);\n\t\tSystem.out.println(\"createExcel() finished.\");\n\t\t\n\t}", "title": "" }, { "docid": "951be4d97329000e45454df6a607f41a", "score": "0.67818475", "text": "@Override\r\nprotected void buildExcelDocument(Map<String, Object> model,\r\n Workbook workbook,\r\n HttpServletRequest request,\r\n HttpServletResponse response) throws Exception {\n response.setHeader(\"Content-Disposition\", \"attachment; filename=\\\"my-xls-file.xls\\\"\");\r\n\r\n @SuppressWarnings(\"unchecked\")\r\n List<Requirement> users = (List<Requirement>) model.get(\"users\");\r\n\r\n // create excel xls sheet\r\n Sheet sheet = workbook.createSheet(\"User Detail\");\r\n sheet.setDefaultColumnWidth(30);\r\n\r\n // create style for header cells\r\n CellStyle style = workbook.createCellStyle();\r\n Font font = workbook.createFont();\r\n font.setFontName(\"Arial\");\r\n //style.setFillForegroundColor(HSSFColor.BLUE.index);\r\n style.setFillPattern(FillPatternType.SOLID_FOREGROUND);\r\n font.setBold(true);\r\n //font.setColor(HSSFColor.WHITE.index);\r\n style.setFont(font);\r\n\r\n\r\n // create header row\r\n Row header = sheet.createRow(0);\r\n header.createCell(0).setCellValue(\"Requirement\");\r\n header.getCell(0).setCellStyle(style);\r\n header.createCell(1).setCellValue(\"Country\");\r\n header.getCell(1).setCellStyle(style);\r\n header.createCell(2).setCellValue(\"Requirement Id\");\r\n header.getCell(2).setCellStyle(style);\r\n header.createCell(3).setCellValue(\"Bill Rate\");\r\n header.getCell(3).setCellStyle(style);\r\n header.createCell(4).setCellValue(\"Contract Type\");\r\n header.getCell(4).setCellStyle(style);\r\n header.createCell(5).setCellValue(\"Cloient Details\");\r\n header.getCell(5).setCellStyle(style);\r\n header.createCell(6).setCellValue(\"Priority\");\r\n header.getCell(6).setCellStyle(style);\r\n header.createCell(7).setCellValue(\"Created Time\");\r\n header.getCell(7).setCellStyle(style);\r\n header.createCell(8).setCellValue(\"Status\");\r\n header.getCell(8).setCellStyle(style);\r\n header.createCell(9).setCellValue(\"Attachments\");\r\n header.getCell(9).setCellStyle(style);\r\n\r\n\r\n int rowCount = 1;\r\n\r\n for(Requirement req : users){\r\n Row userRow = sheet.createRow(rowCount++);\r\n userRow.createCell(0).setCellValue(req.getJobTitle());\r\n userRow.createCell(1).setCellValue(req.getCountry());\r\n userRow.createCell(2).setCellValue(req.getReqId());\r\n userRow.createCell(3).setCellValue(req.getBillRate());\r\n userRow.createCell(4).setCellValue(req.getContractType());\r\n userRow.createCell(5).setCellValue(req.getClientDetails());\r\n userRow.createCell(6).setCellValue(req.getPriority());\r\n userRow.createCell(7).setCellValue(req.getCreatedDate());\r\n userRow.createCell(8).setCellValue(req.isStatus());\r\n userRow.createCell(9).setCellValue(req.getFileName());\r\n\r\n }\r\n\r\n}", "title": "" }, { "docid": "1028919a6e22f4b79591ab3055014124", "score": "0.673976", "text": "public void test1ExcelCreateEnchereCaractUm() throws IOException{\n HSSFWorkbook wb = new HSSFWorkbook();\n FileOutputStream fileOut = new FileOutputStream(FILE_EXCEL_EXPORT);\n HSSFSheet sheet = wb.createSheet(XLS_SHEETNAME);\n// createRowHeader1(sheet, new String[]{\n// \t\t\"SteelUser\",\"Identification_UM\",\"Reference_UM\",\n// \t\t\"NPSteelGradeStandard\",\"\", \n// \t\t\"QUACOM_NUANCE\",\"\",\n// \t\t\"PrivateTradeMarkGrade1\",\"\",\n// });\n ExcelUtil.createRowHeader1(sheet, new String[]{\n \t\t\"Comet\", \"Material\", \"Material\",\n \t\t\"NonPrimeSteelGradeStandard\",\"\",\t//NPSteelGradeStandard\n \t\t\"NonPrimeSteelGrade\",\"\",\t\t\t//QUACOM_NUANCE\n \t\t\"SteelGrade\",\"\",\t\t\t\t\t//PrivateTradeMarkGrade1 \n \t\t\"Segment\"\t\t\t\t\t\t\t// \"segClass\", \"segStandard\", \"segCoilType\"\n }, ++ROW_COUNT);\n ExcelUtil.createRowHeader2(sheet, new String[]{\n \t\t\"Id_UM\", \"MaterialIdentifier\", \"MaterialReferenceNumber\",\t\t\t//Identification_UM, Reference_UM\n \t\t\"NonPrimeSteelGradeStandardName\",\"NonPrimeSteelGradeStandardCode\",\t//TextValue, Code_Value\n \t\t\"NonPrimeSteelGradeName\",\"NonPrimeSteelGradeCode\",\t\t\t\t\t//TextValue, Code_Value\n \t\t\"SteelGradeName\",\"SteelGradeCode\",\t\t\t\t\t\t\t\t\t//TextValue, Code_Value\n \t\t\"segClass\", \"segStandard\", \"segCoilType\"\n }, ++ROW_COUNT);\n for(EnchereUmDTO um: ENCHERE_UM_DATA_DB){\n \tList<String> data = new ArrayList<String>();\n \tString[] enchereUmData = {String.valueOf(um.getId()),um.getIdentificationUm(),um.getReferenceUm()};\n \tdata.addAll(Arrays.asList(enchereUmData));\n \t\n \t\n// \tString[] mockCaractData= mockCaractData();\n// \tdata.addAll(Arrays.asList(mockCaractData));\n\n \tExcelUtil.createRowData(sheet, data.toArray(new String[data.size()]), ++ROW_COUNT);\n }\n wb.write(fileOut);\n fileOut.close();\n\t}", "title": "" }, { "docid": "2fe54d0006d2b1b79a3aa57e98d71500", "score": "0.6727263", "text": "private void saveAsExcel_outputToExcel() {\n \n io.excel.ExcelIO OutputToExcel = new io.excel.ExcelIO();\n OutputToExcel.save();\n }", "title": "" }, { "docid": "003e232aa1e0dd0474177c3df7b0278c", "score": "0.6695089", "text": "@Override\r\n\tpublic String getExcelModel() {\n\t\tString[] titles = { \"样衣位置\", \"样衣款号\", \"样衣状态[在库/外借]\", \"操作类型\",\r\n\t\t\t\t\"样衣出入库时间(格式:2015/5/5)\", \"操作备注\" };\r\n\t\t// 输出excel路径\r\n\t\tString path = getClass().getClassLoader().getResource(\"/\").getPath()\r\n\t\t\t\t+ \"样衣表模板.xls\";\r\n\t\tSystem.out.println(path);\r\n\t\tFile file = new File(path);\r\n\t\tif (file.exists()) {\r\n\t\t\tfile.delete();\r\n\t\t}\r\n\t\t// 创建excel工作簿\r\n\t\tWritableWorkbook wwb;\r\n\t\tOutputStream os;\r\n\t\ttry {\r\n\t\t\tos = new FileOutputStream(path);\r\n\t\t\twwb = Workbook.createWorkbook(os);\r\n\t\t\t// 创建第一个工作表 样衣表\r\n\t\t\tWritableSheet sheet = wwb.createSheet(\"样衣表\", 0);\r\n\t\t\tLabel label;\r\n\t\t\tWritableCellFormat wcf;\r\n\t\t\tCellView cv;\r\n\t\t\tfor (int i = 0; i < titles.length; i++) {\r\n\t\t\t\tlabel = new Label(i, 0, titles[i]);\r\n\t\t\t\tsheet.addCell(label);\r\n\t\t\t\t// 定义格式 \r\n\t\t\t\tif (i != 4) {\r\n\t\t\t\t\twcf = new WritableCellFormat(NumberFormats.TEXT);\r\n\t\t\t\t\tcv = new CellView();\r\n\t\t\t\t\tcv.setFormat(wcf);\r\n\t\t\t\t\tcv.setSize(6000);\r\n\t\t\t\t\tsheet.setColumnView(i, cv);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcv = new CellView();\r\n\t\t\t\t\tcv.setSize(8000);\r\n\t\t\t\t\tsheet.setColumnView(i, cv);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// 写入数据\r\n\t\t\twwb.write();\r\n\t\t\t// 关闭文件\r\n\t\t\twwb.close();\r\n\t\t} catch (Exception 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 path;\r\n\t}", "title": "" }, { "docid": "54155e5168cac106c526596b8ecf00da", "score": "0.6691334", "text": "@Test(enabled = false)\n public void f() throws IOException{\n\t FileOutputStream out = new FileOutputStream (new File(\"demo.xlsx\"));\n\t// workbook.write(out);\n\t out.close();\n\t System.out.println(\"created excel file\"); \n }", "title": "" }, { "docid": "f5faadb468a14fa7b34e4dca8c3a0eb6", "score": "0.6596131", "text": "public static Excel create() {\r\n return new Excel(new SXSSFWorkbook(100), null);\r\n }", "title": "" }, { "docid": "3d193db81853bcb691db9ff0a762507d", "score": "0.6577432", "text": "public static void Excel() throws InterruptedException, IOException {\n FileOutputStream fos = new FileOutputStream(\"C:\\\\Users\\\\admin\\\\Intelij_workspace\\\\AppiumAutomation\\\\result\\\\bhavishya.xlsx\");\n XSSFWorkbook workbook = new XSSFWorkbook();\n\n XSSFSheet sheet = workbook.createSheet(\"sidi\");\n\n Row row = sheet.createRow(0);\n Cell cell0 = row.createCell(0);\n cell0.setCellValue(\"Nav Value\");\n\n Cell cell1 = row.createCell(1);\n\n cell1.setCellValue(\"Amount Change\");\n\n Cell cell2 = row.createCell(2);\n cell2.setCellValue(\"Percent Change\");\n\n workbook.write(fos);\n fos.flush();\n fos.close();\n }", "title": "" }, { "docid": "6eb355c118fab68608c20547e1d6e4da", "score": "0.65441674", "text": "private void listaDatosToXLS() {\n\t}", "title": "" }, { "docid": "90c8753255685e132e0127039a7e47a2", "score": "0.6518135", "text": "public static void main(String[] args) {\n WritableWorkbook miLibro = null;\r\n try {\r\n\r\n miLibro = Workbook.createWorkbook(new File(UBICACION_ARCHIVO));\r\n\r\n // CREAR UNA HOJA\r\n WritableSheet hojaExcel = miLibro.createSheet(\"hoja 1\", 0);\r\n\r\n // AGREGAR ALGO A LA HOJA\r\n Label label = new Label(0, 0, \"Test\");\r\n hojaExcel.addCell(label); //AGREGAMOS EL Label A LA HOJA\r\n\r\n Number numero = new Number(0, 1, 1);\r\n hojaExcel.addCell(numero);\r\n\r\n label = new Label(1, 0, \"Resultado\");\r\n hojaExcel.addCell(label);\r\n\r\n label = new Label(1, 1, \"Paso\");\r\n hojaExcel.addCell(label);\r\n\r\n numero = new Number(0, 2, 2);\r\n hojaExcel.addCell(numero);\r\n\r\n label = new Label(1, 2, \"Paso 2\");\r\n hojaExcel.addCell(label);\r\n\r\n miLibro.write();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n } catch (WriteException e) {\r\n e.printStackTrace();\r\n } finally {\r\n\r\n if (miLibro != null) {\r\n try {\r\n miLibro.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n } catch (WriteException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n }\r\n\r\n }", "title": "" }, { "docid": "1cdfa2e35c20faed3cf449d1887cd4af", "score": "0.64699733", "text": "public void generate() {\n // HSSFCellStyle headerStyle = excelService.createHeaderStyle(workbook);\n CellStyle dataTableNameStyle = CellFormat.build(Style.NORMAL).setColor(new HSSFColor.GREY_25_PERCENT()).createStyle(getWorkbook());\n CellStyle summaryStyle = excelService.createSummaryStyle(getWorkbook());\n // first column is the table where the\n int rowIndex = 0;\n // int columnIndex = 0;\n\n setDescription(new StringBuilder(provider.getText(\"dataIntegrationWorkbook.descr\")).append(\" \"));\n\n List<DataTable> tableList = new ArrayList<DataTable>();\n List<String> columnNames = new ArrayList<String>();\n List<String> datasetNames = new ArrayList<String>();\n createDataSheet(names, dataTableNameStyle, rowIndex, tableList, columnNames, datasetNames);\n\n getDescription().append(MessageHelper.getMessage(\"dataIntegrationWorkbook.descr_with_datasets\")).append(\" \")\n .append(StringUtils.join(datasetNames, \", \")).append(\"\\n\\t \").append(MessageHelper.getMessage(\"dataIntegrationWorkbook.descr_using_tables\"))\n .append(\": \").append(StringUtils.join(names, \", \")).append(\"\\n\\t \")\n .append(MessageHelper.getMessage(\"dataIntegrationWorkbook.descr_using_columns\"))\n .append(\":\").append(StringUtils.join(columnNames, \", \"));\n\n // headerRow.setRowStyle(headerStyle);\n\n // check that this works in excel on windows:\n // https://issues.apache.org/bugzilla/show_bug.cgi?id=50315\n // FIXME: in poi 3.7 turning this on causes a warning notice in Excel that the file is corrupted, disabling\n // sheet.setAutoFilter(new CellRangeAddress(0, 0, 0, columnIndex - 1));\n\n Map<List<OntologyNode>, Map<DataTable, Integer>> pivot = getGeneratedIntegrationResults().getSecond();\n createSummarySheet(getWorkbook(), tableList, columnNames, pivot);\n createDescriptionSheet(getIntegrationColumns(), person, getWorkbook(), summaryStyle, tableList);\n\n }", "title": "" }, { "docid": "5179abb9908ac6150a78bf1a9e0d3242", "score": "0.6452089", "text": "private Files exportExcel(PMF pmf, com.vincesu.business.entity.Contract contract, List<ContractDetail> contractDetails, boolean isEnglish)\n/* 347: */ throws IOException, WriteException\n/* 348: */ {\n/* 349: 349 */ Files file = new Files();\n/* 350: */ \n/* 351: 351 */ File targetPath = new File(SystemUtil.getLocation() + \n/* 352: 352 */ \"/resource/contract/\");\n/* 353: 353 */ if (!targetPath.exists())\n/* 354: 354 */ targetPath.mkdirs();\n/* 355: 355 */ File targetFilePath = new File(targetPath, contract.getId() + \".xls\");\n/* 356: 356 */ File targetPDFFilePath = new File(targetPath, contract.getId() + \".pdf\");\n/* 357: 357 */ if (targetFilePath.exists())\n/* 358: */ {\n/* 359: 359 */ targetFilePath.delete();\n/* 360: */ }\n/* 361: 361 */ OutputStream os = new FileOutputStream(targetFilePath);\n/* 362: 362 */ WritableWorkbook workbook = Workbook.createWorkbook(os);\n/* 363: 363 */ WritableSheet sheet = workbook.createSheet(\"contract\", 0);\n/* 364: */ \n/* 365: */ try\n/* 366: */ {\n/* 367: 367 */ setExcelData(pmf, sheet, contract, contractDetails, isEnglish);\n/* 368: */ }\n/* 369: */ catch (Exception e)\n/* 370: */ {\n/* 371: 371 */ return null;\n/* 372: */ }\n/* 373: */ finally\n/* 374: */ {\n/* 375: 375 */ if (workbook != null)\n/* 376: */ {\n/* 377: 377 */ workbook.write();\n/* 378: 378 */ workbook.close();\n/* 379: */ }\n/* 380: 380 */ if (os != null)\n/* 381: */ {\n/* 382: 382 */ os.close();\n/* 383: */ }\n/* 384: */ }\n/* 385: */ try\n/* 386: */ {\n/* 387: 387 */ OfficeUtil.office2PDF(targetFilePath, targetPDFFilePath);\n/* 388: */ }\n/* 389: */ catch (Exception e)\n/* 390: */ {\n/* 391: 391 */ return null;\n/* 392: */ }\n/* 393: */ \n/* 394: 394 */ file.setPath(targetFilePath.getAbsolutePath());\n/* 395: 395 */ file.setName(\"合同-\" + contract.getNumber() + \".xls\");\n/* 396: 396 */ file.setType(new Integer(\"24\"));\n/* 397: 397 */ file.setRelatedObject(contract.getId());\n/* 398: 398 */ file.setPdfpath(targetPDFFilePath.getAbsolutePath());\n/* 399: 399 */ file.setRelatedDescription(\"合同\");\n/* 400: */ \n/* 401: 401 */ return file;\n/* 402: */ }", "title": "" }, { "docid": "789174bef4610b82016d51b9caed9435", "score": "0.6388798", "text": "public void lap_pinjam() throws IOException, WriteException {\n String date = new SimpleDateFormat(\"ddMMyyyy\").format(new Date());\n String date2 = new SimpleDateFormat(\"dd-MMMM-yyyy\").format(new Date());\n String random = UUID.randomUUID().toString();\n File f = new File(System.getProperty(\"user.home\") + \"\\\\Documents\\\\vcd-data\\\\laporan\\\\peminjaman\\\\\" + date + \" - PEMINJAMAN - \" + random + \".xls\");\n WritableWorkbook myexcel = Workbook.createWorkbook(f);\n WritableSheet mysheet = myexcel.createSheet(date2, 0);\n\n //SET HEADER\n Label h1 = new Label(0, 0, \"ID PINJAM\");\n Label h6 = new Label(1, 0, \"TANGGAL\");\n Label h2 = new Label(2, 0, \"ID CUSTOMER\");\n Label h3 = new Label(3, 0, \"CUSTOMER\");\n Label h4 = new Label(4, 0, \"ID KARYAWAN\");\n Label h5 = new Label(5, 0, \"KARYAWAN\");\n Label h7 = new Label(6, 0, \"HARGA TOTAL\");\n Label h8 = new Label(8, 0, \"ID VCD\");\n Label h9 = new Label(9, 0, \"JUDUL\");\n Label h10 = new Label(10, 0, \"JUMLAH\");\n Label h11 = new Label(11, 0, \"SUB HARGA\");\n mysheet.addCell(h1);\n mysheet.addCell(h2);\n mysheet.addCell(h3);\n mysheet.addCell(h4);\n mysheet.addCell(h5);\n mysheet.addCell(h6);\n mysheet.addCell(h7);\n mysheet.addCell(h8);\n mysheet.addCell(h9);\n mysheet.addCell(h10);\n mysheet.addCell(h11);\n\n //SET DATA\n Gson gson = new GsonBuilder().setPrettyPrinting().create();\n BufferedReader br = null;\n\n try {\n String path = System.getProperty(\"user.home\") + \"\\\\Documents\\\\vcd-data\\\\data\\\\pinjam.json\";\n String path2 = System.getProperty(\"user.home\") + \"\\\\Documents\\\\vcd-data\\\\data\\\\pinjam_det.json\";\n br = new BufferedReader(new FileReader(path));\n m_pinjam_result rs = gson.fromJson(br, m_pinjam_result.class);\n\n br = new BufferedReader(new FileReader(path2));\n m_pinjam_det_result rs2 = gson.fromJson(br, m_pinjam_det_result.class);\n int i = 1;\n\n if (rs != null) {\n for (m_pinjam k : rs.getPinjam()) {\n Label d1 = new Label(0, i, k.getId_pinjam());\n Label d2 = new Label(1, i, k.getTgl_pinjam());\n Label d3 = new Label(2, i, k.getId_customer());\n Label d4 = new Label(3, i, getCus(k.getId_customer()));\n Label d5 = new Label(4, i, k.getId_karyawan());\n Label d6 = new Label(5, i, getKar(k.getId_karyawan()));\n Label d7 = new Label(6, i, Float.toString(k.getHarga_total()));\n mysheet.addCell(d1);\n mysheet.addCell(d2);\n mysheet.addCell(d3);\n mysheet.addCell(d4);\n mysheet.addCell(d5);\n mysheet.addCell(d6);\n mysheet.addCell(d7);\n\n if (rs2 != null) {\n for (m_pinjam_det l : rs2.getPinjam_det()) {\n if (k.getId_pinjam().equals(l.getId_pinjam())) {\n Label d8 = new Label(8, i, l.getId_vcd());\n Label d9 = new Label(9, i, getJudul(l.getId_vcd()));\n Label d10 = new Label(10, i, Integer.toString(l.getJumlah()));\n Label d11 = new Label(11, i, Float.toString(l.getSubtotal()));\n mysheet.addCell(d8);\n mysheet.addCell(d9);\n mysheet.addCell(d10);\n mysheet.addCell(d11);\n i++;\n }\n }\n }\n }\n }\n } catch (FileNotFoundException e) {\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n }\n }\n }\n\n //EXECUTE FILE \n myexcel.write();\n myexcel.close();\n }", "title": "" }, { "docid": "2d056829eadbe225365d1d5be4225bb2", "score": "0.6382702", "text": "private static void generateXLS(List<VerificationAndValidation> dataList, String localPath) throws Exception {\r\n\t\t\r\n //Blank workbook\r\n XSSFWorkbook workbook = new XSSFWorkbook(); \r\n \r\n //Create a blank sheet\r\n XSSFSheet sheet = workbook.createSheet(\"VandV_Data\");\r\n \r\n //insert the column header first\r\n Row rowHeader = sheet.createRow(0);\r\n int cellHeaderNum = 0;\r\n Cell cellHeader = rowHeader.createCell(cellHeaderNum++);\r\n cellHeader.setCellValue(\"ITEM\");\r\n cellHeader = rowHeader.createCell(cellHeaderNum++);\r\n cellHeader.setCellValue(\"FINDINGS\");\r\n cellHeader = rowHeader.createCell(cellHeaderNum++);\r\n cellHeader.setCellValue(\"DRIVER\");\r\n cellHeader = rowHeader.createCell(cellHeaderNum++);\r\n cellHeader.setCellValue(\"TERMINAL\");\r\n cellHeader = rowHeader.createCell(cellHeaderNum++);\r\n cellHeader.setCellValue(\"LORRY\");\r\n cellHeader = rowHeader.createCell(cellHeaderNum++);\r\n cellHeader.setCellValue(\"TRAILER\");\r\n cellHeader = rowHeader.createCell(cellHeaderNum++);\r\n cellHeader.setCellValue(\"VERIFICATION DATE\");\r\n cellHeader = rowHeader.createCell(cellHeaderNum++);\r\n cellHeader.setCellValue(\"ROOT CAUSE\");\r\n cellHeader = rowHeader.createCell(cellHeaderNum++);\r\n cellHeader.setCellValue(\"CORRECTIVE ACTIONS\");\r\n cellHeader = rowHeader.createCell(cellHeaderNum++);\r\n cellHeader.setCellValue(\"VERIFIED BY\");\r\n cellHeader = rowHeader.createCell(cellHeaderNum++);\r\n cellHeader.setCellValue(\"CLOSURE ON CORRECTIVE ACTIONS\");\r\n cellHeader = rowHeader.createCell(cellHeaderNum++);\r\n cellHeader.setCellValue(\"CLOSURE DATE\");\r\n cellHeader = rowHeader.createCell(cellHeaderNum++);\r\n cellHeader.setCellValue(\"CHECKED BY\");\r\n cellHeader = rowHeader.createCell(cellHeaderNum++);\r\n cellHeader.setCellValue(\"STATUS\");\r\n \r\n //insert the data\r\n int rownum = 1;\r\n for (int i=0; i<dataList.size();i++) {\r\n \tRow row = sheet.createRow(rownum++);\r\n \tVerificationAndValidation rowData = dataList.get(i);\r\n \tint cellnum = 0;\r\n Cell cell = row.createCell(cellnum++);\r\n cell.setCellValue(rowData.getItem());\r\n cell = row.createCell(cellnum++);\r\n cell.setCellValue(rowData.getFindings());\r\n cell = row.createCell(cellnum++);\r\n cell.setCellValue(rowData.getDriver()); \r\n cell = row.createCell(cellnum++);\r\n cell.setCellValue(rowData.getTerminal()); \r\n cell = row.createCell(cellnum++);\r\n cell.setCellValue(rowData.getLorry()); \r\n cell = row.createCell(cellnum++);\r\n cell.setCellValue(rowData.getTrailer()); \r\n cell = row.createCell(cellnum++);\r\n cell.setCellValue(rowData.getVerificationDateStr()); \r\n cell = row.createCell(cellnum++);\r\n cell.setCellValue(rowData.getRootCause()); \r\n cell = row.createCell(cellnum++);\r\n cell.setCellValue(rowData.getCorrections());\r\n cell = row.createCell(cellnum++);\r\n cell.setCellValue(rowData.getVerificationCheckedBy()); \r\n cell = row.createCell(cellnum++);\r\n cell.setCellValue(rowData.getClosure()); \r\n cell = row.createCell(cellnum++);\r\n cell.setCellValue(rowData.getValidationDateStr());\r\n cell = row.createCell(cellnum++);\r\n cell.setCellValue(rowData.getValidationCheckedBy());\r\n cell = row.createCell(cellnum++);\r\n cell.setCellValue(rowData.getRemarks()); \r\n }\r\n \r\n try\r\n {\r\n //Write the workbook in file system\r\n \tString xlsFile = localPath + File.separator + MiscConstant.XLS_VERIFICATION_AND_VALIDATION_REPORT;\r\n FileOutputStream out = new FileOutputStream(new File(xlsFile)); \r\n workbook.write(out);\r\n out.close();\r\n System.out.println(\"verification.xlsx written successfully on disk.\");\r\n } \r\n catch (Exception e) \r\n {\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "30b813f4b433eadf44a32e9a8970651e", "score": "0.6381551", "text": "@Override\n\tpublic void toExportXLSX() {\n\n\t}", "title": "" }, { "docid": "e0b5946646227072b0767a902e58ba17", "score": "0.63782763", "text": "public void createQueryXlsx(String[] columnLabel, List<String[]> queryResult, int[] columnType, String newFilePath) throws IOException\n {\n \n int absoluterowNumber = 0;\n \n Workbook workbook = new XSSFWorkbook();\n \n \n Sheet queryResultSheet = workbook.createSheet(\"SQL\");\n \n headerTableRowCreate(workbook, queryResultSheet, absoluterowNumber, columnLabel);\n absoluterowNumber++;\n for (String[] queryResult1 : queryResult) {\n itemTableRowCreate(workbook, queryResultSheet, absoluterowNumber, queryResult1, columnType);\n absoluterowNumber++;\n }\n \n\n for (int i = 0; i < columnLabel.length; i++)\n { \n queryResultSheet.autoSizeColumn(i);\n }\n \n\n FileOutputStream fileOut = new FileOutputStream(newFilePath);\n \n workbook.write(fileOut);\n\n \n }", "title": "" }, { "docid": "ed32308aa643267ebde7c7dc24957376", "score": "0.637303", "text": "private void exportAsExcel(Map<String, List<String>> map) {\n var workbook = new HSSFWorkbook();\n var sheet = workbook.createSheet(model.getTable());\n updateSheet(map, sheet);\n //writer file\n Throwable throwable = null;\n try {\n var file = new File(model.getPath());\n workbook.write(file);\n } catch (IOException e) {\n throwable = e;\n } finally {\n try {\n workbook.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n writerResult(throwable);\n }", "title": "" }, { "docid": "af5250beb89913e74b06e6583529ee76", "score": "0.635514", "text": "@Override\n\tpublic void toExportXLS() {\n\n\t}", "title": "" }, { "docid": "811f69252f2444d6087a0d2d71f836b2", "score": "0.62845284", "text": "public void createSheet(){\n\r\n System.out.println(sdFormat.format(current));\r\n Sheet s = book.createSheet(sdFormat.format(current));\r\n \r\n }", "title": "" }, { "docid": "1b406017f808605410f18a5387327ae1", "score": "0.62731916", "text": "@Override\n\tprotected void buildExcelDocument(Map<String, Object> model, Workbook workbook, HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws Exception {\n\t\tresponse.addHeader(\"Content-Disposition\", \"attachment;filename=SPECS.xlsx\");\n\t\t//2.read data given by controller\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Specialization> list=(List<Specialization>) model.get(\"list\");\n\t\t//3-create one sheet\n\t\tSheet sheet=workbook.createSheet(\"Specialization\");\n\t\t//4-Create Row as header \n\t\t setHead(sheet);\n\t\t //5-create row#1 onwards from List<T>\n\t\t setBody(sheet, list);\n\t}", "title": "" }, { "docid": "a6c5a6bb5bac73673092e4c831bb6bd9", "score": "0.62730736", "text": "public void generarXLSX() throws Exception {\n ServletOutputStream servletOutputStream = generarResponse(\"xlsx\");\n JRXlsxExporter docxExporter = new JRXlsxExporter();\n docxExporter\n .setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\n docxExporter.setParameter(JRExporterParameter.OUTPUT_STREAM,\n servletOutputStream);\n docxExporter.exportReport();\n FacesContext.getCurrentInstance().responseComplete();\n\n }", "title": "" }, { "docid": "ee5e0060a5d6fca9f0ec3cd561fe80a2", "score": "0.6245014", "text": "public static void workWithApachePoi() {\n // create workbook\n Workbook workbook = new XSSFWorkbook();\n // create sheet\n Sheet sheet = workbook.createSheet(\"Sheet1\");\n // create row\n Row row = sheet.createRow(0);\n // create cell\n Cell cell = row.createCell(0);\n // set cell value\n cell.setCellValue(\"Hello World\");\n // write workbook\n try {\n FileOutputStream outputStream = new FileOutputStream(\"workbook.xlsx\");\n workbook.write(outputStream);\n outputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "bf79ae48adad28147ef2cd4d9e1b9e1c", "score": "0.6237601", "text": "public GenerateExcelFile(){\r\n\t\tthis(\"C://Users//iPINTU\",\"\");\r\n\t}", "title": "" }, { "docid": "a2e80f6c3eba59fe7ac8a1b9facb19c5", "score": "0.6203498", "text": "public void generateExcel(Map<String, LinkedHashMap<String, String>> resultMap, String name) {\n FileOutputStream fileOut = null;\n\n try {\n HSSFWorkbook wb = new HSSFWorkbook();\n HSSFCellStyle headerStyle = wb.createCellStyle();\n HSSFSheet sheet3 = wb.createSheet(name);\n\n HSSFFont headerFont = wb.createFont();\n// headerFont.setBoldweight(Font.BOLDWEIGHT_BOLD);\n\n headerStyle.setFillPattern(HSSFCellStyle.SOLID_FOREGROUND);\n headerStyle.setFillForegroundColor(HSSFColor.PALE_BLUE.index);\n headerStyle.setFillBackgroundColor(HSSFColor.WHITE.index);\n headerStyle.setFont(headerFont);\n\n try {\n fileOut = new FileOutputStream(\"C:\\\\\" + name + \".xls\");\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n HSSFRow sessionname = sheet3.createRow(2);\n HSSFCell title = sessionname.createCell(3);\n title.setCellStyle(headerStyle);\n title.setCellValue(name);\n\n HSSFRow row = sheet3.createRow(5);\n\n Map<String, LinkedHashMap<String, String>> rMap = resultMap;\n Map<String, String> columnDetails = rMap.get(\"1\");\n\n Set<String> s = columnDetails.keySet();\n int cellNo = 0;\n for (String s1 : s) {\n HSSFCell cell0 = row.createCell(cellNo);\n cell0.setCellStyle(headerStyle);\n cell0.setCellValue(s1);\n cellNo++;\n }\n\n for (int i = 1; i <= rMap.size(); i++) {\n columnDetails = rMap.get(new Integer(i).toString());\n System.out.println(i);\n HSSFRow nextrow = sheet3.createRow(5 + i);\n Set<String> set = columnDetails.keySet();\n int cellNum = 0;\n for (String s2 : set) {\n nextrow.createCell(cellNum).setCellValue(columnDetails.get(s2));\n cellNum++;\n }\n }\n\n sheet3.autoSizeColumn(0);\n sheet3.autoSizeColumn(1);\n sheet3.autoSizeColumn(2);\n sheet3.autoSizeColumn(3);\n wb.write(fileOut);\n fileOut.flush();\n fileOut.close();\n } catch (FileNotFoundException fe) {\n fe.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n fileOut.flush();\n fileOut.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "24a142679b37997d0802bd72ad5f3900", "score": "0.6187437", "text": "private void exportAsSeniorExcel(Map<String, List<String>> map) {\n var workbook = new XSSFWorkbook();\n var sheet = workbook.createSheet(model.getTable());\n updateSheet(map, sheet);\n //writer file\n Throwable throwable = null;\n try {\n var file = new File(model.getPath());\n workbook.write(new FileOutputStream(file));\n } catch (IOException e) {\n throwable = e;\n } finally {\n try {\n workbook.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n writerResult(throwable);\n }", "title": "" }, { "docid": "41df8ffb29ea7588659d888e2d56f6d5", "score": "0.61820394", "text": "public Workbook createApexClassReportWorkbook(ArrayList<SFApexClass> classList){\r\n\t\tWorkbook wb = new HSSFWorkbook();\r\n\t\tthis.createApexClassListSheet(wb, classList);\r\n\t\treturn wb;\r\n\t}", "title": "" }, { "docid": "e169ea69e213f7635bedaba803c77dd2", "score": "0.6178964", "text": "public EscogeArchivoExcel() {\n\t\tinitComponents();\n\t}", "title": "" }, { "docid": "9b36864c690a014d54736914148f78fd", "score": "0.6168376", "text": "public CameraExcelWriter(String fileName) {\n try {\n File directory = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);\n directory.mkdirs();\n\n mFile = new File(directory + File.separator + fileName);\n mFile.createNewFile();\n\n WorkbookSettings settings = new WorkbookSettings();\n settings.setLocale(new Locale(\"en\", \"EN\"));\n\n mCurrentRow = 2;\n\n mWorkbook = Workbook.createWorkbook(mFile, settings);\n mWorkbook.createSheet(\"Measurements\", 0);\n\n mSheet = mWorkbook.getSheet(0);\n\n writeHeaders();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (WriteException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "a423d28fe002d66c712dcb44605b61a2", "score": "0.61551356", "text": "private static void writeExcel(String fp) throws WriteException, IOException {\n\t\tWritableWorkbook workBook = null;\n\t\ttry {\n\t\t\t//initialize workbook\n\t\t\t\n\t\t\tworkBook = Workbook.createWorkbook(new File(fp));\n\t\t\t//create sheet with name as Employee and index 0\n\t\t\tWritableSheet sheet = workBook.createSheet(\"Sheet1\", 0);\n\t\t\t// create font style for header cells\n\t\t\tWritableFont headerCellFont = new WritableFont(WritableFont.ARIAL, 14,\n\t\t\t\t\tWritableFont.BOLD, true);\n\t\t\t//create format for header cells\n\t\t\tWritableCellFormat headerCellFormat = new WritableCellFormat(headerCellFont);\n\t\t\t// create header cells\n\t\t\tfor(int i = 0; i < ExpectedColumns.size(); i++) \n\t\t\t{\n\t // System.out.println(ExpectedColumns.get(i));\n\t\t\t\tLabel headerCell = new Label(i, 0, ExpectedColumns.get(i), headerCellFormat);\n\t\t\t\tsheet.addCell(headerCell);\n\t }\n\t\t\t\n \t\t\t// create cell contents for header cells\n\t\t\ttemp= new ArrayList<String>();\n\t\t\t//System.out.println(\"sixz of columnDataValues\"+columnDataValues.size());\n\t\t\t//System.out.println(\"sixz of totalNoOfRows\"+totalNoOfRows);\n\t\t\tfor (int j = 0; j < columnDataValues.size(); j++) \n\t\t {\n\t\t\t\t\t\t\t\t//System.out.println(\"columnDataValues.containsKey(ExpectedColumns.get(j))\"+columnDataValues.containsKey(ExpectedColumns.get(j)));\n\t\t\t\tif(columnDataValues.containsKey(ExpectedColumns.get(j)))\n\t\t\t\t{ \n\t\t\t\t\t\n\t\t \t temp = columnDataValues.get(ExpectedColumns.get(j));\n\t\t \t \n\t\t \t for (int m = 0; m < temp.size(); m++) \n\t\t \t {\n\t\t \t \tLabel contentCell = new Label(j, m+1, temp.get(m));\n\t\t\t\t\t\tsheet.addCell(contentCell);\n\t\t\t\t\t\t\n\t\t \t }\n\t\t \t \n\t\t\t\t} \n\t\t\t\t\n\t\t }\n\t\t\t\n\t\t\t//write workbook\n\t\t\tworkBook.write();\n\t\t\tSystem.out.println(\"Post Processed File is created and stored in \"+fp);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (RowsExceededException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (WriteException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t//close workbook\n\t\t\tworkBook.close();\n\t\t}\n\t}", "title": "" }, { "docid": "4ebc4217317f6edf639c005e48ff001a", "score": "0.613236", "text": "void writeTitlesToFile(ArrayList<String> titles, String excelName) throws IOException {\n\n XSSFWorkbook workbook = new XSSFWorkbook();\n //blank sheet\n XSSFSheet spreadSheet = workbook.createSheet(excelName);\n //Create row object\n XSSFRow row;\n\n //Iterate over data and write\n int rowId = 0;\n\n for (String currTitle : titles) {\n row = spreadSheet.createRow(rowId++);\n Cell cell = row.createCell(0);\n cell.setCellValue(currTitle);\n }\n\n //Write the workbook info in the file system\n\n FileOutputStream out = new FileOutputStream(new File(\"./\" + excelName));\n workbook.write(out);\n out.close();\n workbook.close();\n }", "title": "" }, { "docid": "68e2ee27730ac9c69fb7394178664d25", "score": "0.612661", "text": "private static void writeFile() {\r\n\t\tList<Book> books = bookDao.bookList();\r\n\t\tExcelFileUtils writer = new ExcelFileUtils();\r\n\t\twriter.writeBookListToFile(EXCEL_FILE_OUTPUT_PATH, books);\r\n\t}", "title": "" }, { "docid": "e88b5ab4461ee5e6ef8e060b9c0a256c", "score": "0.612115", "text": "public static XSSFWorkbook createExcelDocumentPos(List<ProductScanCodeWicDocument> productScanCodeWicDocuments) throws WicException {\n XSSFWorkbook workbook = null;\n try {\n int rowNum = NumberUtils.INTEGER_ONE;\n int column;\n InputStream is = WicUtil.class.getResourceAsStream(\"/template/pos_template.xlsx\");\n workbook = new XSSFWorkbook(is);\n XSSFSheet excelSheet = workbook.getSheetAt(NumberUtils.INTEGER_ZERO);\n // excelSheet.set\n excelSheet.showInPane(NumberUtils.SHORT_ZERO,NumberUtils.SHORT_ZERO);\n XSSFRow excelRow;\n XSSFCellStyle normalCellStyle = WicUtil.getCellStyle(workbook, HSSFCellStyle.ALIGN_LEFT);\n for(ProductScanCodeWicDocument productScanCodeWicDocument : productScanCodeWicDocuments){\n excelRow = excelSheet.createRow(rowNum);\n column = NumberUtils.INTEGER_ZERO;\n // UPC\n WicUtil.createCell(String.valueOf(productScanCodeWicDocument.getUpc()),excelRow,column,normalCellStyle);\n column = column + 1;\n // PROD DESC\n WicUtil.createCell(productScanCodeWicDocument.getWicDescription(),excelRow,column,normalCellStyle);\n column = column + 1;\n // CATEGORY CODE\n WicUtil.createCell(String.valueOf(productScanCodeWicDocument.getWicCategoryId()),excelRow,column,normalCellStyle);\n column = column + 1;\n // CATEGORY DESC\n WicUtil.createCell(productScanCodeWicDocument.getWicCategoryDesc(),excelRow,column,normalCellStyle);\n column = column + 1;\n // SUBCATEGORY CODE\n WicUtil.createCell(String.valueOf(productScanCodeWicDocument.getWicSubCategoryId()),excelRow,column,normalCellStyle);\n column = column + 1;\n // SUBCATEGORY DESC\n WicUtil.createCell(productScanCodeWicDocument.getWicSubCategoryDesc(),excelRow,column,normalCellStyle);\n column = column + 1;\n // UNIT OF MEASURE\n WicUtil.createCell(productScanCodeWicDocument.getWicUntTxt(),excelRow,column,normalCellStyle);\n column = column + 1;\n // PACKAGE SIZE\n WicUtil.createCell(String.valueOf(productScanCodeWicDocument.getWicPackageSize()),excelRow,column,normalCellStyle);\n column = column + 1;\n // BENEFIT QTY\n WicUtil.createCell(String.valueOf(productScanCodeWicDocument.getWicBnFtQty()),excelRow,column,normalCellStyle);\n column = column + 1;\n // BENEFIT UNIT\n WicUtil.createCell(productScanCodeWicDocument.getWicBnftUntTxt(),excelRow,column,normalCellStyle);\n column = column + 1;\n // ITEM PRICE\n WicUtil.createCell(String.valueOf(productScanCodeWicDocument.getWicPrcAmt()),excelRow,column,normalCellStyle);\n column = column + 1;\n // PRICE TYPE\n WicUtil.createCell(productScanCodeWicDocument.getWicPrcCd(),excelRow,column,normalCellStyle);\n column = column + 1;\n // CARD ID\n WicUtil.createCell(productScanCodeWicDocument.getWicCrdAcptId(),excelRow,column,normalCellStyle);\n column = column + 1;\n // EFFECTIVE DATE\n WicUtil.createCell(convertDateToString(productScanCodeWicDocument.getEffDt(),DEFAULT_FORMAT_DATE),excelRow,column,normalCellStyle);\n column = column + 1;\n // END-DATE\n WicUtil.createCell(convertDateToString(productScanCodeWicDocument.getEndDt(),DEFAULT_FORMAT_DATE),excelRow,column,normalCellStyle);\n column = column + 1;\n // UPC_PLU_LENGTH\n WicUtil.createCell(String.valueOf(productScanCodeWicDocument.getUpcPluLength()),excelRow,column,normalCellStyle);\n column = column + 1;\n // PURCHASE-INDICATOR\n WicUtil.createCell(String.valueOf(productScanCodeWicDocument.getPurchaseIndicator()),excelRow,column,normalCellStyle);\n column = column + 1;\n // MANUAL_VOUCHER_INDICATOR\n WicUtil.createCell(productScanCodeWicDocument.getManualVoucherIndicator(),excelRow,column,normalCellStyle);\n column = column + 1;\n // WIC SW\n WicUtil.createCell(productScanCodeWicDocument.getWicSw(),excelRow,column,normalCellStyle);\n column = column + 1;\n // LEB SW\n WicUtil.createCell(productScanCodeWicDocument.getLebSwitch(),excelRow,column,normalCellStyle);\n column = column + 1;\n // WIC APPLICATION ID\n WicUtil.createCell(String.valueOf(productScanCodeWicDocument.getWicAplId()),excelRow,column,normalCellStyle);\n column = column + 1;\n // ACTION\n WicUtil.createCell(productScanCodeWicDocument.getAction(),excelRow,column,normalCellStyle);\n rowNum = rowNum + 1;\n }\n\n } catch (IOException e) {\n LOGGER.error(e.getMessage(), e);\n throw new WicException(e);\n }\n return workbook;\n }", "title": "" }, { "docid": "3528541757b5cc9daeeec49a4ff966d3", "score": "0.6108583", "text": "public void lap_kembali() throws IOException, WriteException {\n String date = new SimpleDateFormat(\"ddMMyyyy\").format(new Date());\n String date2 = new SimpleDateFormat(\"dd-MMMM-yyyy\").format(new Date());\n String random = UUID.randomUUID().toString();\n File f = new File(System.getProperty(\"user.home\") + \"\\\\Documents\\\\vcd-data\\\\laporan\\\\pengembalian\\\\\" + date + \" - PENGEMBALIAN - \" + random + \".xls\");\n WritableWorkbook myexcel = Workbook.createWorkbook(f);\n WritableSheet mysheet = myexcel.createSheet(date2, 0);\n\n //SET HEADER\n Label h1 = new Label(0, 0, \"ID KEMBALI\");\n Label h2 = new Label(1, 0, \"ID PINJAM\");\n Label h3 = new Label(2, 0, \"TANGGAL\");\n Label h4 = new Label(3, 0, \"ID KARYAWAN\");\n Label h5 = new Label(4, 0, \"KARYAWAN\");\n Label h6 = new Label(5, 0, \"DENDA TOTAL\");\n Label h7 = new Label(7, 0, \"ID VCD\");\n Label h8 = new Label(8, 0, \"JUDUL\");\n Label h9 = new Label(9, 0, \"JUMLAH\");\n Label h10 = new Label(10, 0, \"KONDISI RUSAK\");\n Label h11 = new Label(11, 0, \"SUB DENDA\");\n mysheet.addCell(h1);\n mysheet.addCell(h2);\n mysheet.addCell(h3);\n mysheet.addCell(h4);\n mysheet.addCell(h5);\n mysheet.addCell(h6);\n mysheet.addCell(h7);\n mysheet.addCell(h8);\n mysheet.addCell(h9);\n mysheet.addCell(h10);\n mysheet.addCell(h11);\n\n //SET DATA\n Gson gson = new GsonBuilder().setPrettyPrinting().create();\n BufferedReader br = null;\n\n try {\n String path = System.getProperty(\"user.home\") + \"\\\\Documents\\\\vcd-data\\\\data\\\\kembali.json\";\n String path2 = System.getProperty(\"user.home\") + \"\\\\Documents\\\\vcd-data\\\\data\\\\kembali_det.json\";\n br = new BufferedReader(new FileReader(path));\n m_kembali_result rs = gson.fromJson(br, m_kembali_result.class);\n\n br = new BufferedReader(new FileReader(path2));\n m_kembali_det_result rs2 = gson.fromJson(br, m_kembali_det_result.class);\n int i = 1;\n\n if (rs != null) {\n for (m_kembali k : rs.getKembali()) {\n Label d1 = new Label(0, i, k.getId_kembali());\n Label d2 = new Label(1, i, k.getId_pinjam());\n Label d3 = new Label(2, i, k.getTgl_kembali());\n Label d4 = new Label(3, i, k.getId_karyawan());\n Label d5 = new Label(4, i, getKar(k.getId_karyawan()));\n Label d6 = new Label(5, i, Float.toString(k.getDenda_total()));\n mysheet.addCell(d1);\n mysheet.addCell(d2);\n mysheet.addCell(d3);\n mysheet.addCell(d4);\n mysheet.addCell(d5);\n mysheet.addCell(d6);\n\n if (rs2 != null) {\n for (m_kembali_det l : rs2.getKembali_det()) {\n if (k.getId_kembali().equals(l.getId_kembali())) {\n Label d7 = new Label(7, i, l.getId_vcd());\n Label d8 = new Label(8, i, getJudul(l.getId_vcd()));\n Label d9 = new Label(9, i, Integer.toString(l.getJumlah()));\n Label d10 = new Label(10, i, Integer.toString(l.getKondisi_rusak()));\n Label d11 = new Label(11, i, Float.toString(l.getDenda()));\n mysheet.addCell(d7);\n mysheet.addCell(d8);\n mysheet.addCell(d9);\n mysheet.addCell(d10);\n mysheet.addCell(d11);\n i++;\n }\n }\n }\n }\n }\n } catch (FileNotFoundException e) {\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n }\n }\n }\n\n //EXECUTE FILE \n myexcel.write();\n myexcel.close();\n }", "title": "" }, { "docid": "c43938fefa3b06752574877c817c5d1b", "score": "0.6069305", "text": "public static void createStringExcel(ArrayList<String> arrayList) throws IOException{\n XSSFWorkbook workbook = new XSSFWorkbook();\n XSSFSheet sheet = workbook.createSheet(\"Java Data\");\n //to start from 0 since it updates in the loop\n int rows = -1;\n\n //System.out.println(arrayList.size());\n //the input has continous rows, we need to break it\n //every row has 2 cells, so we increase by 2 and make 2 cells per row\n for (int i = 0; i < arrayList.size(); i+=2){\n //check i\n //System.out.println(\"i is: \"+i);\n\n //make a new row every time the loop is called\n Row row = sheet.createRow(++rows);\n //make the two cells\n Cell cell0 = row.createCell(0);\n Cell cell1 = row.createCell(1);\n //add data to the two cells, then continue\n cell0.setCellValue(arrayList.get(i));\n cell1.setCellValue(arrayList.get(i+1));\n\n }\n\n //TODO change the path?\n //make the excel\n try (FileOutputStream outputStream = new FileOutputStream(\"files/out/generatedTest1.xlsx\")) {\n workbook.write(outputStream);\n }\n }", "title": "" }, { "docid": "af78f3da34ed0d7a5646f5404092a835", "score": "0.6047211", "text": "public Sheet createSheetFromTemplate(Workbook wb, String sname, int sheet_idx){\r\n\r\n\t // Create new Sheet\r\n\t\tString s = getSheetName(wb, sname, sheet_idx);\r\n\t\tSheet sheet = wb.createSheet(s);\r\n\t\t\t\t\r\n\t\tSheet temp_sheet = _templateWorkbook.getSheetAt(sheet_idx);\r\n\t\tsheet.setDefaultColumnWidth(temp_sheet.getDefaultColumnWidth());\r\n\t\tsheet.setDefaultRowHeight(temp_sheet.getDefaultRowHeight());\r\n\t\tsheet.setDefaultRowHeightInPoints(temp_sheet.getDefaultRowHeightInPoints());\r\n\t\t\r\n\t\tIterator<Row> rowIter = temp_sheet.rowIterator();\r\n\t\t//Row hrow = temp_sheet.getRow(temp_sheet.getFirstRowNum());\r\n\t\tint rcnt = 0;\r\n\t\tint col = 0;\r\n\t\twhile (rowIter.hasNext() && rcnt < 8){\r\n\t\t\tRow hrow = (Row)rowIter.next(); \r\n\t\t\tRow newRow = sheet.createRow(rcnt);\r\n\t\t\tIterator<Cell> cellIter = hrow.cellIterator();\r\n\t\t\t//if (rcnt == 0)\r\n\t\t\tcol = 0;\r\n\t\t\twhile (cellIter.hasNext()) {\r\n\t\t\t\tCell celObj = (Cell)cellIter.next();\r\n\t\t\t\t\r\n\t\t\t\tif (celObj.getCellType() == Cell.CELL_TYPE_NUMERIC || celObj.getCellType() == Cell.CELL_TYPE_FORMULA){\r\n\t\t\t\t\tnewRow.createCell(col).setCellValue(celObj.getNumericCellValue());\r\n\t\t\t\t\tnewRow.getCell(col).setCellType(celObj.getCellType());\r\n\t\t\t\t}else if (celObj.getCellType() == Cell.CELL_TYPE_BOOLEAN){\r\n\t\t\t\t\tnewRow.createCell(col).setCellValue(celObj.getBooleanCellValue());\r\n\t\t\t\t\tnewRow.getCell(col).setCellType(celObj.getCellType());\r\n\t\t\t\t//else if (celObj.getCellType() == Cell.CELL_TYPE_FORMULA)\r\n\t\t\t\t//\tnewRow.createCell(col).setCellValue(celObj.getCellFormula());\r\n\t\t\t\t}else if (celObj.getCellType() == Cell.CELL_TYPE_STRING){\r\n\t\t\t\t\tRichTextString str = celObj.getRichStringCellValue();\r\n\t\t\t\t\tnewRow.createCell(col).setCellValue(str);\r\n\t\t\t\t\tnewRow.getCell(col).setCellType(celObj.getCellType());\r\n\t\t\t\t\t\r\n\t\t\t\t\t//if (str.toString().trim().length() > 0)\r\n\t\t\t\t\t//\tnewRow.getCell(col).setCellStyle(cell_style_map.get(\"main_header\"));\r\n\t\t\t\t\t\r\n\t\t\t\t}else if (celObj.getCellType() == Cell.CELL_TYPE_BLANK){\r\n\t\t\t\t\tnewRow.createCell(col).setCellValue(\"\");\r\n\t\t\t\t\tnewRow.getCell(col).setCellType(celObj.getCellType());\r\n\t\t\t\t\t//newRow.getCell(col).setCellStyle(cell_style_map.get(\"cell_normal\"));\r\n\t\t\t\t}else{\r\n\t\t\t\t\tnewRow.createCell(col).setCellValue(\"\");\r\n\t\t\t\t\t//newRow.getCell(col).setCellStyle(cell_style_map.get(\"cell_normal\"));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//newRow.getCell(col).cloneStyleFrom(celObj.getCellStyle());\r\n\t\t\t\tnewRow.getCell(col).setCellStyle(copyCellStyle(wb, _templateWorkbook, celObj.getCellStyle()));\r\n\t\t\t\t\r\n\t\t\t\tcol++;\r\n\t\t\t}\r\n\t\t\trcnt++;\r\n\t\t}\r\n\t\t// Set Column width\r\n\t\tfor (int i = 0; i < col; i++)\t\t\r\n\t\t\tsheet.setColumnWidth(i, temp_sheet.getColumnWidth(i));\r\n\t\t\r\n\t\treturn sheet;\r\n\t}", "title": "" }, { "docid": "fcafd65ed6b63455c02531ffac7f7878", "score": "0.60440004", "text": "public static void exportDataToExcel(String fileName, String sheetName, String[][] data) {\n\t\t\n\t\tXSSFWorkbook workbook = new XSSFWorkbook();\n XSSFSheet sheet = workbook.createSheet(sheetName);\n\n int rowNum = 0;\n\n for (Object[] datatype : data) {\n Row row = sheet.createRow(rowNum++);\n int colNum = 0;\n for (Object field : datatype) {\n Cell cell = row.createCell(colNum++);\n if (field instanceof String) {\n cell.setCellValue((String) field);\n } else if (field instanceof Integer) {\n cell.setCellValue((Integer) field);\n }\n }\n }\n\n try {\n FileOutputStream outputStream = ResourceHandler.getResourcePathOutputStream(\"\\\\target\\\\outputdata\\\\\" +fileName+ \".xlsx\");\n workbook.write(outputStream);\n workbook.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\t}", "title": "" }, { "docid": "36000a5fc52b0979b38f88f97364ed66", "score": "0.6038136", "text": "public GenerateExcelFile(String path,String fileName) {\r\n\t\tsuper();\r\n\t\trowIndex=0;\r\n\t\tthis.path = path;\r\n\t\tthis.fileName = fileName;\r\n\t\ttextStyle= CaseFormat.UPPER_CAMEL;\r\n\t\t\r\n\t\tif(fileName.contains(\".xls\")){\r\n\t\t\tworkbook = new HSSFWorkbook();\r\n\t\t}else if (fileName.contains(\".xlsx\")){\r\n\t\t\tworkbook = new XSSFWorkbook();\r\n\t\t}else{\r\n\t\t\tworkbook = new HSSFWorkbook();\r\n\t\t}\r\n\t\t\r\n\t\theaderCellStyle = workbook.createCellStyle();\r\n\t\theaderFont = workbook.createFont();\r\n\t\theaderCellStyle.setFont(headerFont);\r\n\t}", "title": "" }, { "docid": "0333d4f3697edeb2adb0ee17ea5a5c86", "score": "0.60291576", "text": "public static void downloadNewProfessionTemplate() {\n \t\n \trequest.format = \"xls\";\n \trenderArgs.put(RenderExcel.RA_FILENAME, \"Plantilla-Profesiones.xls\");\n \trenderTemplate(\"Reports/Professions.xls\");\n \t\n }", "title": "" }, { "docid": "864259a1b82133725e6fc1a2291afa3f", "score": "0.6028232", "text": "@Override\n public ActionForward execute(ActionMapping mapping, ActionForm form,\n HttpServletRequest request, HttpServletResponse response)\n throws Exception {\n \n response.setContentType(\"application/octet-stream\");\n\n ExcelCreator excelCreator = new ExcelCreator();\n\n HSSFWorkbook workbook = excelCreator.createWorkbook(new ArrayList());\n \n Periodo p = new Periodo();\n p.setFecha_inicio(request.getParameter(\"fecha_inicio\"));\n p.setFecha_fin(request.getParameter(\"fecha_fin\"));\n \n response.setHeader(\"Content-Disposition\", \"attachment; filename=EquipoUnidad\"+p.getFecha_fin()+\".xls\");\n\n\n // Se fijan los estilos del titulo y encabezado ===========\n HSSFCellStyle headerCellStyle = workbook.createCellStyle();\n HSSFFont boldFont = workbook.createFont();\n boldFont.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);\n headerCellStyle.setFont(boldFont);\n\n HSSFCellStyle tituloStyle = workbook.createCellStyle();\n HSSFFont tituloFont = workbook.createFont();\n tituloFont.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);\n tituloFont.setFontHeightInPoints((short) 12);\n tituloFont.setUnderline(HSSFFont.U_SINGLE);\n tituloStyle.setFont(tituloFont);\n // =======================================================\n\n HSSFSheet sheet = workbook.createSheet(\"Listados\");\n short cero = 0;\n short contador = 1;\n\n String fecha = DBMS.getInstance().obtenerFecha();\n\n //===== Tamano de las columnas ============\n sheet.setColumnWidth((short)0, (short)10000);\n sheet.setColumnWidth((short)1, (short)8000);\n sheet.setColumnWidth((short)2, (short)5000);\n sheet.setColumnWidth((short)3, (short)5000);\n //==========================================\n HSSFRow row = sheet.createRow(0);\n HSSFCell cell = row.createCell(cero);\n \n setEncabezado(row, cell,(short)0, tituloStyle,\"Listados Generales EPP\");\n \n row = sheet.createRow(contador++);\n setEncabezado(row, cell,(short)0, headerCellStyle,\"Fecha: \"+fecha);\n \n row = sheet.createRow(contador++);\n setEncabezado(row, cell,(short)0, headerCellStyle,\"Listados clasificados por equipo e unidad durante el período\");\n\n contador++;\n row = sheet.createRow(contador++);\n\n setEncabezado(row, cell,(short)0, headerCellStyle,\"Equipo\");\n setEncabezado(row, cell,(short)1, headerCellStyle,\"Unidad de adscripción\");\n setEncabezado(row, cell,(short)2, headerCellStyle,\"Talla\");\n setEncabezado(row, cell,(short)3, headerCellStyle,\"Cantidad aprobada\");\n\n ArrayList <Equipo> equipos = DBMS.getInstance().obtenerEquipoUnidad(p);\n\n HSSFCell celltemp;\n String areaAnterior = null;\n \n for (short i = 0; i < equipos.size(); i++) {\n row = sheet.createRow(contador++);\n if (!equipos.get(i).getSector().equals(areaAnterior)){\n row = sheet.createRow(contador++); \n celltemp = row.createCell((short)0);\n celltemp.setCellValue(equipos.get(i).getSector());\n celltemp.setCellStyle(headerCellStyle);\n areaAnterior = equipos.get(i).getSector();\n row = sheet.createRow(contador++);\n }\n celltemp = row.createCell((short)0);\n celltemp.setCellValue(equipos.get(i).getNombre_vista());\n \n celltemp = row.createCell((short)1);\n celltemp.setCellValue(equipos.get(i).getFuncionalidad()); // unidad de adscripcion\n \n celltemp = row.createCell((short)2);\n celltemp.setCellValue(equipos.get(i).getTalla());\n \n celltemp = row.createCell((short)3);\n celltemp.setCellValue(equipos.get(i).getCantidad());\n }\n\n ServletOutputStream out = response.getOutputStream();\n workbook.write(out);\n\n out.flush();\n\n out.close();\n\n return mapping.findForward(SUCCESS);\n }", "title": "" }, { "docid": "63e5667bdfaf895702aeb585bd3f4489", "score": "0.60268897", "text": "@Override\n\tprotected void buildExcelDocument(Map<String, Object> model, HSSFWorkbook workbook, HttpServletRequest req,\n\t\t\tHttpServletResponse res) throws Exception {\n\n\t\tadminDao = new AdminDAO();\n\t\tList<Employer> employers = adminDao.getAllEmployers();\n\t\tSystem.out.println(\"employer excep size= \" + employers.size());\n\t\tHSSFSheet sheet = workbook.createSheet(\"EmployerList\");\n\t\tsheet.setDefaultColumnWidth(12);\n\t\tList<String> headers = new ArrayList<String>();\n\t\theaders.add(\"Employer ID\");\n\t\theaders.add(\"Company Name\");\n\t\theaders.add(\"Email\");\n\t\tint currentColumn = 0;\n\n\t\tHSSFCellStyle headerStyle = workbook.createCellStyle();\n\t\tHSSFFont headerFont = workbook.createFont();\n\t\theaderFont.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);\n\t\theaderStyle.setFont(headerFont);\n\t\t// POPULATE HEADER COLUMNS\n\t\tHSSFRow headerRow = sheet.createRow(0);\n\t\tfor (String header : headers) {\n\t\t\tHSSFRichTextString text = new HSSFRichTextString(header);\n\t\t\tHSSFCell cell = headerRow.createCell(currentColumn);\n\t\t\tcell.setCellStyle(headerStyle);\n\t\t\tcell.setCellValue(text);\n\t\t\tcurrentColumn++;\n\t\t}\n\n\t\tint row = 1;\n\t\tfor (Employer employer : employers) {\n\t\t\tgetCell(sheet, row, 0).setCellValue(employer.getEmployerID());\n\t\t\tgetCell(sheet, row, 1).setCellValue(employer.getCompanyName());\n\t\t\tgetCell(sheet, row, 2).setCellValue(employer.getEmailAddress());\n\n\t\t\trow++;\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "34f8340820b83010d123a9a951297732", "score": "0.5996043", "text": "public static void main(String[] args) {\n\t\tXSSFWorkbook wk=new XSSFWorkbook();\r\n\t\tXSSFSheet sheet= wk.createSheet(\"Data\");\r\n\t\tMap<String, Object[]> data=new TreeMap<String, Object[]>();\r\n\t\tdata.put(\"1\", new Object[] {\"First Name\", \"Last Name\"});\r\n\t\tdata.put(\"2\", new Object[] {\"Alan\", \"MS\"});\r\n\t\tdata.put(\"3\", new Object[] {\"Jijo\", \"AJ\"});\r\n\t\tdata.put(\"4\", new Object[] {\"Colin\", \"Correya\"});\r\n\t\tSet<String> set=data.keySet();\r\n\t\tint rowno=0;\r\n\t\tfor(String k:set)\r\n\t\t{\r\n\t\t\tRow row=sheet.createRow(rowno++);\r\n\t\t\tObject[] obj=data.get(k);\r\n\t\t\tint cellno=0;\r\n\t\t\tfor(Object ooj:obj)\r\n\t\t\t{\r\n\t\t\t\tCell cell= row.createCell(cellno++);\r\n\t\t\t\tif(ooj instanceof String)\r\n\t\t\t\t\tcell.setCellValue((String)ooj);\r\n\t\t\t\telse if(ooj instanceof Integer)\r\n\t\t\t\t\tcell.setCellValue((Integer)ooj);\t\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\ttry\r\n\t\t{\r\n\t\tFileOutputStream out =new FileOutputStream(new File(\"Name.xlsx\"));\r\n\t\twk.write(out);\r\n\t\tout.close();\r\n\t\tSystem.out.println(\"succesful\");\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "99e3212dcbb2f4d4cdb6fdad1286c830", "score": "0.5980732", "text": "public Sheet createCustomLabelSheet(Workbook wb, String sheet_name) {\r\n\t\tSheet sheet = wb.createSheet(getSheetName(wb, sheet_name, 0));\r\n\t if (this.isValid){\r\n\t\t\tSheet temp_sheet = _templateWorkbook.getSheetAt(0);\r\n\t\t\tsheet.setDefaultColumnWidth(temp_sheet.getDefaultColumnWidth());\r\n\t\t\tsheet.setDefaultRowHeight(temp_sheet.getDefaultRowHeight());\r\n\t\t\tsheet.setDefaultRowHeightInPoints(temp_sheet.getDefaultRowHeightInPoints());\r\n\t\t\t\r\n\t\t\tIterator<Row> rowIter = temp_sheet.rowIterator();\r\n\t\t\tint rcnt = 0;\r\n\t\t\tint col = 0;\r\n\t\t\twhile (rowIter.hasNext() && rcnt < 8){\r\n\t\t\t\tRow hrow = (Row)rowIter.next(); \r\n\t\t\t\tRow newRow = sheet.createRow(rcnt);\r\n\t\t\t\tIterator<Cell> cellIter = hrow.cellIterator();\r\n\t\t\t\tcol = 0;\r\n\t\t\t\twhile (cellIter.hasNext()) {\r\n\t\t\t\t\tCell celObj = (Cell)cellIter.next();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (celObj.getCellType() == Cell.CELL_TYPE_NUMERIC || celObj.getCellType() == Cell.CELL_TYPE_FORMULA){\r\n\t\t\t\t\t\tnewRow.createCell(col).setCellValue(celObj.getNumericCellValue());\r\n\t\t\t\t\t\tnewRow.getCell(col).setCellType(celObj.getCellType());\r\n\t\t\t\t\t}else if (celObj.getCellType() == Cell.CELL_TYPE_BOOLEAN){\r\n\t\t\t\t\t\tnewRow.createCell(col).setCellValue(celObj.getBooleanCellValue());\r\n\t\t\t\t\t\tnewRow.getCell(col).setCellType(celObj.getCellType());\r\n\t\t\t\t\t//else if (celObj.getCellType() == Cell.CELL_TYPE_FORMULA)\r\n\t\t\t\t\t//\tnewRow.createCell(col).setCellValue(celObj.getCellFormula());\r\n\t\t\t\t\t}else if (celObj.getCellType() == Cell.CELL_TYPE_STRING){\r\n\t\t\t\t\t\tRichTextString str = celObj.getRichStringCellValue();\r\n\t\t\t\t\t\tnewRow.createCell(col).setCellValue(str);\r\n\t\t\t\t\t\tnewRow.getCell(col).setCellType(celObj.getCellType());\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}else if (celObj.getCellType() == Cell.CELL_TYPE_BLANK){\r\n\t\t\t\t\t\tnewRow.createCell(col).setCellValue(\"\");\r\n\t\t\t\t\t\tnewRow.getCell(col).setCellType(celObj.getCellType());\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tnewRow.createCell(col).setCellValue(\"\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tnewRow.getCell(col).setCellStyle(copyCellStyle(wb, _templateWorkbook, celObj.getCellStyle()));\r\n\t\t\t\t\t\r\n\t\t\t\t\tcol++;\r\n\t\t\t\t}\r\n\t\t\t\trcnt++;\r\n\t\t\t}\r\n\t\t\t// Set Column width\r\n\t\t\tfor (int i = 0; i < col; i++)\t\t\r\n\t\t\t\tsheet.setColumnWidth(i, temp_sheet.getColumnWidth(i));\r\n\t \t\r\n\t }else{\r\n\t\t\t// Create new Sheet\r\n\t\t\tCreationHelper createHelper = wb.getCreationHelper();\t\t\t\r\n\r\n\t\t\tMap<String, CellStyle> styles = createStyles(wb);\r\n\t\t\t// Create header row\r\n\t\t\tRow hrow = sheet.createRow((short) 0);\r\n\t\t\throw.createCell(0).setCellValue(this.getMessageSource(\"label.column.no\",\"No\"));\r\n\t\t\throw.getCell(0).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\t\t\throw.createCell(1).setCellValue(createHelper.createRichTextString(\"Full Name\"));\r\n\t\t\throw.getCell(1).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\t\t\throw.createCell(2).setCellValue(createHelper.createRichTextString(\"Value\"));\r\n\t\t\throw.getCell(2).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\t\t\throw.createCell(3).setCellValue(\"Description\");\r\n\t\t\throw.getCell(3).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\t\t\throw.createCell(4).setCellValue(\"Language\");\r\n\t\t\throw.getCell(4).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\t\t\throw.createCell(5).setCellValue(\"Protected\");\r\n\t\t\throw.getCell(5).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\r\n\t\t\t// Control column width\r\n\t\t\tsheet.setDefaultColumnWidth(50);\r\n\t\t\tsheet.setColumnWidth(0, 1500);\r\n\t }\r\n\t\treturn sheet;\r\n\t}", "title": "" }, { "docid": "6dd6f7a3288247f44450f91daca0e10a", "score": "0.59802544", "text": "public boolean exporta(MultiLabelInstances dataset_train , MultiLabelInstances dataset_test,String dataset_current_name, boolean es_de_tipo_meka)\n {\n try\n {\n DataOutputStream out = new DataOutputStream(new FileOutputStream(mi_file));\n \n WritableWorkbook wb = Workbook.createWorkbook(out);\n \n WritableSheet ws =wb.createSheet(dataset_current_name, 0);\n \n\n //Estilo centrado y con bordes\n WritableCellFormat wcf2 = new WritableCellFormat();\n wcf2.setAlignment(Alignment.CENTRE);\n wcf2.setBorder(jxl.format.Border.ALL,\n jxl.format.BorderLineStyle.DOTTED,\n jxl.format.Colour.GRAY_80);\n \n \n //encabezado de las columnas\n ws.setColumnView(0, 60);\n ws.addCell(new Label(0, 0, String.valueOf(\"Commun Metrics for\"),wcf2));\n \n ws.setColumnView(1, 15);\n ws.addCell(new Label(1, 0, String.valueOf(\"Train/Test set\"),wcf2));\n \n atributo[] label_frenquency = util.Get_Frequency_x_label(dataset_train);\n label_frenquency = util.Ordenar_freq_x_attr(label_frenquency);// ordena de mayor a menor\n \n atributo[] imbalanced_data_train = util.Get_data_imbalanced_x_label_inter_class(dataset_train,label_frenquency);\n \n String temp;\n int ind_fila=1;\n \n for(String metric : metric_list_comun)\n {\n temp = get_value_metric(metric, dataset_train, es_de_tipo_meka);\n if(temp.equals(\"-1.0\")) temp = util.get_alternative_metric(metric, dataset_train,dataset_test);\n \n ws.addCell(new Label(0, ind_fila, metric,wcf2));\n ws.addCell(new Label(1, ind_fila, temp,wcf2));\n \n ind_fila++;\n }\n \n ind_fila++;\n \n //encabezado de las columnas\n \n ws.addCell(new Label(0, ind_fila, String.valueOf(\"Metrics for\"),wcf2));\n ws.addCell(new Label(1, ind_fila, String.valueOf(\"Train set\"),wcf2));\n ws.addCell(new Label(2, ind_fila, String.valueOf(\"Test set\"),wcf2));\n \n ind_fila++;\n \n String value_test, value_train;\n //atributo[] imbalanced_data_train = util.Get_data_imbalanced_x_label(dataset_train); \n \n \n label_frenquency = util.Get_Frequency_x_label(dataset_test);\n label_frenquency = util.Ordenar_freq_x_attr(label_frenquency);// ordena de mayor a menor\n \n atributo[] imbalanced_data_test = util.Get_data_imbalanced_x_label_inter_class(dataset_test,label_frenquency);\n \n for(String metrica : metric_list_test)\n {\n value_train = util.get_value_metric(metrica, dataset_train, es_de_tipo_meka);\n if(value_train.equals(\"-1.0\")) value_train = util.get_value_metric_imbalanced(metrica, dataset_train, imbalanced_data_train); \t\n \n value_test= util.get_value_metric(metrica, dataset_test, es_de_tipo_meka);\n if(value_test.equals(\"-1.0\")) value_test = util.get_value_metric_imbalanced(metrica, dataset_test, imbalanced_data_test); \t\n \n if (value_test.equals(\"-1.0\")) value_test= util.get_alternative_metric(metrica,dataset_train, dataset_test);\n \n if(value_train.equals(\"-1.0\"))\n {\n ws.addCell(new Label(0, ind_fila, metrica,wcf2));\n ws.addCell(new Label(1, ind_fila, \"NaN\",wcf2));\n ws.addCell(new Label(2, ind_fila, value_test,wcf2));\n }\n //wr.write(metrica+\";\"+ \"NaN\"+\";\"+value_test);\n \n else\n {\n ws.addCell(new Label(0, ind_fila, metrica,wcf2));\n ws.addCell(new Label(1, ind_fila, value_train,wcf2));\n ws.addCell(new Label(2, ind_fila, value_test,wcf2));\n }\n\n ind_fila++;\n }\n wb.write();\n wb.close();\n return true;\n \n }\n catch(IOException | WriteException e)\n {\n return false;\n } \n }", "title": "" }, { "docid": "a8516ca579415c1d03e233883451c094", "score": "0.5976825", "text": "public static void createLinkExcel(List<Hyperlink> hyperlinkList) throws IOException{\n XSSFWorkbook workbook = new XSSFWorkbook();\n XSSFSheet sheet = workbook.createSheet(\"Java Data\");\n //rows start\n int rows = 0;\n\n for (Hyperlink hyperlink: hyperlinkList){\n //creates a new row every time for the loop\n Row row = sheet.createRow(++rows);\n //display what site you are scrapping\n System.out.println(\"calling \"+hyperlink.getAddress());\n //get text from the website\n String scrappedText = AbstractScrapper.getAbstractId(\n hyperlink.getAddress());\n //make a new cell with the scrapped info\n setCell(row, scrappedText);\n }\n\n //TODO change the path?\n //make the excel\n try (FileOutputStream outputStream = new FileOutputStream(\"GeneratedExcel.xlsx\")) {\n workbook.write(outputStream);\n }\n }", "title": "" }, { "docid": "ab988f31425131eea73171ae22a5bbd8", "score": "0.5971341", "text": "public void lap_restock() throws IOException, WriteException {\n String date = new SimpleDateFormat(\"ddMMyyyy\").format(new Date());\n String date2 = new SimpleDateFormat(\"dd-MMMM-yyyy\").format(new Date());\n String random = UUID.randomUUID().toString();\n File f = new File(System.getProperty(\"user.home\") + \"\\\\Documents\\\\vcd-data\\\\laporan\\\\restock\\\\\" + date + \" - RESTOCK - \" + random + \".xls\");\n WritableWorkbook myexcel = Workbook.createWorkbook(f);\n WritableSheet mysheet = myexcel.createSheet(date2, 0);\n\n //SET HEADER\n Label h1 = new Label(0, 0, \"ID RESTOCK\");\n Label h2 = new Label(1, 0, \"TANGGAL\");\n Label h3 = new Label(2, 0, \"ID VCD\");\n Label h4 = new Label(3, 0, \"JUDUL\");\n Label h5 = new Label(4, 0, \"ID KARYAWAN\");\n Label h6 = new Label(5, 0, \"KARYAWAN\");\n Label h7 = new Label(6, 0, \"JUMLAH STOCK\");\n mysheet.addCell(h1);\n mysheet.addCell(h2);\n mysheet.addCell(h3);\n mysheet.addCell(h4);\n mysheet.addCell(h5);\n mysheet.addCell(h6);\n mysheet.addCell(h7);\n\n //SET DATA\n Gson gson = new GsonBuilder().setPrettyPrinting().create();\n BufferedReader br = null;\n try {\n String path = System.getProperty(\"user.home\") + \"\\\\Documents\\\\vcd-data\\\\data\\\\restock.json\";\n br = new BufferedReader(new FileReader(path));\n m_restock_result rs = gson.fromJson(br, m_restock_result.class);\n int i = 1;\n\n if (rs != null) {\n for (m_restock k : rs.getRestock()) {\n Label d1 = new Label(0, i, k.getId_restock());\n Label d2 = new Label(1, i, k.getTanggal());\n Label d3 = new Label(2, i, k.getId_vcd());\n Label d4 = new Label(3, i, getJudul(k.getId_vcd()));\n Label d5 = new Label(4, i, k.getId_karyawan());\n Label d6 = new Label(5, i, getKar(k.getId_karyawan()));\n Label d7 = new Label(6, i, Integer.toString(k.getJumlah()));\n mysheet.addCell(d1);\n mysheet.addCell(d2);\n mysheet.addCell(d3);\n mysheet.addCell(d4);\n mysheet.addCell(d5);\n mysheet.addCell(d6);\n mysheet.addCell(d7);\n i++;\n }\n }\n } catch (FileNotFoundException e) {\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n }\n }\n }\n\n //EXECUTE FILE \n myexcel.write();\n myexcel.close();\n }", "title": "" }, { "docid": "cf6b13481abe2355973cff92cf753824", "score": "0.59671277", "text": "public void writeListToDoExcel() {\n }", "title": "" }, { "docid": "d37ecd6edd1887c85c1e2c4359c4cab2", "score": "0.5963222", "text": "private void montarExcel() throws Exception {\n TreeMap<String, Set_setorNewT> treeSetor = new TreeMap<String, Set_setorNewT>();\n TreeMap<String, Set_setorNewT> treeSessao = new TreeMap<String, Set_setorNewT>();\n \n\n //Montando o tree do Setor\n List<Set_setorNewT> listSet = getSet_setorNewDAO().getAllSemPai();\n for (Set_setorNewT set_setorT : listSet) {\n treeSetor.put(set_setorT.getSet_tx_idsap(), set_setorT);\n }\n\n //Montando o tree da sessao\n List<Set_setorNewT> listSes = getSet_setorNewDAO().getAllNivel1();\n for (Set_setorNewT ses_sessaoT : listSes) {\n treeSessao.put(ses_sessaoT.getSet_tx_idsap(), ses_sessaoT);\n }\n\n ExcelProdutos excelProdutos = new ExcelProdutos();\n excelProdutos.setSetDao(getSet_setorNewDAO());\n excelProdutos.setTreeSetor(treeSetor);\n excelProdutos.setTreeSessao(treeSessao);\n\n excelProdutos.setTitulo(\"Produtos do Evento \" + eve_eventoT.getEve_tx_nome());\n excelProdutos.setListProdutos(list);\n byte[] arquivoExcel = excelProdutos.gerarExcel();\n getRequest().setAttribute(EasyDownloadJB.CONTENT_TYPE, \"application/vnd.ms-excel\");\n getRequest().setAttribute(EasyDownloadJB.FILE_NAME, eve_eventoT.getEve_tx_nome().concat(\".xls\"));\n getRequest().setAttribute(EasyDownloadJB.DATA, arquivoExcel);\n getPage().forward(\"../../../portal/easydownload.jsp\");\n }", "title": "" }, { "docid": "acc70d12abf3c061157080823b4bd6ee", "score": "0.5943224", "text": "@Override\n\tprotected void buildExcelDocument(Map model, HSSFWorkbook workbook,\n\t\t\tHttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows Exception {\n\t\tString sheetname = \"列表\";\n\t\tif(request.getAttribute(\"PageTitle\")!=null)\n\t\t{\n\t\t\tsheetname =request.getAttribute(\"PageTitle\").toString();\n\t\t}\n\t\tlogger.debug(\"Excel model->\"+model.toString());\n\t\tHSSFSheet sheet = workbook.createSheet(sheetname);\n\t\tHSSFCellStyle headStyle = workbook.createCellStyle();\n\t\t//字体\n\t\tHSSFFont f = workbook.createFont();\n\t\tf.setFontHeightInPoints((short) 11);// 字号\n\t\tf.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);// 加粗 \n\t\theadStyle.setFont(f);\n\t\t//四面边框\n\t\theadStyle.setBorderBottom(HSSFCellStyle.BORDER_THIN );// 下边框 \n\t\theadStyle.setBorderLeft(HSSFCellStyle.BORDER_THIN);// 左边框 \n\t\theadStyle.setBorderRight(HSSFCellStyle.BORDER_THIN);// 右边框 \n\t\theadStyle.setBorderTop(HSSFCellStyle.BORDER_THIN);// 上边框 \n\t\t//底色 黄\n\t\theadStyle.setFillPattern(HSSFCellStyle.SOLID_FOREGROUND);\n\t\theadStyle.setFillForegroundColor(HSSFColor.YELLOW.index);\n\t\t//内容样式\n\t\tHSSFCellStyle resultStyle = workbook.createCellStyle();\n\t\tresultStyle.setWrapText(true);\n\t\tresultStyle.setBorderBottom(HSSFCellStyle.BORDER_THIN );// 下边框 \n\t\tresultStyle.setBorderLeft(HSSFCellStyle.BORDER_THIN);// 左边框 \n\t\tresultStyle.setBorderRight(HSSFCellStyle.BORDER_THIN);// 右边框 \n\t\tresultStyle.setBorderTop(HSSFCellStyle.BORDER_THIN);// 上边框 \n\t\t// dateStyle.setDataFormat(HSSFDataFormat.getBuiltinFormat(\"mm/dd/yyyy\"));\n\t\tlogger.debug(\"Excel model result->\"+model.containsKey(\"modelAndView\"));\n\t\tPattern pattern = Pattern.compile(\"^(\\\\-|\\\\+)?\\\\d+(\\\\.\\\\d+)?$\");\n\t\t\n\t\tif(model.containsKey(\"result\"))\n\t\t{\n\t\t\tResultByPage result = (ResultByPage)model.get(\"result\");\n\t\t\tList<DataRow> fieldlist = result.getFieldlist();\n\t\t\tif(fieldlist.size()>0)\n\t\t\t{\n\t\t\t\tHSSFRow headRow = sheet.createRow(0);\n\t\t\t\tlogger.debug(\"Excel headRow->\"+headRow.toString());\n\t\t\t\tfor(int i=0;i<fieldlist.size();i++)\n\t\t\t\t{\n\t\t\t\t\tDataRow field = fieldlist.get(i);\n\t\t\t\t\tHSSFCell temp = headRow.createCell(i);\n\t\t\t\t\ttemp.setCellType(HSSFCell.CELL_TYPE_STRING);\n\t\t\t\t\ttemp.setCellValue(field.getString(\"fieldname\"));\n\t\t\t\t\ttemp.setCellStyle(headStyle);\n\t\t\t\t}\n\t\t\t\tList<DataRow> resultlist = result.getResultlist();\n\t\t\t\tif(resultlist.size()>0)\n\t\t\t\t{\n\t\t\t\t\tfor(short i=0;i<resultlist.size();i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tHSSFRow resultRow = sheet.createRow(i+1);\n\t\t\t\t\t\tfor(int j=0;j<fieldlist.size();j++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tDataRow field = fieldlist.get(j);\n\t\t\t\t\t\t\tHSSFCell temp = resultRow.createCell(j);\n\t\t\t\t\t\t\tif(resultlist.get(i).getString(field.getString(\"fieldid\"))!=null&&pattern.matcher(resultlist.get(i).getString(field.getString(\"fieldid\"))).matches())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttemp.setCellType(HSSFCell.CELL_TYPE_NUMERIC);\n\t\t\t\t\t\t\t\ttemp.setCellValue(resultlist.get(i).getBigDecimal(field.getString(\"fieldid\")).doubleValue());\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\ttemp.setCellType(HSSFCell.CELL_TYPE_STRING);\n\t\t\t\t\t\t\t\ttemp.setCellValue(new HSSFRichTextString(resultlist.get(i).getString(field.getString(\"fieldid\"))));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttemp.setCellStyle(resultStyle);\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\tString filename = sheetname+DateTimeUtil.getNowDayStr()+\".xls\";// 设置下载时客户端Excel的名称\n\t\tfilename = encodeFilename(filename, request);// 处理中文文件名\n\t\tresponse.setContentType(\"application/vnd.ms-excel\");\n\t\tresponse.setHeader(\"Content-disposition\", \"attachment;filename=\"\n\t\t\t\t+ filename);\n\t\tOutputStream ouputStream = response.getOutputStream();\n\t\tworkbook.write(ouputStream);\n\t\touputStream.flush();\n\t\touputStream.close();\n\t}", "title": "" }, { "docid": "54c673f80b4f17689e2b406573b94085", "score": "0.5942925", "text": "@Override\r\n\tprotected void buildExcelDocument(Map<String, Object> model,\r\n\t\t\tWorkbook workbook,\r\n\t\t\tHttpServletRequest request,\r\n\t\t\tHttpServletResponse response) throws Exception {\n\t\tresponse.addHeader(\"Content-Disposition\", \"attachment;filename=WhUserTypes.XLSX\");\r\n\t\t//create sheet\r\n\t\tSheet sheet=workbook.createSheet(\"WhUserTypes\");\r\n\t\tsetHead(sheet);\r\n\t\t//read data\r\n\t\tList<WhUserType> userTypes=(List<WhUserType>) model.get(\"userTypes\");\r\n\t\tsetBody(sheet, userTypes);\r\n\t}", "title": "" }, { "docid": "fae0e8026d1abaa34be0838f00bf8d92", "score": "0.593267", "text": "public void lap_vcd() throws IOException, WriteException {\n String date = new SimpleDateFormat(\"ddMMyyyy\").format(new Date());\n String date2 = new SimpleDateFormat(\"dd-MMMM-yyyy\").format(new Date());\n String random = UUID.randomUUID().toString();\n File f = new File(System.getProperty(\"user.home\") + \"\\\\Documents\\\\vcd-data\\\\laporan\\\\vcd\\\\\" + date + \" - VCD - \" + random + \".xls\");\n WritableWorkbook myexcel = Workbook.createWorkbook(f);\n WritableSheet mysheet = myexcel.createSheet(date2, 0);\n\n //SET HEADER\n Label h1 = new Label(0, 0, \"ID VCD\");\n Label h2 = new Label(1, 0, \"JUDUL\");\n Label h3 = new Label(2, 0, \"GENRE\");\n Label h4 = new Label(3, 0, \"BAHASA\");\n Label h5 = new Label(4, 0, \"RILIS\");\n Label h6 = new Label(5, 0, \"JUMLAH\");\n Label h7 = new Label(6, 0, \"KONDISI BAIK\");\n Label h8 = new Label(7, 0, \"KONDISI BURUK\");\n mysheet.addCell(h1);\n mysheet.addCell(h2);\n mysheet.addCell(h3);\n mysheet.addCell(h4);\n mysheet.addCell(h5);\n mysheet.addCell(h6);\n mysheet.addCell(h7);\n mysheet.addCell(h8);\n\n //SET DATA\n Gson gson = new GsonBuilder().setPrettyPrinting().create();\n BufferedReader br = null;\n try {\n String path = System.getProperty(\"user.home\") + \"\\\\Documents\\\\vcd-data\\\\data\\\\vcd.json\";\n br = new BufferedReader(new FileReader(path));\n m_vcd_result rs = gson.fromJson(br, m_vcd_result.class);\n int i = 1;\n\n if (rs != null) {\n for (m_vcd k : rs.getVcd()) {\n Label d1 = new Label(0, i, k.getId_vcd());\n Label d2 = new Label(1, i, k.getJudul());\n Label d3 = new Label(2, i, k.getGenre());\n Label d4 = new Label(3, i, k.getBahasa());\n Label d5 = new Label(4, i, k.getRilis());\n Label d6 = new Label(5, i, Integer.toString(k.getKondisi_baik() + k.getKondisi_buruk()));\n Label d7 = new Label(6, i, Integer.toString(k.getKondisi_baik()));\n Label d8 = new Label(7, i, Integer.toString(k.getKondisi_buruk()));\n mysheet.addCell(d1);\n mysheet.addCell(d2);\n mysheet.addCell(d3);\n mysheet.addCell(d4);\n mysheet.addCell(d5);\n mysheet.addCell(d6);\n mysheet.addCell(d7);\n mysheet.addCell(d8);\n i++;\n }\n }\n } catch (FileNotFoundException e) {\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n }\n }\n }\n\n //EXECUTE FILE \n myexcel.write();\n myexcel.close();\n }", "title": "" }, { "docid": "87a7af87f6f04f369ef243a83d37233d", "score": "0.5929888", "text": "@Override\n public boolean exportDatabase(ExportDetails exportDetails) {\n // Retrieve details about export operation.\n boolean esportaSpese = exportDetails.isExportExpenses();\n boolean esportaEntrate = exportDetails.isExportEarnings();\n long dataInizio = exportDetails.getDateStart();\n long dataFine = exportDetails.getDateEnd();\n\n DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, miaLocale);\n\n String state = Environment.getExternalStorageState();\n if (!Environment.MEDIA_MOUNTED.equals(state)) { //controllo se la directory esterna č disponibile per la scrittura\n return false;\n }\n else {\n File exportDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);\n if (!exportDir.exists())\n {\n exportDir.mkdirs();\n }\n\n File file;\n FileOutputStream fileOut = null;\n try\n {\n String nomeFile = \"PersonalBudget.xls\";\n file = new File(exportDir, nomeFile);\n file.createNewFile();\n\n //creazione Workbook\n Workbook wb = new HSSFWorkbook();\n CreationHelper createHelper = wb.getCreationHelper();\n\n if(esportaSpese) {\n DBCSpeseSostenute dbcSpeseSostenute = new DBCSpeseSostenute(mioContext);\n dbcSpeseSostenute.openLettura();\n Cursor curCSV = dbcSpeseSostenute.getSpeseSostenuteIntervalloNoTrasf(dataInizio, dataFine, trasf);\n\n //creazione foglio e riga titoli\n Sheet sheet = wb.createSheet(mioContext.getString(R.string.menu_esporta_XLS_nomeFoglioSpese));\n Row rowTitolo = sheet.createRow((short)0);\n rowTitolo.setHeightInPoints(20);\n Font fontTitolo = wb.createFont();\n fontTitolo.setBoldweight(Font.BOLDWEIGHT_BOLD);\n\n CellStyle cellStyleTitoli = wb.createCellStyle();\n cellStyleTitoli.setBorderBottom(CellStyle.BORDER_THIN);\n cellStyleTitoli.setBottomBorderColor(IndexedColors.BLACK.getIndex());\n cellStyleTitoli.setBorderLeft(CellStyle.BORDER_THIN);\n cellStyleTitoli.setLeftBorderColor(IndexedColors.BLACK.getIndex());\n cellStyleTitoli.setBorderRight(CellStyle.BORDER_THIN);\n cellStyleTitoli.setRightBorderColor(IndexedColors.BLACK.getIndex());\n cellStyleTitoli.setBorderTop(CellStyle.BORDER_THIN);\n cellStyleTitoli.setTopBorderColor(IndexedColors.BLACK.getIndex());\n\n cellStyleTitoli.setAlignment(CellStyle.ALIGN_CENTER);\n cellStyleTitoli.setVerticalAlignment(CellStyle.VERTICAL_CENTER);\n cellStyleTitoli.setFillForegroundColor(IndexedColors.LIGHT_YELLOW.getIndex());\n cellStyleTitoli.setFillPattern((short)1);\n cellStyleTitoli.setFont(fontTitolo);\n\n Cell cellDataTitolo = rowTitolo.createCell(0);\n cellDataTitolo.setCellValue(createHelper.createRichTextString(mioContext.getString(R.string.menu_esporta_tabellaPdf_colonnaData)));\n cellDataTitolo.setCellStyle(cellStyleTitoli);\n Cell cellVoceTitolo = rowTitolo.createCell(1);\n cellVoceTitolo.setCellValue(createHelper.createRichTextString(mioContext.getString(R.string.menu_esporta_tabellaPdf_colonnaVoce)));\n cellVoceTitolo.setCellStyle(cellStyleTitoli);\n Cell cellContoTitolo = rowTitolo.createCell(2);\n cellContoTitolo.setCellValue(createHelper.createRichTextString(mioContext.getString(R.string.menu_esporta_tabellaPdf_colonnaConto)));\n cellContoTitolo.setCellStyle(cellStyleTitoli);\n Cell cellImportoTitolo = rowTitolo.createCell(3);\n cellImportoTitolo.setCellValue(createHelper.createRichTextString(mioContext.getString(R.string.menu_esporta_tabellaPdf_colonnaImporto)));\n cellImportoTitolo.setCellStyle(cellStyleTitoli);\n Cell cellValutaTitolo = rowTitolo.createCell(4);\n cellValutaTitolo.setCellValue(createHelper.createRichTextString(mioContext.getString(R.string.menu_esporta_tabellaPdf_colonnaValuta)));\n cellValutaTitolo.setCellStyle(cellStyleTitoli);\n Cell cellImportoConvTitolo = rowTitolo.createCell(5);\n cellImportoConvTitolo.setCellValue(createHelper.createRichTextString(mioContext.getString(R.string.menu_esporta_tabellaPdf_colonnaImportoConv)));\n cellImportoConvTitolo.setCellStyle(cellStyleTitoli);\n Cell cellDescrizioneTitolo = rowTitolo.createCell(6);\n cellDescrizioneTitolo.setCellValue(createHelper.createRichTextString(mioContext.getString(R.string.menu_esporta_tabellaPdf_colonnaDescrizione)));\n cellDescrizioneTitolo.setCellStyle(cellStyleTitoli);\n\n //impostazione formati delle celle dei dati\n CellStyle cellStyleGenerico = wb.createCellStyle();\n cellStyleGenerico.setBorderBottom(CellStyle.BORDER_THIN);\n cellStyleGenerico.setBottomBorderColor(IndexedColors.BLACK.getIndex());\n cellStyleGenerico.setBorderLeft(CellStyle.BORDER_THIN);\n cellStyleGenerico.setLeftBorderColor(IndexedColors.BLACK.getIndex());\n cellStyleGenerico.setBorderRight(CellStyle.BORDER_THIN);\n cellStyleGenerico.setRightBorderColor(IndexedColors.BLACK.getIndex());\n cellStyleGenerico.setBorderTop(CellStyle.BORDER_THIN);\n cellStyleGenerico.setTopBorderColor(IndexedColors.BLACK.getIndex());\n\n DataFormat format = wb.createDataFormat();\n CellStyle cellStyleData = wb.createCellStyle();\n cellStyleData.setAlignment(CellStyle.ALIGN_CENTER);\n cellStyleData.setBorderBottom(CellStyle.BORDER_THIN);\n cellStyleData.setBottomBorderColor(IndexedColors.BLACK.getIndex());\n cellStyleData.setBorderLeft(CellStyle.BORDER_THIN);\n cellStyleData.setLeftBorderColor(IndexedColors.BLACK.getIndex());\n cellStyleData.setBorderRight(CellStyle.BORDER_THIN);\n cellStyleData.setRightBorderColor(IndexedColors.BLACK.getIndex());\n cellStyleData.setBorderTop(CellStyle.BORDER_THIN);\n cellStyleData.setTopBorderColor(IndexedColors.BLACK.getIndex());\n\n CellStyle cellStyleImporto = wb.createCellStyle();\n cellStyleImporto.setDataFormat(format.getFormat(\"#,##0.00\"));\n cellStyleImporto.setBorderBottom(CellStyle.BORDER_THIN);\n cellStyleImporto.setBottomBorderColor(IndexedColors.BLACK.getIndex());\n cellStyleImporto.setBorderLeft(CellStyle.BORDER_THIN);\n cellStyleImporto.setLeftBorderColor(IndexedColors.BLACK.getIndex());\n cellStyleImporto.setBorderRight(CellStyle.BORDER_THIN);\n cellStyleImporto.setRightBorderColor(IndexedColors.BLACK.getIndex());\n cellStyleImporto.setBorderTop(CellStyle.BORDER_THIN);\n cellStyleImporto.setTopBorderColor(IndexedColors.BLACK.getIndex());\n\n CellStyle cellStyleValuta = wb.createCellStyle();\n cellStyleValuta.setAlignment(CellStyle.ALIGN_CENTER);\n cellStyleValuta.setBorderBottom(CellStyle.BORDER_THIN);\n cellStyleValuta.setBottomBorderColor(IndexedColors.BLACK.getIndex());\n cellStyleValuta.setBorderLeft(CellStyle.BORDER_THIN);\n cellStyleValuta.setLeftBorderColor(IndexedColors.BLACK.getIndex());\n cellStyleValuta.setBorderRight(CellStyle.BORDER_THIN);\n cellStyleValuta.setRightBorderColor(IndexedColors.BLACK.getIndex());\n cellStyleValuta.setBorderTop(CellStyle.BORDER_THIN);\n cellStyleValuta.setTopBorderColor(IndexedColors.BLACK.getIndex());\n\n CellStyle cellStyleDescrizione = wb.createCellStyle();\n cellStyleDescrizione.setWrapText(true);\n cellStyleDescrizione.setBorderBottom(CellStyle.BORDER_THIN);\n cellStyleDescrizione.setBottomBorderColor(IndexedColors.BLACK.getIndex());\n cellStyleDescrizione.setBorderLeft(CellStyle.BORDER_THIN);\n cellStyleDescrizione.setLeftBorderColor(IndexedColors.BLACK.getIndex());\n cellStyleDescrizione.setBorderRight(CellStyle.BORDER_THIN);\n cellStyleDescrizione.setRightBorderColor(IndexedColors.BLACK.getIndex());\n cellStyleDescrizione.setBorderTop(CellStyle.BORDER_THIN);\n cellStyleDescrizione.setTopBorderColor(IndexedColors.BLACK.getIndex());\n\n\n int i = 0;\n while(curCSV.moveToNext())\n {\n Long data = curCSV.getLong(curCSV.getColumnIndex(\"data\"));\n String voce = curCSV.getString(curCSV.getColumnIndex(\"voce\"));\n String conto = curCSV.getString(curCSV.getColumnIndex(\"conto\"));\n Double importo = curCSV.getDouble(curCSV.getColumnIndex(\"importo\"));\n String valuta = curCSV.getString(curCSV.getColumnIndex(\"valuta\"));\n Double importoValprin = curCSV.getDouble(curCSV.getColumnIndex(\"importo_valprin\"));\n String descrizione = curCSV.getString(curCSV.getColumnIndex(\"descrizione\"));\n\n //creazione record\n i++;\n Row rowRecord = sheet.createRow((short)i);\n\n Cell cellData = rowRecord.createCell(0);\n cellData.setCellValue(createHelper.createRichTextString(df.format(new Date(data))));\n cellData.setCellStyle(cellStyleData);\n\n Cell cellVoce = rowRecord.createCell(1);\n cellVoce.setCellValue(createHelper.createRichTextString(voce));\n cellVoce.setCellStyle(cellStyleGenerico);\n\n Cell cellConto = rowRecord.createCell(2);\n cellConto.setCellValue(createHelper.createRichTextString(conto));\n cellConto.setCellStyle(cellStyleGenerico);\n\n Cell cellImporto = rowRecord.createCell(3);\n cellImporto.setCellValue(importo);\n cellImporto.setCellStyle(cellStyleImporto);\n\n Cell cellValuta = rowRecord.createCell(4);\n cellValuta.setCellValue(createHelper.createRichTextString(valuta));\n cellValuta.setCellStyle(cellStyleValuta);\n\n Cell cellImportoConv = rowRecord.createCell(5);\n cellImportoConv.setCellValue(importoValprin);\n cellImportoConv.setCellStyle(cellStyleImporto);\n\n Cell cellDescrizione = rowRecord.createCell(6);\n cellDescrizione.setCellValue(createHelper.createRichTextString(descrizione));\n cellDescrizione.setCellStyle(cellStyleDescrizione);\n }\n\n //formattazione tabella\n sheet.setColumnWidth(0, 3072);\n sheet.setColumnWidth(1, 6144);\n sheet.setColumnWidth(2, 5760);\n sheet.setColumnWidth(3, 3072);\n sheet.setColumnWidth(4, 3072);\n sheet.setColumnWidth(5, 4352);\n sheet.setColumnWidth(6, 8576);\n\n curCSV.close();\n dbcSpeseSostenute.close();\n }\n\n if(esportaEntrate) {\n DBCEntrateIncassate dbcEntrateIncassate = new DBCEntrateIncassate(mioContext);\n dbcEntrateIncassate.openLettura();\n Cursor curCSV = dbcEntrateIncassate.getEntrateIncassateIntervalloNoTrasf(dataInizio, dataFine, trasf); //considero tutti i conti\n\n //creazione foglio e riga titoli\n Sheet sheet = wb.createSheet(mioContext.getString(R.string.menu_esporta_XLS_nomeFoglioEntrate));\n Row rowTitolo = sheet.createRow((short)0);\n rowTitolo.setHeightInPoints(20);\n Font fontTitolo = wb.createFont();\n fontTitolo.setBoldweight(Font.BOLDWEIGHT_BOLD);\n\n CellStyle cellStyleTitoli = wb.createCellStyle();\n cellStyleTitoli.setBorderBottom(CellStyle.BORDER_THIN);\n cellStyleTitoli.setBottomBorderColor(IndexedColors.BLACK.getIndex());\n cellStyleTitoli.setBorderLeft(CellStyle.BORDER_THIN);\n cellStyleTitoli.setLeftBorderColor(IndexedColors.BLACK.getIndex());\n cellStyleTitoli.setBorderRight(CellStyle.BORDER_THIN);\n cellStyleTitoli.setRightBorderColor(IndexedColors.BLACK.getIndex());\n cellStyleTitoli.setBorderTop(CellStyle.BORDER_THIN);\n cellStyleTitoli.setTopBorderColor(IndexedColors.BLACK.getIndex());\n\n cellStyleTitoli.setAlignment(CellStyle.ALIGN_CENTER);\n cellStyleTitoli.setVerticalAlignment(CellStyle.VERTICAL_CENTER);\n cellStyleTitoli.setFillForegroundColor(IndexedColors.LIGHT_YELLOW.getIndex());\n cellStyleTitoli.setFillPattern((short) 1);\n cellStyleTitoli.setFont(fontTitolo);\n\n Cell cellDataTitolo = rowTitolo.createCell(0);\n cellDataTitolo.setCellValue(createHelper.createRichTextString(mioContext.getString(R.string.menu_esporta_tabellaPdf_colonnaData)));\n cellDataTitolo.setCellStyle(cellStyleTitoli);\n Cell cellVoceTitolo = rowTitolo.createCell(1);\n cellVoceTitolo.setCellValue(createHelper.createRichTextString(mioContext.getString(R.string.menu_esporta_tabellaPdf_colonnaVoce)));\n cellVoceTitolo.setCellStyle(cellStyleTitoli);\n Cell cellContoTitolo = rowTitolo.createCell(2);\n cellContoTitolo.setCellValue(createHelper.createRichTextString(mioContext.getString(R.string.menu_esporta_tabellaPdf_colonnaConto)));\n cellContoTitolo.setCellStyle(cellStyleTitoli);\n Cell cellImportoTitolo = rowTitolo.createCell(3);\n cellImportoTitolo.setCellValue(createHelper.createRichTextString(mioContext.getString(R.string.menu_esporta_tabellaPdf_colonnaImporto)));\n cellImportoTitolo.setCellStyle(cellStyleTitoli);\n Cell cellValutaTitolo = rowTitolo.createCell(4);\n cellValutaTitolo.setCellValue(createHelper.createRichTextString(mioContext.getString(R.string.menu_esporta_tabellaPdf_colonnaValuta)));\n cellValutaTitolo.setCellStyle(cellStyleTitoli);\n Cell cellImportoConvTitolo = rowTitolo.createCell(5);\n cellImportoConvTitolo.setCellValue(createHelper.createRichTextString(mioContext.getString(R.string.menu_esporta_tabellaPdf_colonnaImportoConv)));\n cellImportoConvTitolo.setCellStyle(cellStyleTitoli);\n Cell cellDescrizioneTitolo = rowTitolo.createCell(6);\n cellDescrizioneTitolo.setCellValue(createHelper.createRichTextString(mioContext.getString(R.string.menu_esporta_tabellaPdf_colonnaDescrizione)));\n cellDescrizioneTitolo.setCellStyle(cellStyleTitoli);\n\n //impostazione formati delle celle dei dati\n CellStyle cellStyleGenerico = wb.createCellStyle();\n cellStyleGenerico.setBorderBottom(CellStyle.BORDER_THIN);\n cellStyleGenerico.setBottomBorderColor(IndexedColors.BLACK.getIndex());\n cellStyleGenerico.setBorderLeft(CellStyle.BORDER_THIN);\n cellStyleGenerico.setLeftBorderColor(IndexedColors.BLACK.getIndex());\n cellStyleGenerico.setBorderRight(CellStyle.BORDER_THIN);\n cellStyleGenerico.setRightBorderColor(IndexedColors.BLACK.getIndex());\n cellStyleGenerico.setBorderTop(CellStyle.BORDER_THIN);\n cellStyleGenerico.setTopBorderColor(IndexedColors.BLACK.getIndex());\n\n DataFormat format = wb.createDataFormat();\n CellStyle cellStyleData = wb.createCellStyle();\n cellStyleData.setAlignment(CellStyle.ALIGN_CENTER);\n cellStyleData.setBorderBottom(CellStyle.BORDER_THIN);\n cellStyleData.setBottomBorderColor(IndexedColors.BLACK.getIndex());\n cellStyleData.setBorderLeft(CellStyle.BORDER_THIN);\n cellStyleData.setLeftBorderColor(IndexedColors.BLACK.getIndex());\n cellStyleData.setBorderRight(CellStyle.BORDER_THIN);\n cellStyleData.setRightBorderColor(IndexedColors.BLACK.getIndex());\n cellStyleData.setBorderTop(CellStyle.BORDER_THIN);\n cellStyleData.setTopBorderColor(IndexedColors.BLACK.getIndex());\n\n CellStyle cellStyleImporto = wb.createCellStyle();\n cellStyleImporto.setDataFormat(format.getFormat(\"#,##0.00\"));\n cellStyleImporto.setBorderBottom(CellStyle.BORDER_THIN);\n cellStyleImporto.setBottomBorderColor(IndexedColors.BLACK.getIndex());\n cellStyleImporto.setBorderLeft(CellStyle.BORDER_THIN);\n cellStyleImporto.setLeftBorderColor(IndexedColors.BLACK.getIndex());\n cellStyleImporto.setBorderRight(CellStyle.BORDER_THIN);\n cellStyleImporto.setRightBorderColor(IndexedColors.BLACK.getIndex());\n cellStyleImporto.setBorderTop(CellStyle.BORDER_THIN);\n cellStyleImporto.setTopBorderColor(IndexedColors.BLACK.getIndex());\n\n CellStyle cellStyleValuta = wb.createCellStyle();\n cellStyleValuta.setAlignment(CellStyle.ALIGN_CENTER);\n cellStyleValuta.setBorderBottom(CellStyle.BORDER_THIN);\n cellStyleValuta.setBottomBorderColor(IndexedColors.BLACK.getIndex());\n cellStyleValuta.setBorderLeft(CellStyle.BORDER_THIN);\n cellStyleValuta.setLeftBorderColor(IndexedColors.BLACK.getIndex());\n cellStyleValuta.setBorderRight(CellStyle.BORDER_THIN);\n cellStyleValuta.setRightBorderColor(IndexedColors.BLACK.getIndex());\n cellStyleValuta.setBorderTop(CellStyle.BORDER_THIN);\n cellStyleValuta.setTopBorderColor(IndexedColors.BLACK.getIndex());\n\n CellStyle cellStyleDescrizione = wb.createCellStyle();\n cellStyleDescrizione.setWrapText(true);\n cellStyleDescrizione.setBorderBottom(CellStyle.BORDER_THIN);\n cellStyleDescrizione.setBottomBorderColor(IndexedColors.BLACK.getIndex());\n cellStyleDescrizione.setBorderLeft(CellStyle.BORDER_THIN);\n cellStyleDescrizione.setLeftBorderColor(IndexedColors.BLACK.getIndex());\n cellStyleDescrizione.setBorderRight(CellStyle.BORDER_THIN);\n cellStyleDescrizione.setRightBorderColor(IndexedColors.BLACK.getIndex());\n cellStyleDescrizione.setBorderTop(CellStyle.BORDER_THIN);\n cellStyleDescrizione.setTopBorderColor(IndexedColors.BLACK.getIndex());\n\n int i = 0;\n while(curCSV.moveToNext())\n {\n Long data = curCSV.getLong(curCSV.getColumnIndex(\"data\"));\n String voce = curCSV.getString(curCSV.getColumnIndex(\"voce\"));\n String conto = curCSV.getString(curCSV.getColumnIndex(\"conto\"));\n Double importo = curCSV.getDouble(curCSV.getColumnIndex(\"importo\"));\n String valuta = curCSV.getString(curCSV.getColumnIndex(\"valuta\"));\n Double importoValprin = curCSV.getDouble(curCSV.getColumnIndex(\"importo_valprin\"));\n String descrizione = curCSV.getString(curCSV.getColumnIndex(\"descrizione\"));\n\n //creazione record\n i++;\n Row rowRecord = sheet.createRow((short)i);\n\n Cell cellData = rowRecord.createCell(0);\n cellData.setCellValue(createHelper.createRichTextString(df.format(new Date(data))));\n cellData.setCellStyle(cellStyleData);\n\n Cell cellVoce = rowRecord.createCell(1);\n cellVoce.setCellValue(createHelper.createRichTextString(voce));\n cellVoce.setCellStyle(cellStyleGenerico);\n\n Cell cellConto = rowRecord.createCell(2);\n cellConto.setCellValue(createHelper.createRichTextString(conto));\n cellConto.setCellStyle(cellStyleGenerico);\n\n Cell cellImporto = rowRecord.createCell(3);\n cellImporto.setCellValue(importo);\n cellImporto.setCellStyle(cellStyleImporto);\n\n Cell cellValuta = rowRecord.createCell(4);\n cellValuta.setCellValue(createHelper.createRichTextString(valuta));\n cellValuta.setCellStyle(cellStyleValuta);\n\n Cell cellImportoConv = rowRecord.createCell(5);\n cellImportoConv.setCellValue(importoValprin);\n cellImportoConv.setCellStyle(cellStyleImporto);\n\n Cell cellDescrizione = rowRecord.createCell(6);\n cellDescrizione.setCellValue(createHelper.createRichTextString(descrizione));\n cellDescrizione.setCellStyle(cellStyleDescrizione);\n }\n\n //formattazione tabella\n sheet.setColumnWidth(0, 3072);\n sheet.setColumnWidth(1, 6144);\n sheet.setColumnWidth(2, 5760);\n sheet.setColumnWidth(3, 3072);\n sheet.setColumnWidth(4, 3072);\n sheet.setColumnWidth(5, 4352);\n sheet.setColumnWidth(6, 8576);\n\n curCSV.close();\n dbcEntrateIncassate.close();\n }\n\n //foglio finale con info\n Sheet sheetFinale = wb.createSheet(\"Info\");\n\n //cell style for hyperlinks\n CellStyle hlink_style = wb.createCellStyle();\n Font hlink_font = wb.createFont();\n hlink_font.setUnderline(Font.U_SINGLE);\n hlink_font.setColor(IndexedColors.BLUE.getIndex());\n hlink_style.setFont(hlink_font);\n\n //cell style per nome app e citazione\n Font fontNome = wb.createFont();\n fontNome.setBoldweight(Font.BOLDWEIGHT_BOLD);\n CellStyle cellStyleNome = wb.createCellStyle();\n cellStyleNome.setAlignment(CellStyle.ALIGN_CENTER);\n cellStyleNome.setVerticalAlignment(CellStyle.VERTICAL_CENTER);\n cellStyleNome.setFillForegroundColor(IndexedColors.LIGHT_YELLOW.getIndex());\n cellStyleNome.setFillPattern((short) 1);\n cellStyleNome.setFont(fontNome);\n\n Font fontCitazione = wb.createFont();\n fontCitazione.setItalic(true);\n fontCitazione.setFontHeightInPoints((short) 10);\n CellStyle cellStyleCitazione = wb.createCellStyle();\n cellStyleCitazione.setAlignment(CellStyle.ALIGN_CENTER);\n cellStyleCitazione.setFont(fontCitazione);\n\n //info\n Row rowNome = sheetFinale.createRow(0);\n rowNome.setHeightInPoints(20);\n Cell cellNome = rowNome.createCell((short)0);\n cellNome.setCellValue(\"PERSONAL BUDGET APP - FLING SOFWAREŠ\");\n cellNome.setCellStyle(cellStyleNome);\n\n Cell citazioneCell = sheetFinale.createRow(1).createCell((short)0);\n citazioneCell.setCellValue(mioContext.getString(R.string.generale_citazione) + \" \" + mioContext.getString(R.string.generale_citazioneAutore));\n citazioneCell.setCellStyle(cellStyleCitazione);\n\n Cell websiteCell = sheetFinale.createRow(2).createCell((short)0);\n websiteCell.setCellValue(\"Visit Website\");\n Hyperlink mioLink = createHelper.createHyperlink(Hyperlink.LINK_URL);\n mioLink.setAddress(\"https://www.facebook.com/personalbudgetapp\");\n websiteCell.setHyperlink((org.apache.poi.ss.usermodel.Hyperlink) mioLink);\n websiteCell.setCellStyle(hlink_style);\n\n Cell googlePlayCell = sheetFinale.createRow(3).createCell((short)0);\n googlePlayCell.setCellValue(\"Google Play\");\n Hyperlink mioLink2 = createHelper.createHyperlink(Hyperlink.LINK_URL);\n mioLink2.setAddress(\"https://play.google.com/store/apps/developer?id=Fling%20Software%C2%A9&hl=it\");\n googlePlayCell.setHyperlink((org.apache.poi.ss.usermodel.Hyperlink) mioLink2);\n googlePlayCell.setCellStyle(hlink_style);\n\n sheetFinale.setColumnWidth(0, 22500);\n\n fileOut = new FileOutputStream(file);\n wb.write(fileOut);\n }\n catch(Exception exc)\n {\n exc.printStackTrace();\n return false;\n }\n finally {\n try {\n if(fileOut != null) {\n fileOut.close();\n }\n }\n catch(IOException exc) {\n exc.printStackTrace();\n return false;\n }\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "0ecab8b3b2a47628132daaf2ceeab1d6", "score": "0.5920962", "text": "public void inserData(int id,String cato, String name, String range,Double price, String reco, String path) throws BiffException{\n try { \n \n Workbook wb = Workbook.getWorkbook(new File(path));\n \n WritableWorkbook myexcel = Workbook.createWorkbook(new File(path),wb);\n \n WritableSheet mysheet = myexcel.getSheet(0);\n int row = mysheet.getRows();\n // adding data to labels\n Label l1 = new Label(0,row,String.valueOf(id));\n Label l2 = new Label(1,row,cato);\n Label l3 = new Label(2,row,name);\n Label l4 = new Label(3,row,range);\n Label l5 = new Label(4,row,String.valueOf(price));\n Label l6 = new Label(5,row,reco);\n \n //adding labels to the Cells in Workbook\n mysheet.addCell(l1);\n mysheet.addCell(l2);\n mysheet.addCell(l3);\n mysheet.addCell(l4);\n mysheet.addCell(l5);\n mysheet.addCell(l6);\n \n myexcel.write();\n myexcel.close();\n \n this.clearData(); // Call for clearing data from the form!!\n \n JOptionPane.showMessageDialog(null, \" Data Added Successfully!!\");\n\n } catch (IOException ex) {\n Logger.getLogger(First_Interface.class.getName()).log(Level.SEVERE, null, ex);\n } catch (WriteException ex) {\n Logger.getLogger(First_Interface.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "title": "" }, { "docid": "e663f980a1f4a035dea3628a2e828da3", "score": "0.5917395", "text": "public static void main(String[] args) throws Exception {\n Connection con = Connection();\n\n // Getting data from the tavke emp_tbl\n Statement st = con.createStatement();\n ResultSet rs = st.executeQuery(\"select * from tickettable\");\n\n //Creating a work book\n XSSFWorkbook workbook = new XSSFWorkbook();\n\n //creating a Spread Sheets\n XSSFSheet spreadsheet = workbook.createSheet(\"Ticket db\");\n XSSFRow row = spreadsheet.createRow(1);\n XSSFCell cell;\n\n cell = row.createCell(1);\n cell.setCellValue(\"Ticket ID\");\n\n cell = row.createCell(2);\n cell.setCellValue(\"Ticket Login\");\n\n cell = row.createCell(3);\n cell.setCellValue(\"Ticket Password\");\n\n cell = row.createCell(4);\n cell.setCellValue(\"Ticket Minute\");\n\n cell = row.createCell(5);\n cell.setCellValue(\"Ticket Price\");\n\n int i = 2;\n\n while (rs.next()) {\n row = spreadsheet.createRow(i);\n\n cell = row.createCell(1);\n cell.setCellValue(rs.getString(\"TicketID\"));\n\n cell = row.createCell(2);\n cell.setCellValue(rs.getString(\"TicketLogin\"));\n\n cell = row.createCell(3);\n cell.setCellValue(rs.getString(\"TicketPassword\"));\n\n cell = row.createCell(4);\n cell.setCellValue(rs.getString(\"TicketPeriod\"));\n\n cell = row.createCell(5);\n cell.setCellValue(rs.getString(\"Price\"));\n\n i++;\n\n }\n\n try (FileOutputStream out = new FileOutputStream(new File(\"D:\\\\xcell.xlsx\"))) {\n workbook.write(out);\n }\n\n System.out.print(\"File created successfully\");\n }", "title": "" }, { "docid": "f1095a153180130c251f6934c59e25b6", "score": "0.590786", "text": "public static void main(String[] args) throws IOException {\nString valueToWrite[]={\"Zurich\",\"dhgdhd\"};\nWriteData we =new WriteData();\nString filepath=\"C:\\\\Users\\\\Deccansoft6\\\\Desktop\";\nwe.writeExel(\"TestCase.xlsx\", \"Sheet1\", filepath, valueToWrite);\n}", "title": "" }, { "docid": "3b531c23f34d6ed527fe90d37e17a174", "score": "0.58900476", "text": "private void createObjectCompareDetailSheet(Workbook wb, ObjectCompare oc, String src, String target)\r\n\t {\r\n\t\t Map<String, CellStyle> styles = XLSDocumentManager.createStyles(wb);\r\n\t\t // Create new Sheet\r\n\t\t String sheet_name = this.getMessageSource(\"label.title.apex.class.list\", \"Object Compare Result\");\r\n\t\t Sheet sheet = wb.createSheet(sheet_name);\r\n\t\t // Create header row with header columns\r\n\t\t Row hrow_0 = sheet.createRow((short)0);\r\n\t\t // Create Source Object Field headers\r\n\t\t hrow_0.createCell(0).setCellValue(this.getMessageSource(\"label.object.name\",\"Object Name:\"));\r\n\t\t hrow_0.getCell(0).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\t\t hrow_0.createCell(1).setCellValue(oc.getSobjectName() + \" - \" + oc.getSobjectLabel());\r\n\t\t hrow_0.getCell(1).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\t\t \r\n\t\t Row hrow_1 = sheet.createRow((short)1);\r\n\t\t hrow_1.createCell(0).setCellValue(this.getMessageSource(\"label.source.user\",\"Source Org User:\"));\r\n\t\t hrow_1.getCell(0).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\t\t hrow_1.createCell(1).setCellValue(src);\r\n\t\t hrow_1.getCell(1).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\t\t hrow_1.createCell(2).setCellValue(\"\");\r\n\t\t hrow_1.getCell(2).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\t\t hrow_1.createCell(3).setCellValue(\"\");\r\n\t\t hrow_1.getCell(3).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\t\t hrow_1.createCell(4).setCellValue(\"\");\r\n\t\t hrow_1.getCell(4).setCellStyle(styles.get(\"header\"));\t //$NON-NLS-1$\r\n\t\t hrow_1.createCell(5).setCellValue(\"\");\r\n\t\t hrow_1.getCell(5).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\t\t hrow_1.createCell(6).setCellValue(\"\");\r\n\t\t hrow_1.getCell(6).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\t\r\n\t\t hrow_1.createCell(7).setCellValue(this.getMessageSource(\"label.target.user\",\"Target Org User:\"));\r\n\t\t hrow_1.getCell(7).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\t\t hrow_1.createCell(8).setCellValue(target);\r\n\t\t hrow_1.getCell(8).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\t\t \r\n\t\t Row hrow = sheet.createRow((short)2);\r\n\t\t // Create Source Object Field headers\r\n\t\t hrow.createCell(0).setCellValue(this.getMessageSource(\"label.column.no\",\"No.\"));\r\n\t\t hrow.getCell(0).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\r\n\t\t hrow.createCell(1).setCellValue(this.getMessageSource(\"label.column.api.name\",\"API name\"));\r\n\t\t hrow.getCell(1).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\r\n\t\t hrow.createCell(2).setCellValue(this.getMessageSource(\"label.column.type\",\"Type\"));\r\n\t\t hrow.getCell(2).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\r\n\t\t hrow.createCell(3).setCellValue(this.getMessageSource(\"label.column.label\",\"Label\"));\r\n\t\t hrow.getCell(3).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\r\n\t\t hrow.createCell(4).setCellValue(this.getMessageSource(\"label.column.related\",\"Related\"));\r\n\t\t hrow.getCell(4).setCellStyle(styles.get(\"header\"));\t //$NON-NLS-1$\r\n\r\n\t\t hrow.createCell(5).setCellValue(this.getMessageSource(\"label.column.size\",\"Size\"));\r\n\t\t hrow.getCell(5).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\r\n\t\t hrow.createCell(6).setCellValue(this.getMessageSource(\"label.column.desc\",\"Desc\"));\r\n\t\t hrow.getCell(6).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\r\n\t\t \r\n\t\t // Create target Object Field headers\r\n\t\t hrow.createCell(7).setCellValue(this.getMessageSource(\"label.column.no\",\"No.\"));\r\n\t\t hrow.getCell(7).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\r\n\t\t hrow.createCell(8).setCellValue(this.getMessageSource(\"label.column.api.name\",\"API name\"));\r\n\t\t hrow.getCell(8).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\r\n\t\t hrow.createCell(9).setCellValue(this.getMessageSource(\"label.column.type\",\"Type\"));\r\n\t\t hrow.getCell(9).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\r\n\t\t hrow.createCell(10).setCellValue(this.getMessageSource(\"label.column.label\",\"Label\"));\r\n\t\t hrow.getCell(10).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\r\n\t\t hrow.createCell(11).setCellValue(this.getMessageSource(\"label.column.related\",\"Related\"));\r\n\t\t hrow.getCell(11).setCellStyle(styles.get(\"header\"));\t //$NON-NLS-1$\r\n\r\n\t\t hrow.createCell(12).setCellValue(this.getMessageSource(\"label.column.size\",\"Size\"));\r\n\t\t hrow.getCell(12).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\r\n\t\t hrow.createCell(13).setCellValue(this.getMessageSource(\"label.column.desc\",\"Desc\"));\r\n\t\t hrow.getCell(13).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\t\t \r\n\t\t \r\n\t\t // Get results\t\r\n\t\t ArrayList<SFObjectFieldsMerge> diplay_list = oc.getMergeResult();\r\n\t\t for (int i = 0; i < diplay_list.size(); i++){\r\n\r\n\t\t\t SFObjectFieldsMerge obj_info = (SFObjectFieldsMerge)diplay_list.get(i);\r\n\r\n\t\t\t // Create a row and put some cells in it. Rows are 0 based.\r\n\t\t\t Row row = sheet.createRow((short)i+3);\r\n\r\n\t\t\t \r\n\t\t\t \r\n\t\t\t \r\n\t\t\t row.createCell(0).setCellValue(obj_info.getSource_obj().getCounter());\r\n\t\t\t \r\n\t\t\t if (!obj_info.getSource_obj().isMatch()){\r\n\t\t\t\t // Accent field name cell to show different fields\r\n\t\t\t\t row.createCell(1).setCellValue(obj_info.getSource_obj().getFldName());\r\n\t\t\t\t row.getCell(1).setCellStyle(styles.get(\"cell_color\")); //$NON-NLS-1$\r\n\t\t\t }else{\r\n\t\t\t\t row.createCell(1).setCellValue(obj_info.getSource_obj().getFldName()); \r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t row.createCell(2).setCellValue(obj_info.getSource_obj().getTypeName());\r\n\t\t\t row.createCell(3).setCellValue(obj_info.getSource_obj().getLableName());\r\n\t\t\t row.createCell(4).setCellValue(obj_info.getSource_obj().getRelationName());\r\n\t\t\t row.createCell(5).setCellValue(obj_info.getSource_obj().getLength());\r\n\t\t\t row.createCell(6).setCellValue(obj_info.getSource_obj().getHelpText());\r\n\t\t\t row.createCell(7).setCellValue(obj_info.getTarget_obj().getCounter());\r\n\r\n\t\t\t if (!obj_info.getTarget_obj().isMatch()){\r\n\t\t\t\t // Accent field name cell to show different fields\r\n\t\t\t\t row.createCell(8).setCellValue(obj_info.getTarget_obj().getFldName());\r\n\t\t\t\t row.getCell(8).setCellStyle(styles.get(\"cell_color\")); //$NON-NLS-1$\r\n\t\t\t }else{\r\n\t\t\t\t row.createCell(8).setCellValue(obj_info.getTarget_obj().getFldName()); \r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t row.createCell(9).setCellValue(obj_info.getTarget_obj().getTypeName());\t\t\t \r\n\t\t\t row.createCell(10).setCellValue(obj_info.getTarget_obj().getLableName());\r\n\t\t\t row.createCell(11).setCellValue(obj_info.getTarget_obj().getRelationName());\r\n\t\t\t row.createCell(12).setCellValue(obj_info.getTarget_obj().getLength());\r\n\t\t\t row.createCell(13).setCellValue(obj_info.getTarget_obj().getHelpText());\r\n\r\n\t\t }\r\n\t\t \r\n\t\t sheet.setDefaultColumnWidth(50);\r\n\t\t sheet.setColumnWidth(0, 1500);\r\n\t\t sheet.setColumnWidth(2, 3000);\r\n\t\t sheet.setColumnWidth(3, 3000);\r\n\t\t sheet.setColumnWidth(6, 3000);\r\n\t\t sheet.setColumnWidth(7, 1500);\r\n\t\t sheet.setColumnWidth(9, 3000);\r\n\t\t sheet.setColumnWidth(10, 3000);\r\n\t\t sheet.setColumnWidth(11, 3000);\r\n\t\t sheet.setColumnWidth(12, 3000);\r\n\t\t \r\n\t }", "title": "" }, { "docid": "d5df25340e0edd3ab58c6950ccb099f5", "score": "0.587939", "text": "public Workbook createApexComponentReportWorkbook(ArrayList<SFComponent> componentList){\r\n\t\tWorkbook wb = new HSSFWorkbook();\r\n\t\tthis.createApexComponentListSheet(wb, componentList);\r\n\t\treturn wb;\r\n\t}", "title": "" }, { "docid": "eab4dbbbd334b32aff89d484c0c7e5e0", "score": "0.58774436", "text": "private void createApexPageListSheet(Workbook wb, ArrayList<SFApexPage> pageList){\r\n\t\t Map<String, CellStyle> styles = XLSDocumentManager.createStyles(wb);\r\n\t\t // Create new Sheet\r\n\t\t //CreationHelper createHelper = wb.getCreationHelper();\r\n\t\t String sheet_name = this.getMessageSource(\"label.title.apex.page.list\", \"Apex Page List\");\r\n\t\t Sheet sheet = wb.createSheet(sheet_name);\r\n\t\t // Create header row with header columns\r\n\t\t Row hrow = sheet.createRow((short)0);\r\n\t\t hrow.createCell(0).setCellValue(this.getMessageSource(\"label.column.no\",\"No.\"));\r\n\t\t hrow.getCell(0).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\t\t hrow.createCell(1).setCellValue(this.getMessageSource(\"label.column.name\",\"Name\"));\r\n\t\t hrow.getCell(1).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\t\t hrow.createCell(2).setCellValue(this.getMessageSource(\"label.column.id\",\"ID\"));\r\n\t\t hrow.getCell(2).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\t\t hrow.createCell(3).setCellValue(this.getMessageSource(\"label.column.desc\",\"Desc\"));\r\n\t\t hrow.getCell(3).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\t\r\n\t\t hrow.createCell(4).setCellValue(this.getMessageSource(\"label.column.length\",\"Length\"));\r\n\t\t hrow.getCell(4).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\t\t hrow.createCell(5).setCellValue(this.getMessageSource(\"label.column.content.type\",\"Content Type\"));\r\n\t\t hrow.getCell(5).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\t\t hrow.createCell(6).setCellValue(this.getMessageSource(\"label.column.cache.control\",\"Cache Control\"));\r\n\t\t hrow.getCell(6).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\t\t hrow.createCell(7).setCellValue(this.getMessageSource(\"label.column.api.version\",\"API Version\"));\r\n\t\t hrow.getCell(7).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\t\t hrow.createCell(8).setCellValue(this.getMessageSource(\"label.column.namespace.prefix\",\"Prefix\"));\r\n\t\t hrow.getCell(8).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\t\t hrow.createCell(9).setCellValue(this.getMessageSource(\"label.column.created.by\",\"CreatedBy\"));\r\n\t\t hrow.getCell(9).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\t\t hrow.createCell(10).setCellValue(this.getMessageSource(\"label.column.date.change\",\"Date Change\"));\r\n\t\t hrow.getCell(10).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\r\n\t\t for (int i = 0; i < pageList.size(); i++){\r\n\t\t\t SFApexPage apex_page_info = (SFApexPage)pageList.get(i);\r\n\r\n\t\t\t // Create a row and put some cells in it. Rows are 0 based.\r\n\t\t\t Row row = sheet.createRow((short)i+1);\r\n\r\n\t\t\t row.createCell(0).setCellValue(i);\r\n\t\t\t row.createCell(1).setCellValue(apex_page_info.getName());\r\n\t\t\t row.createCell(2).setCellValue(apex_page_info.getId());\r\n\t\t\t row.createCell(3).setCellValue(apex_page_info.getDescription());\r\n\t\t\t \r\n\t\t\t row.createCell(4).setCellValue(apex_page_info.getLength());\r\n\t\t\t row.createCell(5).setCellValue(apex_page_info.getContentType());\r\n\t\t\t row.createCell(6).setCellValue(apex_page_info.getCacheControll());\r\n\t\t\t \r\n\t\t\t row.createCell(7).setCellValue(apex_page_info.getApiVersion());\r\n\t\t\t row.createCell(8).setCellValue(apex_page_info.getNamespacePrefix());\r\n\t\t\t row.createCell(9).setCellValue(apex_page_info.getCreatedByName());\r\n\t\t\t row.createCell(10).setCellValue(apex_page_info.getStringLastModifiedDate());\r\n\t\t }\r\n\t\t // Control column width\r\n\t\t sheet.setDefaultColumnWidth(50);\r\n\t\t sheet.setColumnWidth(0, 1500);\r\n\t\t sheet.setColumnWidth(2, 2000);\r\n\t\t sheet.setColumnWidth(3, 3000);\r\n\t\t sheet.setColumnWidth(4, 2000);\t \r\n\t }", "title": "" }, { "docid": "e0a2680c9c4e9464316fa3190ac02244", "score": "0.5871819", "text": "public void writeSingleToDoExcel() {\n }", "title": "" }, { "docid": "4147fc6ec1ed190ce4a502d356d711ad", "score": "0.58610475", "text": "void writeOutputToFile(TreeMap<Integer, ArrayList<Object>> dataGathered, String excelName) throws IOException {\n //blank workbook\n XSSFWorkbook workbook = new XSSFWorkbook();\n //blank sheet\n XSSFSheet spreadSheet = workbook.createSheet(\"Output\");\n //Create row object\n XSSFRow row;\n\n //Iterate over data and write\n int rowid = 0;\n\n for (int id : dataGathered.keySet()) {\n row = spreadSheet.createRow(rowid++);\n List list = dataGathered.get(id);\n int cellId = 0;\n for (Object obj : list) {\n Cell cell = row.createCell(cellId++);\n if (obj instanceof String) {\n cell.setCellValue((String) obj);\n } else if (obj instanceof Double) {\n cell.setCellValue((Double) obj);\n } else if (obj instanceof Integer) {\n cell.setCellValue((Integer) obj);\n }\n }\n }\n\n //Write the workbook info in the file system\n\n FileOutputStream out = new FileOutputStream(new File(\"./\" + excelName));\n workbook.write(out);\n out.close();\n workbook.close();\n\n }", "title": "" }, { "docid": "03fd6163db14db098f2c7a788ff8046c", "score": "0.5849925", "text": "private void createExcelSheetWithData(String excelFilePath, List<List<String>> dataList)\n\t{\n\t\tif(excelFilePath!=null && !\"\".equals(excelFilePath.trim()))\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t/* Open the exist file input stream. */\n\t\t\t\tFileInputStream fis = new FileInputStream(excelFilePath.trim());\n\t\n\t\t\t\t/* Get workbook. */\n\t\t\t\tWorkbook wookBook = new XSSFWorkbook(fis);\n\t\t\t\t\n\t\t\t\t/* Declare the new excel sheet. */\n\t\t\t\tSheet newSheet = null;\n\t\t\t\t\n\t\t\t\t/* Get workbook sheet iterator. */\n\t\t\t\tIterator sheetIterator = ((Iterable<Cell>) wookBook).iterator();\n\t\t\t\t\n\t\t\t\t/* If has existing sheet. */\n\t\t\t\tif(sheetIterator.hasNext())\n\t\t\t\t{\n\t\t\t\t\tnewSheet = wookBook.cloneSheet(0);\n\t\t\t\t\t\n\t\t\t\t\t/* Select this new cloned sheet. */\n\t\t\t\t\tnewSheet.setSelected(true);\n\t\t\t\t\t\n\t\t\t\t\t/* Because this is a cloned sheet, should remove all the cloned rows in it. */\n\t\t\t\t\tIterator<Row> rowIterator = newSheet.iterator();\n\t\t\t\t\twhile(rowIterator.hasNext())\n\t\t\t\t\t{\n\t\t\t\t\t\t// Get the clone row.\n\t\t\t\t\t\tRow cloneRow = rowIterator.next();\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Remove the clone row.\n\t\t\t\t\t\tnewSheet.removeRow(cloneRow);\n\t\t\t\t\t\t\n\t\t\t\t\t\t/* Because after remove the clone row, the iterator changed, \n\t\t\t\t\t\t * so get it again, else java.util.ConcurrentModificationException will be thrown .*/\n\t\t\t\t\t\trowIterator = newSheet.iterator();\n\t\t\t\t\t}\n\t\t\t\t}else\n\t\t\t\t{\n\t\t\t\t\tnewSheet = wookBook.createSheet(\"New Sheet\");\n\t\t\t\t}\n\t\n\t\t\t\t/* Create header row. */\n//\t\t\t\tRow headerRow = newSheet.createRow(0);\n//\t\t\t\t\n//\t\t\t\theaderRow.createCell(0).setCellValue(\"Name\");\n//\t\t\t\theaderRow.createCell(1).setCellValue(\"Password\");\n//\t\t\t\theaderRow.createCell(2).setCellValue(\"Email\");\n//\t\t\t\theaderRow.createCell(3).setCellValue(\"Age\");\n//\t\t\t\theaderRow.createCell(4).setCellValue(\"Department\");\n//\t\t\t\theaderRow.createCell(5).setCellValue(\"Skill\");\n\t\t\t\t\n\t\n\t\t\t\t/* Loop in the row data list, add each row data into the new sheet. */\n\t\t\t\tif(dataList!=null)\n\t\t\t\t{\n\t\t\t\t\tint size = dataList.size();\n\t\t\t\t\tfor(int i=0;i<size;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tList<String> cellDataList = dataList.get(i);\n\t\t\t\t\t\t\n\t\t\t\t\t\t/* Create row to save the copied data. */\n\t\t\t\t\t\tRow row = newSheet.createRow(i+1);\n\t\t\t\t\t\t\n\t\t\t\t\t\tint columnNumber = cellDataList.size();\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor(int j=0;j<columnNumber;j++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tString cellValue = cellDataList.get(j);\n\t\t\t\t\t\t\trow.createCell(j).setCellValue(cellValue);\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\t/* Write the new sheet data to excel file */\n\t\t\t\tFileOutputStream fOut = new FileOutputStream(excelFilePath);\n\t\t\t\twookBook.write(fOut);\n\t\t\t\tfOut.close();\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"New sheet added in excel file \" + excelFilePath + \" successfully. \");\n\t\t\t}catch(Exception ex)\n\t\t\t{\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "52a41a122fa42f96e01c436d462f7023", "score": "0.5843414", "text": "public static void main(String[] args) throws IOException {\r\n\t\tFileInputStream f=new FileInputStream(\"D:\\\\selenium_november\\\\BASIC_SELENIUM\\\\test.xlsx\");\r\n\t\tXSSFWorkbook w=new XSSFWorkbook(f);\r\n\t\tXSSFSheet s=w.getSheet(\"Sheet1\");\r\n\t\tXSSFRow r=s.getRow(2);\r\n\t\tf.close();\r\n\t\tFileOutputStream fos=new FileOutputStream(\"D:\\\\selenium_november\\\\BASIC_SELENIUM\\\\test.xlsx\");\r\n\t\tr.createCell(5).setCellValue(\"m r reddy \");\r\n\t\tw.write(fos);\r\n\t\tfos.close();\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "db34fff9e4444e7d79f2e22c3a48ee09", "score": "0.5827328", "text": "@Override\n\tprotected void buildExcelDocument(Map<String, Object> model, Workbook workbook, HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws Exception {\n\t\tresponse.setHeader(\"Content-Disposition\", \"attachment;filename=\\\"users.xlsx\\\"\");\n\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<User> users = (List<User>) model.get(\"users\");\n\t\tSheet sheet = workbook.createSheet(\"Users Data\");\n\t\tRow header = sheet.createRow(0);\n\t\theader.createCell(0).setCellValue(\"id\");\n\t\theader.createCell(1).setCellValue(\"fullname\");\n\t\theader.createCell(2).setCellValue(\"username\");\n\t\theader.createCell(3).setCellValue(\"email\");\n\t\theader.createCell(4).setCellValue(\"avatar\");\n\t\theader.createCell(5).setCellValue(\"phone\");\n\t\theader.createCell(6).setCellValue(\"address\");\n\t\theader.createCell(7).setCellValue(\"password\");\n\t\theader.createCell(8).setCellValue(\"create_time\");\n\t\theader.createCell(9).setCellValue(\"update_time\");\n\t\theader.createCell(10).setCellValue(\"delete_time\");\n\n\t\tDateTimeUtils dateTimeUtils = new DateTimeUtils();\n\t\tint rowNum = 1;\n\t\tfor (User user : users) {\n\t\t\tRow row = sheet.createRow(rowNum++);\n\t\t\trow.createCell(0).setCellValue(user.getId());\n\t\t\trow.createCell(1).setCellValue(user.getFullname());\n\t\t\trow.createCell(2).setCellValue(user.getUsername());\n\t\t\trow.createCell(3).setCellValue(user.getEmail());\n\t\t\trow.createCell(4).setCellValue(user.getAvatar());\n\t\t\trow.createCell(5).setCellValue(user.getPhone());\n\t\t\trow.createCell(6).setCellValue(user.getAddress());\n\t\t\trow.createCell(7).setCellValue(user.getPassword());\n\t\t\trow.createCell(8).setCellValue(dateTimeUtils.convertDateTime(user.getCreate_time()));\n\t\t\trow.createCell(9).setCellValue(dateTimeUtils.convertDateTime(user.getUpdate_time()));\n\t\t\trow.createCell(10).setCellValue(dateTimeUtils.convertDateTime(user.getDelete_time()));\n\t\t}\n\t}", "title": "" }, { "docid": "c72eb072fef5e57f3a2b340354dfb9d1", "score": "0.5826551", "text": "public Workbook create(InputStream inp) throws IOException,\n\t\t\tInvalidFormatException {\n\t\tif (!inp.markSupported()) {\n\t\t\tinp = new PushbackInputStream(inp, 8);\n\t\t}\n\n\t\tif (POIFSFileSystem.hasPOIFSHeader(inp)) {\n\t\t\tthis.type = XLS;\n\t\t\treturn new HSSFWorkbook(inp);\n\t\t}\n\t\tif (POIXMLDocument.hasOOXMLHeader(inp)) {\n\t\t\tthis.type = XLSX;\n\t\t\treturn new XSSFWorkbook(OPCPackage.open(inp));\n\t\t}\n\t\tthrow new PageException(\n\t\t\t\t\"这不是一个OLE2 InputStream流,也不是OOXML流\");\n\t}", "title": "" }, { "docid": "dedc4f4634f4b24096a399518e003ab3", "score": "0.5810069", "text": "@Override\r\n\tprotected void buildExcelDocument(Map<String, Object> model,\r\n\t\t\tHSSFWorkbook workbook, HttpServletRequest request,\r\n\t\t\tHttpServletResponse response) throws Exception {\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Profile> profiles = (List<Profile>) model.get(\"lists\");\r\n\r\n\t\t// create a new Excel sheet\r\n\t\tHSSFSheet sheet = workbook.createSheet(\"DANH SÁCH NHÂN VIÊN\");\r\n\t\tsheet.setDefaultColumnWidth(15);\r\n\r\n\t\t// create style for header cells\r\n\t\tCellStyle style = workbook.createCellStyle();\r\n\t\tFont font = workbook.createFont();\r\n\t\tfont.setFontName(\"Arial\");\r\n\t\tstyle.setFillForegroundColor(HSSFColor.BLUE.index);\r\n\t\tstyle.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n\t\tfont.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);\r\n\t\tfont.setColor(HSSFColor.WHITE.index);\r\n\t\tstyle.setFont(font);\r\n\t\t\r\n\t\t\r\n\r\n\t\t// create header row\r\n\t\tHSSFRow header = sheet.createRow(0);\r\n\r\n\t\theader.createCell(0).setCellValue(\"STT\");\r\n\t\theader.getCell(0).setCellStyle(style);\r\n\r\n\t\theader.createCell(1).setCellValue(\"Mã hồ sơ\");\r\n\t\theader.getCell(1).setCellStyle(style);\r\n\r\n\t\theader.createCell(2).setCellValue(\"Ngày vào làm\");\r\n\t\theader.getCell(2).setCellStyle(style);\r\n\r\n\t\theader.createCell(3).setCellValue(\"Lương phụ cấp\");\r\n\t\theader.getCell(3).setCellStyle(style);\r\n\r\n\t\theader.createCell(4).setCellValue(\"Lương cơ bản\");\r\n\t\theader.getCell(4).setCellStyle(style);\r\n\r\n\t\theader.createCell(5).setCellValue(\"Lương chính\");\r\n\t\theader.getCell(5).setCellStyle(style);\r\n\r\n\t\theader.createCell(6).setCellValue(\"Đơn vị tính\");\r\n\t\theader.getCell(6).setCellStyle(style);\r\n\r\n\t\theader.createCell(7).setCellValue(\"Vị trí\");\r\n\t\theader.getCell(7).setCellStyle(style);\r\n\r\n\t\theader.createCell(8).setCellValue(\"Phòng ban\");\r\n\t\theader.getCell(8).setCellStyle(style);\r\n\r\n\t\theader.createCell(9).setCellValue(\"Tên nhân viên\");\r\n\t\theader.getCell(9).setCellStyle(style);\r\n\t\t\r\n\t\theader.createCell(10).setCellValue(\"CMND\");\r\n\t\theader.getCell(10).setCellStyle(style);\r\n\t\t\r\n\t\theader.createCell(11).setCellValue(\"Trạng thái\");\r\n\t\theader.getCell(11).setCellStyle(style);\r\n\t\t\r\n\t\t\r\n\t\theader.createCell(12).setCellValue(\"Ngày tạo\");\r\n\t\theader.getCell(12).setCellStyle(style);\r\n\r\n\t\t// create data rows\r\n\t\tint rowCount = 0;\r\n\r\n\t\tfor (Profile profile : profiles) {\r\n\t\t\trowCount++;\r\n\t\t\tHSSFRow aRow = sheet.createRow(rowCount);\r\n\t\t\taRow.createCell(0).setCellValue(rowCount);\r\n\t\t\taRow.createCell(1).setCellValue(profile.getId());\r\n\t\t\taRow.createCell(2).setCellValue(profile.getJoin_date().format(DateTimeFormatter.ISO_DATE));\r\n\t\t\taRow.createCell(3).setCellValue(profile.getSalary_subsidies().setScale(0, BigDecimal.ROUND_HALF_DOWN).toString());\r\n\t\t\taRow.createCell(4).setCellValue(profile.getSalary_basic().setScale(0, BigDecimal.ROUND_HALF_DOWN).toString());\r\n\t\t\taRow.createCell(5).setCellValue(profile.getSalary().setScale(0, BigDecimal.ROUND_HALF_DOWN).toString());\r\n\t\t\taRow.createCell(6).setCellValue(profile.getCurrency().getCode());\r\n\t\t\taRow.createCell(7).setCellValue(profile.getPosition().getPosition());\r\n\t\t\taRow.createCell(8).setCellValue(profile.getDepartment().getName());\r\n\t\t\taRow.createCell(9).setCellValue(profile.getEmployee().getFull_name());\r\n\t\t\taRow.createCell(10).setCellValue(profile.getEmployee().getIc_number());\r\n\t\t\taRow.createCell(11).setCellValue(profile.getStatus_profile().getName());\r\n\t\t\taRow.createCell(12).setCellValue(profile.getCreate_date().format(DateTimeFormatter.ISO_DATE_TIME));\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "043f9e8cfa9542face508334050b3197", "score": "0.5809996", "text": "@Override\n public ActionForward execute(ActionMapping mapping, ActionForm form,\n HttpServletRequest request, HttpServletResponse response)\n throws Exception {\n \n response.setContentType(\"application/octet-stream\");\n\n ExcelCreator excelCreator = new ExcelCreator();\n\n HSSFWorkbook workbook = excelCreator.createWorkbook(new ArrayList());\n \n Periodo p = new Periodo();\n p.setFecha_inicio(request.getParameter(\"fecha_inicio\"));\n p.setFecha_fin(request.getParameter(\"fecha_fin\"));\n \n response.setHeader(\"Content-Disposition\", \"attachment; filename=UsuarioPedido\"+p.getFecha_fin()+\".xls\");\n\n\n // Se fijan los estilos del titulo y encabezado ===========\n HSSFCellStyle headerCellStyle = workbook.createCellStyle();\n HSSFFont boldFont = workbook.createFont();\n boldFont.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);\n headerCellStyle.setFont(boldFont);\n\n HSSFCellStyle tituloStyle = workbook.createCellStyle();\n HSSFFont tituloFont = workbook.createFont();\n tituloFont.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);\n tituloFont.setFontHeightInPoints((short) 12);\n tituloFont.setUnderline(HSSFFont.U_SINGLE);\n tituloStyle.setFont(tituloFont);\n // =======================================================\n\n HSSFSheet sheet = workbook.createSheet(\"Listados\");\n short cero = 0;\n short contador = 1;\n\n String fecha = DBMS.getInstance().obtenerFecha();\n\n //===== Tamano de las columnas ============\n sheet.setColumnWidth((short)0, (short)2500);\n sheet.setColumnWidth((short)1, (short)6000);\n sheet.setColumnWidth((short)2, (short)6000);\n sheet.setColumnWidth((short)3, (short)10000);\n sheet.setColumnWidth((short)4, (short)10000);\n sheet.setColumnWidth((short)5, (short)2500);\n sheet.setColumnWidth((short)6, (short)13000);\n sheet.setColumnWidth((short)7, (short)3000);\n sheet.setColumnWidth((short)8, (short)5000);\n //==========================================\n HSSFRow row = sheet.createRow(0);\n HSSFCell cell = row.createCell(cero);\n \n setEncabezado(row, cell,(short)0, tituloStyle,\"Listados Generales EPP\");\n \n row = sheet.createRow(contador++);\n setEncabezado(row, cell,(short)0, headerCellStyle,\"Fecha: \"+fecha);\n \n row = sheet.createRow(contador++);\n setEncabezado(row, cell,(short)0, headerCellStyle,\"Listados clasificados por Usuario durante el período\");\n\n contador++;\n row = sheet.createRow(contador++);\n\n setEncabezado(row, cell,(short)0, headerCellStyle,\"Cédula\");\n setEncabezado(row, cell,(short)1, headerCellStyle,\"Nombres\");\n setEncabezado(row, cell,(short)2, headerCellStyle,\"Apellidos\");\n setEncabezado(row, cell,(short)3, headerCellStyle,\"Cargo\");\n setEncabezado(row, cell,(short)4, headerCellStyle,\"Unidad de adscripción\");\n setEncabezado(row, cell,(short)5, headerCellStyle,\"Sexo\");\n setEncabezado(row, cell,(short)6, headerCellStyle,\"Equipo\");\n setEncabezado(row, cell,(short)7, headerCellStyle,\"Talla\");\n setEncabezado(row, cell,(short)8, headerCellStyle,\"Cantidad aprobada\");\n\n ArrayList <Usuario> usuarios = DBMS.getInstance().obtenerUsuarioCantidad(p);\n\n HSSFCell celltemp;\n String areaAnterior = null;\n \n for (short i = 0; i < usuarios.size(); i++) {\n row = sheet.createRow(contador++);\n if(!usuarios.get(i).getArea_laboral().equals(areaAnterior)){\n row = sheet.createRow(contador++);\n celltemp = row.createCell((short)0);\n celltemp.setCellValue(usuarios.get(i).getArea_laboral());\n celltemp.setCellStyle(headerCellStyle);\n areaAnterior = usuarios.get(i).getArea_laboral();\n row = sheet.createRow(contador++);\n }\n celltemp = row.createCell((short)0);\n celltemp.setCellValue(usuarios.get(i).getCi());\n \n celltemp = row.createCell((short)1);\n celltemp.setCellValue(usuarios.get(i).getNombre());\n \n celltemp = row.createCell((short)2);\n celltemp.setCellValue(usuarios.get(i).getApellido());\n \n celltemp = row.createCell((short)3);\n celltemp.setCellValue(usuarios.get(i).getCargo()); \n \n celltemp = row.createCell((short)4);\n celltemp.setCellValue(usuarios.get(i).getUnidad_adscripcion());\n \n celltemp = row.createCell((short)5);\n celltemp.setCellValue(usuarios.get(i).getSexo());\n \n celltemp = row.createCell((short)6);\n celltemp.setCellValue(usuarios.get(i).getTalla_camisa()); // nombre del equipos\n \n celltemp = row.createCell((short)7);\n celltemp.setCellValue(usuarios.get(i).getTalla_guantes()); // talla del equipo\n \n celltemp = row.createCell((short)8);\n celltemp.setCellValue(usuarios.get(i).getTalla_mascara()); // cantidad del equipo\n }\n\n ServletOutputStream out = response.getOutputStream();\n workbook.write(out);\n\n out.flush();\n\n out.close();\n\n return mapping.findForward(SUCCESS);\n }", "title": "" }, { "docid": "05ac7c4aaca2f89c11122d1a4761b070", "score": "0.5789916", "text": "public static void writeObjects2ExcelFile(List<JSONModel> jsonModel, String filePath) throws IOException,NullPointerException {\n\t\t String[] columns = {\"computed_region_rxqg_mtj9\",\"location_latitude\",\"location_address\",\"location_longitude\", \"filed_date\", \"record_id\", \"zipcode\",\"street_number\",\"computed_region_ajp5_b2md\",\"existing_units\",\"existing_use\",\"computed_region_yftq_j783\",\"computed_region_bh8s_q3mv\",\"computed_region_uruc_drv6\",\"block\",\"computed_region_jx4q_fizf\",\"permit_type_definition\",\"computed_region_qgnn_b9vv\",\"neighborhoods_analysis_boundaries\",\"supervisor_district\",\"plansets\",\"estimated_cost\",\"description\",\"proposed_use\",\"revised_cost\",\"permit_creation_date\",\"street_name\",\"street_suffix\",\"permit_number\",\"status_date\",\"status\",\"number_of_existing_stories\",\"computed_region_26cr_cadq\",\"lot\",\"number_of_proposed_stories\",\"computed_region_6qbp_sg9q\",\"permit_type\",\"location_recording\"};\n\t\t \n\t\t Workbook workbook = new XSSFWorkbook();\n\t\t Sheet sheet = workbook.createSheet(\"Sheet1\");\n\t\t \n\t\t // Row for Header\n\t\t Row headerRow = sheet.createRow(0);\n\t\t \n\t\t // Header\n\t\t for (int col = 0; col < columns.length; col++) {\n\t\t \tCell cell = headerRow.createCell(col);\n\t\t \tcell.setCellValue(columns[col]);\n\t\t }\n\t\t \n\t\t //Write data into Excel w.r.t respective headers\n\t\t int rowid = 1;\n\t\t for (JSONModel json2excel : jsonModel) {\n\t\t Row row = sheet.createRow(rowid++);\n\t\t \n\t\t try{\n\t\t \t row.createCell(0).setCellValue(json2excel.getComputed_region_rxqg_mtj9());\n\t\t \t \n\t\t \t row.createCell(1).setCellValue(json2excel.getLocation().getLatitude());\n\t\t \t row.createCell(2).setCellValue(json2excel.getLocation().getHuman_address());\n\t\t row.createCell(3).setCellValue(json2excel.getLocation().getLongitude());\n\t\t \n\t\t row.createCell(4).setCellValue(json2excel.getFiled_date());\n\t\t row.createCell(5).setCellValue(json2excel.getRecord_id());\n\t\t row.createCell(6).setCellValue(json2excel.getZipcode());\n\t\t row.createCell(7).setCellValue(json2excel.getStreet_number());\n\t\t row.createCell(8).setCellValue(json2excel.getComputed_region_ajp5_b2md());\n\t\t row.createCell(9).setCellValue(json2excel.getExisting_units());\n\t\t row.createCell(10).setCellValue(json2excel.getExisting_use());\n\t\t row.createCell(11).setCellValue(json2excel.getComputed_region_yftq_j783());\n\t\t row.createCell(13).setCellValue(json2excel.getComputed_region_uruc_drv6());\n\t\t row.createCell(14).setCellValue(json2excel.getBlock());\n\t\t row.createCell(15).setCellValue(json2excel.getComputed_region_jx4q_fizf());\n\t\t row.createCell(16).setCellValue(json2excel.getPermit_type_definition());\n\t\t row.createCell(17).setCellValue(json2excel.getComputed_region_qgnn_b9vv());\n\t\t row.createCell(18).setCellValue(json2excel.getNeighborhoods_analysis_boundaries());\n\t\t row.createCell(19).setCellValue(json2excel.getSupervisor_district());\n\t\t row.createCell(20).setCellValue(json2excel.getPlansets());\n\t\t row.createCell(21).setCellValue(json2excel.getEstimated_cost());\n\t\t row.createCell(22).setCellValue(json2excel.getDescription());\n\t\t row.createCell(23).setCellValue(json2excel.getProposed_use());\n\t\t row.createCell(24).setCellValue(json2excel.getRevised_cost());\n\t\t row.createCell(25).setCellValue(json2excel.getPermit_creation_date());\n\t\t row.createCell(26).setCellValue(json2excel.getStreet_name());\n\t\t row.createCell(27).setCellValue(json2excel.getStreet_suffix());\n\t\t row.createCell(28).setCellValue(json2excel.getPermit_number());\n\t\t row.createCell(29).setCellValue(json2excel.getStatus_date());\n\t\t row.createCell(30).setCellValue(json2excel.getStatus());\n\t\t row.createCell(31).setCellValue(json2excel.getNumber_of_existing_stories());\n\t\t row.createCell(32).setCellValue(json2excel.getComputed_region_26cr_cadq());\n\t\t row.createCell(33).setCellValue(json2excel.getLot());\n\t\t row.createCell(34).setCellValue(json2excel.getNumber_of_proposed_stories());\n\t\t row.createCell(35).setCellValue(json2excel.getComputed_region_6qbp_sg9q());\n\t\t row.createCell(36).setCellValue(json2excel.getPermit_type()); \n\t\t \n\t\t Cell ageCell = row.createCell(37);\n\t\t\t\t ageCell.setCellValue(json2excel.getLocation().isNeed_recording());\t\n\t\t\t\t \n\t\t }catch(NullPointerException e) { }\n\t\t }\n\t\t \n\t\t FileOutputStream fileOut = new FileOutputStream(filePath);\n\t\t workbook.write(fileOut);\n\t\t fileOut.close();\n\t}", "title": "" }, { "docid": "b5268b81e34308d3c60a98d1b8e1e0b3", "score": "0.5786373", "text": "public void exportXls(JasperPrint jp, ByteArrayOutputStream baos) {\n\t\tJRXlsExporter exporter = new JRXlsExporter();\r\n\t\tsetJRProperties();\r\n\t\t \r\n\t\t// Here we assign the parameters jp and baos to the exporter\r\n\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jp);\r\n\t\texporter.setParameter(JRExporterParameter.OUTPUT_STREAM, baos);\r\n\t\t \r\n\t\t// Excel specific parameters\r\n\t\texporter.setParameter(JRXlsAbstractExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.FALSE);\r\n\t\texporter.setParameter(JRXlsAbstractExporterParameter.IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS, Boolean.TRUE);\r\n\t\t//exporter.setParameter(JRXlsAbstractExporterParameter.IS_WHITE_PAGE_BACKGROUND, Boolean.FALSE);\r\n\t\texporter.setParameter(JExcelApiExporterParameter.CREATE_CUSTOM_PALETTE, Boolean.TRUE);\r\n\t\t\r\n\t\t// remove hyperlink in exported report\r\n\t\tJRHyperlinkProducerMapFactory producerFactory = new JRHyperlinkProducerMapFactory();\r\n producerFactory.addProducer(\"Reference\", CustomReportExecutionHyperlinkProducer.getInstance(null));\r\n\t\texporter.setParameter(JRExporterParameter.HYPERLINK_PRODUCER_FACTORY, producerFactory);\r\n\t\t \r\n\t\ttry {\r\n\t\t\texporter.exportReport();\r\n\t\t\t\r\n\t\t} catch (JRException e) {\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e424d29162da5248f56a6f3d6ac7df28", "score": "0.5782534", "text": "@Override\r\n\tprotected void buildExcelDocument(Map<String, Object> model, Workbook workbook, HttpServletRequest request,\r\n\t\t\tHttpServletResponse response) throws Exception {\n\t\tresponse.setHeader(\"Content-Disposition\", \"Attachement;Filename=USERS.xlsx\");\r\n\t\tList<User> list= (List<User>) model.get(\"list\");\r\n\t\t//create sheet\r\n\t\tSheet sheet= workbook.createSheet(\"Users\");\r\n\t\t// set head row-0\r\n\t\tsetHead(sheet);\r\n\t\t//set body in loop\r\n\t\tsetBody(sheet, list);\r\n\t}", "title": "" }, { "docid": "5fb763c7cb018ee407385a19ea63ec41", "score": "0.5772991", "text": "@SuppressWarnings(\"unchecked\")\r\n\t\t@Override\r\n\t\tprotected void buildExcelDocument(Map<String, Object> model, Workbook workbook, HttpServletRequest request,\r\n\t\t\t\tHttpServletResponse response) throws Exception {\n\t\t\tresponse.addHeader(\"Content-Disposition\",\"attachment;filename=UOMS.xlsx\");\r\n\t\t\t//create sheet with name\r\n\t\t\tSheet sheet=workbook.createSheet(\"UOMS\");\r\n\t\t\t//create Head\r\n\t\t\tsetHead(sheet);\r\n\t\t\t//read data\r\n\t\t\tList<Uom> uoms=(List<Uom>)model.get(\"uoms\");\r\n\t\t\t//set body\r\n\t\t\tsetBody(sheet, uoms );\r\n\t\t}", "title": "" }, { "docid": "0aced7d28c4d553d3ee8970c8a51acd1", "score": "0.57703424", "text": "public void createObjectListSheet(Workbook wb, ArrayList<String> object_list)\r\n\t\t{\r\n\t\t\t Map<String, CellStyle> styles = XLSDocumentManager.createStyles(wb);\r\n\t\t\t // Create new Sheet\r\n\t\t\t CreationHelper createHelper = wb.getCreationHelper();\r\n\t\t\t String sheet_name = this.getMessageSource(\"label.title.object.list\",\"Object List\");\r\n\t\t\t Sheet sheet = wb.createSheet(sheet_name);\r\n\t\t\t // Create header row\r\n\t\t\t Row hrow = sheet.createRow((short)0);\r\n\t\t\t hrow.createCell(0).setCellValue(this.getMessageSource(\"label.column.no\",\"No\"));\r\n\t\t\t hrow.getCell(0).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\t\t\t hrow.createCell(1).setCellValue(createHelper.createRichTextString(this.getMessageSource(\"label.column.label\",\"Label\")));\r\n\t\t\t hrow.getCell(1).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\t\t\t hrow.createCell(2).setCellValue(createHelper.createRichTextString(this.getMessageSource(\"label.column.api.name\",\"API Name\")));\r\n\t\t\t hrow.getCell(2).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\r\n\t\t\t for (int i = 0; i < object_list.size(); i++){\r\n\t\t\t\t String object_name = (String)object_list.get(i);\r\n\r\n\t\t\t\t // Create a row and put some cells in it. Rows are 0 based.\r\n\t\t\t\t Row row = sheet.createRow((short)i+1);\r\n\r\n\t\t\t\t // Get label for objects run Object Schema only if type = CustomObject\r\n\t\t\t\t String obj_label = (String)ht_object_map.get(object_name);\r\n\t\t\t\t if (obj_label == null)\r\n\t\t\t\t\t obj_label = \"\"; //$NON-NLS-1$\r\n\r\n\t\t\t\t row.createCell(0).setCellValue(i+1);\r\n\t\t\t\t row.createCell(1).setCellValue(obj_label);//createHelper.createRichTextString(obj_label));\r\n\t\t\t\t row.createCell(2).setCellValue(object_name); //createHelper.createRichTextString(object_name));\t\t\t\t \r\n\t\t\t }\r\n\t\t\t // Control column width\r\n\t\t\t sheet.setDefaultColumnWidth(50);\r\n\t\t\t sheet.setColumnWidth(0, 1500);\r\n\t\t\t sheet.setColumnWidth(3, 2500);\r\n\t\t\t \r\n\t\t}", "title": "" }, { "docid": "4f31c08990d0d6ed0f62ba5bef9fcf81", "score": "0.5762036", "text": "public static void main(String[] args) throws IOException {\n\t\tFileInputStream I = new FileInputStream(\"C:\\\\Users\\\\dell\\\\Desktop\\\\Student\\\\sel_3.xlsx\");\r\n\t\tXSSFWorkbook wb= new XSSFWorkbook(I);\r\n\t XSSFSheet s = wb.getSheet(\"Sheet1\"); \r\n\t Row header = s.createRow(0);\r\n\t header.createCell(0).setCellValue(\"ID\");\r\n\t header.createCell(1).setCellValue(\"StudentName\");\r\n\t header.createCell(2).setCellValue(\"Year\");\r\n\t header.createCell(3).setCellValue(\"Fees\");\r\n\t header.createCell(4).setCellValue(\"Library Fees\");\r\n\t header.createCell(5).setCellValue(\"Subject you can Obt\");\r\n\t header.createCell(6).setCellValue(\"Tution Fees\");\r\n\t wb.write(new FileOutputStream (\"C:\\\\Users\\\\dell\\\\Desktop\\\\Student\\\\sel_3.xlsx\"));\r\n\t \r\n\t int i =1;\r\n\t \r\n\t while(i>0) {\r\n\t \tint rowCount = s.getFirstRowNum();\r\n\t \t\r\n\t \tSystem.out.println(\"Enter Roll No.\");\r\n\t\t\tScanner sc=new Scanner(System.in);\r\n\t\t\tint a = sc.nextInt();\r\n\t\t\tSystem.out.println(\"Student Name\");\r\n\t\t\tScanner sc1=new Scanner(System.in);\r\n\t\t\tString b = sc1.next();\r\n\t\t\tSystem.out.println(\"Year (FYBSc/SYBSc/TYBSc)\");\r\n\t\t\tScanner sc2=new Scanner(System.in);\r\n\t\t\tString c = sc2.next();\t\t\r\n\t\t\tSystem.out.println(\"College fees for FYBSc student = 20000\");\r\n\t\t\tSystem.out.println(\"College fees for SYBSc student = 30000\");\r\n\t\t\tSystem.out.println(\"College fees for TYBSc student = 40000\");\r\n\t\t\tSystem.out.println(\"Enter according to college rules\");\r\n\t\t\tSystem.out.println(\"Enter fees pay\");\r\n\t\t\tScanner sc3=new Scanner(System.in);\t\t\t\t\r\n\t\t\tint d = sc3.nextInt();\r\n\t\t\tif(d==20000) {\r\n\t\t\t\tint x = (d*5)/100;\t\t\t\r\n\t\t\t\tXSSFSheet s1 = wb.getSheet(\"Sheet1\");\r\n\t\t\t\t\r\n\t\t\t Row Deta = s1.createRow(++ rowCount);\t\t\t \r\n\t\t\t\tDeta.createCell(0).setCellValue(a);\t\r\n\t\t\t\tDeta.createCell(1).setCellValue(b);\r\n\t\t\t\tDeta.createCell(2).setCellValue(c);\t\r\n\t\t\t\tDeta.createCell(3).setCellValue(d);\t\r\n\t\t\t\tDeta.createCell(4).setCellValue(x);\t\r\n\t\t\t\tDeta.createCell(5).setCellValue(\"MATHS,PHYS,CHEM,BIO\");\r\n\t\t\t\twb.write(new FileOutputStream (\"C:\\\\Users\\\\dell\\\\Desktop\\\\Student\\\\sel_3.xlsx\"));\r\n\t\t\t\t\r\n\t\t\t int[] r = s1.getRowBreaks();\r\n\t\t\t \r\n\t\t\t}\r\n\t\t\telse if(d==30000)\r\n\t\t\t{\r\n\t\t\t\tint x = (d*5)/100;\t\t\t\r\n\t\t\t\tXSSFSheet s1 = wb.getSheet(\"Sheet1\");\r\n\t\t\t\tRow Deta = s1.createRow(i);\r\n\t\t\t\tDeta.createCell(0).setCellValue(a);\t\r\n\t\t\t\tDeta.createCell(1).setCellValue(b);\r\n\t\t\t\tDeta.createCell(2).setCellValue(c);\t\r\n\t\t\t\tDeta.createCell(3).setCellValue(d);\t\r\n\t\t\t\tDeta.createCell(4).setCellValue(x);\t\r\n\t\t\t\twb.write(new FileOutputStream (\"C:\\\\Users\\\\dell\\\\Desktop\\\\Student\\\\sel_3.xlsx\"));\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\telse if (d==40000)\r\n\t\t\t{\r\n\t\t\t\tint x = (d*5)/100;\t\t\t\r\n\t\t\t\tXSSFSheet s1 = wb.getSheet(\"Sheet1\");\r\n\t\t\t\tRow Deta = s1.createRow(i);\r\n\t\t\t\tDeta.createCell(0).setCellValue(a);\t\r\n\t\t\t\tDeta.createCell(1).setCellValue(b);\r\n\t\t\t\tDeta.createCell(2).setCellValue(c);\t\r\n\t\t\t\tDeta.createCell(3).setCellValue(d);\t\r\n\t\t\t\tDeta.createCell(4).setCellValue(x);\r\n\t\t\t\t\r\n\t\t\t\twb.write(new FileOutputStream (\"C:\\\\Users\\\\dell\\\\Desktop\\\\Student\\\\sel_3.xlsx\"));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tSystem.out.println(\"Enter year is not according to college managment\");\r\n\t\t\t}\r\n\t\t\t CellAddress cell = s.getActiveCell() ;\r\n\t\t\t int lastRow = s.getLastRowNum();\r\n\t\t\t \r\n\t\t\t System.out.println(lastRow);\r\n\t\t\t \t\r\n\t\t\t}\r\n\t\t\t\r\n\t \r\n\t \r\n\t }", "title": "" }, { "docid": "984724e607108df2d0cf7d2c29ad7dbb", "score": "0.5760499", "text": "private void createApexClassListSheet(Workbook wb, ArrayList<SFApexClass> classList)\r\n\t {\r\n\t\t Map<String, CellStyle> styles = XLSDocumentManager.createStyles(wb);\r\n\t\t // Create new Sheet\r\n\t\t //CreationHelper createHelper = wb.getCreationHelper();\r\n\t\t String sheet_name = this.getMessageSource(\"label.title.apex.class.list\", \"Apex Class List\");\r\n\t\t Sheet sheet = wb.createSheet(sheet_name);\r\n\t\t // Create header row with header columns\r\n\t\t Row hrow = sheet.createRow((short)0);\r\n\t\t hrow.createCell(0).setCellValue(this.getMessageSource(\"label.column.no\", \"No.\"));\r\n\t\t hrow.getCell(0).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\t\t hrow.createCell(1).setCellValue(this.getMessageSource(\"label.column.name\", \"Name\"));\r\n\t\t hrow.getCell(1).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\t\t hrow.createCell(2).setCellValue(this.getMessageSource(\"label.column.status\", \"Status\"));\r\n\t\t hrow.getCell(2).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\t\r\n\t\t hrow.createCell(3).setCellValue(this.getMessageSource(\"label.column.length\", \"Length\"));\r\n\t\t hrow.getCell(3).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\t\t hrow.createCell(4).setCellValue(this.getMessageSource(\"label.column.valid\", \"Valid\"));\r\n\t\t hrow.getCell(4).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\t\t hrow.createCell(5).setCellValue(this.getMessageSource(\"label.column.id\", \"ID\"));\r\n\t\t hrow.getCell(5).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\t\t hrow.createCell(6).setCellValue(this.getMessageSource(\"label.column.api.version\", \"Version\"));\r\n\t\t hrow.getCell(6).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\t\t hrow.createCell(7).setCellValue(this.getMessageSource(\"label.column.namespace.prefix\", \"Prefix\"));\r\n\t\t hrow.getCell(7).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\t\t hrow.createCell(8).setCellValue(this.getMessageSource(\"label.column.created.by\", \"CreatedBy\"));\r\n\t\t hrow.getCell(8).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\t\t hrow.createCell(9).setCellValue(this.getMessageSource(\"label.column.date.change\", \"Date Changed\"));\r\n\t\t hrow.getCell(9).setCellStyle(styles.get(\"header\")); //$NON-NLS-1$\r\n\r\n\t\t for (int i = 0; i < classList.size(); i++){\r\n\t\t\t SFApexClass apex_class_info = (SFApexClass)classList.get(i);\r\n\r\n\t\t\t // Create a row and put some cells in it. Rows are 0 based.\r\n\t\t\t Row row = sheet.createRow((short)i+1);\r\n\r\n\t\t\t row.createCell(0).setCellValue(i);\r\n\t\t\t row.createCell(1).setCellValue(apex_class_info.getName());\r\n\t\t\t row.createCell(2).setCellValue(apex_class_info.getStatus());\r\n\t\t\t row.createCell(3).setCellValue(apex_class_info.getLengthWithoutComments());\r\n\t\t\t row.createCell(4).setCellValue(apex_class_info.isIsValid());\r\n\t\t\t row.createCell(5).setCellValue(apex_class_info.getId());\r\n\t\t\t row.createCell(6).setCellValue(apex_class_info.getApiVersion());\r\n\t\t\t row.createCell(7).setCellValue(apex_class_info.getNamespacePrefix());\r\n\t\t\t row.createCell(8).setCellValue(apex_class_info.getCreatedByName());\r\n\t\t\t row.createCell(9).setCellValue(apex_class_info.getStringLastModifiedDate());\r\n\t\t }\r\n\t\t // Control column width\r\n\t\t sheet.setDefaultColumnWidth(50);\r\n\t\t sheet.setColumnWidth(0, 1500);\r\n\t\t sheet.setColumnWidth(2, 2000);\r\n\t\t sheet.setColumnWidth(3, 3000);\r\n\t\t sheet.setColumnWidth(4, 2000);\t \r\n\t }", "title": "" }, { "docid": "f601c0fcfd021add3d4f784cba49b52e", "score": "0.57537055", "text": "public File attendanceReport(AttendanceReportRequest request) throws IOException\n {\n if (request.getCenterId() == null)\n {\n throw new ValidationException(\"Center is required.\");\n }\n Center center = hasCenter(request.getCenterId());\n if (center == null)\n {\n throw new ValidationException(\"Unauthorized access to Center.\");\n }\n request.setCenterCode(center.getCode());\n\n Set<Student> students = new HashSet<>(studentRepository.findByActiveTrueAndCenter(center));\n List<StudentAttendance> attendances = attendanceRepository.findByCenterAndAttendanceDateBetweenOrderByStudentAdmissionNumberAsc(center, request.getFrom(), request.getTo());\n\n //fill absent\n attendances = fillAbsent(request, center, students, attendances);\n\n Collections.sort(attendances,(o1, o2) -> {\n return o1.getStudent().getAdmissionNumber().compareTo(o2.getStudent().getAdmissionNumber());\n });\n\n //2. putting attendances in sheet\n File file = new File(exportDir + UUID.randomUUID() + \".xlsx\");\n if (!file.exists())\n {\n file.createNewFile();\n }\n FileOutputStream fileOutputStream = new FileOutputStream(file);\n SXSSFWorkbook workbook = new SXSSFWorkbook();\n createStyle(workbook);\n int rowNumber = 0;\n Sheet attendanceSheet = workbook.createSheet(\"attendance\");\n Row row = attendanceSheet.createRow(rowNumber++);\n row.createCell(0, Cell.CELL_TYPE_STRING).setCellValue(\"Student Name\");\n row.createCell(1, Cell.CELL_TYPE_STRING).setCellValue(\"Attendance Date\");\n row.createCell(2, Cell.CELL_TYPE_STRING).setCellValue(\"Status\");\n row.createCell(3, Cell.CELL_TYPE_STRING).setCellValue(\"Center Name\");\n row.createCell(4, Cell.CELL_TYPE_STRING).setCellValue(\"Program Name\");\n row.createCell(5, Cell.CELL_TYPE_STRING).setCellValue(\"Group Name\");\n row.createCell(6, Cell.CELL_TYPE_STRING).setCellValue(\"Excepted In\");\n row.createCell(7, Cell.CELL_TYPE_STRING).setCellValue(\"Excepted Out\");\n row.createCell(8, Cell.CELL_TYPE_STRING).setCellValue(\"Actual In\");\n row.createCell(9, Cell.CELL_TYPE_STRING).setCellValue(\"Actual Out\");\n row.createCell(10, Cell.CELL_TYPE_STRING).setCellValue(\"Time (HH:MM)\");\n\n for (StudentAttendance attendance : attendances)\n {\n row = attendanceSheet.createRow(rowNumber++);\n\n row.createCell(0, Cell.CELL_TYPE_STRING).setCellValue(attendance.getStudent().getName());\n row.createCell(1, Cell.CELL_TYPE_STRING).setCellValue(toFormattedDate(attendance.getAttendanceDate(),\"yyyy-MM-dd EEE\"));\n row.createCell(2, Cell.CELL_TYPE_STRING).setCellValue(attendance.getStatus().toString());\n row.createCell(3, Cell.CELL_TYPE_STRING).setCellValue(attendance.getStudent().getCenterName());\n row.createCell(4, Cell.CELL_TYPE_STRING).setCellValue(attendance.getStudent().getProgramName());\n row.createCell(5, Cell.CELL_TYPE_STRING).setCellValue(attendance.getStudent().getGroupName());\n row.createCell(6, Cell.CELL_TYPE_STRING).setCellValue(attendance.getStudent().getExpectedIn() == null ? \"\" : attendance.getStudent().getExpectedIn().toString());\n row.createCell(7, Cell.CELL_TYPE_STRING).setCellValue(attendance.getStudent().getExpectedOut() == null ? \"\" : attendance.getStudent().getExpectedOut().toString());\n\n switch (attendance.getStatus()){\n case Present:\n row.createCell(8, Cell.CELL_TYPE_STRING).setCellValue(attendance.getCheckin() == null ? \"\" : attendance.getCheckin().toString());\n row.createCell(9, Cell.CELL_TYPE_STRING).setCellValue(attendance.getCheckout() == null ? \"\" : attendance.getCheckout().toString());\n if (attendance.getCheckin() != null && attendance.getCheckout() != null)\n {\n long milliSeconds = attendance.getCheckout().getTime() - attendance.getCheckin().getTime();\n long minutes = milliSeconds / (1000 * 60);\n long hours = minutes / 60;\n minutes = minutes % 60;\n row.createCell(10, Cell.CELL_TYPE_STRING).setCellValue(String.format(\"%s:%s\", hours, minutes));\n }\n else\n {\n row.createCell(10, Cell.CELL_TYPE_STRING).setCellValue(\"\");\n }\n break;\n case Absent:\n row.createCell(8, Cell.CELL_TYPE_STRING).setCellValue(\"A\");\n row.createCell(9, Cell.CELL_TYPE_STRING).setCellValue(\"A\");\n row.createCell(10, Cell.CELL_TYPE_STRING).setCellValue(\"A\");\n break;\n }\n }\n\n workbook.write(fileOutputStream);\n workbook.dispose();\n\n return file;\n }", "title": "" }, { "docid": "62e0031e9eac913194b1eb60a0f19f8b", "score": "0.5751146", "text": "@Override\n\tprotected void buildExcelDocument(\n\t\t\tMap<String, Object> model, \n\t\t\tWorkbook workbook,\n\t\t\tHttpServletRequest request,\n\t\t\tHttpServletResponse response) \n\t\t\t\t\tthrows Exception {\n\t\t\t\tresponse.addHeader(\"Content-Dispositon\", \"attachment; filename=Part.xls\");\n\n\t\t\t\t//read data from controller\n\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\tList<Grn> list=(List<Grn>) model.get(\"obs\");\n\n\t\t\t\t//create new Sheet\n\t\t\t\tSheet sheet=workbook.createSheet(\"GRN\");\n\t\t\t\tsetHead(sheet);\n\t\t\t\tsetBody(sheet,list);\t\n\t\t\t}", "title": "" }, { "docid": "3ca41c9288e0884408e452d5357e15ef", "score": "0.5750668", "text": "public void WriteBankAdviceRegister(BankSalaryAdvice data[], String date, String buname, String calmonth, String banktype, ServletOutputStream stream) throws IOException {\n int count = 0;\n XSSFWorkbook workbook = new XSSFWorkbook();\n XSSFSheet sheet = workbook.createSheet(\"Sheet 1\");\n sheet.addIgnoredErrors(CellRangeAddress.valueOf(\"A1:XFD1048576\"), IgnoredErrorType.NUMBER_STORED_AS_TEXT);\n\n int rowNum = 0;\n int colNum = 0;\n double grossamt = 0, netpay = 0, net = 0, totalded = 0, tds = 0, otherded = 0;\n if (data.length != 0) {\n List < BankSalaryAdvice > preg = Arrays.asList(data);\n\n LinkedHashMap < String, Object > employeedatamap = null;\n List < Map < String, Object >> employeedatalist = new ArrayList < > ();\n\n for (BankSalaryAdvice payregister: preg) {\n count++;\n employeedatamap = new LinkedHashMap < > ();\n employeedatamap.put(\"S No\", count);\n employeedatamap.put(\"Emp ID\", payregister.getPersonnumber());\n employeedatamap.put(\"Employee Name\", payregister.getPersonname());\n employeedatamap.put(\"Gross Amount\", payregister.getGrossamount());\n employeedatamap.put(\"TDS\", payregister.getTds());\n totalded = Double.parseDouble(payregister.getTotaldeduction());\n tds = Double.parseDouble(payregister.getTds());\n otherded = totalded - tds;\n\n employeedatamap.put(\"Other Deduction\", otherded);\n employeedatamap.put(\"Net Amount\", payregister.getNeypay());\n net += Double.parseDouble(payregister.getNeypay());\n\n employeedatalist.add(employeedatamap);\n\n }\n\n Set < String > payregkeysets = employeedatalist.get(0).keySet();\n\n // ***** Style For Heading Row ****//\n XSSFFont font = workbook.createFont();\n font.setFontHeightInPoints((short) 14);\n font.setFontName(\"Arial\");\n font.setColor(IndexedColors.BLACK.getIndex());\n font.setBold(true);\n font.setItalic(false);\n\n CellStyle style = workbook.createCellStyle();\n style.setAlignment(HorizontalAlignment.LEFT);\n style.setVerticalAlignment(VerticalAlignment.CENTER);\n\n // Setting font to style\n style.setFont(font);\n\n XSSFFont partyfont = workbook.createFont();\n partyfont.setFontHeightInPoints((short) 10);\n partyfont.setFontName(\"Times New Roman\");\n partyfont.setColor(IndexedColors.BLACK.getIndex());\n partyfont.setBold(true);\n partyfont.setItalic(false);\n\n CellStyle partystyle = workbook.createCellStyle();\n partystyle.setAlignment(HorizontalAlignment.LEFT);\n partystyle.setVerticalAlignment(VerticalAlignment.CENTER);\n\n // Setting font to style\n partystyle.setFont(partyfont);\n\n CellStyle dtstyle = workbook.createCellStyle();\n dtstyle.setAlignment(HorizontalAlignment.RIGHT);\n dtstyle.setVerticalAlignment(VerticalAlignment.CENTER);\n\n // Setting font to style\n\n XSSFFont font1 = workbook.createFont();\n font1.setFontHeightInPoints((short) 9);\n font1.setFontName(\"Times New Roman\");\n font1.setColor(IndexedColors.BLACK.getIndex());\n font1.setBold(true);\n font1.setItalic(false);\n\n CellStyle empdetailsstyle = workbook.createCellStyle();\n empdetailsstyle.setAlignment(HorizontalAlignment.CENTER);\n empdetailsstyle.setVerticalAlignment(VerticalAlignment.CENTER);\n empdetailsstyle.setFillForegroundColor(IndexedColors.GREY_25_PERCENT.index);\n empdetailsstyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n empdetailsstyle.setBorderBottom(BorderStyle.THIN);\n empdetailsstyle.setBottomBorderColor(IndexedColors.BLACK.getIndex());\n empdetailsstyle.setBorderTop(BorderStyle.THIN);\n empdetailsstyle.setTopBorderColor(IndexedColors.BLACK.getIndex());\n empdetailsstyle.setBorderLeft(BorderStyle.THIN);\n empdetailsstyle.setLeftBorderColor(IndexedColors.WHITE.getIndex());\n // Setting font to style\n empdetailsstyle.setFont(font1);\n\n XSSFFont datafont = workbook.createFont();\n datafont.setFontHeightInPoints((short) 10);\n datafont.setFontName(\"Calibri\");\n datafont.setColor(IndexedColors.BLACK.getIndex());\n datafont.setBold(false);\n datafont.setItalic(false);\n\n XSSFFont datafont1 = workbook.createFont();\n datafont1.setFontHeightInPoints((short) 10);\n datafont1.setFontName(\"Calibri\");\n datafont1.setColor(IndexedColors.BLACK.getIndex());\n datafont1.setBold(true);\n datafont1.setItalic(false);\n\n CellStyle datastyle = workbook.createCellStyle();\n datastyle.setAlignment(HorizontalAlignment.LEFT);\n datastyle.setVerticalAlignment(VerticalAlignment.CENTER);\n datastyle.setFillForegroundColor(IndexedColors.WHITE.index);\n datastyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n datastyle.setBorderBottom(BorderStyle.THIN);\n datastyle.setBottomBorderColor(IndexedColors.BLACK.getIndex());\n datastyle.setBorderRight(BorderStyle.THIN);\n datastyle.setRightBorderColor(IndexedColors.BLACK.getIndex());\n datastyle.setBorderTop(BorderStyle.THIN);\n datastyle.setTopBorderColor(IndexedColors.BLACK.getIndex());\n datastyle.setBorderLeft(BorderStyle.THIN);\n datastyle.setLeftBorderColor(IndexedColors.BLACK.getIndex());\n // Setting font to style\n datastyle.setFont(datafont);\n\n CellStyle datastyle1 = workbook.createCellStyle();\n datastyle1.setAlignment(HorizontalAlignment.RIGHT);\n datastyle1.setVerticalAlignment(VerticalAlignment.CENTER);\n datastyle1.setFillForegroundColor(IndexedColors.WHITE.index);\n datastyle1.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n datastyle1.setBorderBottom(BorderStyle.THIN);\n datastyle1.setBottomBorderColor(IndexedColors.BLACK.getIndex());\n datastyle1.setBorderRight(BorderStyle.THIN);\n datastyle1.setRightBorderColor(IndexedColors.BLACK.getIndex());\n datastyle1.setBorderTop(BorderStyle.THIN);\n datastyle1.setTopBorderColor(IndexedColors.BLACK.getIndex());\n datastyle1.setBorderLeft(BorderStyle.THIN);\n datastyle1.setLeftBorderColor(IndexedColors.BLACK.getIndex());\n datastyle1.setDataFormat(HSSFDataFormat.getBuiltinFormat(\"#,##0.00\"));\n // Setting font to style\n datastyle1.setFont(datafont);\n\n CellStyle datastyle2 = workbook.createCellStyle();\n datastyle2.setAlignment(HorizontalAlignment.RIGHT);\n datastyle2.setVerticalAlignment(VerticalAlignment.CENTER);\n datastyle2.setFillForegroundColor(IndexedColors.WHITE.index);\n datastyle2.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n datastyle2.setBorderBottom(BorderStyle.THIN);\n datastyle2.setBottomBorderColor(IndexedColors.BLACK.getIndex());\n datastyle2.setBorderRight(BorderStyle.THIN);\n datastyle2.setRightBorderColor(IndexedColors.BLACK.getIndex());\n datastyle2.setBorderTop(BorderStyle.THIN);\n datastyle2.setTopBorderColor(IndexedColors.BLACK.getIndex());\n datastyle2.setBorderLeft(BorderStyle.THIN);\n datastyle2.setLeftBorderColor(IndexedColors.BLACK.getIndex());\n // Setting font to style\n datastyle2.setFont(datafont);\n\n CellStyle datastyle3 = workbook.createCellStyle();\n datastyle3.setAlignment(HorizontalAlignment.RIGHT);\n datastyle3.setVerticalAlignment(VerticalAlignment.CENTER);\n datastyle3.setFillForegroundColor(IndexedColors.WHITE.index);\n datastyle3.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n datastyle3.setBorderBottom(BorderStyle.THIN);\n datastyle3.setBottomBorderColor(IndexedColors.BLACK.getIndex());\n datastyle3.setBorderRight(BorderStyle.THIN);\n datastyle3.setRightBorderColor(IndexedColors.BLACK.getIndex());\n datastyle3.setBorderTop(BorderStyle.THIN);\n datastyle3.setTopBorderColor(IndexedColors.BLACK.getIndex());\n datastyle3.setBorderLeft(BorderStyle.THIN);\n datastyle3.setLeftBorderColor(IndexedColors.BLACK.getIndex());\n datastyle3.setDataFormat(HSSFDataFormat.getBuiltinFormat(\"#,##0.00\"));\n // Setting font to style\n datastyle3.setFont(datafont1);\n\n Row row = sheet.createRow(rowNum++);\n Cell headingcell = row.createCell(colNum++);\n\n headingcell.setCellValue(\"UPMRC Bank Advice Register(Salary) Report for M/O \" + calmonth + \" - \" + buname);\n headingcell.setCellStyle(style);\n sheet.addMergedRegion(CellRangeAddress.valueOf(\"A1:H1\"));\n\n row = sheet.createRow(rowNum++);\n colNum = 0;\n Cell headingcell1 = row.createCell(colNum++);\n headingcell1.setCellValue(\"Bank Advice # \" + banktype + \"   /          \");\n\n sheet.addMergedRegion(CellRangeAddress.valueOf(\"A2:E2\"));\n\n colNum = 5;\n Cell dtcell = row.createCell(colNum++);\n dtcell.setCellStyle(dtstyle);\n dtcell.setCellValue(\"Date\");\n Cell dtcell1 = row.createCell(colNum++);\n dtcell1.setCellValue(date);\n\n row = sheet.createRow(rowNum++);\n row = sheet.createRow(rowNum++);\n\n // Print all data from JSON along with headings\n row = sheet.createRow(rowNum++);\n colNum = 0;\n //int i = 0;\n for (String str: payregkeysets) {\n if (str.equals(\"S No\")) {\n colNum = 0;\n sheet.setColumnWidth(colNum, 2500);\n Cell cell = row.createCell(colNum);\n cell.setCellValue(str);\n cell.setCellStyle(empdetailsstyle);\n } else if (str.equals(\"Emp ID\")) {\n colNum = 1;\n sheet.setColumnWidth(colNum, 2500);\n Cell cell = row.createCell(colNum);\n cell.setCellValue(str);\n cell.setCellStyle(empdetailsstyle);\n } else if (str.equals(\"Employee Name\")) {\n colNum = 2;\n sheet.setColumnWidth(colNum, 6000);\n Cell cell = row.createCell(colNum);\n cell.setCellValue(str);\n cell.setCellStyle(empdetailsstyle);\n } else if (str.equals(\"Gross Amount\")) {\n colNum = 3;\n sheet.setColumnWidth(colNum, 6000);\n Cell cell = row.createCell(colNum);\n cell.setCellValue(str);\n cell.setCellStyle(empdetailsstyle);\n } else if (str.equals(\"TDS\")) {\n colNum = 4;\n sheet.setColumnWidth(colNum, 6000);\n Cell cell = row.createCell(colNum);\n cell.setCellValue(str);\n cell.setCellStyle(empdetailsstyle);\n } else if (str.equals(\"Other Deduction\")) {\n colNum = 5;\n sheet.setColumnWidth(colNum, 6000);\n Cell cell = row.createCell(colNum);\n cell.setCellValue(str);\n cell.setCellStyle(empdetailsstyle);\n } else if (str.equals(\"Net Amount\")) {\n colNum = 6;\n sheet.setColumnWidth(colNum, 6000);\n Cell cell = row.createCell(colNum);\n cell.setCellValue(str);\n cell.setCellStyle(empdetailsstyle);\n }\n }\n\n for (Map < String, Object > dt: employeedatalist) {\n row = sheet.createRow(rowNum++);\n colNum = 0;\n payregkeysets = dt.keySet();\n for (String str: payregkeysets) {\n //\t\t\t\t\tif (! (dt.get(\"Gross Amount\").toString().equals(\"0.0\") && dt.get(\"Other Deduction\").toString().equals(\"0.0\") && dt.get(\"Net Amount\").toString().equals(\"0.0\") && dt.get(\"TDS\").toString().equals(\"0.0\"))) \n //\t\t\t\t\t{\n if (str.equals(\"S No\")) {\n colNum = 0;\n Cell cell = row.createCell(colNum);\n cell.setCellType(CellType.NUMERIC);\n cell.setCellValue(dt.get(str).toString());\n cell.setCellStyle(datastyle2);\n } else if (str.equals(\"Emp ID\")) {\n colNum = 1;\n Cell cell = row.createCell(colNum);\n String coldata = dt.get(str).toString();\n if (alphanum.ifAlphaNumeric(coldata)) {\n int pno = Integer.parseInt(coldata);\n //\t\t\t\t\t\t\t\tSystem.out.println(\"Person Number ::: \"+pno);\n cell.setCellType(CellType.NUMERIC);\n cell.setCellValue(pno);\n cell.setCellStyle(datastyle2);\n } else {\n String pno = coldata;\n //\t\t\t\t\t\t\t\tSystem.out.println(\"Person Number ::: \"+pno);\n cell.setCellType(CellType.STRING);\n cell.setCellValue(pno);\n cell.setCellStyle(datastyle2);\n }\n } else if (str.equals(\"Employee Name\")) {\n colNum = 2;\n Cell cell = row.createCell(colNum);\n cell.setCellType(CellType.STRING);\n if (dt.get(str) == null) {\n cell.setCellValue(\"\");\n } else {\n cell.setCellValue(dt.get(str).toString());\n }\n cell.setCellStyle(datastyle);\n } else if (str.equals(\"Gross Amount\")) {\n colNum = 3;\n Cell cell = row.createCell(colNum);\n cell.setCellType(CellType.NUMERIC);\n cell.setCellValue(Double.parseDouble(dt.get(str).toString()));\n cell.setCellStyle(datastyle1);\n } else if (str.equals(\"TDS\")) {\n colNum = 4;\n Cell cell = row.createCell(colNum);\n cell.setCellType(CellType.NUMERIC);\n cell.setCellValue(Double.parseDouble(dt.get(str).toString()));\n cell.setCellStyle(datastyle1);\n } else if (str.equals(\"Other Deduction\")) {\n colNum = 5;\n Cell cell = row.createCell(colNum);\n cell.setCellType(CellType.NUMERIC);\n cell.setCellValue(Double.parseDouble(dt.get(str).toString()));\n cell.setCellStyle(datastyle1);\n } else if (str.equals(\"Net Amount\")) {\n colNum = 6;\n Cell cell = row.createCell(colNum);\n cell.setCellType(CellType.NUMERIC);\n cell.setCellValue(Double.parseDouble(dt.get(str).toString()));\n cell.setCellStyle(datastyle1);\n }\n\n //\t\t\t\t\t} else {\n //\t\t\t\t\t\tSystem.out.println(\":::: ROW NUMBER :::: \" + rowNum);\n //\t\t\t\t\t\tRow removingRow = sheet.getRow(rowNum);\n //\t\t\t\t\t\tif (removingRow != null) {\n //\t\t\t\t\t\t\t//\t\t\t\t sheet.removeRow(removingRow);\n //\n //\t\t\t\t\t\t}\n //\t\t\t\t\t}\n }\n }\n\n //\t\t\tSystem.out.println(\"Row Num ===> \" + rowNum);\n row = sheet.createRow(rowNum++);\n colNum = 0;\n\n Cell totcell = row.createCell(colNum++);\n String merged = \"A\" + rowNum + \":C\" + rowNum;\n sheet.addMergedRegion(CellRangeAddress.valueOf(merged));\n totcell.setCellValue(\"Total\");\n totcell.setCellStyle(datastyle3);\n\n colNum = 3;\n int rowNumm = rowNum - 1;\n Cell totgross = row.createCell(colNum++);\n String grossformula = \"SUM(D6:D\" + rowNumm + \")\";\n totgross.setCellFormula(grossformula);\n totgross.setCellStyle(datastyle3);\n\n Cell totOther = row.createCell(colNum++);\n String otherformula = \"SUM(E6:E\" + rowNumm + \")\";\n totOther.setCellFormula(otherformula);\n totOther.setCellStyle(datastyle3);\n\n Cell totnet = row.createCell(colNum++);\n String netformula = \"SUM(F6:F\" + rowNumm + \")\";\n totnet.setCellFormula(netformula);\n //net = totnet.getNumericCellValue();\n //\t\t\tSystem.out.println(\"NET ===> \"+net);\n totnet.setCellStyle(datastyle3);\n\n Cell totTDS = row.createCell(colNum++);\n String tdsformula = \"SUM(G6:G\" + rowNumm + \")\";\n totTDS.setCellFormula(tdsformula);\n totTDS.setCellStyle(datastyle3);\n\n row = sheet.createRow(rowNum++);\n\n row = sheet.createRow(rowNum++);\n colNum = 0;\n Cell partycell = row.createCell(colNum++);\n partycell.setCellValue(\"Total No. of Parties: - \" + count);\n partycell.setCellStyle(partystyle);\n\n row = sheet.createRow(rowNum++);\n colNum = 0;\n Cell partycell1 = row.createCell(colNum++);\n ConvertNumToWord cnum = new ConvertNumToWord();\n\n String numtowords = cnum.convertNumber((long) net);\n partycell1.setCellValue(\"Total Rs. \" + numtowords + \" Only. (Rs. \" + (long) net + \")\");\n partycell1.setCellStyle(partystyle);\n\n } else {\n XSSFFont font = workbook.createFont();\n font.setFontHeightInPoints((short) 14);\n font.setFontName(\"Arial\");\n font.setColor(IndexedColors.BLACK.getIndex());\n font.setBold(true);\n font.setItalic(false);\n\n CellStyle style = workbook.createCellStyle();\n style.setAlignment(HorizontalAlignment.LEFT);\n style.setVerticalAlignment(VerticalAlignment.CENTER);\n\n // Setting font to style\n style.setFont(font);\n\n Row row = sheet.createRow(rowNum++);\n Cell headingcell = row.createCell(colNum++);\n headingcell.setCellValue(\"UPMRC Bank Advice Register(Salary) Report for M/O \" + calmonth + \" - \" + buname);\n headingcell.setCellStyle(style);\n\n row = sheet.createRow(rowNum++);\n colNum = 0;\n Cell cell = row.createCell(colNum);\n cell.setCellValue(\"No Data Found!!!\");\n\n sheet.addMergedRegion(CellRangeAddress.valueOf(\"A1:H1\"));\n }\n\n workbook.write(stream);\n workbook.close();\n }", "title": "" }, { "docid": "24fac568360e57ad19a515e4d98ad5c8", "score": "0.5739498", "text": "@RequestMapping(params=\"exportXxzhxx\")\n\t@ResponseBody\n\tpublic void ExportXxzhxx(final HttpServletRequest request, final HttpServletResponse response) {\n\t\tHSSFWorkbook workBook = null;\n\t\t\n\t\ttry {\n\t\t\tString exportFileName = \"项目综合信息\";\n\t\t\texportFileName = new String(exportFileName.getBytes(\"gb2312\"), \"iso8859-1\");\n\t\t\t\n\t\t\tString templatepath = AppInit.appPath + \"WEB-INF\\\\template\\\\xmzhxxb.xls\";//此处为读取模版,需要自定义\n\t\t\tInputStream in = new FileInputStream(templatepath);\n\t\t\tif (in != null) {\n\t\t\t\tworkBook = new HSSFWorkbook(in);\n\t\t\t}\n\t\t\t\n\t\t\tHSSFSheet sheet = workBook.getSheetAt(0);\n\t\t\tString queryData = request.getParameter(\"exportQueryResultCondition\");\n\t\t\tJSONArray jsonList = Pub.doInitJson(queryData);\n\n\t\t\t// 默认样式【边框】\n\t\t\tHSSFCellStyle defaultStyle = workBook.createCellStyle();\n\t\t\tdefaultStyle.setBorderTop(HSSFCellStyle.BORDER_THIN);\n\t\t\tdefaultStyle.setBorderBottom(HSSFCellStyle.BORDER_THIN);\n\t\t\tdefaultStyle.setBorderLeft(HSSFCellStyle.BORDER_THIN);\n\t\t\tdefaultStyle.setBorderRight(HSSFCellStyle.BORDER_THIN);\n\t\t\t\n\t\t\t// 右对齐\n\t\t\tHSSFCellStyle rigthStyle = workBook.createCellStyle();\n\t\t\trigthStyle.setAlignment(HSSFCellStyle.ALIGN_RIGHT);\n\t\t\trigthStyle.setBorderTop(HSSFCellStyle.BORDER_THIN);\n\t\t\trigthStyle.setBorderBottom(HSSFCellStyle.BORDER_THIN);\n\t\t\trigthStyle.setBorderLeft(HSSFCellStyle.BORDER_THIN);\n\t\t\trigthStyle.setBorderRight(HSSFCellStyle.BORDER_THIN);\n\n\t\t\t// 居中对齐\n\t\t\tHSSFCellStyle centerStyle = workBook.createCellStyle();\n\t\t\tcenterStyle.setAlignment(HSSFCellStyle.ALIGN_CENTER);\n\t\t\tcenterStyle.setBorderTop(HSSFCellStyle.BORDER_THIN);\n\t\t\tcenterStyle.setBorderBottom(HSSFCellStyle.BORDER_THIN);\n\t\t\tcenterStyle.setBorderLeft(HSSFCellStyle.BORDER_THIN);\n\t\t\tcenterStyle.setBorderRight(HSSFCellStyle.BORDER_THIN);\n\t\t\t\n\t\t\t// 背景红色\n\t\t\tHSSFCellStyle redBackgroundStyle = workBook.createCellStyle();\n\t\t\tredBackgroundStyle.setAlignment(HSSFCellStyle.ALIGN_RIGHT);\n\t\t\tredBackgroundStyle.setFillForegroundColor(HSSFColor.RED.index);\n\t\t\tredBackgroundStyle.setFillPattern(HSSFCellStyle.SOLID_FOREGROUND);\n\t\t\tredBackgroundStyle.setAlignment(HSSFCellStyle.ALIGN_RIGHT);\n\t\t\tredBackgroundStyle.setBorderTop(HSSFCellStyle.BORDER_THIN);\n\t\t\tredBackgroundStyle.setBorderBottom(HSSFCellStyle.BORDER_THIN);\n\t\t\tredBackgroundStyle.setBorderLeft(HSSFCellStyle.BORDER_THIN);\n\t\t\tredBackgroundStyle.setBorderRight(HSSFCellStyle.BORDER_THIN);\n\t\t\t\n\t\t\t// 概算背景橙色\n\t\t\tHSSFCellStyle orangeBackgroundStyle = workBook.createCellStyle();\n\t\t\torangeBackgroundStyle.setAlignment(HSSFCellStyle.ALIGN_RIGHT);\n\t\t\torangeBackgroundStyle.setFillForegroundColor(HSSFColor.ORANGE.index);\n\t\t\torangeBackgroundStyle.setFillPattern(HSSFCellStyle.SOLID_FOREGROUND);\n\t\t\torangeBackgroundStyle.setAlignment(HSSFCellStyle.ALIGN_RIGHT);\n\t\t\torangeBackgroundStyle.setBorderTop(HSSFCellStyle.BORDER_THIN);\n\t\t\torangeBackgroundStyle.setBorderBottom(HSSFCellStyle.BORDER_THIN);\n\t\t\torangeBackgroundStyle.setBorderLeft(HSSFCellStyle.BORDER_THIN);\n\t\t\torangeBackgroundStyle.setBorderRight(HSSFCellStyle.BORDER_THIN);\n\t\t\t\n\t\t\t// 结算背景粉色(自定义)#FF7F7F[<div id='error' title='审减率超过20%'>\"+obj.JS_GCJE_SV+\"</div>]\n\t\t\tHSSFCellStyle pinkBackgroundStyle = workBook.createCellStyle();\n\t\t\tHSSFPalette customPalette = workBook.getCustomPalette();\n\t//\t\tHSSFColor customPinkColor = customPalette.addColor((byte)255, (byte)127, (byte)127);\n\t\t\tcustomPalette.setColorAtIndex(HSSFColor.PINK.index,(byte)255, (byte)127, (byte)127);\n\t\t\tpinkBackgroundStyle.setAlignment(HSSFCellStyle.ALIGN_RIGHT);\n\t\t\tpinkBackgroundStyle.setFillForegroundColor(HSSFColor.PINK.index);\n\t\t\tpinkBackgroundStyle.setFillPattern(HSSFCellStyle.SOLID_FOREGROUND);\n\t\t\tpinkBackgroundStyle.setBorderTop(HSSFCellStyle.BORDER_THIN);\n\t\t\tpinkBackgroundStyle.setBorderBottom(HSSFCellStyle.BORDER_THIN);\n\t\t\tpinkBackgroundStyle.setBorderLeft(HSSFCellStyle.BORDER_THIN);\n\t\t\tpinkBackgroundStyle.setBorderRight(HSSFCellStyle.BORDER_THIN);\n\t\t\t\n\t\t\t// 结算背景橙色(自定义)#FBC77D[<div id='exception' title='审减率超过15%,少于20%'>\"+obj.JS_GCJE_SV+\"</div>]\n\t\t\tHSSFCellStyle customOrangeBackgroundStyle = workBook.createCellStyle();\n\t//\t\tHSSFColor customOrangeColor = customPalette.addColor((byte)251, (byte)199, (byte)125); 这种方式在2007中可以用\n\t\t\tcustomPalette.setColorAtIndex(HSSFColor.LIGHT_ORANGE.index,(byte)251, (byte)199, (byte)125);\n\t\t\tcustomOrangeBackgroundStyle.setAlignment(HSSFCellStyle.ALIGN_RIGHT);\n\t\t\tcustomOrangeBackgroundStyle.setFillForegroundColor(HSSFColor.LIGHT_ORANGE.index);\n\t\t\tcustomOrangeBackgroundStyle.setFillPattern(HSSFCellStyle.SOLID_FOREGROUND);\n\t\t\tcustomOrangeBackgroundStyle.setBorderTop(HSSFCellStyle.BORDER_THIN);\n\t\t\tcustomOrangeBackgroundStyle.setBorderBottom(HSSFCellStyle.BORDER_THIN);\n\t\t\tcustomOrangeBackgroundStyle.setBorderLeft(HSSFCellStyle.BORDER_THIN);\n\t\t\tcustomOrangeBackgroundStyle.setBorderRight(HSSFCellStyle.BORDER_THIN);\n\t\t\t\n\t\t\t// 红色居中\n\t\t\tHSSFCellStyle redStyle = workBook.createCellStyle();\n\t\t\tHSSFFont redFont = workBook.createFont();\n\t\t\tredFont.setColor(HSSFColor.RED.index);\n\t\t\tredFont.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);\n\t\t\tredFont.setFontHeightInPoints((short)12);\n\t\t\tredFont.setFontName(\"黑体\");\n\t\t\tredStyle.setAlignment(HSSFCellStyle.ALIGN_CENTER);\n\t\t\tredStyle.setFont(redFont);\n\t\t\tredStyle.setBorderTop(HSSFCellStyle.BORDER_THIN);\n\t\t\tredStyle.setBorderBottom(HSSFCellStyle.BORDER_THIN);\n\t\t\tredStyle.setBorderLeft(HSSFCellStyle.BORDER_THIN);\n\t\t\tredStyle.setBorderRight(HSSFCellStyle.BORDER_THIN);\n\t\t\t\n\t\t\t// 绿色居中\n\t\t\tHSSFCellStyle greenStyle = workBook.createCellStyle();\n\t\t\tHSSFFont greenFont = workBook.createFont();\n\t\t\tgreenFont.setColor(HSSFColor.GREEN.index);\n\t\t\tgreenFont.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);\n\t\t\tgreenFont.setFontHeightInPoints((short)12);\n\t\t\tgreenFont.setFontName(\"黑体\");\n\t\t\tgreenStyle.setAlignment(HSSFCellStyle.ALIGN_CENTER);\n\t\t\tgreenStyle.setFont(greenFont);\n\t\t\tgreenStyle.setBorderTop(HSSFCellStyle.BORDER_THIN);\n\t\t\tgreenStyle.setBorderBottom(HSSFCellStyle.BORDER_THIN);\n\t\t\tgreenStyle.setBorderLeft(HSSFCellStyle.BORDER_THIN);\n\t\t\tgreenStyle.setBorderRight(HSSFCellStyle.BORDER_THIN);\n\n\t\t\t// 灰色居中\n\t\t\tHSSFCellStyle greyStyle = workBook.createCellStyle();\n\t\t\tHSSFFont greyFont = workBook.createFont();\n\t\t\tgreyFont.setColor(HSSFColor.GREY_40_PERCENT.index);\n\t\t\tgreyFont.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);\n\t\t\tgreyFont.setFontHeightInPoints((short)12);\n\t\t\tgreyFont.setFontName(\"黑体\");\n\t\t\tgreyStyle.setAlignment(HSSFCellStyle.ALIGN_CENTER);\n\t\t\tgreyStyle.setFont(greyFont);\n\t\t\tgreyStyle.setBorderTop(HSSFCellStyle.BORDER_THIN);\n\t\t\tgreyStyle.setBorderBottom(HSSFCellStyle.BORDER_THIN);\n\t\t\tgreyStyle.setBorderLeft(HSSFCellStyle.BORDER_THIN);\n\t\t\tgreyStyle.setBorderRight(HSSFCellStyle.BORDER_THIN);\n\n\t\t\t// 黄色居中\n\t\t\tHSSFCellStyle yellowStyle = workBook.createCellStyle();\n\t\t\tHSSFFont yellowFont = workBook.createFont();\n\t\t\tyellowFont.setColor(HSSFColor.YELLOW.index);\n\t\t\tyellowFont.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);\n\t\t\tyellowFont.setFontHeightInPoints((short)12);\n\t\t\tyellowFont.setFontName(\"黑体\");\n\t\t\tyellowStyle.setAlignment(HSSFCellStyle.ALIGN_CENTER);\n\t\t\tyellowStyle.setFont(yellowFont);\n\t\t\tyellowStyle.setBorderTop(HSSFCellStyle.BORDER_THIN);\n\t\t\tyellowStyle.setBorderBottom(HSSFCellStyle.BORDER_THIN);\n\t\t\tyellowStyle.setBorderLeft(HSSFCellStyle.BORDER_THIN);\n\t\t\tyellowStyle.setBorderRight(HSSFCellStyle.BORDER_THIN);\n\n\t\t\tMap<String, HSSFCellStyle> styleMap = new HashMap<String, HSSFCellStyle>();\n\t\t\tstyleMap.put(\"1\", greyStyle);\n\t\t\tstyleMap.put(\"2\", greenStyle);\n\t\t\tstyleMap.put(\"3\", greyStyle);\n\t\t\tstyleMap.put(\"4\", yellowStyle);\n\t\t\tstyleMap.put(\"5\", redStyle);\n\t\t\t\n\t\t\tHSSFPatriarch patriarch = sheet.createDrawingPatriarch();\n\t\t\tHSSFAnchor anchor = new HSSFClientAnchor(0,0,0,0,(short)3,3,(short)9,9);\n\t\t\t\n\t\t\tint r =3;//起始行\n\t\t\tint c = -1;//其实列\n\t\t\tHSSFCell cell = null;\n\t\t\tfor (int i = 0; i < jsonList.size(); i++) {\n\t\t\t\tHSSFRow row = sheet.createRow(r+i);\n\t\t\t\tJSONObject obj = (JSONObject)jsonList.get(i);\n\t\t\t\t/*\n\t\t\t\t// 序号\n\t\t\t\tcell = row.createCell(0);\n\t\t\t\tcell.setCellValue(i+1);\n\t\t\t\tcell.setCellStyle(defaultStyle);*/\n\t\t\t\tfor (int j = 1; j < 65; j++) {\n\t\t\t\t\tHSSFComment comment = null;\n\t\t\t\t\t\n\t\t\t\t\tswitch (j) {\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\t// 项目编号\n\t\t\t\t\t\tcell = row.createCell((c+1));\n\t\t\t\t\t\tcell.setCellValue(obj.getString(\"XMBH\"));\n\t\t\t\t\t\tcell.setCellStyle(centerStyle);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\t// 项目名称\n\t\t\t\t\t\tcell = row.createCell((c+2));\n\t\t\t\t\t\tcell.setCellValue(obj.getString(\"XMMC\"));\n\t\t\t\t\t\tcell.setCellStyle(defaultStyle);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\t// 建设位置\n\t\t\t\t\t\tcell = row.createCell((c+3));\n\t\t\t\t\t\tcell.setCellValue(obj.getString(\"JSDZ\"));\n\t\t\t\t\t\tcell.setCellStyle(defaultStyle);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 4:\n\t\t\t\t\t\t// 项管公司\n\t\t\t\t\t\tcell = row.createCell((c+4));\n\t\t\t\t\t\tif (\"\".equals(obj.getString(\"XMGLGS\"))) {\n\t\t\t\t\t\t\tcell.setCellValue(obj.getString(\"XMGLGS\"));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcell.setCellValue(obj.getString(\"XMGLGS_SV\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcell.setCellStyle(defaultStyle);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 5:\n\t\t\t\t\t\t// 标段名称\n\t\t\t\t\t\tcell = row.createCell((c+5));\n\t\t\t\t\t\tif (\"\".equals(obj.getString(\"BDMC\"))) {\n\t\t\t\t\t\t\tcell.setCellValue(MINUS);\n\t\t\t\t\t\t\tcell.setCellStyle(centerStyle);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcell.setCellValue(obj.getString(\"BDMC\"));\n\t\t\t\t\t\t\tcell.setCellStyle(defaultStyle);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 6:\n\t\t\t\t\t\t// 项目性质\n\t\t\t\t\t\tcell = row.createCell((c+6));\n\t\t\t\t\t\tif (\"\".equals(obj.getString(\"XMXZ\"))) {\n\t\t\t\t\t\t\tcell.setCellValue(obj.getString(\"XMXZ\"));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcell.setCellValue(obj.getString(\"XMXZ_SV\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcell.setCellStyle(centerStyle);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 7:\n\t\t\t\t\t\t// 年度目标\n\t\t\t\t\t\tcell = row.createCell((c+7));\n\t\t\t\t\t\tcell.setCellValue(obj.getString(\"NDMB\"));\n\t\t\t\t\t\tcell.setCellStyle(defaultStyle);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 8:\n\t\t\t\t\t\t// 已拆迁\n\t\t\t\t\t\tcell = row.createCell((c+8));\n\t\t\t\t\t\tString ycq = obj.getString(\"GC_YCQ\");\n\t\t\t\t\t\tcomment = patriarch.createComment(anchor);\n\t\t\t\t\t\tsetCellValue(styleMap, cell, ycq, comment);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 9:\n\t\t\t\t\t\t// 已排迁\n\t\t\t\t\t\tcell = row.createCell((c+9));\n\t\t\t\t\t\tString ypq = obj.getString(\"GC_YPQ\");\n\t\t\t\t\t\tcomment = patriarch.createComment(anchor);\n\t\t\t\t\t\tsetCellValue(styleMap, cell, ypq, comment);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 10:\n\t\t\t\t\t\t// 已开工\n\t\t\t\t\t\tcell = row.createCell((c+10));\n\t\t\t\t\t\tString ykg = obj.getString(\"GC_YKG\");\n\t\t\t\t\t\tcomment = patriarch.createComment(anchor);\n\t\t\t\t\t\tsetCellValue(styleMap, cell, ykg, comment);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 11:\n\t\t\t\t\t\t// 已完工\n\t\t\t\t\t\tcell = row.createCell((c+11));\n\t\t\t\t\t\tString ywg = obj.getString(\"GC_YWG\");\n\t\t\t\t\t\tcomment = patriarch.createComment(anchor);\n\t\t\t\t\t\tsetCellValue(styleMap, cell, ywg, comment);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 12:\n\t\t\t\t\t\t// 已交竣工\n\t\t\t\t\t\tcell = row.createCell((c+12));\n\t\t\t\t\t\tString yjjg = obj.getString(\"GC_YJJG\");\n\t\t\t\t\t\tcomment = patriarch.createComment(anchor);\n\t\t\t\t\t\tsetCellValue(styleMap, cell, yjjg, comment);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 13:\n\t\t\t\t\t\t// 可研批复\n\t\t\t\t\t\tcell = row.createCell((c+13));\n\t\t\t\t\t\tString kypf = obj.getString(\"SXBL_KYPF\");\n\t\t\t\t\t\tcomment = patriarch.createComment(anchor);\n\t\t\t\t\t\tsetCellValue(styleMap, cell, kypf, comment);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 14:\n\t\t\t\t\t\t// 土地划拨\n\t\t\t\t\t\tcell = row.createCell((c+14));\n\t\t\t\t\t\tString tdhb = obj.getString(\"SXBL_TDHB\");\n\t\t\t\t\t\tcomment = patriarch.createComment(anchor);\n\t\t\t\t\t\tsetCellValue(styleMap, cell, tdhb, comment);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 15:\n\t\t\t\t\t\t// 工程规划许可\n\t\t\t\t\t\tcell = row.createCell((c+15));\n\t\t\t\t\t\tString gcghxk = obj.getString(\"SXBL_GCGHXK\");\n\t\t\t\t\t\tcomment = patriarch.createComment(anchor);\n\t\t\t\t\t\tsetCellValue(styleMap, cell, gcghxk, comment);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 16:\n\t\t\t\t\t\t// 施工许可\n\t\t\t\t\t\tcell = row.createCell((c+16));\n\t\t\t\t\t\tString sgxk = obj.getString(\"SXBL_SGXK\");\n\t\t\t\t\t\tcomment = patriarch.createComment(anchor);\n\t\t\t\t\t\tsetCellValue(styleMap, cell, sgxk, comment);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 17:\n\t\t\t\t\t\t// 设计任务书样式\n\t\t\t\t\t\tcomment = patriarch.createComment(anchor);\n\t\t\t\t\t\tcell = row.createCell((c+17));\n\t\t\t\t\t\tString sjrws = obj.getString(\"SJ_SJRWS\");\n\t\t\t\t\t\tif (\"\".equals(sjrws)) {\n\t\t\t\t\t\t\tcomment.setString(new HSSFRichTextString(\"无\"));\n\t\t\t\t\t\t\tcell.setCellValue(NO);\n\t\t\t\t\t\t\tcell.setCellStyle(redStyle);\n\t\t\t\t\t\t\tcell.setCellComment(comment);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcomment.setString(new HSSFRichTextString(\"有\"));\n\t\t\t\t\t\t\tcell.setCellValue(YES);\n\t\t\t\t\t\t\tcell.setCellStyle(greenStyle);\n\t\t\t\t\t\t\tcell.setCellComment(comment);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 18:\n\t\t\t\t\t\t// 初设批复\n\t\t\t\t\t\tcell = row.createCell((c+18));\n\t\t\t\t\t\tString cspf = obj.getString(\"SJ_CSPF\");\n\t\t\t\t\t\tcomment = patriarch.createComment(anchor);\n\t\t\t\t\t\tsetCellValue(styleMap, cell, cspf, comment);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 19:\n\t\t\t\t\t\t// 拆迁图\n\t\t\t\t\t\tcell = row.createCell((c+19));\n\t\t\t\t\t\tString cqt = obj.getString(\"SJ_CQT\");\n\t\t\t\t\t\tcomment = patriarch.createComment(anchor);\n\t\t\t\t\t\tsetCellValue(styleMap, cell, cqt, comment);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 20:\n\t\t\t\t\t\t// 排迁图\n\t\t\t\t\t\tcell = row.createCell((c+20));\n\t\t\t\t\t\tString pqt = obj.getString(\"SJ_PQT\");\n\t\t\t\t\t\tcomment = patriarch.createComment(anchor);\n\t\t\t\t\t\tsetCellValue(styleMap, cell, pqt, comment);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 21:\n\t\t\t\t\t\t// 施工图\n\t\t\t\t\t\tcell = row.createCell((c+21));\n\t\t\t\t\t\tString sgt = obj.getString(\"SJ_SGT\");\n\t\t\t\t\t\tcomment = patriarch.createComment(anchor);\n\t\t\t\t\t\tsetCellValue(styleMap, cell, sgt, comment);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 22:\n\t\t\t\t\t\t// 变更数\n\t\t\t\t\t\tcell = row.createCell((c+22));\n\t\t\t\t\t\tcell.setCellValue(obj.getString(\"SJ_BGS\"));\n\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 23:\n\t\t\t\t\t\t// 拦标价\n\t\t\t\t\t\tcell = row.createCell((c+23));\n\t\t\t\t\t\tcell.setCellValue(obj.getString(\"LBJ\"));\n\t\t\t\t\t\tif (\"\".equals(obj.getString(\"LBJ\"))) {\n\t\t\t\t\t\t\tString cs = obj.getString(\"CS\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (\"\".equals(cs)) {\n\t\t\t\t\t\t\t\tcell.setCellValue(MINUS);\n\t\t\t\t\t\t\t\tcell.setCellStyle(greyStyle);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tDate sysDate = new Date();\n\t\t\t\t\t\t\t\tDate csDate = new java.text.SimpleDateFormat(\"yyyy-MM-dd\").parse(cs);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif (sysDate.after(csDate)) {\n\t\t\t\t\t\t\t\t\tcell.setCellValue(NO);\n\t\t\t\t\t\t\t\t\tcell.setCellStyle(redStyle);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tcell.setCellValue(MINUS);\n\t\t\t\t\t\t\t\t\tcell.setCellStyle(greyStyle);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcell.setCellValue(obj.getString(\"LBJ_SV\"));\n\t\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 24:\n\t\t\t\t\t\t// 设计单位\n\t\t\t\t\t\tcell = row.createCell((c+24));\n\t\t\t\t\t\tif (\"\".equals(obj.getString(\"ZB_SJDW\"))) {\n\t\t\t\t\t\t\tcell.setCellValue(MINUS);\n\t\t\t\t\t\t\tcell.setCellStyle(centerStyle);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcell.setCellValue(obj.getString(\"ZB_SJDW_SV\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 25:\n\t\t\t\t\t\t// 监理单位\n\t\t\t\t\t\tcell = row.createCell((c+25));\n\t\t\t\t\t\tif (\"\".equals(obj.getString(\"ZB_JLDW\"))) {\n\t\t\t\t\t\t\tString jldw = obj.getString(\"JLDW\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (\"\".equals(jldw)) {\n\t\t\t\t\t\t\t\tcell.setCellValue(MINUS);\n\t\t\t\t\t\t\t\tcell.setCellStyle(greyStyle);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tDate sysDate = new Date();\n\t\t\t\t\t\t\t\tDate jldwDate = new java.text.SimpleDateFormat(\"yyyy-MM-dd\").parse(jldw);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif (sysDate.after(jldwDate)) {\n\t\t\t\t\t\t\t\t\tcell.setCellValue(NO);\n\t\t\t\t\t\t\t\t\tcell.setCellStyle(redStyle);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tcell.setCellValue(MINUS);\n\t\t\t\t\t\t\t\t\tcell.setCellStyle(greyStyle);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcell.setCellValue(obj.getString(\"ZB_JLDW_SV\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 26:\n\t\t\t\t\t\t// 施工单位\n\t\t\t\t\t\tcell = row.createCell((c+26));\n\t\t\t\t\t\tif (\"\".equals(obj.getString(\"ZB_SGDW\"))) {\n\t\t\t\t\t\t\tString sgdw = obj.getString(\"SGDW\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (\"\".equals(sgdw)) {\n\t\t\t\t\t\t\t\tcell.setCellValue(MINUS);\n\t\t\t\t\t\t\t\tcell.setCellStyle(greyStyle);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tDate sysDate = new Date();\n\t\t\t\t\t\t\t\tDate sgdwDate = new java.text.SimpleDateFormat(\"yyyy-MM-dd\").parse(sgdw);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif (sysDate.after(sgdwDate)) {\n\t\t\t\t\t\t\t\t\tcell.setCellValue(NO);\n\t\t\t\t\t\t\t\t\tcell.setCellStyle(redStyle);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tcell.setCellValue(MINUS);\n\t\t\t\t\t\t\t\t\tcell.setCellStyle(greyStyle);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcell.setCellValue(obj.getString(\"ZB_SGDW_SV\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 27:\n\t\t\t\t\t\t// 排迁任务数/完成数\n\t\t\t\t\t\tcell = row.createCell((c+27));\n\t\t\t\t\t\tcell.setCellValue(obj.getString(\"PQ_RWS_WCS\"));\n\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\tcase 28:\n\t\t\t\t\t\t// 总合同金额(元)\n\t\t\t\t\t\tcell = row.createCell((c+28));\n\t\t\t\t\t\tcell.setCellValue(obj.getString(\"PQ_ZHTJE_SV\"));\n\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 29:\n\t\t\t\t\t\t// 已支付(元)\n\t\t\t\t\t\tcell = row.createCell((c+29));\n\t\t\t\t\t\tcell.setCellValue(obj.getString(\"PQ_YZF_SV\"));\n\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 30:\n\t\t\t\t\t\t// %\n\t\t\t\t\t\tcell = row.createCell((c+30));\n\t\t\t\t\t\tcell.setCellValue(obj.getString(\"PQ_BFB_SV\"));\n\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 31:\n\t\t\t\t\t\t// 总居民数/已完拆迁\n\t\t\t\t\t\tcell = row.createCell((c+31));\n\t\t\t\t\t\tif (\"0\".equals(obj.getString(\"XMBS\"))) {\n\t\t\t\t\t\t\tcell.setCellValue(obj.getString(\"ZS_ZJMS_JWCQ\"));\n\t\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcell.setCellValue(MINUS);\n\t\t\t\t\t\t\tcell.setCellStyle(greyStyle);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\tcase 32:\n\t\t\t\t\t\t// 总企业数/已完拆迁\n\t\t\t\t\t\tcell = row.createCell((c+32));\n\t\t\t\t\t\tif (\"0\".equals(obj.getString(\"XMBS\"))) {\n\t\t\t\t\t\t\tcell.setCellValue(obj.getString(\"ZS_ZQYS_YWCQ\"));\n\t\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcell.setCellValue(MINUS);\n\t\t\t\t\t\t\tcell.setCellStyle(greyStyle);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 33:\n\t\t\t\t\t\t// 征地面积/已完征地\n\t\t\t\t\t\tcell = row.createCell((c+33));\n\t\t\t\t\t\tif (\"0\".equals(obj.getString(\"XMBS\"))) {\n\t\t\t\t\t\t\tcell.setCellValue(obj.getString(\"ZS_ZDMJ_YWZD\"));\n\t\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcell.setCellValue(MINUS);\n\t\t\t\t\t\t\tcell.setCellStyle(greyStyle);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 34:\n\t\t\t\t\t\t// 拨入资金(元)\n\t\t\t\t\t\tcell = row.createCell((c+34));\n\t\t\t\t\t\tif (\"0\".equals(obj.getString(\"XMBS\"))) {\n\t\t\t\t\t\t\tcell.setCellValue(obj.getString(\"ZS_BRZJ_SV\"));\n\t\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcell.setCellValue(MINUS);\n\t\t\t\t\t\t\tcell.setCellStyle(greyStyle);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 35:\n\t\t\t\t\t\t// 已使用资金(元)\n\t\t\t\t\t\tcell = row.createCell((c+35));\n\t\t\t\t\t\tif (\"0\".equals(obj.getString(\"XMBS\"))) {\n\t\t\t\t\t\t\tcell.setCellValue(obj.getString(\"ZS_YSYZJ_SV\"));\n\t\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcell.setCellValue(MINUS);\n\t\t\t\t\t\t\tcell.setCellStyle(greyStyle);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 36:\n\t\t\t\t\t\t// 余额(元)\n\t\t\t\t\t\tcell = row.createCell((c+36));\n\t\t\t\t\t\tif (\"0\".equals(obj.getString(\"XMBS\"))) {\n\t\t\t\t\t\t\tdouble ye = Double.parseDouble(obj.getString(\"ZS_YE\"));\n\t\t\t\t\t\t\tif (ye >= 0) {\n\t\t\t\t\t\t\t\tcell.setCellValue(obj.getString(\"ZS_YE_SV\"));\n\t\t\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tcell.setCellValue(obj.getString(\"ZS_YE_SV\"));\n\t\t\t\t\t\t\t\tcell.setCellStyle(redBackgroundStyle);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcell.setCellValue(MINUS);\n\t\t\t\t\t\t\tcell.setCellStyle(greyStyle);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 37:\n\t\t\t\t\t\t// 已签合同数\n\t\t\t\t\t\tcell = row.createCell((c+37));\n\t\t\t\t\t\tcell.setCellValue(obj.getString(\"HT_JQHTS\"));\n\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 38:\n\t\t\t\t\t\t// 征收合同(虚拟)金额(元)\n\t\t\t\t\t\tcell = row.createCell((c+38));\n\t\t\t\t\t\tcell.setCellValue(obj.getString(\"HT_ZSHTJE_SV\"));\n\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 39:\n\t\t\t\t\t\t// 排迁合同金额(元)\n\t\t\t\t\t\tcell = row.createCell((c+39));\n\t\t\t\t\t\tcell.setCellValue(obj.getString(\"HT_PQHTJE_SV\"));\n\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 40:\n\t\t\t\t\t\t// 设计合同金额(元)\n\t\t\t\t\t\tcell = row.createCell((c+40));\n\t\t\t\t\t\tcell.setCellValue(obj.getString(\"HT_SJHTJE_SV\"));\n\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 41:\n\t\t\t\t\t\t// 监理合同金额(元)\n\t\t\t\t\t\tcell = row.createCell((c+41));\n\t\t\t\t\t\tcell.setCellValue(obj.getString(\"HT_JLHTJE_SV\"));\n\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 42:\n\t\t\t\t\t\t// 施工合同金额(元)\n\t\t\t\t\t\tcell = row.createCell((c+42));\n\t\t\t\t\t\tcell.setCellValue(obj.getString(\"HT_SGHTJE_SV\"));\n\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 43:\n\t\t\t\t\t\t// 其他合同金额(元)\n\t\t\t\t\t\tcell = row.createCell((c+43));\n\t\t\t\t\t\tcell.setCellValue(obj.getString(\"HT_QTHTJE_SV\"));\n\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 44:\n\t\t\t\t\t\t// 合同总金额(元)\n\t\t\t\t\t\tcell = row.createCell((c+44));\n\t\t\t\t\t\tcell.setCellValue(obj.getString(\"HT_ZHTJE_SV\"));\n\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 45:\n\t\t\t\t\t\t// 完成投资(元)\n\t\t\t\t\t\tcell = row.createCell((c+45));\n\t\t\t\t\t\tcell.setCellValue(obj.getString(\"HT_WCTZ_SV\"));\n\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 46:\n\t\t\t\t\t\t// %\n\t\t\t\t\t\tcell = row.createCell((c+46));\n\t\t\t\t\t\tcell.setCellValue(obj.getString(\"HT_BFB1_SV\"));\n\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 47:\n\t\t\t\t\t\t// 已支付(元)\n\t\t\t\t\t\tcell = row.createCell((c+47));\n\t\t\t\t\t\tcell.setCellValue(obj.getString(\"HT_YZF_SV\"));\n\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 48:\n\t\t\t\t\t\t// %\n\t\t\t\t\t\tcell = row.createCell((c+48));\n\t\t\t\t\t\tcell.setCellValue(obj.getString(\"HT_BFB2_SV\"));\n\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 49:\n\t\t\t\t\t\t// 投资估算(万元)工程\n\t\t\t\t\t\tcell = row.createCell((c+49));\n\t\t\t\t\t\tif (\"0\".equals(obj.getString(\"XMBS\"))) {\n\t\t\t\t\t\t\tcell.setCellValue(obj.getString(\"TZ_GC_SV\"));\n\t\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcell.setCellValue(MINUS);\n\t\t\t\t\t\t\tcell.setCellStyle(greyStyle);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 50:\n\t\t\t\t\t\t// 投资估算(万元)征拆\n\t\t\t\t\t\tcell = row.createCell((c+50));\n\t\t\t\t\t\tif (\"0\".equals(obj.getString(\"XMBS\"))) {\n\t\t\t\t\t\t\tcell.setCellValue(obj.getString(\"TZ_ZC_SV\"));\n\t\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcell.setCellValue(MINUS);\n\t\t\t\t\t\t\tcell.setCellStyle(greyStyle);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 51:\n\t\t\t\t\t\t// 投资估算(万元)其他\n\t\t\t\t\t\tcell = row.createCell((c+51));\n\t\t\t\t\t\tif (\"0\".equals(obj.getString(\"XMBS\"))) {\n\t\t\t\t\t\t\tcell.setCellValue(obj.getString(\"TZ_QT_SV\"));\n\t\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcell.setCellValue(MINUS);\n\t\t\t\t\t\t\tcell.setCellStyle(greyStyle);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 52:\n\t\t\t\t\t\t// 投资估算(万元)总投资\n\t\t\t\t\t\tcell = row.createCell((c+52));\n\t\t\t\t\t\tif (\"0\".equals(obj.getString(\"XMBS\"))) {\n\t\t\t\t\t\t\tcell.setCellValue(obj.getString(\"TZ_ZTZ_SV\"));\n\t\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcell.setCellValue(MINUS);\n\t\t\t\t\t\t\tcell.setCellStyle(greyStyle);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 53:\n\t\t\t\t\t\t// 概算信息(元)工程\n\t\t\t\t\t\tcell = row.createCell((c+53));\n\t\t\t\t\t\tif (\"0\".equals(obj.getString(\"XMBS\"))) {\n\t\t\t\t\t\t\tcell.setCellValue(obj.getString(\"GS_GC_SV\"));\n\t\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcell.setCellValue(MINUS);\n\t\t\t\t\t\t\tcell.setCellStyle(greyStyle);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 54:\n\t\t\t\t\t\t// 概算信息(元)征拆\n\t\t\t\t\t\tcell = row.createCell((c+54));\n\t\t\t\t\t\tif (\"0\".equals(obj.getString(\"XMBS\"))) {\n\t\t\t\t\t\t\tcell.setCellValue(obj.getString(\"GS_ZC_SV\"));\n\t\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcell.setCellValue(MINUS);\n\t\t\t\t\t\t\tcell.setCellStyle(greyStyle);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 55:\n\t\t\t\t\t\t// 概算信息(元)其他\n\t\t\t\t\t\tcell = row.createCell((c+55));\n\t\t\t\t\t\tif (\"0\".equals(obj.getString(\"XMBS\"))) {\n\t\t\t\t\t\t\tcell.setCellValue(obj.getString(\"GS_QT_SV\"));\n\t\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcell.setCellValue(MINUS);\n\t\t\t\t\t\t\tcell.setCellStyle(greyStyle);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 56:\n\t\t\t\t\t\t// 概算信息(元)总投资\n\t\t\t\t\t\tcell = row.createCell((c+56));\n\t\t\t\t\t\tif (\"0\".equals(obj.getString(\"XMBS\"))) {\n\t\t\t\t\t\t\tdouble gs_ztz = Double.parseDouble(obj.getString(\"GS_ZTZ\"));\n\t\t\t\t\t\t\tdouble tz_ztz = Double.parseDouble(obj.getString(\"TZ_ZTZ\"));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (gs_ztz > tz_ztz) {\n\t\t\t\t\t\t\t\tcell.setCellValue(obj.getString(\"GS_ZTZ_SV\"));\n\t\t\t\t\t\t\t\tcell.setCellStyle(orangeBackgroundStyle);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tcell.setCellValue(obj.getString(\"GS_ZTZ_SV\"));\n\t\t\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcell.setCellValue(MINUS);\n\t\t\t\t\t\t\tcell.setCellStyle(greyStyle);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 57:\n\t\t\t\t\t\t// 资金支付信息(元)工程费用\n\t\t\t\t\t\tcell = row.createCell((c+57));\n\t\t\t\t\t\tcell.setCellValue(obj.getString(\"ZJZF_GCFY_SV\"));\n\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 58:\n\t\t\t\t\t\t// 资金支付信息(元)征拆费用\n\t\t\t\t\t\tcell = row.createCell((c+58));\n\t\t\t\t\t\tcell.setCellValue(obj.getString(\"ZJZF_ZCFY_SV\"));\n\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 59:\n\t\t\t\t\t\t// 资金支付信息(元)其他费用\n\t\t\t\t\t\tcell = row.createCell((c+59));\n\t\t\t\t\t\tcell.setCellValue(obj.getString(\"ZJZF_QTFY_SV\"));\n\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 60:\n\t\t\t\t\t\t// 资金支付信息(元)总支付费用\n\t\t\t\t\t\tcell = row.createCell((c+60));\n\t\t\t\t\t\tcell.setCellValue(obj.getString(\"ZJZF_ZZFFY_SV\"));\n\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 61:\n\t\t\t\t\t\t// 结算信息(元)工程金额\n\t\t\t\t\t\tcell = row.createCell((c+61));\n\t\t\t\t\t\tdouble sjb = Double.parseDouble(obj.getString(\"SJB\"));\n\t\t\t\t\t\tif (sjb > 0.15 && sjb < 0.2) {\n\t\t\t\t\t\t\tcell.setCellValue(obj.getString(\"ZJZF_GCFY_SV\"));\n\t\t\t\t\t\t\tcell.setCellStyle(customOrangeBackgroundStyle);\n\t\t\t\t\t\t} else if (sjb > 0.2) {\n\t\t\t\t\t\t\tcell.setCellValue(obj.getString(\"ZJZF_GCFY_SV\"));\n\t\t\t\t\t\t\tcell.setCellStyle(pinkBackgroundStyle);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcell.setCellValue(obj.getString(\"ZJZF_GCFY_SV\"));\n\t\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 62:\n\t\t\t\t\t\t// 结算信息(元)征拆金额\n\t\t\t\t\t\tcell = row.createCell((c+62));\n\t\t\t\t\t\tcell.setCellValue(obj.getString(\"JS_ZCJE_SV\"));\n\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 63:\n\t\t\t\t\t\t// 结算信息(元)其他金额\n\t\t\t\t\t\tcell = row.createCell((c+63));\n\t\t\t\t\t\tcell.setCellValue(obj.getString(\"JS_QTJE_SV\"));\n\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 64:\n\t\t\t\t\t\t// 结算信息(元)总结算金额\n\t\t\t\t\t\tcell = row.createCell((c+64));\n\t\t\t\t\t\tcell.setCellValue(obj.getString(\"JS_ZJSJE_SV\"));\n\t\t\t\t\t\tcell.setCellStyle(rigthStyle);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t response.setHeader(\"Content-type\", \"application/vnd.ms-excel\");\n\t response.setHeader(\"Content-Disposition\", \"attachment; filename=\" + exportFileName + \".xls\");\n\t \n\t ServletOutputStream fileOut =response.getOutputStream(); \n\t workBook.write(fileOut); \n\t fileOut.flush(); \n\t fileOut.close(); \n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"[Info: ] User canceled - \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "976c253471a7b6f4e7fc9463962ead33", "score": "0.5738459", "text": "public Workbook createObjectComapreWorkbook(ObjectCompare oc, String src, String target) throws Exception{\r\n\t\tWorkbook wb = new HSSFWorkbook();\r\n\t\tcreateObjectCompareDetailSheet(wb, oc, src, target);\r\n\t\treturn wb;\r\n\t}", "title": "" }, { "docid": "3b22bc131656c8c51cecb2a08752588f", "score": "0.5728871", "text": "public <T> ByteArrayInputStream createFrom(final String sheetName, final List<T> data,\n final Class<T> model) throws IOException {\n\n try (Workbook workbook = new XSSFWorkbook();\n ByteArrayOutputStream out = new ByteArrayOutputStream();) {\n /*\n * CreationHelper helps us create instances of various things like DataFormat, Hyperlink,\n * RichTextString etc, in a format (HSSF, XSSF) independent way\n */\n final CreationHelper createHelper = workbook.getCreationHelper();\n\n final ColumnMetadataExtractor columnExtractor = new ColumnMetadataExtractor();\n final List<ColumnMetadata> columns = columnExtractor.extract(model);\n\n // Create a Sheet\n final Sheet sheet = workbook.createSheet(sheetName);\n\n // create headers\n createHeaders(sheet, columns);\n\n // Append Data\n addBeanData(sheet, columns, data);\n\n // // Write the output to a file\n // final FileOutputStream fileOut = new FileOutputStream(\"poi-generated-file.xlsx\");\n // workbook.write(fileOut);\n // fileOut.close();\n\n workbook.write(out);\n return new ByteArrayInputStream(out.toByteArray());\n }\n }", "title": "" }, { "docid": "c4a509b39784eb8495c819e48cfd1a83", "score": "0.57215875", "text": "protected Sheet createSheet () {\n Sheet sheet = Sheet.createDefault();\n Sheet.Set ps = sheet.get(Sheet.PROPERTIES);\n ps.put(createNameProperty(writeable));\n ps.put(createSchemaProperty(writeable));\n ps.put(createCatalogProperty(writeable));\n ps.put(createDatabaseProductNameProperty(writeable));\n ps.put(createDatabaseProductVersionProperty(writeable));\n ps.put(createDriverNameProperty(writeable));\n ps.put(createDriverVersionProperty(writeable));\n ps.put(createDriverProperty(writeable));\n ps.put(createUrlProperty(writeable));\n ps.put(createUsernameProperty(writeable));\n\n return sheet;\n }", "title": "" }, { "docid": "b6b32c8cd36168ec9604578c3511bb89", "score": "0.57153094", "text": "public Workbook createDocumentReportWorkbook(ArrayList<SFDocument> docList){\r\n\t\tWorkbook wb = new HSSFWorkbook();\r\n\t\tthis.createDocumentListSheet(wb, docList);\r\n\t\treturn wb;\r\n\t}", "title": "" }, { "docid": "50a69e90c4ac16f3c835c67717fcf965", "score": "0.5689355", "text": "private void leerArchivoExcel(String archivoDestino) {\n String dni=\"\",nombres=\"\",gen=\"\",facu=\"\",tari=\"\",semes=\"\";\n int countsemes=Integer.parseInt(control.DevolverRegistroDto(\"SELECT count(idsemestre) FROM semestre where estadosem=0;\",1));\n if(countsemes==0){\n JOptionPane.showMessageDialog(null, \"No hay Semestre Activo\");\n \n }else{\n semes=control.DevolverRegistroDto(\"SELECT idsemestre FROM semestre where estadosem=0;\",1);\n try {\n Workbook archivoExcel = Workbook.getWorkbook(new File(archivoDestino));\n for (int sheetNo = 0; sheetNo < archivoExcel.getNumberOfSheets(); sheetNo++) {\n Sheet hoja = archivoExcel.getSheet(sheetNo);\n int numFilas = hoja.getRows();\n //jProgressBar1.setMaximum(numFilas);\n //jProgressBar1.setValue(0);\n for (int fila = 1; fila < numFilas; fila++) {\n //jProgressBar1.setValue(fila);\n //jTextArea1.append(\"Leyendo Fila [\" + (fila + 1) + \"]\");\n dni = hoja.getCell(0, fila).getContents();\n if (dni.length() == 0) {\n //jTextArea1.append(\"Errror en el formato del DNI\\n\");\n JOptionPane.showMessageDialog(null, \"Error en Formato Archivo\");\n break;\n }\n nombres=hoja.getCell(1, fila).getContents();\n gen=hoja.getCell(2, fila).getContents();\n facu=hoja.getCell(3, fila).getContents();\n tari=hoja.getCell(4, fila).getContents();\n ///semes=hoja.getCell(5, fila).getContents();\n int vercantidad=Integer.parseInt(control.DevolverRegistroDto(\"select count(idalumnos),idalumnos from alumnos where dni='\"+dni+\"';\", 1));\n if(vercantidad==0){\n control.Sql=String.format(\"insert into alumnos values(null,'%s','%s','%s','sinImagen','%s');\", nombres,dni,gen,facu);\n int idpers=control.executeAndGetId(control.Sql);\n System.out.println(control.Sql);\n //String tari=control.DevolverRegistroDto(\"SELECT * FROM tarifas where categor=substring('\"+cbTarifa.getSelectedItem().toString()+\"', 1,1) and estadotar=0 and idtipocomensal=1;\",1);\n control.Sql=String.format(\"insert into consumidores values(null,'%s','%s','0','%s','1');\", \n tari,semes,\"\"+idpers) ;\n control.CrearRegistro(control.Sql );\n }else{\n int idpers=Integer.parseInt(control.DevolverRegistroDto(\"select count(idalumnos),idalumnos from alumnos where dni='\"+dni+\"';\", 2));\n System.out.println(\"SELECT count(*) from consumidores where idcomensales='\"+idpers+\"' and idtipocomensal='1' and idsemestre='\"+semes+\"' and estado='0';\");\n int vercom=Integer.parseInt(control.DevolverRegistroDto(\"SELECT count(*) from consumidores where idcomensales='\"+idpers+\"' and idtipocomensal='1' and idsemestre='\"+semes+\"' and estado='0';\", 1));\n \n \n if(vercom==0){\n control.Sql=String.format(\"insert into consumidores values(null,'%s','%s','0','%s','1');\",tari,semes,\"\"+idpers) ;\n control.CrearRegistro(control.Sql );\n }\n \n }\n }\n }\n MostrarBancos();\n } catch (Exception ioe) {\n ioe.printStackTrace();\n } \n }\n \n }", "title": "" }, { "docid": "f18ee02237f26b6de07da1e476a33e90", "score": "0.56791013", "text": "public static void main(String[] arge) {\n\t\tString srcPath = \"/DocCreate/src/main/resources/model/jira.xls\";\r\n\t\tFile file = new File(srcPath); \r\n//\t\tif(!file.exists()) {\r\n//\t\t\tfile.mkdirs();\r\n//\t\t}\r\n\t\tSystem.out.println(file.exists());\r\n\t}", "title": "" }, { "docid": "eb4dd90944c7da7b38cb6a8c827f6aeb", "score": "0.5671086", "text": "@FXML\r\n private void matex(ActionEvent event) throws ClassNotFoundException {\r\n if (alertboxConfirm(\"Export to Excel Spreadsheet\", \"Do you really want to Export ?\")) {\r\n try {\r\n\r\n DbConnection.openConnection();\r\n Connection con = DbConnection.getConnection();\r\n //Variable counter for keeping track of number of rows inserted. \r\n int counter = 1;\r\n FileOutputStream fileOut = null;\r\n //sql - query to be executed; filename - Name of the excel file \r\n\r\n String filename = \"C:/Users/Mahesh/Desktop/EXDKJ/RawMaterial.xls\";\r\n //Creation of New Work Book in Excel and sheet. \r\n HSSFWorkbook hwb = new HSSFWorkbook();\r\n HSSFSheet sheet = hwb.createSheet(\"new sheet\");\r\n //Creating Headings in Excel sheet. \r\n HSSFRow rowhead = sheet.createRow((short) 0);\r\n\r\n rowhead.createCell((short) 0).setCellValue(\"Date\");//Row Name5 \r\n rowhead.createCell((short) 1).setCellValue(\"Transection\");//Row Name2 \r\n rowhead.createCell((short) 2).setCellValue(\"Amount\");//Row Name3 \r\n\r\n ResultSet rs = con.createStatement().executeQuery(\"select m.date, m.materialType,(r.price*m.assignCount)\\n\"\r\n + \"from rawmaterial r , materialtender m\\n\"\r\n + \"where r.type = m.materialType\");\r\n\r\n while (rs.next()) {\r\n //Insertion in corresponding row \r\n HSSFRow row = sheet.createRow((int) counter);\r\n /* Activity, Username, TIME_OF_EVENT are row names \r\n * corresponding to table \r\n * in related Database. */\r\n\r\n row.createCell((short) 0).setCellValue(rs.getString(\"date\"));\r\n row.createCell((short) 1).setCellValue(rs.getString(\"materialType\"));\r\n row.createCell((short) 2).setCellValue(rs.getString(\"(r.price*m.assignCount)\"));\r\n\r\n counter++;\r\n try {\r\n //For performing write to Excel file \r\n fileOut = new FileOutputStream(filename);\r\n hwb.write(fileOut);\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n //Close all the parameters once writing to excel is compelte. \r\n fileOut.close();\r\n rs.close();\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n }", "title": "" }, { "docid": "eb74af63a10f713318890ecddcabf147", "score": "0.5666319", "text": "public boolean exporta(ArrayList<MultiLabelInstances> list_dataset_train ,ArrayList<MultiLabelInstances> list_dataset_test,String dataset_current_name, boolean es_de_tipo_meka)\n {\n try\n {\n DataOutputStream out = new DataOutputStream(new FileOutputStream(mi_file));\n \n WritableWorkbook wb = Workbook.createWorkbook(out);\n \n WritableSheet ws =wb.createSheet(dataset_current_name, 0);\n\n //Estilo centrado y con bordes\n WritableCellFormat wcf2 = new WritableCellFormat();\n wcf2.setAlignment(Alignment.CENTRE);\n wcf2.setBorder(jxl.format.Border.ALL,\n jxl.format.BorderLineStyle.DOTTED,\n jxl.format.Colour.GRAY_80);\n \n \n //encabezado de las columnas\n ws.setColumnView(0, 60);\n ws.addCell(new Label(0, 0, String.valueOf(\"Commun Metrics for\"),wcf2));\n \n ws.setColumnView(1, 15);\n ws.addCell(new Label(1, 0, String.valueOf(\"Train/Test set\"),wcf2));\n \n int ind_fila=1;\n \n ArrayList<Double> lista_valores;\n double current_double;\n String value_truncate,temp;\n \n for(String metrica : metric_list_comun)\n {\n lista_valores= new ArrayList();\n current_double=-1.0;\n \n \n for(int n=0; n<list_dataset_train.size();n++)\n {\n temp= util.get_value_metric(metrica, list_dataset_train.get(n), es_de_tipo_meka); //can be dataset_test too\n \n if(temp.equals( \"-1.0\" )) temp = util.get_alternative_metric(metrica, list_dataset_train.get(n), list_dataset_test.get(n));\n \n current_double = Double.parseDouble(temp);\n \n if(Double.isNaN(current_double) || current_double==-1.0)break;\n \n lista_valores.add(current_double);\n \n }\n if(Double.isNaN(current_double)) \n {\n ws.addCell(new Label(0, ind_fila, metrica,wcf2));\n ws.addCell(new Label(1, ind_fila, \"NaN\",wcf2));\n }\n \n else if (current_double==-1.0)\n {\n ws.addCell(new Label(0, ind_fila, metrica,wcf2));\n ws.addCell(new Label(1, ind_fila, \"-1.0\",wcf2));\n }\n \n else\n { \n value_truncate = util.Truncate_value(util.Get_media(lista_valores), 5);\n \n ws.addCell(new Label(0, ind_fila, metrica,wcf2));\n ws.addCell(new Label(1, ind_fila, value_truncate,wcf2));\n }\n ind_fila++;\n }\n \n \n \n ind_fila++;\n \n //encabezado de las columnas\n \n ws.addCell(new Label(0, ind_fila, String.valueOf(\"Metrics for\"),wcf2));\n ws.addCell(new Label(1, ind_fila, String.valueOf(\"Train set\"),wcf2));\n ws.addCell(new Label(2, ind_fila, String.valueOf(\"Test set\"),wcf2));\n \n ind_fila++;\n \n \n String value_test, value_train,value_truncate_test;\n double current_double_train,current_double_test;\n \n atributo[] imbalanced_data_train, label_frenquency_train;\n atributo[] imbalanced_data_test, label_frenquency_test;\n \n ArrayList<Double> lista_valores_test;\n MultiLabelInstances current_train, current_test;\n \n \n for(String metrica : metric_list_test)\n {\n lista_valores= new ArrayList();\n lista_valores_test=new ArrayList();\n \n current_double_train=-1.0; \n current_double_test=-1.0; \n \n for(int n=0; n<list_dataset_train.size();n++)\n {\n current_train = list_dataset_train.get(n);\n current_test = list_dataset_test.get(n);\n \n //TRAIN!!\n label_frenquency_train = util.Get_Frequency_x_label(current_train);\n label_frenquency_train = util.Ordenar_freq_x_attr(label_frenquency_train);// ordena de mayor a menor\n \n imbalanced_data_train = util.Get_data_imbalanced_x_label_inter_class(current_train,label_frenquency_train); \n \n //TEST!!\n label_frenquency_test = util.Get_Frequency_x_label(current_test);\n label_frenquency_test = util.Ordenar_freq_x_attr(label_frenquency_test);// ordena de mayor a menor\n \n imbalanced_data_test = util.Get_data_imbalanced_x_label_inter_class(current_test,label_frenquency_test); \n \n \n /*\n imbalanced_data_train = util.Get_data_imbalanced_x_label(list_dataset_train.get(n));\n imbalanced_data_test = util.Get_data_imbalanced_x_label(list_dataset_test.get(n));\n */ \n \n value_train= util.get_value_metric(metrica, list_dataset_train.get(n), es_de_tipo_meka); \n value_test= util.get_value_metric(metrica, list_dataset_test.get(n), es_de_tipo_meka); \n \n if(value_test.equals( \"-1.0\" )) value_test = util.get_alternative_metric(metrica, list_dataset_train.get(n), list_dataset_test.get(n));\n \n if(value_train.equals( \"-1.0\" )) value_train = util.get_value_metric_imbalanced(metrica, list_dataset_train.get(n), imbalanced_data_train);\n if(value_test.equals( \"-1.0\" )) value_test = util.get_value_metric_imbalanced(metrica, list_dataset_test.get(n), imbalanced_data_test);\n \n current_double_train = Double.parseDouble(value_train);\n current_double_test = Double.parseDouble(value_test);\n \n if(!(Double.isNaN(current_double_train)))lista_valores.add(current_double_train);\n if(!(Double.isNaN(current_double_test)))lista_valores_test.add(current_double_test); \n \n \n }\n \n if(lista_valores.isEmpty())//train \n {\n if(lista_valores_test.isEmpty())\n {\n ws.addCell(new Label(0, ind_fila, metrica,wcf2));\n ws.addCell(new Label(1, ind_fila, \"NaN\",wcf2));\n ws.addCell(new Label(2, ind_fila, \"NaN\",wcf2));\n }\n else \n {\n value_truncate_test = util.Truncate_value(util.Get_media(lista_valores_test), 5);\n\n ws.addCell(new Label(0, ind_fila, metrica,wcf2));\n ws.addCell(new Label(1, ind_fila, \"NaN\",wcf2));\n ws.addCell(new Label(2, ind_fila, value_truncate_test,wcf2)); \n }\n \n }\n \n else\n { \n if(lista_valores_test.isEmpty())\n {\n value_truncate = util.Truncate_value(util.Get_media(lista_valores), 5);\n \n ws.addCell(new Label(0, ind_fila, metrica,wcf2));\n ws.addCell(new Label(1, ind_fila, value_truncate,wcf2));\n ws.addCell(new Label(2, ind_fila, \"NaN\",wcf2)); \n }\n else\n {\n \n if(metrica.equals(\"Number of unseen classes\") || metrica.equals(\"Ratio of unseen classes\"))\n {\n value_truncate_test = util.Truncate_value(util.Get_media(lista_valores_test), 5);\n \n ws.addCell(new Label(0, ind_fila, metrica,wcf2));\n ws.addCell(new Label(1, ind_fila, \"NaN\",wcf2));\n ws.addCell(new Label(2, ind_fila, value_truncate_test,wcf2)); \n }\n \n else\n {\n value_truncate = util.Truncate_value(util.Get_media(lista_valores), 5);\n value_truncate_test = util.Truncate_value(util.Get_media(lista_valores_test), 5);\n\n ws.addCell(new Label(0, ind_fila, metrica,wcf2));\n ws.addCell(new Label(1, ind_fila, value_truncate,wcf2));\n ws.addCell(new Label(2, ind_fila, value_truncate_test,wcf2)); \n }\n }\n }\n ind_fila++;\n }\n \n wb.write();\n wb.close();\n return true;\n \n }\n catch(IOException | WriteException e)\n {\n return false;\n } \n \n }", "title": "" }, { "docid": "ea356e901d3b39a74d61ce8a78be9854", "score": "0.56520015", "text": "public void WriteBankModRegister(AllBankDetails[] allBankDetails, String bus_name, String banktype,\n String natureemp, ServletOutputStream stream) throws IOException {\n int count = 0;\n\n XSSFWorkbook workbook = new XSSFWorkbook();\n XSSFSheet sheet = workbook.createSheet(\"Sheet 1\");\n\n sheet.addIgnoredErrors(CellRangeAddress.valueOf(\"A1:XFD1048576\"), IgnoredErrorType.NUMBER_STORED_AS_TEXT);\n int rowNum = 0;\n int colNum = 0;\n\n if (allBankDetails.length != 0) {\n List < AllBankDetails > bankdetails = Arrays.asList(allBankDetails);\n\n LinkedHashMap < String, Object > employeedatamap = null;\n List < Map < String, Object >> employeedatalist = new ArrayList < > ();\n\n for (AllBankDetails bankdet: bankdetails) {\n count++;\n employeedatamap = new LinkedHashMap < > ();\n employeedatamap.put(\"S. No\", count);\n employeedatamap.put(\"Emp ID\", bankdet.getPersonnumber());\n employeedatamap.put(\"Employee Name\", bankdet.getName());\n employeedatamap.put(\"Employee Category\", bankdet.getNatureofemployement());\n employeedatamap.put(\"Previous Bank Name\", bankdet.getPrevbankname());\n employeedatamap.put(\"Previous Bank Account No\", bankdet.getPrevtbankaccountnumber());\n employeedatamap.put(\"Previous IFSC Code\", bankdet.getPrevbranchifsccode());\n employeedatamap.put(\"Previous Start Date\", \"\");\n employeedatamap.put(\"Previous End Date\", \"\");\n employeedatamap.put(\"Current Bank Name\", bankdet.getCurrentbankname());\n employeedatamap.put(\"Current Bank Acc No\", bankdet.getCurrentbankaccountnumber());\n employeedatamap.put(\"Current IFSC Code\", bankdet.getCurrentbranchifsccode());\n employeedatamap.put(\"Current Start Date\", \"\");\n employeedatamap.put(\"Current End Date\", \"\");\n\n employeedatalist.add(employeedatamap);\n }\n\n Set < String > payregkeysets = employeedatalist.get(0).keySet();\n\n // ***** Style For Heading Row ****//\n XSSFFont headingfont = workbook.createFont();\n headingfont.setFontHeightInPoints((short) 14);\n headingfont.setFontName(\"Calibri\");\n headingfont.setColor(IndexedColors.BLACK.getIndex());\n headingfont.setBold(true);\n headingfont.setItalic(false);\n\n CellStyle headingstyle = workbook.createCellStyle();\n headingstyle.setAlignment(HorizontalAlignment.LEFT);\n headingstyle.setVerticalAlignment(VerticalAlignment.CENTER);\n\n // Setting font to style\n headingstyle.setFont(headingfont);\n\n XSSFFont headingfont1 = workbook.createFont();\n headingfont1.setFontHeightInPoints((short) 10);\n headingfont1.setFontName(\"Calibri\");\n headingfont1.setColor(IndexedColors.BLACK.getIndex());\n headingfont1.setBold(true);\n headingfont1.setItalic(false);\n\n CellStyle headingstyle1 = workbook.createCellStyle();\n headingstyle1.setAlignment(HorizontalAlignment.LEFT);\n headingstyle1.setVerticalAlignment(VerticalAlignment.CENTER);\n headingstyle1.setBorderTop(BorderStyle.THIN);\n headingstyle1.setTopBorderColor(IndexedColors.BLACK.getIndex());\n headingstyle1.setBorderRight(BorderStyle.THIN);\n headingstyle1.setRightBorderColor(IndexedColors.BLACK.getIndex());\n headingstyle1.setBorderBottom(BorderStyle.THIN);\n headingstyle1.setBottomBorderColor(IndexedColors.BLACK.getIndex());\n headingstyle1.setBorderLeft(BorderStyle.THIN);\n headingstyle1.setLeftBorderColor(IndexedColors.BLACK.getIndex());\n\n // Setting font to style\n headingstyle1.setFont(headingfont1);\n\n Row row = sheet.createRow(rowNum++);\n Cell headingcell = row.createCell(colNum++);\n\n headingcell.setCellValue(\"UPMRC Bank MOD Report for \" + natureemp + \" Employees of \" + bus_name + \" having \" +\n banktype + \" account\");\n headingcell.setCellStyle(headingstyle);\n sheet.addMergedRegion(CellRangeAddress.valueOf(\"A1:N1\"));\n\n row = sheet.createRow(rowNum++);\n colNum = 0;\n Cell headingCell1 = row.createCell(colNum++);\n headingCell1.setCellValue(\"\");\n sheet.addMergedRegion(CellRangeAddress.valueOf(\"A2:D2\"));\n\n Cell headingCell2 = row.createCell(colNum++);\n headingCell2.setCellValue(\"Old Bank Details\");\n headingCell2.setCellStyle(headingstyle1);\n sheet.addMergedRegion(CellRangeAddress.valueOf(\"E2:I2\"));\n\n Cell headingCell3 = row.createCell(colNum++);\n headingCell3.setCellValue(\"New Bank Details\");\n headingCell3.setCellStyle(headingstyle1);\n sheet.addMergedRegion(CellRangeAddress.valueOf(\"J2:N2\"));\n\n // Print all data from JSON along with headings\n row = sheet.createRow(rowNum++);\n colNum = 0;\n int i = 0;\n for (String str: payregkeysets) {\n Cell cell = row.createCell(colNum++);\n cell.setCellValue(str);\n cell.setCellStyle(headingstyle1);\n if (colNum == 0 || colNum == 1) {\n sheet.setColumnWidth(i, 2500);\n } else {\n sheet.setColumnWidth(i, 6000);\n }\n i++;\n }\n\n for (Map < String, Object > dt: employeedatalist) {\n row = sheet.createRow(rowNum++);\n colNum = 0;\n payregkeysets = dt.keySet();\n for (String str: payregkeysets) {\n Cell cell = row.createCell(colNum);\n if (colNum == 0) {\n if (dt.get(str) != null) {\n cell.setCellType(CellType.NUMERIC);\n cell.setCellValue(dt.get(str).toString());\n } else {\n cell.setCellType(CellType.NUMERIC);\n cell.setCellValue(\"\");\n }\n\n // cell.setCellStyle(datastyle2);\n } else if (colNum == 1) {\n String coldata = \"\";\n\n if (dt.get(str) != null) {\n coldata = dt.get(str).toString();\n if (alphanum.ifAlphaNumeric(coldata)) {\n int pno = Integer.parseInt(coldata);\n //\t\t\t\t\t\t\t\tSystem.out.println(\"Person Number ::: \"+pno);\n cell.setCellType(CellType.NUMERIC);\n cell.setCellValue(pno);\n // cell.setCellStyle(datastyle2);\n } else {\n String pno = coldata;\n //\t\t\t\t\t\t\t\tSystem.out.println(\"Person Number ::: \"+pno);\n cell.setCellType(CellType.STRING);\n cell.setCellValue(pno);\n // cell.setCellStyle(datastyle2);\n //\t\t\t\t\t\t\t\tcontinue;\n }\n } else {\n cell.setCellValue(\"\");\n }\n\n } else {\n if (dt.get(str) != null) {\n cell.setCellType(CellType.STRING);\n cell.setCellValue(dt.get(str).toString());\n } else {\n cell.setCellValue(\"\");\n }\n\n //\t\t\t\t\t\tcell.setCellStyle(datastyle);\n }\n colNum++;\n }\n }\n } else {\n Row row = sheet.createRow(rowNum);\n Cell cell = row.createCell(colNum);\n cell.setCellValue(\"No Data Found!!!\");\n }\n\n workbook.write(stream);\n workbook.close();\n }", "title": "" }, { "docid": "c6f3b3dae135ec2bd3f192ae9b241507", "score": "0.56325215", "text": "@RequestMapping(value = \"/generateFaciIndiExcel/{userType}/{reportName}\", method = RequestMethod.GET)\r\n\tpublic void generateFaciIndiExcel(@PathVariable(\"userType\") String userType,\r\n\t\t\t@PathVariable(\"reportName\") String reportName,\r\n\t\t\tHttpServletRequest request, HttpServletResponse response) {\r\n\t\tLOGGER.info(\">>>>>> FacilitatorIndividualReportController.generateFaciIndiExcel\");\r\n\t\tServletOutputStream print = null;\r\n\t\tInputStream is = null;\r\n\t\ttry {\r\n\t\t\tFile file = new File(\"report.xls\");\r\n\t\t\tWorkbookSettings wbSettings = new WorkbookSettings();\r\n\t\t\twbSettings.setLocale(new Locale(\"en\", \"EN\"));\r\n\t\t\tWritableWorkbook workbook = Workbook.createWorkbook(file, wbSettings);\r\n\t\t\tworkbook.createSheet(\"Report\", 0);\r\n\t\t\tWritableSheet excelSheet = workbook.getSheet(0);\r\n\t\t\texcelSheet.setColumnView(0, 26);\r\n\t\t\texcelSheet.setColumnView(1, 26);\r\n\t\t\texcelSheet.setColumnView(2, 26);\r\n\t\t\texcelSheet.setColumnView(3, 26);\r\n\t\t\texcelSheet.setColumnView(4, 26);\r\n\t\t\tcreateLabelFaciIndi(excelSheet,0);\r\n\t\t\tcreateReportFaciIndi(excelSheet,userType);\r\n\t\t\tworkbook.write();\r\n\t\t\tworkbook.close();\r\n\t\t\tprint = response.getOutputStream();\r\n\t\t\tbyte[] buf = new byte[8192];\r\n\t is = new FileInputStream(file);\r\n\t int c = 0;\r\n\t while ((c = is.read(buf, 0, buf.length)) > 0) {\r\n\t \tprint.write(buf, 0, c);\r\n\t \tprint.flush();\r\n\t }\r\n\t response.setContentType(\"application/xls\");\r\n\t response.setHeader(\"Content-Disposition\", \"attachment;filename=myFile.xls\");\r\n\t response.setHeader(\"Pragma\", \"cache\");\r\n\t response.setHeader(\"Cache-control\", \"private, max-age=0\");\r\n\t is.close();\r\n\t LOGGER.info(\"<<<<<< FacilitatorIndividualReportController.generateFaciIndiExcel\");\r\n\t\t} catch (Exception ex) {\r\n\t\t\tLOGGER.error(ex.getLocalizedMessage());\r\n\t\t}\t\r\n\t}", "title": "" }, { "docid": "a15eb83c7424242d486bf8a49dd7ad3f", "score": "0.56226826", "text": "public static void main(String[] args) throws Exception {\n FileInputStream FIS = new FileInputStream(\"C:\\\\Selenium\\\\Testdata.xlsx\");\n //XSSFWorkbook workbook = new XSSFWorkBook(FIS);\n // XSSFSheet sheet = workbook\n\t}", "title": "" }, { "docid": "e2d0765151d8616e00f9774c15c77d60", "score": "0.56190556", "text": "@Test\n public void testCreateSheetWithTestData() throws Exception {\n\t\tMap<String, String> keyValues = new HashMap<>();\n\t\tString path = \"D:\\\\project\\\\RA\\\\mywork\\\\WebClient-Localization\\\\using_excel\\\\testFile.xlsx\";\n\t\tfillValues(keyValues);\n\t\ttestClass.createSheetWithTestData(path, keyValues);\n }", "title": "" }, { "docid": "a1379f2d79066fecd026bb0732ef0b45", "score": "0.5617796", "text": "public Workbook createCustomLabelReportWorkbook(ArrayList<SFCustomLabel> labelList){\r\n\t\tWorkbook wb = new HSSFWorkbook();\r\n\t\tthis.createCustomLabelListSheet(wb, labelList);\r\n\t\treturn wb;\r\n\t}", "title": "" }, { "docid": "949c811bf6a8f94a11fb32e7ee22a2cd", "score": "0.5613028", "text": "public static void main(String[] args) throws IOException {\n\t System.out.println(\"inicio\");\n\t writeXLSXFile(1, 14);\n\t System.out.println(\"terminado\");\n\t }", "title": "" }, { "docid": "d71609e46387932f72f8e56cc30fb6e5", "score": "0.5610412", "text": "public void WriteNPSReport(NPSModel data[], String buname, String calmonth, ServletOutputStream stream)\n throws IOException {\n\n calmonth = calmonth.substring(calmonth.indexOf(\"-\") + 1);\n String month = calmonth.substring(0, 3);\n String year = calmonth.substring(calmonth.indexOf(\"-\") + 1);\n int count = 0;\n XSSFWorkbook workbook = new XSSFWorkbook();\n XSSFSheet sheet = workbook.createSheet(\"Sheet 1\");\n sheet.addIgnoredErrors(CellRangeAddress.valueOf(\"A1:XFD1048576\"), IgnoredErrorType.NUMBER_STORED_AS_TEXT);\n int rowNum = 0;\n int colNum = 0;\n int m = 0;\n switch (month) {\n case \"JAN\":\n m = 1;\n break;\n case \"FEB\":\n m = 2;\n break;\n case \"MAR\":\n m = 3;\n break;\n case \"APR\":\n m = 4;\n break;\n case \"MAY\":\n m = 5;\n break;\n case \"JUN\":\n m = 6;\n break;\n case \"JUL\":\n m = 7;\n break;\n case \"AUG\":\n m = 8;\n break;\n case \"SEP\":\n m = 9;\n break;\n case \"OCT\":\n m = 10;\n break;\n case \"NOV\":\n m = 11;\n break;\n case \"DEC\":\n m = 12;\n break;\n }\n\n if (data.length != 0) {\n List < NPSModel > preg = Arrays.asList(data);\n\n LinkedHashMap < String, Object > employeedatamap = null;\n List < Map < String, Object >> employeedatalist = new ArrayList < > ();\n\n for (NPSModel npsregister: preg) {\n count++;\n employeedatamap = new LinkedHashMap < > ();\n employeedatamap.put(\"Sr.No.\", count);\n employeedatamap.put(\"CBO REG NO\", \"6521616\");\n employeedatamap.put(\"Emp.No.\", npsregister.getPersonnumber());\n employeedatamap.put(\"Emp Type\", npsregister.getNatureofempl());\n employeedatamap.put(\"Name of Officials\", npsregister.getPersonname());\n employeedatamap.put(\"Post Name \", npsregister.getPosition());\n employeedatamap.put(\"PRAN No.\", npsregister.getPrannumber());\n employeedatamap.put(\"Parent Deptt\", npsregister.getDeptname());\n employeedatamap.put(\"Pay Scale \", npsregister.getGradename());\n employeedatamap.put(\"Employer Contribution \\n {14% of Basic+DA and 2.5% of Basic }\",\n npsregister.getNps());\n employeedatamap.put(\"Employee Contribution \\n {10% of Basic+DA & 7.5% of Basic }\",\n npsregister.getSnps());\n employeedatamap.put(\"Total\", 0);\n // employeedatamap.put(\"CONTRIBUTION TYPE A/C/O C=Regular contribution,\n // A=Arrears, O= Adhoc\", \"0\");\n // employeedatamap.put(\"Month\", month);\n\n employeedatamap.put(\"CONTRIBUTION TYPE A/C/O C=Regular contribution, A=Arrears, O= Adhoc\", \"C\");\n employeedatamap.put(\"Month\", m);\n employeedatamap.put(\"Contribution Year\", year);\n employeedatalist.add(employeedatamap);\n }\n\n Set < String > payregkeysets = employeedatalist.get(0).keySet();\n\n // ***** Style For Heading Row ****//\n XSSFFont font = workbook.createFont();\n font.setFontHeightInPoints((short) 18);\n font.setFontName(\"Calibri\");\n font.setColor(IndexedColors.BLACK.getIndex());\n font.setBold(true);\n font.setUnderline(HSSFFont.U_SINGLE);\n font.setItalic(false);\n\n CellStyle style = workbook.createCellStyle();\n style.setAlignment(HorizontalAlignment.CENTER);\n style.setVerticalAlignment(VerticalAlignment.CENTER);\n style.setBorderTop(BorderStyle.THIN);\n style.setTopBorderColor(IndexedColors.BLACK.getIndex());\n style.setBorderBottom(BorderStyle.THIN);\n style.setBottomBorderColor(IndexedColors.BLACK.getIndex());\n style.setBorderLeft(BorderStyle.THIN);\n style.setLeftBorderColor(IndexedColors.BLACK.getIndex());\n style.setBorderRight(BorderStyle.THIN);\n style.setRightBorderColor(IndexedColors.BLACK.getIndex());\n // Setting font to style\n style.setFont(font);\n\n // heading row 1\n Row row = sheet.createRow(rowNum++);\n Cell headingCell = row.createCell(colNum++);\n headingCell.setCellValue(\"Uttar Pradesh Metro Rail Corporation Limited\");\n sheet.addMergedRegion(CellRangeAddress.valueOf(\"A1:Q1\"));\n headingCell.setCellStyle(style);\n\n // heading row 2\n row = sheet.createRow(rowNum++);\n colNum = 0;\n Cell headingCell2 = row.createCell(colNum++);\n headingCell2.setCellValue(\n \"Deductions and Contribution of NPS for the staff deputed from various Department to LMRC from salary in \" +\n calmonth);\n sheet.addMergedRegion(CellRangeAddress.valueOf(\"A2:Q2\"));\n headingCell2.setCellStyle(style);\n\n // ***** Style For Data Heading Row ****//\n XSSFFont dataheadingfont = workbook.createFont();\n dataheadingfont.setFontHeightInPoints((short) 11);\n dataheadingfont.setFontName(\"Calibri\");\n dataheadingfont.setColor(IndexedColors.BLACK.getIndex());\n dataheadingfont.setBold(true);\n // dataheadingfont.setUnderline(HSSFFont.U_SINGLE);\n dataheadingfont.setItalic(false);\n\n CellStyle dataheadingstyle = workbook.createCellStyle();\n dataheadingstyle.setWrapText(true);\n dataheadingstyle.setAlignment(HorizontalAlignment.CENTER);\n dataheadingstyle.setVerticalAlignment(VerticalAlignment.CENTER);\n dataheadingstyle.setBorderTop(BorderStyle.THIN);\n dataheadingstyle.setTopBorderColor(IndexedColors.BLACK.getIndex());\n dataheadingstyle.setBorderBottom(BorderStyle.THIN);\n dataheadingstyle.setBottomBorderColor(IndexedColors.BLACK.getIndex());\n dataheadingstyle.setBorderLeft(BorderStyle.THIN);\n dataheadingstyle.setLeftBorderColor(IndexedColors.BLACK.getIndex());\n dataheadingstyle.setBorderRight(BorderStyle.THIN);\n dataheadingstyle.setRightBorderColor(IndexedColors.BLACK.getIndex());\n // Setting font to style\n dataheadingstyle.setFont(dataheadingfont);\n\n // Main Headings\n row = sheet.createRow(rowNum++);\n row.setHeight((short) 2500);\n colNum = 0;\n int i = 0;\n for (String str: payregkeysets) {\n i++;\n Cell cell = row.createCell(colNum++);\n cell.setCellValue(str);\n cell.setCellStyle(dataheadingstyle);\n if (colNum == 4 || colNum == 5 || colNum == 8) {\n sheet.setColumnWidth(i, 7000);\n } else {\n sheet.setColumnWidth(i, 3500);\n }\n\n }\n\n // ***** Style For Data Row ****//\n XSSFFont datafont = workbook.createFont();\n datafont.setFontHeightInPoints((short) 11);\n datafont.setFontName(\"Calibri\");\n datafont.setColor(IndexedColors.BLACK.getIndex());\n datafont.setBold(false);\n // datafont.setUnderline(HSSFFont.U_SINGLE);\n datafont.setItalic(false);\n\n CellStyle datastyle = workbook.createCellStyle();\n // datastyle.setWrapText(true);\n datastyle.setAlignment(HorizontalAlignment.LEFT);\n datastyle.setVerticalAlignment(VerticalAlignment.CENTER);\n datastyle.setBorderTop(BorderStyle.THIN);\n datastyle.setTopBorderColor(IndexedColors.BLACK.getIndex());\n datastyle.setBorderBottom(BorderStyle.THIN);\n datastyle.setBottomBorderColor(IndexedColors.BLACK.getIndex());\n datastyle.setBorderLeft(BorderStyle.THIN);\n datastyle.setLeftBorderColor(IndexedColors.BLACK.getIndex());\n datastyle.setBorderRight(BorderStyle.THIN);\n datastyle.setRightBorderColor(IndexedColors.BLACK.getIndex());\n // Setting font to style\n datastyle.setFont(datafont);\n\n CellStyle datastyleright = workbook.createCellStyle();\n // datastyle.setWrapText(true);\n datastyleright.setAlignment(HorizontalAlignment.RIGHT);\n datastyleright.setVerticalAlignment(VerticalAlignment.CENTER);\n datastyleright.setBorderTop(BorderStyle.THIN);\n datastyleright.setTopBorderColor(IndexedColors.BLACK.getIndex());\n datastyleright.setBorderBottom(BorderStyle.THIN);\n datastyleright.setBottomBorderColor(IndexedColors.BLACK.getIndex());\n datastyleright.setBorderLeft(BorderStyle.THIN);\n datastyleright.setLeftBorderColor(IndexedColors.BLACK.getIndex());\n datastyleright.setBorderRight(BorderStyle.THIN);\n datastyleright.setRightBorderColor(IndexedColors.BLACK.getIndex());\n // Setting font to style\n datastyleright.setFont(datafont);\n\n CellStyle datastylerightformat = workbook.createCellStyle();\n // datastyle.setWrapText(true);\n datastylerightformat.setAlignment(HorizontalAlignment.RIGHT);\n datastylerightformat.setVerticalAlignment(VerticalAlignment.CENTER);\n datastylerightformat.setBorderTop(BorderStyle.THIN);\n datastylerightformat.setTopBorderColor(IndexedColors.BLACK.getIndex());\n datastylerightformat.setBorderBottom(BorderStyle.THIN);\n datastylerightformat.setBottomBorderColor(IndexedColors.BLACK.getIndex());\n datastylerightformat.setBorderLeft(BorderStyle.THIN);\n datastylerightformat.setLeftBorderColor(IndexedColors.BLACK.getIndex());\n datastylerightformat.setBorderRight(BorderStyle.THIN);\n datastylerightformat.setRightBorderColor(IndexedColors.BLACK.getIndex());\n datastylerightformat.setDataFormat(HSSFDataFormat.getBuiltinFormat(\"#,##0.00\"));\n // Setting font to style\n datastylerightformat.setFont(datafont);\n\n for (Map < String, Object > dt: employeedatalist) {\n row = sheet.createRow(rowNum++);\n\n colNum = 0;\n payregkeysets = dt.keySet();\n for (String str: payregkeysets) {\n Cell cell = row.createCell(colNum);\n if (colNum == 0) {\n\n cell.setCellType(CellType.NUMERIC);\n cell.setCellValue(Integer.parseInt(dt.get(str).toString()));\n cell.setCellStyle(datastyleright);\n } else if (colNum == 1) {\n\n cell.setCellType(CellType.STRING);\n cell.setCellValue(dt.get(str).toString());\n cell.setCellStyle(datastyleright);\n } else if (colNum == 2) {\n String coldata = dt.get(str).toString();\n\n if (alphanum.ifAlphaNumeric(coldata)) {\n int pno = Integer.parseInt(coldata);\n //\t\t\t\t\t\t\tSystem.out.println(\"Person Number ::: \"+pno);\n cell.setCellType(CellType.NUMERIC);\n cell.setCellValue(pno);\n cell.setCellStyle(datastyleright);\n } else {\n String pno = coldata;\n //\t\t\t\t\t\t\tSystem.out.println(\"Person Number ::: \"+pno);\n cell.setCellType(CellType.STRING);\n cell.setCellValue(pno);\n cell.setCellStyle(datastyleright);\n //\t\t\t\t\t\t\tcontinue;\n }\n } else if (colNum == 3 || colNum == 4 || colNum == 5 || colNum == 6 || colNum == 7 || colNum == 8 ||\n colNum == 12 || colNum == 13) {\n String coldata = \"\";\n if (dt.get(str) != null) {\n coldata = dt.get(str).toString();\n } else {\n coldata = \"\";\n }\n\n //\t\t\t\t\t\tSystem.out.println(\"COLDATA col 3 ====> \"+coldata);\n cell.setCellType(CellType.STRING);\n cell.setCellValue(coldata);\n cell.setCellStyle(datastyle);\n } else if (colNum == 9 || colNum == 10) {\n cell.setCellType(CellType.NUMERIC);\n cell.setCellValue(Double.parseDouble(dt.get(str).toString()));\n cell.setCellStyle(datastylerightformat);\n } else if (colNum == 11) {\n cell.setCellType(CellType.NUMERIC);\n cell.setCellFormula(\"Sum(J\" + rowNum + \":K\" + rowNum + \")\");\n cell.setCellStyle(datastylerightformat);\n\n } else if (colNum == 14) {\n cell.setCellType(CellType.NUMERIC);\n cell.setCellValue(Double.parseDouble(dt.get(str).toString()));\n cell.setCellStyle(datastyleright);\n }\n colNum++;\n }\n }\n\n row = sheet.createRow(rowNum++);\n int rowNumm = rowNum - 1;\n colNum = 0;\n Cell gtcell = row.createCell(colNum);\n sheet.addMergedRegion(CellRangeAddress.valueOf(\"A\" + rowNum + \":I\" + rowNum));\n gtcell.setCellValue(\"Grand Total\");\n gtcell.setCellStyle(datastyleright);\n\n colNum = 9;\n Cell totemplrcell = row.createCell(colNum++);\n totemplrcell.setCellFormula(\"Sum(J4:J\" + rowNumm + \")\");\n totemplrcell.setCellStyle(datastylerightformat);\n\n Cell totemplcell = row.createCell(colNum++);\n totemplcell.setCellFormula(\"Sum(K4:K\" + rowNumm + \")\");\n totemplcell.setCellStyle(datastylerightformat);\n\n Cell totcell = row.createCell(colNum++);\n totcell.setCellFormula(\"Sum(L4:L\" + rowNumm + \")\");\n totcell.setCellStyle(datastylerightformat);\n } else {\n Row row = sheet.createRow(rowNum);\n Cell cell = row.createCell(colNum);\n cell.setCellValue(\"No Data Found!!!\");\n }\n\n workbook.write(stream);\n workbook.close();\n }", "title": "" }, { "docid": "41510135f6b5e130225c5b4f75a2c83b", "score": "0.5608095", "text": "private void setExcelFormat(WritableSheet sheet) throws WriteException\n/* 1003: */ {\n/* 1004:1004 */ sheet.getSettings().setBottomMargin(0.2D);\n/* 1005:1005 */ sheet.getSettings().setTopMargin(0.2D);\n/* 1006:1006 */ sheet.getSettings().setLeftMargin(0.1D);\n/* 1007:1007 */ sheet.getSettings().setRightMargin(0.0D);\n/* 1008: */ \n/* 1009:1009 */ sheet.setColumnView(0, 1);\n/* 1010:1010 */ sheet.setColumnView(1, 12);\n/* 1011:1011 */ sheet.setColumnView(2, 26);\n/* 1012:1012 */ sheet.setColumnView(3, 8);\n/* 1013:1013 */ sheet.setColumnView(4, 21);\n/* 1014:1014 */ sheet.setColumnView(5, 10);\n/* 1015:1015 */ sheet.setColumnView(6, 13);\n/* 1016:1016 */ sheet.setColumnView(7, 13);\n/* 1017: */ \n/* 1018:1018 */ sheet.setRowView(0, 315);\n/* 1019:1019 */ sheet.setRowView(1, 405);\n/* 1020:1020 */ sheet.setRowView(2, 330);\n/* 1021:1021 */ sheet.setRowView(3, 120);\n/* 1022:1022 */ sheet.setRowView(4, 315);\n/* 1023:1023 */ sheet.setRowView(5, 315);\n/* 1024:1024 */ sheet.setRowView(6, 300);\n/* 1025:1025 */ sheet.setRowView(7, 240);\n/* 1026:1026 */ sheet.setRowView(8, 510);\n/* 1027:1027 */ sheet.setRowView(9, 510);\n/* 1028:1028 */ sheet.setRowView(10, 180);\n/* 1029:1029 */ sheet.setRowView(11, 180);\n/* 1030: */ \n/* 1031:1031 */ sheet.mergeCells(1, 1, 4, 1);\n/* 1032:1032 */ sheet.mergeCells(1, 2, 2, 6);\n/* 1033:1033 */ sheet.mergeCells(3, 3, 4, 6);\n/* 1034:1034 */ sheet.mergeCells(2, 8, 7, 8);\n/* 1035:1035 */ sheet.mergeCells(2, 9, 7, 9);\n/* 1036: */ }", "title": "" }, { "docid": "6a16e88a2cca9aa18641acd96e81a6bc", "score": "0.56012505", "text": "public void escribirReporteExcel(HttpServletResponse response,\n ByteArrayOutputStream baos, String fileName) {\n try {\n \t\n \tString fileNameWihtoutSpaces = fileName.replace(' ', '_');\n response.setContentType(CONTENT_TYPE_XLS);\n response.setHeader(ENCABEZADO_CONTENT_DISPOSITION,\n \t\tENCABEZADO_ATTACH_FILE_NAME\n + fileNameWihtoutSpaces + EXTENSION_XLS);\n response.setHeader(ENCABEZADO_CACHE_CONTROL, \n \t\tENCABEZADO_NOCACHE);\n response.setHeader(ENCABEZADO_PRAGMA,\n \t\tENCABEZADO_NOCACHE);\n response.setContentLength(baos.size());\n ServletOutputStream sos = response.getOutputStream();\n baos.writeTo(sos);\n sos.flush();\n } catch (IOException e) {\n LOGGER.error(e.getMessage(), e);\n }\n }", "title": "" } ]
cc3cdd7f1c62e388951d65d922378570
Write out a single FDHS formatted table to an FDA file.
[ { "docid": "23564fa02c6661dec5bf5d5644d66cc2", "score": "0.71172744", "text": "private static void writeFDATable( BufferedWriter output, FloatTable table ) throws IOException {\n\t\tint i;\n\t\tString space = \" \";\n\t\tString buffer;\n\t\tDecimalFormat nf = (DecimalFormat) NumberFormat.getInstance();\n\t\tnf.setMinimumFractionDigits( kNumFracDigits );\n\t\tnf.setMaximumFractionDigits( kNumFracDigits );\n\t\t\n\t\t// Write out some generic table comments.\n\t\toutput.write( \"; \" + table.toString() );\n\t\toutput.newLine();\n\t\toutput.write( \"; Date and time written: \" );\n\t\toutput.write( DateFormat.getDateTimeInstance().format( new Date() ) );\n\t\toutput.newLine();\n\t\toutput.write( \"; \" );\n\t\toutput.newLine();\n\t\t\n\t\t// Write out the table name and independent variable names.\n\t\toutput.write( table.getTableName() );\n\t\toutput.write( space );\n\t\tint numDims = table.dimensions();\n\t\tfor ( i = numDims - 1; i >= 0; --i ) {\n\t\t\toutput.write( table.getIndepName( i ) );\n\t\t\toutput.write( space );\n\t\t}\n\t\t\n\t\t// Write out number of breakpoints in each dimension.\n\t\tfor ( i = numDims - 1; i > 0; --i ) {\n\t\t\tbuffer = Integer.toString( table.getNumBreakpoints( i ) );\n\t\t\toutput.write( buffer );\n\t\t\toutput.write( space );\n\t\t}\n\t\tbuffer = Integer.toString( table.getNumBreakpoints( 0 ) );\n\t\toutput.write( buffer );\n\t\toutput.newLine();\n\t\t\n\t\t// Write out the frequency card.\n\t\toutput.write( \"all all \" );\n\t\toutput.newLine();\n\t\t\n\t\t// Loop over the breakpoint list and write out all the breakpoints.\n\t\tfor ( i = 0; i < numDims; ++i ) {\n\t\t\t\n\t\t\t// Write out the breakpoints for each dimension.\n\t\t\tfloat[] breakpoints = table.getBreakpoints( i );\n\t\t\tint length = breakpoints.length;\n\t\t\tint count = 0;\n\t\t\tfor ( int j = 0; j < length; ++j ) {\n\t\t\t\tbuffer = formatNumber( kNumDigits, nf, breakpoints[j] );\n\t\t\t\toutput.write( buffer );\n\t\t\t\t++count;\n\t\t\t\tif ( count > 5 ) {\n\t\t\t\t\tcount = 0;\n\t\t\t\t\toutput.newLine();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ( count != 0 )\n\t\t\t\toutput.newLine();\n\t\t}\n\t\t\n\t\t// *** Write out the dependent values.\n\t\t\n\t\t// Recursively write out the dependent data arrays.\n\t\tint[] indep = new int [ numDims ];\n\t\trWriteFDA( 0, output, indep, table, nf );\n\t}", "title": "" } ]
[ { "docid": "ab62bc3a939eee3a46c3234ec894c17d", "score": "0.65873015", "text": "public void write( OutputStream output, FTableDatabase tables ) throws IOException {\n\t\n\t\t// Get a reference to the output file.\n\t\tBufferedWriter writer = new BufferedWriter( new OutputStreamWriter( output ) );\n\t\t\n\t\t// Identify this as an FDHS formatted file.\n\t\twriter.write( \"*FDHS\" );\n\t\twriter.newLine();\n\t\t\n\t\t// Write out the file level notes if there are any.\n\t\twriteFileComments( writer, tables );\n\t\t\n\t\t// Loop over all the tables in the collection and write them out\n\t\t// to the same file.\n\t\tfor (FloatTable table : tables ) {\n\t\t\twriteFDATable( writer, table );\n\t\t}\n\t\t\n\t\t// Flush the output.\n\t\twriter.flush();\n\t}", "title": "" }, { "docid": "3e31e9733818595d2e18fc39912ae284", "score": "0.6052008", "text": "private static void writeFDADataArray( BufferedWriter output, int[] indep,\n\t\t\t\t\t\t\t\t\t\tFloatTable theTable, NumberFormat nf ) throws IOException {\n\t\tint count = 0;\n\t\tint numDims = indep.length;\n\t\tint length = theTable.getNumBreakpoints( numDims - 1 );\n\t\t\n\t\t// Loop over all the breakpoints in the last indepenent (the array)\n\t\t// and write out the data array.\n\t\tfor ( int j = 0; j < length; ++j ) {\n\t\t\tindep[numDims - 1] = j;\n\t\t\tfloat value = theTable.get( indep );\n\t\t\toutput.write( formatNumber( kNumDigits, nf, value ) );\n\t\t\t++count;\n\t\t\tif ( count > 5 ) {\n\t\t\t\tcount = 0;\n\t\t\t\toutput.newLine();\n\t\t\t}\n\t\t}\n\t\tif ( count != 0 )\n\t\t\toutput.newLine();\n\t}", "title": "" }, { "docid": "818213d90547bfa2ff4e935ce2e3153e", "score": "0.5928287", "text": "public void writeFooter(ArrayList ffd) {\r\n\r\n try {\r\n\r\n fout.write (\"</TABLE>\".getBytes());\r\n fout.write ('\\n');\r\n fout.write (\"</BODY>\".getBytes());\r\n fout.write ('\\n');\r\n fout.write (\"</HTML>\".getBytes());\r\n fout.write ('\\n');\r\n\r\n fout.flush();\r\n fout.close();\r\n\r\n }\r\n catch (IOException ioex) {\r\n System.out.println(ioex.getMessage());\r\n }\r\n\r\n\r\n }", "title": "" }, { "docid": "d414d17dac29a26eb5ffe058f04e2901", "score": "0.56987107", "text": "public void writeTableFromFile() {\n removeAllRows();\n addRowsFromFile();\n drawTable();\n }", "title": "" }, { "docid": "f4d556c51e8d74590d4ac584dab8508c", "score": "0.5680521", "text": "private static void writeTableFileForOverwrite(){\r\n\r\n\t\ttry(FileWriter fw = new FileWriter(\"table\", false);\r\n\t\t\t\tBufferedWriter bw = new BufferedWriter(fw);\r\n\t\t\t\tPrintWriter out = new PrintWriter(bw)){\r\n\r\n\t\t\tfor (int i = 0; i < table1ArrList.size(); i++){\r\n\t\t\t\tout.print(table1ArrList.get(i).getTableNum() + \"|\");\r\n\t\t\t\tout.print(table1ArrList.get(i).getTableStatus() + \"|\");\r\n\t\t\t\tout.print(table1ArrList.get(i).getTableCap() + \"|\");\r\n\t\t\t\tout.println();\r\n\t\t\t}\r\n\t\t} \r\n\t\tcatch (IOException e) {\r\n\t\t\tSystem.err.println(\"Caught IOException: \" + e.getMessage());\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "5c924f5227ded94baa664770edeba548", "score": "0.5591899", "text": "void write(final Table table);", "title": "" }, { "docid": "e119d68edc49ba045d65f50da070c8cd", "score": "0.55052525", "text": "private void writeTable(String day) {\r\n\t\ttry {\r\n\t\t\tPdfPTable table = new PdfPTable(1);\r\n\t\t\ttable.setLockedWidth(true);\r\n\t\t\ttable.setTotalWidth(new float[] { 250 });\r\n\t\t\ttable.setSpacingAfter(10f);\r\n\r\n\t\t\tchangeTableHeader(table, day);\r\n\r\n\t\t\tfillTable(day, table);\r\n\t\t\ttable.setHorizontalAlignment(getHorizontalAlignment(day));\r\n\r\n\t\t\tDOCUMENT.add(table);\r\n\t\t} catch (DocumentException e) {\r\n\t\t\tLOGGER.error(\"An error has occurred in a Document\", e);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "88d58bab53a7cbe19da4685dbd5409bb", "score": "0.53966886", "text": "private void writeToTable(String name, String file) throws IOException{\n\t\ttry(PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(tablePath, true)))) {\n\t\t out.println(name+\"\t\t-\t\t0\t\"+file+\"\t\t-\");\n\t\t}catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "c3348a18e1c4e3c9567148a02862ac14", "score": "0.53699434", "text": "public void write(TabelImp Table) throws Exception;", "title": "" }, { "docid": "b7bb64edd406c6961d89e6e018bb4895", "score": "0.5352938", "text": "public void doExportDBF() {\n\t\tUTableI table = getCurrentDataTable();\n\t\tif (table == null)\n\t\t\treturn;\n\t\tFile file = file = GetFile.getSaveFile(\"dbf\");\n\t\tif(file==null)\n\t\t\treturn;\n\t\tString filePath = file.getAbsolutePath();\n\t\tString fileName = file.getName();\n\t\tif (table.saveDataToDBF(filePath)) {\n\t\t\tUimsUtils.messageBoxInfo(\"数据导出成功!\");\n\t\t} else {\n\t\t\tUimsUtils.messageBoxError(\"数据导出错误!\");\n\t\t}\n\t}", "title": "" }, { "docid": "8129585751365c4111e9600dc169b73f", "score": "0.5349583", "text": "private void writeToDataSet(BufferedWriter out, double[] v) {\n\n\t\ttry {\n\t\t\tout.write(new String(\"+1\\t\"));\n\t\t\tfor (int i = 0; i < v.length; i++) {\n\t\t\t\t//sua day\n\t\t\t\t\n\t\t\t\tint g_index = General.getInstance().getIndex();\n\t\t\t\tout.write(new String((g_index + i + 1) + \":\" + v[i] + \"\\t\"));\n\t\t\t\t//General.getInstance().incIndex();\n\t\t\t}\n\t\t\tout.write(\"\\r\\n\");\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Exception in DataSetFactory.writeToDataSet: \"\n\t\t\t\t\t+ e);\n\t\t}\n\t}", "title": "" }, { "docid": "39a7fe1775cb2999b6b8d70b23174763", "score": "0.53455734", "text": "public void createTable (String outFile) {\n\n if(log.isInfoEnabled()) log.info(\"CSAFile : \"+outFile);\n String heading=\"No\\tBase\\tScan\\tHt\\tScan\\tHt\\tFactor\\tScale\\tMutant\\tScan\\tHt\";\n File oFile=new File(outFile);\n FileWriter out=null;\n String brow=\" \";\n String mut=null;\n try {\n oFile.createNewFile();\n out = new FileWriter(oFile);\n out.write(heading);\n out.write('\\n');\n for(int i=0 ; i<nPoints ; ++i ) {\n\n String row=brow+baseNo[i]+\"\\t\"+baseSeq[i]+\"\\t\"+controlScan[i]+\"\\t\"+controlHt[i]+\"\\t\"+sampleScan[i]+\"\\t\"+sampleHt[i]+\"\\t\"+factor[i]+\"\\t\"+scale[i];\n if ( mutations != null && mutations.size() > 0 ) {\n mut=(String) mutations.get(i);\n }\n if (mut != null ) {\n row=row+\"\\t\"+mut;\n }\n out.write(row);\n out.write('\\n');\n }\n out.close();\n } catch ( IOException e ) {\n if(log.isWarnEnabled()) log.warn(\"Caught IOException: \"+e.getMessage());\n }\n\n }", "title": "" }, { "docid": "8ea01bf1e1d9fac023afeef6bad022b9", "score": "0.5306773", "text": "public void writePrimaryHDU( StarTable table, FitsTableSerializer fitser,\n DataOutput strm )\n throws IOException {\n Exception thrown = null;\n try {\n writeVOTablePrimary( table, fitser, strm );\n return;\n }\n catch ( IOException e ) {\n thrown = e;\n }\n catch ( FitsException e ) {\n thrown = e;\n }\n \n /* But if it fails, just write an empty one. */\n assert thrown != null;\n logger.log( Level.WARNING,\n \"Failed to write VOTable metadata to primary HDU\",\n thrown );\n FitsConstants.writeEmptyPrimary( strm );\n }", "title": "" }, { "docid": "bb8a0280dc81e92c266132b6f9907841", "score": "0.5272686", "text": "private static void rWriteFDA( int dim, BufferedWriter output, int[] indep,\n\t\t\t\t\t\t\t\t\tFloatTable theTable, NumberFormat nf ) throws IOException {\n\t\tif ( dim == indep.length - 1 ) {\n\t\t\t// Reached the highest dimension, indep[] is now ready.\n\t\t\t// Write out an array.\n\t\t\twriteFDADataArray( output, indep, theTable, nf );\n\t\t\n\t\t} else {\n\t\t\t\n\t\t\t// Loop over all the breakpoints in this dimension.\n\t\t\tint length = theTable.getNumBreakpoints( dim );\n\t\t\tfor ( int i = 0; i < length; ++i ) {\n\t\t\t\t\n\t\t\t\t// Fill in the required value for indep[] at this dimension.\n\t\t\t\tindep[dim] = i;\n\t\t\t\t\n\t\t\t\t// Go on to the next higher dimension.\n\t\t\t\trWriteFDA( dim + 1, output, indep, theTable, nf );\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "8f25050d79f994d414382926a9f03a16", "score": "0.5204069", "text": "public void writeToFile() {\n\t\tPrintWriter printWriter;\n\t\ttry {\n\t\t\tprintWriter = new PrintWriter(new BufferedWriter(new FileWriter(System.getProperty(\"user.dir\") + \"/\" + \"output.symboltable\")));\n\t\t\tprintWriter.println(this.symbolTable.toString());\n\t\t\tprintWriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "3cafabc88e9273e87f0870d00983a59b", "score": "0.51793176", "text": "public void write(ArrayDataOutput dos) throws FitsException {\n\n fileOffset = FitsUtil.findOffset(dos);\n\n // Ensure that all cards are in the proper order.\n cards.sort(new HeaderOrder());\n checkBeginning();\n checkEnd();\n if (cards.size() <= 0) {\n return;\n }\n\n\n Cursor iter = cards.iterator(0);\n\n try {\n while (iter.hasNext()) {\n HeaderCard card = (HeaderCard) iter.next();\n\n byte[] b = AsciiFuncs.getBytes(card.toString());\n dos.write(b);\n }\n\n FitsUtil.pad(dos, getNumberOfCards() * 80, (byte) ' ');\n } catch (IOException e) {\n throw new FitsException(\"IO Error writing header: \" + e);\n }\n try {\n dos.flush();\n } catch (IOException e) {}\n\n }", "title": "" }, { "docid": "96a3730d531e60746687a58d1fb3c92a", "score": "0.5139798", "text": "public void writeDataTable(PrintStream PS, String sep, String noEntry){\n PS.println(\"Author\"+sep+\"Period\"+sep+textFileHeader(sep, noEntry));\n for (Author a: authorSetByID){\n AuthorWithData awd = (AuthorWithData) a;\n for (int p=0; p<=awd.numberPeriods; p++) {\n System.out.println(\"Author \"+awd+\" period \"+p);\n PS.println(awd+sep+p+sep+awd.allDataString(sep, noEntry, p, numberDataColumns));\n }\n }\n //\n }", "title": "" }, { "docid": "bfa57cfe41cafa6f283184e9cbfe7a43", "score": "0.50831026", "text": "private void endTABLE(DataOutputStream L_DOUT) throws Exception\n\t{\n\t\tif(M_rdbHTML.isSelected())\n\t\t\tL_DOUT.writeBytes(\"</TR></TABLE></P>\");\n\t\tflgTBLDT=false;\n\t}", "title": "" }, { "docid": "c86ea1def0b3843d2002a7025fe35c06", "score": "0.50607115", "text": "private void writeToFile(FileWriter fw) throws IOException{\n for (CardStructure cs : creatures) fw.write(cs.getSaveData()); \n fw.write(\"@\\n\");\n for (CardStructure cs : instants) fw.write(cs.getSaveData());\n fw.write(\"@\\n\");\n for (CardStructure cs : sorceries) fw.write(cs.getSaveData());\n fw.write(\"@\\n\");\n for (CardStructure cs : artifacts) fw.write(cs.getSaveData());\n fw.write(\"@\\n\");\n for (CardStructure cs : enchantments) fw.write(cs.getSaveData());\n fw.write(\"@\\n\");\n for (CardStructure cs : planeswalkers) fw.write(cs.getSaveData());\n fw.write(\"@\\n\");\n for (CardStructure cs : lands) fw.write(cs.getSaveData());\n fw.write(\"@\\n\");\n for (CardStructure cs : other) fw.write(cs.getSaveData());\n fw.flush();\n }", "title": "" }, { "docid": "b030631f8d010de70e82e40eb5cdc646", "score": "0.50452137", "text": "public void writeForDeformationModel(FaultSectionPrefData faultSectionPrefData, FileWriter fw) {\n\t\ttry{\n\t\t\tfw.write(getStringForDeformationModel(faultSectionPrefData));\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "0d6a1a3c591f081369bad4cf71d709c0", "score": "0.5033329", "text": "public void writeHeader(String fileName, String host,\r\n ArrayList ffd, char decChar) {\r\n\r\n try {\r\n\r\n fout.write (\"<HTML>\".getBytes());\r\n fout.write (\"\\n\".getBytes());\r\n fout.write (\"<HEAD>\".getBytes());\r\n fout.write ('\\n');\r\n String out = \"<TITLE>\" + host + \" - \" +\r\n fileName + \"</TITLE>\";\r\n fout.write (out.getBytes());\r\n fout.write ('\\n');\r\n\r\n fout.write (\" <META http-equiv=\".getBytes());\r\n fout.write ('\\\"');\r\n fout.write (\"GENERATOR\".getBytes());\r\n fout.write ('\\\"');\r\n fout.write (\" content\".getBytes());\r\n fout.write ('\\\"');\r\n fout.write (\"tn5250j Data Transfer\".getBytes());\r\n fout.write ('\\\"');\r\n fout.write (\">\".getBytes());\r\n fout.write ('\\n');\r\n\r\n fout.write (\" <META http-equiv=\".getBytes());\r\n fout.write ('\\\"');\r\n fout.write (\"Content-Type\".getBytes());\r\n fout.write ('\\\"');\r\n fout.write (\" content=\".getBytes());\r\n fout.write ('\\\"');\r\n fout.write (\"text/html;charset=windows-1252\".getBytes());\r\n fout.write ('\\\"');\r\n fout.write (\">\".getBytes());\r\n fout.write ('\\n');\r\n\r\n fout.write (\"</HEAD>\".getBytes());\r\n fout.write ('\\n');\r\n\r\n fout.write (\"<BODY>\".getBytes());\r\n fout.write ('\\n');\r\n\r\n fout.write (\"<TABLE BORDER>\".getBytes());\r\n fout.write ('\\n');\r\n\r\n fout.write (\"<TR ALIGN=center>\".getBytes());\r\n fout.write ('\\n');\r\n\r\n FileFieldDef f;\r\n\r\n // loop through each of the fields and write out the field name for\r\n // each selected field\r\n for (int x = 0; x < ffd.size(); x++) {\r\n f = (FileFieldDef)ffd.get(x);\r\n if (f.isWriteField()) {\r\n out = \"<TH>\" + f.getFieldName() + \"</TH>\";\r\n fout.write (out.getBytes());\r\n fout.write ('\\n');\r\n }\r\n }\r\n\r\n fout.write (\"</TR>\".getBytes());\r\n fout.write ('\\n');\r\n\r\n }\r\n catch (IOException ioe) {\r\n\r\n// printFTPInfo(\" error writing header \" + ioe.getMessage());\r\n }\r\n }", "title": "" }, { "docid": "11c6f691268e5be8159787242fcf857d", "score": "0.501844", "text": "public void writeTableToFile() {\n int action = fileChooser.showSaveDialog(view);\n\n if (action == JFileChooser.APPROVE_OPTION) {\n File file = fileChooser.getSelectedFile();\n\n try (BufferedWriter writer\n = new BufferedWriter(new FileWriter(file))) {\n\n int rows = view.getTable().getRowCount();\n int columns = view.getTable().getColumnCount();\n\n // Prints column names\n for (int i = 0; i < columns; i++) {\n writer.write(view.getTable().getColumnName(i));\n\n if (i + 1 < columns) {\n writer.write(\"\\t\");\n }\n }\n\n writer.newLine();\n\n // Prints rows\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < columns; j++) {\n writer.write(view.getTable().getValueAt(i, j).\n toString());\n\n if (j + 1 < columns) {\n writer.write(\"\\t\");\n }\n }\n\n if (i + 1 < rows) {\n writer.newLine();\n }\n }\n } catch (IOException e) {\n System.err.println(\"IOException: \" + e.getMessage());\n }\n }\n }", "title": "" }, { "docid": "f45b0a9c7986fde448994b9aa897761e", "score": "0.4952203", "text": "private static void writeReservationFileForOverwrite(DateFormat SDFFULL){\r\n\t\ttry(FileWriter fw = new FileWriter(\"reservation\", false);\r\n\t\t\t\tBufferedWriter bw = new BufferedWriter(fw);\r\n\t\t\t\tPrintWriter out = new PrintWriter(bw)){\r\n\r\n\t\t\tfor (int b = 0; b < table1ArrList.size(); b++)\r\n\t\t\t\tfor (int i = 0; i < table1ArrList.get(b).getReservation().size(); i++) {\r\n\r\n\t\t\t\t\tout.print(table1ArrList.get(b).getReservation().get(i).getRCustName() + \"|\");\r\n\t\t\t\t\tout.print(table1ArrList.get(b).getReservation().get(i).getRPhone() + \"|\");\r\n\t\t\t\t\tout.print(table1ArrList.get(b).getReservation().get(i).getRPax() + \"|\");\r\n\t\t\t\t\tout.print(table1ArrList.get(b).getTableNum() + \"|\");\r\n\t\t\t\t\tout.print(SDFFULL.format(table1ArrList.get(b).getReservation().get(i).getCalendar().getTime()) + \"|\");//need change\r\n\t\t\t\t\tout.print(table1ArrList.get(b).getReservation().get(i).getStatus());\r\n\t\t\t\t\tout.println();\r\n\t\t\t\t}\r\n\t\t} \r\n\t\tcatch (IOException e) {\r\n\t\t\tSystem.err.println(\"Caught IOException: \" + e.getMessage());\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "714d4d4b3426142db098055172d2c9a2", "score": "0.4912499", "text": "public void writeCSV(CSVTable table) {\n List<CSVRow> csvRows = table.getCSVRows();\n\n Iterator<CSVRow> iterator = csvRows.iterator();\n\n while (iterator.hasNext()) {\n CSVRow row = iterator.next();\n String[] values = row.getRowValues();\n for (int i = 0; i < values.length; i++) {\n try {\n if (values[i] == null) {\n fw.append(\"-\");\n } else {\n fw.append(values[i].replaceAll(\",\", \"\"));\n }\n if (i < values.length - 1) {\n fw.append(',');\n } else {\n fw.append(\"\\n\");\n }\n\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n\n }\n\n try {\n fw.flush();\n fw.close();\n } catch (IOException ex) {\n\n }\n\n }", "title": "" }, { "docid": "b1ec2efe439ea4f0c4bee9aa42b66fab", "score": "0.49003714", "text": "public void writeDTD(StringBuffer out) {\n }", "title": "" }, { "docid": "a376e688dc2de55edfcf2976c6b594c3", "score": "0.48759073", "text": "public void writeToFile(){\n String futureFile = \"(\"+size+\", (\";\n for(int i = 0; i < size; i++){\n for(int j = 0; j < size; j++){\n Kakurofeld field = fields[i][j];\n\n if(field.getType()==-2){\n futureFile+=\"0, \";\n }\n else if(field.getType()==-1){\n futureFile+=\"(\"+field.getRechts()+\", \"+field.getUnten()+\"), \";\n }\n else if(field.getType()==0){\n futureFile+=field.getLoesung()+\", \";\n }\n }\n }\n futureFile=futureFile.substring(0,futureFile.length()-2);\n futureFile += \"), \"+Guesses.getGuesses() + \", \"+backtracks+\")\";\n System.out.println(futureFile);\n File result = new File(this.file+\"s\");\n try{\n result.createNewFile();\n\n FileWriter fileWriter = new FileWriter(result, false);\n\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\n bufferedWriter.write(futureFile);\n bufferedWriter.close();\n\n System.out.println(\"Datei erfolgreich geschrieben.\");\n } catch(IOException e) {\n System.out.println(\"Fehler beim Schreiben.\");\n }\n\n }", "title": "" }, { "docid": "9d74d21229e941e2a987b104153eb88f", "score": "0.48531908", "text": "public static void write(TimeSeriesTable table, String fileName) {\n opensimCommonJNI.CSVFileAdapter_write(TimeSeriesTable.getCPtr(table), table, fileName);\n }", "title": "" }, { "docid": "81d16acd6e988e8636ecd4a81ea03cc7", "score": "0.48472592", "text": "private void writeData() {\n try (FileWriter f = new FileWriter(\"data.txt\")) {\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < CattlesInfolist.size(); i++) {\n sb.append(CattlesInfolist.get(i).getcattleID() + \",\" + CattlesInfolist.get(i).getweight() + \",\" + CattlesInfolist.get(i).getbreedType() \n + CattlesInfolist.get(i).getdateRegister() + \"-\");\n }\n f.write(sb.toString());\n f.close();\n } catch (IOException e) {\n return;\n }\n dtm.setRowCount(0); //update table content\n for (int i = 0; i < CattlesInfolist.size(); i++) {//populate table using object list\n Object[] objs = {CattlesInfolist.get(i).getcattleID(), CattlesInfolist.get(i).getweight(), CattlesInfolist.get(i).getbreedType(),\n CattlesInfolist.get(i).getdateRegister()};\n dtm.addRow(objs);\n }\n }", "title": "" }, { "docid": "567adc740b64414969b7423f0b886b1e", "score": "0.4834865", "text": "protected void printToFile(Vector<Double> SMA, Vector<Double> EMA, Vector<Double> SD){\n\t\tfor(int i = 0; i < SMA.size();i++){\n\t\t\tString newData = String.format(\",%f,%f,%f\",SMA.get(i),EMA.get(i),SD.get(i));\n\t\t\tentireFile.set(i+1, entireFile.get(i+1).concat(newData));//adds new data to old file vector\n\t\t\t//System.out.println(entireFile.get(i));\n\t\t}\n\t\ttry{\n\t\t\tPrintWriter outputStream = new PrintWriter(userFile);\n\t\t\tfor(int i = 0; i < entireFile.size(); i++){//prints the updated file to the old file\n\t\t\t\toutputStream.println(entireFile.get(i));\n\t\t\t}\n\t\t\toutputStream.close();\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(\"Error printing to file. Goodbye\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "title": "" }, { "docid": "3ee9abf7f53fbe341298b0211c7c8350", "score": "0.4834344", "text": "public void toFile() {\r\n String filename = \".//reports//\" + \"Report for \";\r\n String date = (Date.from(java.time.ZonedDateTime.now().toInstant())).toString();\r\n date = date.substring(0, 10);\r\n filename += date + \".rpt\";\r\n System.out.println(filename);\r\n String output = \"Total sales are as follows: \\n\";\r\n File file = new File(filename);\r\n\r\n for (int i = 0; i < PointOfSales.productsList.size(); i++) {\r\n output += salesOfFlavour(PointOfSales.productsList.get(i)) + \"\\n\";\r\n }\r\n String[] arrayOut = output.split(\"\\n\");\r\n\r\n if (!file.exists()) {\r\n DatabaseLogic.writeToFile(filename, arrayOut);\r\n System.out.println(\"New file to create\");\r\n } else {\r\n DatabaseLogic.appendToFile(filename, arrayOut);\r\n System.out.println(\"Appending to file\");\r\n }\r\n }", "title": "" }, { "docid": "ebc5e9535598827efe705929af816273", "score": "0.48199534", "text": "void write(DataSet dataSet, File file) {\n try(BufferedWriter out = new BufferedWriter(new FileWriter(file))) {\n final DataSource source = dataSet.getSource();\n final int colCount = source.getColumnCount(); \n final String eol = lineSeparator.separator();\n if (lineCommentChar != 0) {\n out.write(lineCommentChar);\n out.write(\" CSV data file generated using JDBDT \");\n out.write(VersionInfo.ID); \n out.write(eol);\n }\n if (header) {\n out.write(source.getColumnName(0));\n for (int i = 1; i < colCount; i++) {\n out.write(separator);\n out.write(source.getColumnName(i));\n }\n out.write(eol);\n }\n for (Row r : dataSet.getRows()) {\n Object[] values = r.data();\n write(out, values[0]);\n for (int i = 1; i < colCount; i++) {\n out.write(separator);\n write(out, values[i]);\n }\n out.write(eol);\n }\n }\n catch (IOException e) {\n throw new InputOutputException(e);\n }\n }", "title": "" }, { "docid": "04ed94fdffb82ec2e4edd3ee857328c5", "score": "0.48065692", "text": "public String prettyPrint(FunctionalDependency fd) {\n StringBuffer sb = new StringBuffer();\n IdUtils idUtils = this.metadataStore.getIdUtils();\n final int anyColumnId = fd.getRhsColumnId();\n int schemaId = idUtils.getSchemaId(anyColumnId);\n Schema schema = this.metadataStore.getSchemaById(schemaId);\n int tableId = idUtils.getTableId(anyColumnId);\n Table table = schema.getTableById(tableId);\n sb.append(table.getName()).append(\"[\");\n String separator = \"\";\n for (int columnId : fd.getLhsColumnIds()) {\n sb.append(separator).append(this.tryToGetTableName(table, columnId));\n separator = \", \";\n }\n sb.append(\"] \\u2192 \").append(this.metadataStore.getTargetById(fd.getRhsColumnId()).getName());\n return sb.toString();\n }", "title": "" }, { "docid": "e7ede74570c2660efa4d792996505bc9", "score": "0.4805221", "text": "public static void outData(String outpath, DataSet dataset) {\n\t\ttry {\n\t\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(\n\t\t\t\t\tnew FileOutputStream(outpath)));\n\n\t\t\t// header\n\t\t\tbw.write(\"#chr\" + \"\\t\");\n\t\t\tbw.write(\"start\" + \"\\t\");\n\t\t\tbw.write(\"end\" + \"\\t\");\n\t\t\tbw.write(\"copyNumber\" + \"\\t\");\n\t\t\tbw.write(\"gain/loss\" + \"\\t\");\n\t\t\tbw.write(\"num hetro SNP\" + \"\\t\");\n\t\t\tbw.write(\"AAF\");\n\t\t\tbw.write(\"BAF\");\n\t\t\tbw.write(\"type\");\n\t\t\tbw.write(\"\\n\");\n\n\t\t\twriteCNV(bw, dataset, 1);\n\t\t\t//writeCNV(bw, dataset, 2);\n\t\t\twriteCNV(bw, dataset, 3);\n\n\t\t\tbw.close();\n\t\t} catch (IOException ex) {\n\t\t}\n\t}", "title": "" }, { "docid": "9dd072d432e2fba3497ca8d938c349c7", "score": "0.48005047", "text": "@Override\n public void endTable() {\n try {\n out.write(\"</table>\\n\"); //NON-NLS\n } catch (IOException ex) {\n logger.log(Level.SEVERE, \"Failed to write end of table: {0}\", ex); //NON-NLS\n }\n }", "title": "" }, { "docid": "3e6e033157c397cc0f0da00ef69ebd53", "score": "0.4791874", "text": "private void readHuffmanTable(OutputStream os) {\n while (this.readWord(2, 2) == 0xffc4) {\n int length = this.readWord(2);\n if (os != null) {\n this.writeWord(os, 0xffc4, 2);\n this.writeWord(os, length, 2);\n }\n int remaining = length - 2;\n while (remaining > 0) {\n int id = this.readWord(1);\n byte[] bytes = this.read(16);\n int count = 0;\n for (byte b : bytes)\n count += b & 0xff;\n bytes = Arrays.copyOf(bytes, 16 + count);\n System.arraycopy(this.read(count), 0, bytes, 16, count);\n remaining -= 17 + count;\n Huffman huffman = new Huffman(bytes);\n if ((id & 0xf0) == 0 && (id & 0x0f) == 0) {\n this.dc0 = huffman;\n huffman.setName(\"DC0\");\n } else if ((id & 0xf0) == 0 && (id & 0x0f) == 1) {\n this.dc1 = huffman;\n huffman.setName(\"DC1\");\n } else if ((id & 0xf0) != 0 && (id & 0x0f) == 0) {\n this.ac0 = huffman;\n huffman.setName(\"AC0\");\n } else if ((id & 0xf0) != 0 && (id & 0x0f) == 1) {\n this.ac1 = huffman;\n huffman.setName(\"AC1\");\n } else\n throw new IllegalStateException(\"Huffman table id not supported\");\n if (os != null) {\n this.writeWord(os, id, 1);\n this.write(os, bytes);\n }\n// System.out.printf(\"Huffman table %s%d found [%d,%d]\\n\",\n// (id & 0x10) == 0 ? \"DC\" : \"AC\", id & 0x0f, bytes.length + 1, this.bytesRead);\n// System.out.println(huffman);\n }\n checkState(remaining == 0, \"Unrecognized Huffman Table\");\n }\n this.rewind(2);\n }", "title": "" }, { "docid": "3ed53cf0c951bcfaac855406c34732d0", "score": "0.47811493", "text": "public void formatTable() {\n try {\n Connection connection = DriverManager.getConnection(jdbcString + this.dbName, \"sa\", \"\");\n PreparedStatement delete = connection.prepareStatement(\"DROP TABLE Exercise IF EXISTS;\");\n delete.execute();\n PreparedStatement statement = connection.prepareStatement(stmnt);\n statement.execute();\n statement.close();\n connection.close();\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n }", "title": "" }, { "docid": "ecee1b56827726e82d4f20e66a69e2cf", "score": "0.47809568", "text": "public void format(FormatWriter fw);", "title": "" }, { "docid": "b25aa84f716fd069e7602c9cfc8aa2df", "score": "0.4780087", "text": "public void writeToFile( DataOutputStream out )\n throws IOException\n {\n out.writeShort( 0 );\n out.writeDouble( curveAngle );\n out.writeDouble( curveAngleBack );\n out.writeDouble( curveAngleDist );\n out.writeShort( curveAngleDistType );\n out.writeDouble( sectionJitter );\n out.writeDouble( perpCurveAngle );\n out.writeDouble( perpCurveAngleDist );\n out.writeDouble( perpCurveAngleBack );\n out.writeShort( perpCurveAngleDistType );\n out.writeDouble( curveRate );\n out.writeDouble( perpCurveRate );\n out.writeDouble( counterAction );\n out.writeBoolean( recover );\n out.writeDouble( recoverRate );\n out.writeDouble( randomTilt );\n out.writeInt( randomTiltDiv );\n out.writeDouble( twistTurns );\n out.writeDouble( twistTurnsDist );\n out.writeShort( twistDistType );\n out.writeDouble( leafCurveAngle );\n out.writeDouble( leafCurveAngleBack );\n out.writeDouble( leafCurveAngleDist );\n out.writeDouble( leafCurveRate );\n out.writeDouble( leafDepartureAngle );\n out.writeDouble( leafRRatio );\n out.writeShort( leafCurveAngleDistType );\n }", "title": "" }, { "docid": "c1bfc1e7f79a911ef12f383d827d05af", "score": "0.47797015", "text": "private void writeFile(int[][] array) throws FileNotFoundException{\r\n\t\tPrintWriter pw = new PrintWriter(\"output.tsv\");\r\n\t\tfor (int i = 0; i < array.length; i++){\r\n\t\t\tpw.println(array[i][0] + \"\\t\" + array[i][1] + \"\\t\" + array[i][2]);\r\n\t\t}\r\n\t\tpw.close();\r\n\t}", "title": "" }, { "docid": "bbf4a9285af4ef7c5ca56663a4451e92", "score": "0.4772649", "text": "private void createHead() throws IOException {\n String direc = \"/e3softData/\";\n String fileName = \"e3softRepairOrdersExcel.csv\";\n // get the path to sdcard\n File sdcard = Environment.getExternalStorageDirectory();\n // to this path add a new directory path\n File dir = new File(sdcard.getAbsolutePath() + direc);\n // create this directory if not already created\n dir.mkdir();\n // create the file in which we will write the contents\n File file = new File(dir, fileName);\n String f = file.toString();\n BufferedWriter bw;\n bw = new BufferedWriter(new FileWriter(file, true));\n\n String Data2 = \"Date,Report #,Area,Unit #,Unit Name,\"\n + \"Stream,Product,Specific Information,Equip Location,Drawing,System,\"\n + \"Equip Desc,Equip Type,\"\n + \"Equip Size,Equip ID,Leak Source,\"\n + \"Maintenance Type,\"\n + \"oldLeakerID,Measurement Result (PPM),Cycle,Camera Operator,Camera Serial #,Gas Surveyor,Sniffer Serial #,Annual Loss (KG),Time\"\n + \"\\n\";\n bw.write(Data2);\n bw.flush();\n bw.close();\n }", "title": "" }, { "docid": "b1a67c8702abca42a33231790261e1af", "score": "0.47640303", "text": "public void sahf() {\n emitByte(0x9e);\n }", "title": "" }, { "docid": "5e9dd877ed98faba08d687c394e4f8b2", "score": "0.47384885", "text": "public void writeHeader()\n{ \n\n //write to the 'all sensors' output file\n try{\n output =new FileWriter(allSensorsOutputFile); \n output.write(\"Date,Time,\");\n for(int i=0;i<configuredSensors.size();i++)\n {\n Sensor a=(Sensor) configuredSensors.get(i);\n output.write(a.name+\",units,\");\n }\n output.write(\"\\n\"); \n output.flush();\n output.close(); \n } \n catch(Exception e)\n {\n println(\"could not open output file\");\n }\n\n\n}", "title": "" }, { "docid": "dd3de2b3fda09f179c9d22045de4240d", "score": "0.47358274", "text": "public String prettyPrint(PartialFunctionalDependency fd) {\n StringBuffer sb = new StringBuffer();\n IdUtils idUtils = this.metadataStore.getIdUtils();\n final int anyColumnId = fd.getRhsColumnId();\n int schemaId = idUtils.getSchemaId(anyColumnId);\n Schema schema = this.metadataStore.getSchemaById(schemaId);\n int tableId = idUtils.getTableId(anyColumnId);\n Table table = schema.getTableById(tableId);\n sb.append(table.getName()).append(\"[\");\n String separator = \"\";\n for (int columnId : fd.getLhsColumnIds()) {\n sb.append(separator).append(this.tryToGetTableName(table, columnId));\n separator = \", \";\n }\n sb.append(\"] \\u2192 \")\n .append(this.metadataStore.getTargetById(fd.getRhsColumnId()).getName())\n .append(\" (err=\").append(String.format(\"%,.3f\", fd.getError()))\n .append(\", scr=\").append(String.format(\"%,.3f\", fd.getScore()))\n .append(\")\");\n return sb.toString();\n }", "title": "" }, { "docid": "4cae63206b3771a00fb686ec59bd2a19", "score": "0.4734408", "text": "private void writeVOTablePrimary( StarTable table,\n FitsTableSerializer fitser,\n DataOutput out )\n throws IOException, FitsException {\n \n /* Get a serializer that knows how to write VOTable metadata for\n * this table. */\n VOSerializer voser = VOSerializer.makeFitsSerializer( table, fitser );\n \n /* Get a buffer to hold the VOTable character data. */\n StringWriter textWriter = new StringWriter();\n \n /* Turn it into a BufferedWriter. */\n BufferedWriter writer = new BufferedWriter( textWriter );\n \n /* Output preamble. */\n writer.write( \"<?xml version='1.0' encoding='\" + XML_ENCODING + \"'?>\" );\n writer.newLine();\n writer.write( \"<VOTABLE version='1.1'>\" );\n writer.newLine();\n writer.write( \"<!--\" );\n writer.newLine();\n writer.write( \" ! VOTable written by \" +\n voser.formatText( this.getClass().getName() ) );\n writer.newLine();\n writer.write( \" ! Describes BINTABLE extension in following HDU\" );\n writer.newLine();\n writer.write( \" !-->\" );\n writer.newLine();\n writer.write( \"<RESOURCE>\" );\n writer.newLine();\n \n /* Output table element containing the metadata with the help of\n * the VOTable serializer. */\n writer.write( \"<TABLE\" );\n String tname = table.getName();\n if ( tname != null && tname.trim().length() > 0 ) {\n writer.write( voser.formatAttribute( \"name\", tname.trim() ) );\n }\n long nrow = fitser.getRowCount();\n if ( nrow > 0 ) {\n writer.write( voser.formatAttribute( \"nrows\",\n Long.toString( nrow ) ) );\n }\n writer.write( \">\" );\n writer.newLine();\n voser.writeDescription( writer );\n voser.writeParams( writer );\n voser.writeFields( writer );\n writer.write( \"<!-- Dummy VOTable - no DATA element -->\" );\n writer.newLine();\n writer.write( \"</TABLE>\" );\n writer.newLine();\n \n /* Output trailing tags and flush. */\n writer.write( \"</RESOURCE>\" );\n writer.newLine();\n writer.write( \"</VOTABLE>\" );\n writer.flush();\n \n /* Get a byte array containing the VOTable text. */\n byte[] textBytes = textWriter.getBuffer().toString()\n .getBytes( XML_ENCODING );\n int nbyte = textBytes.length;\n \n /* Prepare and write a FITS header describing the character data. */\n Header hdr = new Header();\n hdr.addValue( \"SIMPLE\", true, \"Standard FITS format\" );\n hdr.addValue( \"BITPIX\", 8, \"Character data\" );\n hdr.addValue( \"NAXIS\", 1, \"Text string\" );\n hdr.addValue( \"NAXIS1\", nbyte, \"Number of characters\" );\n customisePrimaryHeader( hdr );\n hdr.addValue( \"EXTEND\", true, \"There are standard extensions\" );\n String[] comments = new String[] {\n \" \",\n \"The data in this primary HDU consists of bytes which\",\n \"comprise a VOTABLE document.\",\n \"The VOTable describes the metadata of the table contained\",\n \"in the following BINTABLE extension.\",\n \"The BINTABLE extension can be used on its own as a perfectly\",\n \"good table, but the information from this HDU may provide some\",\n \"useful additional metadata.\",\n };\n for ( int i = 0; i < comments.length; i++ ) {\n hdr.insertComment( comments[ i ] );\n }\n hdr.insertCommentStyle( \"END\", \"\" );\n assert primaryHeaderOK( hdr );\n FitsConstants.writeHeader( out, hdr );\n \n /* Write the character data itself. */\n out.write( textBytes );\n \n /* Write padding to the end of the FITS block. */\n int partial = textBytes.length % FitsConstants.FITS_BLOCK;\n if ( partial > 0 ) {\n int pad = FitsConstants.FITS_BLOCK - partial;\n out.write( new byte[ pad ] );\n }\n }", "title": "" }, { "docid": "ff30e8d1f190f14d3c8f96011b63d99b", "score": "0.47315854", "text": "private void convertTablesToEDS(String[] tableNames,\n boolean includeBuildInformation,\n EndianType endianess,\n boolean isHeaderBigEndian)\n {\n this.endianess = endianess;\n\n // Create the project's data sheet and device\n dataSheet = factory.createDataSheetType();\n project = factory.createDataSheet(dataSheet);\n device = factory.createDeviceType();\n\n // The device name, built from the project name, is restricted as to format, so replace all\n // invalid characters in the project name with an underscore\n String deviceName = dbControl.getProjectName().replaceAll(\"[^a-zA-Z0-9_]\", \"_\");\n\n // Check if the initial character is invalid (i.e., a numeral after the above replacement\n // is performed)\n if (deviceName.matches(\"[^a-zA-Z_].*\"))\n {\n // Preface the device with an underscore to make it valid\n deviceName = \"_\" + deviceName;\n }\n\n // Store the modified (if needed) project name as the device name\n device.setName(deviceName);\n\n // Check if the build information is to be output\n if (includeBuildInformation)\n {\n // Set the device description field\n device.setLongDescription(dbControl.getDatabaseDescription(dbControl.getDatabaseName())\n + \"\\n\\nAuthor: \" + dbControl.getUser()\n + \"\\nCCDD Version: \" + ccddMain.getCCDDVersionInformation()\n + \"\\nDate: \" + new Date().toString()\n + \"\\nProject: \" + dbControl.getProjectName()\n + \"\\nHost: \" + dbControl.getServer()\n + \"\\nEndianess: \" + (endianess == EndianType.BIG_ENDIAN\n ? \"big\"\n : \"little\"));\n }\n\n dataSheet.setDevice(device);\n\n // Add the project's name spaces, parameters, and commands\n buildNamespaces(tableNames);\n }", "title": "" }, { "docid": "9a241f596a91860849f9607fe35a11ea", "score": "0.47305703", "text": "public abstract void format(ArrayList<AdapterResult> tables, Writer w)throws Exception;", "title": "" }, { "docid": "39039cafd5fda4039e3bc7adcc97e8b9", "score": "0.4709581", "text": "public void saveSchemaGraphToStream(DataOutputStream stream,\n \t\t\tProgressFunction pf) {\n \t\ttry {\n \t\t\tGraphIO.saveGraphToStream(stream, getSchemaGraph(), pf);\n \n \t\t} catch (GraphIOException e) {\n \t\t\t// TODO Auto-generated catch block\n \t\t\te.printStackTrace();\n \t\t}\n \t}", "title": "" }, { "docid": "21fcc89811baf8da4419cb57099b0f92", "score": "0.47060394", "text": "public void finalWriteToFile() {\n String msg = name + \" final hand: \";\n for (Card card:cards) {\n msg += card.getValue() + \" \";\n }\n\n fileOutput.add(name + \" exits\");\n fileOutput.add(msg);\n\n writeToFile();\n }", "title": "" }, { "docid": "347db750bc15c5a09c602a1595adb7c5", "score": "0.47040406", "text": "public void toTable (String filename, HashMap<String, Object> newdata){\n\t ArrayList<Object> tabledata = new ArrayList<Object>();\n\t tabledata.add(filename);\n\t tabledata.add(newdata.get(\"phase\"));\n\t tabledata.add(newdata.get(\"stepsize\"));\n\t tabledata.add(new Boolean(false));\n\t datatablemodel.addTableData(new ArrayList<Object>(tabledata));\n\t datatablemodel.fireTableDataChanged();\n }", "title": "" }, { "docid": "093690f8a2182be621af503c53ac779c", "score": "0.46967307", "text": "public void writeForDeformationModel(int deformationModelId, int faultSectionId, FileWriter fw) {\n\t\ttry{\n\t\t\tFaultSectionPrefData faultSectionPrefData = deformationModelPrefDAO.getFaultSectionPrefData(deformationModelId, faultSectionId);\n\t\t\twriteForDeformationModel(faultSectionPrefData, fw);\n\t\t\tif(this.createExcelSheet) writeToExcelSheet(faultSectionPrefData);\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "9edef429e6d69746cfc5276078332ec4", "score": "0.46879396", "text": "public void save() {\n\tPrintStream S = null;\n\ttry {\n\t\tS = new PrintStream(new RobocodeFileOutputStream(getDataFile(\"LookUpTable.txt\")));\n\t\tfor (int i=0;i<LUT.length;i++) {\n\t\t\tS.println(LUT[i][0]+\" \"+LUT[i][1]);\n\t\t}\n\t} catch (IOException e) {\n\t\te.printStackTrace();\n\t}finally {\n\t\tS.flush();\n\t\tS.close();\n\t}\n}", "title": "" }, { "docid": "bf9eec55e467b1a6495da177b3556edd", "score": "0.468373", "text": "private static FloatTable readFDATable( StreamTokenizer tokenizer ) throws IOException {\n\t\tint i;\n\t\tint tokentype;\n\t\tdouble value = 0;\n\t\t\n\t\t// Set up the tokenizer options.\n\t\ttokenizer.eolIsSignificant( false );\n\t\t\n\t\t// Create a vector to temporarily hold the names read in from the file.\n\t\tArrayList<String> names = new ArrayList<String>();\n\t\t\n\t\t// *** Read in the FDA file header.\n\t\t\n\t\t// Read in the table name, independent names and 1st number of breakpoints.\n\t\twhile ( (tokentype = tokenizer.nextToken()) != StreamTokenizer.TT_EOF ) {\n\t\t\tif ( tokentype == StreamTokenizer.TT_NUMBER ) {\n\t\t\t\t// Stop when we encounter the 1st number.\n\t\t\t\tvalue = tokenizer.nval;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tif ( tokentype == StreamTokenizer.TT_WORD ) {\n\t\t\t\t\t// Add each parameter name to our list of names.\n\t\t\t\t\tnames.add( tokenizer.sval );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif ( tokentype == StreamTokenizer.TT_EOF )\n\t\t\tthrow new IOException( kEOFErrMsg + tokenizer.lineno() );\n\t\t\n\t\t// Start filling in some variables.\n\t\tint numDims = names.size() - 1;\n\t\tString tblName = names.get( 0 );\n\t\tString[] indepNames = new String [ numDims ];\n\t\ti = 0;\n\t\tfor ( int j = numDims - 1; j >= 0; --j ) {\n\t\t\tindepNames[i] = names.get( j + 1 );\n\t\t\t++i;\n\t\t}\n\t\tnames = null;\n\t\t\n\t\t// Start checking for End-Of-Line (EOL).\n\t\ttokenizer.eolIsSignificant( true );\n\t\t\n\t\t// Read in the number of breakpoints per dimension\n\t\t// (first one has already been read in).\n\t\tint[] elemPerDim = new int [ numDims ];\n\t\telemPerDim[numDims - 1] = (int) value;\n\t\tfor ( i = numDims - 2; i >= 0; --i ) {\n\t\t\tvalue = TRUtils.nextNumber( tokenizer );\n\t\t\telemPerDim[i] = (int) value;\n\t\t}\n\t\t\n\t\t// Skip optional \"Logical\" keyword and go to next line.\n\t\tTRUtils.nextLine( tokenizer );\n\t\t\n\t\t// Skip the frequency card (read to start of next line).\n\t\tTRUtils.nextLine( tokenizer );\n\t\t\n\t\t// Stop checking for EOL.\n\t\ttokenizer.eolIsSignificant( false );\n\t\t\n\t\t// *** Read in the breakpoints.\n\t\t\n\t\t// Read in breakpoints for each independent variable.\n\t\tfloat[][] breakpoints = new float[ numDims ][];\n\t\tfor ( i = 0; i < numDims; ++i )\n\t\t\tbreakpoints[i] = new float [ elemPerDim[i] ];\n\t\t\n\t\tfor ( i = 0; i < numDims; ++i ) {\n\t\t\tfor ( int j = 0; j < breakpoints[i].length; ++j ) {\n\t\t\t\tvalue = TRUtils.nextNumber( tokenizer );\n\t\t\t\tbreakpoints[i][j] = (float) value;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// *** Read in the dependent values.\n\t\t\n\t\t// Recursively read in the dependent data arrays.\n\t\tFloatArrayNDim depData = new FloatArrayNDim( elemPerDim );\n\t\tint[] indep = new int [ numDims ];\n\t\trReadFDA( 0, tokenizer, indep, depData, breakpoints );\n\t\t\n\t\t// Create a new floatTable object using this information.\n\t\tFloatTable theTable = new FloatTable( tblName, indepNames, breakpoints, depData );\n\t\t\n\t\treturn theTable;\n\t}", "title": "" }, { "docid": "53ce0596c76b2516ab17c9cda270c171", "score": "0.46772704", "text": "public void saveToFile()\n {\n try\n {\n PrintStream outFile = new PrintStream(new FileOutputStream(creatureStableFile)); \n outFile.println(creatureStable.getRowSize() +\",\"+ creatureStable.getNumberOfCreaturesInStable()); //deleted \"\"\n for(Row row : creatureStable.getRowsArray()){\n outFile.println(row.getDescription()+\",\"+row.getStalls().size());\n for(Stall stall : row.getStalls()){\n outFile.println(stall.getName()+\",\"+stall.getType()+\",\"+stall.getOccupant());\n }\n }\n for(Row row : creatureStable.getRowsArray()){\n\n for(Stall stall : row.getStalls()){\n if(stall.getOccupied()){outFile.println(stall.getCreature().getName()+\",\"+stall.getCreature().getType()+\",\"+\n stall.getCreature().getAge()+\",\"+stall.getCreature().getWeight()+\",\"+stall.getCreature().getSpecialAttributeValue());}\n }\n }\n outFile.close();\n System.out.println(\"The file has been saved: you can view it by opening \" + creatureStableFile);\n }\n catch(Exception error)\n {\n System.out.println(\"There has been an error while writing to the file\");\n } \n }", "title": "" }, { "docid": "98aa10ec3ac503907b830c151057e0fd", "score": "0.4676381", "text": "private void writeDB() {\n try {\n achmad.rifai.admin.util.Work.jejak(id, \"Mendata Suplier \"+s.getKode());\n achmad.rifai.erp1.util.Db d=achmad.rifai.erp1.util.Work.loadDB();\n achmad.rifai.erp1.entity.dao.DAOSuplier dao=new achmad.rifai.erp1.entity.dao.DAOSuplier(d);\n achmad.rifai.erp1.entity.Suplier su=achmad.rifai.erp1.entity.Suplier.of(d, s.getKode());\n if(su==null)dao.insert(s);\n else dao.update(su, s);\n d.close();\n } catch (Exception ex) {\n achmad.rifai.erp1.util.Db.hindar(ex);\n }\n }", "title": "" }, { "docid": "ef00fbcb418554a29dcc532105da62d5", "score": "0.46758595", "text": "void write(DataOutputStream fd) {\n\t\t}", "title": "" }, { "docid": "202af5e0855ca80ff28d56c262c6f8c5", "score": "0.46728364", "text": "static void writeData(Employee[] staff, PrintWriter out)\n throws IOException\n {\n // write number of employees\n out.println(\"The number of employees are: \" + staff.length);\n\n //write out every employee on staff\n for (Employee e: staff)\n e.writeData(out); //writeData is a method of employee\n }", "title": "" }, { "docid": "ddbf012e0e20089f963a5d1dbd9f5907", "score": "0.46583015", "text": "public void write(PrintWriter writer) {\n for (int i = 0; i < rowCount; i++) {\n for (int j = 0; j < data[i].length; j++) {\n if (j != 0) {\n writer.print(TAB);\n }\n if (data[i][j] != null) {\n writer.print(data[i][j]);\n }\n }\n writer.println();\n }\n writer.flush();\n }", "title": "" }, { "docid": "fe965ad2e74fdae96903f1044ea26633", "score": "0.4647708", "text": "protected synchronized void writeHeader()\n {\n if (this.writeBuff != null) {\n try {\n this.writeBuff.write(\"Assault to the museum\");\n this.writeBuff.newLine();\n this.writeBuff.newLine();\n \n int length = this.chiefs.length;\n for (int x = 0; x < length; x++) {\n this.writeBuff.write(String.format(\"%-12s\", \"CHIEF_\" + x));\n }\n length = this.thieves.length;\n for (int x = 0; x < length; x++) {\n this.writeBuff.write(String.format(\"%-12s\", \"THIEF_\" + x));\n }\n \n this.writeBuff.newLine();\n \n length = this.chiefs.length;\n for (int x = 0; x < length; x++) {\n this.writeBuff.write(String.format(\"%-12s\", \"Stat\"));\n }\n length = this.thieves.length;\n for (int x = 0; x < length; x++) {\n this.writeBuff.write(String.format(\"%-6s\", \"Stat\"));\n this.writeBuff.write(String.format(\"%-6s\", \"Str\"));\n }\n \n this.writeBuff.newLine();\n \n length = this.teams.length;\n for (int x = 0; x < length; x++) {\n int nrColumns = 12 + this.teams[x].getCapacity()*6;\n this.writeBuff.write(String.format(\"%-\" + nrColumns + \"s\", \"PARTY_\" + x));\n }\n \n this.writeBuff.newLine();\n \n for (int x = 0; x < length; x++) {\n this.writeBuff.write(String.format(\"%-4s\", \"RId\"));\n this.writeBuff.write(String.format(\"%-6s\", \"RTPos\"));\n int nrMembers = this.teams[x].getCapacity();\n for (int y = 0; y < nrMembers; y++) {\n this.writeBuff.write(String.format(\"%-6s\", \"Mem_\" + y));\n }\n this.writeBuff.write(\" \");\n }\n \n this.writeBuff.newLine();\n } catch (IOException e) {\n System.err.println(\"Unable to write to log file \" + this.fileName);\n }\n }\n }", "title": "" }, { "docid": "a0201249148f0b6b8f83474f8a81f12b", "score": "0.4624777", "text": "void writeDataPDF( File p_file, int p_option )\n {\n Table table = theActions.theJBDD.getSelectedTable();\n \n // create the PDFWriter\n PDFWriter theWriter;\n try {\n theWriter = new PDFWriter( p_file, table.getLabel(), theActions.theJBDD.getName());\n \n \n switch(p_option) {\n case DialogPrint.SORT_BD :\n case DialogPrint.SORT_PARENT :\n \n // has a parent = is a list of 'BD' within Series\n if( table.hasParent() ) {\n // index of the Field for Serie Name\n Table parentTable = (Table) table.getParent();\n int indexSerie = parentTable.myHeader.getFieldPosition(\"Série\");\n \n // the Choice of Header to be printed\n Header choiceHeader = new Header();\n // try to add chosen Fields\n choiceHeader.add( table.myHeader.getField(table.myHeader.getFieldPosition(\"Vol.\")));\n choiceHeader.add( table.myHeader.getField(table.myHeader.getFieldPosition(\"Titre\")));\n choiceHeader.add( table.myHeader.getField(table.myHeader.getFieldPosition(\"Auteurs\")));\n choiceHeader.add( table.myHeader.getField(table.myHeader.getFieldPosition(\"Où ?\")));\n \n // collect the set of parents \n HashSet setParent = new HashSet();\n for (Iterator iEnr = table.listEnregistrement.iterator(); iEnr.hasNext();) {\n Enregistrement tmpEnr = (Enregistrement) iEnr.next();\n // add its Serie name\n Enregistrement tmpParentEnr = (Enregistrement) tmpEnr.getParent();\n setParent.add( tmpParentEnr.data[indexSerie].displayData()); \n }\n \n for (Iterator iSerie = setParent.iterator(); iSerie.hasNext();) {\n // generate all SearchRequest\n String strSerie = (String) iSerie.next();\n Field fieldSearched = parentTable.myHeader.getField(indexSerie);\n SearchedElement searchedSerie = new SearchedElement( strSerie, fieldSearched, SearchedElement.SIMILAR); \n SearchOperator searchEngine = new SearchOperator();\n searchEngine.addSearchItem( searchedSerie );\n View theResult = searchEngine.applyTo( table );\n \n if( p_option == DialogPrint.SORT_BD) {\n // sort Result\n theResult.sort( new BandeDessineeComparator( true /* ascending */));\n }\n // write Result\n theWriter.addTable(strSerie, theResult, choiceHeader);\n }\n \n }\n else { // just send out the table\n theWriter.addTable(table, table.myHeader);\n }\n break;\n case DialogPrint.SORT_NULL :\n theWriter.addTable(table, table.myHeader);\n }\n theWriter.end();\n } catch (DocumentException e) {\n logger.fatal( e.getMessage());\n e.printStackTrace();\n System.exit( 1 );\n } catch (IOException e) {\n logger.error( e.getMessage());\n }\n }", "title": "" }, { "docid": "e2345ed05ba7ad16101d37daba13da51", "score": "0.46117654", "text": "public static void File(String dID, String dName, String dCharge, String dDept, int dDuration, String dEMail, String dPhone, String dStart, String dEnd)\r\n\t{\r\n\t\tFile f1 = new File(\"Doctor.txt\");\r\n\t\tboolean empty = f1.length() == 0;\r\n\t\tif (empty) {\r\n\t\t\ttry {\r\n\t\t\t\tf1.setWritable(true);\r\n\t\t\t\tFileWriter fw = new FileWriter(f1);\r\n\t\t\t\tFileOutputStream fo = new FileOutputStream(f1);\r\n\t\t\t\tfw.write(\"Doctor details Table\\n\\r\");\r\n\t\t\t\tfw.write(\"\\n\\r\");\r\n\t\t\t\tfw.write(\"\\n\\r\");\r\n\t\t\t\tfw.write(\"Doctor id\"+\"\\t\"+\"Doctor Name\"+\"\\t\"+\"Appointment Charge\"+\"\\t\"+\"Dept\"+\"\\t\\t\"+\"Appointment Duration\"+\"\\t\\t\"+\"Working Hours\"+\"\\t\\t\"+\"Email\"+\"\\t\\t\"+\"Phone\");\r\n\t\t\t\tfw.write(\"\\n\\r\");\r\n\t\t\t\tfw.write(\"\\n\\r\");\r\n\t\t\t\tfw.write(dID+\"\\t\\t\" + dName + \"\\t\\t\" + \"$ \" + dCharge + \"\\t\\t\\t\"+ dDept + \"\\t\\t\" + dDuration+ \"mins.\" +\"\\t\\t\\t\"+dStart+\"\\tto \"+dEnd+\"\\t\\t\"+dEMail+\"\\t\"+dPhone);\r\n\t\t\t\t//fw.write(\"\\n\\r\");\r\n\t\t\t\t//fw.write(\"\\n\\r\");\r\n\t\t\t\tfw.flush();\r\n\t\t\t\tfw.close();\r\n\t\t\t\t// System.out.println(\"Content written sucessfully\");\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tFileWriter fw;\r\n\t\t\ttry {\r\n\t\t\t\tfw = new FileWriter(\"Doctor.txt\", true);\r\n\t\t\t\tBufferedWriter bw = new BufferedWriter(fw);\r\n\t\t\t\t// bw.write(\"This is just to check how it is working\");\r\n\t\t\t\tbw.newLine();\r\n\t\t\t\tfw.write(\"\\n\\r\");\r\n\t\t\t\tfw.write(\"\\n\\r\");\r\n\t\t\t\t//fw.write(dID+\"\\t\\t\" + dName + \"\\t\\t\" + \"$\" + dCharge + \"\\t\\t\"+ dDept + \"\\t\\t\" + dDuration +\"\\t\\t\"+dStart+\"\\tto\"+\"\\t\"+dEnd+\"\\t\\t\"+dEMail+\"\\t\\t\"+dPhone);\r\n\t\t\t\t//fw.write(dID+\"\\t\\t\" + dName + \"\\t\\t\" + \"$\" + dCharge + \"\\t\\t\\t\"+ dDept + \"\\t\\t\" + dDuration +\"\\t\\t\\t\"+dStart+\"\\tto\"+dEnd+\"\\t\\t\"+dEMail+\"\\t\\t\"+dPhone);\r\n\t\t\t\t//fw.write(dID+\"\\t\\t\" + dName + \"\\t\\t\" + \"$\" + dCharge + \"\\t\\t\\t\"+ dDept + \"\\t\\t\" + dDuration +\"\\t\\t\\t\"+dStart+\"\\tto\\t\"+dEnd+\"\\t\"+dEMail+\"\\t\"+dPhone);\r\n\t\t\t\tfw.write(dID+\"\\t\\t\" + dName + \"\\t\\t\" + \"$\" + dCharge + \"\\t\\t\\t\"+ dDept + \"\\t\\t\" + dDuration +\"\\t\\t\\t\"+dStart+\"\\tto \"+dEnd+\"\\t\\t\"+dEMail+\"\\t\"+dPhone);\r\n\t\t\t\tfw.write(\"\\n\\r\");\r\n\t\t\t\t\r\n\t\t\t\tbw.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t}\r\n}", "title": "" }, { "docid": "f225f5c83fc68b8650d6e6b406022f3b", "score": "0.46096897", "text": "@Override\r\n public void exportOriginalData() {\n try (PrintWriter writer = new PrintWriter(this.inputFile, \"UTF-8\")) {\r\n boolean FLAG = false;\r\n \r\n for(int i = 0 ; i < columnNames.length ; i ++){\r\n if (FLAG == false){\r\n writer.print(columnNames[i]);\r\n FLAG = true;\r\n }\r\n else{\r\n writer.print(\",\"+columnNames[i]);\r\n }\r\n\r\n }\r\n writer.println();\r\n \r\n for(int i=0; i<this.sizeOfRows; i++){\r\n for(int j=0; j<this.sizeOfCol; j++){\r\n if (colNamesType.get(j).equals(\"double\")){\r\n if (Double.isNaN(dataSet[i][j])){\r\n writer.print(\"\");\r\n }\r\n else{\r\n Object a = dataSet[i][j];\r\n writer.print( dataSet[i][j]);\r\n }\r\n }\r\n else if (colNamesType.get(j).equals(\"int\")){\r\n if (dataSet[i][j] == 2147483646.0){\r\n writer.print(\"\");\r\n }\r\n else{\r\n writer.print( Integer.toString((int)dataSet[i][j])+\"\");\r\n }\r\n }\r\n else{\r\n String str = dictionary.getIdToString((int)dataSet[i][j]);\r\n if(str == null){\r\n str = this.dictHier.getIdToString((int)dataSet[i][j]);\r\n }\r\n // DictionaryString dict = dictionary.get(j);\r\n // String str = dict.getIdToString((int)dataSet[i][j]);\r\n\r\n if (str.equals(\"NaN\")){\r\n writer.print(\"\");\r\n }\r\n else{\r\n writer.print(str);\r\n }\r\n }\r\n \r\n if(j!=this.sizeOfCol-1){\r\n writer.print(\",\");\r\n }\r\n }\r\n writer.println();\r\n }\r\n \r\n }catch(FileNotFoundException | UnsupportedEncodingException ex) {\r\n System.out.println(\"mexssage \"+ex.getMessage());\r\n }\r\n System.out.println(\"done orgiginal data\");\r\n }", "title": "" }, { "docid": "5bf2a4fe7754935189dd2fcf4ec75b34", "score": "0.4609427", "text": "public void saveFile( Formatter ft )\n\t{\n\t\tft.close();\n\t}", "title": "" }, { "docid": "1579aab81bde99b8384ff406ce71fe4b", "score": "0.46093282", "text": "private static void reportOne() {\n\n\t\tsb = new StringBuilder();\n\n\t\tString title = \" 2020: Temperatures in Utah \\n\";\n\t\tint highestIndex = 0;\n\t\tint lowestIndex = 0;\n\t\tline = createLine(LINE, '-');\n\n\t\tfloat sumHigh = 0;\n\t\tfloat sumLow = 0;\n\n\t\t// Add the title.\n\t\tsb.append(line);\n\t\tsb.append(titleMonth + title);\n\t\tsb.append(line);\n\n\t\t// Create the header for the table. Print out and add to file.\n\t\tString header = createRow(HEADER_TEMPLATE.split(\"\\s+\"), COLUMN_DATE, COLUMN_HIGH, COLUMN_LOW, COLUMN_VARIANCE);\n\n\t\tsb.append(header);\n\t\tsb.append(line);\n\n\t\t// Indexes for the data.\n\t\tint iDataLow = 3;\n\t\tint iDataHigh = 4;\n\n\t\t// row indexes.\n\t\t//@formatter:off\n\t\tint iDate = 0;\n\t\tint iHigh = 1;\n\t\tint iLow = 2;\n\t\tint iVar = 3;\n\t\t//@formatter:on\n\n\t\tString[] row = new String[HEADER_TEMPLATE.split(\"\\s+\").length];\n\n\t\t// String[] row = new String[];\n\t\t// Create each row entry.\n\t\tfor (int i = 0; i < data.length; i++) {\n\n\t\t\t// Check for the highest and lowest.\n\t\t\tif (Integer.parseInt(data[i][iHIGH]) > Integer.parseInt(data[highestIndex][iHIGH]))\n\t\t\t\thighestIndex = i;\n\n\t\t\tif (Integer.parseInt(data[i][iLOW]) < Integer.parseInt(data[lowestIndex][iLOW]))\n\t\t\t\tlowestIndex = i;\n\n\t\t\trow[iDate] = data[i][iMONTH] + \"/\" + data[i][iDAY] + \"/\" + data[i][iYEAR];\n\t\t\trow[iHigh] = data[i][iHIGH];\n\t\t\trow[iLow] = data[i][iLOW];\n\t\t\trow[iVar] = variance(Integer.parseInt(data[i][iHIGH]), Integer.parseInt(data[i][iLOW]));\n\n\t\t\t// Get the row and add it to the StringBuilder.\n\t\t\tString rowString = createRow(row, COLUMN_DATE, COLUMN_HIGH, COLUMN_LOW, COLUMN_VARIANCE);\n\t\t\tsb.append(rowString);\n\n\t\t\tsumHigh += Float.parseFloat(data[i][iHIGH]);\n\t\t\tsumLow += Float.parseFloat(data[i][iLOW]);\n\n\t\t}\n\n\t\tsb.append(line);\n\n\t\t// The final report at the end.\n\t\tString highest = String.format(\"%s Highest Temperature: %s/%s: %s Average Hi: %.1f\", titleMonth, monthNumber,\n\t\t\t\tdata[highestIndex][iDAY], data[highestIndex][iHIGH], sumHigh / data.length);\n\n\t\tString lowest = String.format(\"%s Lowest Temperature: %s/%s: %s Average Lo: %.1f\", titleMonth, monthNumber,\n\t\t\t\tdata[lowestIndex][iDAY], data[lowestIndex][iLOW], sumLow / data.length);\n\n\t\tsb.append(highest + NEWLINE);\n\t\tsb.append(NEWLINE);\n\t\tsb.append(lowest + NEWLINE);\n\n\t}", "title": "" }, { "docid": "bd1ce5e9879e8a7c5d9164b03e2b036a", "score": "0.4604152", "text": "private static void createOneDRConflictTable(StringBuilder sb, String name, boolean partitioned) {\n sb.append(\"CREATE STREAM \").append(name).append(\" \");\n // The partitioning here doesn't matter, it's only to trick the export system, not related to data placement.\n if (partitioned) {\n sb.append(\"PARTITION ON COLUMN \").append(DR_TIMESTAMP_COLUMN_NAME).append(\" \");\n }\n sb.append(\"EXPORT TO TARGET \").append(CatalogUtil.DR_CONFLICTS_TABLE_EXPORT_GROUP).append(\" (\");\n for (String[] column : DR_CONFLICTS_EXPORT_TABLE_META_COLUMNS) {\n sb.append(column[0]).append(\" \").append(column[1]);\n if (!column[0].equals(DR_TUPLE_COLUMN_NAME)) {\n sb.append(\", \");\n }\n }\n sb.append(\");\\n\");\n }", "title": "" }, { "docid": "36f45410d4dc8ee4eb17b23097187978", "score": "0.46039602", "text": "private void writeObject(ObjectOutputStream out) throws IOException {\r\n\t\tout.writeObject(tableDef);\r\n\t\tout.writeObject(fieldDef);\r\n\t}", "title": "" }, { "docid": "abfce567ebef2b45893a26ac40cfa5dd", "score": "0.46014005", "text": "protected void saveStadiums(){\n try{\n PrintWriter out = new PrintWriter(path + \"stadiums.dat\");\n\n for(int i=0; i < stadiums.size(); i++){\n out.println(stadiums.get(i).toString());\n out.println(stadiums.get(i).getID());\n out.println(stadiums.get(i).getCapacity());\n out.println(); // aggiungi riga vuota\n }\n out.close();\n }\n catch (IOException e) {\n System.out.println(e.toString());\n }\n }", "title": "" }, { "docid": "608c03e15d577e174e912dee3213eda1", "score": "0.45989627", "text": "void dump() throws CodeGenException\n {\n FileWriter fw;\n\n DT = new dumpTables(S1);\n if (S2 != null && opt.twoStatecharts) {\n DT.generate(S2);\n }\n try {\n fw = new FileWriter(opt.path + \"/SymbolTable.java\");\n DT.dump(fw, opt.PrettyTraces);\n fw.flush();\n fw.close();\n fw = new FileWriter(opt.path + \"/\" + opt.name1 + \".java\");\n dumpAutomaton(fw, opt.name1, S1);\n fw.flush();\n fw.close();\n if (opt.twoStatecharts && S2 != null) {\n\tfw = new FileWriter(opt.path + \"/\" + opt.name2 + \".java\");\n\tdumpAutomaton(fw, opt.name2, S2);\n\tfw.flush();\n\tfw.close();\n }\n }\n catch (IOException e) {\n throw(new CodeGenException(e.toString()));\n }\n }", "title": "" }, { "docid": "e3b801e9acce76b31547a8f55c93d232", "score": "0.45899343", "text": "void write(final Table table, final Stream<List<Object>> rows);", "title": "" }, { "docid": "79b8d53b863caa6aefe041bf13e48032", "score": "0.4586154", "text": "static void writeToFile(String dayTime, String allOrder) throws IOException{\n\t\t File output = new File(writeOrder);\n\t\t FileOutputStream out;\n\t\t try {\n\t\t out = new FileOutputStream(output, true);\n\t\t out.write(dayTime.getBytes());\t\n\t\t out.write(allOrder.getBytes());\n\t\t } catch (FileNotFoundException ex) {\n\t\t System.out.println(\"Couldn't open output file \" + output);\n\t\t return;\n\t\t }\n\t\t out.close();\n\t}", "title": "" }, { "docid": "580a1df58d70923cc5bc61f98a2be89a", "score": "0.45825833", "text": "@Override\n\tpublic void writeToFile() {\n\t\ttry {\n\t\t PrintWriter gradeOutput = new PrintWriter(super.getId() + \"_graded.txt\");\n\t\t gradeOutput.println(\"Undergraduate Student \" + super.getName());\n\t\t gradeOutput.println(\"Student ID: \" + super.getId());\n\t\t gradeOutput.println(\"Major: \" + getMajor());\n\t\t gradeOutput.println(super.getPrintableErrorList());\n\t\t gradeOutput.close();\n\t\t }\n\t\tcatch (FileNotFoundException ex){\n\t\t //do something\n\t\t}\n\t}", "title": "" }, { "docid": "b45e3764b464da594515b8e777b60b94", "score": "0.45808324", "text": "public void buildDFATableModel(CDFA aDFATableStructure){\n int colCount=aDFATableStructure.alphabet().cardinality();\r\n Object[] columnNames=new Object[colCount+3];\r\n \r\n columnNames[0]=\"STATES\";\r\n columnNames[1]=\"Accept\";\r\n columnNames[2]=\"NFA STATES\";\r\n \r\n for(int i=3, j=aDFATableStructure.alphabet().nextSetBit(0); j>=0;j=aDFATableStructure.alphabet().nextSetBit(j+1),i++){\r\n\t\t\tcolumnNames[i]=(char)j;\r\n }\r\n \r\n //2. Get States\r\n Object rowData[][] =new Object[aDFATableStructure.stateCount()][columnNames.length];\r\n for(int vState=0; vState<=aDFATableStructure.stateCount()-1;vState++){\r\n rowData[vState][0]=vState;\r\n }\r\n //3. Get Accepting States\r\n for(int vState=0;vState<aDFATableStructure.stateCount();vState++){\r\n\t rowData[vState][1]=aDFATableStructure.getOutput(vState);\r\n\t }\r\n \r\n //3. Get NFA States\r\n for(int vState=0;vState<aDFATableStructure.stateCount();vState++){\r\n if(!aDFATableStructure.getNFAStateSet().isEmpty()){\r\n rowData[vState][2]=aDFATableStructure.getNFAStateSet().get(vState);\r\n }\r\n\t } \r\n //4. Get row data\r\n for(int vState=0; vState<=aDFATableStructure.stateCount()-1;vState++){\r\n for(int i=3, j=aDFATableStructure.alphabet().nextSetBit(0); j>=0;j=aDFATableStructure.alphabet().nextSetBit(j+1),i++){\r\n rowData[vState][i]=aDFATableStructure.dTransition(vState, (char)j);\r\n } \r\n }\r\n \r\n tb = new DefaultTableModel(rowData,columnNames);\r\n \r\n //5. Set the model just built as model of DFATableView\r\n setModel(tb);\r\n }", "title": "" }, { "docid": "6b2f6ff71b33559f9de8eb1b0e92f451", "score": "0.45755637", "text": "public void write_s(double time[], double freq[], double score) throws TonalBinaryFormatError {\r\n\t\tcheckScore(true);\r\n\t\tcheckConfidence(false);\r\n\t\twrite_scalar(score);\r\n\t\twrite_tonal(time, freq);\r\n\t}", "title": "" }, { "docid": "0cf0c1e8f2e1719d1aa20c3753fabafb", "score": "0.4561834", "text": "public void saveToTGF(String fName) {\n try {\n PrintWriter writer = new PrintWriter(new File(fName));\n //notice that indexing in the tgf format starts at 1 (not 0)\n\n //write vertices by iterating through vector \"vertices\"\n for (int i = 0; i < vertices.size(); i++) {\n writer.print((i+1) + \" \" + vertices.get(i));\n writer.println(\"\");\n }\n writer.println(\"#\"); // # symbol separates the vertices from the arcs\n writer.println(\"\");\n //write arcs by iterating through arcs vector\n for (int i = 0; i < arcs.size(); i++){ //for each adjacent list\n for (T destinationVertex :arcs.get(i)) { //for each destination vertex in that list\n int destinationIndex = vertices.indexOf(destinationVertex); //find the index of that vertex\n writer.println((i+1) + \" \" + (destinationIndex+1));\n }\n }\n writer.close();\n } catch (IOException ex) {\n System.out.println(\"***ERROR***\" + fName + \" could not be written\");\n }\n }", "title": "" }, { "docid": "4a8f5f937093bc7c50926533b238e28a", "score": "0.45617437", "text": "void writeFileRows(String fileName, ArrayList fRows) throws SignOnException {\n try {\n File file = new File(fileName);\n\n if (!file.canWrite())\n throw new IOException(\"The system isn't allowed to write to file: \" + fileName);\n\n FileWriter fw = new FileWriter(file);\n\n BufferedWriter writer = new BufferedWriter(fw);\n\n for (Iterator i = fRows.iterator(); i.hasNext();) {\n String line = (String) i.next();\n writer.write(line);\n writer.newLine();\n }\n\n writer.flush();\n writer.close();\n\n } catch (FileNotFoundException noe) {\n throw new SignOnException(\"No such file \" + fileName);\n } catch (IOException ioe) {\n throw new SignOnException(\"Error reading acls \" + ioe.toString());\n }\n\n }", "title": "" }, { "docid": "f4137b002877a43d3b1805006b3ab475", "score": "0.4556759", "text": "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tJFileChooser fc = new JFileChooser();\r\n\t\t\t\tint resultado = fc.showOpenDialog(c);\r\n\t\t\t\tif (resultado == JFileChooser.APPROVE_OPTION) {\r\n\t\t\t\t\tFile f = fc.getSelectedFile();\r\n\t\t\t\t\tBufferedWriter out = null;\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tout = new BufferedWriter(new FileWriter(f));\r\n\r\n\t\t\t\t\t\tfor (int i = 0; i < tabla.getRowCount(); i++) {\r\n\t\t\t\t\t\t\tfor (int j = 0; j < tabla.getColumnCount(); j++) {\r\n\t\t\t\t\t\t\t\tout.write((String) tabla.getValueAt(i, j));\r\n\t\t\t\t\t\t\t\tif (j < tabla.getColumnCount() -1) {\r\n\t\t\t out.write(\"; \");\r\n\t\t\t }\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tout.newLine();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t} finally {\r\n\t\t\t\t\t\tif (out != null)\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tout.close();\r\n\t\t\t\t\t\t\t} catch (IOException e1) {\r\n\r\n\t\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}", "title": "" }, { "docid": "c5157db79efc4d3632cd995785c34730", "score": "0.45493934", "text": "public static TableD readTableD(String tablename) throws IOException {\n \n InputStream ios = open(tablename);\n BufferedReader dataIS = new BufferedReader(new InputStreamReader(ios));\n int count = 0;\n \n TableD d = new TableD(tablename, tablename);\n \n // read table D to store sequences and their descriptors\n while (true) {\n String line = dataIS.readLine();\n if (line == null) break;\n count++;\n // check for comment lines\n if (line.startsWith(\"#\") || line.length() == 0)\n continue;\n \n String[] split = line.split(\"[ \\t]+\"); // 1 or more whitespace\n try {\n short seqF = Short.parseShort(split[0]);\n short seqX = Short.parseShort(split[1]);\n short seqY = Short.parseShort(split[2]);\n assert seqF == 3;\n \n String seqName = \"\";\n if (split.length > 3) {\n StringBuilder sb = new StringBuilder(40);\n for (int i = 3; i < split.length; i++)\n sb.append(split[i]).append(\" \");\n seqName = sb.toString();\n seqName = StringUtil.remove( seqName, \"()\");\n }\n \n List<Short> seq = new ArrayList<Short>();\n // look for descriptors within sequence terminated by -1\n while (true) {\n line = dataIS.readLine();\n if (line == null) break;\n count++;\n // check for comment lines\n if (line.startsWith(\"#\") || line.length() == 0)\n continue;\n \n Matcher m = threeInts.matcher(line);\n // descriptor found\n if (m.find()) {\n short f = Short.parseShort(m.group(1));\n short x = Short.parseShort(m.group(2));\n short y = Short.parseShort(m.group(3));\n seq.add(Descriptor.getFxy(f, x, y));\n \n } else {\n m = negOne.matcher(line);\n if (m.find()) {\n // store this sequence\n d.addDescriptor(seqX, seqY, seqName, seq);\n break;\n }\n }\n }\n } catch (Exception e) {\n log.warn(\"TableD \" + tablename + \" Failed on line \" + count + \" = \" + line+\"\\n \"+e);\n e.printStackTrace();\n }\n }\n dataIS.close();\n \n return d;\n }", "title": "" }, { "docid": "b44f3158e7946565f802ee670ab9d4da", "score": "0.45423597", "text": "@Override\n public void startTable(List<String> titles) {\n StringBuilder ele = new StringBuilder();\n ele.append(\"<table>\\n<thead>\\n\\t<tr>\\n\"); //NON-NLS\n for (String title : titles) {\n ele.append(\"\\t\\t<th>\").append(title).append(\"</th>\\n\"); //NON-NLS\n }\n ele.append(\"\\t</tr>\\n</thead>\\n\"); //NON-NLS\n\n try {\n out.write(ele.toString());\n } catch (IOException ex) {\n logger.log(Level.SEVERE, \"Failed to write table start: {0}\", ex); //NON-NLS\n }\n }", "title": "" }, { "docid": "911279597d30f2b5e6440868c9d90e03", "score": "0.45339957", "text": "public final void writeHighScoreFile() {\n\t\tfinal File file = new File(\"HighScore.jahs\");\n\t\ttry {\n\t\t\tfile.createNewFile();\n\t\t} catch (final IOException ex) {\n\t\t\tSystem.out.println(\"Problem accessing Highscore file.\");\n\t\t}\n\t\ttry {\n\t\t\tfinal FileWriter fstream = new FileWriter(file);\n\t\t\tfinal BufferedWriter out = new BufferedWriter(fstream);\n\t\t\twhile (highScoreListNames.size() > 0) {\n\t\t\t\tfinal int index = getTopScore();\n\t\t\t\tfinal int x = rnd.nextInt(10);\n\t\t\t\tout.write(x\n\t\t\t\t\t\t+ StringEncrypt.encrypt(highScoreListNames.get(index)\n\t\t\t\t\t\t\t\t+ \":\" + highScoreListScores.get(index) + \":\"\n\t\t\t\t\t\t\t\t+ highScoreListTimes.get(index), x) + \"\\n\");\n\t\t\t\thighScoreListNames.remove(index);\n\t\t\t\thighScoreListScores.remove(index);\n\t\t\t\thighScoreListTimes.remove(index);\n\t\t\t}\n\t\t\tout.close();\n\t\t} catch (final IOException ex) {\n\t\t\tSystem.out.println(\"Problem writing to Highscore file.\");\n\t\t}\n\t}", "title": "" }, { "docid": "1ded3b4ebd8e150e4c15efb3c07c0702", "score": "0.45263678", "text": "public void writeToFile() {\n\tFileOutputStream outFile = null;\n\ttry {\n\t\toutFile = new FileOutputStream(FILE_NAME);\n\t} catch (FileNotFoundException fnf) {\n\t\tSystem.err.println(\"File cannot be opened!\");\n\t\treturn;\n\t}\n\tPrintWriter pW = new PrintWriter(outFile, false);\n\tsortEventList(events);\n\tfor (int i = 0; i < events.size(); i++) {\n\t\tEvent cur = events.get(i);\n\t\tString endtime = \"\";\n\t\tif (cur.getEndTime() != null)\n\t\t\tendtime = cur.getEndTime();\n\t\tpW.println(cur.getTitle() + \"\\t\" + monthArr[cur.getDate().get(Calendar.MONTH)].toString() + \"\\t\"\n\t\t\t\t+ cur.getDate().get(Calendar.DAY_OF_MONTH) + \"\\t\" + cur.getDate().get(Calendar.YEAR) + \"\\t\"\n\t\t\t\t+ cur.getStartTime() + \"\\t\" + endtime);\n\t}\n\n\tpW.close();\n}", "title": "" }, { "docid": "6ea6e73922e166c2b426361a30aef42a", "score": "0.45162418", "text": "public void write(StructuredTextFile stf, SequenceModel[] sequences, DiagramSaveMode dsm) {\r\n\t\tstf.writeLong(this.createPath(COUNT), sequences.length);\r\n\t\tfor (int i = 0; i < sequences.length; i++) {\r\n\t\t\tstf.writeStr(this.createPath(i, NAME), toHTML(sequences[i].getName()));\r\n\t\t\tif (dsm == DiagramSaveMode.REGULAR) {\r\n\t\t\t\tstf.writeStr(this.createPath(i, COMMENT), toHTML(sequences[i].getComment()));\r\n\t\t\t\tstf.writeStr(this.createPath(i, HISTORY), toHTML(sequences[i].getHistory()));\r\n\t\t\t}\r\n\t\t\tstf.writeLong(this.createPath(i, INCREMENT), sequences[i].getIncrement());\r\n\t\t\tstf.writeLong(this.createPath(i, START_VALUE), sequences[i].getStartValue());\r\n\t\t\tLOG.debug(\"sequence written: \" + sequences[i].getName());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1684357a5762ba7fab922d80f6dd36ea", "score": "0.45156795", "text": "private void writeSDF(Double[] keysScore, String folder)\n\t{\n\t\tMap<String, Vector<PeakMolPair>> candidateToFragments = results.getMapCandidateToFragments();\n\t\tMap<Double, Vector<String>> realScoreMap = results.getRealScoreMap();\n\t\tMap<String, IAtomContainer> candidateToStructure = results.getMapCandidateToStructure();\n\t\t\n\t\tMoleculeSet setOfMolecules = new MoleculeSet();\n\t\tfor (int i = keysScore.length -1; i >=0 ; i--) {\n\t\t\tVector<String> list = realScoreMap.get(keysScore[i]);\n\t\t\tfor (String string : list) {\n\t\t\t\t//get corresponding structure\n\t\t\t\tIAtomContainer tmp = candidateToStructure.get(string);\n\t\t\t\ttmp = AtomContainerManipulator.removeHydrogens(tmp);\n\t\t\t\ttmp.setProperty(\"DatabaseID\", string);\n\t\t\t\ttmp.setProperty(\"Score\", keysScore[i]);\n\t\t\t\ttmp.setProperty(\"PeaksExplained\", candidateToFragments.get(string).size());\n\t\t\t\t\n\t\t\t\t//fix for bug in mdl reader setting where it happens that bond.stereo is null when the bond was read in as UP/DOWN (4)\n\t\t\t\tfor (IBond bond : tmp.bonds()) {\n\t\t\t\t\tif(bond.getStereo() == null)\n\t\t\t\t\t\tbond.setStereo(Stereo.UP_OR_DOWN);\t\t\n\t\t\t\t} \n\t\t\t\tsetOfMolecules.addAtomContainer(tmp);\n\t\t\t}\n\t\t}\n\t\t//write results file\n\t\ttry {\n\t\t\tSDFWriter writer = new SDFWriter(new FileWriter(new File(folder + \"logs/\" + date + \"_Structures.sdf\")));\n\t\t\twriter.write(setOfMolecules);\n\t\t\twriter.close();\n\t\t} catch (CDKException 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}", "title": "" }, { "docid": "1cfc1dd035f3ec5f20041a6b6079c7eb", "score": "0.4514563", "text": "protected void saveFeatures(List<double[]> fs) {\r\n\t\ttry {\r\n\t\t\tPrintWriter writer = new PrintWriter(new File(features_path.replaceAll(\"\\\\.ser\", \".txt\")));\r\n\t\t\twriter.println(\"Music Factory features for \" + fs.size() + \" tracks, generated on \" + (new Date()));\r\n\t\t\twriter.println();\r\n\t\t\twriter.println();\r\n\t\t\tfor (int i = 0; i < fs.size(); ++i) {\r\n\t\t\t\tif (fs.get(i) != null) {\r\n\t\t\t\t\tfor (int j = 0; j < fs.get(i).length; ++j) {\r\n\t\t\t\t\t\twriter.print(fs.get(i)[j] + \" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\twriter.println();\r\n\t\t\t\t\twriter.println(\"----------------\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (fs.size() < 1)\r\n\t\t\t\twriter.println(\"No data\");\r\n\t\t\twriter.close();\r\n\t\t} catch (FileNotFoundException e1) {\r\n\t\t\t// Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * write serialised object\r\n\t\t */\r\n\t\tFileOutputStream fout;\r\n\t\ttry {\r\n\t\t\tfout = new FileOutputStream(new File(features_path));\r\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(fout);\r\n\t\t\toos.writeObject(fs);\r\n\t\t\toos.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// Auto-generated catch block\r\n\t\t\tLogger.log(e, LogType.ERROR_LOG);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// Auto-generated catch block\r\n\t\t\tLogger.log(e, LogType.ERROR_LOG);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "21f097acd3640f31f884f11a5f9e093d", "score": "0.45143747", "text": "private void exportData(){\n writeData = false;\n\n //System.out.println(stationData[currentBacklog-1][currentStation-1][6]);\n FileWriter.addMeasurements(stationData[currentBacklog]);\n //FileWriter.addMeasurements(stationData[writeBacklog].clone());\n }", "title": "" }, { "docid": "7b06039a9ca64b9a7ee8466508ea7242", "score": "0.45109075", "text": "public void write() {\n try {\n SACFileWriter writer = new SACFileWriter(file.getAbsolutePath(), header, sequence);\n } catch (IOException e) {\n throw new IllegalStateException(e.getMessage());\n }\n }", "title": "" }, { "docid": "5e38facda5b23b542b43e09b90c8a184", "score": "0.4504289", "text": "private void writeFitnesses()\r\n {\r\n try\r\n {\r\n FileWriter writer = new FileWriter(avg_out);\r\n writer.write(averageFitnesses.toString());\r\n writer.close();\r\n }\r\n catch(IOException e)\r\n {\r\n System.out.println(\"Failed writing average fitness\");\r\n }\r\n try\r\n {\r\n FileWriter writer = new FileWriter(best_out);\r\n writer.write(bestFitnesses.toString());\r\n writer.close();\r\n }\r\n catch(IOException e)\r\n {\r\n System.out.println(\"Failed writing best fitness\");\r\n }\r\n }", "title": "" }, { "docid": "5070ab2d736f366a7b3e2947b6a4817c", "score": "0.4501933", "text": "private void printToFile(int iteration) throws IOException{\n \n try{\n FileWriter fw = new FileWriter(\"MachineOutput.txt\", true);\n BufferedWriter writer = new BufferedWriter(fw);\n writer.write(\"-------------------------\\n\");\n writer.write(\"Finite State Automaton #\" + iteration + \"\\n\");\n writer.write(\"(1) Number of States: \" + stateList.size() + \"\\n\");\n writer.write(\"(2) Final States: \" + printFinalStates() + \"\\n\");\n writer.write(\"(3) Transitions:\\n\");\n printTransitions(writer);\n\n writer.write(\"(4) Strings: \\n\" );\n\n for(String s: testers){\n\n if(testFSA(s))\n writer.write(\" \" + s + \" \" + \"Accepted\\n\");\n else\n writer.write(\" \" + s + \" \" + \"Rejected\\n\");\n }\n\n writer.close();\n }\n catch(IOException i){\n System.out.println(\"Could not write to file\");\n }\n \n }", "title": "" }, { "docid": "8255c5b2cd533cef8955f4bbf076d572", "score": "0.45018056", "text": "@Override\n\tpublic void writeToFileOne() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\t//System.out.println(replicaTree0.printNodes(replicaTree0.root));\n\t\t\n\t\t\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tFile myObj = new File(output1FilePath);\n\t\t\t\n\t\t\tBufferedWriter br= null;\n\t\t\tbr= new BufferedWriter(new FileWriter(myObj));\n\t\t\t\n\t\t\tfor(Map.Entry<Integer,Set<String>> entry : record.entrySet()) {\n\t\t\t\tbr.write(entry.getKey()+\" : \"+entry.getValue() );\n\t\t\t\t//System.out.println(entry.getKey()+\" : \"+entry.getValue());\n\t\t\t\tbr.newLine();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tbr.flush();\n\t\t\tbr.close();\n\t\t\t\n\t\t}catch (NullPointerException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.err.println(\"Could not create new file\");\n\t\t\terrorHandlerObj.printErrorMessage(\"Could not create new file\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\t\n\t\tcatch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.err.println(\"Could not create new file\");\n\t\t\terrorHandlerObj.printErrorMessage(\"Could not create new file\");\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t}", "title": "" }, { "docid": "b9676b3a0cbd7962dc724a2f144f48de", "score": "0.45013803", "text": "private void writeData(AML aml) throws FileNotFoundException {\n\ttry {\n\t\tSet<String> predicates = aml.generic.keySet();\n\t\t// gets predicates to name the data files\n\t\tfor (String i : predicates) {\n\t\t\t// name files as predicates\n\t\t\tPrintWriter documentwriter = new PrintWriter(\n\t\t\t\t\tConfigManager.getFilePath() + \"Silk/model/\" + i + \".txt\");\n\t\t\tCollection<String> values = aml.generic.get(i);\n\t\t\t// for every predicate get its value\n\t\t\tfor (String val : values) {\n\t\t\t\tdocumentwriter.println(val);\n\t\t\t}\n\n\t\t\tdocumentwriter.close();\n\t\t}\n\t} catch (Exception e) {\n\t\te.printStackTrace();\n\t}\n}", "title": "" }, { "docid": "e056d782f174a27cd486ab9bf1500fa5", "score": "0.45008945", "text": "public void overwriteFile(String fileName, String[][] table) throws FileNotFoundException, UnsupportedEncodingException {\r\n File file = new File(Environment.getExternalStorageDirectory(), fileName);\r\n PrintWriter writer = new PrintWriter(file, \"UTF-8\");\r\n for (int i = 0; i < table.length; i++) {\r\n writer.println(table[i][0] + \",\" + table[i][1] + \",\" + table[i][2] + \",\" + table[i][3] + \",\" + table[i][4] + \",\" + table[i][5]);\r\n }\r\n writer.close();\r\n }", "title": "" }, { "docid": "0b14735b4ad1649a1ea26c7ebaaead87", "score": "0.44997615", "text": "public void CSVWriter(Table table) throws IOException {\n\t\t \tFile file = new File(output_csv_file);\n\t\t \t\n\t\t \tBufferedWriter writer = new BufferedWriter(new FileWriter(file)); \n\t\t \t //writer.write(sb.toString());\n\t\t \t//}\n\t\t \t(new CSVWriter()).write(writer, table);\n\t\t //(new CSVWriter()).write(sb, table);\n\t\t //String s = sb.toString();\n\t\t //String[] lines = s.split(\"\\\\r?\\\\n\");\n\t\t //assertEquals(lines[0], EXPECTED_CSV_WRITER_OUTPUT);\n\t\t //assertEquals(expectedCsv, s);\n\t\t }", "title": "" }, { "docid": "cd3fdd011a95fcbc414a168c5ef0ef7c", "score": "0.44969884", "text": "private void exportTableSchemas() {\n\n /*\n * Export all the top level table schema definitions\n */\n for (Map.Entry<String, Table> entry :\n tableAPI.getTables().entrySet()) {\n\n TableImpl tableImpl = (TableImpl) entry.getValue();\n\n if (tableImpl.dontExport()) {\n continue;\n }\n\n tableMap.put(tableImpl.getIdString(), tableImpl);\n\n String tableJson = \"\";\n int tableVersionBefore = 0;\n int tableVersionAfter = 0;\n\n /*\n * Ensure the table version did not change while retrieving the\n * table schema definition.\n */\n do {\n tableVersionBefore = tableImpl.numTableVersions();\n tableJson = tableImpl.toJsonString(false);\n tableVersionAfter = tableImpl.numTableVersions();\n } while (tableVersionBefore != tableVersionAfter);\n\n String tableFullName = tableImpl.getFullName();\n exportedTableVersion.put(tableFullName, tableVersionAfter);\n\n logger.info(\"Exporting table schema: \" + tableFullName +\n \". TableVersion: \" + tableVersionAfter);\n\n String tableSchema = tableDataIdentifier + \", \" +\n tableFullName + \": \" +\n tableJson + \"\\n\";\n\n byte[] tableSchemaBytes =\n tableSchema.getBytes(StandardCharsets.UTF_8);\n\n /*\n * Check if the schema bytes can be transferred to RecordStream\n */\n recordStreamMap.canAddRecord(schemaFileName,\n tableSchemaBytes.length);\n\n /*\n * Stream the schema bytes to the external export store\n */\n recordStreamMap.insert(schemaFileName, tableSchemaBytes);\n\n /*\n * If this table has any child tables, export the child table\n * schema definitions.\n */\n exportChildTableSchemas(tableImpl);\n }\n }", "title": "" }, { "docid": "b5c3aca6ffde265468370ff9abf28d01", "score": "0.44964045", "text": "public void testWriteURF8() throws IOException {\n Path path = Paths.get(\"test.sql\");\n List<CharSequence> charSequences = new ArrayList<>();\n charSequences.add(\"Dies ist ein Umlaute-Test\");\n charSequences.add(\"Daß alle Würmer die wärme nicht mögen\");\n StringBuilder sb = new StringBuilder();\n sb.append(\"Daß alle Würmer die wärme nicht mögen\").append(\"--\").append(\" With StringBuilder\");\n charSequences.add(sb);\n Files.write(path, charSequences, StandardOpenOption.CREATE_NEW);\n }", "title": "" }, { "docid": "94f1947f9abf7cddca9cc6363681d8b9", "score": "0.44879413", "text": "public static void output()\n {\n try\n {\n DataOutputStream output = new DataOutputStream(\n new FileOutputStream(\"App_Data/temp.data\") );\n\n System.out.print(\"Enter student first name==> \");\n String firstName = reader.next();\n\n while ( ! firstName.equalsIgnoreCase(\"0\") )\n {\n\n System.out.print(\"Enter student last name==> \");\n String lastName = reader.next();\n\n System.out.print(\"Enter student grade==> \");\n String grade = reader.next();\n\n System.out.print(\"Enter number of credits==> \");\n int credits = reader.nextInt();\n\n output.writeUTF(firstName);\n output.writeUTF(lastName);\n output.writeUTF(grade);\n output.writeInt(credits);\n\n System.out.print(\"Enter student first name==> \");\n firstName = reader.next();\n }\n\n output.close();\n }\n\n catch (IOException ex)\n {\n System.out.println(\"File operation error\");\n }\n\n catch (InputMismatchException ex)\n {\n System.out.println(\"Non-numeric or non-integer input\");\n }\n\n catch (Exception ex)\n {\n System.out.println(ex);\n }\n }", "title": "" }, { "docid": "7e47b452d13175eb0d0aeca3b3e2122c", "score": "0.44844753", "text": "public void write(Writer writer) throws IOException {\n synchronized (LOCK) {\n writer.write(header);\n writer.write(NEWLINE);\n for (Integer key : facts.keySet()) {\n writer.write(key.toString());\n writer.write(',');\n String fact = facts.get(key);\n if (fact != null) {\n writer.write(facts.get(key));\n }\n writer.write(NEWLINE);\n }\n writer.flush();\n }\n }", "title": "" }, { "docid": "7742acc3b4d3a28e309fd2344cb6dda1", "score": "0.44746968", "text": "private static void dumpTable(Connection dbConn, PrintWriter result, String tableName) {\n\t\ttry {\n\t\t\t// First we output the create table stuff\n\t\t\tPreparedStatement stmt = dbConn.prepareStatement(\"SELECT * FROM \"+tableName);\n\t\t\tResultSet rs = stmt.executeQuery();\n\t\t\tResultSetMetaData metaData = rs.getMetaData();\n\t\t\tint columnCount = metaData.getColumnCount();\n\n\t\t\t// Now we can output the actual data\n\t\t\tresult.print(\"\\n\\n-- Data for \"+tableName+\"\\n\");\n\t\t\tint rowCnt = 0;\n\t\t\twhile (rs.next()) {\n\n\t\t\t\tif (rowCnt % 50 != 0 && rowCnt != 0)\n\t\t\t\t\tresult.print(\",\\n\");\n\t\t\t\telse {\n\t\t\t\t\tif (rowCnt != 0) {\n\t\t\t\t\t\tresult.print(\";\\n\");\n\t\t\t\t\t}\n\t\t\t\t\tresult.print(\"INSERT INTO \"+tableName+\" (\");\n\t\t\t\t\tfor (int i=0; i<columnCount; i++) {\n\t\t\t\t\t\tif (i > 0) {\n\t\t\t\t\t\t\tresult.print(\", \");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tresult.print(metaData.getColumnName(i+1));\n\t\t\t\t\t}\n\t\t\t\t\tresult.print(\") VALUES \");\n\t\t\t\t}\n\t\t\t\trowCnt++;\n\t\t\t\tresult.print(\" (\");\n\n\t\t\t\tfor (int i=0; i<columnCount; i++) {\n\t\t\t\t\tif (i > 0) {\n\t\t\t\t\t\tresult.print(\", \");\n\t\t\t\t\t}\n\t\t\t\t\tObject value = rs.getObject(i+1);\n\t\t\t\t\tif (value == null) {\n\t\t\t\t\t\tresult.print(\"NULL\");\n\t\t\t\t\t} else\n\t\t\t\t\t\tif (value instanceof byte[]) {\n\t\t\t\t\t\t\t// \tInputStream stream = ((Blob)value).getBinaryStream();\n\t\t\t\t\t\t\t// \tresult.print(\"'\");\n\t\t\t\t\t\t\t// \ttry {\n\t\t\t\t\t\t\t//\t \twhile(true) {\n\t\t\t\t\t\t\t//\t \t\tint b = stream.read();\n\t\t\t\t\t\t\t//\t \t\tif (b < 0) break;\n\t\t\t\t\t\t\t//\t \t\tresult.print(MCast.toHex2String(b));\n\t\t\t\t\t\t\t//\t \t}\n\t\t\t\t\t\t\t//\t \tstream.close();\n\t\t\t\t\t\t\t// \t} catch (IOException ioe) {}\n\t\t\t\t\t\t\t// result.print(\"'\");\n\t\t\t\t\t\t\tbyte[] bytes = (byte[])value;\n\t\t\t\t\t\t\tresult.print(\"X'\");\n\t\t\t\t\t\t\tfor (byte b : bytes) {\n\t\t\t\t\t\t\t\tresult.print(MCast.toHex2String(b));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tresult.print(\"'\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tString outputValue = value.toString();\n\t\t\t\t\t\t\tif (outputValue.indexOf('\\\\') > -1) outputValue = outputValue.replaceAll(\"\\\\\\\\\",\"\\\\\\\\\\\\\\\\\");\n\t\t\t\t\t\t\tif (outputValue.indexOf('\\'') > -1) outputValue = outputValue.replaceAll(\"'\",\"\\\\\\\\'\");\n\t\t\t\t\t\t\tif (outputValue.indexOf('\"' ) > -1) outputValue = outputValue.replaceAll(\"\\\"\",\"\\\\\\\\\\\"\");\n\t\t\t\t\t\t\tresult.print(\"'\"+outputValue+\"'\");\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tresult.print(\")\");\n\t\t\t}\n\t\t\tif (rowCnt != 0) result.print(\";\\n\");\n\t\t\trs.close();\n\t\t\tstmt.close();\n\t\t} catch (SQLException e) {\n\t\t\tLog.getLog(MySqlDatabaseExport.class).e(\"Unable to dump table \"+tableName+\" because\",e);\n\t\t}\n\t}", "title": "" }, { "docid": "bec5d94e0c08623c13dd80e6a0155e59", "score": "0.44723782", "text": "private void writeintofile(List<List<String>> originaltable) throws IOException {\r\n BufferedWriter writer = new BufferedWriter(new FileWriter(tablename));\r\n for (List<String> i: originaltable){\r\n for (String putVal: i){\r\n writer.append(putVal);\r\n if(i.indexOf(putVal)!=i.size()-1){\r\n writer.append(\",\");\r\n }\r\n }\r\n writer.append(\"\\n\");\r\n }\r\n writer.flush();\r\n writer.close();\r\n }", "title": "" }, { "docid": "9af4fbdb978595e694062972a8f9cb57", "score": "0.4469162", "text": "public void writeFaecherListe(String fach)\n {\n datei = new TextDatei(FAECHER_LISTE);\n datei.write(fach);\n }", "title": "" }, { "docid": "74dc20d108483c8ba36e7e2abe3a185d", "score": "0.44655716", "text": "private void setupFlight() throws SQLException{\n TABLE_NAME = \"FLIGHT\";\n results = dmb.getTables(null, null,TABLE_NAME.toUpperCase(),null);\n if(results.next()){\n System.out.println(\"The table \"+TABLE_NAME+\" already exists.\");\n //statement.execute(\"INSERT INTO \" +TABLE_NAME+ \" VALUES('AA34','American Airlines','Austin, United States','Tokyo, Japan','10:00AM','5:00PM','2','5','No','G30','IKH','HGY')\");\n //statement.execute(\"INSERT INTO \" +TABLE_NAME+ \" VALUES('DT82','Delta Airlines','Kingston, Jamaica','Cape erde, South Africa','3:00AM','6:00PM','5','2','No','H20','IKL','WRE')\");\n //statement.execute(\"INSERT INTO \" +TABLE_NAME+ \" VALUES('DT20','Delta Airlines','New York, United States','Paris, France','2:00AM','3:00PM','2','10','Yes','A13','UYL','JFK')\");\n }\n else{\n statement.execute(\"CREATE TABLE \"+TABLE_NAME+\"(\"+\n \"FL_ID varchar(100) NOT NULL PRIMARY KEY,\"+\n \"FL_NAME varchar(50) NOT NULL,\"+\n \"FL_ORGN varchar(300) NOT NULL,\"+\n \"FL_DESTIN varchar(300) NOT NULL,\"+\n \"FL_DEPART varchar(10) NOT NULL,\"+\n \"FL_ARRIV varchar(10) NOT NULL,\"+\n \"FL_CONNECTIONS varchar(10) NOT NULL,\"+\n \"FL_SEATS varchar(10) NOT NULL,\"+\n \"FL_DELAYED varchar(10) NOT NULL,\"+\n \"FL_GATE varchar(10) NOT NULL,\"+\n \"FL_DAPORT varchar(10) NOT NULL,\"+\n \"FL_AAPORT varchar(10) NOT NULL)\");\n\n\n\n System.out.println(\"The table \"+TABLE_NAME+\" has been created successfully.\");\n }\n }", "title": "" }, { "docid": "248849bec310681357c9523724b82aa0", "score": "0.44613522", "text": "public void writeToFile();", "title": "" }, { "docid": "9ea72ba023827c255ed3df75996af3cd", "score": "0.44609493", "text": "public void FileOutputStatistics(FileLocation fl, int count) \n {\n \n String filenamecomplete = fl.getRootLocationSimpleFileName(endingMAStats,\"dat\"); \n System.out.println(\"Attempting to write general information to \"+ filenamecomplete);\n PrintStream PS;\n // next bit of code p327 Schildt and p550\n FileOutputStream fout;\n try {\n fout = new FileOutputStream(filenamecomplete, fileOutputStatisticsStarted); //\n PS = new PrintStream(fout);\n // header line if needed\n if (!fileOutputStatisticsStarted) PS.println(firstLine);\n printStatistics(PS, count) ;\n try\n { \n fout.close ();\n System.out.println(\"Finished writing to \"+ filenamecomplete);\n } catch (IOException e) { System.out.println(\"File Error\"+e);}\n } catch (FileNotFoundException e) {\n System.out.println(\"Error opening output file \"+ filenamecomplete+\" Error\"+e);\n return;\n }\n fileOutputStatisticsStarted = true;\n return;\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "71b238296519c65b9ad4ed0b28d98bed", "score": "0.0", "text": "@Override\r\n\tpublic Cursos buscar(int codigo) {\n\t\t\r\n\t\tif (codigo > 0) {\r\n\t\t\t\r\n\t\t\tString sql = \"select * from cursos where codigo = ?\";\r\n\t\t\ttry(Connection conexao = ConnectionFactory.getConnection();\r\n\t\t\t\t\tPreparedStatement statement = conexao.prepareStatement(sql)){\r\n\t\t\t\t\r\n\t\t\t\tstatement.setInt(1, codigo);\r\n\t\t\t\t\r\n\t\t\t\ttry(ResultSet result = statement.executeQuery()){\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (result.next()) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tCursos cursos = new Cursos();\r\n\t\t\t\t\t\tcursos.setCodigo(result.getInt(\"codigo\"));\r\n\t\t\t\t\t\tcursos.setNome(result.getString(\"nome\"));\r\n\t\t\t\t\t\tcursos.setNivel(result.getInt(\"nivel\"));\r\n\t\t\t\t\t\treturn cursos;\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}catch(Exception e) {\r\n\t\t\t\tthrow new CursoDaoEX(e.getMessage());\r\n\t\t\t}\r\n\t\t}else {\r\n\t\t\tthrow new CursoDaoEX(\"CÓDIGO INVÁLIDO\");\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "title": "" } ]
[ { "docid": "d7194e467f51e022c107531d8614b6a3", "score": "0.6905833", "text": "@Override\r\n\tpublic void anular() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cdf542363f5b089e84183e3d9020935f", "score": "0.6697644", "text": "@Override\n\t protected void ramana() {\n\t\t\n\t}", "title": "" }, { "docid": "657d87f4ac2918ce5fce84e83ea3855b", "score": "0.64378333", "text": "@Override\n\tpublic void arreglar() {\n\n\t}", "title": "" }, { "docid": "69ade76a69c0f6c07e66b5d0e5136eb3", "score": "0.6425563", "text": "@Override\r\n\tpublic void grabar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "16c30d73c1df796c0e31e93eb0f6e02e", "score": "0.64044255", "text": "@Override\r\n\tpublic void atacar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.63762105", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "c598a2e3f3aed7447c40167abd0815be", "score": "0.6325532", "text": "@Override\r\n\tpublic void kanalizasyon() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e70d900d759249a14a9d2833c9f92656", "score": "0.62733805", "text": "@Override\r\n\tpublic void elektrik() {\n\t\t\r\n\t}", "title": "" }, { "docid": "df89b968807fade64158ed6c7401bc7a", "score": "0.62550694", "text": "@Override\r\n\tpublic void afficher() {\n\t\t\r\n\t}", "title": "" }, { "docid": "92ca60c14b9e9bf9cfed6703c4ddea43", "score": "0.625003", "text": "@Override\r\n\tpublic void accionar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c9c1a5abdecc0f2e99d3c022b1b7d4ac", "score": "0.6246549", "text": "@Override\n\t\t\tpublic void 볶음밥() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "ea9e446f91664fee1580be3d45fc2e8a", "score": "0.6206874", "text": "@Override\r\n\tpublic void reagir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "3a3df32f04eb1c3118fc8ceb69db395d", "score": "0.62005454", "text": "@Override\n\tpublic void curar() {\n\t\t\n\t}", "title": "" }, { "docid": "16170a7948edf0bb8a90dfe0ac4fec33", "score": "0.6192674", "text": "@Override\n\t\t\tpublic void 짜장면() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "f0705d77863f0fa7c516a99a8eca8134", "score": "0.6190625", "text": "private void zbudujSciezkeiRozpocznij() {\n\t\t\r\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "c8d8ef34882e71054f4c2f0e26e18e7e", "score": "0.61372304", "text": "public void caress() {\n\t\t\n\t}", "title": "" }, { "docid": "88651b7597cbac4485dfc6a19382971e", "score": "0.6063545", "text": "@Override\r\n\tpublic void avisoultimotiro() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7839d9b18f833d7ad1ccae8536c829da", "score": "0.60561824", "text": "@Override\r\n\tpublic void zielone_swiatlo() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ddd6019fcc7107b506799138fa0a4641", "score": "0.60505116", "text": "@Override\r\n\tprotected void initdata() {\n\r\n\t}", "title": "" }, { "docid": "ae645a2585d37e320a8854cbd4c60db8", "score": "0.60353535", "text": "@Override\n\tpublic void afficher() {\n\n\t}", "title": "" }, { "docid": "ae645a2585d37e320a8854cbd4c60db8", "score": "0.60353535", "text": "@Override\n\tpublic void afficher() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6023245", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "4c9e25ea6f293e2f67da562cd4a0b657", "score": "0.60203654", "text": "public final void mo8553EA() {\n }", "title": "" }, { "docid": "482d92acda26fc41523278bb982ed7e9", "score": "0.59988713", "text": "@Override\n\tpublic void platesteContactless() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.59879225", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "ad25be891046838900b37d5cdf75010b", "score": "0.5975695", "text": "@Override\r\n\tpublic void arabaGecer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fafd92e57932ba5c77e0be9480563172", "score": "0.5953944", "text": "@Override\r\n\tvoid init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "95aa3a2220bec980fc9016a4426ee2b7", "score": "0.5948094", "text": "@Override\n\tpublic void comenzar() {\n\t\t\n\t}", "title": "" }, { "docid": "b2775812be4cd009dca27a30c5ce78fa", "score": "0.5938956", "text": "@Override\n\tprotected void fouseChange() {\n\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "82fcae7843e9cd9087f67fad345568b9", "score": "0.59232146", "text": "@Override\n\tpublic void init() { \n\t\t\n\t}", "title": "" }, { "docid": "7c6fed8e399de380b119d83c6b7dec38", "score": "0.5885899", "text": "private MoreEmperor(){\n\n\t}", "title": "" }, { "docid": "9ce75e891f4a6132d9837c33a86f11f3", "score": "0.5884196", "text": "@Override\n\tpublic void getchieurong() {\n\t\t\n\t}", "title": "" }, { "docid": "b049a074b12aea6414b0c3354573a89c", "score": "0.5875572", "text": "@Override\n\t\t\t\tpublic void initialize() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "efaf1962840c7f5346e81dc22773c34b", "score": "0.58509105", "text": "@Override\n protected void init() {\n\n }", "title": "" }, { "docid": "c77e40bbb43cc49645ce63e31ba6b676", "score": "0.58233273", "text": "@Override\r\n\tpublic void update() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "b4ecae6e31b41ead72d093495b46455a", "score": "0.5810715", "text": "public void mo1410b() {\n }", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.5805753", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "c3d1e72656333e09790dac9abf69fb23", "score": "0.5804777", "text": "@Override\r\n\t\tpublic void acoes() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "c3d1e72656333e09790dac9abf69fb23", "score": "0.5804777", "text": "@Override\r\n\t\tpublic void acoes() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "ecd084bf055d602fdedf08fab1e19a33", "score": "0.580369", "text": "@Override\n\tvoid emi() {\n\t\t\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.5793788", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9a00431eee28b38391cb5dfa243729d9", "score": "0.57904106", "text": "public void mo4643a() {\n }", "title": "" }, { "docid": "bc3a08c64e443ee86473be048cb9738a", "score": "0.578575", "text": "private void smth() {\n\n\t\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "afb8d306e46856b05d9138a9c18c646b", "score": "0.57730746", "text": "@Override\r\n\t\tpublic void limpaTela() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "9720bcf5a7868f579b25b5e78dc03e6e", "score": "0.5765882", "text": "@Override\n\tpublic void teclear() {\n\n\t}", "title": "" }, { "docid": "d95a081a1e6e3117f8617a3fbbbe16fd", "score": "0.57630926", "text": "public void mo3871b() {\n }", "title": "" }, { "docid": "ec8745d1f613de3522e52b19973434de", "score": "0.5755148", "text": "@Override\n protected void initialize()\n {\n\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7c095c57d10901c0fda3f8584611b8a8", "score": "0.57481265", "text": "@Override\n protected void init () {\n }", "title": "" }, { "docid": "c081f6b796851b26f184bf0f5bbf469c", "score": "0.5747874", "text": "@Override\n\tpublic void dientich() {\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "94635a88abd93d3624c032aa22ccc337", "score": "0.5731761", "text": "@Override\n\t\t\tpublic void refresh() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "871d03786cbf53026a17aa613aded752", "score": "0.57235676", "text": "@Override\t//初始化方法\r\n\tpublic void init() {\n\t\tsuper.init();\r\n\t}", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701067", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.56991017", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "ba87d3460fb6faa58e5ff893f84e4a7a", "score": "0.5685994", "text": "@Override\n\tprotected void initialize() \n\t{\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "9d551589ec00d7b16a77df7a4d54caae", "score": "0.5683637", "text": "@Override\n public void init()\n {\n\n }", "title": "" }, { "docid": "264b73ede67394b8d57db8f3623673db", "score": "0.56786793", "text": "@Override\r\n\tpublic void afterConstruct() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cffc9e76f5aeaa8126396b11e98f261b", "score": "0.5670429", "text": "@Override\n public int describeContents() {\n return 0;\n }", "title": "" }, { "docid": "6c7f3bb62b62ab0efc25de23710ee029", "score": "0.5669814", "text": "@Override\n\tpublic void concentrarse() {\n\t\t\n\t}", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "b53508b8f07bf95b923a1e913f88fcab", "score": "0.5668746", "text": "@Override\r\n\tpublic void estadoCreaditicio() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1b6ae1f9acb8e538994b7d00bae50317", "score": "0.5664213", "text": "@Override\n\tprotected void skirmish() {\n\n\t}", "title": "" }, { "docid": "a0b89d2fbd83aefeb636ae04ad1fcd91", "score": "0.56631064", "text": "public void init(){\n\t //TODO Auto-generated method stub\n\t}", "title": "" }, { "docid": "31d4487a868a7dc81dfde93aa95013c4", "score": "0.56630474", "text": "@Override\n\tprotected void initialize() {\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "ec2afced68195dab79cf8503e6907338", "score": "0.5643847", "text": "protected void mo1628b() {\n }", "title": "" }, { "docid": "d5b7380f66253fe7bcac3715637c4dd4", "score": "0.56360185", "text": "@Override\n\tpublic void getInformation() {\n\t\t\n\t}", "title": "" }, { "docid": "d5b7380f66253fe7bcac3715637c4dd4", "score": "0.56360185", "text": "@Override\n\tpublic void getInformation() {\n\t\t\n\t}", "title": "" }, { "docid": "c9e7a86bd469245549d853b1a2c183a3", "score": "0.562041", "text": "@Override\r\n\tpublic void identify() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b2a793cd2e6ec37a2fdb27c90d87a493", "score": "0.5619648", "text": "@Override\r\n\tprotected void initialize() {\n\t\t\r\n\t}", "title": "" }, { "docid": "915cd499c707ca694353925d740e0725", "score": "0.5615348", "text": "private void comprimiendo() \n\t{\n\t}", "title": "" }, { "docid": "7da9ad3ab650b64b3e75012a99c0e238", "score": "0.5614612", "text": "public void mo3866a() {\n }", "title": "" }, { "docid": "f347b26e2be487b128dc1646456e0be7", "score": "0.56142163", "text": "@Override\n\t\t\t\tpublic void initialize() {\n\n\t\t\t\t}", "title": "" }, { "docid": "f347b26e2be487b128dc1646456e0be7", "score": "0.56142163", "text": "@Override\n\t\t\t\tpublic void initialize() {\n\n\t\t\t\t}", "title": "" }, { "docid": "504c9d8dc3680e99d5f3450593b02c8d", "score": "0.561124", "text": "@Override\n\t\t\t\tpublic void update() {\n\n\t\t\t\t}", "title": "" }, { "docid": "504c9d8dc3680e99d5f3450593b02c8d", "score": "0.561124", "text": "@Override\n\t\t\t\tpublic void update() {\n\n\t\t\t\t}", "title": "" }, { "docid": "bd5cf567659030cded015505487de3b2", "score": "0.5607615", "text": "@Override\r\n\tpublic void inter11() {\n\t\t\r\n\t}", "title": "" } ]
8b04baf9ad6e965116c56a2c2d6f8dc7
Main constructor of Maingine. The first part of initialization is done here.
[ { "docid": "8da741fdc3df350d147aa15b39a86bdf", "score": "0.7590738", "text": "public Maingine() {\n\n LoggerManager.prepareLogger();\n\n logger = LogManager.getLogger(Maingine.class);\n\n gameStateManager = new GameStateManager();\n\n SystemInfo.printInfo();\n\n }", "title": "" } ]
[ { "docid": "337a1b7adff451ab9eab71db8357f72b", "score": "0.70515066", "text": "public AyudaMagicien()\n {\n }", "title": "" }, { "docid": "485439f5e56744a8a2daf741afbcc7da", "score": "0.6952808", "text": "private Manga() { }", "title": "" }, { "docid": "19e237679df2af599f7110eca3a1fe63", "score": "0.6866759", "text": "public Main() {\r\n }", "title": "" }, { "docid": "0c097a952553cff157e2832105ba8a43", "score": "0.68593293", "text": "public Main() {\n\t\tauthorName1 = \"Avery Vine\";\n\t\tauthorName2 = \"Maxim Kuzmenko\";\n\t\tname = \"WingIt\";\n\t}", "title": "" }, { "docid": "b1a40ca5c0eb429f9f8bb38c8ae33bc8", "score": "0.68058425", "text": "public Main() {\r\n }", "title": "" }, { "docid": "11ef38518654f4510ecbc568673bcd5a", "score": "0.67752296", "text": "public Alien() {\r\n\t\tsuper();\r\n\t\tSystem.out.println(\"Object created\");\r\n\t}", "title": "" }, { "docid": "1eecccd582d4cbf40e73a395f2479600", "score": "0.67495924", "text": "public MainCode() {\n super();\n }", "title": "" }, { "docid": "223e27331a8fa93419784b0692c8174b", "score": "0.66561776", "text": "public Muro()\n {\n // initialise instance variables\n }", "title": "" }, { "docid": "25f91d9292c9b17df89c532c92431730", "score": "0.6640089", "text": "public AlunosMB() {\n }", "title": "" }, { "docid": "851fca90dec7bdb038303eab008e366d", "score": "0.65939856", "text": "public Ligne() {\r\n\r\n\t}", "title": "" }, { "docid": "5447d6f19c39afe5b1bd2077ed583beb", "score": "0.6556893", "text": "public CaraMain()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(800, 600, 1); \n prepare();\n }", "title": "" }, { "docid": "68614c0e00ccf932d62daf148ccfc5f9", "score": "0.65510064", "text": "public Mangabey() {\n super(\"Mangabey\");\n }", "title": "" }, { "docid": "8b0197b84da109505d748c532f2604dd", "score": "0.6535831", "text": "public Machine(){\n\t\t//Run more complex constructors from within a simpler one.\n\t\t//Must be the first line. \n\t\tthis(\"Diana\", 0);\n\t\tSystem.out.println(\"Constructor running!\");\n\t\t//name = \"Diana\";\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "011373cfd96513e2c100c56e614254ab", "score": "0.6426779", "text": "public Main() {\n\t\tthis(DEFAULT_SIZE);\n\t}", "title": "" }, { "docid": "0b8cee259e26112b529a2325ca1021b8", "score": "0.6382284", "text": "public Sandwich() {\n }", "title": "" }, { "docid": "5499a9dd482c8b3c59f11526484d82fb", "score": "0.63442385", "text": "public static void main(String[] args) {\n\n\n\n\n\n\n new Main().init();\n\n }", "title": "" }, { "docid": "13caaa970782a6df0d2d582f91a6b16c", "score": "0.6341308", "text": "public Sala() {\t\n\t}", "title": "" }, { "docid": "36caa8ec2b50442c43a9b7dd2e4a8a6a", "score": "0.6334006", "text": "public Aigle() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "title": "" }, { "docid": "e7810770925ea06120cd005cf801a0dd", "score": "0.63303864", "text": "public Flamel() {\n\t\tinitialize();\n\t}", "title": "" }, { "docid": "73488da890390bcd5b1e7e8344aee042", "score": "0.6297693", "text": "public Openbaas(){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "9a3f6d010c21f4cb10444b9685b69f87", "score": "0.62927204", "text": "private main() {\n }", "title": "" }, { "docid": "b1c755bf8db3e07bd95277ded60c38e9", "score": "0.6292648", "text": "public Linterna() {\r\n // Required empty public constructor\r\n }", "title": "" }, { "docid": "89747f03ddfad4da6ea52e365a4a0012", "score": "0.6284631", "text": "public Programa() {\r\n }", "title": "" }, { "docid": "3f05effdca45119ea8dfe7f33cd82519", "score": "0.62659556", "text": "public Caja() {\r\n }", "title": "" }, { "docid": "753c975c821b78314c961404311e8103", "score": "0.62643087", "text": "public MonedasTest2()\n {\n }", "title": "" }, { "docid": "d5cf8f2f08209dad3bc05ba9a55831ff", "score": "0.6260013", "text": "public AgileMidlet() {\n super();\n \n //#debug info\n System.out.println(\"agile midlet created\");\n }", "title": "" }, { "docid": "9447db47efa4c050b824a83a196e6777", "score": "0.62515", "text": "public WPParser()\n {\n //this(\"/Users/jacob/Stacks/Dropbox/12th/APCS/FROIDZ/FROIDZ/java-src/emulator/dev/TOASTY Asm.wp\");\n this(\"/Users/alexteiche/Desktop/FROIDZ/java-src/emulator/dev/TOASTY Asm.wp\");\n }", "title": "" }, { "docid": "2e3f0a5ad3142ec72e2e7beb4f0693a6", "score": "0.62498295", "text": "public AssembleCenter() {\n\n }", "title": "" }, { "docid": "f53cf6d2b7c0e9dd9c53938c52908ca1", "score": "0.62430453", "text": "private MicroEngine() {\n }", "title": "" }, { "docid": "20302edda0deeb16e546f65ac9719c26", "score": "0.6241946", "text": "public Main() {\n initComponents();\n \n }", "title": "" }, { "docid": "ee00f7b82621bf3d99e06bb172f3cadb", "score": "0.62336254", "text": "public LappS() {\r\n }", "title": "" }, { "docid": "7cfede6ac196862295da0ab82381a07b", "score": "0.62299794", "text": "public Aluno() {\n\t\tsuper();\n\t\t\n\t}", "title": "" }, { "docid": "80cd34f9a7a32b0d903e003496b4b56f", "score": "0.6227861", "text": "public Programa() {\n }", "title": "" }, { "docid": "9c7c1095f0c9ea135fe7bf62262e66bb", "score": "0.6226501", "text": "public toMain() {\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "9079240ec3ae1343ef7bd32c34954afc", "score": "0.62258726", "text": "public Main() {\n\t\t\n\t\tSystem.out.println(\"Constructing Main...\");\n\t\tframe = new JFrame();\n\t\tstatusBar = new JLabel();\n\t\tgame = new Game(this);\n\t\t//TODO: Add Network Object and must ensure that the minimum size is returned\n\t\t//TODO: Or you can consider re-scaling according to size.\n\t\tcreateWindow();\n\t\tSystem.out.println(\"Constructed Main!\");\n }", "title": "" }, { "docid": "22b0c7d9782ee795b3eab352636d30e7", "score": "0.6224352", "text": "public static void main (String[] args) {\n Main m = new Main ();\n m.addEmptySpots ();\n m.setUp ();\n m.run ();\n }", "title": "" }, { "docid": "e58afd98a8baa3ffd1f76f7bd6f05397", "score": "0.6216373", "text": "public Initalization (){\n System.out.println(\"constructor\");\n }", "title": "" }, { "docid": "42a786954698302f0cd67edc63ddca92", "score": "0.62091833", "text": "public Poliza() {\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "af7b55b0887d78467c0057d38983d15e", "score": "0.6206837", "text": "public Banda() {}", "title": "" }, { "docid": "45aa43073f9a7e8a0b162121ee655829", "score": "0.61844015", "text": "public Steg() {\n\n\t}", "title": "" }, { "docid": "4b4214afd5f365cf0a11e2e2308dedfb", "score": "0.616769", "text": "public Core() {\n }", "title": "" }, { "docid": "82444bb638937edfdb13445fc79885d0", "score": "0.6162891", "text": "private MainLogic() {\n\t}", "title": "" }, { "docid": "262d3719ddc4c741b6344af053ea7e1d", "score": "0.61589366", "text": "protected Armaduras() {\r\n\t}", "title": "" }, { "docid": "0e64de8e175d56cf6504ed6f375b4937", "score": "0.61557895", "text": "private Aspecto() {\r\n }", "title": "" }, { "docid": "2fc0d21c53f36a80644a77447c4cb706", "score": "0.61520034", "text": "public MainApplication() {}", "title": "" }, { "docid": "c60781d66bd146683572dce40076140d", "score": "0.61452913", "text": "private LIDAR() \n\t\t{\n\n\t\t}", "title": "" }, { "docid": "487f73068e8f4d8ab0b20f7667d7a53a", "score": "0.61421466", "text": "public Ammo()\n\t{\n\t\tsuper(0,0,0,0,0);\n\t}", "title": "" }, { "docid": "cde91502ced7b5c71b4f8ad1c1af27be", "score": "0.6141006", "text": "public lab8a()\n {\n \n }", "title": "" }, { "docid": "eb28da6dbc157e968eccbceb5ff23f80", "score": "0.61409193", "text": "public SnakeApp() {\n gameLoop = setupGameloop();\n population = setupPopulation();\n }", "title": "" }, { "docid": "41cc5e67cd933df32b59f29760633d07", "score": "0.6120139", "text": "public OliveJar() {\n System.out.println(\"OliveJar default Constructor...\");\n }", "title": "" }, { "docid": "d70d98c174ba2fa2df636b6f88a73078", "score": "0.6114187", "text": "protected LemmaUtils()\n\t{\n\t}", "title": "" }, { "docid": "2241db61f8ec18309929209cb032b335", "score": "0.611115", "text": "public Mountain() {}", "title": "" }, { "docid": "c8c954ab0ce5c267dbc4672dd1668d83", "score": "0.61092657", "text": "private Engine() {\n\t}", "title": "" }, { "docid": "d555d168ff8a9fb230ae3ccd62e2838e", "score": "0.61034346", "text": "public SamplePizzeria() {\n cook = new SampleCook(\"Mario\", this);\n }", "title": "" }, { "docid": "f3235fca34a3af3737fe66e0c83bddc9", "score": "0.61014587", "text": "public AyudaKirby()\n {\n }", "title": "" }, { "docid": "f959d9cc8e7d3420a9fcaa49ec1329e8", "score": "0.6075932", "text": "public Amministratore() { }", "title": "" }, { "docid": "6800c5a74cf705f507e0eacc8b0b44ae", "score": "0.60676247", "text": "public Moto() {\n\t\tsuper();\n\t\t\n\t}", "title": "" }, { "docid": "2119349e3ba50c39bd2f633668341e98", "score": "0.60619426", "text": "public Pesanan() {\n }", "title": "" }, { "docid": "20ba7c324016889deaaae5c114e65849", "score": "0.6054103", "text": "private Leargas() {}", "title": "" }, { "docid": "73ff3627e87138fa49be649a1cf625ca", "score": "0.60538954", "text": "private Main() {\n\t\t//Crea una nueva instancia de VentanaPrincipal,\n\t\t//pasa como parametro las instancias de los objetos\n\t\tnew VentanaPrincipal(new Tina(), new GenerarCodigoJava());\n\t}", "title": "" }, { "docid": "8a6b1dcf6096b55699564a2e299e1c05", "score": "0.60536665", "text": "@Override\n\tpublic void init(String[] args)\n\t{\n\n\t}", "title": "" }, { "docid": "1d93afead18f22a5647037ffc5397da0", "score": "0.6045892", "text": "public static void main (String[]args) throws IOException {\n MCPApp app = new MCPApp();\n //creates a new car park\n app.starter();\n app.runMenu(app.scan);\n app.quitter();\n }", "title": "" }, { "docid": "d830454edbdfd0ff21fd7d560f323f94", "score": "0.6041103", "text": "public Launcher()\n { \n }", "title": "" }, { "docid": "f2ff93f374f2a16b3b17dad82f7a5d0b", "score": "0.6037552", "text": "private Program() {\n\n }", "title": "" }, { "docid": "31ac22b966ad09880a9be7bb35cf9040", "score": "0.60354203", "text": "private LightSetups()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "title": "" }, { "docid": "ae40d7155c52d48911062f6d5a5fc3b8", "score": "0.60347784", "text": "public Forge() {\r\n \t}", "title": "" }, { "docid": "b35be0e41b0802ee707b22f5ca400add", "score": "0.6034087", "text": "public Main() {\n\t\tbh = new BusinessHolding(\"Test BussinessHolding\");\n\t}", "title": "" }, { "docid": "bcfc20f5df4c9abad951db1e2c2670b4", "score": "0.6030767", "text": "protected ACSimulationApplication() { \r\n }", "title": "" }, { "docid": "787b81fbc03b4d9d5ae5f9df0243bb8c", "score": "0.6026483", "text": "public Main() {\n initComponents();\n }", "title": "" }, { "docid": "787b81fbc03b4d9d5ae5f9df0243bb8c", "score": "0.6026483", "text": "public Main() {\n initComponents();\n }", "title": "" }, { "docid": "787b81fbc03b4d9d5ae5f9df0243bb8c", "score": "0.6026483", "text": "public Main() {\n initComponents();\n }", "title": "" }, { "docid": "787b81fbc03b4d9d5ae5f9df0243bb8c", "score": "0.6026483", "text": "public Main() {\n initComponents();\n }", "title": "" }, { "docid": "787b81fbc03b4d9d5ae5f9df0243bb8c", "score": "0.6026483", "text": "public Main() {\n initComponents();\n }", "title": "" }, { "docid": "787b81fbc03b4d9d5ae5f9df0243bb8c", "score": "0.6026483", "text": "public Main() {\n initComponents();\n }", "title": "" }, { "docid": "787b81fbc03b4d9d5ae5f9df0243bb8c", "score": "0.6026483", "text": "public Main() {\n initComponents();\n }", "title": "" }, { "docid": "787b81fbc03b4d9d5ae5f9df0243bb8c", "score": "0.6026483", "text": "public Main() {\n initComponents();\n }", "title": "" }, { "docid": "3cc5ba67edcd0e2d297aeb043557331d", "score": "0.6022775", "text": "public Angora()\n\t{\n\t}", "title": "" }, { "docid": "3706916aeef515e654e91ce5040737f0", "score": "0.6015661", "text": "public Runner(){\n\t\t\n\t}", "title": "" }, { "docid": "fe41847454d8e4e0e4eaca7d8a3b40bd", "score": "0.601242", "text": "private void recupererMain() {\n\t}", "title": "" }, { "docid": "ea0c45d48bfb697f59c294c81c6cf1a5", "score": "0.601219", "text": "private Manager() {\r\n\t}", "title": "" }, { "docid": "85f0cd65c65e20247152663ee6464528", "score": "0.60111856", "text": "public Program() {}", "title": "" }, { "docid": "15f0040060131438cdca79ef0ef0983b", "score": "0.6009895", "text": "public static void main(String[] args) {\n\t\t\tnew Lejaut(new AnimationPanel());\r\n\t}", "title": "" }, { "docid": "aebbd2120d52d08c4c4764373c56754d", "score": "0.6007338", "text": "private EMF() {\r\n\t}", "title": "" }, { "docid": "d4fa403a49045a118a847245da1b129e", "score": "0.6001078", "text": "public Lion() {\n\t}", "title": "" }, { "docid": "2078ad73cd2ce891e13e5f84583346bf", "score": "0.5988501", "text": "public ArgBuilder() {\n argString = \"\";\n inputSwitch = \"\";\n outputFiles = new ArrayList<String>();\n inputFiles = new ArrayList<String>();\n outputSwitch = \"\";\n }", "title": "" }, { "docid": "a2346bab283dec10586a69e0b6aba7a8", "score": "0.59862185", "text": "public MobManager() {\n this(1, \"Skeleton\");\n }", "title": "" }, { "docid": "16bc12810e1f9f3889d7b8e653bed601", "score": "0.5983137", "text": "private void initialization() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "333eef127ca883ca0325a0b33f693b96", "score": "0.597601", "text": "public Program() {\n currentTasks = new ToDoList(\"resources/\");\n inputReader = new InputReader();\n }", "title": "" }, { "docid": "957db879dd8fec95885bd6e2cf91c2c2", "score": "0.59752", "text": "public ChyboveHlaseni() {\n }", "title": "" }, { "docid": "a2e15526a7ef09db41a4b703f4e1681e", "score": "0.5970117", "text": "public Program(){\n\t\tthis.actions = new ArrayList<MicroAction>();\n//\t\tthis.fields = new ArrayList<Field>();\n\t}", "title": "" }, { "docid": "5b19abdce5e360813fc62cf2e57c8f93", "score": "0.59641105", "text": "public Aritmetica()\n {\n }", "title": "" }, { "docid": "659815a9c89483d5032248aaa58f0381", "score": "0.5954079", "text": "private Pilha()\n {\n }", "title": "" }, { "docid": "96e76a328040ab6ebf45f898847115b6", "score": "0.59473395", "text": "public BadmintonCoach() {\n\t\tSystem.out.println(\">> inside default constructor\");\n\t}", "title": "" }, { "docid": "094272a65c25980afbc2b4432092923f", "score": "0.5944757", "text": "public static void main(String[] args) {\n Antenna empireStateBuildingAntenna = new Antenna();\n }", "title": "" }, { "docid": "26d58e0baab63610d318809df1b8f024", "score": "0.59411514", "text": "private MakeACaptain() {}", "title": "" }, { "docid": "699cab483e90116e5dcf7390222b2bec", "score": "0.5938336", "text": "public SensorBotTurnyThing() {\n //\n // Initialize base classes.\n //\n // All via self-construction.\n\n //\n // Initialize class members.\n //\n // All via self-construction.\n\n }", "title": "" }, { "docid": "d58184acc8cbb2ee532ef127cf08aa16", "score": "0.5937718", "text": "public Main() {\n initComponents();\n agregarTodosBotones();\n bloquearTodos();\n crearVariables();\n agregarLabels();\n asignarVariables();\n clicks=0;\n setLocationRelativeTo(null);\n puntos=0;\n vidas=10;\n \n }", "title": "" }, { "docid": "12745f27ade8c1d936bc7e1be3dd83db", "score": "0.59321135", "text": "public Inicial() {\n initComponents();\n aaa();\n }", "title": "" }, { "docid": "df1914af6aecfce6c6a5d6623ba0764a", "score": "0.5920813", "text": "public Main() {\n\t\tvideoGameStoreGUI = new VideoGameStoreGUI();\n\t\t/*\n\t\tstore= new Store();\n\t\tbr= new BufferedReader(new InputStreamReader(System.in));\n\t\tbw= new BufferedWriter(new OutputStreamWriter(System.out));\n\t\t*/\n\t}", "title": "" }, { "docid": "0e8b1af81a0651d90a8064b32461af8c", "score": "0.59112054", "text": "public sueldo() {\r\n }", "title": "" } ]
dd3652bca1a2b2f94ec8d8e287bb94f7
Builds the menu, where items are created using MenuItem class
[ { "docid": "992c7295319b0300628053709f88730c", "score": "0.734954", "text": "public void buildMenu()\n{\n\tpizzas.add(new MenuItemModel(\"ID\",\"NAME\",\" PRICE\",\"COOKING TIME\"));\n\tpizzas.add(new MenuItemModel(\"1\",\"GardenFresh\",\"$10\",\"5\"));\n\tpizzas.add(new MenuItemModel(\"2\",\"Pepperoni\",\"$12\",\"3\"));\n\tpizzas.add(new MenuItemModel(\"3\",\"Cheese \",\"$10\",\"2\"));\n\tpizzas.add(new MenuItemModel(\"4\",\"Roasted Chicken\",\"$11\",\"4\"));\n\tpizzas.add(new MenuItemModel(\"5\",\"Margherita\",\"$15\",\"1\"));\n\t\n\ttoppings.add(new MenuItemModel(\"1\",\"Barbeque\",\"$4\",\"\"));\n\ttoppings.add(new MenuItemModel(\"2\",\"Sausage \",\"$7\",\"\"));\n\ttoppings.add(new MenuItemModel(\"3\",\"Mushrooms\",\"$5\",\"\"));\n\ttoppings.add(new MenuItemModel(\"4\",\"Olives \",\"$9\",\"\"));\n\t\n\tcheese.add(new MenuItemModel(\"1\",\"Feta \",\"\",\"\"));\n\tcheese.add(new MenuItemModel(\"2\",\"Gauda \",\"\",\"\"));\n\tcheese.add(new MenuItemModel(\"3\",\"Mozzarella\",\"\",\"\"));\n\tcheese.add(new MenuItemModel(\"4\",\"Cheddar \",\"\",\"\"));\n\t\n crust.add(new MenuItemModel(\"1\",\"Regular\",\"\",\"\"));\n crust.add(new MenuItemModel(\"2\",\"Thick\",\"\",\"\"));\n crust.add(new MenuItemModel(\"3\",\"Thin \",\"\",\"\"));\n \n\tsauce.add(new MenuItemModel(\"1\",\"Pesto\",\"\",\"\"));\n\tsauce.add(new MenuItemModel(\"2\",\"Salsa\",\"\",\"\"));\n\tsauce.add(new MenuItemModel(\"3\",\"Hummus\",\"\",\"\"));\n\t\n\tsize.add(new MenuItemModel(\"1\",\"Small\",\"\",\"\"));\n\tsize.add(new MenuItemModel(\"2\",\"Medium\",\"\",\"\"));\n\tsize.add(new MenuItemModel(\"3\",\"Large\",\"\",\"\"));\n\tsize.add(new MenuItemModel(\"4\",\"Extra Large\",\"\",\"\"));\n}", "title": "" } ]
[ { "docid": "1178633d86efd33e5c6b8fc755c8dd2f", "score": "0.8033723", "text": "private void buildMenu() {\r\n\t\tmenuBar = new JMenuBar();\r\n\t\tfileMenu = new JMenu(\"File\");\r\n\t\tdrawMenu = new JMenu(\"Draw\");\r\n\r\n\t\tJMenuItem menuItem = new JMenuItem(\"New\");\r\n\t\tmenuItem.addActionListener(eh);\r\n\t\tfileMenu.add(menuItem);\r\n\r\n\t\tmenuItem = new JMenuItem(\"Open\");\r\n\t\tmenuItem.addActionListener(eh);\r\n\t\tfileMenu.add(menuItem);\r\n\r\n\t\tmenuItem = new JMenuItem(\"Save\");\r\n\t\tmenuItem.addActionListener(eh);\r\n\t\tfileMenu.add(menuItem);\r\n\r\n\t\tmenuItem = new JMenuItem(\"Exit\");\r\n\t\tmenuItem.addActionListener(eh);\r\n\t\tfileMenu.add(menuItem);\r\n\t\t\t\t\r\n\t\tmenuItem = new JMenuItem(\"Line\");\r\n\t\tmenuItem.addActionListener(eh);\r\n\t\tdrawMenu.add(menuItem);\r\n\t\t\r\n\t\tmenuItem = new JMenuItem(\"Rectangle\");\r\n\t\tmenuItem.addActionListener(eh);\r\n\t\tdrawMenu.add(menuItem);\r\n\r\n\t\tmenuBar.add(fileMenu);\r\n\t\tmenuBar.add(drawMenu);\r\n\t\t\r\n\t\tsetJMenuBar(menuBar);\r\n\t}", "title": "" }, { "docid": "d1824b61b8ecddcbee8e06c7fba12bec", "score": "0.7913208", "text": "public void buildMenu(){\n\t\tjrbmi1.addActionListener(new StandardWorldListener());\n\t\tjrbmi2.addActionListener(new PokemonWorldListener());\n\t\tjrbmi3.addActionListener(new DBZWorldListener());\n\t\tjrbmi4.addActionListener(new ZeldaWorldListener());\n\t\tjrbmi1.setSelected(true);\n\t\t\n\t\tmenuDesign.add(jrbmi1);\n\t\tmenuDesign.add(jrbmi2);\n\t\tmenuDesign.add(jrbmi3);\n\t\tmenuDesign.add(jrbmi4);\n\t\t\n\t\titemExit.addActionListener(new ActionListener(){\n\t\t public void actionPerformed(ActionEvent event){\n\t\t System.exit(0);\n\t\t }\n\t\t });\n\t\t\n\t\tthis.menuFile.add(itemNewGame);\n\t\tthis.menuFile.add(itemSetting);\n\t\tthis.menuFile.add(menuDesign);\n\t\tmenuFile.addSeparator();\n\t\tthis.menuFile.add(itemExit);\n\t\tthis.menuBar.add(menuFile);\n\t this.setJMenuBar(menuBar);\n\t}", "title": "" }, { "docid": "5789d02482b05cb2260d7755ce129925", "score": "0.787635", "text": "private void createMenu() {\n\t\tmenuItems.put(\"navigateToLogin\", new MenuItem(\"navigateToLogin\", \"Log in\", false));\n\n\t\t//auth needed\n\t\tmenuItems.put(\"newUser\", new MenuItem(\"newUser\", \"Register\", true));\n\t\tmenuItems.put(\"friendOverview\", new MenuItem(\"friendOverview\", \"Friends\", true));\n\t\tmenuItems.put(\"userOverview\", new MenuItem(\"userOverview\", \"Users\", true));\n\t\tmenuItems.put(\"logout\", new MenuItem(\"logout\", \"Log out\", true));\n\n\t}", "title": "" }, { "docid": "35800892f72bd427878d5e679072e0ab", "score": "0.78507984", "text": "private void buildMenu()\n\t{\n\t\tmenuLabel = new JLabel(\"Welcome to Grade Book 1996.\");\n\t\tmenuButtonNew = new JButton(\"New Gradebook\");\n\t\t\n\t\t//Makes the new button work\n\t\tmenuButtonNew.addActionListener(new MenuButtonListener());\n\t\tmenuButtonLoad = new JButton(\"Load Gradebook\");\n\t\tmenuPanel = new JPanel();\n\t\t\n\t\t//Added labels\n\t\tmenuPanel.add(menuLabel);\n\t\tmenuPanel.add(menuButtonNew);\n\t\tmenuPanel.add(menuButtonLoad);\n\t}", "title": "" }, { "docid": "9a6d86a38cd0ca6629f0fdd68c247905", "score": "0.77204704", "text": "private void buildMenu() {\n\n\t\t// Build a menuBar\n\t\tJMenuBar menuBar = new JMenuBar();\n\n\t\t// Build the first drop down menu\n\t\tJMenu fileMenu = new JMenu(\"File\");\n\t\tfileMenu.setMnemonic(KeyEvent.VK_F);\n\n\t\t// The new game option\n\t\tJMenuItem newGameMenuItem = new JMenuItem(\"New Game\");\n\t\tnewGameMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));\n\t\tnewGameMenuItem.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t//newGame();\n\t\t\t}\n\n\t\t});\n\t\tfileMenu.add(newGameMenuItem);\n\n\t\t// A separator\n\t\tfileMenu.addSeparator();\n\n\t\t// The exit option\n\t\tJMenuItem exitMenuItem = new JMenuItem(\"Exit\");\n\t\texitMenuItem.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\t\tfileMenu.add(exitMenuItem);\n\n\t\t// Add the menu to the menuBar\n\t\tmenuBar.add(fileMenu);\n\n\t\t// Add the menu bar to the frame\n\t\tframe.setJMenuBar(menuBar);\n\t\tframe.pack();\n\t}", "title": "" }, { "docid": "68fe4cf006a90b86ca851c4194dd5751", "score": "0.751652", "text": "private void BuildMenus()\n {\n //create a single ButtonListener to pass to the menus\n listener = new ButtonListener(this);\n \n //initialize menus\n menus = new AbstractMenu[3];\n menus[0] = new EnterTicketMenu(this, listener);\n menus[1] = new MainMenu(this, listener);\n menus[2] = new DrawTicketMenu(this, listener);\n \n //add menus to JFrame\n for (AbstractMenu menu : menus)\n {\n this.add(menu);\n }\n \n //set content pane to main menu upon launch\n this.setContentPane(menus[1]);\n }", "title": "" }, { "docid": "f2a075343b12ee9a953aec24dd0febfe", "score": "0.74455506", "text": "private void makeMenus()\n {\n MenuBar mb = new MenuBar(); // Instantiate menubar\n Menu mi = new Menu(\"Info\"); // Get new menu - Info\n Menu ms = new Menu(\"Sort\"); // Create Sort as a menu item\n ms.add(new MenuItem(\"Phones\")); // submenuu inside Sort\n ms.add(new MenuItem(\"Names\")); // submenu inside Sort\n mi.add(ms); // add Sort menu inside info\n mi.add(new MenuItem(\"Quit\")); // Add Quit menu item\n Menu mf = new Menu(\"Find\"); // get new menu-Data\n mf.add(new MenuItem(\"Clients\")); // menu item\n mf.add(new MenuItem(\"DVDs\")); // menu item\n mb.add(mi); //Add info to menubar\n mb.add(mf); //Add Find to menubar\n setMenuBar(mb); // show menubar\n }", "title": "" }, { "docid": "656b266874ea025ec10d5e1040998be2", "score": "0.7423", "text": "private void buildMenuBar()\n {\n minesMenu = new JMenuBar();\n\n //infoItem\n buildGameMenu();\n buildMoveMenu();\n buildAboutMenu();\n\n // Stats panels\n\n //\n minesMenu.add(gameMenu);\n minesMenu.add(moveMenu);\n minesMenu.add(aboutMenu);\n\n //\n setJMenuBar(minesMenu);\n }", "title": "" }, { "docid": "c75cc8e4710261ddeb906ed55485a5a2", "score": "0.7304499", "text": "private void buildOptionsMenu() {\r\n voiceMailItem = new JCheckBoxMenuItem(\"Voice Mail\");\r\n voiceMailItem.setMnemonic(KeyEvent.VK_V);\r\n voiceMailItem.setToolTipText(\"$5.00 per month\");\r\n voiceMailItem.addActionListener(new optionsListener());\r\n\r\n KeyStroke keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_V, KeyEvent.ALT_DOWN_MASK);\r\n voiceMailItem.setAccelerator(keyStroke);\r\n\r\n /**\r\n * Text-Messaging Option\r\n */\r\n SMS_Item = new JCheckBoxMenuItem(\"Text-Messaging\");\r\n SMS_Item.setMnemonic(KeyEvent.VK_T);\r\n SMS_Item.setToolTipText(\"$10.00 per month\");\r\n SMS_Item.addActionListener(new optionsListener());\r\n\r\n keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_T, KeyEvent.ALT_DOWN_MASK);\r\n SMS_Item.setAccelerator(keyStroke);\r\n\r\n optionsMenu = new JMenu(\"Options\");\r\n\r\n optionsMenu.add(voiceMailItem);\r\n optionsMenu.add(SMS_Item);\r\n }", "title": "" }, { "docid": "8409f97f7a26a961331769f09e871327", "score": "0.72870237", "text": "private JMenuBar createMenu() {\n\t\tJMenuBar jMenuBar1=new JMenuBar();\n\t\n\t\tjMenuBar1.add(createFileMenu());\n\t\tjMenuBar1.add(createVariableMenu());\n\t\tjMenuBar1.add(createInfoMenu());\n\t\t\n\n\t\treturn jMenuBar1;\n\t}", "title": "" }, { "docid": "867cc06d163209b06842ecc296e8616f", "score": "0.72435725", "text": "public JDasherMenuBar constructMenus() {\n\n JDasherMenuBar newMenuBar = new JDasherMenuBar(this);\n\n ArrayList<String> colours = new ArrayList<String>();\n dInterface.GetColours(colours);\n newMenuBar.setColours(colours, dInterface.getSetting(Esp_parameters.SP_COLOUR_ID));\n\n ArrayList<String> alphs = new ArrayList<String>();\n dInterface.GetAlphabets(alphs);\n newMenuBar.setAlphabets(alphs, dInterface.getSetting(Esp_parameters.SP_ALPHABET_ID));\n\n newMenuBar.setSelectedFontSize((int) dInterface.getSetting(Elp_parameters.LP_DASHER_FONTSIZE));\n newMenuBar.setInputFilter(dInterface.getSetting(Esp_parameters.SP_INPUT_FILTER));\n newMenuBar.setMouseLine(dInterface.getSetting(Ebp_parameters.BP_DRAW_MOUSE_LINE));\n newMenuBar.setStartMouse(dInterface.getSetting(Ebp_parameters.BP_START_MOUSE));\n newMenuBar.setStartSpace(dInterface.getSetting(Ebp_parameters.BP_START_SPACE));\n newMenuBar.setSelectedLM((int) dInterface.getSetting(Elp_parameters.LP_LANGUAGE_MODEL_ID));\n newMenuBar.setSpeedAuto(dInterface.getSetting(Ebp_parameters.BP_AUTO_SPEEDCONTROL));\n newMenuBar.setLangModelLearns(dInterface.getSetting(Ebp_parameters.BP_LM_ADAPTIVE));\n\n m_Clipboard.addFlavorListener(newMenuBar);\n\n return newMenuBar;\n\n }", "title": "" }, { "docid": "eacc1d59884e684bdeabb676fb744d72", "score": "0.7179819", "text": "public void createMenus() {\r\n\r\n\t\toption = new JMenu(\"Menu\");\r\n\t\tnewGameItem = new JMenuItem(\"New Game\");\r\n\t\tnewGameItem.addActionListener(this);\r\n\t\tmainMenuItem = new JMenuItem(\"Main Menu\");\r\n\t\tmainMenuItem.addActionListener(this);\r\n\t\tcloseItem = new JMenuItem(\"Quit\");\r\n\t\tcloseItem.addActionListener(this);\r\n\r\n\t\t// main menu for R#2\r\n\t\tmenus = new JMenuBar();\r\n\t\tmenus.add(option);\r\n\t\toption.add(newGameItem);\r\n\t\toption.add(mainMenuItem);\r\n\t\toption.add(closeItem);\r\n\r\n\t}", "title": "" }, { "docid": "c995c5f295ad38fb6702fb8365092555", "score": "0.7088893", "text": "public void createMenu() throws NoSuchMethodException {\n try {\n addSubMenu(\"File\", KeyEvent.VK_F);;\n addMenuItem(\"File/Exit\", \"Exit\", KeyEvent.VK_X, \"Exit.gif\", \"onExit\");\n\n addSubMenu(\"View\", KeyEvent.VK_V);\n addMenuItem(\"View/Show Grid\", \"Show Grid\", KeyEvent.VK_G, \"8link.gif\", \"onGrid\");\n addMenuItem(\"View/Show Isolines\", \"Show Isolines\", KeyEvent.VK_I, \"Circle.png\", \"onIsolines\");\n\n addSubMenu(\"View/Mode\", KeyEvent.VK_M);\n addMenuItem(\"View/Mode/Normal\", \"Normal mode\", KeyEvent.VK_N, \"Black.gif\", \"onNormal\");\n addMenuItem(\"View/Mode/Interpolar\", \"Interpolar mode\", KeyEvent.VK_I, \"Black.gif\", \"onInterpolar\");\n\n addSubMenu(\"Help\", KeyEvent.VK_H);\n addMenuItem(\"Help/About\", \"About\", KeyEvent.VK_A, \"About.gif\", \"onAbout\");\n\n addToolBarButton(\"View/Show Grid\");\n addToolBarButton(\"View/Show Isolines\");\n addToolBarSeparator();\n addToolBarButton(\"View/Mode/Normal\");\n addToolBarButton(\"View/Mode/Interpolar\");\n addToolBarSeparator();\n addToolBarButton(\"Help/About\");\n addToolBarButton(\"File/Exit\");\n }\n catch (Exception ex){\n throw new RuntimeException(ex);\n }\n }", "title": "" }, { "docid": "30ac2917a13d8c6db2f79fda5f6ca3c6", "score": "0.7053303", "text": "private void createMenu(){\r\n java.util.Vector fileChildren = new java.util.Vector();\r\n cascade = new CoeusMenuItem(\"Cascade\",null,true,true);\r\n cascade.setMnemonic('C');\r\n tileHorizontal = new CoeusMenuItem(\"Tile Horizontal\",null,true,true);\r\n tileHorizontal.setMnemonic('H');\r\n tileVertical = new CoeusMenuItem(\"Tile Vertical\",null,true,true);\r\n tileVertical.setMnemonic('V');\r\n layer= new CoeusMenuItem(\"Layer\",null,true,true);\r\n layer.setMnemonic('L');\r\n //Bug Fix: Not implementing Toolbars\r\n //toolbars = new CoeusMenuItem(\"Toolbrs...\",null,true,true);\r\n //toolbars.setMnemonic('B');\r\n \r\n minimizeAllWindows = new CoeusMenuItem(\"Minimize All Windows\",null,\r\n true,true);\r\n minimizeAllWindows.setMnemonic('M');\r\n undo = new CoeusMenuItem(\"Undo Minimize\",null,true,true);\r\n undo.setMnemonic('U');\r\n\r\n fileChildren.add(cascade);\r\n fileChildren.add(tileHorizontal);\r\n fileChildren.add(tileVertical);\r\n fileChildren.add(layer);\r\n \r\n //Bug Fix: Not implementing Toolbars\r\n //fileChildren.add(SEPERATOR);\r\n //fileChildren.add(toolbars);\r\n \r\n fileChildren.add(SEPERATOR);\r\n \r\n fileChildren.add(minimizeAllWindows);\r\n fileChildren.add(undo);\r\n\r\n coeusMenu = new CoeusMenu(\"Window\",null,fileChildren,true,true);\r\n coeusMenu.setMnemonic('W');\r\n\r\n //add listener\r\n cascade.addActionListener(this);\r\n tileHorizontal.addActionListener(this);\r\n tileVertical.addActionListener(this);\r\n layer.addActionListener(this);\r\n \r\n //Bug Fix: Not implementing Toolbars\r\n //toolbars.addActionListener(this);\r\n \r\n minimizeAllWindows.addActionListener(this);\r\n undo.addActionListener(this);\r\n\r\n }", "title": "" }, { "docid": "6b567bf3a31bd3f64d9adbec4b8aca55", "score": "0.7052518", "text": "protected\tMiMenuItem\tbuildMenuItem(\n\t\t\t\t\t\tString itemName, \n\t\t\t\t\t\tMiiCommandHandler commandHandler, \n\t\t\t\t\t\tString command)\n\t\t{\n\t\tMiMenuItem menuItem = new MiMenuItem(itemName);\n\t\tMiActionCallback callback = new MiActionCallback(commandHandler, command);\n\t\tmenuItem.appendActionHandler(callback);\n\t\tcommandManager.registerCommandDependentWidget(menuItem, command);\n\n\t\treturn(menuItem);\n\t\t}", "title": "" }, { "docid": "948102d3ada3412cbdd93a96512bee85", "score": "0.7030548", "text": "private void createMenus() {\r\n\t\tJMenuBar menuBar = new JMenuBar();\r\n\t\t\r\n\t\tJMenu fileMenu = new LJMenu(\"file\", flp);\r\n\t\tfileMenu.add(new JMenuItem(openDocumentAction));\r\n\t\tfileMenu.add(new JMenuItem(createNewDocumentAction));\t\r\n\t\tfileMenu.add(new JMenuItem(saveAsDocumentAction));\r\n\t\tfileMenu.add(new JMenuItem(saveDocumentAction));\r\n\t\tfileMenu.add(new JMenuItem(closeTabAction));\r\n\t\tfileMenu.add(new JMenuItem(statisticsAction));\r\n\t\tfileMenu.addSeparator();\r\n\t\tfileMenu.add(new JMenuItem(exitAction));\r\n\t\tmenuBar.add(fileMenu);\r\n\r\n\t\t\r\n\t\tJMenu editMenu = new LJMenu(\"edit\", flp);\r\n\t\teditMenu.add(new JMenuItem(copyAction));\r\n\t\teditMenu.add(new JMenuItem(cutAction));\r\n\t\teditMenu.add(new JMenuItem(pasteAction));\r\n\t\tmenuBar.add(editMenu);\r\n\t\t\r\n\t\tJMenu lang = new LJMenu(\"lang\", flp);\r\n\t\tlang.add(new JMenuItem(new CroatianLanguage(this, flp)));\r\n\t\tlang.add(new JMenuItem(new EnglishLanguage(this, flp)));\r\n\t\tlang.add(new JMenuItem(new DeutschLanguage(this, flp)));\r\n\t\tmenuBar.add(lang);\r\n\t\t\r\n\t\tJMenu tools = new LJMenu(\"tools\", flp);\r\n\t changeCase = new LJMenu(\"changeCase\", flp);\r\n\t changeCase.setToolTipText(flp.getString(\"changeCaseTT\"));\r\n\t \r\n\t ILocalizationListener listener = () -> {\r\n\t\t changeCase.setToolTipText(flp.getString(\"changeCaseTT\"));\r\n\r\n\t\t};\r\n\t\t\r\n\t\tflp.addLocalizationListener(listener);\r\n\t\ttools.add(changeCase);\r\n\t\tchangeCase.add(new JMenuItem (new InvertCaseAction(this, flp)));\r\n\t\tchangeCase.add(new JMenuItem (new ToUpperCaseAction(this, flp)));\r\n\t\tchangeCase.add(new JMenuItem (new ToLoweCaseAction(this, flp)));\r\n\t\tJMenu sort = new LJMenu(\"sort\", flp);\r\n\t\ttools.add(sort);\r\n\t\tsort.add(new JMenuItem(new AscendingAction(this, flp)));\r\n\t\tsort.add(new JMenuItem(new DescendingAction(this, flp)));\r\n\t\t\r\n\t\ttools.add(new JMenuItem(new UniqueAction(this, flp)));\r\n\t\tmenuBar.add(tools);\r\n\t\r\n\t\tsetJMenuBar(menuBar);\r\n\r\n\t\t\r\n\t}", "title": "" }, { "docid": "d559b535e4b3e823d89b4822f88d884f", "score": "0.70102924", "text": "private void createMenus() {\n adminMenuItem = new JMenuItem();\n adminMenuItem.setMnemonic('a');\n adminMenuItem.setText(\"Admin\");\n adminMenuItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n adminMenuItemActionPerformed(evt);\n }\n });\n\n userModeMenuItem = new JMenuItem();\n userModeMenuItem.setMnemonic('u');\n userModeMenuItem.setText(\"User Mode\");\n userModeMenuItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n userModeMenuItemActionPerformed(evt);\n }\n });\n\n exitMenuItem = new JMenuItem();\n exitMenuItem.setMnemonic('x');\n exitMenuItem.setText(\"Exit\");\n exitMenuItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n exitMenuItemActionPerformed(evt);\n }\n });\n\n editMenuItem = new JMenuItem();\n editMenuItem.setMnemonic('e');\n editMenuItem.setText(\"Edit Employee\");\n editMenuItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n editMenuItemActionPerformed(evt);\n }\n });\n\n addEmpMenuItem = new JMenuItem();\n addEmpMenuItem.setMnemonic('d');\n addEmpMenuItem.setText(\"Add Employee\");\n addEmpMenuItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addEmpMenuItemActionPerformed(evt);\n }\n });\n\n deleteEmpMenuItem = new JMenuItem();\n deleteEmpMenuItem.setMnemonic('d');\n deleteEmpMenuItem.setText(\"Delete Employee\");\n deleteEmpMenuItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n deleteEmpMenuItemActionPerformed(evt);\n }\n });\n\n whoClockInMenuItem = new JMenuItem();\n whoClockInMenuItem.setMnemonic('d');\n whoClockInMenuItem.setText(\"List Clocked In\");\n whoClockInMenuItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n whoClockInMenuItemActionPerformed(evt);\n }\n });\n\n createReportMenuItem = new JMenuItem();\n createReportMenuItem.setMnemonic('a');\n createReportMenuItem.setText(\"Create All Times Report\");\n createReportMenuItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n createReportMenuItemActionPerformed(evt);\n }\n });\n\n employeeTimeReportMenuItem = new JMenuItem();\n employeeTimeReportMenuItem.setMnemonic('t');\n employeeTimeReportMenuItem.setText(\"Create Employee Time Report\");\n employeeTimeReportMenuItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n employeeTimeReportMenuItemActionPerformed(evt);\n }\n });\n\n listEmpMenuItem = new JMenuItem();\n listEmpMenuItem.setMnemonic('l');\n listEmpMenuItem.setText(\"Create Employee List Report\");\n listEmpMenuItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n listEmpMenuItemActionPerformed(evt);\n }\n });\n\n // Create Admin Menu\n reportMenu = new JMenu();\n reportMenu.setMnemonic('r');\n reportMenu.setText(\"Report\");\n reportMenu.add(createReportMenuItem);\n reportMenu.add(employeeTimeReportMenuItem);\n reportMenu.add(listEmpMenuItem);\n\n // Create Admin Menu\n employeeMenu = new JMenu();\n employeeMenu.setMnemonic('e');\n employeeMenu.setText(\"Employee\");\n employeeMenu.add(editMenuItem);\n employeeMenu.add(addEmpMenuItem);\n employeeMenu.add(deleteEmpMenuItem);\n employeeMenu.add(whoClockInMenuItem);\n\n // Create File Menu\n fileMenu = new JMenu();\n fileMenu.setMnemonic('f');\n fileMenu.setText(\"File\");\n fileMenu.add(adminMenuItem);\n fileMenu.add(exitMenuItem);\n\n // Only display the file menu on start\n menuBar = new JMenuBar();\n menuBar.add(fileMenu);\n }", "title": "" }, { "docid": "bffa2028254439a7dbfe71d14cac9074", "score": "0.6960723", "text": "private void createSubMenu(final JMenu the_menu) {\r\n if (the_menu.getText().equals(FILE_STRING)) { \r\n createFileMenu(the_menu);\r\n } else if (the_menu.getText().equals(OPTION_STRING)) {\r\n createOptionMenu(the_menu);\r\n } else if (the_menu.getText().equals(TOOL_STRING)) {\r\n createToolMenu(the_menu);\r\n } else if (the_menu.getText().equals(HELP_STRING)) {\r\n createHelpMenu(the_menu);\r\n }\r\n }", "title": "" }, { "docid": "2a3d1ebb0e2f43eef4c58bc6b4ff9795", "score": "0.6959628", "text": "private void createMenu()\n\t{\n\t\t/**\n\t\t *\tMenu\n\t\t */\n\t//\tmenuBar.setHelpMenu();\n\t\t//\t\t\t\t\t\t\t\tFile\n\t\tJMenu mFile = AEnv.getMenu(\"File\");\n\t\tmenuBar.add(mFile);\n\t\taPrintScr =\taddAction(\"PrintScreen\",\tmFile,\tKeyStroke.getKeyStroke(KeyEvent.VK_PRINTSCREEN, 0), \tfalse);\n\t\taScrShot =\taddAction(\"ScreenShot\",\t\tmFile,\tKeyStroke.getKeyStroke(KeyEvent.VK_PRINTSCREEN, Event.SHIFT_MASK), \tfalse);\n\t\taReport = \taddAction(\"Report\",\t\t\tmFile, \tKeyStroke.getKeyStroke(KeyEvent.VK_F11, 0),\tfalse);\n\t\taPrint = \taddAction(\"Print\",\t\t\tmFile, \tKeyStroke.getKeyStroke(KeyEvent.VK_F12, 0),\tfalse);\n\t\tmFile.addSeparator();\n\t\taEnd =\t \taddAction(\"End\",\t\t\tmFile, \tKeyStroke.getKeyStroke(KeyEvent.VK_X, Event.ALT_MASK),\tfalse);\n\t\taExit =\t\taddAction(\"Exit\",\t\t\tmFile, \tKeyStroke.getKeyStroke(KeyEvent.VK_X, Event.SHIFT_MASK+Event.ALT_MASK),\tfalse);\n\t\t//\t\t\t\t\t\t\t\tEdit\n\t\tJMenu mEdit = AEnv.getMenu(\"Edit\");\n\t\tmenuBar.add(mEdit);\n\t\taNew = \t\taddAction(\"New\", \t\t\tmEdit, \tKeyStroke.getKeyStroke(KeyEvent.VK_F2, 0), false);\n\t\taSave = \taddAction(\"Save\",\t\t\tmEdit, \tKeyStroke.getKeyStroke(KeyEvent.VK_F4, 0),\tfalse);\n\t\tmEdit.addSeparator();\n\t\taCopy =\t\taddAction(\"Copy\", \t\t\tmEdit, \tKeyStroke.getKeyStroke(KeyEvent.VK_F2, Event.SHIFT_MASK),\tfalse);\n\t\taDelete = \taddAction(\"Delete\",\t\t\tmEdit, \tKeyStroke.getKeyStroke(KeyEvent.VK_F3, 0),\tfalse);\n\t\taIgnore = \taddAction(\"Ignore\",\t\t\tmEdit, \tKeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0),\tfalse);\n\t\taRefresh = \taddAction(\"Refresh\",\t\tmEdit, \tKeyStroke.getKeyStroke(KeyEvent.VK_F5, 0),\tfalse);\n\t\tmEdit.addSeparator();\n\t\taFind = \taddAction(\"Find\",\t\t\tmEdit, \tKeyStroke.getKeyStroke(KeyEvent.VK_F6, 0), true);\t//\ttoggle\n\t\tif (m_isPersonalLock)\t\t\t\n\t\t\taLock = addAction(\"Lock\",\t\t\tmEdit, \tnull,\ttrue);\t\t//\ttoggle\n\t\t//\t\t\t\t\t\t\t\tView\n\t\tJMenu mView = AEnv.getMenu(\"View\");\n\t\tmenuBar.add(mView);\n\t\taProduct =\taddAction(\"InfoProduct\",\tmView, \tKeyStroke.getKeyStroke(KeyEvent.VK_I, Event.ALT_MASK),\tfalse);\n\t\taBPartner =\taddAction(\"InfoBPartner\",\tmView, \tKeyStroke.getKeyStroke(KeyEvent.VK_I, Event.SHIFT_MASK+Event.ALT_MASK),\tfalse);\n\t\tif (MRole.getDefault().isShowAcct())\n\t\t\taAccount = addAction(\"InfoAccount\",mView, \tKeyStroke.getKeyStroke(KeyEvent.VK_I, Event.ALT_MASK+Event.CTRL_MASK),\tfalse);\n\t\tAEnv.addMenuItem(\"InfoSchedule\", null, null, mView, this);\n\t\tmView.addSeparator();\n\t\tAEnv.addMenuItem(\"InfoOrder\", \"Info\", null, mView, this);\n\t\tAEnv.addMenuItem(\"InfoInvoice\", \"Info\", null, mView, this);\n\t\tAEnv.addMenuItem(\"InfoInOut\", \"Info\", null, mView, this);\n\t\tAEnv.addMenuItem(\"InfoPayment\", \"Info\", null, mView, this);\n\t\tAEnv.addMenuItem(\"InfoCashLine\", \"Info\", null, mView, this);\n\t\tAEnv.addMenuItem(\"InfoAssignment\", \"Info\", null, mView, this);\n\t\tAEnv.addMenuItem(\"InfoAsset\", \"Info\", null, mView, this);\n\t\tmView.addSeparator();\n\t\taAttachment = addAction(\"Attachment\",\tmView, \tKeyStroke.getKeyStroke(KeyEvent.VK_F7, 0),\ttrue);\t\t//\ttoggle\n\t\taHistory = \taddAction(\"History\",\t\tmView, \tKeyStroke.getKeyStroke(KeyEvent.VK_F9, 0),\ttrue);\t\t//\ttoggle\n\t\tmView.addSeparator();\n\t\taMulti =\taddAction(\"Multi\",\t\t\tmView, \tKeyStroke.getKeyStroke(KeyEvent.VK_F8, 0),\ttrue);\t\t//\ttoggle\n\t\t//\t\t\t\t\t\t\t\tGo\n\t\tJMenu mGo = AEnv.getMenu(\"Go\");\n\t\tmenuBar.add(mGo);\n\t\taFirst =\taddAction(\"First\", \t\t\tmGo, \tKeyStroke.getKeyStroke(KeyEvent.VK_PAGE_UP, Event.ALT_MASK),\tfalse);\n\t\taPrevious = addAction(\"Previous\", \t\tmGo, \tKeyStroke.getKeyStroke(KeyEvent.VK_UP, Event.ALT_MASK),\tfalse);\n\t\taNext = \taddAction(\"Next\", \t\t\tmGo, \tKeyStroke.getKeyStroke(KeyEvent.VK_DOWN, Event.ALT_MASK),\tfalse);\n\t\taLast =\t\taddAction(\"Last\",\t \t\tmGo, \tKeyStroke.getKeyStroke(KeyEvent.VK_PAGE_DOWN, Event.ALT_MASK),\tfalse);\n\t\tmGo.addSeparator();\n\t\taParent =\taddAction(\"Parent\", \t\tmGo, \tKeyStroke.getKeyStroke(KeyEvent.VK_LEFT, Event.ALT_MASK),\tfalse);\n\t\taDetail =\taddAction(\"Detail\", \t\tmGo,\tKeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, Event.ALT_MASK),\tfalse);\n\t\tmGo.addSeparator();\n\t\taZoomAcross = addAction(\"ZoomAcross\",\tmGo, \tnull,\tfalse);\n\t\taRequest = addAction(\"Request\",\t\tmGo, \tnull,\tfalse);\n\t\taArchive = addAction(\"Archive\",\t\tmGo, \tnull,\tfalse);\n\t\taHome =\t\taddAction(\"Home\", \t\t\tmGo,\tnull,\tfalse);\n\t\t//\t\t\t\t\t\t\t\tTools\n\t\tJMenu mTools = AEnv.getMenu(\"Tools\");\n\t\tmenuBar.add(mTools);\n\t\taCalculator = addAction(\"Calculator\",\tmTools, \tnull,\tfalse);\n\t\taCalendar = addAction(\"Calendar\",\t\tmTools, \tnull,\tfalse);\n\t\taEditor =\taddAction(\"Editor\",\t\t\tmTools, \tnull,\tfalse);\n\t\taScript = addAction(\"Script\",\t mTools, \tnull,\tfalse);\n\t\tif (\"Y\".equals(Env.getContext(m_ctx, \"#SysAdmin\")))\t//\tset in DB.loginDB\n\t\t\taWinSize = addAction(\"WinSize\", mTools, \tnull,\tfalse);\n\t\tif (AEnv.isWorkflowProcess())\n\t\t\taWorkflow = addAction(\"WorkFlow\",\tmTools,\t\tnull,\tfalse);\n\t\tif (MRole.getDefault().isShowPreference())\n\t\t{\n\t\t\tmTools.addSeparator();\n\t\t\taPreference = addAction(\"Preference\",\tmTools, \tnull,\tfalse);\n\t\t}\n\t\t//\t\t\t\t\t\t\t\tHelp\n\t\tJMenu mHelp = AEnv.getMenu(\"Help\");\n\t\tmenuBar.add(mHelp);\n\t\taHelp = \taddAction(\"Help\",\t\t\tmHelp, \tKeyStroke.getKeyStroke(KeyEvent.VK_F1, 0),\tfalse);\n\t\taOnline =\taddAction(\"Online\",\t\t\tmHelp, \tnull,\tfalse);\n\t\taMailSupport = addAction(\"EMailSupport\",\tmHelp,\tnull,\tfalse);\n\t\taAbout = \taddAction(\"About\",\t\t\tmHelp, \tnull,\tfalse);\n\n\t\t/**\n\t\t *\tToolBar\n\t\t */\n\t\ttoolBar.add(aIgnore.getButton());\t\t//\tESC\n\t\ttoolBar.addSeparator();\n\t\ttoolBar.add(aHelp.getButton());\t\t\t//\tF1\n\t\ttoolBar.add(aNew.getButton());\n\t\ttoolBar.add(aDelete.getButton());\n\t\ttoolBar.add(aSave.getButton());\n\t\ttoolBar.addSeparator();\n\t\ttoolBar.add(aRefresh.getButton()); // F5\n\t\ttoolBar.add(aFind.getButton());\n\t\ttoolBar.add(aAttachment.getButton());\n\t\ttoolBar.add(aMulti.getButton());\n\t\ttoolBar.addSeparator();\n\t\ttoolBar.add(aHistory.getButton());\t\t//\tF9\n\t\ttoolBar.add(aHome.getButton());\t\t\t//\tF10 is Windows Menu Key\n\t\ttoolBar.add(aParent.getButton());\n\t\ttoolBar.add(aDetail.getButton());\n\t\ttoolBar.addSeparator();\n\t\ttoolBar.add(aFirst.getButton());\n\t\ttoolBar.add(aPrevious.getButton());\n\t\ttoolBar.add(aNext.getButton());\n\t\ttoolBar.add(aLast.getButton());\n\t\ttoolBar.addSeparator();\n\t\ttoolBar.add(aReport.getButton());\n\t\ttoolBar.add(aArchive.getButton());\n\t\ttoolBar.add(aPrint.getButton());\n\t\ttoolBar.addSeparator();\n\t\tif (m_isPersonalLock)\n\t\t\ttoolBar.add(aLock.getButton());\n\t\ttoolBar.add(aZoomAcross.getButton());\n\t\tif (aWorkflow != null)\n\t\t\ttoolBar.add(aWorkflow.getButton());\n\t\ttoolBar.add(aRequest.getButton());\n\t\ttoolBar.add(aProduct.getButton());\n\t\ttoolBar.addSeparator();\n\t\ttoolBar.add(aEnd.getButton());\n\t\t//\n\t\tif (CLogMgt.isLevelAll())\n\t\t\tUtil.printActionInputMap(this);\n\t}", "title": "" }, { "docid": "09028cb5600fab785574d6486a06d4f5", "score": "0.69548535", "text": "Menu createMenu();", "title": "" }, { "docid": "f22467f5282e6a3e9976c94bb0e047f4", "score": "0.69473815", "text": "private void createMenus() {\n menuBar = new JMenuBar();\n JMenu menu = new JMenu(\"File\");\n\n menu.add(createFileExitItem());\n menu.add(createFileOpenItem());\n menuBar.add(menu);\n this.setJMenuBar(menuBar);\n\n\n }", "title": "" }, { "docid": "0a68032522802a58df4f76b176f5b5ff", "score": "0.6930009", "text": "private void createMenus() {\n Menu menuBar = new Menu(shell, SWT.BAR);\n\n createFileMenu(menuBar);\n createEditMenu(menuBar);\n createHelpMenu(menuBar);\n\n shell.setMenuBar(menuBar);\n }", "title": "" }, { "docid": "4d004c4cf3ea71fcbe736d682e9af124", "score": "0.6926818", "text": "public void createSubMenu(){\n\n\n for(String color: getColors()){\n //System.out.println(\"color added\");\n getColorMenu().add(new MenuOption(color) {\n @Override\n public void doAction() {\n setColor(color);\n getDriveMenu().question();\n }\n });\n }\n\n\n for(String drive: getDrives()){\n getDriveMenu().add(new MenuOption(drive) {\n @Override\n public void doAction() {\n setDrive(drive);\n\n getQuantityInput();\n\n }\n });\n }\n\n }", "title": "" }, { "docid": "84354535fac62acdd9cb598fd52d20ae", "score": "0.69099146", "text": "public void run() {\n MenuComponent pancakeHouseMenu = new Menu(\"PANCAKE HOUSE MENU\", \"Breakfast\");\n MenuComponent dinerMenu = new Menu(\"DINER MENU\", \"Lunch\");\n MenuComponent cafeMenu = new Menu(\"CAFE MENU\", \"Dinner\");\n MenuComponent dessertMenu = new Menu(\"DESSERT MENU\", \"Dessert of course!\");\n\n MenuComponent allMenus = new Menu(\"ALL MENUS\", \"All menus combined\");\n\n allMenus.add(pancakeHouseMenu);\n allMenus.add(dinerMenu);\n allMenus.add(cafeMenu);\n\n pancakeHouseMenu.add(new MenuItem(\n \"K&B's Pancake Breakfast\",\n \"Pancakes with scrambled eggs and toast\",\n true,\n 2.99));\n pancakeHouseMenu.add(new MenuItem(\n \"Regular Pancake Breakfast\",\n \"Pancakes with fried eggs, sausage\",\n false,\n 2.99));\n pancakeHouseMenu.add(new MenuItem(\n \"Blueberry Pancakes\",\n \"Pancakes made with fresh blueberries, and blueberry syrup\",\n true,\n 3.49));\n\n dinerMenu.add(new MenuItem(\n \"Soup of the day\",\n \"A bowl of the soup of the day, with a side of potato salad\",\n false,\n 3.29));\n dinerMenu.add(new MenuItem(\n \"Hot Dog\",\n \"A hot dog, with saurkraut, relish, onions, topped with cheese\",\n false,\n 3.05));\n dinerMenu.add(new MenuItem(\n \"Steamed Veggies and Brown Rice\",\n \"Steamed vegetables over brown rice\",\n true,\n 3.99));\n\n cafeMenu.add(new MenuItem(\n \"Veggie Burger and Air Fries\",\n \"Veggie burger on a whole wheat bun, lettuce, tomato, and fries\",\n true,\n 3.99));\n cafeMenu.add(new MenuItem(\n \"Soup of the day\",\n \"A cup of the soup of the day, with a side salad\",\n false,\n 3.69));\n cafeMenu.add(new MenuItem(\n \"Burrito\",\n \"A large burrito, with whole pinto beans, salsa, guacamole\",\n true,\n 4.29));\n\n dinerMenu.add(dessertMenu);\n\n dessertMenu.add(new MenuItem(\n \"Apple Pie\",\n \"Apple pie with a flakey crust, topped with vanilla icecream\",\n true,\n 1.59));\n dessertMenu.add(new MenuItem(\n \"Cheesecake\",\n \"Creamy New York cheesecake, with a chocolate graham crust\",\n true,\n 1.99));\n dessertMenu.add(new MenuItem(\n \"Sorbet\",\n \"A scoop of raspberry and a scoop of lime\",\n true,\n 1.89));\n\n Waitress waitress = new Waitress(allMenus);\n\n waitress.printMenu();\n }", "title": "" }, { "docid": "b583cdc883407fb4aa8706d8ae1408f0", "score": "0.68947154", "text": "private void generateMenu(){\n menuBar = new JMenuBar();\n\n JPopupMenu popup = new JPopupMenu(\"A Popup\");\n JMenu file = new JMenu(\"File\");\n JMenu tools = new JMenu(\"Tools\");\n JMenu help = new JMenu(\"Help\");\n JMenu preferences = new JMenu(\"Preferences \");\n JMenu audio = new JMenu(\"Sound \");\n JMenu color = new JMenu(\"Color \"); \n\n JMenuItem open = new JMenuItem(\"Open \");\n JMenuItem save = new JMenuItem(\"Save \");\n JMenuItem exit = new JMenuItem(\"Exit \"); \n JMenuItem about = new JMenuItem(\"Instructions \");\n JMenuItem magenta = new JMenuItem(\"Magenta \");\n JMenuItem orange = new JMenuItem(\"Orange \"); \n JMenuItem yellow = new JMenuItem(\"Yellow \");\n JMenuItem gray = new JMenuItem(\"Gray \");\n JMenuItem green = new JMenuItem(\"Green \");\n JMenuItem secret = new JMenuItem(\"Secret \");\n\n secret.setActionCommand(\"secret\");\n secret.addActionListener(this); \n green.setActionCommand(\"green\");\n green.addActionListener(this);\n orange.setActionCommand(\"orange\");\n orange.addActionListener(this);\n magenta.setActionCommand(\"magenta\");\n magenta.addActionListener(this);\n yellow.setActionCommand(\"yellow\");\n yellow.addActionListener(this);\n gray.setActionCommand(\"gray\");\n gray.addActionListener(this);\n on.setActionCommand(\"on\");\n on.addActionListener(this);\n on.setEnabled(false);\n off.setActionCommand(\"off\");\n off.addActionListener(this);\n about.setActionCommand(\"about\");\n about.addActionListener(this);\n\n color.add(green);\n color.add(orange);\n color.add(yellow);\n color.add(magenta);\n color.add(gray);\n audio.add(off);\n audio.add(on);\n preferences.add(color);\n preferences.add(audio);\n file.add(open);\n file.add(save);\n file.addSeparator();\n file.add(exit);\n tools.add(preferences);\n help.add(about);\n help.add(secret);\n\n menuBar.add(file);\n menuBar.add(tools);\n menuBar.add(help);\n }", "title": "" }, { "docid": "a1eb3530b4c3ae5309d732a92c9e416a", "score": "0.68716455", "text": "private void populateMenu() {\n\n // Enable or disable debugging\n JCheckBoxMenuItem enableDebugging = new JCheckBoxMenuItem(\"Enable debugging?\");\n enableDebugging.setState(GameSettings.INSTANCE.isEnableDebugging());\n enableDebugging.addItemListener(e -> enableDebugging());\n add(enableDebugging);\n\n // Print out current FEN\n JMenuItem printFen = new JMenuItem(\"Print Fen\");\n printFen.addActionListener(e -> printFen());\n add(printFen);\n\n // Print PGN\n JMenuItem printPGN = new JMenuItem(\"Print PGN\");\n printPGN.addActionListener(e -> printPGN());\n add(printPGN);\n\n // Parse PGN\n JMenuItem parsePGN = new JMenuItem(\"Parse PGN\");\n parsePGN.addActionListener(e -> parsePGN());\n add(parsePGN);\n\n // Print all pieces state\n JMenuItem printPieces = new JMenuItem(\"Print pieces\");\n printPieces.addActionListener(e -> printPieces());\n add(printPieces);\n\n // Print all moves\n JMenuItem printMoves = new JMenuItem(\"Print moves\");\n printMoves.addActionListener(e -> printMoves());\n add(printMoves);\n\n // Print all valid moves\n JMenuItem printValidMoves = new JMenuItem(\"Print valid moves\");\n printValidMoves.addActionListener(e -> printValidMoves());\n add(printValidMoves);\n }", "title": "" }, { "docid": "ef57eafcd82a4eac9a663cb0caa03636", "score": "0.6864671", "text": "public Boolean build(NavigationView navigationView) {\n // dereference menu & clear any contents\n Menu menu = navigationView.getMenu();\n menu.clear();\n// // menu item defs\n// MenuItem menuItem;\n// int iconId;\n// String itemName;\n// // icon & menu item\n// int iconId = R.drawable.ic_star_black_48dp;\n// // camera\n// iconId = android.R.drawable.ic_menu_camera;\n// itemName = getContext().getString(R.string.action_camera);\n//\n// menuItem = menu.add(itemName);\n// menuItem.setIcon(iconId);\n// Log.d(TAG, \"build add menu item:\" + menuItem.getItemId() + \", itemname: \" + menuItem.metricsToString());\n// // gallery\n// iconId = android.R.drawable.ic_menu_gallery;\n// itemName = getContext().getString(R.string.action_gallery);\n//\n// menuItem = menu.add(itemName);\n// menuItem.setIcon(iconId);\n// Log.d(TAG, \"build add menu item:\" + menuItem.getItemId() + \", itemname: \" + menuItem.metricsToString());\n//\n String title;\n int iconId;\n List<String> monikerList;\n // add file submenu\n title = getContext().getString(R.string.action_sketch_file);\n iconId = android.R.drawable.ic_menu_gallery;\n monikerList = Arrays.asList(getContext().getResources().getStringArray(R.array.File));\n addSubMenu(navigationView, title, iconId, monikerList);\n // add erase submenu\n title = getContext().getString(R.string.action_sketch_erase);\n iconId = R.drawable.ic_undo_black_48dp;\n monikerList = Arrays.asList(getContext().getResources().getStringArray(R.array.Erase));\n addSubMenu(navigationView, title, iconId, monikerList);\n // add shapes submenu\n title = getContext().getString(R.string.action_sketch_shape);\n iconId = R.drawable.ic_bubble_chart_black_48dp;\n monikerList = Arrays.asList(getContext().getResources().getStringArray(R.array.Shapes));\n addSubMenu(navigationView, title, iconId, monikerList);\n // add styles submenu\n title = getContext().getString(R.string.action_sketch_style);\n iconId = R.drawable.ic_border_color_black_48dp;\n monikerList = Arrays.asList(getContext().getResources().getStringArray(R.array.Styles));\n addSubMenu(navigationView, title, iconId, monikerList);\n // add colors submenu\n title = getContext().getString(R.string.action_sketch_color);\n iconId = R.drawable.ic_format_color_fill_black_48dp;\n monikerList = Arrays.asList(getContext().getResources().getStringArray(R.array.Colors));\n addSubMenu(navigationView, title, iconId, monikerList);\n// // add tools submenu\n// title = getContext().getString(R.string.action_sketch_tool);\n// iconId = R.drawable.ic_format_paint_black_48dp;\n// monikerList = Arrays.asList(getContext().getResources().getStringArray(R.array.Tools));\n// addSubMenu(navigationView, title, iconId, monikerList);\n\n return true;\n }", "title": "" }, { "docid": "de37f4229bd1f39363b0d82740b83802", "score": "0.68330055", "text": "private MenuItem constructMenu(MenuBar bar, Object parent, String key, Navigator navigator) {\n\t\tString caption = messageService.getMessageNoDefault(key + \".\" + DISPLAY_NAME);\n\n\t\tMenuItem menuItem = null;\n\t\t// When no caption exists, return no instance of menuItem (null)\n\t\tif (!StringUtils.isEmpty(caption)) {\n\t\t\t// look up the messages\n\t\t\tString destination = messageService.getMessageNoDefault(key + \".\" + DESTINATION);\n\t\t\tString tabIndex = messageService.getMessageNoDefault(key + \".\" + TAB_INDEX);\n\t\t\tString mode = messageService.getMessageNoDefault(key + \".\" + MODE);\n\t\t\tString description = messageService.getMessageNoDefault(key + \".\" + DESCRIPTION);\n\n\t\t\t// create navigation command\n\t\t\tCommand command = null;\n\t\t\tif (!StringUtils.isEmpty(destination)) {\n\t\t\t\tcommand = new NavigateCommand(navigator, bar, destination, tabIndex, mode);\n\t\t\t}\n\n\t\t\t// create menu item\n\t\t\tif (parent instanceof MenuBar) {\n\t\t\t\tmenuItem = ((MenuBar) parent).addItem(caption, command);\n\t\t\t} else {\n\t\t\t\tmenuItem = ((MenuItem) parent).addItem(caption, command);\n\t\t\t}\n\n\t\t\tif (description != null) {\n\t\t\t\tmenuItem.setDescription(description);\n\t\t\t}\n\n\t\t\t// add the child items\n\t\t\tint index = 1;\n\t\t\tString childKey = messageService.getMessageNoDefault(key + \".\" + index + \".\" + DISPLAY_NAME);\n\n\t\t\twhile (childKey != null) {\n\t\t\t\tconstructMenu(bar, menuItem, key + \".\" + index, navigator);\n\t\t\t\tindex++;\n\t\t\t\tchildKey = messageService.getMessageNoDefault(key + \".\" + index + \".\" + DISPLAY_NAME);\n\t\t\t}\n\n\t\t\tif (checker != null && !checker.isAccessAllowed(destination)) {\n\t\t\t\tmenuItem.setVisible(false);\n\t\t\t}\n\n\t\t}\n\t\treturn menuItem;\n\t}", "title": "" }, { "docid": "29c3e38f77c34efc4dab55c532109a66", "score": "0.6822569", "text": "private void initMenu() {\n popupMenu = new PopupMenu(); // Creates a new popup menu\n exitItem = new MenuItem(\"Exit\");\n downloadsMenu = new Menu(\"Downloads\");\n stopAllMenuItem = new MenuItem(\"Stop All\");\n startAllMenuItem = new MenuItem(\"Start All\");\n optionsMenuItem = new MenuItem(\"Options\");\n\n // Adds items to download manager menu\n downloadsMenu.add(stopAllMenuItem);\n downloadsMenu.add(startAllMenuItem);\n\n // Adds items to popup menu\n popupMenu.add(downloadsMenu);\n popupMenu.addSeparator();\n popupMenu.add(optionsMenuItem);\n popupMenu.addSeparator();\n popupMenu.add(exitItem);\n }", "title": "" }, { "docid": "7a175326b77398aa4f26ec2add97dddd", "score": "0.68122506", "text": "@Override\n\tpublic void createMenu(MenuInflater menuInflater, Menu menu) {\n\n\t}", "title": "" }, { "docid": "28db34b5af12c966929bb283252265d8", "score": "0.6794902", "text": "public JMenuBar makeMenu()\n {\n menuBar = new JMenuBar();\n\n // build the File menu\n JMenu fileMenu = new JMenu(\"File\");\n JMenuItem exportMenuItem = new JMenuItem(\"Change User Load Location\");\n exportMenuItem.addActionListener(this);\n fileMenu.add(exportMenuItem);\n\n JMenu helpMenu = new JMenu(\"Help\");\n JMenuItem userMenuItem = new JMenuItem(\"User Guide\");\n helpMenu.add(userMenuItem);\n userMenuItem.addActionListener(this);\n \n if (USER_PATH.equals(\"\"))\n {\n USER_PATH = new File(System.getProperty(\"user.dir\")).getParent();\n }\n\n // add menus to menubar\n menuBar.add(fileMenu);\n menuBar.add(helpMenu);\n return menuBar;\n }", "title": "" }, { "docid": "4e99feaba41bc6e5653bb13e84ae60c4", "score": "0.6793964", "text": "private void createMenuBar() {\n add(createFileMenu());\n add(createViewMenu());\n add(createToolsMenu());\n add(createHelpMenu());\n }", "title": "" }, { "docid": "b3061943ae5f3cede8f4ebd55a878867", "score": "0.67704093", "text": "private JMenu createToolsMenu() {\n JMenuItem menuItem;\n JMenu menu;\n menu = new JMenu(ResourceManager.translate(\"tools.menu\"));\n menu.setMnemonic(KeyStroke.getKeyStroke(ResourceManager.translate(\"tools.menu.mnem\")).getKeyCode());\n menu.getAccessibleContext().setAccessibleDescription(ResourceManager.translate(\"tools.menu.description\"));\n add(menu);\n\n longMenuItem = new JMenuItem(ResourceManager.translate(\"tools.longrunning\"),\n KeyStroke.getKeyStroke(ResourceManager.translate(\"tools.longrunning.mnem\")).getKeyCode());\n longMenuItem.setIcon(TDA.createImageIcon(\"FindLRThreads.gif\"));\n longMenuItem.setAccelerator(KeyStroke.getKeyStroke(\n KeyEvent.VK_L, ActionEvent.ALT_MASK));\n longMenuItem.getAccessibleContext().setAccessibleDescription(\n \"Find long running threads...\");\n longMenuItem.addActionListener(listener);\n longMenuItem.setEnabled(false);\n menu.add(longMenuItem);\n menu.addSeparator();\n\n menuItem = new JMenuItem(\"Filters\",\n KeyEvent.VK_F);\n menuItem.setIcon(TDA.createImageIcon(\"Filters.gif\"));\n menuItem.setAccelerator(KeyStroke.getKeyStroke(\n KeyEvent.VK_F, ActionEvent.ALT_MASK));\n menuItem.getAccessibleContext().setAccessibleDescription(\n \"Setup Filter\");\n menuItem.addActionListener(listener);\n menu.add(menuItem);\n\n menuItem = new JMenuItem(\"Categories\",\n KeyEvent.VK_F);\n menuItem.setIcon(TDA.createImageIcon(\"CustomCat.gif\"));\n menuItem.setAccelerator(KeyStroke.getKeyStroke(\n KeyEvent.VK_G, ActionEvent.ALT_MASK));\n menuItem.getAccessibleContext().setAccessibleDescription(\n \"Setup Categories\");\n menuItem.addActionListener(listener);\n menu.add(menuItem);\n\n menu.addSeparator();\n\n menuItem = new JMenuItem(ResourceManager.translate(\"file.preferences\"),\n KeyStroke.getKeyStroke(ResourceManager.translate(\"file.preferences.mnem\")).getKeyCode());\n menuItem.setIcon(TDA.createImageIcon(\"Preferences.gif\"));\n menuItem.getAccessibleContext().setAccessibleDescription(\n ResourceManager.translate(\"file.preferences.description\"));\n menuItem.addActionListener(listener);\n menu.add(menuItem);\n \n /*menu.addSeparator();\n \n menuItem = new JMenuItem(\"Load Configuration Set...\",\n KeyEvent.VK_F);\n menuItem.setIcon(TDA.createImageIcon(\"Empty.gif\"));\n menuItem.getAccessibleContext().setAccessibleDescription(\n \"Load Configuration Set\");\n menuItem.addActionListener(listener);\n menu.add(menuItem);*/\n return (menu);\n }", "title": "" }, { "docid": "232bcf1c1802bbf1e992feae51d6cd5f", "score": "0.6767355", "text": "private void setupMenuItem(){\n // Create Home Menu\n FragmentMenu home = new FragmentMenu(\n new FragmentHome(),\n \"Dashboard\",\n R.drawable.ic_dashboard_grey\n );\n navMenuList.add(home);\n\n // Recycerlview\n FragmentMenu recycler = new FragmentMenu(\n new FragmentSaklar(),\n \"Saklar Lampu\",\n R.drawable.ic_cached_grey,\n \"Semua Saklar Lampu\"\n );\n\n navMenuList.add(recycler);\n\n // Create About menu\n FragmentMenu about = new FragmentMenu(\n new FragmentAbout(),\n \"About\",\n R.drawable.ic_info_grey,\n \"About Us\"\n );\n navMenuList.add(about);\n }", "title": "" }, { "docid": "ba4e907c0cdb2af036fe5534285e6ea9", "score": "0.6758674", "text": "public void createMenu()\n\t{\n\t\tmenuBar = new JMenuBar();\n\n\t\t//Build the first menu.\n\t\tmenu = new JMenu(\"Voting Menu\");\n\t\tmenu.setMnemonic(KeyEvent.VK_A); //Allows for hotkey access, Alt+a\n\t\tmenuBar.add(menu); //Add to menu bar\n\n\t\t//Create the menu bar.\n\t\tSystem.out.println(\"here4\");\n\t\t\n\t\t\n\t\t//Build the first menu.\n\t\t\n\t\tmenuItem = new JMenuItem(\"Click Here to vote for Lebron James\");\n\t\tmenu.add(menuItem);\n\n\t\t//a group of radio button menu items\n\t\tmenu.addSeparator();\n\t\t\n\t\tmenuItem1 = new JMenuItem(\"Click Here to vote for Billy Mayz\");\n\t\tmenu.add(menuItem1);\n\n\t\t//a group of radio button menu items\n\t\tmenu.addSeparator();\n\t\t\n\t\tmenuItem2 = new JMenuItem(\"Click Here to vote for Aaron Burr\");\n\t\tmenu.add(menuItem2);\n\n\t\t//a group of radio button menu items\n\t\tmenu.addSeparator();\n\t\t\n\t\tmenuItem3 = new JMenuItem(\"Click Here to vote for Tupac\");\n\t\tmenu.add(menuItem3);\n\n\t\t//a group of radio button menu items\n\t\tmenu.addSeparator();\n\t\t\n\t\t\n\t\t\n\n\t\t\t\n\t\t\n\t\t//a group of check box menu items\n\t\t\n\n\t\tframe.setJMenuBar(menuBar);\n\t\t\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t\t\n\t\t\n\t\n\t\t\n\t\t\n\t\t\n\t\t}", "title": "" }, { "docid": "3748609b35859a0d5ff8c5850a292f56", "score": "0.6747695", "text": "private void buildChildMenus() {\n int i;\n ChildMenuItem menu;\n JInternalFrame[] array = desktop.getAllFrames();\n\n add(cascade);\n add(tile);\n if (app.getConfigurationManager().getConfiguration() != null) {\n add(prefs);\n }\n if (array.length > 0)\n addSeparator();\n cascade.setEnabled(array.length > 0);\n tile.setEnabled(array.length > 0);\n\n for (i = 0; i < array.length; i++) {\n menu = new ChildMenuItem(array[i]);\n menu.setState(i == 0);\n menu.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n JInternalFrame frame = ((ChildMenuItem) ae.getSource()).getFrame();\n frame.moveToFront();\n try {\n frame.setSelected(true);\n } catch (PropertyVetoException e) {\n e.printStackTrace();\n }\n }\n });\n menu.setIcon(array[i].getFrameIcon());\n add(menu);\n }\n }", "title": "" }, { "docid": "c3d9bb6f63f8a9b767c6e7ebeef77775", "score": "0.6745433", "text": "public static void generateMenuItem(Menu menu){\n menu.addItem(new MenuItem(\"Chicken Sandwich\", Menu.MAIN_DISH, Menu.NOT_HEART_HEALTHY, 10.95));\n menu.addItem(new MenuItem(\"Rib eye Steak\", Menu.MAIN_DISH, Menu.NOT_HEART_HEALTHY, 19.95));\n menu.addItem(new MenuItem(\"Fries\", Menu.APPETIZERS, Menu.NOT_HEART_HEALTHY, 3.00));\n menu.addItem(new MenuItem(\"Vegetable salad\", Menu.APPETIZERS, Menu.HEART_HEALTHY, 4.00));\n menu.addItem(new MenuItem(\"Ice cream\", Menu.DESSERT, Menu.NOT_HEART_HEALTHY, 3.00));\n }", "title": "" }, { "docid": "178a5ef647ed0f59e3584b0d3caa4d8e", "score": "0.6738128", "text": "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n private void createMenuItems(Menubar parentNya, final Cmenu cmenuNya) {\n Menuitem menuItemNya = new Menuitem(cmenuNya.getCmenuLabel());\n if (cmenuNya.getCmenuSrc().equals(\"/\") == false) {\n menuItemNya.addEventListener(\"onClick\", new EventListener() {\n @Override\n public void onEvent(Event event) throws Exception {\n //Merujuk ke @Command doCreateTab()\n doCreateTab(cmenuNya.getCmenuId(), cmenuNya.getCmenuSrc(), cmenuNya.getCmenuLabel(), cmenuNya.getCmenuCloseable());\n }\n });\n }\n parentNya.appendChild(menuItemNya);\n }", "title": "" }, { "docid": "3744600ce55949a4b9737a843072251c", "score": "0.67292506", "text": "@FXML\n public void createMenuItem() {\n String name = menuItemName.getText();\n String priceString = menuItemPrice.getText();\n Menu menu = menuItemMenu.getSelectionModel().getSelectedItem();\n String category = menuItemCategory.getSelectionModel().getSelectedItem();\n\n if (menu != null && name != null && priceString != null && category != null && selectedAddOns.size() != 0) {\n Double price = Double.parseDouble(priceString);\n MenuItem menuItem = new MenuItem(name, price);\n// menuItem.setIngredients(selectedAddOns);\n for (Ingredient ingredient: selectedAddOns.keySet()) {\n menuItem.addIngredients(ingredient, selectedAddOns.get(ingredient));\n }\n menu.addMenuItem(menuItem, category);\n menuItemMenu.getSelectionModel().clearSelection();\n menuItemName.clear();\n menuItemPrice.clear();\n menuItemCategory.getSelectionModel().clearSelection();\n selectedAddOns.clear();\n updateTableView();\n } else {\n String text = \"You have not entered in all the required information. \" +\n \"Please make sure all fields are completed.\";\n Alert.showErrorAlert(text);\n }\n\n }", "title": "" }, { "docid": "7ea00c01859c74261f22700f4ddac913", "score": "0.6677102", "text": "public JMenuBar createMenus() {\n final JMenuBar bar = new JMenuBar();\n\n JMenu fileMenu = new JMenu(I18nSupport.translate(\"menus.file\"));\n fileMenu.add(new OpenAction(panel, SpeleoFileReader.class));\n fileMenu.add(new SaveAction(panel));\n JMenu importMenu = new JMenu(I18nSupport.translate(\"menus.import\"));\n importMenu.add(new OpenAction(panel, ReefnetFileReader.class));\n importMenu.add(new OpenAction(panel, HoboFileReader.class));\n importMenu.add(new OpenAction(panel, WundergroundFileReader.class));\n importMenu.addSeparator();\n importMenu.add(new ImportAction(panel));\n fileMenu.add(importMenu);\n fileMenu.add(((GraphPanel) getSplitPane().getLeftComponent()).saveImageAction);\n fileMenu.addSeparator();\n fileMenu.add(new QuitAction(panel, this));\n bar.add(fileMenu);\n\n bar.add(new EditMenu());\n\n {\n JMenu menu = new JMenu(I18nSupport.translate(\"menus.graph\"));\n\n menu.add(new AbstractAction() {\n final GraphEditor editor = new GraphEditor((GraphPanel) getSplitPane().getLeftComponent());\n\n @Override\n public void actionPerformed(ActionEvent e) {\n editor.setLocation(\n SpeleoGraphApp.this.getX() + (SpeleoGraphApp.this.getWidth() / 2 - editor.getWidth() / 2),\n SpeleoGraphApp.this.getY() + (SpeleoGraphApp.this.getHeight() / 2 - editor.getHeight() / 2)\n );\n editor.setVisible(true);\n }\n\n {\n putValue(NAME, I18nSupport.translate(\"menus.graph.graphEditor\"));\n }\n });\n menu.add(new ResetAxisAction((GraphPanel) getSplitPane().getLeftComponent()));\n\n bar.add(menu);\n }\n\n {\n final JMenu menu = seriesMenu.getMenu();\n menu.setVisible(false);\n bar.add(menu);\n }\n\n {\n JMenu menu = new JMenu(I18nSupport.translate(\"menus.help\"));\n menu.add(new AbstractAction() {\n\n {\n putValue(NAME, I18nSupport.translate(\"menus.help.about\"));\n }\n\n @Override\n public void actionPerformed(ActionEvent e) {\n JOptionPane.showMessageDialog(SpeleoGraphApp.this,\n new About(APP_NAME, APP_VERSION, AUTHORS, CONTACT, \"http://speleograph.free.fr\",\n I18nSupport.translate(\"menus.help.about.disclaimer\"),\n new ImageIcon(SpeleoGraphApp.class.getResource(\"SpeleoGraph_icon.png\")),\n new ImageIcon(SpeleoGraphApp.class.getResource(\"CDS06_icon.png\"))),\n I18nSupport.translate(\"menus.help.about\"), JOptionPane.INFORMATION_MESSAGE, new ImageIcon());\n }\n });\n bar.add(menu);\n }\n\n return bar;\n }", "title": "" }, { "docid": "6995908fd93bc40cb43f4c3bd13c6e54", "score": "0.6673672", "text": "private void buildPlanMenu() {\r\n package1Item = new JRadioButtonMenuItem(\"Package 1\");\r\n package1Item.setMnemonic(KeyEvent.VK_1);\r\n package1Item.setToolTipText(\"300 minute per month $45.00 per month\");\r\n package1Item.addActionListener(new packageListener());\r\n\r\n KeyStroke keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_1, KeyEvent.ALT_DOWN_MASK);\r\n package1Item.setAccelerator(keyStroke);\r\n /**\r\n * Package 2\r\n */\r\n package2Item = new JRadioButtonMenuItem(\"Package 2\");\r\n package2Item.setMnemonic(KeyEvent.VK_2);\r\n package2Item.setToolTipText(\"800 minute per month $65.00 per month\");\r\n package2Item.addActionListener(new packageListener());\r\n\r\n keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_2, KeyEvent.ALT_DOWN_MASK);\r\n package2Item.setAccelerator(keyStroke);\r\n /**\r\n * Package 3\r\n */\r\n package3Item = new JRadioButtonMenuItem(\"Package 3\");\r\n package3Item.setMnemonic(KeyEvent.VK_3);\r\n package3Item.setToolTipText(\"1500 minute per month $99.00 per month\");\r\n package3Item.addActionListener(new packageListener());\r\n\r\n keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_3, KeyEvent.ALT_DOWN_MASK);\r\n package3Item.setAccelerator(keyStroke);\r\n\r\n planMenu = new JMenu(\"Plans\");\r\n\r\n //add to menu\r\n planMenu.add(package1Item);\r\n planMenu.add(package2Item);\r\n planMenu.add(package3Item);\r\n }", "title": "" }, { "docid": "64bbdd582f4bb7a3a1d239933563b62a", "score": "0.6664502", "text": "private void createMenuBar() {\r\n final JMenuBar menuBar = new JMenuBar();\r\n final String[] menuNames = new String[] {FILE_STRING, OPTION_STRING, \r\n TOOL_STRING, HELP_STRING};\r\n for (String s : menuNames) {\r\n final JMenu menu = new JMenu(s);\r\n menu.setMnemonic(s.charAt(0));\r\n menuBar.add(menu);\r\n createSubMenu(menu);\r\n }\r\n MY_FRAME.setJMenuBar(menuBar); \r\n }", "title": "" }, { "docid": "31d8fe53050d3b923016939b9f1f3f7a", "score": "0.6658336", "text": "public void createMenu() {\n Menu menu = new Menu( shell, SWT.BAR );\n\n // first menu is the \"Protocol\" menu.\n MenuItem repositoryItem = new MenuItem( menu, SWT.CASCADE );\n repositoryItem.setText( \"Repository\" );\n Menu protocolMenu = new Menu( menu );\n repositoryItem.setMenu( protocolMenu );\n\n // New repository\n newItem = new MenuItem( protocolMenu, SWT.NONE );\n newItem.setText( \"&New\\tCtrl+N\" );\n newItem.setAccelerator( SWT.MOD1 + 'N' );\n\n // Open local repository\n openItem = new MenuItem( protocolMenu, SWT.NONE );\n openItem.setText( \"&Open Local\\tCtrl+O\" );\n openItem.setAccelerator( SWT.MOD1 + 'O' );\n\n // Open remote repository\n remoteItem = new MenuItem( protocolMenu, SWT.NONE );\n remoteItem.setText( \"Open &Remote\\tCtrl+R\" );\n remoteItem.setAccelerator( SWT.MOD1 + 'R' );\n\n recentItem = new MenuItem( protocolMenu, SWT.CASCADE );\n recentItem.setText( \"Open Recen&t\\tCtrl+T\" );\n recentItem.setAccelerator( SWT.MOD1 + 'T' );\n\n makeRecentMenu();\n\n // Save open protocol\n // saveItem = new MenuItem( protocolMenu, SWT.NONE );\n // saveItem.setText( \"&Save\\tCtrl+S\" );\n // saveItem.setAccelerator( SWT.MOD1 + 'S' );\n // saveItem.addSelectionListener( ml );\n\n // Save as a different file\n // asItem = new MenuItem( protocolMenu, SWT.NONE );\n // asItem.setText( \"Save &As\\tCtrl+A\" );\n // asItem.setAccelerator( SWT.MOD1 + 'A' );\n // asItem.addSelectionListener( ml );\n\n exportItem = new MenuItem( protocolMenu, SWT.NONE );\n exportItem.setText( \"&Export\\tCtrl+E\" );\n exportItem.setAccelerator( SWT.MOD1 + 'E' );\n\n // Don't show Quit option on Macs\n if ( !SWT.getPlatform().equals( \"cocoa\" ) ) {\n\n // Line before the Quit option\n new MenuItem( protocolMenu, SWT.SEPARATOR );\n\n // Quit the editor\n quitItem = new MenuItem( protocolMenu, SWT.NONE );\n quitItem.setText( \"&Quit\\tCtrl+Q\" );\n quitItem.setAccelerator( SWT.MOD1 + 'Q' );\n }\n\n attachListener( menu );\n\n // add the menu to the window\n shell.setMenuBar( menu );\n\n }", "title": "" }, { "docid": "6296e07b9fe700302136137fde3583ed", "score": "0.66540915", "text": "private void makeMenu() {\n\t\tMenuBar bar = new MenuBar();\n\t\t\n\t\tMenu start = new Menu(\"Start Sort\");\n\t\t\n\t\tMenuItem bubble = new MenuItem(\"Bubble Sort\");\n\t\tbubble.addActionListener(e -> start(new BubbleSort<Integer>()));\n\t\tMenuItem heap = new MenuItem(\"Heap Sort\");\n\t\theap.addActionListener(e -> start(new HeapSort<Integer>()));\n\t\tMenuItem insert = new MenuItem(\"Insertion Sort\");\n\t\tinsert.addActionListener(e -> start(new InsertionSort<Integer>()));\n\t\tMenuItem select = new MenuItem(\"Selection Sort\");\n\t\tselect.addActionListener(e -> start(new SelectionSort<Integer>()));\n\t\tMenuItem shell = new MenuItem(\"Shell Sort\");\n\t\tshell.addActionListener(e -> start(new ShellSort<Integer>()));\n\t\tMenuItem quick = new MenuItem(\"Quick Sort\");\n\t\tquick.addActionListener(e -> start(new QuickSort<Integer>(quickRand)));\n\t\t\n\t\tstart.add(bubble);\n\t\tstart.add(heap);\n\t\tstart.add(insert);\n\t\tstart.add(select);\n\t\tstart.add(shell);\n\t\tstart.add(quick);\n\t\t\n\t\tMenu settings = new Menu(\"Settings\");\n\t\tMenuItem size = new MenuItem(\"Change Size\");\n\t\tCheckboxMenuItem quickRandom = new CheckboxMenuItem(\"Random Left-Right Selection in QuickSort\");\n\t\tquickRandom.addItemListener(l -> quickRand = !quickRand);\n\t\tsize.addActionListener(e -> changeSize());\n\t\t\n\t\tMenu plotSettings = new Menu(\"Plot Settings\");\n\t\tCheckboxMenuItem barPlot = new CheckboxMenuItem(\"Bar Plot\", true);\n\t\tCheckboxMenuItem dotPlot = new CheckboxMenuItem(\"Dot Plot\", false);\n\t\t//barPlot.addItemListener(l -> changePlotType(barPlot, dotPlot));\n\t\tbarPlot.addItemListener(l -> {dotPlot.setState(!dotPlot.getState()); vizulizer.repaint(true);});\n\t\tdotPlot.addItemListener(l -> {barPlot.setState(!dotPlot.getState()); vizulizer.repaint(false);});\n\t\tplotSettings.add(barPlot);\n\t\tplotSettings.add(dotPlot);\n\t\tsettings.add(plotSettings);\n\t\t\n\t\tsettings.add(size);\n\t\tsettings.add(quickRandom);\n\t\t\t\t\n\t\tbar.add(start);\n\t\tbar.add(settings);\n\t\t\n\t\troot.setMenuBar(bar);\n\t}", "title": "" }, { "docid": "417c2e0d869e8e4d34e9270d9673e6a7", "score": "0.6639472", "text": "public abstract void createMenus();", "title": "" }, { "docid": "5e25fc90148db42f9ad6262b71c7289a", "score": "0.66151893", "text": "private JMenuBar createJMenuBar() {\n JMenuItem qrFactorizationMethod = new JMenuItem(\"QR Factorization\");\n qrFactorizationMethod.addActionListener(this);\n JMenuItem modifiedGaussNewtonMethod = new JMenuItem(\"Modified Gauss Newton Method\");\n modifiedGaussNewtonMethod.addActionListener(this);\n JMenuItem powerMethod = new JMenuItem(\"Power Method\");\n powerMethod.addActionListener(this);\n JMenuItem graphPowerMethod = new JMenuItem(\"Graph Power Method\");\n graphPowerMethod.addActionListener(this);\n JMenuItem animation = new JMenuItem(\"Animation\");\n animation.addActionListener(this);\n \n JMenu taskMenu = new JMenu(\"Task\");\n taskMenu.add(qrFactorizationMethod);\n taskMenu.add(modifiedGaussNewtonMethod);\n taskMenu.add(powerMethod);\n taskMenu.add(graphPowerMethod);\n taskMenu.add(animation);\n \n JButton homeButton = new JButton(\"Home\");\n homeButton.addActionListener(this);\n JButton aboutButton = new JButton(\"About\");\n aboutButton.addActionListener(this);\n \n JMenuBar menuBar = new JMenuBar();\n menuBar.add(homeButton);\n menuBar.add(aboutButton);\n menuBar.add(taskMenu);\n return menuBar;\n }", "title": "" }, { "docid": "30720d6bd8e105acf11474565f6885b2", "score": "0.66134405", "text": "private void createCustomerMenu() {\n\n customerMenu = new JMenu(\"Customers\"); //creating customers\n\n aCustomers = new JMenuItem(\"Add Customer\");\n aCustomers.addActionListener(this);\n customerMenu.add(aCustomers);\n\n eCustomers = new JMenuItem(\"Edit Customer\");\n eCustomers.addActionListener(this);\n customerMenu.add(eCustomers);\n\n rCustomers = new JMenuItem(\"Remove Customer\");\n rCustomers.addActionListener(this);\n customerMenu.add(rCustomers);\n\n sCustomers = new JMenuItem(\"Search Customers\");\n sCustomers.addActionListener(this);\n customerMenu.add(sCustomers);\n }", "title": "" }, { "docid": "2eeef3c6910714b76b2f6a6f7d57b165", "score": "0.661138", "text": "private void setupMenu() {\n JMenuBar menuBar = new JMenuBar();\n\n // add file to menu\n JMenu file = new JMenu(\"File\");\n JMenuItem menuItem;\n\n // New Codewords\n menuItem = new JMenuItem(\"New: Codewords Game (2 Teams)\");\n menuItem.addActionListener(new GameHandler(this, Games.Codenames2Teams));\n file.add(menuItem);\n\n // New Codewords3Teams\n menuItem = new JMenuItem(\"New: Codewords Game (3 Teams)\");\n menuItem.addActionListener(new GameHandler(this, Games.Codenames3Teams));\n file.add(menuItem);\n\n // New TicTacToe\n menuItem = new JMenuItem(\"New: Tic Tac Toe Game\");\n menuItem.addActionListener(new GameHandler(this, Games.TicTacToe));\n file.add(menuItem);\n\n // Separate games options from exit\n file.addSeparator();\n\n // Close the window\n menuItem = new JMenuItem(\"Exit\");\n menuItem.addActionListener(new WindowCloseHandler(_window));\n file.add(menuItem);\n\n menuBar.add(file);\n _window.setJMenuBar(menuBar);\n\n }", "title": "" }, { "docid": "daec951302d4d93c4781d45e835a1084", "score": "0.65779877", "text": "private void addMenu(){\r\n\t\tmFile = new JMenu(\"File\");\r\n\t\tmOpen = new JMenuItem(\"Open scenery\");\r\n\t\tmOpen.addActionListener(this);\r\n\t\tmFile.add(mOpen);\r\n\r\n\t\tmReport = new JMenu(\"Reports\");\r\n\t\tmLink = new JMenuItem(\"Links Analysis Report\");\r\n\t\t\r\n\t\tif(project.getNoC().getType().equals(\"HermesG\"))\r\n\t\t{\r\n\t\t\tmLink.setEnabled(false);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tif(!scenery.isInternalSimulation())\r\n\t\t\tmLink.setEnabled(false);\r\n\t\t}\t\r\n\t\tmLink.addActionListener(this);\r\n\t\tmReport.add(mLink);\r\n\t\tmLatency = new JMenuItem(\"Latency Analysis Report\");\r\n\t\tmLatency.addActionListener(this);\r\n\t\tmReport.add(mLatency);\r\n\t\tmGlobal = new JMenuItem(\"Global Report\");\r\n\t\tmGlobal.addActionListener(this);\r\n\t\tmReport.add(mGlobal);\r\n\r\n\t\tmHelp = new JMenu(\"Help\");\r\n\t\tdocumentation = new JMenuItem(\"Documentation\");\r\n\t\tdocumentation.addActionListener(this);\r\n\t\tmHelp.add(documentation);\r\n\t\tabout = new JMenuItem(\"About Traffic Measurer\");\r\n\t\tabout.addActionListener(this);\r\n\t\tmHelp.add(about);\r\n\r\n\t\tmenubar = new JMenuBar();\r\n\t\tmenubar.add(mFile);\r\n\t\tmenubar.add(mReport);\r\n\t\tmenubar.add(mHelp);\r\n\r\n\t\tsetJMenuBar(menubar);\r\n\t}", "title": "" }, { "docid": "26ea821fae2eab89c4a2e5dc9bcfe3a9", "score": "0.6572038", "text": "@Override\n\tprotected MenuManager createMenuManager() {\n\t\tMenuManager mainMenu = new MenuManager();\n\t\tMenuManager fileMenu = new MenuManager(\"File\");\n\t\tfileMenu.add(_exitAction);\n\n\t\tMenuManager editMenu = new MenuManager(\"Edit\");\n\n\t\tMenuManager configMenu = new MenuManager(\"Setting\");\n\t\tConfigAction configAction = new ConfigAction() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tConfigDialog configDialog = getConfigDialog();\n\t\t\t\tconfigDialog.create();\n\t\t\t\tconfigDialog.open();\n\t\t\t}\n\t\t};\n\t\tconfigAction.setImageDescriptor(ResourceManager.getImageDescriptor(\n\t\t\t\tApplicationUI.class, \"/resources/icons/macro_instance.png\"));\n\n\t\tconfigMenu.add(configAction);\n\n\t\tMenuManager helpMenu = new MenuManager(\"Help\");\n\t\tmainMenu.add(fileMenu);\n\t\tmainMenu.add(editMenu);\n\t\tmainMenu.add(configMenu);\n\t\tmainMenu.add(helpMenu);\n\t\treturn mainMenu;\n\t}", "title": "" }, { "docid": "e4af86b167de229cd453873e5f820026", "score": "0.6563964", "text": "private Menu()\n {\n items = new HashMap<String, Item>();\n // Add default items in this menu.\n setItemOfTheDay(itemOfTheDay);\n addItem(new ItemAppetizer(\"Guacamole\", 3.00));\n addItem(new ItemDessert(\"Cake\", 11.00));\n addItem(new ItemDrink(\"Beer\", 6.00, true));\n addItem(new ItemMainCourse(\"Giant Lobster\", 30.00));\n }", "title": "" }, { "docid": "b9ddc4fd2b8641e8007b764589da40bc", "score": "0.65451014", "text": "@Override\r\n\tprotected MenuManager createMenuManager() { //add menu\r\n\t\tMenuManager menuManager = new MenuManager(\"menu\");\r\n\t\tMenuManager mainManager = new MenuManager(\"File\");\r\n\t\r\n\t\tmenuManager.add(mainManager);\r\n\t\tAboutAction aboutAction = new AboutAction();\r\n\t\taboutAction.setToolTipText(\"About hSDBTool\");\r\n\t\tmainManager.add(aboutAction);\r\n\t\tmainManager.add(new Separator());\r\n\t\tPreferenceAction preferenceAction = new PreferenceAction();\r\n\t\tpreferenceAction.setToolTipText(\"Set profile\");\r\n\t\tmainManager.add(preferenceAction);\r\n\t\t\r\n\t\tmenuManager.addMenuListener(new IMenuListener() {\r\n\t\t\tpublic void menuAboutToShow(IMenuManager manager) {\r\n\t\t\t}\r\n\t\t});\r\n\t\treturn menuManager;\r\n\t}", "title": "" }, { "docid": "17cddb6f41163d2dfee5921762a04ba3", "score": "0.6540425", "text": "private JMenuItem buildColorMenu(final ColorChooserAction theColorAction) {\n final JMenuItem chooseColorItem = new JMenuItem(theColorAction);\n return chooseColorItem;\n }", "title": "" }, { "docid": "5e0f14adfd121d3c00a1ba2cdad3376a", "score": "0.6533243", "text": "private void menuButton() {\n // Builds the menu option and their mnemonic keys\n myFileMenu = new JMenu(\"File\");\n myFileMenu.setMnemonic(KeyEvent.VK_F);\n fileMenuItem();\n myOptionMenu = new JMenu(\"Options\");\n myOptionMenu.setMnemonic(KeyEvent.VK_O);\n optionMenuItem();\n \n myToolMenu = new JMenu(\"Tools\");\n myToolMenu.setMnemonic(KeyEvent.VK_T);\n toolMenuItem();\n final JMenu helpMenu = new JMenu(\"Help\");\n helpMenu.setMnemonic(KeyEvent.VK_H);\n helpMenu.add(aboutMenuItem());\n \n // Adds the menu to the menu bar.\n add(myFileMenu);\n add(myOptionMenu);\n add(myToolMenu);\n add(helpMenu); \n }", "title": "" }, { "docid": "99ac3d0f75476ef6133a489f87ad6e07", "score": "0.65061057", "text": "private void buildDemo1() {\n final String[] menuItems = { \"Row 1\", \"Row 2\", \"Row 3\" };\n final Menu menu = new Menu();\n for (String menuItemText : menuItems) {\n MenuItem menuItem = new MenuItem(menuItemText);\n menuItem.setOnAction(e -> System.out.println(menuItemText + \" was clicked!\"));\n menu.getItems().add(menuItem);\n }\n \n // demo one is a menu that appears where the button is located\n Button inPlaceMenuBtn = new Button(\"Show Menu\");\n final MenuPopupView menuPopupView = new MenuPopupView(inPlaceMenuBtn, menu);\n inPlaceMenuBtn.setOnAction(e -> menuPopupView.show());\n \n buttonPanel.getChildren().add(inPlaceMenuBtn);\n }", "title": "" }, { "docid": "39938ae1fadbe996cb98f212bd5493fd", "score": "0.65001184", "text": "private void buildLoggingMenu(JMenu loggingMenu) {\r\n loggingMenu.removeAll();\r\n // check box to turn logging on/off\r\n JMenuItem loggingState = new JMenuItem();\r\n loggingState.setText(TetradLogger.getInstance().isLogging() ? \"Turn Logging Off\" : \"Turn Logging On\");\r\n //check box to set whether logging should be displayed or not\r\n JMenuItem displayLogging = new JMenuItem();\r\n displayLogging.setText(desktop.isDisplayLogging() ? \"Close Log Display\" : \"Open Log Display\");\r\n\r\n loggingMenu.add(new SetupLoggingAction());\r\n loggingMenu.addSeparator();\r\n loggingMenu.add(displayLogging);\r\n loggingMenu.add(loggingState);\r\n\r\n\r\n displayLogging.addActionListener(new ActionListener() {\r\n @Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n JMenuItem item = (JMenuItem) e.getSource();\r\n String text = item.getText();\r\n boolean logging = text.contains(\"Open\");\r\n desktop.setDisplayLogging(logging);\r\n item.setText(logging ? \"Close Log Display\" : \"Open Log Display\");\r\n }\r\n });\r\n\r\n\r\n loggingState.addActionListener(new ActionListener() {\r\n @Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n JMenuItem item = (JMenuItem) e.getSource();\r\n String text = item.getText();\r\n TetradLogger.getInstance().setLogging(text.contains(\"On\"));\r\n item.setText(TetradLogger.getInstance().isLogging() ? \"Turn Logging Off\" : \"Turn Logging On\");\r\n }\r\n });\r\n }", "title": "" }, { "docid": "a73c455478c44df68d18a5253935020c", "score": "0.6492421", "text": "protected void buildView()\n {\n add(new JSmartMenuItem(new CopyAction(list_)));\n add(new JSmartMenuItem(new SelectAllAction(list_)));\n list_.addMouseListener(new JPopupListener(this));\n }", "title": "" }, { "docid": "f72fbf43bdf11eda198934beb0b05a00", "score": "0.64838785", "text": "Menu create(Menu menu);", "title": "" }, { "docid": "09219167f69eb13697746c28e2c14087", "score": "0.6483287", "text": "private void createMenu(){\n final JMenu file = new JMenu(\"File\");\n file.addSeparator();\n JMenuItem exit = file.add(new JMenuItem(\"exit\"));\n exit.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n int option = JOptionPane.showConfirmDialog(null, \"exit\", \"choose\", JOptionPane.YES_NO_OPTION);\n if(option == JOptionPane.YES_OPTION){\n System.exit(0);\n }\n }\n });\n file.add(exit);\n final JMenuBar menuBar = new JMenuBar();\n menuBar.add(file);\n this.setJMenuBar(menuBar);\n }", "title": "" }, { "docid": "0d273819dbfa0a6f3c929d548b37eabd", "score": "0.6482115", "text": "private void createToolMenu(final JMenu the_menu) {\r\n final JMenuItem color = new JMenuItem(COLOR_CHOOSER);\r\n the_menu.add(color);\r\n the_menu.addSeparator();\r\n for (Action t : MY_TOOLS) {\r\n final JRadioButton item = new JRadioButton(t);\r\n myToolGroup.add(item);\r\n the_menu.add(item);\r\n }\r\n }", "title": "" }, { "docid": "460993c1d3b2c4aa5830eb29a93662ae", "score": "0.64784116", "text": "void createMenuBar() {\n JMenuBar menuBar = new JMenuBar();\n\n JMenu fileMenu = new JMenu(\"File\");\n fileMenu.setMnemonic(KeyEvent.VK_F);\n menuBar.add(fileMenu);\n\n JMenu analysisMenu = new JMenu(\"Analysis\");\n analysisMenu.setMnemonic(KeyEvent.VK_A);\n menuBar.add(analysisMenu);\n\n JMenu helpMenu = new JMenu(\"Help\");\n helpMenu.setMnemonic(KeyEvent.VK_H);\n menuBar.add(helpMenu);\n\n // Add menuItems to File\n\n JMenuItem newProjectMenuItem = new JMenuItem(\"New Project\", KeyEvent.VK_N);\n newProjectMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N, InputEvent.CTRL_DOWN_MASK));\n newProjectMenuItem.setFont(sharedInformation.getOkButtonFont());\n fileMenu.add(newProjectMenuItem);\n JMenuItem openProjectMenuItem = new JMenuItem(\"Open Project\", KeyEvent.VK_O);\n openProjectMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O, InputEvent.CTRL_DOWN_MASK));\n openProjectMenuItem.setFont(sharedInformation.getOkButtonFont());\n fileMenu.add(openProjectMenuItem);\n JMenuItem saveProjectMenuItem = new JMenuItem(\"Save Project\", KeyEvent.VK_S);\n saveProjectMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S, InputEvent.CTRL_DOWN_MASK));\n saveProjectMenuItem.setFont(sharedInformation.getOkButtonFont());\n fileMenu.add(saveProjectMenuItem);\n fileMenu.addSeparator();\n\n\n JMenuItem openMenuItem = new JMenuItem(\"Open\");\n openMenuItem.setFont(sharedInformation.getOkButtonFont());\n fileMenu.add(openMenuItem);\n genotypeFileMenuItem = new JMenuItem(\"Genotype file\", KeyEvent.VK_G);\n genotypeFileMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_G, InputEvent.CTRL_DOWN_MASK));\n genotypeFileMenuItem.setFont(sharedInformation.getOkButtonFont());\n fileMenu.add(genotypeFileMenuItem);\n\n phenotypeFileMenuItem = new JMenuItem(\"Phenotype file\", KeyEvent.VK_P);\n phenotypeFileMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_P, InputEvent.CTRL_DOWN_MASK));\n phenotypeFileMenuItem.setFont(sharedInformation.getOkButtonFont());\n fileMenu.add(phenotypeFileMenuItem);\n JMenuItem saveFilMenuItem = new JMenuItem(\"Save As\", KeyEvent.VK_S);\n saveFilMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S, InputEvent.ALT_DOWN_MASK));\n saveFilMenuItem.setFont(sharedInformation.getOkButtonFont());\n fileMenu.add(saveFilMenuItem);\n fileMenu.addSeparator();\n\n JMenuItem exitMenuItem = new JMenuItem(\"Exit\", KeyEvent.VK_E);\n exitMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_E, InputEvent.CTRL_DOWN_MASK));\n exitMenuItem.setFont(sharedInformation.getOkButtonFont());\n fileMenu.add(exitMenuItem);\n\n //Add menuItems to Analysis\n JMenuItem dataSummaryMenuItem = new JMenuItem(\"Data Summary\", KeyEvent.VK_D);\n dataSummaryMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_D, InputEvent.ALT_DOWN_MASK));\n dataSummaryMenuItem.setFont(sharedInformation.getOkButtonFont());\n analysisMenu.add(dataSummaryMenuItem);\n analysisMenu.addSeparator();\n JMenuItem genomicSelectionMenuItem = new JMenuItem(\"Genomic Selection\", KeyEvent.VK_G);\n genomicSelectionMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_G, InputEvent.ALT_DOWN_MASK));\n genomicSelectionMenuItem.setFont(sharedInformation.getOkButtonFont());\n analysisMenu.add(genomicSelectionMenuItem);\n\n //Add menuItems to Help\n JMenuItem manualMenuItem = new JMenuItem(\"User Manual\", KeyEvent.VK_U);\n manualMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_U, InputEvent.ALT_DOWN_MASK));\n manualMenuItem.setFont(sharedInformation.getOkButtonFont());\n helpMenu.add(manualMenuItem);\n helpMenu.addSeparator();\n JMenuItem aboutMenuItem = new JMenuItem(\"About\", KeyEvent.VK_A);\n aboutMenuItem.setFont(sharedInformation.getOkButtonFont());\n helpMenu.add(aboutMenuItem);\n\n sharedInformation.getMainFrame().setJMenuBar(menuBar);\n genomicSelectionMenuItem.addActionListener(e -> mainFrameActionListeners.analysisActionItem(e));\n genotypeFileMenuItem.addActionListener(e -> mainFrameActionListeners.selectGenotypeFileActionItem(e));\n phenotypeFileMenuItem.addActionListener(e -> mainFrameActionListeners.selectPhenotypeFileActionItem(e));\n saveFilMenuItem.addActionListener(e -> mainFrameActionListeners.saveAsActionItem(e));\n newProjectMenuItem.addActionListener(e -> mainFrameActionListeners.newProjectActionItem(e));\n openProjectMenuItem.addActionListener(e -> mainFrameActionListeners.openProjectActionItem(e));\n saveProjectMenuItem.addActionListener(e -> mainFrameActionListeners.saveProjectActionItem(e));\n exitMenuItem.addActionListener(e -> mainFrameActionListeners.exitApplicationActionItem(e));\n dataSummaryMenuItem.addActionListener(e -> mainFrameActionListeners.dataSummaryActionItem(e));\n aboutMenuItem.addActionListener(e -> aboutDialog.setVisible(true));\n }", "title": "" }, { "docid": "0e6dfe60fec04d8ffc063e9f80c7c7f3", "score": "0.6463297", "text": "public void buildMetamenu(JMenu menu)\n\t\t{\n\t\tJMenuItem miSaveColorScheme=new JMenuItem(\"Save color scheme\"); \n\t\tJMenuItem miLoadColorScheme=new JMenuItem(\"Load color scheme\"); \n\t\tmenu.add(miSaveColorScheme);\n\t\tmenu.add(miLoadColorScheme);\n\t\t\n\t\tfinal NucLineage nthis=this;\n\t\tmiSaveColorScheme.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e){nthis.saveColorSchemeDialog(null);}\n\t\t});\n\t\tmiLoadColorScheme.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t\t{\n\t\t\t\tnthis.loadColorSchemeDialog(null);\n\t\t\t\tBasicWindow.updateWindows(); //TODO emit object update\n\t\t\t\t}\n\t\t});\n\t\t\n\t\t}", "title": "" }, { "docid": "295b4d70ab0949b7581a99b722cb4974", "score": "0.6461892", "text": "private void initMenu()\r\n\t{\r\n\t\t\r\n\t}", "title": "" }, { "docid": "6e7151cca6022cd3659cc0f7dfd3e233", "score": "0.64522064", "text": "private void buildPhoneMenu() {\r\n phone1Item = new JRadioButtonMenuItem(\"Model 100\");\r\n phone1Item.setMnemonic(KeyEvent.VK_F1);\r\n phone1Item.setToolTipText(\"$29.95\");\r\n phone1Item.addActionListener(new phoneListener());\r\n\r\n KeyStroke keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_F1, KeyEvent.ALT_DOWN_MASK);\r\n phone1Item.setAccelerator(keyStroke);\r\n /**\r\n * model 110\r\n */\r\n phone2Item = new JRadioButtonMenuItem(\"Model 110\");\r\n phone2Item.setMnemonic(KeyEvent.VK_F2);\r\n phone2Item.setToolTipText(\"$49.95\");\r\n phone2Item.addActionListener(new phoneListener());\r\n\r\n keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_F2, KeyEvent.ALT_DOWN_MASK);\r\n phone2Item.setAccelerator(keyStroke);\r\n /**\r\n * model 200\r\n */\r\n phone3Item = new JRadioButtonMenuItem(\"Model 200\");\r\n phone3Item.setMnemonic(KeyEvent.VK_F3);\r\n phone3Item.setToolTipText(\"$99.95\");\r\n phone3Item.addActionListener(new phoneListener());\r\n\r\n keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_F3, KeyEvent.ALT_DOWN_MASK);\r\n phone3Item.setAccelerator(keyStroke);\r\n\r\n phoneMenu = new JMenu(\"Phones\");\r\n\r\n phoneMenu.add(phone1Item);\r\n phoneMenu.add(phone2Item);\r\n phoneMenu.add(phone3Item);\r\n }", "title": "" }, { "docid": "23059eeadf5e1be0f5df7a1546ce3572", "score": "0.6451264", "text": "public java.awt.Menu makeMenu() {\n java.awt.Menu menu = new java.awt.Menu(\"Add Plot\");\n initMenu(menu);\n return menu;\n }", "title": "" }, { "docid": "e79f68ab980a25ba0c739e86d92d0f88", "score": "0.6448343", "text": "public MenuItem() {\n }", "title": "" }, { "docid": "4cf68c97cc457b5192da0276e0211984", "score": "0.6445989", "text": "public EditorMenu() {\n fileMenu = new JMenu(\"File\");\n newItem = new JMenuItem(\"New\");\n openItem = new JMenuItem(\"Open...\");\n saveItem = new JMenuItem(\"Save as...\");\n exitItem = new JMenuItem(\"Exit\");\n fileMenu.add(newItem);\n fileMenu.add(openItem);\n fileMenu.add(saveItem);\n fileMenu.add(exitItem);\n add(fileMenu);\n helpMenu = new JMenu(\"Help\");\n aboutItem = new JMenuItem(\"About...\");\n helpMenu.add(aboutItem);\n add(helpMenu);\n }", "title": "" }, { "docid": "2ab579d74f4d23e68d72f7eb946c90d8", "score": "0.6428655", "text": "public void buildMainMenu(){\n Quad menuQuad = new Quad(screenWidth/2, screenUnitSize * 4);\n Quad buttonQuad = new Quad(screenWidth/3, screenUnitSize);\n \n /** Create and position geometries. **/\n mainMenu = new Geometry(\"Main Menu\", menuQuad);\n mainMenu.setLocalTranslation(-menuQuad.getWidth()/2, -menuQuad.getHeight()/2, 0.5f);\n \n gameButton = new Geometry(\"Game Button\", buttonQuad);\n gameButton.setLocalTranslation(-buttonQuad.getWidth()/2, -buttonQuad.getHeight()/2, 0);\n \n optionsButton = new Geometry(\"Options But aton\", buttonQuad);\n optionsButton.setLocalTranslation(-buttonQuad.getWidth()/2, -buttonQuad.getHeight()/2, 0);\n \n quitButton = new Geometry(\"Quit Button\", buttonQuad);\n quitButton.setLocalTranslation(-buttonQuad.getWidth()/2, -buttonQuad.getHeight()/2, 0);\n \n /** Setup node to maintain menu elements. **/\n menuNode = new Node(\"Menu Node\");\n menuNode.attachChild(mainMenu);\n menuNode.setLocalTranslation(screenWidth/2, screenHeight - (screenUnitSize * 3), -1);\n \n /** The buttonsNode is a group-node for all clickable buttons. **/\n buttonsNode = new Node(\"Buttons Node\");\n \n /** These nodes help us center the button. **/\n Node gameNode = new Node(\"Game btn\");\n Node optionNode = new Node(\"Option btn\");\n Node quitNode = new Node(\"Quit btn\");\n \n gameNode.attachChild(gameButton);\n optionNode.attachChild(optionsButton);\n quitNode.attachChild(quitButton); \n \n buttonsNode.attachChild(gameNode);\n buttonsNode.attachChild(optionNode);\n buttonsNode.attachChild(quitNode);\n \n /** Setup GUI text elements. **/\n fnt = assetManager.loadFont(\"Interface/Fonts/Default.fnt\");\n BitmapText titleTxt = new BitmapText(fnt, false);\n titleTxt.setBox(new Rectangle(0, 0, menuQuad.getWidth(), menuQuad.getHeight()));\n titleTxt.setSize(fnt.getPreferredSize() * 4);\n titleTxt.setText(\"Eternal Athiri\");\n titleTxt.setLocalTranslation(-titleTxt.getLineWidth()/4, 0, 1);\n //titleTxt.setLocalTranslation(0, 0, 1);\n \n BitmapText gameTxt = new BitmapText(fnt, false);\n gameTxt.setBox(new Rectangle(0, 0, buttonQuad.getWidth(), buttonQuad.getHeight()));\n gameTxt.setSize(fnt.getPreferredSize() * 2);\n gameTxt.setText(\"Game\");\n gameTxt.setLocalTranslation(-gameTxt.getLineWidth()/4, 0, 1);\n \n BitmapText optionsTxt = new BitmapText(fnt, false);\n optionsTxt.setBox(new Rectangle(0, 0, buttonQuad.getWidth(), buttonQuad.getHeight()));\n optionsTxt.setSize(fnt.getPreferredSize() * 2);\n optionsTxt.setText(\"Options\");\n optionsTxt.setLocalTranslation(-optionsTxt.getLineWidth()/4, 0, 1);\n \n BitmapText quitTxt = new BitmapText(fnt, false);\n quitTxt.setBox(new Rectangle(0, 0, buttonQuad.getWidth(), buttonQuad.getHeight()));\n quitTxt.setSize(fnt.getPreferredSize() * 2);\n quitTxt.setText(\"Quit\");\n quitTxt.setLocalTranslation(-quitTxt.getLineWidth()/4, 0, 1);\n \n /** Scene graph setup for GUI.**/\n menuNode.attachChild(titleTxt);\n gameNode.attachChild(gameTxt);\n optionNode.attachChild(optionsTxt);\n quitNode.attachChild(quitTxt);\n \n gameNode.setLocalTranslation(0, (screenUnitSize * 1.25f), 0);\n //optionNode.setLocalTranslation(0, -(screenUnitSize * 4), 0);\n quitNode.setLocalTranslation(0, -(screenUnitSize * 1.25f), 0);\n \n menuNode.attachChild(buttonsNode);\n buttonsNode.setLocalTranslation(0, -(screenUnitSize * 4), 1);\n greenMat = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\");\n greenMat.setColor(\"Color\", ColorRGBA.Green);\n \n grayMat = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\");\n grayMat.setColor(\"Color\", ColorRGBA.Gray);\n \n mainMenu.setMaterial(grayMat);\n gameButton.setMaterial(grayMat);\n optionsButton.setMaterial(grayMat);\n quitButton.setMaterial(grayMat);\n \n //Attach to scene-graph\n guiNode.attachChild(menuNode);\n }", "title": "" }, { "docid": "21be7635cf68232ff1f436609555dd54", "score": "0.6396961", "text": "private void crearMenu() {\n\n barra = new JMenuBar();\n\n menu_inicio = new JMenu(\"Inicio\");\n menu_saldo = new JMenu(\"Saldo\");\n menu_perfil = new JMenu(\"Perfil\");\n\n menuItem_inicio = new JMenuItem(\"Ver Encuestas\");\n menuItem_inicio.addActionListener(new verencuestas());\n menuItem_inicio2 = new JMenuItem(\"Crear Encuesta\");\n menuItem_inicio2.addActionListener(new crearencuesta());\n menuItem_saldo = new JMenuItem(\"Mis Chukydolares\");\n menuItem_saldo.addActionListener(new versaldo());\n menuItem_configuracion = new JMenuItem(\"Configuracion\");\n menuItem_configuracion.addActionListener(new configuracion());\n menuItem_info = new JMenuItem(\"Información\");\n menuItem_info.addActionListener(new informacion());\n\n barra.add(menu_inicio);\n barra.add(menu_saldo);\n barra.add(menu_perfil);\n menu_perfil.add(menuItem_configuracion);\n menu_perfil.addSeparator();\n menu_perfil.add(menuItem_info);\n menu_inicio.add(menuItem_inicio);\n menu_inicio.addSeparator();\n menu_inicio.add(menuItem_inicio2);\n menu_saldo.add(menuItem_saldo);\n\n\n }", "title": "" }, { "docid": "963af95874efa8bc84fe6d0970a8995f", "score": "0.63942546", "text": "private void setupMenuItems() {\n this.createProcedureItem = new JMenuItem(CREATE_PROCEDURE_STRING);\n this.createProcedureItem.addActionListener(this.listener);\n this.add(this.createProcedureItem);\n \n this.deleteProcedureItem = new JMenuItem(DELETE_PROCEDURE_STRING);\n this.deleteProcedureItem.addActionListener(this.listener);\n this.add(this.deleteProcedureItem);\n }", "title": "" }, { "docid": "0748d833653b4eb067695281522ff60b", "score": "0.63906384", "text": "private void installMenu() {\n\t\tsubMenus.clear();\n\n\t\tif (!menuInstalled) {\n\t\t\tmnuObjectj = new Menu(\"ObjectJ\");\n\t\t\tif (IJ.isWindows()) {\n\t\t\t\tMenu help = menuBar.getMenu(menuBar.getMenuCount() - 1);\n\t\t\t\tMenu window = menuBar.getMenu(menuBar.getMenuCount() - 2);\n\t\t\t\tMenu plugins = menuBar.getMenu(menuBar.getMenuCount() - 3);\n\t\t\t\tmenuBar.add(mnuObjectj);\n\t\t\t\tmenuBar.add(plugins);\n\t\t\t\tmenuBar.add(window);\n\t\t\t\tmenuBar.add(help);\n\t\t\t} else {\n\t\t\t\tMenu window = menuBar.getMenu(menuBar.getMenuCount() - 2);\n\t\t\t\tMenu plugins = menuBar.getMenu(menuBar.getMenuCount() - 3);\n\t\t\t\tmenuBar.add(mnuObjectj);\n\t\t\t\tmenuBar.add(plugins);\n\t\t\t\tmenuBar.add(window);\n\t\t\t}\n\n\t\t\tmenuProjectFile = new Menu(\"Project\");\n\t\t\tmnuObjectj.add(menuProjectFile);\n\n\t\t\t/**/ itemAboutObjectJ = new MenuItem(\"About ObjectJ...\");\n\t\t\t/**/ itemAboutObjectJ.addActionListener(ProjectActionsOJ.AboutObjectJAction);\n\t\t\t/**/ menuProjectFile.add(itemAboutObjectJ);\n\n\t\t\t/**/ updateObjectJ = new MenuItem(\"Update ObjectJ ...\");\n\t\t\t/**/ updateObjectJ.addActionListener(ProjectActionsOJ.UpdateObjectJAction);\n\t\t\t/**/ menuProjectFile.add(updateObjectJ);\n\t\t\t/**/ menuProjectFile.addSeparator();\n\n\t\t\t\n\n\t\t\t/**/ itemNewProject = new MenuItem(\"New Project...\");\n\t\t\t/**/ itemNewProject.addActionListener(ProjectActionsOJ.NewProjectAction);\n\t\t\t/**/ menuProjectFile.add(itemNewProject);\n\n\t\t\t/**/ itemOpenProject = new MenuItem(\"Open Project...\");\n\t\t\t/**/ itemOpenProject.addActionListener(ProjectActionsOJ.OpenProjectAction);\n\t\t\t/**/ menuProjectFile.add(itemOpenProject);\n\n\t\t\t/**/ itemExportLinkedResults = new MenuItem(\"Export Linked Results...\");\n\t\t\t/**/ itemExportLinkedResults.addActionListener(ProjectActionsOJ.ExportLinkedResultsAction);\n\t\t\t/**/ menuProjectFile.add(itemExportLinkedResults);\n\n\t\t\t/**/ itemSaveACopy = new MenuItem(\"Save A Copy Of Project...\");\n\t\t\t/**/ itemSaveACopy.addActionListener(ProjectActionsOJ.SaveCopyAction);\n\t\t\t/**/ menuProjectFile.add(itemSaveACopy);\n\n\t\t\t/**/ itemSaveEmptyCopy = new MenuItem(\"Save An Empty Copy...\");\n\t\t\t/**/ itemSaveEmptyCopy.addActionListener(ProjectActionsOJ.SaveEmptyCopyAction);\n\t\t\t/**/ menuProjectFile.add(itemSaveEmptyCopy);\n\n//\t\t\t/**/ itemExportXML = new MenuItem(\"Export Project As XML...\");\n//\t\t\t/**/ itemExportXML.addActionListener(ProjectActionsOJ.ExportAsXMLAction);\n//\t\t\t/**/ menuProjectFile.add(itemExportXML);\n\n\t\t\t/**/ itemCloseProject = new MenuItem(\"Close Project\");\n\t\t\t/**/ itemCloseProject.addActionListener(ProjectActionsOJ.CloseProjectAction);\n\t\t\t/**/ menuProjectFile.add(itemCloseProject);\n\n\t\t\t/**/ itemExportEmbeddedMacros = new MenuItem(\"Export Embedded Macros\", new MenuShortcut(KeyEvent.VK_F6, true));\n\t\t\t/**/ itemExportEmbeddedMacros.addActionListener(ProjectActionsOJ.ExportEmbeddedMacrosAction);\n\t\t\t/**/ menuProjectFile.add(itemExportEmbeddedMacros);\n\n\t\t\t/**/ replaceEmbeddedMacros = new MenuItem(\"Import Embedded Macros\", new MenuShortcut(KeyEvent.VK_F7, true));\n\t\t\t/**/ replaceEmbeddedMacros.addActionListener(ProjectActionsOJ.ReplaceEmbeddedMacrosAction);\n\t\t\t/**/ menuProjectFile.add(replaceEmbeddedMacros);\n\n\t\t\titemSaveProject = new MenuItem(\"Save Project\");\n\t\t\titemSaveProject.addActionListener(ProjectActionsOJ.SaveProjectAction);\n\t\t\tmnuObjectj.add(itemSaveProject);\n\t\t\tmnuObjectj.addSeparator();\n//---\n\t\t\tmenuLinkedImages = new Menu(\"Linked Images\");\n\t\t\tmnuObjectj.add(menuLinkedImages);\n\n\t\t\t/**/ itemLinkAnImage = new MenuItem(\"Link Image from Project Folder...\");\n\t\t\t/**/ itemLinkAnImage.addActionListener(ImageActionsOJ.LinkImageFileAction);\n\t\t\t/**/ menuLinkedImages.add(itemLinkAnImage);\n\n\t\t\t/**/ itemLinkAllImages = new MenuItem(\"Link All Images from Project Folder\");\n\t\t\t/**/ itemLinkAllImages.addActionListener(ImageActionsOJ.LinkAllImagesAction);\n\t\t\t/**/ menuLinkedImages.add(itemLinkAllImages);\n\n\t\t\t/**/ itemLinkCurrentImage = new MenuItem(\"Link Front Image\");\n\t\t\t/**/ itemLinkCurrentImage.addActionListener(ImageActionsOJ.LinkImagePlusAction);\n\t\t\t/**/ menuLinkedImages.add(itemLinkCurrentImage);\n\n\n\t\t\t/**/ itemForgetUnmarkedImages = new MenuItem(\"Forget Unmarked Images\");\n\t\t\t/**/ itemForgetUnmarkedImages.addActionListener(ImageActionsOJ.RemoveAllImagesAction);\n\t\t\t/**/ menuLinkedImages.add(itemForgetUnmarkedImages);\n\n\t\t\t/**/ itemPropagateScale = new MenuItem(\"Propagate Scale to Linked Images...\");\n\t\t\t/**/ itemPropagateScale.addActionListener(ImageActionsOJ.PropagateScaleAction);\n\t\t\t/**/ menuLinkedImages.add(itemPropagateScale);\n\n\t\t\t/**/ itemFlatten = new MenuItem(\"Flattened Duplicate\");\n\t\t\t/**/ itemFlatten.addActionListener(ImageActionsOJ.FlattenAction);\n\t\t\t/**/ menuLinkedImages.add(itemFlatten);\n\n\t\t\tmenuObjects = new Menu(\"Objects\");\n\t\t\tmnuObjectj.add(menuObjects);\n\n\t\t\t/**/ itemShowObject = new MenuItem(\"Show Object #...\");\n\t\t\t/**/ itemShowObject.addActionListener(CellActionsOJ.ShowCellAction);\n\t\t\t/**/ menuObjects.add(itemShowObject);\n\n\t\t\t/**/ itemDeleteObjects = new MenuItem(\"Delete Objects...\");\n\t\t\t/**/ itemDeleteObjects.addActionListener(CellActionsOJ.DeleteCellsAction);\n\t\t\t/**/ menuObjects.add(itemDeleteObjects);\n\n\t\t\t/**/ itemDeleteAllObjects = new MenuItem(\"Delete All Objects\");\n\t\t\t/**/ itemDeleteAllObjects.addActionListener(CellActionsOJ.DeleteAllCellsAction);\n\t\t\t/**/ menuObjects.add(itemDeleteAllObjects);\n\n\t\t\t/**/ itemRoiToObject = new MenuItem(\"Create Item from ROI\");\n\t\t\t/**/ itemRoiToObject.addActionListener(CellActionsOJ.ROIToYtemAction);\n\t\t\t/**/ menuObjects.add(itemRoiToObject);\n\n\t\t\tmenuResults = new Menu(\"Results\");\n\t\t\tmnuObjectj.add(menuResults);\n\t\t\tmenuPlot = new Menu(\"Plots\");\n\t\t\tmnuObjectj.add(menuPlot);\n\n\t\t\t/**/ itemRecalculate = new MenuItem(\"Recalculate\");\n\t\t\t/**/ itemRecalculate.addActionListener(ResultsActionsOJ.RecalculateAction);\n\t\t\t/**/ menuResults.add(itemRecalculate);\n\t\t\t\n\t\t\tMenuItem thisItem;\n\t\t\t/**/ thisItem = new MenuItem(\"Plot Linked Results\");\n\t\t\t/**/ thisItem.addActionListener(ResultsActionsOJ.PlotAction);\n\t\t\t/**/ menuPlot.add(thisItem);\n\t\t\t\n\t\t\t/**/ thisItem = new MenuItem(\"Add Error Bars to Plot\");\n\t\t\t/**/ thisItem.addActionListener(ResultsActionsOJ.AddErrorBarsAction);\n\t\t\t/**/ menuPlot.add(thisItem);\n\t\t\t\n\t\t\t/**/ thisItem = new MenuItem(\"Add to Plot\");\n\t\t\t/**/ thisItem.addActionListener(ResultsActionsOJ.AddToPlotAction);\n\t\t\t/**/ menuPlot.add(thisItem);\n\n\t\t\t/**/ thisItem = new MenuItem(\"Handle ROI in Plot...\");\n\t\t\t/**/ thisItem.addActionListener(ResultsActionsOJ.AddQualifyRoiAction);\n\t\t\t/**/ menuPlot.add(thisItem);\n\n\n//\t\t\t/**/ thisItem = new MenuItem(\"Histogram\");\n//\t\t\t/**/ thisItem.addActionListener(ResultsActionsOJ.HistogramAction);\n//\t\t\t/**/ menuPlot.add(thisItem);\n\n//---\n\t\t\titemShowProjectWindow = new MenuItem(\"Show Project Window\", new MenuShortcut(KeyEvent.VK_F1, true));\n\t\t\titemShowProjectWindow.addActionListener(ViewActionsOJ.SettingsAction);\n\t\t\tmnuObjectj.add(itemShowProjectWindow);\n\n\t\t\titemShowObjectjTools = new MenuItem(\"Show ObjectJ Tools\", new MenuShortcut(KeyEvent.VK_F2, true));\n\t\t\titemShowObjectjTools.addActionListener(ViewActionsOJ.YtemListAction);\n\t\t\tmnuObjectj.add(itemShowObjectjTools);\n\n\t\t\titemShowObjectjResult = new MenuItem(\"Show ObjectJ Results\", new MenuShortcut(KeyEvent.VK_F3, true));\n\t\t\titemShowObjectjResult.addActionListener(ViewActionsOJ.ResultsViewAction);\n\t\t\tmnuObjectj.add(itemShowObjectjResult);\n\n\t\t\titemShowMacroText = new MenuItem(\"Show Embedded Macros\", new MenuShortcut(KeyEvent.VK_F4, true));\n\t\t\titemShowMacroText.addActionListener(ViewActionsOJ.ShowEmbeddedMacroAction);\n\t\t\tmnuObjectj.add(itemShowMacroText);\n\n\t\t\titemShowProjectFolder = new MenuItem(\"Show in Finder/Explorer\", new MenuShortcut(KeyEvent.VK_F5, true));\n\t\t\titemShowProjectFolder.addActionListener(ViewActionsOJ.ShowProjectFolderAction);\n\t\t\tmnuObjectj.add(itemShowProjectFolder);\n\t\t}\n\t}", "title": "" }, { "docid": "51dc542c804c7c0abd50155820e6b0e2", "score": "0.6387535", "text": "private JMenuItem createMenuItem(final String theName, \r\n final int theMnemonic, \r\n final JMenu theMenu) {\r\n final JMenuItem menuItem = new JMenuItem(theName);\r\n menuItem.setMnemonic(theMnemonic);\r\n theMenu.add(menuItem);\r\n return menuItem; \r\n }", "title": "" }, { "docid": "9bc63c5fc61748b7683fd451a7d582b8", "score": "0.6378343", "text": "private void setUpMenuBar() {\n\t\t// Construct Menu items\n\t\tmenuBar = new JMenuBar();\n\t\tmenu = new JMenu(FILE_MENU_TITLE);\n\t\titemNewFile = new JMenuItem(NEW_FILE_TITLE);\n\t\titemLoadFile = new JMenuItem(LOAD_FILE_TITLE);\n\t\titemSaveFile = new JMenuItem(SAVE_FILE_TITLE);\n\t\titemQuit = new JMenuItem(QUIT_TITLE);\n\t\titemNewFile.addActionListener(this);\n\t\titemLoadFile.addActionListener(this);\n\t\titemSaveFile.addActionListener(this);\n\t\titemQuit.addActionListener(this);\n\n\t\t// Start with save button disabled\n\t\titemSaveFile.setEnabled(false);\n\n\t\t// Build Menu and add to GUI\n\t\tmenu.add(itemNewFile);\n\t\tmenu.add(itemLoadFile);\n\t\tmenu.add(itemSaveFile);\n\t\tmenu.add(itemQuit);\n\t\tmenuBar.add(menu);\n\t\tthis.setJMenuBar(menuBar);\n\t}", "title": "" }, { "docid": "0cdfe097bec3408b8542740b9324decd", "score": "0.6356375", "text": "protected void fillMenuBar(IMenuManager menu) {\n\n\t\t{\n\t\t\tassert prefAction != null;\n\n\t\t\t// See bug# http://bugzilla.kualasoft.com/show_bug.cgi?id=174\n\n\t\t\tString platform = SWT.getPlatform();\n\t\t\tif (\"carbon\".equals(platform) || \"cocoa\".equals(platform)) {\n\t\t\t\tActionContributionItem item = new ActionContributionItem(\n\t\t\t\t\t\tprefAction);\n\t\t\t\titem.setVisible(false);\n\t\t\t\tmenu.add(item);\n\t\t\t}\n\n\t\t\tassert aboutAction != null;\n\n\t\t\tplatform = SWT.getPlatform();\n\t\t\tif (\"carbon\".equals(platform) || \"cocoa\".equals(platform)) {\n\t\t\t\tActionContributionItem item = new ActionContributionItem(\n\t\t\t\t\t\taboutAction);\n\t\t\t\titem.setVisible(false);\n\t\t\t\tmenu.add(item);\n\t\t\t}\n\n\t\t}\n\n\t\t// FILE MENU\n\t\t{\n\t\t\tIMenuManager menuX = new MenuManager(\"File\",\n\t\t\t\t\tIWorkbenchActionConstants.M_FILE);\n\n\t\t\tmenuX.add(new GroupMarker(IWorkbenchActionConstants.FILE_START));\n\t\t\tIMenuManager menuY = new MenuManager(\"New\",\n\t\t\t\t\t\"com.netxforge.d.ui.newmenu\");\n\t\t\tmenuY.add(getAction(ActionFactory.NEW.getId()));\n\t\t\tmenuX.add(menuY);\n\t\t\tmenuX.add(new Separator());\n\t\t\tmenuX.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));\n\t\t\tmenuX.add(saveAction);\n\t\t\tmenuX.add(getAction(ActionFactory.SAVE_AS.getId()));\n\t\t\tmenuX.add(getAction(ActionFactory.SAVE_ALL.getId()));\n\t\t\tmenuX.add(new Separator());\n\t\t\tmenuX.add(getAction(ActionFactory.CLOSE.getId()));\n\t\t\tmenuX.add(getAction(ActionFactory.CLOSE_ALL.getId()));\n\t\t\tmenuX.add(new Separator());\n\t\t\tmenuX.add(getAction(ActionFactory.IMPORT.getId()));\n\t\t\tmenuX.add(getAction(ActionFactory.EXPORT.getId()));\n\t\t\tmenuX.add(new Separator());\n\t\t\t// menuX.add(getAction(ActionFactory.PRINT.getId()));\n\t\t\t// menuX.add(new Separator());\n\t\t\tmenuX.add(getAction(ActionFactory.QUIT.getId()));\n\t\t\tmenuX.add(new GroupMarker(IWorkbenchActionConstants.FILE_END));\n\t\t\tmenu.add(menuX);\n\t\t}\n\n\t\t{\n\t\t\tIMenuManager menuX = new MenuManager(\"Edit\",\n\t\t\t\t\tIWorkbenchActionConstants.M_EDIT);\n\n\t\t\tmenuX.add(new GroupMarker(IWorkbenchActionConstants.EDIT_START));\n\n\t\t\tmenuX.add(getAction(ActionFactory.UNDO.getId()));\n\n\t\t\tmenuX.add(getAction(ActionFactory.REDO.getId()));\n\n\t\t\tmenuX.add(new GroupMarker(IWorkbenchActionConstants.UNDO_EXT));\n\n\t\t\tmenuX.add(new Separator());\n\n\t\t\tmenuX.add(getAction(ActionFactory.CUT.getId()));\n\n\t\t\tmenuX.add(getAction(ActionFactory.COPY.getId()));\n\n\t\t\tmenuX.add(getAction(ActionFactory.PASTE.getId()));\n\n\t\t\tmenuX.add(new GroupMarker(IWorkbenchActionConstants.CUT_EXT));\n\n\t\t\tmenuX.add(new Separator());\n\n\t\t\tmenuX.add(getAction(ActionFactory.DELETE.getId()));\n\n\t\t\tmenuX.add(getAction(ActionFactory.SELECT_ALL.getId()));\n\n\t\t\tmenuX.add(new Separator());\n\n\t\t\tmenuX.add(new GroupMarker(IWorkbenchActionConstants.ADD_EXT));\n\t\t\tmenuX.add(new GroupMarker(IWorkbenchActionConstants.FIND_EXT));\n\t\t\tmenuX.add(new GroupMarker(IWorkbenchActionConstants.EDIT_END));\n\t\t\t// menuX.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));\n\n\t\t\tmenu.add(menuX);\n\t\t}\n\n\t\t// LIBRARY MENU\n\t\t// Actions are added declarative.\n\t\t{\n\t\t\t// IMenuManager menuX = new MenuManager(\"Library\",\n\t\t\t// \"com.netxforge.d.ui.librarymenu\");\n\t\t\t// IMenuManager menuY = new MenuManager(\"Functions\",\n\t\t\t// \"com.netxforge.d.ui.functionsmenu\");\n\t\t\t// menuY.add(new\n\t\t\t// GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));\n\t\t\t// menuX.add(menuY);\n\t\t\t// menuY = new MenuManager(\"Systems\",\n\t\t\t// \"com.netxforge.d.ui.systemsmenu\");\n\t\t\t// menuY.add(new\n\t\t\t// GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));\n\t\t\t// menuX.add(menuY);\n\t\t\t// menuY = new MenuManager(\"Geo\", \"com.netxforge.d.ui.geomenu\");\n\t\t\t// menuY.add(new\n\t\t\t// GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));\n\t\t\t// menuX.add(menuY);\n\t\t\t// menuX.add(new\n\t\t\t// GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));\n\t\t\t// menu.add(menuX);\n\t\t}\n\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));\n\t\t// WINDOW MENU\n\t\t{\n\n\t\t\tIMenuManager menuX = new MenuManager(\"Window\",\n\t\t\t\t\tIWorkbenchActionConstants.M_WINDOW);\n\t\t\tIMenuManager menuY = new MenuManager(\"Task\",\n\t\t\t\t\t\"com.netxforge.d.ui.taskmenu\");\n\t\t\tmenuY.add(getAction(ActionFactory.EDIT_ACTION_SETS.getId()));\n\t\t\tmenuY.add(new Separator());\n\t\t\tmenuY.add(perspectivesMenu);\n\n\t\t\tMenuManager menuZ = new MenuManager(\"Views\",\n\t\t\t\t\t\"com.netxforge.d.ui.viewsmenu\");\n\t\t\t// By default only \"other...\" is shown.\n\t\t\tmenuZ.add(viewsMenu);\n\n\t\t\tmenuX.add(menuY);\n\t\t\tmenuX.add(menuZ);\n\t\t\tmenuX.add(new Separator());\n\n\t\t\tString platform = SWT.getPlatform();\n\t\t\tif (!(\"carbon\".equals(platform) || \"cocoa\".equals(platform))) {\n\t\t\t\tmenuX.add(prefAction);\n\t\t\t}\n\t\t\tmenu.add(menuX);\n\t\t}\n\t\t// HELP MENU\n\t\t{\n\t\t\tIMenuManager menuX = new MenuManager(\"Help\",\n\t\t\t\t\tIWorkbenchActionConstants.M_HELP);\n//\t\t\tmenuX.add(getAction(ActionFactory.INTRO.getId()));\n\t\t\tmenuX.add(new Separator());\n\t\t\tmenuX.add(helpAction);\n\t\t\tmenuX.add(aboutAction);\n\t\t\tmenu.add(menuX);\n\t\t}\n\t}", "title": "" }, { "docid": "30ed843bdb7f252d97c39fddcf8d06c3", "score": "0.6351501", "text": "protected abstract void fillMenu(IMenuManager menu);", "title": "" }, { "docid": "ee68a8e458eae9f59c39d4acf6ec589e", "score": "0.63390225", "text": "private void buildDemo2() {\n final String[] menuItems = { \"Row 1\", \"Row 2\", \"Row 3\" };\n final Menu menu = new Menu();\n for (String menuItemText : menuItems) {\n MenuItem menuItem = new MenuItem(menuItemText);\n menuItem.setOnAction(e -> System.out.println(menuItemText + \" was clicked!\"));\n menu.getItems().add(menuItem);\n }\n \n // demo two is a menu that appears from the bottom of the screen\n Button sideMenuBtn = new Button(\"Show Side Menu\");\n final MenuSidePopupView menuSidePopupView = new MenuSidePopupView(menu);\n sideMenuBtn.setOnAction(e -> menuSidePopupView.show());\n \n buttonPanel.getChildren().add(sideMenuBtn);\n }", "title": "" }, { "docid": "5092f126cb4f7d7f4cb416b36f8ea585", "score": "0.6327563", "text": "private void makeMenuItem(Menu pm, String sLabel, String sCmd, int shortcut )\n { /*makeMenuItem*/\n MenuItem mi= new MenuItem(sLabel);\n if(sCmd==null)\n sCmd= sLabel;\t\t /* use same string for both */\n mi.setActionCommand(sCmd); /* separate string for CMD & LABEL*/\n \n if(shortcut>=0)\n mi.addActionListener(this); /* actionListener in this class */\n else\n mi.setEnabled(false);\n \n /* Push sCmd into menuActionNameList[] in case need to look it up */\n if(nCmds<this.MAX_CMDS)\n {\n menuActionLabelList[nCmds]= sLabel; /* Save for event handler */\n menuActionCmdList[nCmds++]= sCmd; /* Save for event handler */\n }\n \n if(shortcut>0)\n {\n MenuShortcut\n msc= new MenuShortcut(shortcut);\n mi.setShortcut(msc);\t /* optional shortcut */\n }\n pm.add(mi);\n }", "title": "" }, { "docid": "c758560101120255e2a0ff85f89eb64c", "score": "0.63215464", "text": "private JMenu createViewMenu() {\n JMenuItem menuItem;\n JMenu menu;\n menu = new JMenu(ResourceManager.translate(\"view.menu\"));\n menu.setMnemonic(KeyStroke.getKeyStroke(ResourceManager.translate(\"view.menu.mnem\")).getKeyCode());\n menu.getAccessibleContext().setAccessibleDescription(ResourceManager.translate(\"view.menu.description\"));\n add(menu);\n\n expandAllMenuItem = new JMenuItem(ResourceManager.translate(\"view.expand\"),\n KeyStroke.getKeyStroke(ResourceManager.translate(\"view.expand.mnem\")).getKeyCode());\n expandAllMenuItem.setIcon(TDA.createImageIcon(\"Expanded.gif\"));\n expandAllMenuItem.setAccelerator(KeyStroke.getKeyStroke(\n ResourceManager.translate(\"view.expand.accel\")));\n expandAllMenuItem.getAccessibleContext().setAccessibleDescription(\n ResourceManager.translate(\"view.expand.description\"));\n expandAllMenuItem.addActionListener(listener);\n expandAllMenuItem.setEnabled(false);\n menu.add(expandAllMenuItem);\n\n collapseAllMenuItem = new JMenuItem(ResourceManager.translate(\"view.collapse\"),\n KeyStroke.getKeyStroke(ResourceManager.translate(\"view.collapse.mnem\")).getKeyCode());\n collapseAllMenuItem.setIcon(TDA.createImageIcon(\"Collapsed.gif\"));\n collapseAllMenuItem.setAccelerator(KeyStroke.getKeyStroke(\n ResourceManager.translate(\"view.collapse.accel\")));\n collapseAllMenuItem.getAccessibleContext().setAccessibleDescription(\n ResourceManager.translate(\"view.collapse.description\"));\n collapseAllMenuItem.setEnabled(false);\n collapseAllMenuItem.addActionListener(listener);\n menu.add(collapseAllMenuItem);\n\n menu.addSeparator();\n menuItem = new JCheckBoxMenuItem(ResourceManager.translate(\"view.showtoolbar\"), PrefManager.get().getShowToolbar());\n menuItem.setMnemonic(KeyStroke.getKeyStroke(ResourceManager.translate(\"view.showtoolbar.mnem\")).getKeyCode());\n menuItem.addActionListener(listener);\n menuItem.setIcon(TDA.createImageIcon(\"Empty.gif\"));\n menu.add(menuItem);\n\n return (menu);\n }", "title": "" }, { "docid": "6dd5609fec09b29077e6a59f1eedf0df", "score": "0.6312642", "text": "private void createOptionsMenu() {\r\n final JMenu optionsMenu = createMenu(\"Options\", KeyEvent.VK_O);\r\n \r\n //add grid check box\r\n final JMenuItem optionsGrid = new JCheckBoxMenuItem(\"Grid\");\r\n optionsGrid.setMnemonic(KeyEvent.VK_G);\r\n optionsMenu.add(optionsGrid);\r\n optionsGrid.addActionListener(new ActionListener() {\r\n //fire a \"grid\" property change\r\n public void actionPerformed(final ActionEvent theEvent) {\r\n firePropertyChange(\"grid\", null, null);\r\n }\r\n });\r\n \r\n //create and add thickness slider\r\n final JMenu optionsThickness = new JMenu(\"Thickness\");\r\n optionsThickness.setMnemonic(KeyEvent.VK_T);\r\n optionsMenu.add(optionsThickness);\r\n final JSlider thicknessSlider = new JSlider(SwingConstants.HORIZONTAL, 0, SLIDER_MAX,\r\n SLIDER_STARTING_POSITION);\r\n thicknessSlider.setMajorTickSpacing(SLIDER_MAJOR_TICK_SPACING);\r\n thicknessSlider.setMinorTickSpacing(SLIDER_MINOR_TICK_SPACING);\r\n thicknessSlider.setPaintLabels(true);\r\n thicknessSlider.setPaintTicks(true);\r\n thicknessSlider.addChangeListener(new ChangeListener() {\r\n //fire property change event with the new value when slider is moved\r\n public void stateChanged(final ChangeEvent theEvent) {\r\n final int value = thicknessSlider.getValue();\r\n if (value >= 0) {\r\n thicknessSlider.setValue(value);\r\n firePropertyChange(\"thickness\", null, value);\r\n }\r\n }\r\n });\r\n optionsThickness.add(thicknessSlider);\r\n }", "title": "" }, { "docid": "85e9884adbb63f67a2b36c5f748f36a5", "score": "0.6311699", "text": "private JMenu createMenu ()\r\n {\r\n JMenu menu = new JMenu ( \"\" );\r\n if ( getWindowDecorationStyle () == JRootPane.FRAME )\r\n {\r\n addMenuItems ( menu );\r\n // we use this property to prevent the Menu from drawing rollovers\r\n menu.putClientProperty ( \"isSystemMenu\", Boolean.TRUE );\r\n }\r\n\r\n return menu;\r\n }", "title": "" }, { "docid": "414ce1ea7b8e9329aed991c65f55772b", "score": "0.6311494", "text": "public void setupMenu() {\n\t\n JMenuBar mbar = new JMenuBar(); // create menu bar\n JMenu mnuFile = new JMenu(\"File\"); // create menu named file \n JMenuItem miExit = new JMenuItem(\"Exit\"); // create menu item named exit\n JMenu mnuHelp = new JMenu(\"Help\"); // create menu named help\n JMenuItem miAbout = new JMenuItem(\"About\"); // create menu item named about in help menu.\n \n // add action listener to about menu item.\n miAbout.addActionListener(new ActionListener() {\n \t public void actionPerformed(ActionEvent e) {\n \t\t // show the message box with author details in about menu option\n JOptionPane.showMessageDialog(null,\"Author: Neel Patel\\nCaMS Student,Lewis University\\nClass: Object Oriented Programming\");\n \t }\n });\n // is user chooses exit menu item form file menu, then quit. \n miExit.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n System.exit(0);\n }\n });\n \n mnuFile.add(miExit); // add menu item exit to menu name file\n mbar.add(mnuFile); // add file menu to menu bar\n mnuHelp.add(miAbout); // add About menu item to help menu\n mbar.add(mnuHelp); // add help menu to menu bar\n setJMenuBar(mbar); // add menu bar to itself\n }", "title": "" }, { "docid": "f0577ad5b17e1370d95830eb2568f317", "score": "0.63085335", "text": "private void createMenues(Menubar parentNya, Cmenu cmenuNya) {\n Map<String, String> requestMap = new HashMap<String, String>();\n requestMap.put(\"cmenuParentId\", cmenuNya.getCmenuId());\n List<Cmenu> listNyaCMenu = cmenuService.getByRequest(requestMap, false, null);\n\n if (listNyaCMenu.size()>0) {\n //Buat element Menu\n Menu menuNya = new Menu(cmenuNya.getCmenuLabel());\n parentNya.appendChild(menuNya);\n //Buat element Menupopup\n Menupopup menuPopupNya = new Menupopup();\n menuNya.appendChild(menuPopupNya);\n\n for (int i=0; i<listNyaCMenu.size(); i++) {\n Cmenu new_cmenuNya = listNyaCMenu.get(i);\n if (listNyaCMenu.size()>0) {\n createMenues(menuPopupNya, new_cmenuNya);\n } else {\n createMenuItems(menuPopupNya, new_cmenuNya);\n }\n }\n\n } else {\n createMenuItems(parentNya, cmenuNya);\n }\n }", "title": "" }, { "docid": "6e9a559b9f63e32a3b16fb0393041405", "score": "0.6303319", "text": "public MenuMessage() {\r\n ArrayList<String[]> menuText = new ArrayList();\r\n String[] mnuName = new String[21];\r\n//Inicializacion de menus definiendo las funciones que va a ejecutar el sistemas\r\n mnuName[0] = \"mnuMain\";\r\n\r\n mnuName[1] = \"mnuAddClient\";\r\n mnuName[2] = \"mnuEditClient\";\r\n mnuName[3] = \"mnuDeleteClient\";\r\n mnuName[4] = \"mnuSearchClient\";\r\n\r\n mnuName[5] = \"mnuAddItem\";\r\n mnuName[6] = \"mnuEditItem\";\r\n mnuName[7] = \"mnuDeleteItem\";\r\n mnuName[8] = \"mnuSearchItem\";\r\n\r\n mnuName[9] = \"mnuAddEmployee\";\r\n mnuName[10] = \"mnuEditEmployee\";\r\n mnuName[11] = \"mnuDeleteEmployee\";\r\n mnuName[12] = \"mnuSearchEmployee\";\r\n\r\n mnuName[13] = \"mnuGenericABMS\";\r\n mnuName[14] = \"mnuPaymentType\";\r\n mnuName[15] = \"mnuTransaction\";\r\n mnuName[16] = \"mnuAddItemToCart\";\r\n mnuName[17] = \"mnuBuying\";\r\n\r\n mnuName[18] = \"mnuItemSection\";\r\n mnuName[19] = \"mnuGetClientId\";\r\n mnuName[20] = \"mnuCreateFinance\";\r\n\r\n // <editor-fold defaultstate=\"collapsed\" desc=\" ${************mnuMain***************} \"> \r\n //0. mnuMain \r\n String[] code = new String[6];\r\n code[0] = \"Realizar una Transacción\";\r\n code[1] = \"Gestión de Clientes\"; //mnuGenericABMS\r\n code[2] = \"Gestión de Stock\";\r\n code[3] = \"Gestión de Empleados\";\r\n code[4] = \"Listar Facturas\";\r\n code[5] = \"Salir de la aplicación\";\r\n menuText.add(code);\r\n // </editor-fold> \r\n // <editor-fold defaultstate=\"collapsed\" desc=\" ${************Client****************} \"> \r\n /**\r\n * ************Client*****************\r\n */\r\n //1. mnuAddClient\r\n code = new String[4];\r\n code[0] = \"Introduzca DNI del cliente\";\r\n code[1] = \"Introduzca nombre\";\r\n code[2] = \"Introduzca apellido\";\r\n code[3] = \"Introduzca nómina\";\r\n menuText.add(code);\r\n //2. mnuEditClient \r\n code = new String[4];\r\n code[0] = \"Introduzca DNI del cliente\";\r\n code[1] = \"Introduzca nombre\";\r\n code[2] = \"Introduzca apellido\";\r\n code[3] = \"Introduzca nómina\";\r\n menuText.add(code);\r\n //3. mnuDeleteClient \r\n code = new String[1];\r\n code[0] = \"Introduzca DNI del cliente\";\r\n menuText.add(code);\r\n\r\n //4. mnuSearchClient \r\n code = new String[1];\r\n code[0] = \"Introduzca DNI del cliente\";\r\n menuText.add(code);\r\n // </editor-fold> \r\n // <editor-fold defaultstate=\"collapsed\" desc=\" ${************Stock*****************} \"> \r\n\r\n //5. mnuAddItem\r\n code = new String[7];\r\n code[0] = \"Introduzca código de familia: 1. Ordenadores 2. Hogar 3. Telefonía 4. Imagen 5. Sonido\";\r\n code[1] = \"Introduzca código de artículo\";\r\n code[2] = \"Introduzca nombre de artículo\";\r\n code[3] = \"Introduzca descripción de artículo\";\r\n code[4] = \"Introduzca precio de compra\";\r\n code[5] = \"Introduzca precio de venta\";\r\n code[6] = \"Introduzca cantidad en stock\";\r\n menuText.add(code);\r\n //6. mnuEditItem \r\n code = new String[6];\r\n code[0] = \"Introduzca código de artículo\";\r\n code[1] = \"Introduzca nombre de artículo\";\r\n code[2] = \"Introduzca descripción de artículo\";\r\n code[3] = \"Introduzca precio de compra\";\r\n code[4] = \"Introduzca precio de venta\";\r\n code[5] = \"Introduzca cantidad en stock\";\r\n menuText.add(code);\r\n //7. \"mnuDeleteItem\";\r\n code = new String[1];\r\n code[0] = \"Introduzca el código de artículo\";\r\n menuText.add(code);\r\n //8. mnuSearchItem\r\n code = new String[1];\r\n code[0] = \"Introduzca el código de artículo\";\r\n menuText.add(code);\r\n // </editor-fold> \r\n // <editor-fold defaultstate=\"collapsed\" desc=\" ${************Employee**************} \"> \r\n /**\r\n * ************Employee*****************\r\n */\r\n //9. mnuAddEmployee\r\n code = new String[4];\r\n code[0] = \"Introduzca DNI empleado\";\r\n code[1] = \"Introduzca nombre\";\r\n code[2] = \"Introduzca apellido\";\r\n code[3] = \"Introduzca nómina\";\r\n menuText.add(code);\r\n //10. mnuEditEmployee \r\n code = new String[4];\r\n code[0] = \"Introduzca DNI empleado\";\r\n code[1] = \"Introduzca nombre Return para no hacer cambios\";\r\n code[2] = \"Introduzca apellido\";\r\n code[3] = \"Introduzca nómina\";\r\n menuText.add(code);\r\n //11. \"mnuDeleteEmployee\";\r\n code = new String[1];\r\n code[0] = \"Introduzca DNI de Empleado\";\r\n menuText.add(code);\r\n //12. mnuSearchEmployee\r\n code = new String[1];\r\n code[0] = \"Introduzca DNI del Empleado\";\r\n menuText.add(code);\r\n // </editor-fold> \r\n // <editor-fold defaultstate=\"collapsed\" desc=\" ${************mnuGenericABMS********} \"> \r\n //13. mnuGenericABMS\r\n code = new String[7];\r\n code[0] = \"Agregar\";\r\n code[1] = \"Actualizar\";\r\n code[2] = \"Eliminar\";\r\n code[3] = \"Listar\";\r\n code[4] = \"Agregar \" + \"aleatorio\";\r\n code[5] = \"Buscar\";\r\n code[6] = \"Volver al menú principal\";\r\n menuText.add(code);\r\n // </editor-fold> \r\n // <editor-fold defaultstate=\"collapsed\" desc=\" ${************mnuPaymentType********} \"> \r\n //14. mnuPaymentType\r\n code = new String[3];\r\n code[0] = \"Efectivo\";\r\n code[1] = \"Tarjeta\";\r\n code[2] = \"Financiado\";\r\n\r\n menuText.add(code);\r\n // </editor-fold> \r\n // <editor-fold defaultstate=\"collapsed\" desc=\" ${************mnuTransaction********} \"> \r\n //15. mnuTransaction\r\n code = new String[4];\r\n code[0] = \"Consultar el importe actual\";\r\n code[1] = \"Añadir producto al carrito\";\r\n code[2] = \"Cobrar Compra\";\r\n code[3] = \"Cancelar venta\";\r\n menuText.add(code);\r\n // </editor-fold> \r\n // <editor-fold defaultstate=\"collapsed\" desc=\" ${************mnuAddItemToCart******} \"> \r\n //16 mnuAddItemToCart\r\n code = new String[2];\r\n code[0] = \"Introduzca código de artículo\";\r\n code[1] = \"Introduzca cantidad\";\r\n menuText.add(code);\r\n\r\n // </editor-fold> \r\n // <editor-fold defaultstate=\"collapsed\" desc=\" ${************mnuBuying*************} \"> \r\n //17. mnuBuying\r\n code = new String[2];\r\n code[0] = \"Seguir Comprando\";\r\n code[1] = \"Cancelar Compra\";\r\n menuText.add(code);\r\n // </editor-fold> \r\n // <editor-fold defaultstate=\"collapsed\" desc=\" ${************mnuItemSection********} \"> \r\n //18. mnuItemSection\r\n code = new String[4];\r\n code[0] = \"PDA'S\";\r\n code[1] = \"Portatiles\";\r\n code[2] = \"Sobremesa\";\r\n code[3] = \"NoteBooks\";\r\n menuText.add(code);\r\n // </editor-fold> \r\n // <editor-fold defaultstate=\"collapsed\" desc=\" ${************mnuGetClientId****************} \"> \r\n //19. mnuGetClientId \r\n code = new String[1];\r\n code[0] = \"Introduzca DNI del cliente\";\r\n menuText.add(code);\r\n // </editor-fold> \r\n\r\n // <editor-fold defaultstate=\"collapsed\" desc=\" ${************mnuCreateFinance****************} \"> \r\n //20. mnuCreateFinance \r\n code = new String[1];\r\n code[0] = \"Por favor, para terminar la compra pase por el departamento financiero e indique su DNI\";\r\n \r\n menuText.add(code);\r\n // </editor-fold> \r\n\r\n for (int i = 0; i < mnuName.length; i++) {\r\n hashmap.put(\r\n mnuName[i], menuText.get(i));\r\n }\r\n }", "title": "" }, { "docid": "2da1effa667eaa56fd4fc8b7bb7ff394", "score": "0.6301812", "text": "public MenuItem(){\n\n }", "title": "" }, { "docid": "e2638a96e8a329f4da1db5800f60b9a1", "score": "0.6301321", "text": "public MenuItem(){\n\t\tname = \"default name\";\n\t\tprice = 0.00;\n\t\torderCode = \"default code\";\n\t}", "title": "" }, { "docid": "9508655cf3185481de832582da7fca7c", "score": "0.6297154", "text": "private void createMenues(Menupopup parentNya, Cmenu cmenuNya) {\n Map<String, String> requestMap = new HashMap<String, String>();\n requestMap.put(\"cmenuParentId\", cmenuNya.getCmenuId());\n List<Cmenu> listNyaCMenu = cmenuService.getByRequest(requestMap, false, null);\n\n if (listNyaCMenu.size()>0) {\n //Buat element Menu\n Menu menuNya = new Menu(cmenuNya.getCmenuLabel());\n parentNya.appendChild(menuNya);\n //Buat element Menupopup\n Menupopup menuPopupNya = new Menupopup();\n menuNya.appendChild(menuPopupNya);\n\n for (int i=0; i<listNyaCMenu.size(); i++) {\n Cmenu new_cmenuNya = listNyaCMenu.get(i);\n if (listNyaCMenu.size()>0) {\n createMenues(menuPopupNya, new_cmenuNya);\n } else {\n createMenuItems(menuPopupNya, new_cmenuNya);\n }\n }\n } else {\n createMenuItems(parentNya, cmenuNya);\n }\n }", "title": "" }, { "docid": "93aba1a72d6c45d9a130f56d6ff683ff", "score": "0.6293905", "text": "public void createMenuBar() {\n JMenu menu = new JMenu(\"File\");\n JDialog dialog = new JDialog();\n menu.add(createDetectiveNotesItem(dialog));\n menu.add(createFileExitItem());\n\n JMenuBar menuBar = new JMenuBar();\n setJMenuBar(menuBar);\n menuBar.add(menu);\n }", "title": "" }, { "docid": "a1fe632068cd58c94cce774d449f77f1", "score": "0.6291248", "text": "public abstract MenuModelBuilder createBuilder();", "title": "" }, { "docid": "b63e764d75be4767c5228761c60506be", "score": "0.6291153", "text": "public JMenu createLocaleMenu(final ActionListener al)\n {\n JMenu menu = new JMenu(\"Locale\"); //$NON-NLS-1$\n \n for (Locale locale : getStdLocaleList(true))\n {\n if (!locale.getLanguage().equals(\"-\"))\n {\n JCheckBoxMenuItem cbmi = new JCheckBoxMenuItem(locale.getDisplayName());\n localeMenuItems.add(cbmi);\n menu.add(cbmi);\n cbmi.addActionListener(al);\n } else\n {\n menu.addSeparator();\n }\n }\n return menu;\n }", "title": "" }, { "docid": "2d0a64cc214f1eadb6103e4cf1b4f0cf", "score": "0.6290269", "text": "private void buildMenubar()\n { \n setJMenuBar(null);\n menu_bar = new JMenuBar();\n setJMenuBar(menu_bar);\n \n Vector file = new Vector();\n Vector options = new Vector();\n Vector help = new Vector();\n Vector save_results_menu = new Vector();\n Vector view_man \t = new Vector();\n Vector save_menu \t = new Vector();\n Vector load_menu \t = new Vector();\n Vector save_default = new Vector();\n Vector load_data = new Vector();\n Vector swv_help = new Vector();\n Vector print = new Vector();\n Vector save_image = new Vector();\n Vector exit = new Vector();\n Vector file_listeners = new Vector();\n Vector option_listeners = new Vector();\n Vector help_listeners = new Vector();\n \n // build file menu\n file.add(\"File\");\n file_listeners.add( new WVListener() ); // listener for file\n file.add(load_data);\n load_data.add(\"Load S(Qx,Qy)\");\n file_listeners.add( new WVListener() ); // listener for load data\n file.add(load_menu);\n load_menu.add(\"Open Project\");\n file_listeners.add( new WVListener() ); // listener for load project\n file.add(save_menu);\n save_menu.add(\"Save Project\");\n file_listeners.add( new WVListener() ); // listener for save project\n file.add(print);\n print.add(\"Print Image\");\n file_listeners.add( new WVListener() ); // listener for printing IVC\n file.add(save_image);\n save_image.add(\"Make Image (JPEG)\");\n file_listeners.add( new WVListener() ); // listener for saving IVC as jpg\n file.add(exit);\n exit.add(\"Exit\");\n file_listeners.add( new WVListener() ); // listener for exiting SWViewer\n \n // build options menu\n options.add(\"Options\");\n option_listeners.add( new WVListener() ); // listener for options\n options.add(view_man);\n view_man.add(\"Hide Results Window\");\n option_listeners.add( new WVListener() ); // listener for view results\n options.add(save_results_menu);\n save_results_menu.add(\"Save Results to File\");\n option_listeners.add( new WVListener() ); // listener for saving results\n options.add(save_default);\n save_default.add(\"Save User Settings\");\n option_listeners.add( new WVListener() ); // listener for saving results\n \n // build help menu\n help.add(\"Help\");\n help_listeners.add( new WVListener() );\n help.add( swv_help );\n swv_help.add(\"SAND Wedge Viewer\");\n help_listeners.add( new WVListener() ); // listener for SAND helper\n \n // add menus to the menu bar.\n menu_bar.add( MenuItemMaker.makeMenuItem(file,file_listeners) ); \n menu_bar.add( MenuItemMaker.makeMenuItem(options,option_listeners) );\n menu_bar.add( MenuItemMaker.makeMenuItem(help,help_listeners) );\n \n // since the IVC is not created unless data is available,\n // do not load state unless data is available.\n if( data == null )\n {\n JMenu file_menu = menu_bar.getMenu(0);\n file_menu.getItem(2).setEnabled(false); // disable Save Project Settings\n file_menu.getItem(3).setEnabled(false); // disable Print Image\n file_menu.getItem(4).setEnabled(false); // disable Make Image\n JMenu option_menu = menu_bar.getMenu(1);\n option_menu.getItem(0).setEnabled(false); // disable Hide Results Window\n option_menu.getItem(1).setEnabled(false); // disable Save Results\n option_menu.getItem(2).setEnabled(false); // disable Save User Settings\n }\n \n // if ViewManager not visible, disable \"Hide Results Window\" button\n if( oldview == null || !oldview.isVisible() )\n {\n menu_bar.getMenu(1).getItem(0).setEnabled(false);\n }\n }", "title": "" }, { "docid": "c80b540220130dcaad75df10073af9b7", "score": "0.6281831", "text": "public void setupMenus() {\n\t\tframe = new JFrame (\"Menu\");\n\t\tmenuBar = new JMenuBar();\n\t\t\t\t\n\t\t//FileMenu set up by Ly\n\t\tfileMenu = new JMenu(\"File\");\n\t\titem = new JMenuItem(\"Save Query\");\n\t\tfileMenu.add(item);\n\t\titem = new JMenuItem(\"Load Query\");\n\t\tfileMenu.add(item);\n\t\texportButton = new JMenuItem(\"Import\");\n\t\tfileMenu.add(exportButton);\n\t\texportButton.addActionListener(this); //Add eventlistner to MenuItem \"Import\"\n\t\titem = new JMenuItem(\"Export\");\n\t\tfileMenu.add(item);\n\t\titem = new JMenuItem(\"Save Query\");\n\t\tfileMenu.add(item);\n\t\texitButton = new JMenuItem(\"Exit\");\n\t\texitButton.addActionListener(this); // Add eventListener to MenuItem \"Exit\"\n\t\tfileMenu.add(exitButton);\n\t\tthis.add(fileMenu);\n\t\t\n\t\t//Help Menu\n\t\thelpMenu = new JMenu(\"Help\");\n\t\titem = new JMenuItem(\"About Pirex\");\n\t\thelpMenu.add(item);\n\t\tthis.add(helpMenu);\n\t\t\n\t\t//OptionsMenu Set Up By Michael\n\t\toptionsMenu = new JMenu(\"Options\");\n\t\titem = new JMenuItem(\"Documents\");\n\t\toptionsMenu.add(item);\n\t\t\n\t\t//Put Menu Bar on frame by Minh Giang\n\t\tframe.setJMenuBar(menuBar);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setPreferredSize(new Dimension(400,300));\n\t\tframe.pack();\n\t\tframe.setLocationRelativeTo(null);\n\t\tframe.setVisible(true);\n\t\t\n\t}", "title": "" }, { "docid": "f5fd9dfd48781ebe1ecf8e5d94c536e7", "score": "0.628089", "text": "public JMenu createFileMenu()\n {\n JMenu menu = new JMenu(\"File\");\n JMenuItem exitItem = new JMenuItem(\"Exit\");\n ActionListener listener = new ExitItemListener();\n exitItem.addActionListener(listener);\n menu.add(exitItem);\n return menu;\n }", "title": "" }, { "docid": "84b3942f9ec516eed7009bcd93b1e013", "score": "0.6263535", "text": "protected JMenu createActionMenu() {\r\n final JMenu menu = new JMenu(\"Action\");\r\n menu.setMnemonic('A'); // set mnemonic to F\r\n menu.add(compileAction);\r\n menu.add(uploadAction);\r\n\r\n menu.addSeparator();\r\n \r\n menu.add(runTestAction);\r\n menu.add(stepTestAction);\r\n menu.add(stopTestAction);\r\n \r\n return menu;\r\n }", "title": "" }, { "docid": "214d8fe2c209a40d683cfad1a4f76671", "score": "0.62566704", "text": "private JMenuBar generateMenuBar() throws IOException {\r\n\t\tJMenuBar menuBar = new JMenuBar();\r\n\t\tJMenu fileMenu = new JMenu(\"File\");\r\n\t\tJMenu optionsMenu = new JMenu(\"Options\");\r\n\t\tmenuBar.add(fileMenu);\r\n\t\tmenuBar.add(optionsMenu);\r\n\t\t\r\n\t\tJMenuItem importItem = new JMenuItem(\"Import\");\r\n\t\tJMenuItem exportItem = new JMenuItem(\"Export\");\r\n\t\tfileMenu.add(importItem);\r\n\t\tfileMenu.add(exportItem);\r\n\t\t\r\n\t\tJMenuItem aboutItem = new JMenuItem(\"About\");\r\n\t\tJMenuItem userItem = new JMenuItem(\"Users\");\r\n\t\toptionsMenu.add(aboutItem);\r\n\t\toptionsMenu.add(userItem);\r\n\t\t\r\n\t\tAbout aboutBox = new About();\r\n\t\t\r\n\t\taboutItem.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\taboutBox.show();\r\n\t\t\t}\r\n\t\t\t\r\n });\r\n\t\t\r\n\t\treturn menuBar;\r\n\t}", "title": "" }, { "docid": "eb5040f434ca1543ce2a72a1abac9a5d", "score": "0.62553495", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuItem mi=menu.add(0,0,0,\"Home\");\n MenuItem mi1=menu.add(0,1,1,\"My Customers\");\n MenuItem mi2=menu.add(0,2,2,\"My Items\");\n MenuItem mi3=menu.add(0,3,3,\"Orders\");\n MenuItem mi4=menu.add(0,4,4,\"Sell Log\");\n MenuItem mi5=menu.add(0,5,5,\"My Account\");\n MenuItem mi6=menu.add(0,6,6,\"Logout\");\n\t\treturn true;\n\t}", "title": "" }, { "docid": "18d12c7854737b17d255f36e5e7a9eec", "score": "0.6254669", "text": "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-09-18 21:46:39.423 -0400\", hash_original_method = \"67564F3278B2785B0D51A928B0CAEE16\", hash_generated_method = \"A5FD69BF8E7D51507AA60008AD522003\")\n \nMenuItemImpl(MenuBuilder menu, int group, int id, int categoryOrder, int ordering,\n CharSequence title, int showAsAction) {\n\n /*if (sPrependShortcutLabel == null) {\n // This is instantiated from the UI thread, so no chance of sync issues\n sPrependShortcutLabel = menu.getContext().getResources().getString(\n com.android.internal.R.string.prepend_shortcut_label);\n sEnterShortcutLabel = menu.getContext().getResources().getString(\n com.android.internal.R.string.menu_enter_shortcut_label);\n sDeleteShortcutLabel = menu.getContext().getResources().getString(\n com.android.internal.R.string.menu_delete_shortcut_label);\n sSpaceShortcutLabel = menu.getContext().getResources().getString(\n com.android.internal.R.string.menu_space_shortcut_label);\n }*/\n\n mMenu = menu;\n mId = id;\n mGroup = group;\n mCategoryOrder = categoryOrder;\n mOrdering = ordering;\n mTitle = title;\n mShowAsAction = showAsAction;\n }", "title": "" }, { "docid": "8cd559f18e0098266afd2999be0e9942", "score": "0.6244838", "text": "private JMenuBar createMenuBar()\n {\n JMenuBar menuBar = new JMenuBar();\n menuBar.add(this.createFileMenu());\n return menuBar;\n }", "title": "" }, { "docid": "4b870288a34426c941a1c40027533eb5", "score": "0.6238194", "text": "public JMenu createStyleMenu()\n {\n JMenu menu = new JMenu(\"Style\");\n menu.add(createStyleItem(\"Plain\", Font.PLAIN));\n menu.add(createStyleItem(\"Bold\", Font.BOLD));\n menu.add(createStyleItem(\"Italic\", Font.ITALIC));\n menu.add(createStyleItem(\"Bold Italic\", Font.BOLD + Font.ITALIC));\n return menu;\n }", "title": "" }, { "docid": "ee3c860dbc4ae2c2c3caa192d946e5dd", "score": "0.62373465", "text": "public JMenu createFileMenu()\r\n\t{\r\n\t\tJMenu menu=new JMenu(\"File\");\r\n\t\tJMenuItem exitItem=new JMenuItem(\"EXIT\");\r\n\t\tActionListener listener=new ExitItemListener();\r\n\t\texitItem.addActionListener(listener);\r\n\t\tmenu.add(exitItem);\r\n\t\treturn menu;\r\n\t}", "title": "" }, { "docid": "3fc382c58be8410db4d26573ca12efa6", "score": "0.6234664", "text": "private JMenu newMenu(ButtonActionListener buttonActionListener) {\n JMenu newMenu = new JMenu(\"New\");\n newMenu.setMnemonic(KeyEvent.VK_N);\n newMenu.getAccessibleContext().setAccessibleDescription(\"Create new game\");\n newMenu.add(menuItem(\"Custom\", KeyEvent.VK_C, \"CustomButton\", \"Create custom game\", buttonActionListener));\n newMenu.add(menuItem(\"Easy\", KeyEvent.VK_E, \"EasyButton\", \"Create new easy game\", buttonActionListener));\n newMenu.add(menuItem(\"Normal\", KeyEvent.VK_N, \"NormalButton\", \"Create new normal game\", buttonActionListener));\n newMenu.add(menuItem(\"Hard\", KeyEvent.VK_H, \"HardButton\", \"Create new hard game\", buttonActionListener));\n return newMenu;\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "94f78ad9c8f40e830cfa55c959592686", "score": "0.0", "text": "@Override\n\tpublic void onClick(View v) {\n\t\tif (v.getId() == ll_Other.getId()) {\n\t\t\t// bdl.putInt(\"index\", 5);\n\t\t} else {\n\t\t\tIntent intent = new Intent(getActivity(), Help_sub_Activity.class);\n\t\t\tBundle bdl = new Bundle();\n\t\t\tif (v.getId() == ll_recharge.getId()) {\n\t\t\t\tbdl.putInt(\"index\", 0);\n\t\t\t} else if (v.getId() == ll_addmoney.getId()) {\n\t\t\t\tbdl.putInt(\"index\", 1);\n\t\t\t} else if (v.getId() == ll_offer.getId()) {\n\t\t\t\tbdl.putInt(\"index\", 2);\n\t\t\t} else if (v.getId() == ll_tansfer.getId()) {\n\t\t\t\tbdl.putInt(\"index\", 3);\n\t\t\t} else if (v.getId() == ll_account.getId()) {\n\t\t\t\tbdl.putInt(\"index\", 4);\n\t\t\t}\n\t\t\tintent.putExtras(bdl);\n\t\t\tstartActivity(intent);\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "fd7df110e087032be8c98522c4493f41", "score": "0.6681592", "text": "@Override\n public void otvori() {\n }", "title": "" }, { "docid": "fd7df110e087032be8c98522c4493f41", "score": "0.6681592", "text": "@Override\n public void otvori() {\n }", "title": "" }, { "docid": "ccbad2fe39581989696edf7ff479266d", "score": "0.65706384", "text": "private static void somrtinhg() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4faa810505ebcb260aff0793654a731e", "score": "0.64830863", "text": "@Override\n\tpublic void refuel() {\n\t\t\n\t}", "title": "" }, { "docid": "646377f9a04958a6eeea1118fddba04e", "score": "0.64358324", "text": "@Override\n\tpublic void refuel() {\n\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.6373858", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "c63a11bb1bf0acb98a99c66ee94527a7", "score": "0.63142073", "text": "@Override\r\n\tpublic void ispeci() {\n\r\n\t}", "title": "" }, { "docid": "ccde520bca72caa0d77ef1b117291759", "score": "0.6233861", "text": "@Override\r\n\tpublic void osmossis() {\n\r\n\t}", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.6224095", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "9b8d94120800074e25f9674e2e960bd0", "score": "0.62156105", "text": "@Override\n public void curar() {\n\n }", "title": "" }, { "docid": "73d2e78e03547e3a30a40b196bae2c7d", "score": "0.61959624", "text": "@Override\r\n\tpublic void calificar() {\n\r\n\t}", "title": "" }, { "docid": "74a1be816f56189120d6d74f61abd8f9", "score": "0.6177264", "text": "@Override\n\tpublic void apagate() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "9674eaf92d88fa5ee1741a3c135f859c", "score": "0.609503", "text": "@Override\n\tpublic void Resert() {\n\n\t}", "title": "" }, { "docid": "c04e1693c791e5601b6d72a13641e7b1", "score": "0.60708153", "text": "@Override\n\tpublic void angriff() {\n\n\t}", "title": "" }, { "docid": "cce15f647f795017e06f2ca544477ccd", "score": "0.60667324", "text": "@Override\n\tpublic void chamCong() {\n\n\t}", "title": "" }, { "docid": "4a4d6ca4f76cf550f30a1b3469c5c600", "score": "0.6050197", "text": "@Override\n\tpublic void heilen() {\n\n\t}", "title": "" }, { "docid": "7aa6963c647c1b2028e2058b152485e1", "score": "0.60484", "text": "@Override\n\tpublic void generate() {\n\t\t\n\t}", "title": "" }, { "docid": "bdc1683df7d1d6b2d988cd3acab4903e", "score": "0.60398114", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "588ab475e29950e8a1944c4a28fe2189", "score": "0.6027122", "text": "public void mo7036d() {\n }", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6020569", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "792350939017ccf304337ff492e7db06", "score": "0.601073", "text": "@Override\n\tpublic void init() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "1f6ca7603428a226b143ebf504f69fdb", "score": "0.600875", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "06b59299a5db6a0902fdbf88e7826cfa", "score": "0.599773", "text": "private void naceSer() {\n\n\t}", "title": "" }, { "docid": "2ccd2a90144fab8b5fa71c58ca003352", "score": "0.5978821", "text": "@Override\n\tpublic void falar() {\n\t\t\n\t}", "title": "" }, { "docid": "0f6e1929716bfb216fb0d53f4c72c746", "score": "0.5975817", "text": "@Override\n\tpublic void hesapla() {\n\t\t\n\t}", "title": "" }, { "docid": "16a4669a2213802ac94829fc8d9946ff", "score": "0.5935147", "text": "@Override\n\t\tpublic void init() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "fede515c585b365b04aace2b909737cf", "score": "0.59062445", "text": "@Override\r\n\tvoid dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5903432", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5886334", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "8a51433116320d5ea7de338cae668e7e", "score": "0.5878679", "text": "@Override\n\tpublic void competir() {\n\t\t\n\t}", "title": "" }, { "docid": "69b1247a4afd513b9853da385d6f2d24", "score": "0.5865623", "text": "@Override\n\tpublic void resta() {\n\t\t\n\t}", "title": "" }, { "docid": "b8693030a2b5a0ed9423a2578e5d2a26", "score": "0.58643967", "text": "@Override\n\tpublic void toto() {\n\t\t\n\t}", "title": "" }, { "docid": "f3d9d337b86266fa06b6c124066ba10f", "score": "0.5853753", "text": "@Override\n\tpublic void suivant() {\n\n\t}", "title": "" }, { "docid": "ab2f45ed8ffa08a06ff449780f0ea9da", "score": "0.5835419", "text": "@Override\r\n\tpublic void ha() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9293596216c60e2004e0a8cfb950ad0f", "score": "0.5823172", "text": "@Override\r\n\tpublic void pripremi() {\n\r\n\t}", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5800657", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "8a33b8de7a2fdf8b7088903dc4a4cf5f", "score": "0.5779682", "text": "@Override\n\tpublic void affiche() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "c19a49911957739008b73b032429cb01", "score": "0.57708335", "text": "public void initalize() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1717024d52ad1ad5517c9f135ea71904", "score": "0.57634485", "text": "@Override\r\n\tprotected void initValue()\r\n\t{\n\r\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "598681cc815af7b9f96d5d7ce97e7b20", "score": "0.5756299", "text": "public void mo5669b() {\n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.5737521", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "dbccea21c95a2d676935a3ea758b163e", "score": "0.57351506", "text": "@Override\r\n\tpublic void limpiar() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "94b0ced5bfd6c8796dfd708a164694df", "score": "0.5717778", "text": "@Override\n public void desplazarse() {\n }", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.571633", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "a1a79ff63f3eb784a0134fc70f7de913", "score": "0.57160354", "text": "@Override\n\tpublic void initdata() {\n\n\t}", "title": "" }, { "docid": "27e436f0a0c9200a542c73eabe9c3662", "score": "0.57140064", "text": "private void Met4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6c823d8b0c4f55d3f03359daefc39a00", "score": "0.5712678", "text": "@Override\n\tpublic void lanzar() {\n\n\t}", "title": "" }, { "docid": "15823e29a9b2fc554cc535992e0eacee", "score": "0.5709881", "text": "@Override\r\n\tpublic void initData() {\n\r\n\r\n\t}", "title": "" }, { "docid": "0694b71fd24e10a480fa3f3dcd28b3ca", "score": "0.570341", "text": "public void mo7243j() {\n }", "title": "" }, { "docid": "9b197585ec90d98a2e41d154a1678e4a", "score": "0.57023877", "text": "@Override\n protected void refreshInit() {\n \n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701947", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "a3060192856bd2663b96bd0ef31d99fd", "score": "0.56853366", "text": "@Override\n\t\t\t\tpublic void refresh() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "c13ae19df69e3abfecf963fdcf9a29ee", "score": "0.568208", "text": "@Override\n\tpublic void c12() {\n\t\t\n\t}", "title": "" }, { "docid": "3207dcaa6322a2a59b6687b951ef91d7", "score": "0.5679023", "text": "@Override\n\tpublic void Damege() {\n\t\t\n\t}", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.5677706", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.5677706", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "5d97082ad890b2df7c126438819d2c54", "score": "0.5665557", "text": "private void envejecer() {\n\t\t\n\t}", "title": "" }, { "docid": "8c203fbc4b35fbc9b64bf6b47d67d29a", "score": "0.56584716", "text": "@Override\n\tpublic void freshStart() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "4dc967945b63b3f9ccc200b50799205b", "score": "0.56479424", "text": "@Override\n\tprotected Item func_149866_i() {\n return null;\n }", "title": "" }, { "docid": "4701bace660096d78c2bf92bfe4b6dd4", "score": "0.5643848", "text": "@Override\n\t\t\t\t\tpublic Sequence sequence() {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}", "title": "" }, { "docid": "8ce70d18e04299fa79dc9066550f3a42", "score": "0.56376165", "text": "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f2b0e20cc959024f21173c16e77430c4", "score": "0.5629117", "text": "@Override\n\tpublic void deneme() {\n\t\t\n\t}", "title": "" }, { "docid": "c54df76b32c9ed90efddc6fd149a38c7", "score": "0.5628332", "text": "@Override\n protected void init() {\n }", "title": "" }, { "docid": "892e81ba33fe99f590f49f4fd7ed10a8", "score": "0.5621647", "text": "private void init() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "412e5d9d9ceed77a8c31cb9312e427b3", "score": "0.5617086", "text": "public final void mo63019a() {\n }", "title": "" }, { "docid": "412e5d9d9ceed77a8c31cb9312e427b3", "score": "0.5617086", "text": "public final void mo63019a() {\n }", "title": "" }, { "docid": "1e530a3abecfdbdcf6f7ca4bd7294921", "score": "0.56150234", "text": "@Override\n\tpublic void andar() {\n\t\t\n\t}", "title": "" } ]
1bf89447b80ec86ff401a389c9f91f7d
/ access modifiers changed from: protected
[ { "docid": "bbbd791271b071b26abf6c5df3f2b590", "score": "0.0", "text": "public AudioProcessor[] buildAudioProcessors() {\n return new AudioProcessor[0];\n }", "title": "" } ]
[ { "docid": "e0d235a9af5c7ceee4489ed73581c1b6", "score": "0.6985213", "text": "@Override\n\tprotected void doProtectedAbstract() {\n\t\t\n\t}", "title": "" }, { "docid": "1dd3d9bdd67d8cc8bddfe021796a9286", "score": "0.6914707", "text": "@Override\n protected void lodate() {\n\n }", "title": "" }, { "docid": "76a80470fd21f5a9092c258ed3a8a632", "score": "0.6860902", "text": "private static void 로또번호리스트() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.684613", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "00075c50e26b18237953cd05ffd5428b", "score": "0.68108374", "text": "@Override\n\tpublic void beber() {\n\t\t\n\t}", "title": "" }, { "docid": "63a51b9825ac81396e1d7ad0b9f3ed82", "score": "0.6797614", "text": "@Override\n\tpublic void 군무() {\n\t\t\n\t}", "title": "" }, { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.6780245", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "8df2860821597c6966a39b685d85efbd", "score": "0.67736256", "text": "private FahrzeugVerwaltung() {\n\t}", "title": "" }, { "docid": "15ae679aae74424c73fde647cf4332f6", "score": "0.67607206", "text": "@Override\r\n\t\t\tpublic void hissetmek() {\n\r\n\t\t\t}", "title": "" }, { "docid": "434e4a5ff222046d0f614414fae44211", "score": "0.67433345", "text": "private Reflexion() {\n\t}", "title": "" }, { "docid": "095e6ff8bab7af049b3fedcf55fc5bad", "score": "0.6711464", "text": "private LieferungModul() {\r\n\t}", "title": "" }, { "docid": "76e3d99118a00e74a082f6a955778f7d", "score": "0.6679331", "text": "Grensesnitt(){}", "title": "" }, { "docid": "bfad11e436c98998f434617a4d2907e5", "score": "0.66108966", "text": "@Override\r\n\tpublic void adharno() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b7d3c2b49702a5ed673b243bf8d2b7c0", "score": "0.6593806", "text": "@Override\n\tprotected void funcionario() {\n\t\t\n\t}", "title": "" }, { "docid": "73f45b190ed6242b51c144a24f8d4b9e", "score": "0.6592596", "text": "abstract void mo14279d();", "title": "" }, { "docid": "fafc7a99b1e0f054152226485eece63e", "score": "0.6584937", "text": "protected void func_75487_m() { super.func_75487_m(); }", "title": "" }, { "docid": "dda3b5a5b8e9e69b6eec0807bf162606", "score": "0.65738505", "text": "@Override\r\n\tpublic void rozmnozovat() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a0486d5f3890f3b56ce5a39122c4bdd7", "score": "0.6565136", "text": "@Override\r\n\tvoid metodo4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b62655d47438ae6875a06d0702721dbc", "score": "0.65585476", "text": "@Override\r\n\t\t\tpublic void koklama() {\n\r\n\t\t\t}", "title": "" }, { "docid": "dc9f6ac22366497ef7fbccd6dcc8a72c", "score": "0.6541136", "text": "abstract void mo14278c();", "title": "" }, { "docid": "001227e6b58a587f9eb4f77b15fc3588", "score": "0.6536497", "text": "@Override\n\tprotected void local() {\n\t\t\n\t}", "title": "" }, { "docid": "9969c2cd0a26f223be9eea348d1c6160", "score": "0.6526963", "text": "private static void 로또수동생성() {\n\t\t\r\n\t}", "title": "" }, { "docid": "03b93c6668ea7af171bbcdb3af74bb4a", "score": "0.6525406", "text": "@Override\n public void bicar() {\n }", "title": "" }, { "docid": "d92d5fe4c6efcfe66d53457e76817518", "score": "0.6509001", "text": "@Override\r\n\t\t\tprotected void init() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "27c725838f280928d869cc973588317c", "score": "0.6468293", "text": "@Override\r\n\tpublic void doSelfOpertion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "72de7907ef7f55104d42291c18ea6ade", "score": "0.64390856", "text": "@Override\r\n\tprotected void abstractMethod() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c95af00aee2fa41e8a03e3640ca30750", "score": "0.64291835", "text": "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "title": "" }, { "docid": "c58bd028a86302d6e5fb5909e112e096", "score": "0.6426447", "text": "public abstract void mo1474d();", "title": "" }, { "docid": "288fd3ee71b736e770bbef790831c263", "score": "0.64262164", "text": "User mo18615e();", "title": "" }, { "docid": "9b05b4ea3be9777fdd711867d8e6192b", "score": "0.64213425", "text": "protected void a() {}", "title": "" }, { "docid": "7920c09db3c9e00c50166ff7173e38da", "score": "0.6406018", "text": "@Override \n public boolean purelyLogic(){ return true ; }", "title": "" }, { "docid": "42c3f8e63385f8e328b6828c1f7243d4", "score": "0.6381495", "text": "@Override\r\n\t\tpublic void method_4() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "6992d229a7587cf23baf9b2001bcb56c", "score": "0.6367651", "text": "protected abstract void mo766b();", "title": "" }, { "docid": "6c73b3a19c8a2b70a637cc3dbea4f39e", "score": "0.6358525", "text": "public abstract void mo42504a();", "title": "" }, { "docid": "a6e9388ba580a030c48b527221f8e81a", "score": "0.63504666", "text": "@Override\n\tpublic void actuar() {\n\t\t\n\t}", "title": "" }, { "docid": "d1bbb9bc3b89cd96535f71da8bdcaf2e", "score": "0.6332991", "text": "public abstract void mo1473c();", "title": "" }, { "docid": "edf377f03250c28c266b873c577d54a5", "score": "0.63245815", "text": "private VyhozeniVyjimky() {}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.63192105", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.63192105", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "61358eff9372995c8157b02d47a44a6a", "score": "0.63074166", "text": "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "title": "" }, { "docid": "e117c2e6c977500e710c0df626b9a8c6", "score": "0.63029677", "text": "protected void protectedInstanceMethod() {\n }", "title": "" }, { "docid": "2aec77e8c92f0b9edc995042f86a90da", "score": "0.6300197", "text": "public abstract void mo3874d();", "title": "" }, { "docid": "2467341b61e2b3185a3755dc7540bc55", "score": "0.62925434", "text": "public abstract void mo20553b();", "title": "" }, { "docid": "a5d63cf5eb472d80fba18b0149c96501", "score": "0.6292515", "text": "@Override\n\tpublic void memberSecession() {\n\t\t\n\t}", "title": "" }, { "docid": "a02f8e0f4ed0eefc7c02ba56f806759b", "score": "0.6285884", "text": "private Implementation() {\n \t}", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.62597466", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "5435fed6c0a9345524c30343d8ed9829", "score": "0.6250526", "text": "@Override\r\n\tpublic void entrenar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6bfb85fa08b97b89949cd0c2cb1aaa3b", "score": "0.62479556", "text": "protected MyNP() {/* intentionally empty block */}", "title": "" }, { "docid": "0b3fe0bfc146e24315d2b9321e87a8bf", "score": "0.62444234", "text": "abstract public void escribir();", "title": "" }, { "docid": "73b8b8eec1e17eae8b8035336277ea1b", "score": "0.62406546", "text": "@Override\n\tpublic void sub() {\n\t\t\n\t}", "title": "" }, { "docid": "2ca03152c97df4cbb73238cb18ab9f3d", "score": "0.62406254", "text": "private Accessors()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "title": "" }, { "docid": "618d7ccba57db26436549f0e57001667", "score": "0.6235406", "text": "private Method() {\n \n }", "title": "" }, { "docid": "3f8c4c47994abc0366f148133bc14791", "score": "0.6222499", "text": "abstract void mo14277b();", "title": "" }, { "docid": "e0484a0369823567b49e79228c2162ea", "score": "0.6195285", "text": "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "title": "" }, { "docid": "cce15f647f795017e06f2ca544477ccd", "score": "0.6167846", "text": "@Override\n\tpublic void chamCong() {\n\n\t}", "title": "" }, { "docid": "c612bcadafd393d086f44fd19558a8be", "score": "0.61663455", "text": "@Override\r\n\tpublic void inicialize() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.61604273", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b6d3acffe4d345e208dbd5404078f39a", "score": "0.615708", "text": "protected abstract Object method_752();", "title": "" }, { "docid": "1abb43ec3b7c525ddda45ed2a61eba02", "score": "0.6142619", "text": "@Override\r\n\t\t\tpublic void dusunme() {\n\r\n\t\t\t}", "title": "" }, { "docid": "c3c09d831bb60d8f829e9d8312c8333d", "score": "0.6140319", "text": "void method_5176() {\r\n super();\r\n }", "title": "" }, { "docid": "40577cf33330bd70c08bc8e310b4436d", "score": "0.613908", "text": "@Override\n\tpublic void falar() {\n\n\t}", "title": "" }, { "docid": "0d996fa345e18b74a73dce6394fc0b15", "score": "0.61268216", "text": "@Override\r\n\tpublic void sunricers() {\n\t\t\r\n\t}", "title": "" }, { "docid": "49474e2de35badd26c9f9e6f88122fce", "score": "0.612415", "text": "@Override\n\tpublic void dibujar() {\n\t\t\n\t}", "title": "" }, { "docid": "f350fb57d7c81ec6d70f2643960940a8", "score": "0.6116636", "text": "@Override \r\n public void init() {\n \r\n }", "title": "" }, { "docid": "106ce0ada7b978eeffda7ec9cccc29e2", "score": "0.61105543", "text": "public void дразнит() {\n\n\t}", "title": "" }, { "docid": "1c10afc999966d89d84d1fb549910281", "score": "0.61032933", "text": "@Override \n\t\tprotected void parse() {\t\t\t\n\t\t}", "title": "" }, { "docid": "3b072172b17a5e5ab0081f24545795f2", "score": "0.6093475", "text": "public void przymocowac() {\n\t\t\n\t}", "title": "" }, { "docid": "e41e83e59c632c7e6180786a0238f944", "score": "0.60933423", "text": "@Override\r\n\tpublic void cry() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e96e62953c081afe268a2011e40a4d1d", "score": "0.6080476", "text": "protected abstract void mo763a();", "title": "" }, { "docid": "80887229cd7860f253bdaefb01f1687d", "score": "0.60777485", "text": "protected void mo3535a() {\n }", "title": "" }, { "docid": "cfd9d53fc52f6a8d17c1c8a1cbece841", "score": "0.60692024", "text": "private Joueur(){\n\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.60676074", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "cef8fd91d7e1564d18744c43a537e46d", "score": "0.6064953", "text": "private SwephData() {\n\t}", "title": "" }, { "docid": "cd779aacc91809113f74aef470842acb", "score": "0.60541147", "text": "protected void init() {}", "title": "" }, { "docid": "b498ecba1a925940a261a229ab5a0dce", "score": "0.6048686", "text": "PublicAccess createPublicAccess();", "title": "" }, { "docid": "07641589c590a59be0ae70c608a2e6cf", "score": "0.6046419", "text": "private Vehicules() {\n\t // do nothing. \n\t }", "title": "" }, { "docid": "8d370a9943b8e2259c9e3e0d231de95d", "score": "0.60341626", "text": "public abstract void dibujar();", "title": "" }, { "docid": "7a64af47763e4842ef0277e0c557687f", "score": "0.6031872", "text": "@Override\n public void init() {\n }", "title": "" }, { "docid": "4dbddd6455ce7cd96d4f1150c905a6aa", "score": "0.60318375", "text": "private Tas() {\n\t}", "title": "" }, { "docid": "17e507b0166d99f88c8237ad30d967b7", "score": "0.60220635", "text": "public void zamowic() {\n\t\t\n\t}", "title": "" }, { "docid": "ebd0d0e1eca5adcf6bdd6fc222c55395", "score": "0.6021405", "text": "@Override\n\tpublic void Especial2() {\n\n\t}", "title": "" }, { "docid": "32c6659f4b67f97f906dd1d88fae1699", "score": "0.60207033", "text": "public abstract void mo23702Po();", "title": "" }, { "docid": "b1abf9b7f22449274272f392c17c3c3f", "score": "0.6019984", "text": "private void supporterHIMethod() {\n\t\t\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.60166955", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.60166955", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.6011175", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "47c70b4c1757f2858cdd69a1686306b3", "score": "0.60092366", "text": "public abstract void mo11892a();", "title": "" }, { "docid": "afe4974c1bb08d001eb247949dc197ba", "score": "0.60079384", "text": "public void publicar() {\n throw new UnsupportedOperationException(\"Not implemented yet.\");\r\n }", "title": "" }, { "docid": "eed6d7ba6b4a071c283e1203eb8bb526", "score": "0.6007775", "text": "@Override\n public void metoda1() {\n }", "title": "" }, { "docid": "b583470931c01877f41e1323b9bd826a", "score": "0.60069627", "text": "public abstract void mo20552a();", "title": "" }, { "docid": "56d0c01632d308f4ff593bd36e14fae0", "score": "0.59893525", "text": "@Override\r\n public boolean isPublic(){\n return false;\r\n }", "title": "" }, { "docid": "a3c53afc6cb98e61c5b6fa56d7d8febe", "score": "0.5983185", "text": "protected Item A()\r\n/* 246: */ {\r\n/* 247:278 */ return ItemList.bu;\r\n/* 248: */ }", "title": "" }, { "docid": "60e50abec8df6d4d5a80de13ba750171", "score": "0.59831405", "text": "@Override\r\n\tpublic void retour() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8767ced22aa4a3b92e8c276ad6561981", "score": "0.5982191", "text": "private attrib_mod()\n\t{\n\t}", "title": "" }, { "docid": "de5597283162c1e963438ce8fd55da9e", "score": "0.59818125", "text": "void method_9782() {\r\n super();\r\n }", "title": "" }, { "docid": "69b02b239ae9076ca877c903d4790caa", "score": "0.5980198", "text": "private Helper() {\n\t}", "title": "" }, { "docid": "69b02b239ae9076ca877c903d4790caa", "score": "0.5980198", "text": "private Helper() {\n\t}", "title": "" }, { "docid": "b2cde12cf50e0ec60f909684878e936c", "score": "0.59801286", "text": "@Override\n\tpublic void wykonajZamknij() {\n\n\t}", "title": "" }, { "docid": "fdb481d86c348e6d5aa09717b8e51230", "score": "0.5979829", "text": "@Override\n public void m() {\n \n }", "title": "" }, { "docid": "d45e7311f809d3019d7382af887cb3cf", "score": "0.5974814", "text": "@Override\r\n\tpublic void dehlidervels() {\n\t\t\r\n\t}", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5967113", "text": "@Override\n protected void initialize() {\n }", "title": "" } ]
acb5a691358227e23091bab17893fe13
calling the inbound port with the corresponding offered method.
[ { "docid": "dcd4286ea22db12af68aaf9943c62907", "score": "0.0", "text": "@Override\n public void acceptMessage(MessageI m) throws Exception{\n ((ReceptionCI)this.offering).acceptMessage(m);\n }", "title": "" } ]
[ { "docid": "6aca00db9d8fedf1c872e6a0c0b3c68d", "score": "0.6048677", "text": "public IInputPort getInput(int number);", "title": "" }, { "docid": "49f77fd6d3499825263797eb78e1c6cb", "score": "0.58904374", "text": "@Override\n protected String getMethodArgument () {\n return \"PORT \" + portNumber;\n }", "title": "" }, { "docid": "6fe114f9663eeee1dfbab78e06b148ec", "score": "0.5684719", "text": "@Override\n\tpublic void PortConnecting(String arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "4dbcccdb59b1797a8def466c04b4945c", "score": "0.5644724", "text": "public int GetPort();", "title": "" }, { "docid": "c06d1d3b3fe7b5e0fba209c4436831cb", "score": "0.5612557", "text": "public int getInPort();", "title": "" }, { "docid": "eaed2a1f4d31f1f7438a6422baf931ee", "score": "0.56088746", "text": "@Override\n public void setInPort(InPort inPort) {\n }", "title": "" }, { "docid": "1ea461122c2b57bf608143ca7ab64efb", "score": "0.558947", "text": "public void testSetPort() {}", "title": "" }, { "docid": "bf347ef6324882e37679cf3bb659c34a", "score": "0.5580881", "text": "int getFromPort();", "title": "" }, { "docid": "4358c58f30254aac07c953b3282f0881", "score": "0.5555772", "text": "RemoteMethodIF getMethod();", "title": "" }, { "docid": "f12bb8519d647accdf8ddd565d38a5cc", "score": "0.5546156", "text": "public void connectTo(InputPort inputPort) throws PortException;", "title": "" }, { "docid": "1795302af2374e1f9533a883e64f5a11", "score": "0.5522449", "text": "public R invoke(I source);", "title": "" }, { "docid": "920b643d89b123a936ac2e5c8addddc4", "score": "0.5519661", "text": "@Override public IfaceSpecial getCallSpecial(IfaceProgramPoint pt,IfaceMethod fm)\n{\n return call_factory.getSpecial(pt,fm);\n}", "title": "" }, { "docid": "b8854e4ce1231e7e0a2525b1f295d09a", "score": "0.54296386", "text": "@Override\r\n public MethodCall readMethodCall(InputStream in) throws Exception {\r\n SAXBuilder sax = new SAXBuilder();\r\n Document doc = sax.build(in);\r\n return readMethodCallFromElement(doc.getRootElement());\r\n }", "title": "" }, { "docid": "dd66ec178a1d61a7394de80a3aed7ecf", "score": "0.53272533", "text": "public abstract void handle(MethodCall call);", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.530408", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.530408", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.530408", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.530408", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.530408", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.530408", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.530408", "text": "int getPort();", "title": "" }, { "docid": "fc619d108dbd7ebe32ec7e172c52ac12", "score": "0.5291467", "text": "public abstract Integer port();", "title": "" }, { "docid": "050f2d84112ce01fdb97b99c2a2179d7", "score": "0.52300787", "text": "Port getNextPort();", "title": "" }, { "docid": "76598b77ca4c7d85b38d900b6a5aa06c", "score": "0.52090377", "text": "public abstract String invoke(String request);", "title": "" }, { "docid": "c2b9ba572030f90eb8f0d0ed462db73c", "score": "0.5190451", "text": "public void invoke() throws IllegalArgumentException, SecurityException,\n\t\t\tIllegalAccessException, InvocationTargetException,\n\t\t\tNoSuchMethodException;", "title": "" }, { "docid": "3a4aef1f57e90bc65dbb57747d37816d", "score": "0.51813424", "text": "public int getPort();", "title": "" }, { "docid": "3a4aef1f57e90bc65dbb57747d37816d", "score": "0.51813424", "text": "public int getPort();", "title": "" }, { "docid": "d71d9bcc9b8cd934a2724adb7beb2efa", "score": "0.51790786", "text": "Object invoke(Remote obj,\n java.lang.reflect.Method method,\n Object[] params,\n long opnum)\n throws Exception;", "title": "" }, { "docid": "eec7af353404480bf942d9768dd2c038", "score": "0.5158667", "text": "public abstract R call();", "title": "" }, { "docid": "1aac44c3eaff240d75a269d5ea189562", "score": "0.51574725", "text": "public interface LoginPort {\n void login(String username,String password,OnLoginListener onLoginListener);\n}", "title": "" }, { "docid": "e7e6af44e1a9f68ec925f0a1c4f5524a", "score": "0.5151898", "text": "Port getPort();", "title": "" }, { "docid": "aea8ec5ffe0c855e854b350094856ad7", "score": "0.51514745", "text": "@Test\n public void testInvokePortHappyPath() throws Exception {\n\n\n Integer oResponse = (Integer) oHelper.invokePort(this, this.getClass(), \"helperMethod\", new Integer(100));\n assertNotNull(\"invokePort failed to return a value.\", oResponse);\n assertTrue(\"Response was incorrect type.\", oResponse instanceof Integer);\n assertEquals(\"Incorrect value returned.\", 100, oResponse.intValue());\n\n }", "title": "" }, { "docid": "a3ca6584e3dcdacc4370a1d6d129fdff", "score": "0.5142162", "text": "CallMediatorInputConnector createCallMediatorInputConnector();", "title": "" }, { "docid": "95db8a4308ec538128c604d0125b2c09", "score": "0.5136254", "text": "public int getInboundPort() {\n return inboundPort;\n }", "title": "" }, { "docid": "7cef5cd43cecb516df768fcbe147b426", "score": "0.51286656", "text": "private static void test(String method, Object toSend) {\n\n }", "title": "" }, { "docid": "a30dad2ce72328a19352e9dd82579f59", "score": "0.512663", "text": "void handle(StreamingMethod method, String referenceId, String errorMessage);", "title": "" }, { "docid": "d148aabb00254c4a5b260695cd70a30d", "score": "0.51225436", "text": "private Mono<Object> invokeMethod(AbstractActor actor, Method method, Object input) {\n return Mono.fromSupplier(() -> {\n try {\n if (method.getParameterCount() == 0) {\n return method.invoke(actor);\n } else {\n // Actor methods must have a one or no parameter, which is guaranteed at this point.\n return method.invoke(actor, input);\n }\n } catch (RuntimeException e) {\n throw e;\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n }", "title": "" }, { "docid": "b0a2cb0d6682744ec5a3c79c8d4db095", "score": "0.5121274", "text": "public int getOutPort();", "title": "" }, { "docid": "4043015e2c8cdbdc17fa219425497a88", "score": "0.5119875", "text": "SignalPort getInPort();", "title": "" }, { "docid": "4dade7796239ee4110e700bb25d3b253", "score": "0.5118284", "text": "CallingMethod(String methodName, LinkedList<String> methodInput) {\n this.methodName = methodName;\n this.methodInput= methodInput;\n }", "title": "" }, { "docid": "e605033a5a42cc67c70fd3a979e0e0aa", "score": "0.51055366", "text": "Port getPortA();", "title": "" }, { "docid": "2547b382e549c552d7144012a9b5171d", "score": "0.5086141", "text": "protected abstract int getDefaultPort();", "title": "" }, { "docid": "3fe08580e808e63c6ce0e05b7f80a1c5", "score": "0.5080224", "text": "boolean sailTo(Port p);", "title": "" }, { "docid": "456ac7c03bf66ab893d9b672edca85e1", "score": "0.5077724", "text": "@Override\n\tpublic void call() {\n\t\tSystem.out.println(\"Called by Mi Phone.\");\n\t}", "title": "" }, { "docid": "a02ebe67eaf5e64a7e5cff2c93f9d5d6", "score": "0.50773185", "text": "Port getPortB();", "title": "" }, { "docid": "0d6afc60ef053904359d864249bc122b", "score": "0.50685436", "text": "void receive(int port, MessageHandler handler);", "title": "" }, { "docid": "a7c90b22d78ed6a66bf5ea7a715f20e8", "score": "0.50464374", "text": "public void callThis1(String method, String arg) throws IOException {\n\t\tswitch (method) {\n\t\tcase \"add\":\n\t\t\tadd(arg);\n\t\t\tbreak;\n\t\tcase \"commit\":\n\t\t\tcommit(arg);\n\t\t\tbreak;\n\t\tcase \"rm\":\n\t\t\trm(arg);\n\t\t\tbreak;\n\t\tcase \"find\":\n\t\t\tfind(arg);\n\t\t\tbreak;\n\t\tcase \"checkout\":\n\t\t\tcheckout(arg);\n\t\t\tbreak;\n\t\tcase \"branch\":\n\t\t\tbranch(arg);\n\t\t\tbreak;\n\t\tcase \"rm-branch\":\n\t\t\trm_branch(arg);\n\t\t\tbreak;\n\t\tcase \"reset\":\n\t\t\treset(Integer.parseInt(arg));\n\t\t\tbreak;\n\t\tcase \"merge\":\n\t\t\tmerge(arg);\n\t\t\tbreak;\n\t\tcase \"rebase\":\n\t\t\trebase(arg);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"No command with that name exists.\");\n\t\t}\n\t}", "title": "" }, { "docid": "22f996330188db38613ad22d2f99b7c9", "score": "0.50327295", "text": "int getLocalPort();", "title": "" }, { "docid": "f67d4894fd576eb7b99e4d8c6336e147", "score": "0.5031257", "text": "void invoke();", "title": "" }, { "docid": "433b40fac497204b837ca95677c02279", "score": "0.5027132", "text": "public int getPort()\r\n/* 75: */ {\r\n/* 76: 90 */ return this.port;\r\n/* 77: */ }", "title": "" }, { "docid": "ab37b4703fa01f895da37fff2afa15fb", "score": "0.5021308", "text": "String getPort();", "title": "" }, { "docid": "ab37b4703fa01f895da37fff2afa15fb", "score": "0.5021308", "text": "String getPort();", "title": "" }, { "docid": "7b1db1549713e1e1b2e24f09e2a35a5a", "score": "0.50194037", "text": "public void handle(Call call)\r\n {\r\n delegate.handle(call);\r\n }", "title": "" }, { "docid": "c4699f67fe83239ef678fb1bb4252f52", "score": "0.50156605", "text": "public void setPort(int port)\r\n/* 80: */ {\r\n/* 81: 94 */ this.port = port;\r\n/* 82: */ }", "title": "" }, { "docid": "67cf2d4a2115649012f09f0b022fd982", "score": "0.5015455", "text": "public String getInboundInterface();", "title": "" }, { "docid": "f325f05b00a76ab332fbd4308dfa11bb", "score": "0.49932557", "text": "Object remoteInvoke (int object, int method, final Class returnType, Object[] args, Class[] argTypes) throws Exception;", "title": "" }, { "docid": "90aa76a0f6cef1a98c6f0a03262c4c37", "score": "0.49792895", "text": "long getPort();", "title": "" }, { "docid": "77a3ccb8b19b38f658a8a52b815519f7", "score": "0.4970396", "text": "public ConnectToOtherRPCs(int p_num)\n {\n port_num = p_num;\n }", "title": "" }, { "docid": "e2dc87f69f28b103d9412e364d11560c", "score": "0.4969252", "text": "public abstract int[] getAvailableInboundPorts();", "title": "" }, { "docid": "dce2cf27795d71da674606aff22b0612", "score": "0.4965274", "text": "public int getRemotePort();", "title": "" }, { "docid": "621b8f73be23be1f53f668978c90bb58", "score": "0.49579155", "text": "public SocketProvider sendPortCommand(Command command, Reply commandReply)\n throws IOException, FtpWorkflowException, FtpIOException {\n \n setConnectionStatusLock(CSL_INDIRECT_CALL);\n setConnectionStatus(FTPConnection.BUSY);\n \n SocketProvider provider = null;\n \n if (getProxy() == null) {\n ServerSocket server = ServerSocketFactory.getDefault()\n .createServerSocket();\n InetSocketAddress isa = new InetSocketAddress(socketProvider.socket()\n .getLocalAddress(), 0);\n \n server.bind(isa);\n int port = server.getLocalPort();\n\n StringBuffer modifiedHost = new StringBuffer();\n modifiedHost.append(server.getInetAddress().getHostAddress().replace(\n '.', ','));\n modifiedHost.append(\",\");\n modifiedHost.append(port >> 8);\n modifiedHost.append(\",\");\n modifiedHost.append(port & 0x00ff);\n\n Command portCommand = new Command(Command.PORT, modifiedHost.toString());\n Reply portReply = sendCommand(portCommand);\n portReply.dumpReply();\n portReply.validate();\n commandReply.setLines(sendCommand(command).getLines());\n commandReply.dumpReply();\n commandReply.validate();\n provider = new SocketProvider(server.accept(), false,\n getDownloadBandwidth(), getUploadBandwidth());\n } else {\n InetSocketAddress portSocketAddress = new InetSocketAddress(getAddress().getAddress(), 0);\n Socket proxySocket = getProxy().bind(portSocketAddress);\n \n int port = getProxy().getBindAddress().getPort();\n\n StringBuffer modifiedHost = new StringBuffer();\n modifiedHost.append(getProxy().getProxyAddress().getAddress().getHostAddress().replace(\n '.', ','));\n modifiedHost.append(\",\");\n modifiedHost.append(port >> 8);\n modifiedHost.append(\",\");\n modifiedHost.append(port & 0x00ff);\n\n Command portCommand = new Command(Command.PORT, modifiedHost.toString());\n Reply portReply = sendCommand(portCommand);\n portReply.dumpReply();\n portReply.validate();\n commandReply.setLines(sendCommand(command).getLines());\n commandReply.dumpReply();\n commandReply.validate();\n \n provider = new SocketProvider(proxySocket, false, getDownloadBandwidth(), getUploadBandwidth()); \n }\n \n provider.socket().setReceiveBufferSize(65536);\n provider.socket().setSendBufferSize(65536);\n provider.setSSLMode(getConnectionType());\n if (connectionType == FTPConnection.AUTH_TLS_FTP_CONNECTION\n || connectionType == FTPConnection.AUTH_SSL_FTP_CONNECTION\n || connectionType == FTPConnection.IMPLICIT_SSL_WITH_CRYPTED_DATA_FTP_CONNECTION\n || connectionType == FTPConnection.IMPLICIT_TLS_WITH_CRYPTED_DATA_FTP_CONNECTION)\n provider.negotiate(this.getTrustManagers(),this.getKeyManagers());\n \n setConnectionStatus(FTPConnection.IDLE);\n setConnectionStatusLock(CSL_DIRECT_CALL);\n \n return provider;\n\n }", "title": "" }, { "docid": "87e42b7778ef015ed8f2a6171ea3355b", "score": "0.49525154", "text": "int getRemotePort();", "title": "" }, { "docid": "87e42b7778ef015ed8f2a6171ea3355b", "score": "0.49525154", "text": "int getRemotePort();", "title": "" }, { "docid": "6ff2a18263f56e7117a2d3bc7667b6ca", "score": "0.4946983", "text": "private void startRMIUPdateProtocol(Response res) {\n \n }", "title": "" }, { "docid": "367efd5abb68a141e848dc5187ec45df", "score": "0.4937388", "text": "private void processPort(AllocatedSerialPort asp)\n\t{\n\t\t// Connect to telnet port 23 on digi device.\n\t\tBasicClient telnetCon = new BasicClient(parent.getDigiIpAddr(), 23);\n\t\tStreamReader streamReader = null;\n\t\tString cmd = null;\n\t\ttry\n\t\t{\n\t\t\tLogger.instance().debug2(module + \" connecting to \" + telnetCon.getName());\n\t\t\ttelnetCon.connect();\n\t\t\t\n\t\t\tLogger.instance().debug3(module + \" spawning StreamReader to read telnet 23 port.\");\n\t\t\t\n\t\t\tstreamReader = new StreamReader(telnetCon.getInputStream(), this);\n\t\t\tstreamReader.setCapture(true);\n\t\t\tstreamReader.start();\n//\t\t\ttry { sleep(500L); } catch(InterruptedException ex) {}\n\t\t\t\n\t\t\t// Login with supplied username & password\n\t\t\tcmd = \"(initial connect)\";\n\t\t\tif (!sendAndAwaitResponse(null, 5, \"login:\".getBytes(), telnetCon, streamReader))\n\t\t\t{\n\t\t\t\tbyte[] sessionBuf = streamReader.getSessionBuf();\n\t\t\t\tthrow new IOException(\"Never got login prompt from digiconnect device \" \n\t\t\t\t\t+ parent.getDigiIpAddr() + \", received \" + sessionBuf.length + \" bytes: \"\n\t\t\t\t\t+ AsciiUtil.bin2ascii(streamReader.getSessionBuf()));\n\t\t\t}\n\t\t\tcmd = parent.getDigiUserName()+EOL;\n\t\t\tif (!sendAndAwaitResponse(cmd.getBytes(), 5, \"Password:\".getBytes(), telnetCon, streamReader))\n\t\t\t\tthrow new IOException(\"Never got password prompt from digiconnect device \" \n\t\t\t\t\t+ parent.getDigiIpAddr());\n\t\t\tcmd = parent.getDigiPassword()+EOL;\n\t\t\tif (!sendAndAwaitResponse(cmd.getBytes(), 5, digiPrompt, telnetCon, streamReader))\n\t\t\t{\n\t\t\t\tif (!sendAndAwaitResponse(EOL.getBytes(), 3, digiPrompt, telnetCon, streamReader))\n\t\t\t\t\tthrow new IOException(\"Never got initial prompt after login from digiconnect device \" \n\t\t\t\t\t\t+ parent.getDigiIpAddr());\n\t\t\t}\n\t\t\t\n\t\t\t// Build command to send to telnet with settings in transport medium.\n\t\t\tStringBuilder cmdb = new StringBuilder(\"set serial port=\" + asp.ioPort.getPortNum()\n\t\t\t\t+ \" flowcontrol=none\");\n\t\t\t\n\t\t\t// KLUDGE - Sometimes the modem goes catatonic. A baud rate change seems to kick it in the\n\t\t\t// head.\n//\t\t\tint toggleBaud = asp.transportMedium.getBaud() == 1200 ? 9600 : 1200;\n//\t\t\tcmd = cmdb.toString() + \" baud=\" + toggleBaud + EOL;\n//\t\t\tLogger.instance().debug1(module + \" KLUDGE sending '\" + cmd + \"'\");\n//\t\t\tif (!sendAndAwaitResponse(cmd.getBytes(), 5, digiPrompt, telnetCon, streamReader))\n//\t\t\t{\n//\t\t\t\tLogger.instance().failure(module + \" KLUDGE failure!\");\n//\t\t\t\t// Failed to get prompt after sending show serial command.\n//\t\t\t\tasp.ioPort.setConfigureState(PollingThreadState.Failed);\n//\t\t\t\treturn;\n//\t\t\t}\n//\t\t\tasp.basicClient.sendData(\"AT\\r\".getBytes());\n//\t\t\ttry { Thread.sleep(1000L); } catch(InterruptedException ex) {}\n\n\t\t\t// End of Kludge, build actual params for this session\n\t\t\tif (asp.transportMedium.getBaud() > 0)\n\t\t\t\tcmdb.append(\" baud=\" + asp.transportMedium.getBaud());\n\t\t\tif (asp.transportMedium.getDataBits() > 0)\n\t\t\t\tcmdb.append(\" databits=\" + asp.transportMedium.getDataBits());\n\t\t\tif (asp.transportMedium.getStopBits() > 0)\n\t\t\t\tcmdb.append(\" stopbits=\" + asp.transportMedium.getStopBits());\n\t\t\tParity parity = Parity.fromCode(asp.transportMedium.getParity());\n\t\t\tif (parity != Parity.Unknown)\n\t\t\t\tcmdb.append(\" parity=\" + parity.toString().toLowerCase());\n\t\t\tcmd = cmdb.toString() + EOL;\n\t\t\t\n\t\t\tif (!sendAndAwaitResponse(cmd.getBytes(), 5, digiPrompt, telnetCon, streamReader))\n\t\t\t{\n\t\t\t\tthrow new IOException(\"No response or invalid response to set serial\");\n\t\t\t}\n\t\t\t\n\t\t\tcmd = \"show serial port=\" + asp.ioPort.getPortNum() + EOL;\n\t\t\tif (!sendAndAwaitResponse(cmd.getBytes(), 5, digiPrompt, telnetCon, streamReader))\n\t\t\t\tthrow new IOException(\"No response or invalid response to show serial\");\n\t\t\t\n\t\t\tif (!verifySettings(asp.ioPort.getPortNum(), asp.transportMedium))\n\t\t\t\tthrow new IOException(\"verify settings failed. Response was '\" + captured + \"'\");\n\t\t\t\n\t\t\tasp.ioPort.setConfigureState(PollingThreadState.Success);\n\t\t\tconsecutiveConfigFails = 0;\n\t\t}\n\t\tcatch (Exception ex)\n\t\t{\n\t\t\tconsecutiveConfigFails++;\n\t\t\tLogger.instance().failure(module + \" Error sending '\" + cmd\n\t\t\t\t+ \"' to digi device \" + telnetCon.getName() + \", consecutive failure=\" \n\t\t\t\t+ consecutiveConfigFails + \": \" + ex);\n\t\t\tasp.ioPort.setConfigureState(PollingThreadState.Failed);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tLogger.instance().debug3(module + \" Closing telnet 23 to digi.\");\t\t\n\t\t\tif (streamReader != null)\n\t\t\t{\n\t\t\t\tstreamReader.shutdown();\n\t\t\t\ttry { sleep(100L); } catch(InterruptedException ex) {}\n\t\t\t}\n\t\t\ttelnetCon.disconnect();\n\t\t}\n\t\tif (consecutiveConfigFails > MaxConsecutiveConfigFails)\n\t\t\ttryRebootDigi();\n\t}", "title": "" }, { "docid": "b7d5d32214e54ef9e217a2073d75be88", "score": "0.49279168", "text": "@Test(expected = SocketTimeoutException.class)\n public void testInvokePortWithInvocationTargetException() throws Exception {\n\n\n oHelper.invokePort(this, this.getClass(), \"exceptionalMethod\", 100);\n\n }", "title": "" }, { "docid": "f5b4fb7f2402a8e49beeaf20b251e514", "score": "0.4912429", "text": "@Override\r\n\tpublic void invoke(String urip) {\r\n\t\tif (book == null)\r\n\t\t\tbook=context.getCurrentAccountBook();\r\n\t\tbaseCurrency = book.getCurrencies().getBaseType();\r\n\t\taccels = new AccelKeys();\r\n\t\tif (preferences == null){\r\n\t\t\tMRBPreferences2.loadPreferences(context);\r\n\t\t\tpreferences = MRBPreferences2.getInstance();\r\n\t\t}\r\n\t\turi = urip;\r\n\t\tcommand = uri;\r\n\t\tint theIdx = uri.indexOf('?');\r\n\t\tif(theIdx>=0) {\r\n\t\t\tcommand = uri.substring(0, theIdx);\r\n\t\t}\r\n\t\telse {\r\n\t\t\ttheIdx = uri.indexOf(':');\r\n\t\t\tif(theIdx>=0) {\r\n\t\t\t\tcommand = uri.substring(0, theIdx);\r\n\t\t\t}\r\n\t\t}\r\n\t\t/*\r\n\t\t * showConsole will be on AWT-Event-Queue, all other commands will be on the thread of the calling\r\n\t\t * program, make sure all commands are processed on the AWT-Event-Queue to preserve sequence\r\n\t\t */\r\n\t\trwDebugInst.debug(\"Main\",\"invoke\",MRBDebug.SUMMARY,\"Command \"+ command);\r\n\t\tswitch (command) {\r\n\t\tcase \"showconsole\" :\r\n\t\t\tshowConsole();\r\n\t\t\tbreak;\r\n\t\tcase Constants.VIEWREPORTCMD :\r\n\t\t\tviewReport(uri);\r\n\t\t\tbreak;\r\n\t\tcase Constants.SHOWHELP :\r\n\t\t\tString url =Constants.HELPURL;\r\n\r\n\t\t\tif(Desktop.isDesktopSupported()){\r\n\t\t\t\tDesktop desktop = Desktop.getDesktop();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdesktop.browse(new URI(url.trim()));\r\n\t\t\t\t} catch (IOException | URISyntaxException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\ttry {\r\n\t\t\t\t\tthrow new IOException(\"Extension attempted to exec external process: xdg-open \"+url);\r\n\t\t\t\t\t//runtime.exec(\"xdg-open \" + url);\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "101a51f621746502d613c8fbb516c667", "score": "0.49063167", "text": "protected MethodResultEntry invokeMethod(AbstractMethodCallEntry call, Object localDelegate)\n\t\t\tthrows IllegalAccessException {\n\t\tif (log.isDebugEnabled())\n\t\t\tlog.debug(\"call is \" + call.getClass().getName());\n\t\tMethodResultEntry result = call.invokeMethod(localDelegate);\n\n\t\tif (log.isDebugEnabled())\n\t\t\tlog.debug(\"Got result \" + result.result);\n\t\treturn result;\n\t}", "title": "" }, { "docid": "9ed5918a759f33d04699920492ee5772", "score": "0.4900236", "text": "private boolean incomingCall(java.util.EventObject r1) throws javax.sip.SipException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e6 in method: com.android.server.sip.SipSessionGroup.SipSessionImpl.incomingCall(java.util.EventObject):boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.server.sip.SipSessionGroup.SipSessionImpl.incomingCall(java.util.EventObject):boolean\");\n }", "title": "" }, { "docid": "b9bc079369d401ca66c27a15e718373d", "score": "0.4899083", "text": "public T casePort(Port object)\n {\n return null;\n }", "title": "" }, { "docid": "6bb313e624e2075bb1fd491e222882be", "score": "0.48933786", "text": "public int callInteger( String method, Object... params ) throws IOException, InterruptedException{\n\t\t\t\n\t\t\treturn call(method, Integer.class, transformParametersArrayIntoCollection(params) );\t\t\t\n\t\t}", "title": "" }, { "docid": "b1ae626bf3a417d06614a13b0a962031", "score": "0.48879033", "text": "public interface InvocationHandler {\n\tvoid invoke(Object o,Method method);\n}", "title": "" }, { "docid": "d2344fb2f9df333c0bac857d5a58b48c", "score": "0.48837066", "text": "public void callThis0(String method) {\n\t\tswitch (method) {\n\t\tcase \"log\":\n\t\t\tlog();\n\t\t\tbreak;\n\t\tcase \"global-log\":\n\t\t\tglobal_log();\n\t\t\tbreak;\n\t\tcase \"status\":\n\t\t\tstatus();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"No command with that name exists.\");\n\t\t}\n\t}", "title": "" }, { "docid": "2a9363006f80651576e20172ff3c164b", "score": "0.4876529", "text": "@DISPID(6) //= 0x6. The runtime will prefer the VTID if present\n @VTID(17)\n void ftpPort(\n int retval);", "title": "" }, { "docid": "85eec47a34de7f8478dd97170c925e46", "score": "0.48721814", "text": "public void onInvoke(String funcName, Command command);", "title": "" }, { "docid": "8856f8842b6a5950483b17eb45a5e711", "score": "0.48714542", "text": "@Test\n public void testInvokePortRetrySettingsHappyPath() throws Exception {\n\n\n Integer oResponse = (Integer) oHelper.invokePort(this, this.getClass(), \"helperMethod\", new Integer(100));\n assertNotNull(\"invokePort failed to return a value.\", oResponse);\n assertTrue(\"Response was incorrect type.\", oResponse instanceof Integer);\n\n }", "title": "" }, { "docid": "df518ef07c79f55f89289f38fe53eb4e", "score": "0.4870191", "text": "SocksProxy setAcceptableMethods(List<SocksMethod> methods);", "title": "" }, { "docid": "3273749943b86bfa373c9b2623831c64", "score": "0.48600492", "text": "OutPort getOutPort();", "title": "" }, { "docid": "52ae9d33c8693fb72b7f28bfcb94a899", "score": "0.48504815", "text": "Connection vtDial(String dialString) throws CallStateException;", "title": "" }, { "docid": "46018eeb6304e43e4eb07e14d46ba6f0", "score": "0.48501748", "text": "public interface IAeInvokeActivityAdapter extends IAeImplAdapter {\r\n /**\r\n * Returns true if this invoker is targeting a one-way operation\r\n */\r\n public boolean isOneWay();\r\n}", "title": "" }, { "docid": "467f365af52335a1df031bd66bd52cf1", "score": "0.48370558", "text": "public void setMethodToCall(java.lang.String methodToCall) {\r\n this.methodToCall = methodToCall;\r\n }", "title": "" }, { "docid": "063a2ec2146aa202b966245896d4803f", "score": "0.48366275", "text": "@Override\r\n public void handleElementOpen(String uri, String name) {\n method = findMethod(ch.getCurrent().getClass(), name);\r\n // no such method found\r\n if (method == null) {\r\n throw new IllegalArgumentException(\"The method \" + name + \" is missing in \" + ch.getCurrent().getClass());\r\n }\r\n ch.setCurrentMethod(method);\r\n }", "title": "" }, { "docid": "e29672bc2e14cd7672aff7885a371fee", "score": "0.48357278", "text": "@Override public void VisitMethodCallNode(ZMethodCallNode Node) {\n\t}", "title": "" }, { "docid": "56f51f6bddd2df4555cb62285ff87bb5", "score": "0.48322862", "text": "public native synchronized void chirpHandleTO();", "title": "" }, { "docid": "956b290fb2a23461b1270757d0dd5e4d", "score": "0.4824596", "text": "MethodCallResponseApiModel callMethod(String endpointId, MethodCallRequestApiModel request);", "title": "" }, { "docid": "c762a1c2ebebaa503ab383e7b7fa46ab", "score": "0.48239672", "text": "public void startConnection(String ip, int port);", "title": "" }, { "docid": "b4bb85d73322dd3053b3a0896811371e", "score": "0.48210815", "text": "protected <T> T call( String method, Class<T> clazz, Object params ) throws IOException, InterruptedException {\n\t\t\t\n\t\t\tCallHandler handler = createNewCallHandler();\n\t\t\thandlers.add(handler);\n\t\t\ttry{\n\t\t\t\t\n\t\t\t\treturn super.call(handler, method, clazz, params);\n\t\t\t}finally{\n\t\t\t\thandlers.remove(handler);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "1eb0eeb8cadd21fc7075d158d99d7719", "score": "0.48069385", "text": "public void setPort( int port ) { this.port = port; }", "title": "" }, { "docid": "99867b3726c836101b77405965d9e494", "score": "0.48057017", "text": "@Override\r\n\tpublic void invoke(HttpRequest req, HttpResponse res) {\n\t\tif(pipleLine!=null){\r\n\t\t\tpipleLine.invoke(req, res);\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "973d791e40256103037b222db0641221", "score": "0.4805138", "text": "public GetIPPort() {\n initComponents();\n }", "title": "" }, { "docid": "167f6c2da42539d3cac937137a988557", "score": "0.4803339", "text": "Integer securePort();", "title": "" }, { "docid": "2e768f791f85846d40259e3881b6167c", "score": "0.48022604", "text": "@Override\n\t\t\t\t\tprotected Void call() throws Exception {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tif (!FlowControlVariables.sendReceive)\n\t\t\t\t\t\t\t\tConnection.openServer();\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}", "title": "" }, { "docid": "5f24f217af0476b74c727a7c97584ff2", "score": "0.48022568", "text": "DefaultEndPointInputConnector createDefaultEndPointInputConnector();", "title": "" }, { "docid": "4d2d646fa7ebe9ad0bfe6c2eeb880d07", "score": "0.47908473", "text": "@DISPID(11) //= 0xb. The runtime will prefer the VTID if present\n @VTID(27)\n void ftpProxyPort(\n int retval);", "title": "" }, { "docid": "d9a0c6485a4693c29ed7478a2ae54335", "score": "0.4790318", "text": "void invoke(RemoteError error);", "title": "" }, { "docid": "f992ea0124d5ac99ad697474bf426261", "score": "0.4787392", "text": "@java.lang.Override\n public int getFromPort() {\n return fromPort_;\n }", "title": "" }, { "docid": "7c1c2847c1c61450118f4a8303b3ea34", "score": "0.47787917", "text": "Integer port();", "title": "" }, { "docid": "1d5cc62548a5dfb73d489bdece2a9327", "score": "0.4772293", "text": "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tIntent phoneIntent = new Intent(Intent.ACTION_CALL, Uri.parse(\"tel:\" + LSApplication.getInstance().getCurrentPhoneNum()));\n\t\t\t\t\t\tstartActivity(phoneIntent);\n\t\t\t\t\t\tif (version >= 5) {\n\t\t\t\t\t\t\toverridePendingTransition(R.anim.in_from_right, R.anim.out_from_left);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "title": "" }, { "docid": "000503fa4942ae8142120d582ee9c828", "score": "0.4770875", "text": "int getLocalPort() {\n return (int)getLocalPort.invoke(requestObject);\n }", "title": "" }, { "docid": "3ea1630e4a20f6166360f8b923e85079", "score": "0.4770451", "text": "public void invoke(String method, IPendingServiceCallback callback) {\r\n \t\tlog.debug(\"invoke method: {} params {} callback {}\", new Object[] {\r\n \t\t\t\tmethod, callback });\r\n \t\t// get it from the conn manager\r\n \t\tRTMPConnection conn = connManager.getConnection();\r\n \t\tif (conn == null) {\r\n \t\t\tlog.info(\"Connection was null 2\");\r\n \t\t} else {\r\n \t\t\tconn.invoke(method, callback);\r\n \t\t}\r\n \t}", "title": "" }, { "docid": "6ee29a566c1c971b9b83939fb08bf04a", "score": "0.4768943", "text": "Port createPort();", "title": "" } ]
9a65a26599ed63207b8f1722c85cc356
Returns the value of the 'End Number' attribute. If the meaning of the 'End Number' attribute isn't clear, there really should be more of a description here...
[ { "docid": "b8288da33281a3b4f2e6b1eaf2ce57f1", "score": "0.8104526", "text": "public int getEndNumber() {\n\t\treturn endNumber;\n\t}", "title": "" } ]
[ { "docid": "c16c4c99084e48cae583870f7cbc00e3", "score": "0.8071963", "text": "public int getEndNum() {\r\n\t\treturn this.endNum;\r\n\t}", "title": "" }, { "docid": "52d754d923f4db90843b4e3dc2df7025", "score": "0.80004126", "text": "public int getEndNo ()\n\t{\n\t\treturn m_endNo;\n\t}", "title": "" }, { "docid": "b757005c27d20d6d654083dea0c70b27", "score": "0.75180894", "text": "public double getEndValue() {\r\n\t\treturn endValue;\r\n\t}", "title": "" }, { "docid": "82475826a794211be6c0a2fb0067df35", "score": "0.74359846", "text": "public double getEnd() {\n return end;\n }", "title": "" }, { "docid": "82475826a794211be6c0a2fb0067df35", "score": "0.74359846", "text": "public double getEnd() {\n return end;\n }", "title": "" }, { "docid": "f285b828d4a01a1e7f6a01ece413d25c", "score": "0.7298091", "text": "@Field\r\n\tpublic long getEnd () {\r\n\t\treturn end;\r\n\t}", "title": "" }, { "docid": "6b24d0a39b100e9e4cbac8f62a77842d", "score": "0.70853", "text": "public final int getEnd() {\n return this.end;\n }", "title": "" }, { "docid": "29335dfb003db569aa695f860449fa50", "score": "0.7034574", "text": "public int getEnd() {\r\n\t\treturn end_;\r\n\t}", "title": "" }, { "docid": "a54a1b1363290c670391df3918339b35", "score": "0.7029632", "text": "public String getEnd() {\n return end;\n }", "title": "" }, { "docid": "4cd11c9f602b841f7209b0d0c7ab9b62", "score": "0.701834", "text": "public Point2D.Double getEnd() {\n\t\treturn end;\n\t}", "title": "" }, { "docid": "a4d090f2a0c2703b4c79482f1c2a588d", "score": "0.7016803", "text": "public int getEnd() {\n\t\treturn end;\n\t}", "title": "" }, { "docid": "a4d090f2a0c2703b4c79482f1c2a588d", "score": "0.7016803", "text": "public int getEnd() {\n\t\treturn end;\n\t}", "title": "" }, { "docid": "3d91c13c975f5d0adf1b12dcce533595", "score": "0.69941646", "text": "public int getEnd() {\n\t\treturn getEnd(0);\n\t}", "title": "" }, { "docid": "1bced1323926c56326e0bb07135b2f57", "score": "0.6968023", "text": "public int getEnd() {\n return end;\n }", "title": "" }, { "docid": "1bced1323926c56326e0bb07135b2f57", "score": "0.6968023", "text": "public int getEnd() {\n return end;\n }", "title": "" }, { "docid": "1bced1323926c56326e0bb07135b2f57", "score": "0.6968023", "text": "public int getEnd() {\n return end;\n }", "title": "" }, { "docid": "4dc2a729d0e67f3f419da4f2c78909ae", "score": "0.695064", "text": "@Iri(OADM.END)\n long getEnd();", "title": "" }, { "docid": "7c54609e0dceffb659bf8939e5dadf45", "score": "0.69486576", "text": "public int getEnd() {\n return end_;\n }", "title": "" }, { "docid": "7c54609e0dceffb659bf8939e5dadf45", "score": "0.69481295", "text": "public int getEnd() {\n return end_;\n }", "title": "" }, { "docid": "7c54609e0dceffb659bf8939e5dadf45", "score": "0.69481295", "text": "public int getEnd() {\n return end_;\n }", "title": "" }, { "docid": "7c54609e0dceffb659bf8939e5dadf45", "score": "0.69481295", "text": "public int getEnd() {\n return end_;\n }", "title": "" }, { "docid": "7c54609e0dceffb659bf8939e5dadf45", "score": "0.69481295", "text": "public int getEnd() {\n return end_;\n }", "title": "" }, { "docid": "7aa4b6c131d63aa008c6c74e92b20b73", "score": "0.69454426", "text": "public int getEnd() {\n return end_;\n }", "title": "" }, { "docid": "7aa4b6c131d63aa008c6c74e92b20b73", "score": "0.69454426", "text": "public int getEnd() {\n return end_;\n }", "title": "" }, { "docid": "7aa4b6c131d63aa008c6c74e92b20b73", "score": "0.6944684", "text": "public int getEnd() {\n return end_;\n }", "title": "" }, { "docid": "7aa4b6c131d63aa008c6c74e92b20b73", "score": "0.6944684", "text": "public int getEnd() {\n return end_;\n }", "title": "" }, { "docid": "7aa4b6c131d63aa008c6c74e92b20b73", "score": "0.6944684", "text": "public int getEnd() {\n return end_;\n }", "title": "" }, { "docid": "5c34fcdf8c059ac2cab864457df3f9c7", "score": "0.692131", "text": "public long getEnd() {\n return end_;\n }", "title": "" }, { "docid": "8b3a337ff767a13f85059bbddad05b3f", "score": "0.6919279", "text": "public long getEnd() {\n return end_;\n }", "title": "" }, { "docid": "747b1d885afeadd8cc6028e8090ea1d8", "score": "0.6890951", "text": "public int getHouseNumberEnd()\n\t{\n\t\treturn houseNumberEnd;\n\t}", "title": "" }, { "docid": "5e3d66032c9b05e4d3469287fbd06a41", "score": "0.6878158", "text": "public int getEndLineNumber()\r\n\t{\r\n\t\treturn endLineNumber;\r\n\t}", "title": "" }, { "docid": "b0f9f5d089a58590d9b6949d0f762873", "score": "0.68229246", "text": "public Integer numEnd();", "title": "" }, { "docid": "69b49a58ceb0a154ae39f1585934ac67", "score": "0.67626363", "text": "public Element getEndExpression() {\n\t\treturn endExpression;\n\t}", "title": "" }, { "docid": "69b49a58ceb0a154ae39f1585934ac67", "score": "0.67626363", "text": "public Element getEndExpression() {\n\t\treturn endExpression;\n\t}", "title": "" }, { "docid": "69b49a58ceb0a154ae39f1585934ac67", "score": "0.67626363", "text": "public Element getEndExpression() {\n\t\treturn endExpression;\n\t}", "title": "" }, { "docid": "69b49a58ceb0a154ae39f1585934ac67", "score": "0.67626363", "text": "public Element getEndExpression() {\n\t\treturn endExpression;\n\t}", "title": "" }, { "docid": "86dac0bc9fce9dd0127a87169e5775ce", "score": "0.67512834", "text": "public int getEndMark() {\r\n\t\treturn endMark;\r\n\t}", "title": "" }, { "docid": "bb64aaecfe589ffc46ac437515828751", "score": "0.67364293", "text": "public int getLevelNumberEnd()\n\t{\n\t\treturn levelNumberEnd;\n\t}", "title": "" }, { "docid": "baf9796e8212d16bca151084899b20bd", "score": "0.67139363", "text": "public int getUnitEnd()\n\t{\n\t\treturn unitEnd;\n\t}", "title": "" }, { "docid": "1ec80fdc181b02108056fcbb040fd09d", "score": "0.6706533", "text": "public Date GetEnd()\n\t{\n\t\treturn this.end;\n\t}", "title": "" }, { "docid": "6a99dff08b00992997e78b1274915fe8", "score": "0.66897625", "text": "public Position getEndPosition() {\n return this.endPosition;\n }", "title": "" }, { "docid": "7d63875fc9b4ce9e49c5be73d0df4e29", "score": "0.6676093", "text": "public int getEndIndex() {\n return _endIndex;\n }", "title": "" }, { "docid": "80bcadcbcb72593112102863b9b3df5f", "score": "0.6670126", "text": "public String getEnd() {\n return new Date(outageEnd).toString();\n }", "title": "" }, { "docid": "aa17ee8fe901ca9198439d599e81d64e", "score": "0.66290325", "text": "public Date getEnd() {\n\t\treturn end;\n\t}", "title": "" }, { "docid": "36214e4efdc106bd76095aff1910d231", "score": "0.6625347", "text": "public Point getEnd() {\n return end;\n }", "title": "" }, { "docid": "36214e4efdc106bd76095aff1910d231", "score": "0.6625347", "text": "public Point getEnd() {\n return end;\n }", "title": "" }, { "docid": "9382a5442556c2694d77137d2777462b", "score": "0.66247195", "text": "public Date getEnd() {\r\n \t\treturn end;\r\n \t}", "title": "" }, { "docid": "e475ef153c6f7adf04e4ad81db35e3b2", "score": "0.6615935", "text": "public Label getEndLabel() {\n return endLabel;\n }", "title": "" }, { "docid": "ac952c271522545a387ac33f962ebe4c", "score": "0.6586479", "text": "public GeoPoint getEnd() {\n return this.end;\n }", "title": "" }, { "docid": "fa3f3bc779ad8b259ff15b998bedfbb5", "score": "0.6572939", "text": "public Node getEnd() {\n return end;\n }", "title": "" }, { "docid": "6bd450e7aa3693653af74520f0f32cf6", "score": "0.65554273", "text": "ISODATE getEnd();", "title": "" }, { "docid": "32044bf2abeb6cb43106cd50c6389aff", "score": "0.6551391", "text": "public Node getEnd() {\n return end;\n }", "title": "" }, { "docid": "00347aea7cfa5b073f2bf5f4ec08b62a", "score": "0.652974", "text": "public BigDecimal getEndOffrPerdId() {\n\t\treturn (BigDecimal) getValue(3);\n\t}", "title": "" }, { "docid": "19ab38ee1dc019540d5de64e52e19594", "score": "0.65225494", "text": "public int getHouseNumberAlphaEnd()\n\t{\n\t\treturn houseNumberAlphaEnd;\n\t}", "title": "" }, { "docid": "6ad4cff90763c75add3107cbe7415d24", "score": "0.6522147", "text": "Expr getEnd();", "title": "" }, { "docid": "4599a71bb690a4b70b34dbd44a452962", "score": "0.65114313", "text": "public char getEnd() {\n return this.end;\n }", "title": "" }, { "docid": "bad89cfe179bcc4fc9b464109835aa7b", "score": "0.6489487", "text": "java.lang.String getOrderEndYn();", "title": "" }, { "docid": "bad89cfe179bcc4fc9b464109835aa7b", "score": "0.6489073", "text": "java.lang.String getOrderEndYn();", "title": "" }, { "docid": "bad89cfe179bcc4fc9b464109835aa7b", "score": "0.6489073", "text": "java.lang.String getOrderEndYn();", "title": "" }, { "docid": "27344f24802cf9f45f21f61df96f6102", "score": "0.64674306", "text": "public Location getEnd() {\n return end;\n }", "title": "" }, { "docid": "10071364f392a2044a06d6f1beb97d5d", "score": "0.6438645", "text": "public int getEndIndex() {\n\t\treturn endIndex;\n\t}", "title": "" }, { "docid": "fe707466787c0e2b25cc920474d5bfbe", "score": "0.64146674", "text": "public final int getEndDegree() {\n return this.endDegree;\n }", "title": "" }, { "docid": "a9de1669df2625eadab3fea82bfb75e8", "score": "0.6403938", "text": "java.lang.String getEnd();", "title": "" }, { "docid": "60d6d36da67a2ad5ada10431a13c045d", "score": "0.64000535", "text": "public java.lang.String getOrderEndYn() {\n java.lang.Object ref = orderEndYn_;\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 orderEndYn_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "60d6d36da67a2ad5ada10431a13c045d", "score": "0.6399773", "text": "public java.lang.String getOrderEndYn() {\n java.lang.Object ref = orderEndYn_;\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 orderEndYn_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "60d6d36da67a2ad5ada10431a13c045d", "score": "0.63997287", "text": "public java.lang.String getOrderEndYn() {\n java.lang.Object ref = orderEndYn_;\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 orderEndYn_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "dcbd06bda9e492fb54d1be275a551e4f", "score": "0.6395069", "text": "long getEnd();", "title": "" }, { "docid": "c5641d5059dc9b30711cfa795f0f2c1b", "score": "0.6390451", "text": "public Long getIdEnd()\n {\n return idEnd;\n }", "title": "" }, { "docid": "e26cf8fc1b7647f94c41b29682400387", "score": "0.63832265", "text": "public Point end() {\r\n return this.end;\r\n }", "title": "" }, { "docid": "60968b6f735548d94c2ef9a2260d8584", "score": "0.63746446", "text": "public Node getEndNode() {\r\n return end;\r\n }", "title": "" }, { "docid": "38d14d2c5b2d65c24c09a0c4f22baa40", "score": "0.63741845", "text": "public DateTime getEnd() {\r\n\t\treturn end;\r\n\t}", "title": "" }, { "docid": "3c17f6136f1650d96debe812d3e897a2", "score": "0.63657385", "text": "public Vector getEnd()\r\n\t{\r\n\t\treturn end;\r\n\t}", "title": "" }, { "docid": "55337ec1d6901596967e9b14af513bbe", "score": "0.63511205", "text": "public int getCenturyEnd()\n\t{\n\t\treturn centuryEnd;\n\t}", "title": "" }, { "docid": "cdb109d1cc4e37afb175599ba75e2896", "score": "0.6348161", "text": "public Integer getIsEnd() {\n return isEnd;\n }", "title": "" }, { "docid": "ec4eb91930bcfc103c3b14f78f066f44", "score": "0.63407487", "text": "public int getLineEnd(){\n\t\treturn lineEnd;\n\t}", "title": "" }, { "docid": "0c8311e069d878fbeb9c6b10da724e7a", "score": "0.6334381", "text": "public int getIndexEnd()\n {\n return indexEnd;\n }", "title": "" }, { "docid": "65e3be73c20823592beb82aca8bfebfa", "score": "0.63308007", "text": "public int getEndColumnNumber()\r\n\t{\r\n\t\treturn endColumnNumber;\r\n\t}", "title": "" }, { "docid": "d3baa5eb70e88fda1790c16fe36a0f89", "score": "0.6321346", "text": "public java.math.BigInteger getGenomicEnd()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(GENOMICEND$6, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getBigIntegerValue();\r\n }\r\n }", "title": "" }, { "docid": "3905276e54f1b3271cd8c41ff3fc3d33", "score": "0.6314927", "text": "@Iri(OADM.END)\n void setEnd(long end);", "title": "" }, { "docid": "692d98cd0b80a5f17e449f10acab20b1", "score": "0.63086694", "text": "public Timestamp getEndDate() {\r\n return (Timestamp) getAttributeInternal(ENDDATE);\r\n }", "title": "" }, { "docid": "25d1a1ebe1feec5450c3519dc9fbfec7", "score": "0.6293716", "text": "public Date getEndTermin() {\n\t\treturn endTermin;\n\t}", "title": "" }, { "docid": "1fbd3001822e035bdaab523deba902eb", "score": "0.62868065", "text": "public Keyword getEndKeyword_4() { return cEndKeyword_4; }", "title": "" }, { "docid": "5ac30668c3fff5ed4e6d70d6c4eac847", "score": "0.62775904", "text": "public int getCurrentEndRecordNumber() {\n return calculateCurrentEndRecordNumber(_currentPageNumber, _pageSize);\n }", "title": "" }, { "docid": "55c89ce7760965b750a36ebf613f85f8", "score": "0.62659687", "text": "public java.lang.String getOrderEndYn() {\n java.lang.Object ref = orderEndYn_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n orderEndYn_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "55c89ce7760965b750a36ebf613f85f8", "score": "0.62659687", "text": "public java.lang.String getOrderEndYn() {\n java.lang.Object ref = orderEndYn_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n orderEndYn_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "55c89ce7760965b750a36ebf613f85f8", "score": "0.62659687", "text": "public java.lang.String getOrderEndYn() {\n java.lang.Object ref = orderEndYn_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n orderEndYn_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "2cfb19127e37eec516a06d9cc2015262", "score": "0.6263266", "text": "public String getTagEnd() {\r\n return pTagEnd;\r\n }", "title": "" }, { "docid": "60395c01e4529acc6865634fc5fac9a1", "score": "0.626273", "text": "public void setEnd(double end) {\n this.end = end;\n }", "title": "" }, { "docid": "cfb48f3592dd286fe72b1be31a460fa6", "score": "0.62591314", "text": "public long getEndMillis() {\n return iEndMillis;\n }", "title": "" }, { "docid": "870179a9d15829bf0298b148bfc11405", "score": "0.6248372", "text": "public double getYEnd()\n/* */ {\n/* 615 */ return this.y_end;\n/* */ }", "title": "" }, { "docid": "38ca2f4f72ca81d9261e01f7d08ee9b4", "score": "0.62418866", "text": "public int getEndIndex() {\n return endIndex;\n }", "title": "" }, { "docid": "2053c3f7e83ac677007f45e72b3dc215", "score": "0.6225829", "text": "@JsonProperty(\"dateEnd\")\n public Double getDateEnd() {\n return dateEnd;\n }", "title": "" }, { "docid": "64bda4553931ab68df65a8498d2e6752", "score": "0.62247664", "text": "public int getDataSetEndIndex() {\n\t\treturn this.dataSetEndIndex;\n\t}", "title": "" }, { "docid": "688bd33af9472c5a4ec44f46eb935bd4", "score": "0.6216274", "text": "public int getLevelEnd() {\n\t\treturn levelEnd;\n\t}", "title": "" }, { "docid": "63f93bebee1518cfef0c80e2d8e55bf9", "score": "0.6207014", "text": "public Label getEndLabel()\n {\n if (labelEnd == null)\n {\n labelEnd = new Label();\n }\n return labelEnd;\n }", "title": "" }, { "docid": "2ab00611b8ca498f40da8b7c7ba1a5c2", "score": "0.61993694", "text": "java.lang.String getEndTs();", "title": "" }, { "docid": "200767fe0251ad0a43497c5478aa8ba5", "score": "0.6195738", "text": "public java.lang.Integer getEndStationCode() {\n return end_station_code;\n }", "title": "" }, { "docid": "d3b7eeec29e1fb5c7e49ebb4a99b15b2", "score": "0.61954546", "text": "public java.lang.String getEnd_Time()\n {\n return this._end_Time;\n }", "title": "" }, { "docid": "5e10b93bd28c358a6b1804595a62df92", "score": "0.6180152", "text": "public NodeState getEnd() {\r\n\t\treturn end;\r\n\t}", "title": "" }, { "docid": "a7d7badf0368db97b28aae7a3cdf8acd", "score": "0.616539", "text": "@Override\n public int getEnd() {\n return 0;\n }", "title": "" } ]
597274187b916c11229a18a4fcee2b15
Converts a GeoHash string to its binary representation.
[ { "docid": "c4feb79381573d9cb1b349b9a04d8406", "score": "0.0", "text": "public static ArrayList<Boolean> getBits(String hash) {\n hash = hash.toLowerCase();\n\n /* Create an array of bits, 5 bits per character: */\n ArrayList<Boolean> bits =\n new ArrayList<Boolean>(hash.length() * BITS_PER_CHAR);\n\n /* Loop through the hash string, setting appropriate bits. */\n for (int i = 0; i < hash.length(); ++i) {\n int charValue = charLookupTable.get(hash.charAt(i));\n\n /* Set bit from charValue, then shift over to the next bit. */\n for (int j = 0; j < BITS_PER_CHAR; ++j, charValue <<= 1) {\n bits.add((charValue & 0x10) == 0x10);\n }\n }\n return bits;\n }", "title": "" } ]
[ { "docid": "6c87da8288b8a4ff0ef0e97ebf1e7b9e", "score": "0.56672317", "text": "public String hexToBinary(String hex) {\n return new BigInteger(hex, 16).toString(2);\n }", "title": "" }, { "docid": "bd8bb73a16562596254935867088a53d", "score": "0.5555057", "text": "public static String ST_GeoHash( byte[] wkb ) {\n if ( wkb == null ) {\n return null;\n }\n \n Geometry g = gFromWKB(wkb);\n Envelope e = g.getEnvelopeInternal();\n GeoString gs1 = new GeoString(e.getMinX(),e.getMinY());\n GeoString gs2 = new GeoString(e.getMaxX(),e.getMaxY());\n \n return gs1.union(gs2).toString();\n }", "title": "" }, { "docid": "0591074e02396d7c2eabab6ebaded4d9", "score": "0.54894257", "text": "public static void main(String[] args) {\n\r\n Geohash e = new Geohash();\r\n String s = e.encode(30.062289237027624D, 118.1822755145921D);\r\n System.out.println(s);\r\n\r\n List<String> ret = e.expand(s);\r\n for (String str : ret) {\r\n System.out.println(str);\r\n }\r\n\r\n // latlon = e.decode(s);\r\n // System.out.println(latlon[0] + \", \" + latlon[1]);\r\n }", "title": "" }, { "docid": "5bbc7fc03b12176f75cd8848bde554b9", "score": "0.54659635", "text": "String getBinary();", "title": "" }, { "docid": "371d24d2abdbded1b0846976a4b30b69", "score": "0.5451281", "text": "public String hexToBinary(String input) {\r\n String str;\r\n StringBuilder binString = new StringBuilder(\"\");\r\n \r\n input = filterHex(input);\r\n for (int i = 0; i < input.length(); i++) {\r\n str = input.substring(i, (i+1)); // get substring in 'i' position\r\n str = String.format(\"%4s\", Integer.toBinaryString(Integer.parseInt(str, 16))).replace(\" \", \"0\");\r\n binString.append(str);\r\n }\r\n return binString.toString();\r\n }", "title": "" }, { "docid": "e202daaaa7b6f78653b882b45e047d27", "score": "0.53944546", "text": "private static String convertHashToString(byte[] bytes) {\n\t\tStringBuilder s = new StringBuilder();\n\t\tfor (int i = 0; i < bytes.length; i++) {\n\t\t\tint parteAlta = ((bytes[i] >> 4) & 0xf) << 4;\n\t\t\tint parteBaixa = bytes[i] & 0xf;\n\t\t\tif (parteAlta == 0)\n\t\t\t\ts.append('0');\n\t\t\ts.append(Integer.toHexString(parteAlta | parteBaixa));\n\t\t}\n\t\treturn s.toString();\n\t}", "title": "" }, { "docid": "7cbcad18a07ae5596fa7bd7794a1c12b", "score": "0.53759176", "text": "public String getBinString() {\n return strBinary.toString();\n }", "title": "" }, { "docid": "a10e33ee6f1d23b3933cc8de09de1ddc", "score": "0.52947664", "text": "public static String b64Hash2hexHash(String b64Hash) {\r\n // the hash string represents 12 * 6 bit = 72 bits. This is too much for a long integer.\r\n return serverCodings.encodeHex(kelondroBase64Order.enhancedCoder.decode(b64Hash));\r\n }", "title": "" }, { "docid": "0e620377e7469d3c0b13a213f237e748", "score": "0.5270419", "text": "static byte[] GetBinary(String s) {\n StringBuilder stringBuilder = new StringBuilder(s);\n while (stringBuilder.length() % 8 != 0) {\n stringBuilder.append('0');\n }\n s = stringBuilder.toString();\n byte[] byteData = new byte[s.length() / 8];\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n if (c == '1') {\n byteData[i >> 3] |= 0x80 >> (i & 0x7);\n }\n }\n return byteData;\n }", "title": "" }, { "docid": "8d86ab8d65a2db72d9299b4acd189ffe", "score": "0.52669483", "text": "public static String toStringOrHex2(byte[] s) {\n\t\tString result;\n\t\tif (s != null) {\n\t\t\tif (containsOnlyPrintableAscii(s)) {\n\t\t\t\ttry {\n\t\t\t\t\tresult = \"\\\"\" + new String(s, \"iso-8859-1\") + \"\\\"\";\n\t\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t\tresult = null;\n\t\t\t\t\tassert false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tresult = \"Binary(\" + Hex.encode(s) + \")\";\n\t\t\t}\n\t\t} else {\n\t\t\tresult = null;\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "34b37e831b4384f7e379d0ac27e87f75", "score": "0.51237214", "text": "public static String toBinaryString(byte b) {\n\t\treturn StringTools.toBinaryString(b, null).toString();\n\t}", "title": "" }, { "docid": "a262717f95d6d92f747bfcc81476e458", "score": "0.50789154", "text": "com.google.protobuf.ByteString\r\n getHashBytes();", "title": "" }, { "docid": "66839e257eeab982fe6a410cdf96c739", "score": "0.5056029", "text": "public String getBinaryString() {\n\t\treturn binaryString;\n\t}", "title": "" }, { "docid": "68cc9930a45ccc9181280baf5fce86f6", "score": "0.5054087", "text": "private static byte[] fromBase64(String hex) {\n\t\treturn DatatypeConverter.parseBase64Binary(hex);\n\t}", "title": "" }, { "docid": "1cc8c67c62f36410cd9c6555a41057e5", "score": "0.5044148", "text": "public static SpatialRange decodeHash(String geoHash) {\n ArrayList<Boolean> bits = getBits(geoHash);\n\n float[] longitude = decodeBits(bits, false);\n float[] latitude = decodeBits(bits, true);\n\n return new SpatialRange(latitude[0], latitude[1],\n longitude[0], longitude[1]);\n }", "title": "" }, { "docid": "0dd1d494ddbfb08acca35f70876f1439", "score": "0.50428694", "text": "private String toStringBinary() {\n String retval;\n if ( value == null ) {\n return null;\n }\n\n if ( isNull() || value.getBytes() == null ) {\n retval = Const.NULL_BINARY;\n } else {\n retval = new String( value.getBytes() );\n }\n\n return retval;\n }", "title": "" }, { "docid": "58167527b408a2211d286995d958f3c5", "score": "0.502395", "text": "static String hashToString(byte[] hash)\n {\n StringBuilder toString = new StringBuilder(52);\n\n for (byte i : hash)\n {\n toString.append(hexChars[(i >> 4) & 0xf]);\n toString.append(hexChars[i & 0xf]);\n }\n\n return toString.toString();\n }", "title": "" }, { "docid": "75bffd16b9091b576b9b38df5b5a3005", "score": "0.49865344", "text": "private String toHex(String binary) {\n\t\tStringBuilder output = new StringBuilder();\n\t\tfor(int i = 0; i <binary.length(); i += 4){\n\t\t\toutput.append(Integer.toHexString(\n\t\t\t\t\tInteger.parseInt(binary.substring(i, i+4), 2)));\n\t\t}\n\t\treturn output.toString().toUpperCase();\n\t}", "title": "" }, { "docid": "d02a33b449c55181dd35b951b5113a8a", "score": "0.4982412", "text": "public com.google.protobuf.ByteString\n getHashBytes() {\n java.lang.Object ref = hash_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n hash_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "d02a33b449c55181dd35b951b5113a8a", "score": "0.4982412", "text": "public com.google.protobuf.ByteString\n getHashBytes() {\n java.lang.Object ref = hash_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n hash_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "7b49de5aa8168a4a5ce3897d797ed936", "score": "0.4961023", "text": "public static String toBinaryString(byte b[]) {\n\t\treturn StringTools.toBinaryString(b, new StringBuffer()).toString();\n\t}", "title": "" }, { "docid": "8b87eeab8612dff5823088b85937ba25", "score": "0.49597582", "text": "private String encode(final byte[] binaryData) {\n final int n = binaryData.length;\n final char[] buffer = new char[n * 2];\n for (int i = 0; i < n; i++) {\n final int low = (binaryData[i] & 0x0f);\n final int high = ((binaryData[i] & 0xf0) >> 4);\n buffer[i * 2] = HEXADECIMAL[high];\n buffer[(i * 2) + 1] = HEXADECIMAL[low];\n }\n\n return new String(buffer);\n }", "title": "" }, { "docid": "a1bec41063d41113b43ddcd97f42fb98", "score": "0.49468473", "text": "com.google.protobuf.ByteString\n getHashBytes();", "title": "" }, { "docid": "a1bec41063d41113b43ddcd97f42fb98", "score": "0.49468473", "text": "com.google.protobuf.ByteString\n getHashBytes();", "title": "" }, { "docid": "7ed3ee05adb95a0afc9afee76e21d7e2", "score": "0.49451074", "text": "public byte[] convertSymbolValueToBinary(Symbol sym) throws FormatException {\n byte[] _retval = FormatCrypto.convertToBinary(sym.getValue(), (String) sym.getProperty(SymbolProperties.StringEncoding));\n if (null == _retval) {\n throw new FormatException(__me + \".convertSymbolValueToBinary(): symbol \\\"\" + sym.getName() + \"\\\" value has unsupported type \" + sym.getValue().getClass().getName());\n }\n return _retval;\n }", "title": "" }, { "docid": "fb5acf9a4fe0d95eb235920236629c2c", "score": "0.49425638", "text": "private static final byte[] toByte(String s) {\n // Create a BigInteger using the byte array\r\n //\r\n BigInteger bi = new BigInteger(s,32);\r\n //\r\n // Return as byte array\r\n //\r\n return bi.toByteArray();\r\n }", "title": "" }, { "docid": "eeb040e5960011facec9ae9166075b81", "score": "0.4935903", "text": "public static String convertIPtoBinary(String data_in) {\n\t\t\t\t\n\t\t byte[] bytes = null;\n\t\t\t\ttry {\n\t\t\t\t\tbytes = InetAddress.getByName(data_in).getAddress();\n\t\t\t\t} catch (UnknownHostException 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 return new BigInteger(1, bytes).toString(2);\n\t\t\t}", "title": "" }, { "docid": "b5598bdbd1263686909a8a509f5a70a1", "score": "0.49358636", "text": "public String convertStringHex(String str) {\n \tSystem.out.println(\"Hexform: \" + str);\n\tif(str.indexOf(\"0x\") != -1) {\n\t String[] ch = str.split(\"x\"); \n\t for(int i = 0; i < ch.length; i++) {\n\t\tint num = Integer.parseInt(ch[i], 16);\n\t\tresult = Integer.toBinaryString(num);\n\t\tthis.printString(\"binary form: \" + result); \n\t }\n\t} else {\n\t result = result;\n\t}\n\treturn result;\n }", "title": "" }, { "docid": "53ce605b01abdbee276dcbd266456bda", "score": "0.4905068", "text": "public static String getHexadecimalValue(String binary) {\n return new Hexadecimal(binary).getHexString();\n }", "title": "" }, { "docid": "2959b086ccb206eec095a564c7cbc188", "score": "0.49027762", "text": "public convertAtoB() {\n // initialize variable\n strBinary = \"\"; // the returned final buffer storing a binary\n // representation of the input string\n }", "title": "" }, { "docid": "6a296b96adab4b1e8ac359679320e48b", "score": "0.488123", "text": "private static byte[] convert2bytes(String stringOfHex) {\n if (isEmptyStr(stringOfHex)) {\n return null;\n }\n stringOfHex = stringOfHex.trim().toUpperCase();\n if (stringOfHex.length() % 2 == 1){\n return null;\n }\n int length = stringOfHex.length() / 2;\n byte[] bytes = new byte[length];\n char[] charArray = stringOfHex.toCharArray();\n for (int i = 0; i < length; i++) {\n int pos = i * 2;\n bytes[i] = (byte) (charToByte(charArray[pos]) << 4 | charToByte(charArray[pos + 1]));\n }\n return bytes;\n }", "title": "" }, { "docid": "df480528ec3e0c083d4c2dfcd7126924", "score": "0.48786962", "text": "public com.google.protobuf.ByteString\r\n getHashBytes() {\r\n java.lang.Object ref = hash_;\r\n if (ref instanceof String) {\r\n com.google.protobuf.ByteString b = \r\n com.google.protobuf.ByteString.copyFromUtf8(\r\n (java.lang.String) ref);\r\n hash_ = b;\r\n return b;\r\n } else {\r\n return (com.google.protobuf.ByteString) ref;\r\n }\r\n }", "title": "" }, { "docid": "249b119a937124f89e5ab138e8f97f24", "score": "0.48747024", "text": "public com.google.protobuf.ByteString\r\n getHashBytes() {\r\n java.lang.Object ref = hash_;\r\n if (ref instanceof java.lang.String) {\r\n com.google.protobuf.ByteString b = \r\n com.google.protobuf.ByteString.copyFromUtf8(\r\n (java.lang.String) ref);\r\n hash_ = b;\r\n return b;\r\n } else {\r\n return (com.google.protobuf.ByteString) ref;\r\n }\r\n }", "title": "" }, { "docid": "aa068cd0a68ea30b7d5c4f4c0cdda4f5", "score": "0.48692775", "text": "private static byte[] hexStringToByteArray(String s) {\n\t\tint len = s.length();\n\t\tbyte[] data = new byte[len / 2];\n\t\tfor (int i = 0; i < len; i += 2) {\n\t\t\tdata[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4) + Character.digit(s.charAt(i + 1), 16));\n\t\t}\n\t\treturn data;\n\t}", "title": "" }, { "docid": "9b10682920d257d67c77ff688c4dc34b", "score": "0.48612556", "text": "public static String toBinary(byte b) {\n return String.format(\"%8s\", Integer.toBinaryString(b & MOST_SIGNIFICANT_MASK)).replace(' ', '0');\n }", "title": "" }, { "docid": "3e423c9498a3b1e3010f8f0fd96f83ed", "score": "0.4858905", "text": "public String toString() {\n return DatatypeConverter.printHexBinary(this.hash);\n }", "title": "" }, { "docid": "0fcf395e244238df3144379eed0277fa", "score": "0.48360187", "text": "private static byte[] hexStringToByteArray(String s) {\n int len = s.length();\n byte[] data = new byte[len / 2];\n for (int i = 0; i < len; i += 2) {\n data[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4)\n + Character.digit(s.charAt(i + 1), 16));\n }\n return data;\n }", "title": "" }, { "docid": "9eb08390d2f6c0c415c0b98ebd1cb9c9", "score": "0.48254123", "text": "static public String encode(byte[] binaryData) {\r\n if (binaryData == null)\r\n return null;\r\n int lengthData = binaryData.length;\r\n int lengthEncode = lengthData * 2;\r\n char[] encodedData = new char[lengthEncode];\r\n int temp;\r\n for (int i = 0; i < lengthData; i++) {\r\n temp = binaryData[i];\r\n if (temp < 0)\r\n temp += 256;\r\n encodedData[i*2] = lookUpHexAlphabet[temp >> 4];\r\n encodedData[i*2+1] = lookUpHexAlphabet[temp & 0xf];\r\n }\r\n return new String(encodedData);\r\n }", "title": "" }, { "docid": "740164d0a6b91ef00813a5065a9f849b", "score": "0.48143023", "text": "void mo64864b(String str);", "title": "" }, { "docid": "30ae1863e0f081bd2cee07eab3eb977d", "score": "0.48092416", "text": "public static String simpleDecode (String hash) {\n String res = new String(Base64.decodeBase64(hash.getBytes())).split(\"SUPERDUPERSECTRET\")[0];\n\n return res;\n }", "title": "" }, { "docid": "1627bb2cec3d8d7321aa77e439505f26", "score": "0.4806818", "text": "Itypes transform_to_binary();", "title": "" }, { "docid": "e82dc645c95392eb5d33a602cfe9231c", "score": "0.48062548", "text": "public static byte[] convertToBytes(String s){\n\t\treturn s.getBytes();\n\t}", "title": "" }, { "docid": "78dba1af9694f27bc526d183dc8fa43f", "score": "0.4803241", "text": "public static byte[] parseHash(String hash) throws InvalidInputException{\n\t\tif (hash == null) throw new InvalidInputException();\n\t\t\n\t\t// Split string into parsable units\n\t\tString[] byteValues = hash.substring(1, hash.length() - 1).split(\",\");\n\t\t\n\t\t// check for standard hash length\n\t\tif (byteValues.length != STANDARD_HASH_LENGTH) throw new InvalidInputException();\n\t\t\t\t\n\t\t// create and populate return value\n\t\tbyte[] returnVal = new byte[byteValues.length];\n\t\ttry{\n\t\t\tfor (int i=0, len=returnVal.length; i<len; i++) \n\t\t\t\t returnVal[i] = Byte.parseByte(byteValues[i].trim());\n\t\t}\n\t\tcatch (NumberFormatException e){\n\t\t\tthrow new InvalidInputException();\n\t\t}\n\t\t \n\t\treturn returnVal;\n\t}", "title": "" }, { "docid": "7a187e399f60d6438a19c61173ba17d0", "score": "0.47986668", "text": "public static String byte2binary (byte a){\n\t\tString s1 = String.format(\"%8s\", Integer.toBinaryString(a & 0xFF)).replace(' ', '0');\n\t\treturn s1;\n\t}", "title": "" }, { "docid": "fda199fd972ec6a9fa5613d67540d057", "score": "0.47762552", "text": "private static byte[] hexToByte(String s) {\n\t\tint len = s.length();\n\t\tbyte[] data = new byte[len / 2];\n\t\tfor (int i = 0; i < len; i += 2) {\n\t\t\tdata[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4) + Character.digit(s.charAt(i + 1), 16));\n\t\t}\n\t\treturn data;\n\t}", "title": "" }, { "docid": "7012845cf0b639db872fc231e09b5f1f", "score": "0.47561532", "text": "private String convertFacemapToBase64String(byte[] facemap) {\n return Base64.encodeToString(facemap, Base64.NO_WRAP);\n }", "title": "" }, { "docid": "e16fbbb29c25d3121e74e56c26bffb53", "score": "0.47535324", "text": "private static String getBASE64NumericSign(byte[] hashString)\n\t\tthrows Exception {\n\t\tbyte[] outputSignB64Encoded = null;\n\t\tint outputSignB64Encodedlenght = 0;\n\t\toutputSignB64Encoded = new byte[hashString.length * 2];\n\t\tchar separator = BASE64_COLOM;\n\t\tStringBuffer composedHash = new StringBuffer();\n\t\tString cadenaFirma = null;\n\t\t\n//\t\tlogger.debugI18N(CLASS, \"ENCONDING_BASE64_SIGNATURE\");\n\n\t\ttry {\n\t\t\toutputSignB64Encodedlenght = Base64.encodeToBytes(\n\t\t\t\t\thashString,\toutputSignB64Encoded, separator);\n\t\t\tcadenaFirma = new String(outputSignB64Encoded, 0, \n\t\t\t\t\toutputSignB64Encodedlenght);\n\t\t\t\n\t\t} catch (Exception e) {\n//\t\t\tlogger.debugI18N(e, CLASS, \"ERROR_NUMERIC_IN_SIGNATURE\");\n\t\t\tthrow e;\n\t\t}\n\t\t\n//\t\tlogger.debugI18N(CLASS, \"SIGNATURE_ENCODED_WITH_SEPARATORS\");\n\n\t\tint initialindex = 0;\n\t\tint currentindex = 0;\n\t\t\n//\t\tlogger.debugI18N(CLASS, \"DELETING_SIGNATURE_SEPARATORS\");\n\t\t\n\t\twhile ((currentindex = cadenaFirma.indexOf(separator, initialindex))\n\t\t\t!= -1) {\n\t\t\tcomposedHash.append(\n\t\t\t\t\tcadenaFirma.substring(initialindex, currentindex));\n\t\t\t\n\t\t\tinitialindex = currentindex + 1;\n\t\t}\n//\t\tlogger.debugI18N(CLASS, \"SIGNATURE_SEPARATORS_DELETED\");\n\t\t\n\t\treturn composedHash.toString();\n\t}", "title": "" }, { "docid": "5f8462ddf35979073c3e132f69b12e32", "score": "0.47476983", "text": "private static byte[] hexStringToByteArray(String s) {\r\n\t int len = s.length();\r\n\t byte[] data = new byte[len / 2];\r\n\t for (int i = 0; i < len; i += 2) {\r\n\t data[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4)\r\n\t + Character.digit(s.charAt(i+1), 16));\r\n\t }\r\n\t \r\n\t return data;\r\n\t}", "title": "" }, { "docid": "5d7951216c287d6d9eac43a4e79a75fb", "score": "0.47474453", "text": "@java.lang.Override\n public com.google.protobuf.ByteString\n getHashBytes() {\n java.lang.Object ref = hash_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n hash_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "5d7951216c287d6d9eac43a4e79a75fb", "score": "0.47474453", "text": "@java.lang.Override\n public com.google.protobuf.ByteString\n getHashBytes() {\n java.lang.Object ref = hash_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n hash_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "9252439386b4439b5f172dccaeb001aa", "score": "0.47383043", "text": "protected byte[] binaryParse() {\n return this.stringParse().getBytes(UTF8);\n }", "title": "" }, { "docid": "83a55d49b81cea71fa9ffe37c76d2bb0", "score": "0.4738205", "text": "public static String encode(byte[] binary) {\n\t\t\treturn encode(binary, 0, binary.length);\n\t\t}", "title": "" }, { "docid": "9c5b0e9c4ba8916dafa950dc3f5fe85e", "score": "0.4721332", "text": "String getBinaryLiteralString(byte[] binaryData);", "title": "" }, { "docid": "5934c3c05f0615c3e7b72cd3dc11a34c", "score": "0.47130433", "text": "private String toEncodedString(Hashtable inHash) throws Exception\n \t{\n \t StringBuffer buffer = new StringBuffer();\n \t Enumeration names = inHash.keys();\n \t while(names.hasMoreElements())\n \t {\n \t String name = names.nextElement().toString();\n \t String value = inHash.get(name).toString();\n \t buffer.append(URLEncoder.encode(name, \"UTF-8\") + \"=\" + URLEncoder.encode(value, \"UTF-8\"));\n \t if(names.hasMoreElements())\n \t {\n \t buffer.append(\"&\");\n \t }\n \t }\n \t return buffer.toString();\n \t}", "title": "" }, { "docid": "781f50f11feb55d167dcc99b681a9429", "score": "0.47082847", "text": "public String binaryToHex(String encryptBin) {\n String hex = \"\";\n String[] binarySplit = (encryptBin.split(\"(?<=\\\\G....)\"));\n for (int i = 0; i < binarySplit.length; i++) {\n int decimal = Integer.parseInt(binarySplit[i], 2);\n String hexStr = Integer.toString(decimal, 16);\n hex = hex + hexStr;\n }\n return hex;\n }", "title": "" }, { "docid": "a845bfa065df1604d2b6f2374be866e3", "score": "0.47079363", "text": "java.lang.String getHash();", "title": "" }, { "docid": "a845bfa065df1604d2b6f2374be866e3", "score": "0.47079363", "text": "java.lang.String getHash();", "title": "" }, { "docid": "a845bfa065df1604d2b6f2374be866e3", "score": "0.47079363", "text": "java.lang.String getHash();", "title": "" }, { "docid": "55b5e336380325246b1104ad8e92d56b", "score": "0.4700195", "text": "byte[] getHash();", "title": "" }, { "docid": "5b9bfeda8ecbe16a02f4a981391d4261", "score": "0.46976873", "text": "public static byte[] b64Hash2b256Hash(String b64Hash) {\r\n assert (b64Hash.length() == 12);\r\n return kelondroBase64Order.enhancedCoder.decode(b64Hash);\r\n }", "title": "" }, { "docid": "09454603cd2da6bb13d84e28917ce3da", "score": "0.46959344", "text": "private String toHexString(byte[] hash){\n\t\tString hashHexString = \"\";\n\n\t\tfor (int i = 0; i < hash.length; i++) {\n\t\t\thashHexString += String.format(\"%02X\", hash[i]);\n\t\t}\n\t\treturn hashHexString;\n\t}", "title": "" }, { "docid": "89e3b84552a3e861977f767c7102d5e4", "score": "0.46887398", "text": "com.google.protobuf.ByteString getHash();", "title": "" }, { "docid": "89e3b84552a3e861977f767c7102d5e4", "score": "0.46887398", "text": "com.google.protobuf.ByteString getHash();", "title": "" }, { "docid": "9efcd8ce798629d8d950eb31695d7480", "score": "0.4679569", "text": "private static String generateHash(String toHash) {\n String hash = \"\";\n\t\ttry {\n\t\t\tbyte[] encodedHash = MessageDigest.getInstance(\"SHA-256\").digest(toHash.getBytes());\n\t\t\thash = bytesToHexString(encodedHash);\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn hash;\n }", "title": "" }, { "docid": "900f607467c99507ba288afbbc5a43f6", "score": "0.46775368", "text": "public static String HexaToBin(String s) {\r\n\t\tif (s.equals(\"\")) return \"\";\r\n\t\t\r\n\t\tint i = 0;\r\n\t\tString padded = \"\";\r\n\t\t\r\n\t\t\r\n\t\ti = Integer.parseInt(s, 16);\r\n\t\t\r\n\t\tif (s.length() <= 1) padded += String.format(\"%4s\", Integer.toBinaryString(i)).replace(' ', '0');\r\n\t \r\n\t\telse {\r\n\t\t\tif (s.length() <= 2) padded += String.format(\"%8s\", Integer.toBinaryString(i)).replace(' ', '0');\r\n\t\t\telse {\r\n\t\t\t\tif (s.length() <= 3) padded += String.format(\"%12s\", Integer.toBinaryString(i)).replace(' ', '0');\r\n\t\t\t\telse {\r\n\t\t\t\t\tpadded += String.format(\"%16s\", Integer.toBinaryString(i)).replace(' ', '0');\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t \r\n\t return padded;\r\n\t}", "title": "" }, { "docid": "ec7828c62a72eb188037621b3a107d28", "score": "0.4672563", "text": "public String getHash() {\n byte[] bArr = new byte[49];\n bArr[0] = (byte) getCTxDestinationType().getValue();\n this.f417a = Utils.m3456c(bArr, 1);\n this.f418b = Utils.m3456c(bArr, 5);\n System.arraycopy(bArr, 9, this.f419c, 0, 40);\n return StringToolkit.bytesToString(bArr);\n }", "title": "" }, { "docid": "fd652bc00f452263a54cc34c347ef4e4", "score": "0.46696392", "text": "public static String toHexString(byte[] hash)\n {\n BigInteger number = new BigInteger(1, hash);\n \n // Convert message digest into hex value\n StringBuilder hexString = new StringBuilder(number.toString(16));\n \n // Pad with leading zeros\n while (hexString.length() < 64)\n {\n hexString.insert(0, '0');\n }\n \n return hexString.toString();\n }", "title": "" }, { "docid": "23bd9225d2d94d99c12732b3e4a58eaf", "score": "0.46673524", "text": "private static final String toString(byte[] b) {\n // Create a BigInteger using the byte array\r\n //\r\n BigInteger bi = new BigInteger(b);\r\n //\r\n // Return as hex string\r\n //\r\n return bi.toString(32);\r\n }", "title": "" }, { "docid": "47f71ef53c3d458b2e4e8673fefcd0df", "score": "0.46620154", "text": "public static String toBinaryString(byte b[], int ofs, int len) {\n\t\treturn StringTools.toBinaryString(b, ofs, len, null).toString();\n\t}", "title": "" }, { "docid": "2c46e6c68b33362c74d48ca0ad963107", "score": "0.46571144", "text": "private static String bytesToHex(byte[] hash)\n {\n StringBuffer hexString = new StringBuffer();\n for (int i = 0; i < hash.length; i++)\n {\n String hex = Integer.toHexString(0xff & hash[i]);\n if (hex.length() == 1) hexString.append('0');\n hexString.append(hex);\n }\n return hexString.toString();\n }", "title": "" }, { "docid": "447dc55a92663ece6c659c5f2015ca28", "score": "0.46562636", "text": "String hash();", "title": "" }, { "docid": "207c91cd98bdde9f412c6af00fdef645", "score": "0.4652972", "text": "public String toHexString(byte[] hash) {\n\t\tBigInteger bigInteger = new BigInteger(1, hash);\n//\t convert message digest into hex value\n\t\tStringBuilder stringBuilder = new StringBuilder(bigInteger.toString(16));\n\n//\t pad with leading zeros\n\t\twhile (stringBuilder.length() < 32) {\n\t\t\tstringBuilder.insert(0, '0');\n\n\t\t}\n\t\treturn stringBuilder.toString();\n\n\t}", "title": "" }, { "docid": "af599c4b538a54b2245dad7ccb4e9cf3", "score": "0.46510938", "text": "private static String convertToHexString(byte[] hash) {\n StringBuffer output = new StringBuffer();\n for (int i = 0; i < hash.length; i++) {\n if ((0xff & hash[i]) < 0x10) {\n output.append(\"0\");\n output.append(Integer.toHexString((0xFF & hash[i])));\n } else {\n output.append(Integer.toHexString(0xFF & hash[i]));\n }\n }\n\n return output.toString();\n }", "title": "" }, { "docid": "b6e9584516c2467087465c5858e2c60a", "score": "0.46433654", "text": "public static String toBinaryString(long i) {\n\t\treturn StringTools.toBinaryString(i, -1, null).toString();\n\t}", "title": "" }, { "docid": "fe78efb2b3b3f9187c26fae620b81398", "score": "0.46432412", "text": "public static String sha1Hash(String data) {\n byte[] hash = sha1Hash(data.getBytes());\n if (hash == null) {\n return null;\n }\n\n return new String(Base64.encodeBase64(hash));\n }", "title": "" }, { "docid": "377d65496ec5f6f997da83918c78e71c", "score": "0.46406817", "text": "private static String convertStringToHash(String src, String hashType) throws Exception {\n StringBuilder sb = new StringBuilder();\n MessageDigest digestMD5 = MessageDigest.getInstance(hashType);\n byte[] hashBytes = digestMD5.digest(src.getBytes());\n\n for (byte hashByte : hashBytes) {\n sb.append(String.format(\"%02x\", hashByte));\n }\n return sb.toString();\n }", "title": "" }, { "docid": "0b0e39d6b00e21e96b6495e3680aa825", "score": "0.46399692", "text": "public final byte[] fromString(String str) {\n try {\n return Base64.decode(str, 3);\n } catch (IllegalArgumentException e) {\n String str2 = this.zza;\n StringBuilder sb = new StringBuilder(String.valueOf(str2).length() + 27 + String.valueOf(str).length());\n sb.append(\"Invalid byte[] value for \");\n sb.append(str2);\n sb.append(\": \");\n sb.append(str);\n Log.e(\"PhenotypeFlag\", sb.toString());\n return null;\n }\n }", "title": "" }, { "docid": "a0a472007f669c2aeeb49b222d3ceaaf", "score": "0.46397614", "text": "public void onBinaryMessage(WebSocket websocket, byte[] binary) {\n String str = new String(binary);\n System.out.println(\"str: \" + str);\n }", "title": "" }, { "docid": "cad3077f77c02df2971e7b8b39785faf", "score": "0.4639583", "text": "private static String bytesToHex(byte[] hash) {\n StringBuffer hexString = new StringBuffer();\n String hex;\n for (int i = 0; i < hash.length; i++) {\n hex = Integer.toHexString(0xff & hash[i]);\n if (hex.length() == 1) {\n hexString.append(0);\n }\n hexString.append(hex);\n }\n return hexString.toString();\n }", "title": "" }, { "docid": "5b64b9ab4000b1e0d3392f01f541662f", "score": "0.46384528", "text": "public static String unhexlify(String string) {\n try {\n return new String(Bytes.fromHexString(string).array(), \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n log.error(e);\n throw new RuntimeException(e);\n }\n }", "title": "" }, { "docid": "1e3527c04f878684d25eada989172bd1", "score": "0.46255782", "text": "@Override\n public String convertToString() {\n byte[] SignatureBytes = new byte[64];\n System.arraycopy(this.r, 0, SignatureBytes, 0, 32);\n System.arraycopy(this.s, 0, SignatureBytes, 32, 32);\n return Hex.toHexString(SignatureBytes);\n }", "title": "" }, { "docid": "f5e4df641a12005c0c8f444b16d232f8", "score": "0.46252167", "text": "public static byte[] hexStringToByteArray(String s) {\n int len = s.length();\n byte[] data = new byte[len / 2];\n try {\n for (int i = 0; i < len; i += 2) {\n data[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4)\n + Character.digit(s.charAt(i+1), 16));\n }\n } catch (Exception e) {\n Log.d(\"debug\", \"Argument(s) for hexStringToByteArray(String s)\"\n + \"was not a hex string\");\n }\n return data;\n }", "title": "" }, { "docid": "ab5c1d94874285a69b9505d074c6f84b", "score": "0.46239936", "text": "public static String toHexString(byte[] hash)\n {\n BigInteger number = new BigInteger(1, hash); \n \n StringBuilder hexString = new StringBuilder(number.toString(16)); \n\n while (hexString.length() < 32) \n { \n hexString.insert(0, '0'); \n } \n \n return hexString.toString(); \n }", "title": "" }, { "docid": "974e7e091b90226896a84a7814192ac1", "score": "0.4615104", "text": "byte[] toBytes ();", "title": "" }, { "docid": "a19713eab01aa11e494d72aff2c14d2d", "score": "0.46121636", "text": "public static byte[] hexStringToByteArray(String s) {\n int len = s.length();\n byte[] data = new byte[len / 2];\n for (int i = 0; i < len; i += 2) {\n data[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4)\n + Character.digit(s.charAt(i + 1), 16));\n }\n return data;\n }", "title": "" }, { "docid": "000489a3e8c19289c7d690831c0ef4d5", "score": "0.46117115", "text": "private String getHash(String string) {\n MessageDigest digest=null;\n try {\n digest = MessageDigest.getInstance(\"SHA-256\");\n } catch (NoSuchAlgorithmException e1) {\n e1.printStackTrace();\n }\n digest.reset();\n return bin2hex(digest.digest(string.getBytes()));\n }", "title": "" }, { "docid": "e4c57755d1606a0b1ec3be1d47f69cbc", "score": "0.46109006", "text": "int stringToHashCode(String key)\n {\n \tint A = 1952786893;\n\t\n \tint v = A;\n \tfor (int j = 0; j < key.length(); j++)\n\t {\n \t\tchar c = key.charAt(j);\n \t\tv = A * (v + (int) c + j) >> 16;\n\t }\n\t\n \treturn v;\n }", "title": "" }, { "docid": "3eedaf46e2b60db1004dd706588717bf", "score": "0.4609199", "text": "public static byte[] hexStringToByteArray(String s) {\r\n int len = s.length();\r\n byte[] data = new byte[len / 2];\r\n for (int i = 0; i < len; i += 2) {\r\n data[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4)\r\n + Character.digit(s.charAt(i+1), 16));\r\n }\r\n return data;\r\n }", "title": "" }, { "docid": "2fc184dc74787339ce8ed06bf6b0f6e0", "score": "0.46069092", "text": "public static byte[] hexStringToByteArray(String s) {\n int len = s.length();\n byte[] data = new byte[len / 2];\n for (int i = 0; i < len; i += 2) {\n data[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4) + Character.digit(s.charAt(i + 1), 16));\n }\n return data;\n }", "title": "" }, { "docid": "c1d74ef0c0ef6140e9ac23680f6c47c2", "score": "0.46067533", "text": "public static String toHexString(byte[] hash)\n {\n BigInteger number = new BigInteger(1, hash);\n\n // Convert message digest into hex value\n StringBuilder hexString = new StringBuilder(number.toString(16));\n\n // Pad with leading zeros\n while (hexString.length() < 32)\n {\n hexString.insert(0, '0');\n }\n\n return hexString.toString();\n }", "title": "" }, { "docid": "75a16d62cb5498f327623d519566c95d", "score": "0.46049985", "text": "public String toHexString(byte[] hash)\n {\n BigInteger number = new BigInteger(1, hash);\n\n // Convert message digest into hex value\n StringBuilder hexString = new StringBuilder(number.toString(16));\n\n // Pad with leading zeros\n while (hexString.length() < 32)\n {\n hexString.insert(0, '0');\n }\n return hexString.toString();\n }", "title": "" }, { "docid": "93be4659f04101b1aaea3eefbcc44d73", "score": "0.4595763", "text": "public static byte[] toByteArray(String s) {\r\n\t\tbyte[] buf = new byte[s.length() / 2];\r\n\t\tint j = 0;\r\n\t\tfor (int i = 0; i < buf.length; i++) {\r\n\t\t\tbuf[i] = (byte) ((Character.digit(s.charAt(j++), 16) << 4) | Character.digit(s.charAt(j++), 16));\r\n\t\t}\r\n\t\treturn buf;\r\n\t}", "title": "" }, { "docid": "119a2e0c6fa0d1638c61da1be8b2009c", "score": "0.45939815", "text": "public java.lang.String getHash() {\n java.lang.Object ref = hash_;\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 hash_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "119a2e0c6fa0d1638c61da1be8b2009c", "score": "0.45939815", "text": "public java.lang.String getHash() {\n java.lang.Object ref = hash_;\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 hash_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "aa51b80f33c8f93f4ba60e21a97c9659", "score": "0.45904082", "text": "public byte[] string2byte(String s) {\n\t\treturn s.getBytes();\r\n\t\t// return res;\r\n\t}", "title": "" }, { "docid": "32fc03c76dada7014641ce1c934eb093", "score": "0.45865545", "text": "public static String encodeHexString(byte[] data, boolean toLowerCase) {\n/* 241 */ return new String(encodeHex(data, toLowerCase));\n/* */ }", "title": "" }, { "docid": "a522c55a4e91d39c3cace6060ccb5138", "score": "0.45851412", "text": "private static String bytesToHex(byte[] hash) {\n StringBuilder hexString = new StringBuilder();\n for (byte b : hash) {\n String hex = Integer.toHexString(0xff & b);\n if (hex.length() == 1) hexString.append('0');\n hexString.append(hex);\n }\n return hexString.toString();\n }", "title": "" }, { "docid": "dad91cec88b2b63a726c80e44ee2fb37", "score": "0.4585085", "text": "public static byte[] toBytes(String input) {\n if (input == null) {\n return EMPTY;\n }\n return input.getBytes(StandardCharsets.UTF_8);\n }", "title": "" }, { "docid": "ab70b56d22d8783ab5cadf2c61b96525", "score": "0.45838892", "text": "public static byte[] convertStringToBytes(String s) throws SQLException {\n int len = s.length();\n if (len % 2 != 0) {\n throw Message.getSQLException(ErrorCode.HEX_STRING_ODD_1, s);\n }\n len /= 2;\n byte[] buff = new byte[len];\n for (int i = 0; i < len; i++) {\n buff[i] = (byte) ((getHexDigit(s, i + i) << 4) | getHexDigit(s, i + i + 1));\n }\n return buff;\n }", "title": "" }, { "docid": "0ef6cceeea45f677f45b2be90fd0beda", "score": "0.45825702", "text": "Buffer fromHexdump(String hex);", "title": "" }, { "docid": "de277b6537cfd6169964c8f48867222e", "score": "0.45700848", "text": "public static String toBinary(final byte[] pBytes) {\n\t\tString ret = null;\n\t\tif (pBytes != null && pBytes.length > 0) {\n\t\t\tBigInteger val = new BigInteger(bytesToStringNoSpace(pBytes), HEXA);\n\t\t\tStringBuilder build = new StringBuilder(val.toString(2));\n\t\t\t// left pad with 0 to fit byte size\n\t\t\tfor (int i = build.length(); i < pBytes.length * BitUtils.BYTE_SIZE; i++) {\n\t\t\t\tbuild.insert(0, 0);\n\t\t\t}\n\t\t\tret = build.toString();\n\t\t}\n\t\treturn ret;\n\t}", "title": "" } ]
69a89e987cf283be86e60d2b4d39006f
Returns true if Google Earth app is installed.
[ { "docid": "a1c29b787534becfbc105b9631bed916", "score": "0.8050844", "text": "private boolean isEarthInstalled() {\n List<ResolveInfo> infos = getPackageManager().queryIntentActivities(\n new Intent().setType(SaveActivity.GOOGLE_EARTH_KML_MIME_TYPE),\n PackageManager.MATCH_DEFAULT_ONLY);\n for (ResolveInfo info : infos) {\n if (info.activityInfo != null && info.activityInfo.packageName != null\n && info.activityInfo.packageName.equals(SaveActivity.GOOGLE_EARTH_PACKAGE)) {\n return true;\n }\n }\n return false;\n }", "title": "" } ]
[ { "docid": "747b6674e0fca12dc663f997c1122a6f", "score": "0.7249704", "text": "boolean hasInstalledApps();", "title": "" }, { "docid": "85974993bb9bf29ebbf2cfbe19544b9d", "score": "0.6891836", "text": "private boolean isSeattleInstalled() {\n\t\treturn (new File(getSeattlePath() + \"seattle_repy/nmmain.py\")).exists();\n\t}", "title": "" }, { "docid": "fc2a4c043387a6569c71cee32f0c0444", "score": "0.6848339", "text": "boolean hasApp();", "title": "" }, { "docid": "fc2a4c043387a6569c71cee32f0c0444", "score": "0.6848339", "text": "boolean hasApp();", "title": "" }, { "docid": "93eb252be6c80b23c080fc71cadc15d4", "score": "0.66293335", "text": "public boolean isInstalled(AppHolder app) {\n return ensureInstalled(app.getPackageName());//installedPrograms.contains(app);\n }", "title": "" }, { "docid": "8c28b9bf68629d0c5c4974f5e2d19e39", "score": "0.65441203", "text": "public static boolean isInstalled() {\n return sConfig != null;\n }", "title": "" }, { "docid": "9bb9687d620d22247c309b80b86675f8", "score": "0.6436572", "text": "boolean hasSiteApp();", "title": "" }, { "docid": "ee9497faf05524f860cd528962ad1290", "score": "0.6403936", "text": "public static boolean isGoogleAppEngine() {\n\t\treturn System.getProperty(\"com.google.appengine.runtime.version\") != null;\n\t}", "title": "" }, { "docid": "4dc9716d511ab8c6326fc16702520c0f", "score": "0.6267351", "text": "public boolean isInstalled() {\n try {\n return this.getSetting(ServerSetting.SERVER_PORT) != null;\n } catch (SqlJetException e) {\n return false;\n }\n }", "title": "" }, { "docid": "d32e103bef6c1db4af3c3a15e664fca9", "score": "0.62366337", "text": "boolean hasEnvironment();", "title": "" }, { "docid": "7301c3d5dba0d6883de688f9308e4833", "score": "0.620394", "text": "public static boolean isAvailable() {\n try {\n JavaPlugin.getProvidingPlugin(Towny.class);\n return true;\n } catch (NoClassDefFoundError e) {\n return false;\n }\n }", "title": "" }, { "docid": "df190731cf5e614fb721f5756696d5cf", "score": "0.618792", "text": "boolean hasAppVersion();", "title": "" }, { "docid": "e62253a1c128b69cc939ba2e35d0e3d0", "score": "0.61398077", "text": "public static boolean isInstalled(Context context) {\n \treturn isAvailable(context);\n }", "title": "" }, { "docid": "b474579c14a9236e67c26a64bd694a81", "score": "0.6138488", "text": "public static boolean isAppEngine()\r\n {\r\n return Window.Location.getHref().startsWith(\"http://spiffyui.appspot.com\") ||\r\n Window.Location.getHref().startsWith(\"http://spiffyui-staging.appspot.com\") ||\r\n Window.Location.getHref().startsWith(\"http://spiffyui.org\") ||\r\n Window.Location.getHref().startsWith(\"http://www.spiffyui.org\");\r\n }", "title": "" }, { "docid": "13f9607058c45d036a797a47c0c4f0b1", "score": "0.6130962", "text": "boolean hasRequestingApplication();", "title": "" }, { "docid": "e2a229082cb3c34c26239d02f6aac376", "score": "0.59759367", "text": "static boolean isOnComputeEngine() {\n String osName = System.getProperty(\"os.name\");\n if (\"Linux\".equals(osName)) {\n String cmd = \"cat /sys/class/dmi/id/product_name\";\n try {\n Process process = Runtime.getRuntime().exec(new String[] {\"/bin/sh\", \"-c\", cmd});\n process.waitFor();\n String result =\n CharStreams.toString(new InputStreamReader(process.getInputStream(), \"UTF-8\"));\n return result.contains(GCE_PRODUCTION_NAME_PRIOR_2016)\n || result.contains(GCE_PRODUCTION_NAME_AFTER_2016);\n } catch (IOException | InterruptedException e) {\n return false;\n }\n }\n return false;\n }", "title": "" }, { "docid": "c8d303de1c0f4c7e25d7aa3312474d41", "score": "0.59350985", "text": "boolean hasAppType();", "title": "" }, { "docid": "e0332aba24b24de6f9f0e80557ec321e", "score": "0.5895807", "text": "@SuppressLint({\"NewApi\"})\n public boolean ee() {\n try {\n long j;\n Context context = getContext();\n PackageManager packageManager = context.getPackageManager();\n String packageName = context.getPackageName();\n PackageInfo packageInfo = packageManager.getPackageInfo(packageName, 0);\n String num = Integer.toString(packageInfo.versionCode);\n String str = packageInfo.versionName == null ? \"0.0\" : packageInfo.versionName;\n if (VERSION.SDK_INT >= 9) {\n j = packageInfo.firstInstallTime;\n } else {\n j = new File(packageManager.getApplicationInfo(packageName, 0).sourceDir).lastModified();\n }\n this.nM = z.a(this, context, bje(), num, str, j);\n this.nM.enable();\n this.nL = new p().cE(context);\n return true;\n } catch (Exception e) {\n c.biX().e(\"Answers\", \"Error retrieving app properties\", e);\n return false;\n }\n }", "title": "" }, { "docid": "2d60468ebb1e2e2015ec9fce7f63866b", "score": "0.58692354", "text": "boolean hasSystem();", "title": "" }, { "docid": "adcb9e602073374fa95ed1088472c183", "score": "0.58536434", "text": "boolean hasSourceApplication();", "title": "" }, { "docid": "af90bfa6ff6be397e84d774218d0b2f8", "score": "0.5814675", "text": "private boolean appInstalledOrNot(String uri) {\n PackageManager pm = getPackageManager();\n boolean app_installed;\n try {\n pm.getPackageInfo(uri, PackageManager.GET_ACTIVITIES);\n app_installed = true;\n } catch (PackageManager.NameNotFoundException e) {\n app_installed = false;\n }\n return app_installed;\n }", "title": "" }, { "docid": "c89095051daf8f7ce08c92cb171d28e2", "score": "0.57814103", "text": "private boolean isInstalled(String pair){\n\t\tString extStorageDirectory = Environment.getExternalStorageDirectory().toString();\n\t\tFile langDirmode = new File(extStorageDirectory +\"/apertium/\"+pair+\"/modes\");\n\t\tif(!langDirmode.exists()){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\t\t\t\n\t}", "title": "" }, { "docid": "d2a1a51942954a393e8dfd07ee856ecb", "score": "0.5777501", "text": "public boolean isExtensionInstalled(final String extension) {\n\t\tif(extension==null || extension.trim().isEmpty()) return false;\n\t\treturn engines.containsKey(extension);\n\t}", "title": "" }, { "docid": "1886d5225097a721a28d6695c6404d17", "score": "0.57698345", "text": "public boolean isServicesIntalled() {\n int available = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(Home.this);\n\n if (available == ConnectionResult.SUCCESS){\n //everything is fine and the user can make map requests\n Log.d(TAG, \"isServicesInstalled: Google Play Services is working\");\n return true;\n }\n else if (GoogleApiAvailability.getInstance().isUserResolvableError(available)){\n //an error occured but we can resolve it\n Log.d(TAG, \"isServicesIntalled: an error occured but we can fix it\");\n Dialog dialog = GoogleApiAvailability.getInstance().getErrorDialog(Home.this, available, ERROR_DIALOG_REQUEST);\n dialog.show();\n }\n else {\n Toast.makeText(this, \"You can't make map requests\", Toast.LENGTH_SHORT).show();\n }\n return false;\n }", "title": "" }, { "docid": "f1294df09053a07620afcd5e3ed3946c", "score": "0.5768671", "text": "private boolean isAppInstalled(String uri) {\n\t\t PackageManager pm = getApplicationContext().getPackageManager();\n\t\t boolean app_installed = false;\n\t\t try {\n\t\t pm.getPackageInfo(uri, PackageManager.GET_ACTIVITIES);\n\t\t app_installed = true;\n\t\t } catch (PackageManager.NameNotFoundException e) {\n\t\t app_installed = false;\n\t\t }\n\t\t return app_installed;\n\t\t}", "title": "" }, { "docid": "a2a6ffaf97596a824f988ca695356fcf", "score": "0.5746038", "text": "public static boolean isAppInstalled(Context context, String packagename) {\n\t\tPackageInfo packageInfo;\n\t\ttry {\n\t\t\tpackageInfo = context.getPackageManager().getPackageInfo(\n\t\t\t\t\tpackagename, 0);\n\t\t} catch (NameNotFoundException e) {\n\t\t\tpackageInfo = null;\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (packageInfo == null) {\n\t\t\t// System.out.println(\"没有安装\");\n\t\t\treturn false;\n\t\t} else {\n\t\t\t// System.out.println(\"已经安装\");\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "b54531e2389e04993c776f35304541c6", "score": "0.56743616", "text": "boolean hasGems();", "title": "" }, { "docid": "3dcd264b90895be3919c8009db0e96f2", "score": "0.566189", "text": "public boolean isGPUSupported(){\n final ActivityManager activityManager = (ActivityManager)this.context.getSystemService(Context.ACTIVITY_SERVICE);\n final ConfigurationInfo configurationInfo = activityManager\n .getDeviceConfigurationInfo();\n return configurationInfo.reqGlEsVersion >= 0x20000;\n }", "title": "" }, { "docid": "fd11a165aa26bbda81b07400559a702a", "score": "0.5658522", "text": "protected boolean isExtractAppEnabled(Map<String,Object> options){\n \t\t\n\t \treturn checkOptions(options, ObjectAccessTokens.APP);\n \t}", "title": "" }, { "docid": "3c0500ffb106347bb9506e5c1b2f098a", "score": "0.5654366", "text": "public boolean hasSiteApp() {\n return ((bitField1_ & 0x00000400) == 0x00000400);\n }", "title": "" }, { "docid": "3989c1dcfdba2e42cf06fea895b7e6b8", "score": "0.56518817", "text": "boolean hasEngine();", "title": "" }, { "docid": "ac9713b2f925cddb0594e2cfffc80b15", "score": "0.56377965", "text": "public boolean hasSiteApp() {\n return ((bitField1_ & 0x00000400) == 0x00000400);\n }", "title": "" }, { "docid": "a59aa549561c3868a8d330cbbc0253a9", "score": "0.56124526", "text": "private boolean isAppInstalled ( String packageName ) {\n\n PackageManager pm = getPackageManager();\n boolean installed = false;\n\n try {\n\n pm.getPackageInfo(packageName, PackageManager.GET_ACTIVITIES);\n installed = true;\n\n } catch (PackageManager.NameNotFoundException e) {\n\n installed = false;\n }\n\n return installed;\n }", "title": "" }, { "docid": "753415a289a887379e6b8cf305c48302", "score": "0.5605117", "text": "public boolean googleServicesAvailable()\n {\n GoogleApiAvailability api = GoogleApiAvailability.getInstance();\n int isAvailable = api.isGooglePlayServicesAvailable(this);\n if (isAvailable == ConnectionResult.SUCCESS)\n {\n return true;\n }\n else if (api.isUserResolvableError(isAvailable))\n {\n Dialog dialog = api.getErrorDialog(this, isAvailable, 0);\n dialog.show();\n }\n else\n {\n Toast.makeText(this, \"Can't get Map\", Toast.LENGTH_LONG).show();\n }\n return false;\n\n\n }", "title": "" }, { "docid": "50f7952fd66df654fd8ad3ecadd0f212", "score": "0.559196", "text": "public boolean isSetApps() {\n return this.apps != null;\n }", "title": "" }, { "docid": "aebacf27c45c8a267c7061faf1ac2c5b", "score": "0.5586459", "text": "private boolean isGooglePlayServicesAvailable() {\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n // If Google Play services is available\n if (ConnectionResult.SUCCESS == resultCode) {\n // In debug mode, log the status\n Log.d(\"Location Updates\", \"Google Play services is available.\");\n return true;\n } else {\n // Get the error dialog from Google Play services\n Dialog errorDialog = GooglePlayServicesUtil.getErrorDialog(resultCode, this,\n CONNECTION_FAILURE_RESOLUTION_REQUEST);\n\n // If Google Play services can provide an error dialog\n if (errorDialog != null) {\n // Create a new DialogFragment for the error dialog\n ErrorDialogFragment errorFragment = new ErrorDialogFragment();\n errorFragment.setDialog(errorDialog);\n errorFragment.show(getSupportFragmentManager(), \"Location Updates\");\n }\n\n return false;\n }\n }", "title": "" }, { "docid": "19d5112fbd5569d422f055dcd28689f4", "score": "0.55686957", "text": "boolean hasSoftwareVersion();", "title": "" }, { "docid": "19d5112fbd5569d422f055dcd28689f4", "score": "0.55686957", "text": "boolean hasSoftwareVersion();", "title": "" }, { "docid": "6e4a2faeb42c30e3b8b1a7d98d19fc7f", "score": "0.5566615", "text": "boolean hasPackageName();", "title": "" }, { "docid": "45449e9725180348441fbbb665233f51", "score": "0.5565073", "text": "private boolean isInstalled(EdaContext xContext, ComponentPackage compPkg) {\n\n\tboolean bInstalled = false;\n\t\n\tIcofFile installedFile;\n\tinstalledFile = getInstalledFile(xContext, getHistoryDir(), \n\t compPkg);\n\t\n\tlogInfo(xContext, \"Checking existence of installed file ...\", true);\n\tlogInfo(xContext, \" -> \" + installedFile.getAbsolutePath(), true);\n\t\n\tif (installedFile.exists()) \n\t bInstalled = true;\n\t\n\treturn bInstalled;\n\t\n }", "title": "" }, { "docid": "2239077a4f5d0e50e0bd442c862dd934", "score": "0.55595523", "text": "boolean isWorkspaceApp(String appName);", "title": "" }, { "docid": "71755e409f22076de5c7dcb72b06be3c", "score": "0.55580866", "text": "public static boolean m32413g() {\n PackageManager packageManager = C5099a.m32466a().mo38103b().getPackageManager();\n try {\n packageManager.getPackageInfo(\"com.google.android.gsf.login\", 16);\n packageManager.getPackageInfo(\"com.google.android.gsf\", 16);\n return (packageManager.getPackageInfo(\"com.google.android.gms\", 16).applicationInfo.flags & 1) != 0;\n } catch (PackageManager.NameNotFoundException e) {\n C5080a.m32373d(\"DeviceUtil\", e.getMessage());\n return false;\n }\n }", "title": "" }, { "docid": "6db9234301b79a7a1e1b503f8005097f", "score": "0.55509126", "text": "boolean hasOs();", "title": "" }, { "docid": "6db9234301b79a7a1e1b503f8005097f", "score": "0.55509126", "text": "boolean hasOs();", "title": "" }, { "docid": "0d1edc1da18882f94cf5aad5f2cec492", "score": "0.5539074", "text": "boolean hasMachinePreferences();", "title": "" }, { "docid": "48fec4ff2ab25b1cc9729c0c542290ad", "score": "0.55351675", "text": "boolean hasAppId();", "title": "" }, { "docid": "f107d170a6387e3f54c440e0687996c1", "score": "0.5533206", "text": "public boolean isGooglePlayServicesAvailable() {\n GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.getInstance();\n int status = googleApiAvailability.isGooglePlayServicesAvailable(this);\n if (status != ConnectionResult.SUCCESS) {\n if (googleApiAvailability.isUserResolvableError(status)) {\n googleApiAvailability.getErrorDialog(this, status, 2404).show();\n }\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "f107d170a6387e3f54c440e0687996c1", "score": "0.5533206", "text": "public boolean isGooglePlayServicesAvailable() {\n GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.getInstance();\n int status = googleApiAvailability.isGooglePlayServicesAvailable(this);\n if (status != ConnectionResult.SUCCESS) {\n if (googleApiAvailability.isUserResolvableError(status)) {\n googleApiAvailability.getErrorDialog(this, status, 2404).show();\n }\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "fc4b70462bbf6150e619c4c6eeeecbd8", "score": "0.55315393", "text": "boolean getEnvironment();", "title": "" }, { "docid": "7b097ed47c81d19b946bea287aaacd43", "score": "0.5529829", "text": "private boolean isGooglePlayServicesAvailable() {\n GoogleApiAvailability googleAPI = GoogleApiAvailability.getInstance();\n int result = googleAPI.isGooglePlayServicesAvailable(this);\n if(result != ConnectionResult.SUCCESS) {\n if(googleAPI.isUserResolvableError(result)) {\n googleAPI.getErrorDialog(this, result,\n 0).show();\n }\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "70c6eb493cba73c10653a3759c9dbcf0", "score": "0.55290854", "text": "boolean hasArtifactLocation();", "title": "" }, { "docid": "70c6eb493cba73c10653a3759c9dbcf0", "score": "0.55290854", "text": "boolean hasArtifactLocation();", "title": "" }, { "docid": "3bf3f96d1c06e0e648305843a04d1e19", "score": "0.5519834", "text": "boolean hasClientOs();", "title": "" }, { "docid": "a880671143d59d55af5cc227029c6d7a", "score": "0.5515923", "text": "private boolean isGooglePlayServicesAvailable() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(this);\n return connectionStatusCode == ConnectionResult.SUCCESS;\n }", "title": "" }, { "docid": "a880671143d59d55af5cc227029c6d7a", "score": "0.5515923", "text": "private boolean isGooglePlayServicesAvailable() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(this);\n return connectionStatusCode == ConnectionResult.SUCCESS;\n }", "title": "" }, { "docid": "f58c4f011e57c44380d885b7d72b7a4b", "score": "0.5513246", "text": "boolean hasOsVersion();", "title": "" }, { "docid": "72135fd3b10e66b627a5f562b2650c84", "score": "0.55038667", "text": "public boolean hasAppId() {\n return has(REPORTED_FOR_APP_ID);\n }", "title": "" }, { "docid": "f052968f040f771a21db156b5032932a", "score": "0.5503546", "text": "public boolean appInstalled(String appPackage) {\n boolean mInstalled = false;\n try {\n PackageManager mPackage = getPackageManager();\n mPackage.getPackageInfo(appPackage, PackageManager.GET_ACTIVITIES);\n mInstalled = true;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return mInstalled;\n }", "title": "" }, { "docid": "569e0eb14909507c643cf4d75c702e49", "score": "0.5493375", "text": "boolean hasProductNameAndVersion();", "title": "" }, { "docid": "6d1cd01acb4c7a91cda6c73b1455750a", "score": "0.54667544", "text": "private boolean isLocationServiceAvaiable() {\n Utils utils = new Utils();\n if(utils.checkForSettings(this.context))\n return true;\n else if(utils.isAppRunning){\n MainActivity mainActivity = new MainActivity();\n mainActivity.showSettingsAlert();\n }\n return false;\n }", "title": "" }, { "docid": "93257f9ee9b2dda4332cf2c0a826aac9", "score": "0.5460737", "text": "public boolean isApplication() {\n return application;\n }", "title": "" }, { "docid": "2876c637fb1d45b4252838826e090788", "score": "0.54472214", "text": "private boolean isGooglePlayServicesAvailable() {\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n if (ConnectionResult.SUCCESS == resultCode) {\n if (Log.isLoggable(TAG, Log.DEBUG)) {\n Log.d(TAG, \"Google Play services is available.\");\n }\n return true;\n } else {\n Log.e(TAG, \"Google Play services is unavailable.\");\n return false;\n }\n }", "title": "" }, { "docid": "c9d378b342001e9cc37cb927ec1b445c", "score": "0.54440933", "text": "public static boolean isAppInstalled(String packageName) {\n PackageInfo packageInfo;\n try {\n packageInfo = ContextProvider.get().getPackageManager().getPackageInfo(packageName, 0);\n } catch (PackageManager.NameNotFoundException e) {\n packageInfo = null;\n }\n return packageInfo != null;\n }", "title": "" }, { "docid": "c64abbd0c83e162b019e20e566bde983", "score": "0.54360384", "text": "boolean hasDeviceType();", "title": "" }, { "docid": "b15070c5714ed5e44cc155180d217bed", "score": "0.5424488", "text": "private static boolean installingFromUnknownSourcesAllowed() {\n Context context = ContextUtils.getApplicationContext();\n try {\n return Settings.Secure.getInt(\n context.getContentResolver(), Settings.Secure.INSTALL_NON_MARKET_APPS)\n == 1;\n } catch (Settings.SettingNotFoundException e) {\n return false;\n }\n }", "title": "" }, { "docid": "685fcebfc8573a138de99a2f9a3b7215", "score": "0.5420934", "text": "boolean hasFbscriptexe();", "title": "" }, { "docid": "666ba08d564543bb88e755134817befe", "score": "0.5419081", "text": "public boolean googleServicesAvailable() {\n GoogleApiAvailability api = GoogleApiAvailability.getInstance();\n\n int apiAvailable = api.isGooglePlayServicesAvailable(this);\n\n /* This returns three cases\n 1. The API is installed and available\n 2. The error can be fixed by the phone\n 3. The API is not available and can not be fixed\n */\n\n if (apiAvailable == ConnectionResult.SUCCESS) {\n Toast.makeText(this, \"It is Available\", Toast.LENGTH_LONG).show();\n return true;\n } else if (api.isUserResolvableError(apiAvailable)) {\n //This is resolvable so we launch the google dialog to resolve the issue\n Dialog dialog = api.getErrorDialog(this, apiAvailable, 0);\n dialog.show();\n } else {\n Toast.makeText(this, \"It is not possible to connect\", Toast.LENGTH_LONG).show();\n }\n return false;\n }", "title": "" }, { "docid": "deb46380dff4faf275a9ab8405392bd4", "score": "0.5391817", "text": "boolean hasServerOs();", "title": "" }, { "docid": "5c106003df8f3e170127860eac216d94", "score": "0.53879595", "text": "public boolean isSetAppStoreCode() {\n return this.appStoreCode != null;\n }", "title": "" }, { "docid": "20967920b838600828da58c0ec7814be", "score": "0.53711987", "text": "boolean hasSourceIntegrationEnvironment();", "title": "" }, { "docid": "05a555203142af1d6d486d925243432b", "score": "0.5369308", "text": "boolean hasAppid();", "title": "" }, { "docid": "05a555203142af1d6d486d925243432b", "score": "0.5369308", "text": "boolean hasAppid();", "title": "" }, { "docid": "05a555203142af1d6d486d925243432b", "score": "0.5369308", "text": "boolean hasAppid();", "title": "" }, { "docid": "05a555203142af1d6d486d925243432b", "score": "0.5369308", "text": "boolean hasAppid();", "title": "" }, { "docid": "05a555203142af1d6d486d925243432b", "score": "0.5369308", "text": "boolean hasAppid();", "title": "" }, { "docid": "05a555203142af1d6d486d925243432b", "score": "0.5369308", "text": "boolean hasAppid();", "title": "" }, { "docid": "05a555203142af1d6d486d925243432b", "score": "0.5369308", "text": "boolean hasAppid();", "title": "" }, { "docid": "05a555203142af1d6d486d925243432b", "score": "0.5369308", "text": "boolean hasAppid();", "title": "" }, { "docid": "05a555203142af1d6d486d925243432b", "score": "0.5369308", "text": "boolean hasAppid();", "title": "" }, { "docid": "05a555203142af1d6d486d925243432b", "score": "0.5369308", "text": "boolean hasAppid();", "title": "" }, { "docid": "05a555203142af1d6d486d925243432b", "score": "0.5369308", "text": "boolean hasAppid();", "title": "" }, { "docid": "05a555203142af1d6d486d925243432b", "score": "0.5369308", "text": "boolean hasAppid();", "title": "" }, { "docid": "05a555203142af1d6d486d925243432b", "score": "0.5369308", "text": "boolean hasAppid();", "title": "" }, { "docid": "05a555203142af1d6d486d925243432b", "score": "0.5369308", "text": "boolean hasAppid();", "title": "" }, { "docid": "05a555203142af1d6d486d925243432b", "score": "0.5369308", "text": "boolean hasAppid();", "title": "" }, { "docid": "05a555203142af1d6d486d925243432b", "score": "0.5369308", "text": "boolean hasAppid();", "title": "" }, { "docid": "05a555203142af1d6d486d925243432b", "score": "0.5369308", "text": "boolean hasAppid();", "title": "" }, { "docid": "05a555203142af1d6d486d925243432b", "score": "0.5369308", "text": "boolean hasAppid();", "title": "" }, { "docid": "05a555203142af1d6d486d925243432b", "score": "0.5369308", "text": "boolean hasAppid();", "title": "" }, { "docid": "05a555203142af1d6d486d925243432b", "score": "0.5369308", "text": "boolean hasAppid();", "title": "" }, { "docid": "05a555203142af1d6d486d925243432b", "score": "0.5369308", "text": "boolean hasAppid();", "title": "" }, { "docid": "8ef7fc47447c332e6662d127e88bfa5b", "score": "0.5361647", "text": "private boolean checkPlayServices() {\n int resultCode = GooglePlayServicesUtil\n .isGooglePlayServicesAvailable(this);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n GooglePlayServicesUtil.getErrorDialog(resultCode, this,\n PLAY_SERVICES_RESOLUTION_REQUEST).show();\n } else {\n Toast.makeText(getApplicationContext(),\n R.string.not_supported, Toast.LENGTH_LONG)\n .show();\n actual_location.setText(R.string.not_supported);\n finish();\n }\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "45eedd81d1be406ea34034b53934a6dd", "score": "0.5356191", "text": "public boolean hasApp() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "title": "" }, { "docid": "2eb0e234a6b4915b0d2d9be502c9078a", "score": "0.5345914", "text": "private boolean isDefaultLauncher() {\n\n final IntentFilter filter = new IntentFilter(Intent.ACTION_MAIN);\n filter.addCategory(Intent.CATEGORY_HOME);\n\n List<IntentFilter> filters = new ArrayList<>();\n filters.add(filter);\n\n final String packageName = getPackageName();\n List<ComponentName> activities = new ArrayList<>();\n\n // Get list of preferred activities.\n packageManager.getPreferredActivities(filters, activities, \"net.davidnorton.securityapp\");\n\n // Check app package is on the list.\n for (ComponentName activity : activities) {\n if (packageName.equals(activity.getPackageName())) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "a25c6cb5cfa404bfc329db25b15d7094", "score": "0.5345666", "text": "boolean isSetDSAPK();", "title": "" }, { "docid": "a25c6cb5cfa404bfc329db25b15d7094", "score": "0.5345665", "text": "boolean isSetDSAPK();", "title": "" }, { "docid": "a25c6cb5cfa404bfc329db25b15d7094", "score": "0.5345665", "text": "boolean isSetDSAPK();", "title": "" }, { "docid": "715050e4cff5a76d96ad499e9d6b58f4", "score": "0.53419626", "text": "public boolean isSetApplication()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(APPLICATION$40) != null;\r\n }\r\n }", "title": "" }, { "docid": "aa25ebee79b1abe74ed8c2bb202deacb", "score": "0.5326653", "text": "protected boolean isPackageInstalled(String pkg) throws DeviceNotAvailableException {\n for (String installedPackage : mDevice.getInstalledPackageNames()) {\n if (pkg.equals(installedPackage)) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "bd102b3189926ed147e381c475fd8a8a", "score": "0.53235114", "text": "boolean isDevelopmentEnvironment();", "title": "" } ]
d403a08c3583c9ece8c9a29abb00db14
Adds the provided variable to the current scope. Returns false if the variable was not added, because it already exists. Allows you to declare a variable with the same name of an already declared variable, which was declared in a parent scope, effectively shadowing it. Similar to call createInScope(variable, true);
[ { "docid": "802e880c1006a957aedcf664420bb6a9", "score": "0.69810325", "text": "public boolean createInScope(T variable)\n\t{\n\t\treturn this.createInScope(variable, true);\n\t}", "title": "" } ]
[ { "docid": "091ed676a72252345338e59a247ce0ab", "score": "0.70908093", "text": "public boolean createInScope(T variable, boolean allowShadowing)\n\t{\n\t\tif(allowShadowing && this.existsInCurrentScope(variable.getIdentifier()))\n\t\t\treturn false;\n\t\telse if(!allowShadowing && this.existsInScopes(variable.getIdentifier()))\n\t\t\treturn false;\n\t\t\n\t\tthis.getCurrentScope().put(variable.getIdentifier(), variable);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "c7630f7594e753a395cfc6ec29481968", "score": "0.6341702", "text": "public boolean setInCurrentScopeOnly(T variable)\n\t{\n\t\tif (!this.existsInCurrentScope(variable.getIdentifier()))\n\t\t\treturn false;\n\t\t\n\t\tthis.getCurrentScope().put(variable.getIdentifier(), variable);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "3e1b672da1c27970d536f622e5c7929c", "score": "0.61201", "text": "public boolean setInScopes(T variable)\n\t{\n\t\tfor(Map<String, T> map : this.scopesStack)\n\t\t{\n\t\t\tif(map.containsKey(variable.getIdentifier()))\n\t\t\t{\n\t\t\t\tmap.put(variable.getIdentifier(), variable);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "51ef44e02839ca4ebe38dcdddbffeaf6", "score": "0.6118762", "text": "private boolean varInScope(String varName) {\r\n\t\tScope scope = scopes.peek();\r\n\t\tboolean doesExist = false; \r\n\t\tif(scope.inScope(varName)) doesExist = true;\r\n\t\treturn doesExist; \r\n\t}", "title": "" }, { "docid": "b74d5f6211ef9f95fc97168439c1189b", "score": "0.59833795", "text": "public void addVariable(Variable variable) throws Exception {\n if (!this.allowVariableRedifination && variables.containsKey(variable.getName())) {\n throw new Exception(\"Variable \" + variable.getName() + \" was already defined. Allow Variable Redifinition to avoid this error\");\n }\n variables.put(variable.getName(), variable);\n }", "title": "" }, { "docid": "888a0a71c7e727dd92f7934df757ef4f", "score": "0.59779704", "text": "public Node addScopeNode(Node arg) {\n Node v$1 = GNode.create(\"PrimaryIdentifier\", \"processScopeNodes\");\n Node v$2 = GNode.create(\"Arguments\", arg);\n Node v$3 = GNode.create(\"CallExpression\", v$1, null, \"add\", v$2);\n Node v$4 = GNode.create(\"ExpressionStatement\", v$3);\n return v$4;\n }", "title": "" }, { "docid": "8193719833c54da9c36bab0cd7053958", "score": "0.5901222", "text": "public boolean addExistentialVariable(String v) {\r\n\t\tif (true) {\r\n\t\t\tthrow new RuntimeException(\r\n\t\t\t\t\"Existential quantifiers are not supported yet.\");\r\n\t\t}\r\n\t\tif (this.existentialVars.contains(v)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tthis.existentialVars.add(v);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "7a9b9445850aa60c3b33476c449dc3cb", "score": "0.5850593", "text": "public void addVariable(VariableRefBase variableRef) {\n/* 207 */ if (this._closureVars == null) {\n/* 208 */ this._closureVars = new ArrayList();\n/* */ }\n/* */ \n/* */ \n/* 212 */ if (!this._closureVars.contains(variableRef)) {\n/* 213 */ this._closureVars.add(variableRef);\n/* */ \n/* */ \n/* 216 */ Closure parentClosure = getParentClosure();\n/* 217 */ if (parentClosure != null) {\n/* 218 */ parentClosure.addVariable(variableRef);\n/* */ }\n/* */ } \n/* */ }", "title": "" }, { "docid": "92859f684bfe75ff60d385218f61d005", "score": "0.5782335", "text": "public Builder addVariable(Variable.Builder<?> variable) {\n Preconditions.checkNotNull(variable);\n findVariableLocal(variable.shortName).ifPresent(v -> {\n throw new IllegalArgumentException(\"Variable '\" + v.shortName + \"' already exists\");\n });\n vbuilders.add(variable);\n variable.setParentGroupBuilder(this);\n return this;\n }", "title": "" }, { "docid": "925c0bb128eb2b44c7556b071284ec04", "score": "0.57646155", "text": "public void addVariable(String name, String value) {\n String[] parts = name.split(\"\\\\.\");\n Scope currentScope = config;\n\n for (int i = 0; i < parts.length - 1; i++) {\n currentScope = currentScope.getScope(parts[i]);\n }\n\n if (currentScope.hasVariable(parts[parts.length - 1])) {\n throw new IllegalArgumentException(\"Variable '\" + name + \"' already exists\");\n }\n\n currentScope.addVariable(parts[parts.length - 1], value);\n }", "title": "" }, { "docid": "81f3bae0964b79164c0c1b4ed8b126a8", "score": "0.5756692", "text": "boolean inScope(String varName) {\r\n\t\tif(super.containsKey(varName)){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn parent == null ? false : parent.inScope(varName); \r\n\t}", "title": "" }, { "docid": "176a593ac99d8974760cc62064d51bb1", "score": "0.57490355", "text": "public boolean addVariable(String var)\r\n\t{\r\n\t\tif(significantVariable.contains(var)) return false;\r\n\t\telse significantVariable.add(var);\r\n\t\t\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "45cfc7921dd715d2d38d32cbba425433", "score": "0.57368773", "text": "private void addInitializedGlobalVariable(String variableName, Variable variable){\n if (this.initializedGlobalVariables.containsKey(variableName)){\n this.initializedGlobalVariables.remove(variableName);\n }\n this.initializedGlobalVariables.put(variableName, variable);\n }", "title": "" }, { "docid": "18eb398b973b302df109c2683e8bccc5", "score": "0.53290015", "text": "@Override\r\n\tpublic void enterVar_decl(DecafParser.Var_declContext ctx) {\r\n\t\tScope scope = scopes.peek();\r\n\r\n\t\t// Iterate the list of IDs that occur in var_decl \r\n\t\tList<TerminalNode> variables = ctx.ID();\r\n\t\tfor(TerminalNode variable : variables) {\r\n\t\t\tScopeElement var = new ScopeElement(variable.getText(), ctx.type().getText()); \r\n\r\n\t\t\tif(varInScope(var.getVarName())) {\r\n\t\t\t\tSystem.err.println(\"Error line: \" + ctx.getStart().getLine() + \". Cannot create \" + var.getVarName() + \"(\" + var.getVarType() + \")\" + \". Variable already exists\");\r\n\t\t\t} else scope.put(var.getVarName(), var);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "590aab849cfff187fc1276daeda5a5f0", "score": "0.5320343", "text": "public void add(Symbol var){\n\t\tvars.add(var);\n\t}", "title": "" }, { "docid": "c926f6e1e92f5b34231a91a408537c0b", "score": "0.5313979", "text": "@Override\r\n @SuppressWarnings({\"ConstantConditions\"})\r\n public Variable replaceExistingVar(String name, Variable variable) {\n new VariableName(name);\r\n final Stack<Variable> variableValueStack = centralReferenceTable.get(name);\r\n Assert.isFalse(variableValueStack == null || variableValueStack.isEmpty(), \"Variable {0} does not exist\", name);\r\n return variableValueStack.replaceTop((Variable) ObjectUtils.defaultIfNull(variable, EmptyVariable.INSTANCE));\r\n }", "title": "" }, { "docid": "4f1908728d58734d71543dc5954b3218", "score": "0.5232157", "text": "public void addVariableDecl(VariableDecl node) {\n List<VariableDecl> list = (parent == null || state == null) ? getVariableDeclListNoTransform() : getVariableDeclList();\n list.addChild(node);\n }", "title": "" }, { "docid": "141399707fb7a09378eeca7db9a08a1b", "score": "0.5204555", "text": "public void addVariable(Variable v);", "title": "" }, { "docid": "721731320bc69bb07cc77cc1b6f46ae8", "score": "0.5185036", "text": "protected abstract void scopeAdd(String field);", "title": "" }, { "docid": "aa8acc026999bd8c874e668d323a8cf6", "score": "0.51417476", "text": "public boolean addModifiedVariable(ISymbol arg0) {\n return fModifiedVariablesList.add(arg0);\n }", "title": "" }, { "docid": "5e6ce035c0d1b8827200d103434ec4a9", "score": "0.51368755", "text": "private void addVariable(String name, String value) {\n variables.put(name, new Variable(name, value));\n }", "title": "" }, { "docid": "f83148d9188e2771348f5dba55366ca6", "score": "0.5109891", "text": "@Override\n\tpublic Variable addVar(String n) {\n\t\tVariable v = var.addVar(n);\n\t\tcsp.addVar(v);\n\t\treturn v;\n\t}", "title": "" }, { "docid": "a604aa1df4c0d10b5abce6761ce98a8c", "score": "0.51055396", "text": "public boolean addAbsoluteVariable(String var)\r\n\t{\r\n\t\tabsoluteVariable.add(var);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "8d385b6a47f008b391cac778b170b087", "score": "0.5048694", "text": "public void add(Node varNode) {\n varNodes.add(varNode);\n }", "title": "" }, { "docid": "95bde62ff15bf7ccde3a726dae473342", "score": "0.501597", "text": "void declareScope(AstNode astNode, Scope scope);", "title": "" }, { "docid": "76898af263f3f06a3c1462db3db6b11b", "score": "0.5015302", "text": "public void addVariable(QName name, Object value) {\n vars.put(name, value);\n }", "title": "" }, { "docid": "1d5aa8ad31250e00bd23cc93353505c0", "score": "0.4958139", "text": "private boolean variableExists(String identifier){\n\n //first check temporary variables\n for(HashMap<String, Variable> scope : localVariables.values()){\n for(Map.Entry<String, Variable> entry : scope.entrySet()) {\n if(identifier.equals(entry.getKey()))\n return true;\n }\n }\n\n return globalVariables.containsKey(identifier);\n }", "title": "" }, { "docid": "27c046661f3f0794c9a17712bac822cf", "score": "0.49247336", "text": "public void addVariable(String id, boolean reference) {\n\t\t\n\t\t//se il blocco attuale contiene già la variabile id significa che è stata cancellata (se non così non fosse l'analisi semantica avrebbe già trovato l'errore)\n\t\t//e si sta definendo una nuova variabile con lo stesso nome\n\t\t//non si cambiano le informazioni su offset e livello di nesting, si aggiorna il tipo di passaggio (riferimento o valore)\n\t\tif(variables.peek().containsKey(id)) {\t\t\t\n\t\t\tVariable oldVar = variables.peek().get(id);\n\t\t\t\n\t\t\tVariable var = new Variable(id, oldVar.getOffset(), reference, oldVar.getNestingLevel(), false);\n\t\t\t\n\t\t\tvariables.peek().remove(id);\n\t\t\t\n\t\t\tvariables.peek().put(id, var);\n\t\t\t\n\t\t} else {\n\t\t\t//caso in cui si dichiara una nuova variabile mai utilizzata prima\n\t\t\t\n\t\t\tint offset = offsetCounter.getFirst();\n\t\t\t\n\t\t\toffsetCounter.pop();\n\t\t\t\n\t\t\t//creazione di una nuova variabile, offset e livello di nesting sono calcolati dalla tabella dei simboli\n\t\t\tVariable var = new Variable(id, offset, reference, variables.size() - 1, false);\n\t\t\t\n\t\t\tvariables.peek().put(id, var);\n\t\t\t\n\t\t\toffsetCounter.push(offset + 1);\n\t\t}\n\t\t\n\t\treturn;\n\t}", "title": "" }, { "docid": "b89d72b9307efda5f3f096b22725569a", "score": "0.4910383", "text": "public boolean existsInCurrentScope(String identifier)\n\t{\n\t\treturn this.getCurrentScope().containsKey(identifier);\n\t}", "title": "" }, { "docid": "229eff208816480dfdb8280e2ac082b5", "score": "0.48724857", "text": "public void addVariable(String name, Object object)\n\t\t{\n\t\t\tvariables.put(name, object) ;\t\n\t\t}", "title": "" }, { "docid": "366c95f5682245b5f30d0fdae55c739b", "score": "0.48511827", "text": "public boolean addSymbol(Identifiable symbol) {\n\t\tif (!exists(symbol,currentLevel)) {\n\t\t\ttable.get(currentLevel).add(symbol);\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "fa6f24537028145374eaddee6aca3ffc", "score": "0.48381516", "text": "public void define(String name, Object value){\n if(store.containsKey(name))\n throw new VariableRedefinedException(name, \"Variable already exists\");\n store.put(name, value);\n }", "title": "" }, { "docid": "7041971aff44ae25c5a04c657a4925b7", "score": "0.48055208", "text": "public boolean hasChildScope(String name) {\n\t\treturn scope.hasChildScope(name);\n\t}", "title": "" }, { "docid": "7567c311ec560d39832f5a522e748351", "score": "0.47890547", "text": "public void addEnv(Environment.Variable var) {\n env.addVariable(var);\n }", "title": "" }, { "docid": "7567c311ec560d39832f5a522e748351", "score": "0.47890547", "text": "public void addEnv(Environment.Variable var) {\n env.addVariable(var);\n }", "title": "" }, { "docid": "8ec16ec89ed454155528bb005838f7b3", "score": "0.47837168", "text": "private void addLocal(String name, Type type, List<String> tags) {\n // we check only if name is already declared in the <b>closest</b> scope\n // region so (unlike Java) we allow a local variable declaration\n // in an inner block to hide a declaration of the same name in\n // an enclosing outer block\n if (locals.peek().containsKey(name)) {\n throw new TypeCheckingException(\"Double declaration of local var/param: \" + name, tags);\n }\n locals.peek().put(name, type);\n }", "title": "" }, { "docid": "5d6b3ff3a3782ec2cde387ff3c227ef6", "score": "0.47810125", "text": "Symbol add(Position pos, String name, Type type) //symbolScope's size SHOULD NOT change\r\n {\r\n Map recentScope = symbolScopes.get(symbolScopes.size()-1);\r\n if (recentScope.containsKey((name))) //if this hashMap already has this name\r\n {\r\n err.printf(\"DeclarationError%s[Symbol Already Exists in the Scope %s.]%n\", pos, name); //Position used for error (return an error or change boolean to true, and return new error)\r\n encounteredError = true;\r\n return new Symbol(name, \"DeclarationError\"); //no need to add this error into the scope\r\n }\r\n\r\n Symbol sym = new Symbol(name, type);\r\n recentScope.put(name, sym);\r\n return sym;\r\n }", "title": "" }, { "docid": "66bcad1365d2f09d60b585b5c2948ba0", "score": "0.47796726", "text": "public ScriptBuilder addEnvironmentVariableScope(String scopeName, Map<String, String> variables) {\n variableScopes.put(checkNotNull(scopeName, \"scopeName\"), checkNotNull(variables, \"variables\"));\n return this;\n }", "title": "" }, { "docid": "4c98bcb43ab302273a7d55adfc2e1bba", "score": "0.4745774", "text": "@Override\r\n public void setLocalVar(String name, Variable variable) {\n new VariableName(name);\r\n Stack<Variable> variableValueStack = centralReferenceTable.get(name);\r\n final Set<String> localVariableNames = variablesNamesStack.peek();\r\n\r\n if (variableValueStack == null) {\r\n variableValueStack = new Stack<Variable>();\r\n centralReferenceTable.put(name, variableValueStack);\r\n localVariableNames.add(name);\r\n } else if (localVariableNames.contains(name)) {\r\n variableValueStack.pop();\r\n } else {\r\n localVariableNames.add(name);\r\n }\r\n variableValueStack.push((Variable) ObjectUtils.defaultIfNull(variable, EmptyVariable.INSTANCE));\r\n }", "title": "" }, { "docid": "7f8291dab63f52ef27ab7649b974c985", "score": "0.47272098", "text": "boolean hasScope();", "title": "" }, { "docid": "7f8291dab63f52ef27ab7649b974c985", "score": "0.47272098", "text": "boolean hasScope();", "title": "" }, { "docid": "9a40aaefafcf70b43593c29791029d08", "score": "0.4709378", "text": "public void addScope() {\n tables.add(0, new HashMap<>());\n }", "title": "" }, { "docid": "615b2d9279f7ed501bcacef3053043f9", "score": "0.4689276", "text": "public String addVariable(String variable) {\n\n String temp;\n if (size < CAPACITY) {\n\n variableName.add(variable);\n temp = \"$t\" + size;\n registerName.add(\"$t\" + size);\n ++size;\n return temp;\n\n }\n \n return null;\n }", "title": "" }, { "docid": "4011224f8932d9a478f96e6ff74567d2", "score": "0.46810126", "text": "private boolean hasVariable(String name) {\n return variables.containsKey(name);\n }", "title": "" }, { "docid": "d8de13a1ee2e3a4b19a359f727bebfc3", "score": "0.4678627", "text": "public void addVariable( Variable v)\n\t{\n\t\tvariables.addVariable( v);\n\t\tpcs.firePropertyChange( \"project\", null, this);\n\t}", "title": "" }, { "docid": "2a928de4e7b6ec5ea35b6ed1fcc73d04", "score": "0.46772775", "text": "public void defineVariable(final GlobalVariable variable) {\n globalVariables.define(variable.name(), new IAccessor() {\n public IRubyObject getValue() {\n return variable.get();\n }\n \n public IRubyObject setValue(IRubyObject newValue) {\n return variable.set(newValue);\n }\n });\n }", "title": "" }, { "docid": "2a928de4e7b6ec5ea35b6ed1fcc73d04", "score": "0.46772775", "text": "public void defineVariable(final GlobalVariable variable) {\n globalVariables.define(variable.name(), new IAccessor() {\n public IRubyObject getValue() {\n return variable.get();\n }\n \n public IRubyObject setValue(IRubyObject newValue) {\n return variable.set(newValue);\n }\n });\n }", "title": "" }, { "docid": "360084733013f5d0d71df9627a09d1e8", "score": "0.46633732", "text": "public boolean varAlreadyIn(FiniteStates var) {\n\n int i;\n\n for(i=0; i < size(); i++)\n {\n if (elementAt(i).getVariable().getName() == var.getName())\n return(true);\n }\n \n // If here, the var is not in the PairTable\n\n return(false); \n}", "title": "" }, { "docid": "8324e6fdf51bc301cd7f2cb9f7981327", "score": "0.46611527", "text": "public void addVariability(Variability variability) {\n variability.setId(this.nextId(variability));\n if (this.variability.get(variability.getId()) == null) {\n this.variability.put(variability.getId(), variability);\n this.addElement(variability);\n }\n }", "title": "" }, { "docid": "6369b06d4a202005afa6b6650ebe03aa", "score": "0.46359527", "text": "protected void addVariableTypeIfNotExists(VariableType variableType) {\n if (cmmnEngineConfiguration.getVariableTypes().getTypeIndex(variableType) == -1) {\n cmmnEngineConfiguration.getVariableTypes().addType(variableType);\n }\n }", "title": "" }, { "docid": "3b7660a3ea74fff819629606d6446a78", "score": "0.462207", "text": "public boolean isAVariable() {\n return false;\n }", "title": "" }, { "docid": "acce3460d1ca99a623fbf16009e93504", "score": "0.45984122", "text": "void registerScope(String scopeName, Scope scope);", "title": "" }, { "docid": "b40ef6a5d2207474a01e85ca21a52955", "score": "0.45939383", "text": "public XEOScope createScope();", "title": "" }, { "docid": "0e4bffebd525d1035f384e7a5a2ab444", "score": "0.45764378", "text": "@Override\n\tpublic boolean isVariable() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "510516d7a7c5f4f9964868e69e0f47c9", "score": "0.45740917", "text": "protected void setVariable(Task task, String name, Object value, RestVariableScope scope, boolean isNew) {\n boolean hasVariable = hasVariableOnScope(task, name, scope);\n if(isNew && hasVariable) {\n throw new ResourceException(new Status(Status.CLIENT_ERROR_CONFLICT.getCode(), \"Variable '\" + name + \"' is already present on task '\" + task.getId() + \"'.\", null, null));\n }\n \n if(!isNew && !hasVariable) {\n throw new ResourceException(new Status(Status.CLIENT_ERROR_NOT_FOUND.getCode(), \"Task '\" + task.getId() + \"' doesn't have a variable with name: '\"+ name + \"'.\", null, null));\n }\n \n if(scope == RestVariableScope.LOCAL) {\n ActivitiUtil.getTaskService().setVariableLocal(task.getId(), name, value);\n } else {\n if(task.getExecutionId() != null) {\n // Explicitly set on execution, setting non-local variable on task will override local-variable if exists\n ActivitiUtil.getRuntimeService().setVariable(task.getExecutionId(), name, value);\n } else {\n // Standalone task, no global variables possible\n throw new ActivitiIllegalArgumentException(\"Cannot set global variable '\" + name + \"' on task '\" + task.getId() +\"', task is not part of process.\");\n }\n }\n }", "title": "" }, { "docid": "c455c62fcede7fe4edcba7fc85865d65", "score": "0.45653343", "text": "public void declareVariable(String variable, int value)\n {\n varMap.put(variable, value);\n }", "title": "" }, { "docid": "99a91505cbcd03ade0981cc5c3773176", "score": "0.4561465", "text": "private void addHasScope() {\r\n\t\tTemplate t = templateFactory.newTemplate(\"has-scope\");\r\n\r\n\t\tIEntryParam constrParam = entryFactory.newWildcardParam(\"c\");\r\n\t\tTopicEntry t1 = entryFactory.newTopicEntry(constrParam);\r\n\r\n\t\tt1.add(entryFactory.newIsInstanceOfEntry(entryFactory\r\n\t\t\t\t.newTopicTypeParam(scopeConstraint)));\r\n\r\n\t\tOccurrenceEntry o1 = entryFactory.newOccurrenceEntry(entryFactory\r\n\t\t\t\t.newVariableParam(\"min\"), entryFactory\r\n\t\t\t\t.newTopicTypeParam(cardMin));\r\n\t\tt1.add(o1);\r\n\r\n\t\tOccurrenceEntry o2 = entryFactory.newOccurrenceEntry(entryFactory\r\n\t\t\t\t.newVariableParam(\"max\"), entryFactory\r\n\t\t\t\t.newTopicTypeParam(cardMax));\r\n\t\tt1.add(o2);\r\n\r\n\t\tt.add(t1);\r\n\r\n\t\tRoleEntry r1 = entryFactory.newRoleEntry(constraint, constrParam);\r\n\t\tRoleEntry r2 = entryFactory.newRoleEntry(constrained, entryFactory\r\n\t\t\t\t.newVariableParam(\"tt\"));\r\n\t\tAssociationEntry a1 = entryFactory.newAssociationEntry(\r\n\t\t\t\tconstraintStatement, r1, r2);\r\n\t\tt.add(a1);\r\n\r\n\t\tr1 = entryFactory.newRoleEntry(constraint, constrParam);\r\n\t\tr2 = entryFactory.newRoleEntry(constrained, entryFactory\r\n\t\t\t\t.newVariableParam(\"at\"));\r\n\t\tAssociationEntry a2 = entryFactory.newAssociationEntry(\r\n\t\t\t\tconstrainedScope, r1, r2);\r\n\t\tt.add(a2);\r\n\r\n\t\ttemplates.add(t);\r\n\r\n\t}", "title": "" }, { "docid": "7dcc1732f95088dd9d49b38820d9675d", "score": "0.4541877", "text": "VariableDef(String name, // the variable's name\n\t\t\t\tOccurrence occ, // where it was defined\n\t\t\t\tClassDef type, // the type of the variable\n\t\t\t\tScopedDef parentScope) { // which scope owns it\n\t\tsuper(name, occ, parentScope);\r\n\t\tthis.type = type;\r\n\t}", "title": "" }, { "docid": "b6a9a663f0910c486045ba91cea8f1e6", "score": "0.45331648", "text": "public Node processScope(Node argument) {\n Node v$1 = GNode.create(\"NullLiteral\", false);\n Node v$2 = GNode.create(\"EqualityExpression\", v$1, \"!=\", argument);\n Node v$3 = GNode.create(\"PrimaryIdentifier\", \"processScopeNodes\");\n Node v$4 = GNode.create(\"Arguments\", false);\n Node v$5 = GNode.create(\"CallExpression\", argument, null, \"getName\", v$4);\n Node v$6 = GNode.create(\"Arguments\", v$5);\n Node v$7 = GNode.create(\"CallExpression\", v$3, null, \"contains\", v$6);\n Node v$8 = GNode.create(\"LogicalAndExpression\", v$2, v$7);\n Node v$9 = GNode.create(\"PrimaryIdentifier\", \"getScope\");\n Node v$10 = GNode.create(\"Arguments\", argument, v$9);\n Node v$11 = GNode.create(\"CallExpression\", null, null, \"processScope\", \n v$10);\n Node v$12 = GNode.create(\"ExpressionStatement\", v$11);\n Node v$13 = GNode.create(\"Block\", v$12);\n Node v$14 = GNode.create(\"ConditionalStatement\", v$8, v$13, null);\n return v$14;\n }", "title": "" }, { "docid": "eea6fc1f93d2c099854379f88056187a", "score": "0.4509855", "text": "public boolean existsInScopes(String identifier)\n\t{\n\t\tfor(Map<String, T> map : this.scopesStack)\n\t\t{\n\t\t\tif(map.containsKey(identifier))\n\t\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "52147191a4d5d1930f5c35b1064c296e", "score": "0.45080596", "text": "public void defineVariable\n (boolean isFinal, Variable.Type variableType, String variableName, Value value)\n throws ExecutorException {\n this.returnStatement = false;\n if (this.variables.containsKey(variableName)){\n throw new ScopeException(VARIABLE_OVERFLOW);\n }\n Variable.Type valueType = null;\n if (value != null){\n valueType = this.getValueType(value);\n }\n Variable variable = new Variable(isFinal, variableType, valueType);\n this.variables.put(variableName, variable);\n }", "title": "" }, { "docid": "194f749c57e8ef484becd4ed7c87e589", "score": "0.45044357", "text": "public HdfGroup addVariable(\n String varName,\n int dtype, // one of DTYPE*\n int stgFieldLen, // string length for DTYPE_STRING_FIX.\n // Without null termination.\n // Should be 0 for all other types,\n // including DTYPE_STRING_VAR.\n\n int[] varDims, // dimension lengths\n int[] specChunkDims,\n Object fillValue, // fill value or null\n int compressionLevel)\nthrows HdfException\n{\n if (hdfFile.fileStatus != HdfFileWriter.ST_DEFINING)\n throwerr(\"cannot define after calling endDefine\");\n if (isVariable) throwerr(\"cannot add a variable to a variable\");\n if (findSubItem( varName) != null)\n throwerr(\"Duplicate subgroup. The group \\\"%s\\\" already contains\"\n + \" a subgroup or variable named \\\"%s\\\"\",\n groupName, varName);\n if ((varDims == null || varDims.length == 0) && specChunkDims != null)\n throwerr(\"scalar variable must have specChunkDims == null\");\n long statTimea = hdfFile.printStat( 0, \"grp.addVariable.entry\",\n \"varName: \" + varName\n + \" dtype: \" + dtypeNames[dtype]\n + \" compLev: \" + compressionLevel\n + \" varDims: \" + HdfUtil.formatInts( varDims)\n + \" specChunkDims: \" + HdfUtil.formatInts( specChunkDims));\n\n int[] dsubTypes = null;\n String[] subNames = null;\n if (dtype == HdfGroup.DTYPE_COMPOUND) {\n dsubTypes = new int[] { HdfGroup.DTYPE_REFERENCE, HdfGroup.DTYPE_FIXED32};\n subNames = new String[] {\"dataset\", \"dimension\"};\n }\n\n HdfGroup var = new HdfGroup(\n varName,\n this,\n dtype,\n dsubTypes,\n subNames,\n stgFieldLen,\n varDims,\n specChunkDims,\n fillValue,\n compressionLevel,\n hdfFile);\n\n addSubGroup( var);\n return var;\n}", "title": "" }, { "docid": "321cb7ebf8a4c48636c48d588a384035", "score": "0.4496101", "text": "public boolean addSymbol(Symbol symbol) {\n\t\tif(this.searchSymbol(symbol.getName()) == null) {\t\t\t\n\t\t\tthis.symbolTable.add(symbol);\n\t\t\tsymbol.setRef(this);\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;//symbol already exists\n\t\t}\n\t}", "title": "" }, { "docid": "430d9d2a8ae3c3347da5cd61d901788f", "score": "0.44877982", "text": "protected void addVariable(Element element) {\r\n\t\tElementPath path = element.getPath();\r\n\t\tIVariableSource vs = VariableSourceFactory.\r\n\t\t\tgetInstance().createVariableSource(element);\r\n\t\t//System.err.println(\"Adding Variable Path-> \" + path);\r\n\t\tif(vs == null) return;\r\n\t\tgetVariableMap().update(path, vs.extractAll());\r\n\t}", "title": "" }, { "docid": "84d4316cf8dcbef38a84403cf06186b8", "score": "0.44853306", "text": "@Override\n public boolean isPossiblyNullable(Variable variable) {\n return (!scope.contains(variable)) || getNullableVariables().contains(variable);\n }", "title": "" }, { "docid": "a4af2a1ec56d40e76f52647e753550f6", "score": "0.44684625", "text": "void addMember(MemberDescriptor var) {\n assert !members.containsKey(var.getName());\n members.put(var.getName(), var);\n }", "title": "" }, { "docid": "d11d4aac7bffd75d1b40344a7add7f49", "score": "0.44350109", "text": "public void declareStartOfScopeVariable(Identifier id) {\n Scope s = getClosestDeclarationContainer();\n // TODO(ihab.awad): Uses private access to 's' which is of same class but distinct\n // instance. Violates capability discipline; kittens unduly sacrificed. Refactor.\n s.addStartOfScopeStatement((Statement)substV(\n \"var @id;\",\n \"id\", id));\n }", "title": "" }, { "docid": "0eb53ec56d7d3d185401f6699fadd03e", "score": "0.44207093", "text": "public boolean containsVariable (String name) {\n return myVariables.containsKey(name);\n }", "title": "" }, { "docid": "7c7b0eeb322ddc635a71dd8fd183e873", "score": "0.44126567", "text": "public boolean startScope (){\n return false;\n }", "title": "" }, { "docid": "987bec347990942ccf06767bc50518ea", "score": "0.44002205", "text": "public Node checkEnterScope(Node argument) {\n Node v$1 = GNode.create(\"Arguments\", argument);\n Node v$2 = GNode.create(\"CallExpression\", null, null, \"checkEnterScope\", \n v$1);\n Node v$3 = GNode.create(\"ExpressionStatement\", v$2);\n return v$3;\n }", "title": "" }, { "docid": "259290fdbb1700a2647a7f182d41c65d", "score": "0.4400198", "text": "Scope createScope();", "title": "" }, { "docid": "259290fdbb1700a2647a7f182d41c65d", "score": "0.4400198", "text": "Scope createScope();", "title": "" }, { "docid": "504fb7d1e8ce9954bd73d4eb160c166c", "score": "0.43922684", "text": "public Set<Variable> variablesInScope(String name);", "title": "" }, { "docid": "73e2a8a7f41abc52a9e15c9bfbaac560", "score": "0.43880656", "text": "public void addOperand(LocalExpr operand)\n {\n for (int i = 0; i < operands.size(); i++) {\n LocalExpr expr = (LocalExpr) operands.get(i);\n Assert.isTrue(expr.def() != operand.def());\n }\n \n operands.add(operand);\n operand.setParent(this);\n }", "title": "" }, { "docid": "1c911efa1cdfc78ac1fa6e5f8d80b990", "score": "0.43839937", "text": "public void addStateVariable(StateVariable zValue) {\n\t\tmState.add(zValue);\n\t}", "title": "" }, { "docid": "8e659d2e9c321ff47ddcecd4ee9273e5", "score": "0.43803445", "text": "public void openScope() {\r\n\t\tscopes.add(new HashMap<String, Declaration>());\r\n\t}", "title": "" }, { "docid": "79592d1b1d19229dd115358fc92604a8", "score": "0.43778965", "text": "public Set<Variable> variablesWriteableInScope(String name);", "title": "" }, { "docid": "52db6519d88c9ced1ff6fdad39c11b1c", "score": "0.43719155", "text": "public final void pushScope(int newTop) {\n if (this.stackSize == this.scopes.length) {\n throw new JsonDataException(\"Nesting too deep at \" + getPath() + \": circular reference?\");\n }\n int[] iArr = this.scopes;\n int i = this.stackSize;\n this.stackSize = i + 1;\n iArr[i] = newTop;\n }", "title": "" }, { "docid": "7b89d6074580b22d7ec47302fc5bfba8", "score": "0.43612784", "text": "public abstract boolean isDefinitelyAssigned(LocalVariableBinding local);", "title": "" }, { "docid": "7b89d6074580b22d7ec47302fc5bfba8", "score": "0.43612784", "text": "public abstract boolean isDefinitelyAssigned(LocalVariableBinding local);", "title": "" }, { "docid": "0e2f8b2f018c48d7561b529a3f1a14fc", "score": "0.433953", "text": "public boolean hasVariable() {\n return variable_ != null;\n }", "title": "" }, { "docid": "a6d02a5248adb915f14913e1e8b90760", "score": "0.43386444", "text": "@Override\n public Type visit(StmVarDecl n) {\n addLocal(n.id, n.t, n.getTags());\n return null;\n }", "title": "" }, { "docid": "4e61d34eb7493ca3ab90229a22af8e5c", "score": "0.43304056", "text": "private void addStackVariableToMemoryModel(String variableName, int sizeInBits)\n throws SMGException {\n if (currentState.getMemoryModel().getStackFrames().size() < 1) {\n // If there is no current stack we add it\n currentState = currentState.copyAndAddStackFrame(CFunctionDeclaration.DUMMY);\n }\n\n currentState = currentState.copyAndAddLocalVariable(sizeInBits, variableName, null);\n\n visitor =\n new SMGCPAValueVisitor(\n evaluator, currentState, new DummyCFAEdge(null, null), logger, options);\n }", "title": "" }, { "docid": "d18cee8dcd43a73eb8758f2a0203486b", "score": "0.4325525", "text": "public boolean hasVariable() {\n return variableBuilder_ != null || variable_ != null;\n }", "title": "" }, { "docid": "70c041ebac7d026e55e7fa141e5e645f", "score": "0.43229645", "text": "public boolean isScopeHolder () { return (defn instanceof ScopeHolder); }", "title": "" }, { "docid": "36cb52dfa4ede17f6ed8cb88c75c9dd6", "score": "0.4322713", "text": "private Variable checkVariable() {\n \n Variable v = null;\n \n String name = (String ) lexer.getStringValue();\n try { \n v = (Variable ) symbolTable.getInLocal( name );\n } catch ( Exception e ) {\n }\n // semantic analysis\n // was the variable declared ? \n if ( v == null ) {\n error.show(\"Variable \" + name + \" was not declared\");\n v = new Variable(name, Type.undefinedType);\n symbolTable.putInLocal( name, v );\n }\n lexer.nextToken();\n return v;\n }", "title": "" }, { "docid": "9b8d59c52f9324bc097f7c137a4e28c5", "score": "0.43183258", "text": "public IScope pushIsolatedScope( IActivationContext activationCtx )\n {\n\n if( activationCtx == null )\n {\n throw new IllegalArgumentException( \"The activation context must be non-null\" );\n }\n return addScope( createScope( activationCtx ) );\n }", "title": "" }, { "docid": "f5bff40d80a531906931c2e394c45ce2", "score": "0.43119928", "text": "public void addVariable(String name, String type)\n {\n variables.add(new VariableData(name, type, -1));\n }", "title": "" }, { "docid": "13916c3f6ae8af9c9a5b192d03b85c91", "score": "0.43088806", "text": "boolean isVariable() {\n return false;\n }", "title": "" }, { "docid": "b69b3e6a4fb8e91b9740c298677780b4", "score": "0.43006083", "text": "public VariableScope (String name) {\n myName = name;\n myVariables = new HashMap<String, Integer>();\n }", "title": "" }, { "docid": "8a524ead5db5ddfadcdddd28fe7cc3d1", "score": "0.42888594", "text": "private JVariableRef createVariableRef(SourceInfo info, JVariable variable, Binding binding) {\n // Fix up the reference if it's to an outer local/param\n variable = possiblyReferenceOuterLocal(variable, binding);\n if (variable == null) {\n /*\n * Strange case: in certain circumstances, JDT will fail to provide an\n * emulation path to an outer local variable. In the case I know of, the\n * reference is a spurious qualifier to a static method call. Let's just\n * return null and ditch the expression.\n */\n return null;\n }\n return createVariableRef(info, variable);\n }", "title": "" }, { "docid": "fb93d893626981bdb2a5497b48182bc9", "score": "0.42886025", "text": "public boolean isVariable() {\n return false; // TODO: default value?\n }", "title": "" }, { "docid": "e64cd021a97b857d6383b347c570d400", "score": "0.42767778", "text": "public abstract boolean isPotentiallyAssigned(LocalVariableBinding field);", "title": "" }, { "docid": "321864e2bc7491113862fac6499085eb", "score": "0.4276066", "text": "private void pushVariableOntoStack(String variableName) {\n VariableKind kind = getVariableKind(variableName);\n int idx = getVariableIndex(variableName);\n VirtualSegment seg = kindToVirtualSegment(kind);\n vmWriter.writePush(seg, idx); \n }", "title": "" }, { "docid": "c6b8aec13540aad0842c8e807c65dae6", "score": "0.4270156", "text": "public void pushVarBinding(String varname, Value value) {\n fVarBindings.push(varname, value);\n }", "title": "" }, { "docid": "f619e12592284a5ecf216dc609ab6717", "score": "0.42645463", "text": "public void addVariable(String options, Variable v);", "title": "" }, { "docid": "a6d671ed4ddc86f20ee991e41beed203", "score": "0.42548436", "text": "abstract public boolean isPotentiallyAssigned(LocalVariableBinding field);", "title": "" }, { "docid": "de4a0aed3d27936652f15ead0ca2a446", "score": "0.42543536", "text": "@Override\r\n\tpublic Object visitDeclaration_Variable(\r\n\t\t\tDeclaration_Variable declaration_Variable, Object arg)\r\n\t\t\tthrows Exception {\n\t\tString name = declaration_Variable.name;\r\n\t\tif(isDuplicate(name)) {\r\n\t\t\tthrow new SemanticException(declaration_Variable.firstToken, \"Variable name is already defined\");\r\n\t\t}\r\n\t\tExpression e = declaration_Variable.e;\r\n\t\te.visit(this, null);\r\n\t\tType expectedType = TypeUtils.getType(declaration_Variable.type);\r\n\t\tif(e.nodetype != expectedType) {\r\n\t\t\tthrow new SemanticException(declaration_Variable.firstToken, \"Variable type and expression type mismatch\");\r\n\t\t}\r\n\t\tdeclaration_Variable.nodetype = expectedType;\r\n\t\ttable.add(name,declaration_Variable);\r\n\t\treturn expectedType;\r\n\t}", "title": "" }, { "docid": "b9382e1b7abed91dd2ce6219f3386965", "score": "0.42512712", "text": "boolean isScoped();", "title": "" }, { "docid": "3487bcdb4bc7bcd9fd7994ea45fc175b", "score": "0.42510486", "text": "public void usedVariable(String name) {\n\t\tfor (Parameter parameter : parameters.keySet()) {\n\t\t\tif (parameter.getName().equals(name)) {\n\t\t\t\tparameters.put(parameter, true);\n\t\t\t}\n\t\t}\n\t}", "title": "" } ]
047ef545bdcf420fd429b2b08995780a
Start the specified number of master servers with ports starting from a specified number. Finds free web and RPC ports up front for all of the masters first, then starts them on those ports, populating 'masters' map.
[ { "docid": "40ec894bc712944343a090355a07b8ec", "score": "0.7743498", "text": "private void startMasters(\n int numMasters,\n String baseDirPath,\n Map<String, String> extraMasterFlags) throws Exception {\n assert(masterHostPorts.isEmpty());\n\n // Get the list of web and RPC ports to use for the master consensus configuration:\n // request NUM_MASTERS * 2 free ports as we want to also reserve the web\n // ports for the consensus configuration.\n final List<MasterHostPortAllocation> masterHostPortAlloc = new ArrayList<>();\n for (int i = 0; i < numMasters; ++i) {\n final String masterBindAddress = getMasterBindAddress();\n final int rpcPort = TestUtils.findFreePort(masterBindAddress);\n final int webPort = TestUtils.findFreePort(masterBindAddress);\n masterHostPortAlloc.add(\n new MasterHostPortAllocation(masterBindAddress, rpcPort, webPort));\n masterHostPorts.add(HostAndPort.fromParts(masterBindAddress, rpcPort));\n }\n\n updateMasterAddresses();\n for (MasterHostPortAllocation masterAlloc : masterHostPortAlloc) {\n final String masterBindAddress = masterAlloc.bindAddress;\n final int masterRpcPort = masterAlloc.rpcPort;\n final long now = System.currentTimeMillis();\n String dataDirPath =\n baseDirPath + \"/master-\" + masterBindAddress + \"-\" + masterRpcPort + \"-\" + now;\n String flagsPath = TestUtils.getFlagsPath();\n final int masterWebPort = masterAlloc.webPort;\n List<String> masterCmdLine = getCommonMasterCmdLine(flagsPath, dataDirPath,\n masterBindAddress, masterRpcPort, masterWebPort);\n masterCmdLine.add(\"--master_addresses=\" + masterAddresses);\n if (extraMasterFlags != null) {\n masterCmdLine.addAll(CommandUtil.flagsToArgs(extraMasterFlags));\n }\n if (clusterParameters.startYsqlProxy) {\n masterCmdLine.add(\"--master_auto_run_initdb\");\n }\n final HostAndPort masterHostAndPort = HostAndPort.fromParts(masterBindAddress, masterRpcPort);\n masterProcesses.put(masterHostAndPort,\n configureAndStartProcess(\n MiniYBDaemonType.MASTER,\n masterCmdLine.toArray(new String[masterCmdLine.size()]),\n masterBindAddress, masterRpcPort, masterWebPort, -1, -1, -1, dataDirPath, null));\n\n if (flagsPath.startsWith(baseDirPath)) {\n // We made a temporary copy of the flags; delete them later.\n pathsToDelete.add(flagsPath);\n }\n pathsToDelete.add(dataDirPath);\n }\n\n long startupDeadlineMs = System.currentTimeMillis() + 120000;\n for (MiniYBDaemon masterProcess : masterProcesses.values()) {\n masterProcess.waitForServerStartLogMessage(startupDeadlineMs);\n }\n }", "title": "" } ]
[ { "docid": "be69902fb5945ddf2dee65d57028a68d", "score": "0.6179958", "text": "private void startCluster(int numMasters,\n int numTservers,\n Map<String, String> masterFlags,\n Map<String, String> commonTserverFlags,\n List<Map<String, String>> perTserverFlags,\n Map<String, String> tserverEnvVars) throws Exception {\n Preconditions.checkArgument(numMasters > 0, \"Need at least one master\");\n Preconditions.checkArgument(numTservers > 0, \"Need at least one tablet server\");\n Preconditions.checkNotNull(perTserverFlags);\n if (!perTserverFlags.isEmpty() && perTserverFlags.size() != numTservers) {\n throw new AssertionError(\"numTservers=\" + numTservers + \" but (perTServerArgs has \" +\n perTserverFlags.size() + \" elements\");\n }\n // The following props are set via yb-client's pom.\n String baseDirPath = TestUtils.getBaseTmpDir();\n\n for (String envVarName :\n new String[]{\"ASAN_OPTIONS\", \"TSAN_OPTIONS\", \"LSAN_OPTIONS\", \"UBSAN_OPTIONS\",\n \"ASAN_SYMBOLIZER_PATH\"}) {\n String envVarValue = System.getenv(envVarName);\n LOG.info(\"Environment variable \" + envVarName + \": \" +\n (envVarValue == null ? \"not set\" : envVarValue));\n }\n LOG.info(\"Starting {} masters...\", numMasters);\n\n if (clusterParameters.startYsqlProxy) {\n applyYsqlSnapshot(clusterParameters.ysqlSnapshotVersion, masterFlags);\n }\n\n startMasters(numMasters, baseDirPath, masterFlags);\n\n startSyncClientAndWaitForMasterLeader();\n\n LOG.info(\"Starting {} tablet servers...\", numTservers);\n startTabletServers(numTservers, commonTserverFlags, perTserverFlags, tserverEnvVars);\n }", "title": "" }, { "docid": "48bb476457e0389a23d3cc107537d046", "score": "0.58916247", "text": "public int getNumMasters() {\n return masterHostPorts.size();\n }", "title": "" }, { "docid": "e9ce3ce2be629e89b1abe2421d59f640", "score": "0.5653951", "text": "public HostAndPort startShellMaster(Map<String, String> extraArgs) throws Exception {\n final String baseDirPath = TestUtils.getBaseTmpDir();\n final String masterBindAddress = getMasterBindAddress();\n final int rpcPort = TestUtils.findFreePort(masterBindAddress);\n final int webPort = TestUtils.findFreePort(masterBindAddress);\n LOG.info(\"Starting shell master on {}, port {}.\", masterBindAddress, rpcPort);\n long now = System.currentTimeMillis();\n final String dataDirPath =\n baseDirPath + \"/master-\" + masterBindAddress + \"-\" + rpcPort + \"-\" + now;\n final String flagsPath = TestUtils.getFlagsPath();\n List<String> masterCmdLine = getCommonMasterCmdLine(flagsPath, dataDirPath,\n masterBindAddress, rpcPort, webPort);\n for (Map.Entry<String, String> entry : extraArgs.entrySet()) {\n masterCmdLine.add(\"--\" + entry.getKey() + \"=\" + entry.getValue());\n }\n\n final MiniYBDaemon daemon = configureAndStartProcess(\n MiniYBDaemonType.MASTER, masterCmdLine.toArray(new String[masterCmdLine.size()]),\n masterBindAddress, rpcPort, webPort, -1, -1, -1, dataDirPath, null);\n\n final HostAndPort masterHostPort = HostAndPort.fromParts(masterBindAddress, rpcPort);\n masterHostPorts.add(masterHostPort);\n updateMasterAddresses();\n masterProcesses.put(masterHostPort, daemon);\n\n if (flagsPath.startsWith(baseDirPath)) {\n // We made a temporary copy of the flags; delete them later.\n pathsToDelete.add(flagsPath);\n }\n pathsToDelete.add(dataDirPath);\n\n TestUtils.logAndSleepMs(5000, \"let the shell master get initialized and running\");\n\n return masterHostPort;\n }", "title": "" }, { "docid": "3f464b4b01e1dba6743606c1520124fe", "score": "0.5643687", "text": "@Override\n protected void createServers(int numShards) throws Exception {\n File controlHome =\n new File(new File(getSolrHome()).getParentFile(), \"control\" + homeCount.incrementAndGet());\n FileUtils.copyDirectory(new File(getSolrHome()), controlHome);\n setupJettySolrHome(controlHome);\n\n controlJetty = createJetty(controlHome, null); // let the shardId default to shard1\n controlJetty.start();\n controlClient = createNewSolrClient(controlJetty.getLocalPort());\n\n assertTrue(\n CollectionAdminRequest.createCollection(\"control_collection\", 1, 1)\n .setCreateNodeSet(controlJetty.getNodeName())\n .process(controlClient)\n .isSuccess());\n\n ZkStateReader zkStateReader =\n jettys.get(0).getCoreContainer().getZkController().getZkStateReader();\n\n waitForRecoveriesToFinish(\"control_collection\", zkStateReader, false, true, 15);\n\n StringBuilder sb = new StringBuilder();\n for (int i = 1; i <= numShards; i++) {\n if (sb.length() > 0) sb.append(',');\n // give everyone there own solrhome\n File jettyHome =\n new File(new File(getSolrHome()).getParentFile(), \"jetty\" + homeCount.incrementAndGet());\n setupJettySolrHome(jettyHome);\n JettySolrRunner j = createJetty(jettyHome, null, \"shard\" + (i + 2));\n j.start();\n jettys.add(j);\n clients.add(createNewSolrClient(j.getLocalPort()));\n sb.append(buildUrl(j.getLocalPort()));\n }\n\n shards = sb.toString();\n }", "title": "" }, { "docid": "bb6cd0c80bd8733577d4fe99e7227d4e", "score": "0.5622352", "text": "protected void createHotRodServers(int num, ConfigurationBuilder defaultBuilder) {\n for (int i = 0; i < num; i++) addHotRodServer(defaultBuilder);\n // Verify that default caches should be started\n for (int i = 0; i < num; i++) assert manager(i).getCache() != null;\n // Block until views have been received\n blockUntilViewReceived(manager(0).getCache(), num);\n // Verify that caches running\n for (int i = 0; i < num; i++) {\n blockUntilCacheStatusAchieved(\n manager(i).getCache(), ComponentStatus.RUNNING, 10000);\n }\n\n for (int i = 0; i < num; i++) {\n clients.add(createClient(i));\n }\n }", "title": "" }, { "docid": "4a6e4b9b5c2f8bd56fbf759edff41f5d", "score": "0.55236953", "text": "void start(String hostName, Integer port);", "title": "" }, { "docid": "f4decaf0f41f337ee8b0ccb776cbf590", "score": "0.55064726", "text": "public void start() {\n ChannelFactory clientFactory =\n new NioClientSocketChannelFactory(\n Executors.newCachedThreadPool(),\n Executors.newCachedThreadPool());\n ChannelFactory serverFactory = new NioServerSocketChannelFactory(\n Executors.newCachedThreadPool(),\n Executors.newCachedThreadPool());\n\n /* Start server */\n ServerBootstrap serverBootstrap = new ServerBootstrap(serverFactory);\n serverBootstrap.setPipelineFactory(new ChannelPipelineFactory() {\n @Override\n public ChannelPipeline getPipeline() throws Exception {\n ChannelPipeline pipeline = pipeline();\n pipeline.addLast(\"decoder\", new GenericDecoder());\n pipeline.addLast(\"handler\", new SlaveServerHandler());\n\n return pipeline;\n }\n });\n\n serverBootstrap.setOption(\"child.tcpNoDelay\", true);\n serverBootstrap.setOption(\"child.keepAlive\", true);\n\n serverBootstrap.bind(new InetSocketAddress(port));\n\n\n /* Setup connection to master */\n clientBootstrap = new ClientBootstrap(clientFactory);\n\n clientBootstrap.setPipelineFactory(new ChannelPipelineFactory() {\n public ChannelPipeline getPipeline() {\n ChannelPipeline pipeline = pipeline();\n pipeline.addLast(\"encoder\", GraphLabMessage.encoder());\n pipeline.addLast(\"decoder\", new GenericDecoder());\n\n pipeline.addLast(\"handler\", new SlaveClientHandler());\n return pipeline;\n }\n });\n\n clientBootstrap.setOption(\"tcpNoDelay\", true);\n clientBootstrap.setOption(\"keepAlive\", true);\n\n ChannelFuture outChannel = clientBootstrap.connect(new InetSocketAddress(masterHost, 3333));\n\n masterChannel = outChannel.awaitUninterruptibly().getChannel();\n // Send handshake\n masterChannel.write(new HandshakeMessage(this.id, this.host, this.port));\n }", "title": "" }, { "docid": "34e85ce00c80f04d6f53eaa642304e6b", "score": "0.5417107", "text": "void start(Integer port);", "title": "" }, { "docid": "3922dc7e8468119fcef5d3180607183b", "score": "0.538003", "text": "public static void main ( String args[] ) throws Exception {\n if (args.length != 3) throw new Exception(\"Need 3 args: <cloud_ip> <cloud_port> <VM id>\");\n port = Integer.parseInt(args[1]);\n vm_id = Integer.parseInt(args[2]);\n SL = new ServerLib(args[0], port);\n int myrole = -1;\n Server master_server = null;\n VMS master = null;\n Server slave_server = null;\n if (vm_id == MASTER_NODE) {\n cacheDB = new DB(args[0], args[1]);\n //only one master\n log(\"Config: initial ---\");\n printSettings();\n try {\n master_server = new Server();\n master = (VMS) UnicastRemoteObject.exportObject(master_server, 0);\n // Bind the remote object's stub in the registry\n Registry registry = LocateRegistry.getRegistry(port);\n registry.bind(\"VMS\", master);\n log(\"Master ready. Register the front-end service.\");\n } catch (Exception e) {\n log(\"Master exception: \" + e.toString());\n e.printStackTrace();\n }\n for (int i = 0; i < frontNum; i++) {\n log(\"Starting the initial front tier server\");\n int new_id = startVMHelper();\n vm_role.put(new_id, FRONT_TIER);\n log(\"Starting the initial front tier server vm_id \" + new_id);\n }\n for (int i = 0; i < middleNum; i++) {\n log(\"Starting the initial middle tier server\");\n int new_id = startVMHelper();\n vm_role.put(new_id, MIDDLE_TIER);\n log(\"Starting the initial middle tier server vm_id \" + new_id);\n }\n SL.register_frontend();\n log(\"Try setup the parameters.\");\n trySetupParameters();\n\n log(\"Start processMaster\");\n processMaster();\n } else {\n log(\"Starting slave ....\");\n try {\n slave_server = new Server();\n VMS stub = (VMS) UnicastRemoteObject.exportObject(slave_server, 0);\n Registry registry = LocateRegistry.getRegistry(port);\n registry.bind(\"VMS_\" + vm_id, stub);\n master = (VMS) Naming.lookup(\"//localHost:\"+ port + \"/VMS\");\n log(\"Slave ready\");\n } catch (Exception e) {\n log(\"Slave exception: \" + e.toString());\n e.printStackTrace();\n }\n\n myrole = master.getRole(vm_id);\n while (myrole == -1) {\n myrole = master.getRole(vm_id);\n }\n master.registerVM(vm_id, myrole);\n if (myrole == FRONT_TIER) {\n SL.register_frontend();\n log(\"Finished vm_boot, start processFront\");\n processFront(master);\n } else {\n log(\"Finished vm_boot, start processMiddle\");\n processMiddle(master, vm_id);\n log(\"vm_stopped because of idling, done processMiddle\");\n }\n }\n }", "title": "" }, { "docid": "a9b7edeba21c11183fe3233449107a38", "score": "0.53701985", "text": "public void start() {\n\n if (clusterArchitecture == null) {\n throw new ClusterArchitecture.MesosArchitectureException(\"No cluster architecture specified\");\n }\n\n clusterArchitecture.getClusterContainers().getContainers().forEach(this::addAndStartContainer);\n // wait until the given number of slaves are registered\n new MesosClusterStateResponse(getMesosMasterContainer().getIpAddress() + \":\" + MesosMaster.MESOS_MASTER_PORT, getSlaves().length).waitFor();\n\n }", "title": "" }, { "docid": "323ece600da500493747889feadeebf5", "score": "0.53182316", "text": "@Override\n public void startServerConnections() throws RemoteException {\n MatchingServiceMixingProxy matchingServiceMixingProxyStub = (MatchingServiceMixingProxy) UnicastRemoteObject\n .exportObject((MatchingServiceMixingProxy) matchingServiceMixingProxyServer, 0);\n\n Registry matchingServiceMixingProxyRegistry = LocateRegistry.createRegistry(matchingServiceMixingProxyRMIServerPort);\n matchingServiceMixingProxyRegistry.rebind(\"MatchingServiceMixingProxy\", matchingServiceMixingProxyStub);\n\n //Start the matching service practitioner server\n MatchingServicePractitioner matchingServicePractitionerStub = (MatchingServicePractitioner) UnicastRemoteObject\n .exportObject((MatchingServicePractitioner) matchingServicePractitionerServer, 0);\n\n Registry matchingServicePractitionerRegistry = LocateRegistry.createRegistry(matchingServicePractitionerRMIServerPort);\n matchingServicePractitionerRegistry.rebind(\"MatchingServicePractitioner\", matchingServicePractitionerStub);\n\n //Start the matching service user server\n MatchingServiceUser matchingServiceUserStub = (MatchingServiceUser) UnicastRemoteObject\n .exportObject((MatchingServiceUser) matchingServiceUserServer, 0);\n\n Registry matchingServiceUserRegistry = LocateRegistry.createRegistry(matchingServiceUserRMIServerPort);\n matchingServiceUserRegistry.rebind(\"MatchingServiceUser\", matchingServiceUserStub);\n\n System.out.println(\"Started all RMI server instances\");\n }", "title": "" }, { "docid": "4c86a4a4cf7f6484354e4f15f3b52a01", "score": "0.53134733", "text": "private static void start( String[] args ) throws RemoteException,\n\t\t\tAlreadyBoundException \n {\n\t\tProperty.loadProperties(args);\n\t\tProperty.load(Hsp.class);\n\n\t\tService jicos = new Hsp();\n\t\tRegistry registry = RegistrationManager.locateRegistry();\n\t\tregistry.bind(SERVICE_NAME, jicos); \n\n\t\tif (args.length == 0) {\n\t\t\treturn;\n\t\t}\n \n // construct hosts\n Service taskServer = ((Hsp) jicos).rootTaskServer();\n int $Hosts = Integer.parseInt(args[0]);\t\t\n\t\tfor (int i = 0; i < $Hosts; i++) \n {\n\t\t\tnew Host( taskServer, false, 1 );\n\t\t}\n }", "title": "" }, { "docid": "64440785349d02ec7d8a15aa3495c807", "score": "0.5288087", "text": "public void startListining() throws IOException {\n ServerSocketChannel server;\n Selector selector = Selector.open();\n int ports[] = new int[] { 1234, 1235, 1236, 1237, 1238, 1239, 1240, 1241};\n System.out.println(\"Listening multiplPort :\");\n // loop through each port in our list and bind it to a ServerSocketChannel\n for (int port : ports) {\n server = ServerSocketChannel.open();\n server.configureBlocking(false);\n server.socket().bind(new InetSocketAddress(port));\n server.register(selector, SelectionKey.OP_ACCEPT);\n System.out.print(\" \"+port);\n }\n System.out.println();\n // Start Thread Manage the clients session every n seconds\n new Thread(new ManageClientSession(listClientsSocket)).start();\n\n while (true) {\n selector.select();\n Iterator<SelectionKey> selectedKeys = selector.selectedKeys().iterator();\n while (selectedKeys.hasNext()) {\n SelectionKey selectedKey = selectedKeys.next();\n\n if (selectedKey.isAcceptable()) {\n SocketChannel socketChannel = ((ServerSocketChannel) selectedKey.channel()).accept();\n if (socketChannel != null){\n// socketChannel.configureBlocking(false);\n // Switch with the local port of the socket connection, ... multiservices...\n switch (socketChannel.socket().getLocalPort()){ // dosnt work with gePort method\n case 1234:\n // Receive a phone number and send to it a SMS with a validation code\n new Thread(new SendCode(socketChannel)).start();\n break;\n case 1235:\n // Receive a phone number and the validation code\n // Send response Ok (the validation code is correct) or !OK\n new Thread(new CheckCode(socketChannel)).start();\n break;\n case 1236:\n // Receive phone number and the access key, verify if we have in the\n // DB a user with the same PhNum and the access key, send the response to the App (OK or !OK)\n new Thread(new VerifyUser(socketChannel)).start();\n break;\n case 1237:\n new Thread(new SetupUserProfile(socketChannel)).start();\n break;\n case 1238:\n // To send information aboute users (statu, photo, name ...)\n new Thread(new SendInfoFriend(socketChannel)).start();\n break;\n case 1239:\n System.out.println(\"Hello 1239\");\n new Thread(new AddClientSocket(listClientsSocket, socketChannel)).start();\n break;\n case 1240:\n System.out.println(\"Hello 1240\");\n new Thread(new RedirectMsg(listClientsSocket, socketChannel)).start();\n break;\n case 1241:\n System.out.println(\"Hello 1241\");\n new Thread(new ClientActif(socketChannel)).start();\n break;\n }\n// socketChannel.close();\n }\n } else if (selectedKey.isReadable()) {\n System.out.println(\"Hello read\");\n } else if (selectedKey.isWritable()) {\n System.out.println(\"Hello write\");\n }\n// selectedKey.channel().close();\n }\n }\n }", "title": "" }, { "docid": "64af2ca8342ef572069b757f5e5ba5dd", "score": "0.5284921", "text": "public void startMultiPointServer() {\n\t\tstartSinglePointServer(6790);\n\t}", "title": "" }, { "docid": "35cf0c22dc95e6d5b9e660f0e5029acc", "score": "0.52511567", "text": "private static void initializeServers() {\n db_servers = new LinkedHashMap<>(numberOfServers);\n\n for(int i= 0; i < numberOfServers; i++){\n String dbName = \"kit_server_\" + i;\n FakeServerAsDatabase db = new FakeServerAsDatabase(dbName, \"postgres\"); //TODO change the owner dynamically\n db_servers.put(db.getName(), db);\n }\n }", "title": "" }, { "docid": "a0ec3d9b8b3b4758a939e831ae0d6233", "score": "0.5229749", "text": "public void startServer(final int port, final int numClients) {\n this.port = port;\n this.numClients = numClients;\n try {\n\t\t\tserver = new ServerSocket(this.port, this.numClients);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"Server: ServerSocket FAIL!\");\n\t\t}\n System.out.println(\"Listening for a connection on port \"\n + port + \" limited for \" + numClients + \" clients\");\n \n while(online){\n \t\t\n\t // listen for connections\n\t try {\n\t\t\t\tlistenForConnection();\n\t getClients().add(new ServerThread(this, connection));\n\t getClients().get(getClients().size() - 1).start();\n\t System.out.println(\"Client count: \" + getClients().size() + \", Thread count: \" + Thread.activeCount());\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.out.println(\"Server: Connection Failed\");\n\t\t\t}\n }\n }", "title": "" }, { "docid": "aa42428fc659ca18427d388669fc6439", "score": "0.5229208", "text": "public void initiateConnections() {\n\t\ttry {\n\t\t\tint i = 0;\n\t\t\tfor (InetSocketAddress worker : workers) {\n\t\t\t\tSocket socket = Utilities.createClientSocket(worker);\n\t\t\t\tworkerToSocket.put(worker, socket);\n\t\t\t\tworkerToComm.put(worker, new CommLayer(socket, CommLayer.CLIENT));\n\t\t\t\ti++;\n\t\t\t}\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t\tSystem.exit(-1);\n\t\t}\n\n\t}", "title": "" }, { "docid": "62a52ecb2d54130d3b057ebf32907f42", "score": "0.52269495", "text": "private MockStatsDThread startServersForTestingStatsDReporterOnMaster(int statsDPort, int testCasePort, boolean shouldReportMetrics) throws SocketException, InterruptedException\n {\n CacheConfig.setOnMaster(conf, true);\n if (shouldReportMetrics) {\n CacheConfig.setMetricsReporters(conf, MetricsReporter.STATSD.name());\n }\n\n return startServersForTestingStatsDReporter(statsDPort, testCasePort);\n }", "title": "" }, { "docid": "c646fd18096f8002187f3ac4b766e609", "score": "0.51981574", "text": "public void run() {\n\t\t//System.out.println(\"Started new thread\");\n\t\t\t\ttry {\n\t\t\t\t\tint numSlaves = 0;\n\t\t\t\t\tif (slaveList == null) {\n\t\t\t\t\t\tSystem.err.println(\"Error null slaveList\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tSocket socketNew;\n\t\t\t\t\tServerSocket listner = new ServerSocket(portNumber);\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\tsocketNew = listner.accept();\n\t\t\t\t\t\tslaveList.add(socketNew);\n\t\t\t\t\t\t++numSlaves;\n\t\t\t\t\t\t//System.out.println(\"Accepted a new connection: \" + numSlaves);\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tSystem.err.println(\"Error in listening-Master\");\n\t\t\t\t}\n\t}", "title": "" }, { "docid": "da23da558aa7668066164ec63260dc2a", "score": "0.51931226", "text": "private int startWorkers(int nrOfWorkers){\n int started = 0;\n class Worker implements Runnable {\n @Override\n public void run(){\n assert parallelDemarshallingContext != 0;\n jniParallelDemarshallingMain(parallelDemarshallingContext);\n }\n }\n\n assert workers.size() == 0;\n\n /* Now start new threads */\n if(parallelDemarshallingContext != 0){\n Worker worker = new Worker();\n for(started = 0; started < nrOfWorkers; started++){\n Thread t = new Thread(worker);\n t.setDaemon(true);\n workers.add(started, t);\n t.start();\n }\n }\n return started;\n }", "title": "" }, { "docid": "8d4aa7fbaf48b778aab04666b80283c0", "score": "0.5156437", "text": "public static void init() {\n init(NUMBER_OF_SERVERS);\n }", "title": "" }, { "docid": "8e9120ec24fa9e2e33a1728aadef173f", "score": "0.51318526", "text": "public void start() {\n gameServer.start();\n accountServer.start();\n gatewayServer.start();\n }", "title": "" }, { "docid": "011e07e48df6016703cf0f7962e97465", "score": "0.5131171", "text": "public HostAndPort getMasterHostPort(int index) throws Exception {\n return masterHostPorts.get(index);\n }", "title": "" }, { "docid": "1af3d47e294882b333470b65cdac96e6", "score": "0.5115789", "text": "void start(String bootstrapServers, String stateDir, String replicaId, Properties defaultConfig);", "title": "" }, { "docid": "5e26d4eb5eaf37b110b922b37a345cfe", "score": "0.5078398", "text": "public static int getServers() { // get a random server to connect\n Random rand = new Random();\n return rand.nextInt(machines.size());\n }", "title": "" }, { "docid": "37c3911d43bd24c3d700e887d152cd97", "score": "0.5061252", "text": "public void startSinglePointServer() {\n\t\tstartSinglePointServer(6789);\n\t}", "title": "" }, { "docid": "805b2d5387d9a9ab45ac710fa05ab539", "score": "0.5050116", "text": "private void initServer(int from, int to) {\r\n\t\tint port = from;\r\n\t\twhile(true) {\r\n\t\t\ttry {\r\n\t\t\t\tthis.serverSocket = new ServerSocket(port);\r\n\t\t\t\tthis.port = this.serverSocket.getLocalPort();\r\n\t\t\t\t// ss.close();\r\n\t\t\t\tbreak;\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t++port;\r\n\t\t\t\tif(port > to) {\r\n\t\t\t\t\tport = -1;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1aa8c971d6ec4a4a7eb7d1e869c46e60", "score": "0.5038613", "text": "public static void main(String[] args) {\n\n\t\tfor(int port = 1 ; port <= 5535; port++){\n\t\t\t\n\t\t\ttry {\n\t\t\t\tServerSocket server = new ServerSocket(port);\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t\tSystem.out.println(\"There is a server on port \"+ port + \".\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7ca41ffc7e59002e4e19ffce1c5c44ac", "score": "0.50285614", "text": "public static void main(String[] args) {\n\t\tSystem.out.println(\"example 2\");\n\t\tServerSocket server_soc = null;\n\t\tfor(int n = 1; n<65536; ++n){\n\t\t\ttry{\n\t\t\t\tserver_soc= new ServerSocket(n);\n\t\t\t\tserver_soc.close();\n\t\t\t}catch(IOException ex){\n\t\t\t\tSystem.out.println(n+\" port is already open\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "6914f7597eac82c2a34d7d9466d6ba33", "score": "0.50024724", "text": "public RunOne(String projectRoot, int numClients, int numServers, int interRequestTime, int replySize,\n\t\t\t boolean faultInjection, int faultInjectionMinDelay,\n\t\t\t int faultInjectionMaxDelay, boolean killOnly,\n\t\t\t int getLotsMode, int detectionTimeout, int recoveryTimeout,\n\t\t\t String jdbcURL, String jdbcUsername, String jdbcPassword) throws IOException {\n\t\tthis.projectRoot = projectRoot;\n\t\tthis.interRequestTime = interRequestTime;\n\t\tthis.replySize = replySize;\n\t\tthis.faultInjection = faultInjection;\n\t\tthis.faultInjectionMinDelay = faultInjectionMinDelay;\n\t\tthis.faultInjectionMaxDelay = faultInjectionMaxDelay;\n\t\tthis.killOnly = killOnly;\n\t\tthis.getLotsModeCount = getLotsMode;\n\t\tthis.detectionTimeout = detectionTimeout;\n\t\tthis.recoveryTimeout = recoveryTimeout;\n\t\tthis.jdbcURL = jdbcURL;\n\t\tthis.jdbcUsername = jdbcUsername;\n\t\tthis.jdbcPassword = jdbcPassword;\n\t\t\n\t\t// Read our server list, being careful to not exceed the number specified in the command line\n\t Set<String> names = new TreeSet<String>();\n\t populateSet(names, new FileReader(\"servers\"));\n\t Iterator<String> nameIterator = names.iterator();\n\t int i = 0;\n\t while (i < numServers && nameIterator.hasNext()) {\n\t \tProcessInfo info = new ProcessInfo();\n\t \tinfo.name = nameIterator.next();\n\t \tservers.add(info);\n\t \ti++;\n\t }\n\t for (String client: names)\n\t \tallServers.add(client);\n\n\t\t// Read our client list, being careful to not exceed the number specified in the command line\n\t names.clear();\n\t populateSet(names, new FileReader(\"clients\"));\n\t nameIterator = names.iterator();\n\t i = 0;\n\t while (i < numClients && nameIterator.hasNext()) {\n\t \tProcessInfo info = new ProcessInfo();\n\t \tinfo.name = nameIterator.next();\n\t \tclients.add(info);\n\t \ti++;\n\t }\n\t for (String client: names)\n\t \tallClients.add(client);\n\n\t // Get the name and port of our sacred server\n\t names.clear();\n\t populateSet(names, new FileReader(\"sacredserver\"));\n\t sacredServer.name = names.iterator().next();\n\t names.clear();\n\t \n\t // Split the sacred server's name into name and port. If it's\n\t // only the name, then fall back to the default port of 7777\n\t int delimiter;\n\t String port;\n\t if ((delimiter = sacredServer.name.indexOf(':')) > 0 && delimiter < sacredServer.name.length() - 1) {\n\t \tport = sacredServer.name.substring(delimiter + 1);\n\t \tsacredServer.name = sacredServer.name.substring(0, delimiter);\n\t } else\n\t \tport = \"7777\";\n\t \n\t // Initialize our ORB using the sacred server's name and port\n System.out.println(\"Starting the CORBA ORB, pointing the name service to \" + sacredServer.name + \":\" + port);\n try {\n \tString args[] = new String[4];\n \targs[0] = \"-ORBInitialHost\";\n \targs[1] = sacredServer.name;\n \targs[2] = \"-ORBInitialPort\";\n \targs[3] = port;\n \torb = ORB.init(args, null);\n } \n catch (Exception e) {\n \tSystem.out.println(\"Exception while creating ORB; exiting\");\n \tSystem.exit(1);\n \treturn;\n }\n }", "title": "" }, { "docid": "47f4d21a69fafcbe4d4289491445cdb6", "score": "0.4990606", "text": "public static void main(String args[]) {\n int portNumber = 2222;\n\n if (args.length < 1) {\n System.out.println(\"Usage: java natServer <portNumber>\\n\"\n + \"Now using port number=\" + portNumber);\n } else {\n portNumber = Integer.valueOf(args[0]).intValue();\n }\n\n /*\n * Open a server socket on the portNumber (default 2222). Note that we can\n * not choose a port less than 1023 if we are not privileged users (root).\n */\n try {\n serverSocket = new ServerSocket(portNumber);\n } catch (IOException e) {\n System.out.println(e);\n }\n\n /*\n * Create a client socket for each connection and pass it to a new client\n * thread.\n */\n while (true) {\n try {\n clientSocket = serverSocket.accept();\n int i = 0;\n for (i = 0; i < maxClientsCount; i++) {\n if (threads[i] == null) {\n (threads[i] = new clientThread(clientSocket, threads)).start();\n\n ipadd[i][1] = \"1.0.0.\" + (i + 1);\n break;\n }\n }\n if (i == maxClientsCount) {\n PrintStream os = new PrintStream(clientSocket.getOutputStream());\n os.println(\"Server too busy. Try later.\");\n os.close();\n clientSocket.close();\n }\n } catch (IOException e) {\n System.out.println(e);\n }\n }\n }", "title": "" }, { "docid": "22ff2f7fc325ac5bc53da2b6e074112a", "score": "0.49869412", "text": "@SuppressWarnings(\"InfiniteLoopStatement\")\n private static void startServer() {\n int port = BTRACE_DEFAULT_PORT;\n String p = argMap.get(PORT);\n if (p != null) {\n try {\n port = Integer.parseInt(p);\n } catch (NumberFormatException exp) {\n error(\"invalid port assuming default..\");\n }\n }\n ServerSocket ss;\n try {\n if (log.isDebugEnabled()) {\n log.debug(\"starting server at port {}\", port);\n }\n System.setProperty(\"btrace.wireio\", String.valueOf(WireIO.VERSION));\n\n String scriptOutputFile = settings.getOutputFile();\n if (scriptOutputFile != null && scriptOutputFile.length() > 0) {\n System.setProperty(\"btrace.output\", scriptOutputFile);\n }\n ss = new ServerSocket(port);\n System.setProperty(\"btrace.port\", String.valueOf(ss.getLocalPort()));\n } catch (IOException ioexp) {\n ioexp.printStackTrace();\n return;\n }\n\n while (true) {\n try {\n log.debug(\"waiting for clients\");\n Socket sock = ss.accept();\n if (log.isDebugEnabled()) {\n log.debug(\"client accepted {}\", sock);\n }\n ClientContext ctx = new ClientContext(inst, transformer, argMap, settings);\n Client client = RemoteClient.getClient(ctx, sock, value -> handleNewClient(value));\n } catch (RuntimeException | IOException re) {\n if (log.isDebugEnabled()) {\n log.debug(\"BTrace server failed\", re);\n }\n }\n }\n }", "title": "" }, { "docid": "6bddba143887deed4a0ca27e4d31003b", "score": "0.49832585", "text": "private void initializeWorkers() {\n final int workersCount = 1;\n\n final ThreadGroup group = new ThreadGroup(\"Node Workers Group\");\n group.setDaemon(true);\n // group.setMaxPriority(Thread.MIN_PRIORITY);\n //group.setMaxPriority(Thread.MAX_PRIORITY);\n\n for (int i = 0; i < workersCount; i++) {\n createWorker(group, i);\n }\n }", "title": "" }, { "docid": "2d46d8a292441e2103d903c0ce65ef27", "score": "0.49623224", "text": "@Override\r\n\t\tpublic synchronized void start(){\n\t\t\ttry{\r\n\t\t\t\tmServerSock = new ServerSocket( ApplicationHere.getCfgListenPort() );\r\n\t\t\t\t//mServerSock = new ServerSocket( ApplicationHere.getCfgListenPort(), 0, InetAddress.getByName( \"172.16.0.2\" ) ); // test\r\n\t\t\t\tmRequestWorkersMax = ApplicationHere.getCfgRequestWorkersMax();\r\n\t\t\t\t// mRequestWorkersMax>=2: process request in a worker thread, use semaphore to limit\r\n\t\t\t\t// mRequestWorkersMax==1: process request in the current thread\r\n\t\t\t\t// mRequestWorkersMax<=0: process request in a worker thread, no limit\r\n\t\t\t\tif( mRequestWorkersMax >= 2 ){\r\n\t\t\t\t\t// new fresh count (important because workers are daemonic)\r\n\t\t\t\t\tsSemaphoreWorkers = new Semaphore( mRequestWorkersMax, true );\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tsSemaphoreWorkers = null;\r\n\t\t\t\t}\r\n\t\t\t\tsuper.start();\r\n\t\t\t}\r\n\t\t\tcatch( IOException e ){\r\n\t\t\t\tthrow new RuntimeException( e );\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "99a60789230e61f6b9811557f69125a9", "score": "0.49481305", "text": "public List<HostAndPort> getMasterHostPorts() {\n return masterHostPorts;\n }", "title": "" }, { "docid": "94baf8405ea224e7eeed35cf77c726e7", "score": "0.49366158", "text": "public final void spawnMinions()\n\t{\n\t\t// We generate new instances. We can't reuse existing instances, since previous monsters can still exist.\n\t\tfor (MinionData data : _master.getTemplate().getMinionData())\n\t\t{\n\t\t\t// Get the template of the Minion to spawn\n\t\t\tfinal NpcTemplate template = NpcData.getInstance().getTemplate(data.getMinionId());\n\t\t\tif (template == null)\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tfor (int i = 0; i < data.getAmount(); i++)\n\t\t\t{\n\t\t\t\tfinal Monster minion = new Monster(IdFactory.getInstance().getNextId(), template);\n\t\t\t\tminion.setMaster(_master);\n\t\t\t\tminion.setMinion(_master.isRaidBoss());\n\t\t\t\t\n\t\t\t\tinitializeNpcInstance(_master, minion);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "6ee78a217cbae9931a2350b515fd4d5c", "score": "0.4933622", "text": "public void start()\r\n\t{\n try \r\n {\r\n ServerBootstrap bootStrap = new ServerBootstrap();\r\n bossGroup=new NioEventLoopGroup();\r\n workerGroup = new NioEventLoopGroup();\r\n bootStrap.group(bossGroup, workerGroup);\r\n bootStrap.channel(NioServerSocketChannel.class);\r\n bootStrap.childHandler(new SessionInitializer(this));\r\n bootStrap.localAddress(port);\r\n //InetSocketAddress inSocketAddress=new InetSocketAddress(ipAddress,port); \r\n //Channel ch = bootStrap.bind(inSocketAddress).sync().channel();\r\n bootStrap.bind();\r\n logger.info(\"Server Started\");\r\n logger.info(\"Server listening \" +ipAddress+\":\" + port);\r\n } \r\n catch (Exception e) \r\n {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\tthis.stop();\r\n\t\t}\r\n finally \r\n {\r\n \t\r\n }\r\n\t}", "title": "" }, { "docid": "7cdd8cbb1e20457a90a6ac928a9fa918", "score": "0.49296325", "text": "private static void setServerPort(String[] args){\n int findP = Arrays.asList(args).indexOf(\"-p\");\n if(findP == -1){\n serverPort = 8007;\n }\n else\n serverPort = Integer.parseInt(args[findP+1]);\n }", "title": "" }, { "docid": "481d416b1081292f9f6cd33d1547d883", "score": "0.4892653", "text": "private void createServers() {\n logger.info(\"createServers() \");\n JDBCInterface localDB = getJDBCForLocalDB();\n for (FakeServerAsDatabase server : dbmanager.getServers().values()) {\n localDB.query(server.getCreateDatabaseStatement());\n JDBCInterface serverDB = getJDBCForLocalDB(server.getName());\n for (String createIndexTables : dbmanager.getDistributedRemoteIndexTablesCreateStatements()) {\n serverDB.query(createIndexTables);\n }\n// serverDB.query(server.getCreateTableStatements());\n serverDB.closeConnection();\n }\n localDB.closeConnection();\n }", "title": "" }, { "docid": "8b1f3d91f1fb3266193ddaeb8715652c", "score": "0.48911345", "text": "private static void verifyStartServer(int port)\n {\n if (!serverPortsFile.exists())\n throw new RuntimeException(\"HTTP servers are disabled. To enable them, create \"\n + \"a file called serverports.txt in the bot's storage folder, and \"\n + \"set its contents to be a regular expression that will match the \"\n + \"port numbers you want to allow servers to be started on.\");\n String regex = StringUtils.readFile(serverPortsFile);\n regex = regex.trim();\n if (!(\"\" + port).matches(regex))\n throw new RuntimeException(\"Invalid port; the port has to match the regex \"\n + regex);\n int maxServers;\n if (maxServersFile.exists())\n maxServers = Integer.parseInt(StringUtils.readFile(maxServersFile).trim());\n else\n maxServers = 20;\n if (httpServers.size() >= maxServers)\n throw new RuntimeException(\"There are already \" + httpServers.size()\n + \" servers started. This bot imposes a \" + \"maximum limit of \"\n + maxServers + \" at a time.\");\n }", "title": "" }, { "docid": "6936e694d263881b659f20abde6dada3", "score": "0.489055", "text": "public void startServer() {\n\t\ttry {\n\t\t\tserver = new ServerSocket(6789, 100);\t\t// connect the server\n\t\t\t\n\t\t\twhile(true) {\n\t\t\t\ttry {\n\t\t\t\t\twaitForConnection();\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t} catch (EOFException e) {\n\t\t\t\t\tSystem.err.println(\"\\nSERVER: Server ended connection !\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "6ee13362938da80bfb41bffd74d3b8b8", "score": "0.48885491", "text": "public static void main(String args[]) throws Exception {\n File connectionsStoreDir = new File(args[0]);\n int connectionsStoreSegMB = Integer.parseInt(args[1]); \n \n File connectionsDir = new File(args[2]);\n int connSourceIdStart = Integer.parseInt(args[3]);\n int connSourceIdCount = Integer.parseInt(args[4]);\n int connTargetIdStart = Integer.parseInt(args[5]);\n int connTargetIdCount = Integer.parseInt(args[6]);\n \n Chronos c = new Chronos();\n \n // Create connectionsStore\n int capacity = connSourceIdCount;\n ArrayStoreConnections connectionsStore =\n StoreFactory.createArrayStoreConnections(connectionsStoreDir, capacity, connectionsStoreSegMB);\n \n // Bootstrap connectionsStore\n ArrayStoreConnectionsBootstrap bootstrap =\n new ArrayStoreConnectionsBootstrap(connectionsStore,\n connSourceIdStart,\n connSourceIdCount,\n connTargetIdStart,\n connTargetIdCount);\n \n ConnectionsScanner scanner = new ConnectionsScanner(connectionsDir);\n scanner.scan(bootstrap);\n connectionsStore.sync();\n \n System.out.printf(\"Bootstrap done in %d ms%n\", c.tick());\n }", "title": "" }, { "docid": "f5cb6f927ae02bd6d1350ebf8854eb17", "score": "0.4888013", "text": "public void startServerOnPort(Integer serverPort) {\n Integer port = 0;\n\n for (IFAppiumServer server : appiumServersList) {\n if (server instanceof AppiumAndroid) {\n // AppiumAndroid inc = (AppiumAndroid) server.getSeverInstance();\n //port = inc.getNodeConfig().getConfiguration().getPort();\n } else if (server instanceof AppiumIOS) {\n // AppiumIOS inc = (AppiumIOS) server.getSeverInstance();\n //port = inc.getNodeConfig().getConfiguration().getPort();\n } else {\n log.error(\"Instance of port: \" + serverPort + \" not found.\");\n }\n /*\n if(port == serverPort){\n server.stopServer();\n }else{\n log.error(\"Instance of port: \" + serverPort + \" not found.\");\n }*/\n }\n }", "title": "" }, { "docid": "48b2f0cda42ca77d0851da0c81c5f7bc", "score": "0.48785195", "text": "private String start(int port, int range, InetAddress selfAddress) throws Exception {\n\t\tthis.jettyWebServer = null;\n\t\tException lastException = null;\n\n\t\tXmlRpcServlet servlet = new XmlRpcDHTServlet();\n\n\t\tfor (int p = port; p < port + range; p++) {\n\t\t\tif (webServerType == WebServerType.XMLRPC_WITHOUT_SERVLET) {\n\t\t\t\t// with only XML-RPC 3.0\n\t\t\t\t// involves XmlRpcDHTServlet but doGet() is not called\n\n\t\t\t\tthis.xmlrpcWebServer = new ServletWebServer(servlet, p);\n\t\t\t\tthis.xmlrpcWebServer.start();\n\t\t\t}\n\n\t\t\tif (webServerType == WebServerType.XMLRPC_WITH_SERVLET) {\n\t\t\t\t// with only XML-RPC 3.0\n\t\t\t\t// does not involve XmlRpcDHTServlet and doGet() is not called\n\n\t\t\t\tthis.xmlrpcWebServer = (selfAddress != null ?\n\t\t\t\t\t\tnew WebServer(p, selfAddress) :\n\t\t\t\t\t\t\tnew WebServer(p));\n\n\t\t\t\tthis.xmlrpcWebServer.getXmlRpcServer().setHandlerMapping(new Mapper());\n\n\t\t\t\ttry {\n\t\t\t\t\tthis.xmlrpcWebServer.start();\n\n\t\t\t\t\t// succeeded to start a web server\n\t\t\t\t\tthis.port = p;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcatch (IOException e) {\n\t\t\t\t\tlastException = e;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (webServerType == WebServerType.JETTY) {\n\t\t\t\t// with Jetty\n\t\t\t\t// involves XmlRpcDHTServlet and doGet is called\n\n//\t\t\t\tthis.jettyWebServer = new Server(p);\n//\t\t\t\tContext root = new Context(this.jettyWebServer, \"/\", Context.SESSIONS);\n//\t\t\t\troot.addServlet(new ServletHolder(servlet), \"/*\");\n//\n//\t\t\t\ttry {\n//\t\t\t\t\tthis.jettyWebServer.start();\n//\n//\t\t\t\t\t// succeeded to start a web server\n//\t\t\t\t\tthis.port = p;\n//\t\t\t\t\tbreak;\n//\t\t\t\t}\n//\t\t\t\tcatch (Exception e) {\n//\t\t\t\t\tlastException = e;\n//\t\t\t\t\tcontinue;\n//\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tClass jettyServerClazz = Class.forName(\"org.eclipse.jetty.server.Server\");\n\t\t\t\t\tClass jettyContextClazz = Class.forName(\"org.eclipse.jetty.servlet.ServletContextHandler\");\n\t\t\t\t\tClass jettyServletHolderClazz = Class.forName(\"org.eclipse.jetty.servlet.ServletHolder\");\n\t\t\t\t\tClass jettyHandlerContainerClazz = Class.forName(\"org.eclipse.jetty.server.HandlerContainer\");\n\n\t\t\t\t\tConstructor jettyServerCtor = jettyServerClazz.getDeclaredConstructor(int.class);\n\t\t\t\t\tConstructor jettyContextCtor = jettyContextClazz.getDeclaredConstructor(jettyHandlerContainerClazz, String.class, int.class);\n\t\t\t\t\tConstructor jettyServletHolderCtor = jettyServletHolderClazz.getDeclaredConstructor(Servlet.class);\n\t\t\t\t\tMethod jettyContextAddServletMtd = jettyContextClazz.getDeclaredMethod(\"addServlet\", jettyServletHolderClazz, String.class);\n\n\t\t\t\t\tthis.jettyWebServer = jettyServerCtor.newInstance(p);\n\t\t\t\t\tObject root = jettyContextCtor.newInstance(this.jettyWebServer, \"/\", 1);\n\t\t\t\t\tObject servletHolder = jettyServletHolderCtor.newInstance(servlet);\n\t\t\t\t\tjettyContextAddServletMtd.invoke(root, servletHolder, \"/*\");\n\t\t\t\t\t\t// jettyWebServer = new Server();\n\t\t\t\t\t\t// root = new ServletContextHandler(jettyWebServer, \"/\", 1);\n\t\t\t\t\t\t// servletHolder = new ServletHolder();\n\t\t\t\t\t\t// root.addServlet(servletHoldre, \"/*\");\n\n\t\t\t\t\tMethod jettyServerStartMtd = jettyServerClazz.getMethod(\"start\");\n\t\t\t\t\tthis.jettyServerStopMtd = jettyServerClazz.getMethod(\"stop\");\n\n\t\t\t\t\tjettyServerStartMtd.invoke(this.jettyWebServer);\n\t\t\t\t\t\t// jettyWebServer.start();\n\n\t\t\t\t\t// succeeded to start a web server\n\t\t\t\t\tthis.port = p;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcatch (Exception e) {\n\t\t\t\t\tlastException = e;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (this.jettyWebServer == null && xmlrpcWebServer == null) {\n\t\t\tthrow lastException;\n\t\t}\n\n\t\treturn HTMLUtil.convertMessagingAddressToURL(\n\t\t\t\tthis.dht.getSelfIDAddressPair().getAddress(), this.port);\n\t}", "title": "" }, { "docid": "e263af8bf3e1110181dddfea81a856f9", "score": "0.4876476", "text": "public static void main(String[] args) {\n\t\t\n\t\tint portNumber = 0;\n\t\tArrayList<Socket> slaves = new ArrayList<Socket>();\n\t\t\n\t\t//new Thread(new MasterBot(slaves))\n\t\t\n\t\t/*Accepting command line argument and storing it in portNumber. \n\t\tOne port number must be entered.*/\n\t\tif(args.length == 0){\n\t\t\tSystem.err.println(\"One port number must be entered. Exiting Master\");\n\t\t\tSystem.out.println(\"\\n\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t//To do: Try Catch\n\t\tif(args.length == 2){\t\n\t\t\tif((args[0].equals(\"-p\")) && (Integer.parseInt(args[1]))>0){\n\t\t\t\t//master.setPortNumber(Integer.parseInt(args[1]));\n\t\t\t\tportNumber = Integer.parseInt(args[1]);\n\t\t\t\tSystem.out.println(args[1]);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.err.println(\"Data entered not correct\");\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\telse{\n\t\t\t\tSystem.err.println(\"portnumber must be entered in correct format\");\n\t\t\t\tSystem.exit(1);\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\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t//Adding slaves to array while connecting\n\t\tMasterBot master = new MasterBot(slaves, portNumber);\n\t\t\n\t\t// Spawn off a thread to listen for slaves\n\t\tnew Thread(master).start();\n\n\t\t//Creating a new input stream object\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true) {\n\t\t\t//Printing the commands to enter\t\t\t\n\t\t\tSystem.out.println(\"Please enter any of the following commands\");\n\t\t\tSystem.out.println(\"1.list \\n\"\n\t\t\t\t\t+ \"2.connect \\n\"\n\t\t\t\t\t+ \"3.disconnect \\n\" \n\t\t\t\t\t+ \"4.rise-fake-url \\n\"\n\t\t\t\t\t+ \"5 down-fake-url \\n\");\n\t\t\tSystem.out.print('>');\n\t\t\t\n\t\t\t/* Get UI input */\n\t\t\tString input = sc.nextLine().toLowerCase();\n\t\t\tSystem.out.println(\" Input :\" + input);\n\t\t\tString cmd[] = input.split(\" \");\n\t\t\tfor (String str : cmd) {\n\t\t\t\tSystem.out.println(str);\n\t\t\t}\n\t\t\tSystem.out.println(\"Switching cmd[0]\" + cmd[0]);\n\t\t\tswitch(cmd[0]) {\n\t\t\t\tcase \"list\":\t\tmaster.printSlaves();\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase \"connect\":\t\tmaster.connectTargetHost(cmd);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase \"disconnect\":\tmaster.disconnectTargetHost(cmd);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase \"rise-fake-url\" : \tmaster.riseFakeURL(cmd);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase \"down-fake-url\" : master.downFakeURL(cmd); \n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tdefault:\t\t\tSystem.out.println(\"Incorrect input\");\n\t\t\t}\n\t\t\t\n\t\t}\t\n\t}", "title": "" }, { "docid": "63fd7900e71072cc7c197569fcb7f462", "score": "0.48763624", "text": "private static void startRegistry(int RMIPortNum)\n throws RemoteException {\n try {\n Registry registry = LocateRegistry.getRegistry(RMIPortNum);\n registry.list();\n } catch (RemoteException ex) {\n System.out.println(\n \"RMI registry cannot be located at port \" + RMIPortNum);\n Registry registry = LocateRegistry.createRegistry(RMIPortNum);\n System.out.println(\n \"RMI registry created at port \" + RMIPortNum);\n }\n }", "title": "" }, { "docid": "fa1d1bc65c1b5ed36f1679cbdd5fd40f", "score": "0.48746076", "text": "protected int startListening() {\n\t // Find a free port and update the routing table. \n\t int port = findFreePort();\n\t network.updateRoute(id, \"localhost\", port);\n\t \n\t // Now start listening for messages. \n\t externalCom.startListening(id);\n\n\t return port;\n\t}", "title": "" }, { "docid": "03e71dee437ec2d04ce985fd64daa050", "score": "0.4865599", "text": "private void bootStrapServer() {\n logger.info(\"Initiating server...\");\n try {\n bossGroup = new NioEventLoopGroup(1);\n workerGroup = new NioEventLoopGroup();\n ServerBootstrap b = new ServerBootstrap();\n b.group(bossGroup, workerGroup)\n .channel(NioServerSocketChannel.class)\n .childHandler(new ChannelInitializer<SocketChannel>() {\n @Override\n public void initChannel(SocketChannel ch) {\n try {\n channels.add(ch); // Every connected client (or lower HeadQuarter) is in channels list. Server will response by this channels.\n ChannelPipeline p = ch.pipeline();\n p.addLast(\n encoder,\n new ObjectDecoder(ClassResolvers.cacheDisabled(null)),\n myDuplexHandler);\n } catch (Exception e) {\n logger.warning(e.getMessage());\n }\n }\n });\n b.bind(port).sync().channel().closeFuture().sync();// Bind to port number and start to accept incoming connections.\n } catch (Exception e) {\n applicationLogic.displayMessage(\"No connection!\");\n e.printStackTrace();\n } finally {\n bossGroup.shutdownGracefully();\n workerGroup.shutdownGracefully();\n }\n }", "title": "" }, { "docid": "2c028fb81932a7a6190971258284d376", "score": "0.48651233", "text": "private void masterManager() {\n ReentrantLock lock = new ReentrantLock();\r\n new Thread(new MasterManager(new MasterListener(port, lock), lock)).start();\r\n return;\n }", "title": "" }, { "docid": "a2637495751b7727ae1ad20a207867f6", "score": "0.48481196", "text": "private void startServices() {\n\t\tServerInfo server = serviceManager.getConnectionManager().getSelection();\r\n\t\tMessage.RemoteControlPortsMessage ports = remoteControlService.getRemoteControlPorts(server);\r\n\r\n\t\t// Checking if the data was successfully retrieved. If not, then the connection is lost\r\n\t\tif (ports == null) {\r\n\t\t\t// Triggering connection LOST event\r\n\t\t\tserviceManager.getEventManager().triggerEvent(new ConnectionStateEvent(ConnectionManager.ConnectionState.NONE));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif(configurationData.hasButtons) {\r\n\t\t\tbuttonService.init(server.ip, ports.buttonPort);\r\n\t\t\tif (buttonService.isReady()) {\r\n\t\t\t\tbuttonService.start();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif(configurationData.hasSteeringWheel) {\r\n\t\t\taccService.init(server.ip, ports.accelerometerPort);\r\n\t\t\tif (accService.isReady()) {\r\n\t\t\t\taccService.start();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "585f12aa66a7bbc951cd04e60971245d", "score": "0.48422623", "text": "private void begin() {\r\n \tif (hostname == null) {\r\n masterManager();\r\n try {\r\n \t\t\thostname = InetAddress.getLocalHost().getHostName();\r\n \t\t} catch (UnknownHostException e) {\r\n \t\t\tSystem.out.println(\"Error: localhost not found; Exiting...\");\r\n \t\t\treturn;\r\n \t\t}\r\n }\r\n \t\r\n slaveManager();\r\n \treturn;\r\n }", "title": "" }, { "docid": "35394de492774d006ee609aebd582300", "score": "0.48321408", "text": "private void init() {\n\t\t\n\t\ttry {\n\t\t\tServerSocket s = new ServerSocket(30000);\n\t\t\twhile(true){\n\t\t\t\t\n\t\t\t\tSocket socket = s.accept();\n\t\t\t\tnew ServerThreads(socket).start();\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\tSystem.out.print(\"服务器失败 是否端口\"+30000+\"被占用\");\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "49c2cfb4eab574ea5a24a91718fc5126", "score": "0.4820728", "text": "private synchronized void start(InetSocketAddress inetSocketAddress) throws IOException {\n if (started) throw new IllegalStateException(\"start() already called\");\n started = true;\n\n executor = Executors.newCachedThreadPool(Util.threadFactory(\"MockWebServer\", false));\n this.inetSocketAddress = inetSocketAddress;\n serverSocket = serverSocketFactory.createServerSocket();\n // Reuse if the user specified a port\n serverSocket.setReuseAddress(inetSocketAddress.getPort() != 0);\n serverSocket.bind(inetSocketAddress, 50);\n\n port = serverSocket.getLocalPort();\n executor.execute(new NamedRunnable(\"MockWebServer %s\", port) {\n @Override protected void execute() {\n try {\n logger.info(MockWebServer.this + \" starting to accept connections\");\n acceptConnections();\n } catch (Throwable e) {\n logger.log(Level.WARNING, MockWebServer.this + \" failed unexpectedly\", e);\n }\n\n // Release all sockets and all threads, even if any close fails.\n Util.closeQuietly(serverSocket);\n for (Iterator<Socket> s = openClientSockets.iterator(); s.hasNext(); ) {\n Util.closeQuietly(s.next());\n s.remove();\n }\n for (Iterator<FramedConnection> s = openFramedConnections.iterator(); s.hasNext(); ) {\n Util.closeQuietly(s.next());\n s.remove();\n }\n executor.shutdown();\n }\n\n private void acceptConnections() throws Exception {\n while (true) {\n Socket socket;\n try {\n socket = serverSocket.accept();\n } catch (SocketException e) {\n logger.info(MockWebServer.this + \" done accepting connections: \" + e.getMessage());\n return;\n }\n SocketPolicy socketPolicy = dispatcher.peek().getSocketPolicy();\n if (socketPolicy == DISCONNECT_AT_START) {\n dispatchBookkeepingRequest(0, socket);\n socket.close();\n } else {\n openClientSockets.add(socket);\n serveConnection(socket);\n }\n }\n }\n });\n }", "title": "" }, { "docid": "08fb834bd9455662772e5b8f81e885ab", "score": "0.48072353", "text": "public CommonServer(int port, int numOfClients){\r\n\t\tthis.port = port;\r\n\t\tthis.numOfClients = numOfClients;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a13b8a0a37c709acfb61c035db461711", "score": "0.48032448", "text": "private void start() {\r\n System.out.println(sdf.format(date) + \" Server waiting for clients on port \" + port);\r\n try {\r\n ServerSocket serverSocket = new ServerSocket(port);\r\n while (true) {\r\n Socket socket = serverSocket.accept();\r\n Runnable r = new ClientThread(socket, uniqueId++);\r\n Thread t = new Thread(r);\r\n clients.add((ClientThread) r);\r\n t.start();\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "9ff5d86d5df2a0e475e8d948153ca6f4", "score": "0.47975177", "text": "public List<NodeDetails> getMasters() {\n return getServers(ServerType.MASTER);\n }", "title": "" }, { "docid": "1ea9ad373e70700718046c965f701868", "score": "0.47974488", "text": "private int connect() {\n int port = STARTING_PORT;\n boolean keepSearching = true;\n while (keepSearching) {\n try {\n isServerRunning = false;\n serverSocket = new ServerSocket(port);\n isServerRunning = true;\n keepSearching = false;\n }\n catch (BindException e) {\n //the port is already in use, go try the next one.\n port++;\n }\n catch (IOException e) {\n logger.error(\"Could not listen on port: \" + port, e);\n keepSearching = false;\n port = -1;\n }\n }\n return port;\n }", "title": "" }, { "docid": "f86a0d1df5499d72221e1e9d873c6107", "score": "0.478042", "text": "public int allocateServerIndex(MethodCall mc, int partitioningIndex, int nbConnectedServerInterfaces) {\n return partitioningIndex;\n //\t\tuse this method somewhere!\n }", "title": "" }, { "docid": "928d6740be298524f9de1e66f4fff4b4", "score": "0.47763345", "text": "public void setDedicatedMasterCount(Integer dedicatedMasterCount) {\n this.dedicatedMasterCount = dedicatedMasterCount;\n }", "title": "" }, { "docid": "195de6749d37370eb02073bbf6173f38", "score": "0.4761519", "text": "private void initParallelFactor() {\n try {\n this.parallelFactor = (\n Math.max(1, MetadataBridge.getNumHosts(mgr.getCluster().getMetadata())) * 32\n );\n } catch (Exception e) { // defaults to 32 if we cannot get the info from the cluster\n this.parallelFactor = 32;\n }\n }", "title": "" }, { "docid": "8df3bc9a30c3ca44d77c3c54038cc81c", "score": "0.4757159", "text": "public void startRunning() {\r\n\t\ttry { // 1st 2nd\r\n\t\t\tserver = new ServerSocket(6789, 100); // 1)port number ( where this app is located on our machine) for admin\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// 2) number of ppl allowed on the server\r\n\t\t\twhile (true) {\r\n\t\t\t\ttry { // connection with other ppl and have conversations\r\n\r\n\t\t\t\t\twaitForConnection(); // waits for somene to connect.\r\n\t\t\t\t\tsetupStreams(); // gets connected. connecting streams with others\r\n\t\t\t\t\twhileChatting(); // sending messages back n forth.\r\n\r\n\t\t\t\t} catch (EOFException eofException) { // end stream\r\n\t\t\t\t\tshowMessage(\"\\n Server Timeout\");\r\n\r\n\t\t\t\t} finally {\r\n\t\t\t\t\tcloseCrap(); // signal end of streams, close all sockets\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t} catch (IOException ioException) {\r\n\t\t\tioException.printStackTrace(); // tells us where we made the error\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "aa2b42c586b5909dfca5f945a23aa67a", "score": "0.47543645", "text": "public void createMultiVNs() {\n\n\t\tcreateMininetScript();\n\t\tthis.start();\n\t}", "title": "" }, { "docid": "1fb69fab2d64c20ca0173ca489ea0962", "score": "0.4748777", "text": "public void startClientConnections() throws RemoteException, NotBoundException {\n Registry registrarMatchingServiceRegistry = LocateRegistry.getRegistry(\"localhost\", registrarMatchingServiceRMIClientPort);\n registrarMatchingService = (RegistrarMatchingService) registrarMatchingServiceRegistry\n .lookup(\"RegistrarMatchingService\");\n\n System.out.println(\"Started all RMI client instances\");\n }", "title": "" }, { "docid": "4dc234ff8f22cb220924b1aea9482865", "score": "0.47486076", "text": "public void startListningConnections(ThreadConnectionServer connectionServerImplementation) throws ServerAlreadyUsePort{\n if (!connectionThreads.containsKey(connectionServerImplementation.getPort())){\n connectionThreads.put(connectionServerImplementation.getPort(), connectionServerImplementation);\n connectionServerImplementation.setPool(connectionThreadPool);\n connectionThreads.get(connectionServerImplementation.getPort()).start();\n }else{\n throw new ServerAlreadyUsePort(connectionServerImplementation.getPort());\n }\n }", "title": "" }, { "docid": "1da5818fc41cea16d6246e07a30eada1", "score": "0.47472322", "text": "public static void main(String[] args) {\n String host = \"\";\n try{\n host = args[0];\n }catch(Exception e){\n System.out.println(\"usage: Master <hostname>\");\n return;\n }\n Scanner in = new Scanner(System.in);\n // get required information from users\n while(true) {\n System.out.println(\"Prime numbers between 1 and MAX.\");\n System.out.println(\"Enter MAX: (-1 to quit)\");\n int MAX = in.nextInt();\n if(MAX == -1) {\n break;\n }\n if(MAX < 1) {\n System.out.println(\"MAX must be greater than 0\");\n break;\n }\n System.out.println(\"Enter range size for each sub task: \");\n int subTaskSize= in.nextInt();\n Master master = new Master(host, MAX, subTaskSize);\n master.run();\n }\n }", "title": "" }, { "docid": "d48d268086e844d7457936010952b29b", "score": "0.47461316", "text": "public void StartServer() {\n server.StartServer();\n //Inicia o Udp listener\n UdpListener u = new UdpListener();\n u.StartServer();\n\n //Inicia os clientes Udp que enviam pacotes para duas portas diferentes\n UdpClient c1 = new UdpClient(ListenPort1);\n UdpClient c2 = new UdpClient(ListenPort2);\n c1.StartServer();\n c2.StartServer();\n\n\n }", "title": "" }, { "docid": "a58311046bfba0b712da2320e46ced80", "score": "0.47398213", "text": "@Override\n protected void startHttpServer(String path, int port) {\n }", "title": "" }, { "docid": "9d87414ec59366d36089f7ae99c36fcd", "score": "0.4733043", "text": "public void setPortNumber(int number) {\n // TODO\n }", "title": "" }, { "docid": "de1fc183b1b3f7ae69f67fdec9d3ec6c", "score": "0.4728984", "text": "public void start() throws ServiceException {\n try {\n if (running.compareAndSet(false, true)) {\n\n multipointServer = new MultipointServer(host, port, tracker).start();\n\n this.port = multipointServer.getPort();\n \n // Connect the initial set of peer servers\n StringTokenizer st = new StringTokenizer(initialServers, \",\");\n while (st.hasMoreTokens()) {\n multipointServer.connect(URI.create(\"conn://\"+st.nextToken().trim()));\n }\n\n }\n } catch (Exception e) {\n throw new ServiceException(port+\"\", e);\n }\n }", "title": "" }, { "docid": "9000eb9b4322317c7bfadc400e0bf86a", "score": "0.4725299", "text": "public void startServer() {\n\t\tfinal ServerListener server = new ServerListener(25566);\r\n\t\tThread serverThread = new Thread(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\twhile (true) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tserver.start();\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\te.printStackTrace();\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\tserverThread.start();\r\n\t\t\r\n\t\t//Broadcast message to all clients on the network that there is a server available\r\n\t\tMulticastPublisher multicastPublisher = new MulticastPublisher();\r\n\t\ttry {\r\n\t\t\tmulticastPublisher.multicast(\"Hello\");\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "dc4d5c7131e45748c1bc425f4b276cb2", "score": "0.47239783", "text": "public static int getNextFreePort(int startPort) {\n if (startPort < 1024) {\n startPort = 10000;\n }\n for (int port = startPort; port < 65536; port++) {\n System.out.println(\"Scan port \" + port);\n try {\n // first trying to establish a server-socket on localhost\n // fails if there is already a server running\n ServerSocket sSock = new ServerSocket(port);\n sSock.close();\n } catch (IOException e) {\n System.out.println(\" -> server: occupied port \" + port);\n continue;\n }\n try {\n // now trying to establish a client-socket\n // fails if there is no server on any connectable machine\n Socket sock = new Socket(\"localhost\", port);\n System.out.println(\" -> socket: occupied port: \" + port);\n } catch (IOException e) {\n System.out.println(\" -> free port\");\n return port;\n }\n }\n return 65535;\n }", "title": "" }, { "docid": "aa0bb1fac82f19fed3531bcf23765558", "score": "0.4723105", "text": "public static void main(String[] args) throws IOException {\n\t\tport(myPort);\n\n\t\tSystem.out.println(\"Master node startup\");\n\n\t\tregisterWorkerStatusHandler();\n\t\tregisterStatusPage();\n\t\tregisterShutdown();\n\t\tregisterGetURLs();\n\t\tregisterURLEndpoint();\n\t\t//threadPool(20, 2, 2500);\n\t\t//initMQ();\n//\t\tSystem.out.println(\"Press [Enter] to initialize workers...\");\n//\t\t(new BufferedReader(new InputStreamReader(System.in))).readLine();\n//\n\n\t\tSystem.out.println(\"Press [Enter] to start crawl...\");\n\t\t(new BufferedReader(new InputStreamReader(System.in))).readLine();\n\n\t\tPath p = Paths.get(ROBOT_STORE_ENV);\n\t\tif (Files.exists(p)) {\n\t\t\t//deleteFolder(new File(ROBOT_STORE_ENV));\n\t\t} else {\n\t\t\tnew File(ROBOT_STORE_ENV).mkdir();\n\t\t}\n\t\tROBOTS = new RobotsStorage();\n\t\tROBOTS.init(ROBOT_STORE_ENV);\n\n\t\tp = Paths.get(URL_STORE_ENV);\n\t\tif (Files.exists(p)) {\n//\t\t\tdeleteFolder(new File(URL_STORE_ENV));\n//\t\t\tnew File(URL_STORE_ENV).mkdir();\n\t\t} else {\n\t\t\tnew File(URL_STORE_ENV).mkdir();\n\t\t}\n\t\turls = new URLStore(URL_STORE_ENV, \"URLSTORE\", 1000);\n//\t\turls.push(\"https://dbappserv.cis.upenn.edu/crawltest/nytimes/\");\n//\t\turls.push(\"https://dbappserv.cis.upenn.edu/crawltest/bbc/\");\n//\t\turls.push(\"http://niharpatil.me\");\n//\t\turls.push(\"https://www.techmeme.com/\");\n//\t\turls.push(\"http://dmoz-odp.org/\");\n\t\turls.push(\"https://en.wikipedia.org/wiki/Agriculture\");\n\t\turls.push(\"https://en.wikipedia.org/wiki/Culture\");\n\t\turls.push(\"https://moz.com/top500\");\n\t\turls.push(\"http://news.nettop20.com/\");\n\t\t//urls.push(\"https://www.reddit.com/r/popular\");\n//\t\turls.push(\"http://www.ebizmba.com/articles/news-websites\");\n//\t\turls.push(\"http://digg.com/\");\n//\t\turls.push(\"https://www.dtelepathy.com/blog/inspiration/14-beautiful-content-heavy-websites-for-inspiration\");\n//\t\turls.push(\"https://techcrunch.com/\");\n//\t\turls.push(\"https://www.reddit.com\");\n//\t\turls.push(\"https://www.google.com\");\n//\t\turls.push(\"https://www.reddit.com/r/news\");\n//\t\turls.push(\"https://www.medium.com\");\n\n\n////\t\turls.push(\"https://www.imdb.com/\");\n//\t\turls.push(\"https://moz.com/top500\");\n\n//\t\turls.push(\"http://digg.com\");\n//\t\t//urls.push(\"http://stackoverflow.com\");\n//\t\turls.push(\"https://en.wikipedia.org/wiki/Adolf_Hitler\");\n\t\tstartJob();\n\t\toutputURLs();\n\n\n\n\t\tSystem.out.println(\"Press [Enter] to shut down the master...\");\n\t\t(new BufferedReader(new InputStreamReader(System.in))).readLine();\n\n\t\tCrawlMaster.shutdown();\n\t}", "title": "" }, { "docid": "0fd0078745dcb6679f195a23bf62019e", "score": "0.4713087", "text": "public List<String> getBootstrapServers() throws IOException {\n URL url = new URL(String.format(MARATHON_LOOKUP_TEMPLATE, frameworkName));\n LOGGER.info(\"Connecting to {} for scheduler port lookup\", url.toString());\n JSONObject responseObj = getAndLogResponse(url);\n\n // response[\"app\"][\"tasks\"][0][\"ports\"][0] = portnum\n int schedulerPort = responseObj\n .getJSONObject(\"app\")\n .getJSONArray(\"tasks\")\n .getJSONObject(0)\n .getJSONArray(\"ports\")\n .getInt(0);\n\n url = new URL(String.format(SCHEDULER_CONNECTION_TEMPLATE, frameworkName, schedulerPort));\n LOGGER.info(\"Connecting to {} for broker lookup\", url.toString());\n responseObj = getAndLogResponse(url);\n\n JSONArray responseBrokerList = responseObj.getJSONArray(\"dns\");\n List<String> brokerList = new ArrayList<>();\n for (int i = 0; i < responseBrokerList.length(); ++i) {\n brokerList.add(responseBrokerList.getString(i));\n }\n if (brokerList.isEmpty()) {\n LOGGER.warn(\"Response from {} contained an empty broker list\", url.toString());\n }\n return brokerList;\n }", "title": "" }, { "docid": "757cfcfbfbf1b1b72fd292bb9a1afc52", "score": "0.47055313", "text": "public void setMasterNodes(List<String> masterNodes) {\n this.masterNodes = masterNodes;\n }", "title": "" }, { "docid": "c3e8d15c88ad0cc230336017a318be26", "score": "0.46919543", "text": "public void goMaster( boolean failover ) { }", "title": "" }, { "docid": "b795aa8300f7afdc0b14c0321ce0460f", "score": "0.46856678", "text": "synchronized public void setMaster(String uri) \r\n\tthrows InvalidSenderException, java.io.IOException {\r\n\r\n\tPacketSender new_master = sender_factory.createPacketSender(uri);\r\n\r\n\tdisconnectMaster();\r\n\tboolean new_listener = false;\r\n\tif (listener == null) {\r\n\t setReceiver(new TCPPacketReceiver(0));\r\n\t new_listener = true;\r\n\t}\r\n\tmaster_handler = uri.getBytes();\r\n\tmaster = new_master;\r\n\t//\r\n\t// sends a WHO packet to figure out the identity of the master\r\n\t// server. This dispatcher uses the \"to\" field of the SENP\r\n\t// packet to tell the master server the handler used by this\r\n\t// server to reach the master server. (see reply_who())\r\n\t//\r\n\ttry {\r\n\t spkt.init();\r\n\t spkt.method = SENP.WHO;\r\n\t spkt.ttl = 2;\t\t\t// round-trip\r\n\t spkt.to = master_handler;\r\n\t spkt.id = my_identity;\r\n\t spkt.handler = listener.uri();\r\n\t master.send(spkt.buf, spkt.encode());\r\n\t //\r\n\t // perhaps I should sit here waiting for the INF response\r\n\t // of the server\r\n\t //\r\n\t // ...to be continued...\r\n\t //\r\n\t} catch (Exception ex) {\r\n\t Logging.prlnerr(\"error sending packet to \" + master.toString());\r\n\t Logging.exerr(ex);\r\n\t master = null;\r\n\t master_handler = null;\r\n\t if (new_listener) {\r\n\t\ttry {\r\n\t\t listener.shutdown();\r\n\t\t} catch (PacketReceiverException pex) {\r\n\t\t Logging.exerr(pex);\r\n\t\t}\r\n\t }\r\n\t //\r\n\t // of course I should do something here...\r\n\t // ...work in progress...\r\n\t //\r\n\t}\r\n\t//\r\n\t// sends all the top-level subscriptions to the new master\r\n\t//\r\n\tfor(Iterator i = subscriptions.rootsIterator(); i.hasNext();) {\r\n\t Subscription s = (Subscription)i.next();\r\n\t try {\r\n\t\tspkt.init();\r\n\t\tspkt.method = SENP.SUB;\r\n\t\tspkt.ttl = SENP.DefaultTtl;\r\n\t\tspkt.id = my_identity;\r\n\t\tspkt.handler = listener.uri();\r\n\t\tspkt.filter = s.filter;\r\n\t\tmaster.send(spkt.buf, spkt.encode());\r\n\t } catch (Exception ex) {\r\n\t\tLogging.prlnerr(\"error sending packet to \" + master.toString());\r\n\t\tLogging.exerr(ex);\r\n\t\t//\r\n\t\t// of course I should do something here...\r\n\t\t// ...work in progress...\r\n\t\t//\r\n\t }\r\n\t}\r\n }", "title": "" }, { "docid": "2a362efd52fe9e66528e6cf47d35c5f0", "score": "0.46781543", "text": "@BeforeAll\n public void startServer() {\n mockServer = startClientAndServer(8080);\n }", "title": "" }, { "docid": "5e7816202b3ff2b0c54d8b62381e2560", "score": "0.46738032", "text": "@Override\n public void onEnable() {\n setupPluginFolder();\n playerData.loadPlayerIDMapCache();\n\n while (!hasPort && portNumber < 9010) {\n try {\n webServer = HttpServer.create(new InetSocketAddress(portNumber), 0);\n hasPort = true;\n } catch (IOException err) {\n this.logger.log(Level.WARNING, err.toString());\n portNumber++;\n\n }\n }\n if (!hasPort) {\n throw new RuntimeException(String.format(\"Failed to bind to port %s for communications!\", portNumber - 1));\n }\n\n ConfigCommand configCommand = new ConfigCommand();\n this.getCommand(\"dpas\").setExecutor(configCommand);\n this.getCommand(\"dpas\").setTabCompleter(configCommand);\n\n webServer.createContext(\"/\", rootHandler);\n webServer.createContext(\"/request\", endpointHandler);\n webServer.createContext(\"/debug\", debugHandler);\n webServer.createContext(\"/config\", configHandler);\n webServer.setExecutor(null);\n webServer.start();\n }", "title": "" }, { "docid": "69d387381355feaaef388158a040be7f", "score": "0.46718928", "text": "public MasterSlaveCoordinator (int port)\n {\n // Initialize\n _debug = false;\n _isMaster = false;\n _isSlave = false;\n _port = port;\n _slaves = new Vector();\n _randNumGen = new Random();\n _listeners = new Vector();\n\n if (_debug) {\n System.out.println (\"MasterSlaveCoordinator: starting up on port \" + _port);\n }\n\n // Start an election\n Thread t = new Thread (this);\n t.start();\n }", "title": "" }, { "docid": "ca8fd25d0f61bd589c50fc8053d0c3da", "score": "0.466874", "text": "public boolean initService(int numberOfNodes) throws IOException;", "title": "" }, { "docid": "a3bd9fe4c84b7f35d28eeb534ac6ec45", "score": "0.46662468", "text": "public void startServer(int port) {\n if (port < 1024 && port > 65535) {\n String error = \"Port range is 1024 to 65535\";\n Log.e(TAG, \"startServer => error = \" + error);\n sendDataToUI(error);\n } else {\n this.clientPort = port;\n if (context != null) {\n context.getSharedPreferences(preferencesName, MODE_PRIVATE).edit().putInt(clientPortString, port).apply();\n }\n new ServerAsyncTask().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n }\n }", "title": "" }, { "docid": "c176260b9aea198c84af99bcb4dea258", "score": "0.46658984", "text": "public static void main(String[] args) throws IOException {\n ServerController manager = new ServerController(4444);\n ServerController client = new ServerController(5555);\n manager.start();\n client.start();\n }", "title": "" }, { "docid": "045b9d5126ca0ddbddb9f4a55d598161", "score": "0.46653536", "text": "public void start() {\n\t\tserver.start();\n\t}", "title": "" }, { "docid": "cb4f95a69e3b390280576c0a0b1e9fc8", "score": "0.46564832", "text": "void connectEngineServerList(Pointer executor, String addresses);", "title": "" }, { "docid": "ca28ab9e4738f3ab7c550bbda9a81f80", "score": "0.46550867", "text": "public void start_server(int port)\r\n {\r\n try (ServerSocket serverSocket = new ServerSocket(port))\r\n {\r\n System.out.println(\"Server is listening on port \" + port);\r\n new HeartBeat().start();\r\n while (true)\r\n {\r\n //Accept connection from Client\r\n Socket socket = serverSocket.accept();\r\n System.out.println(\"New client connected\");\r\n System.out.println(socket.getInetAddress());\r\n \r\n // Creating a new thread for each Client connected\r\n new ServerThread(socket).start();\r\n }\r\n }\r\n catch (IOException ex)\r\n {\r\n System.out.println(\"Server exception: \" + ex.getMessage());\r\n ex.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "0cccbf0fa5e44c7c5d05c4039a96e1f4", "score": "0.46311554", "text": "private void port() {\n if (setting(\"mtwilson.port.http\").isEmpty() || setting(\"mtwilson.port.https\").isEmpty()) {\n if (target.getPackages().size() == 1) {\n // TODO: if attestatino service is the only software on this\n // host, then we could just set the port to be 443 so it's easier\n // on the URLs...\n setting(\"mtwilson.port.http\", \"8080\");\n setting(\"mtwilson.port.https\", \"8443\");\n } else {\n // TODO: may also need to reset other tomcat ports (shutdown port, etc.)\n // NOTE: mtwilson port is not configurable right now so we assume it's running on tomcat wtih default ports\n setting(\"mtwilson.port.http\", \"8080\"); // TODO: change to 18080 when mtwilson is configurable\n setting(\"mtwilson.port.https\", \"8443\"); // TODO: change to 18443 when mtwilson is configurable\n }\n }\n \n }", "title": "" }, { "docid": "aeb6d3d77c12b2485b4fca055241a7d3", "score": "0.46257007", "text": "public void startServer()\n {\n //Executor is a thread pool executor. Executor is filled with a instance of Scheduled thread pool\n //The maximum threads it can use is defined in the properties.\n\n int threads = Integer.parseInt(Application.getProperties().getProperty(\"Threads.max\"));\n executor = Executors.newScheduledThreadPool(threads);\n\n //Schedule client matching every 5 seconds with a 10 second delay.\n executor.scheduleAtFixedRate(clientManager,10,5, TimeUnit.SECONDS);\n\n //Create new thread pool. This thread pool is only used for game broadcasts.\n scheduledMessageExecutor = Executors.newScheduledThreadPool(Integer.parseInt(Application.getProperties().getProperty(\"Threads.max\")));\n\n //Schedule broadcast every 16 milliseconds with no delay.\n scheduledMessageExecutor.scheduleAtFixedRate(new GameManager(),0,32, TimeUnit.MILLISECONDS);\n\n try {\n //Try connecting UDP socket to port defined in the properties\n udpsocket = new DatagramSocket(Integer.parseInt(Application.getProperties().getProperty(\"UDP.port\")));\n\n //Try reading from UDP socket. This runs on a seperate thread.\n //TODO use the Threadpool\n reader = new UDPListener(udpsocket);\n reader.start();\n } catch (SocketException e) {\n SoutLogger.log(e.getMessage());\n }\n\n try {\n //Try connecting TCP socket to port defined in the properties\n tcpsocket = new ServerSocket(Integer.parseInt(Application.getProperties().getProperty(\"TCP.port\")));\n\n //Connection handler uses the socket to accept incoming socket connections. See tcpconectionhandler class for more information\n TCPConnectionHandler tcpConnectionHandler = new TCPConnectionHandler(tcpsocket);\n tcpConnectionHandler.start();\n } catch (IOException e) {\n SoutLogger.log(e.getMessage());\n }\n\n //future proofing for stop restart start server.\n running = true;\n }", "title": "" }, { "docid": "55147bad2935b515427cadba0390fb82", "score": "0.46196532", "text": "@Before\n public void beforeTest() throws Exception {\n // start a server\n server1 = new DummyServer(\"localhost\", 6999, SERVER1_NAME, true);\n server2 = new DummyServer(\"localhost\", 7999, SERVER2_NAME, true);\n server3 = new DummyServer(\"localhost\", 8999, SERVER3_NAME, true);\n server4 = new DummyServer(\"localhost\", 9999, SERVER4_NAME, true);\n server1.start();\n server2.start();\n server3.start();\n server4.start();\n serverStarted = true;\n logger.info(\"Started servers ...\");\n\n server1.register(APP_NAME, MODULE_NAME, DISTINCT_NAME, EchoBean.class.getSimpleName(), new EchoBean(SERVER1_NAME));\n server3.register(APP_NAME, MODULE_NAME, DISTINCT_NAME, EchoBean.class.getSimpleName(), new EchoBean(SERVER3_NAME));\n server4.register(APP_NAME, MODULE_NAME, DISTINCT_NAME, EchoBean.class.getSimpleName(), new EchoBean(SERVER4_NAME));\n\n server2.register(OTHER_APP, MODULE_NAME, DISTINCT_NAME, EchoBean.class.getSimpleName(), new EchoBean(SERVER2_NAME));\n server3.register(OTHER_APP, MODULE_NAME, DISTINCT_NAME, EchoBean.class.getSimpleName(), new EchoBean(SERVER3_NAME));\n server4.register(OTHER_APP, MODULE_NAME, DISTINCT_NAME, EchoBean.class.getSimpleName(), new EchoBean(SERVER4_NAME));\n }", "title": "" }, { "docid": "6aa110c11044c1eb4b20314dd538a5f9", "score": "0.46194363", "text": "public static void setServerSocket(int portNum) {\n\t\ttry {\n\t\t\tMinesweeperGroupMulticast.udpSocket = new DatagramSocket(portNum);\n\t\t} catch (SocketException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.printf(\"Server is running at port: %d\\n\", portNum);\n\t}", "title": "" }, { "docid": "bf0f431dfd43c6d7e17791dda6762e81", "score": "0.46123642", "text": "public void startMultiPointServer(int port) {\n\t\t// 0 for backlog means use system default value.\n\t\tstartSinglePointServer(port, 0);\n\t}", "title": "" }, { "docid": "0f3906ea6c205249d6cfdd1db8a5fd91", "score": "0.46095353", "text": "public Master() {\n this.sim_status = \"starting simulation\";\n this.isRunning = true;\n this.iterations = 15;\n this.current_iteration = 0;\n }", "title": "" }, { "docid": "18dafef01052368f4973e42918558c56", "score": "0.46055686", "text": "public static void createAndStart(int numberOfShips) {\n for (int i = 0; i < numberOfShips; i++) {\n Ship.createShip().start();\n }\n }", "title": "" }, { "docid": "147f316314cb39e40cd97ec6f5e811c4", "score": "0.46046788", "text": "private List<Runnable> createRunnables(int num, final ConsistentHashKeyMapper mapper, String serviceName, final CountDownLatch latch) throws URISyntaxException\n {\n final URI serviceURI = new URI(\"d2://\" + serviceName);\n\n List<Runnable> runnables = new ArrayList<Runnable>();\n for (int i = 0; i < num; i++)\n {\n // since i < numPartitions, the keys will be distributed to different partitions\n final List<String> keys = generateKeys(i);\n Runnable runnable = new Runnable()\n {\n @Override\n public void run()\n {\n // wait until all jobs submitted\n latch.countDown();\n try\n {\n latch.await();\n mapper.mapKeysV3(serviceURI, keys, 1);\n }\n catch (InterruptedException e)\n {\n e.printStackTrace();\n }\n catch (ServiceUnavailableException e)\n {\n e.printStackTrace();\n }\n }\n };\n runnables.add(runnable);\n }\n\n return runnables;\n }", "title": "" }, { "docid": "8e9547fa2164bfc1c618e1497b52890f", "score": "0.4599534", "text": "public String getMasterAddresses(boolean mastersQueryable, boolean getSecondary) {\n List<NodeDetails> masters = getMasters();\n if (mastersQueryable && !verifyMastersAreQueryable(masters)) {\n return \"\";\n }\n return getHostPortsString(masters, ServerType.MASTER, PortType.RPC, getSecondary);\n }", "title": "" }, { "docid": "f57d9ea9b61d5d78a718048cab847cf6", "score": "0.45974585", "text": "@Override\n public void run() {\n\n int q_len = 6;\n //Distinct port used for client connections\n int port = 5050;\n Socket sock;\n\n try {\n //Wait for connections and spawn adminWorkers\n ServerSocket servSock = new ServerSocket(port, q_len);\n while(adminControlSwitch) {\n sock = servSock.accept();\n new AdminWorker(sock).start();\n }\n } catch(IOException ioe) {\n System.out.println(ioe);\n }\n }", "title": "" }, { "docid": "62392c4332a2d75992e4088da79e05e2", "score": "0.45960444", "text": "@Override\r\n\tpublic void start(int port, String id) throws Exception {\n\t\tServerBootstrap sb = new ServerBootstrap();\r\n\t NioEventLoopGroup group = new NioEventLoopGroup();\r\n\t sb.group(group)\r\n\t\t .channel(NioServerSocketChannel.class)\r\n\t\t .childHandler(new ChannelInitializer<SocketChannel>() {\r\n\t\t @Override\r\n\t\t public void initChannel(SocketChannel ch)throws Exception {\r\n\t\t //System.out.println(\"initChannel ch:\" + ch);\r\n\t\t ch.pipeline()\r\n\t\t .addLast(\"decoder\", new HttpRequestDecoder()) \t\t\t\t// 1\r\n\t\t .addLast(\"encoder\", new HttpResponseEncoder()) \t\t\t\t// 2\r\n\t\t .addLast(\"aggregator\", new HttpObjectAggregator(512 * 1024)) // 3\r\n\t\t .addLast(\"handler\", new HttpHandler()); \t\t\t\t\t// 4\r\n\t\t }\r\n\t\t })\r\n\t\t .option(ChannelOption.SO_BACKLOG, 128) // determining the number of connections queued\r\n\t\t .childOption(ChannelOption.SO_KEEPALIVE, Boolean.TRUE);\r\n\t sb.bind(port).sync();\r\n\t}", "title": "" }, { "docid": "73e4d4426d864dac7ce64e2d16f33ef1", "score": "0.45947054", "text": "void start(List<List<AllocatedExecutor>> executorGroups,\n List<AllocatedTable> tables);", "title": "" }, { "docid": "fcb3873e5c53d997e1ee44afd8a04133", "score": "0.45931885", "text": "public void startServer(int port) throws RemoteException {\n Registry registry = LocateRegistry.createRegistry(port);\n UnicastRemoteObject.exportObject(this,0);\n try {\n registry.rebind(\"ServerRMI\", this);\n\n } catch (RemoteException e) {\n UnixColoredPrinter.Logger.print(\"error on the binding of the registry\");\n }\n }", "title": "" }, { "docid": "487613f06879ca2cd3c3d3b4d7f4a4eb", "score": "0.45916778", "text": "public void start() {\n List<String> addresses = new LinkedList<>();\n addresses.addAll(engines.keySet());\n start(addresses);\n }", "title": "" }, { "docid": "ab8cc1cfd244bcfd9705fae71d4424d1", "score": "0.45800546", "text": "public static void main(String[] args) throws IOException {\r\n\r\n System.out.println(\"Listening for connection requests on port \" + COORDINATION_PORT);\r\n ServerSocket listenSocket = new ServerSocket(COORDINATION_PORT);\r\n Thread tmpClient = null;\r\n\r\n while(true) {\r\n if(DEBUG_FLAG) System.out.println(\"Waiting for request...\");\r\n Socket clientSocket = listenSocket.accept();\r\n InputStream inStream = clientSocket.getInputStream(); // reading data in\r\n DataOutputStream outStream = new DataOutputStream(clientSocket.getOutputStream()); // writting data out\r\n Scanner in = new Scanner(inStream);\r\n boolean done = false;\r\n while(!done) {\r\n if(in.hasNextLine()) {\r\n String port = in.nextLine().trim();\r\n\r\n if(port.equals(\"test\")) { \r\n if(DEBUG_FLAG) System.out.println(\"test message received\");\r\n continue; // just a connection test, ignore\r\n }\r\n\r\n if(DEBUG_FLAG) System.out.println(\"Port requested: \" + port);\r\n\r\n // check for dead threads and update thread list\r\n for(int i = 0; i < openServers.size(); i++) {\r\n Thread tmp = openServers.get(i);\r\n if(!tmp.isAlive()) {\r\n openServers.remove(tmp);\r\n openPorts.remove(i);\r\n if(DEBUG_FLAG) System.out.println(\"Found and removed dead thread.\");\r\n }\r\n }\r\n\r\n // check for port availability\r\n if(openPorts.contains(Integer.parseInt(port)) || openPorts.size() == MAX_NUMBER_CONNECTIONS) {\r\n // can't allow connection so respond with 'denied'\r\n if(DEBUG_FLAG) System.out.println(\"Port connection denied!\");\r\n String output = \"d\\n\";\r\n outStream.write(output.getBytes());\r\n } else {\r\n // connection accepted\r\n String output = \"a\\n\";\r\n openPorts.add(Integer.parseInt(port));\r\n // create server for that port on thread\r\n openServers.add(new Thread(new ServerWorker(Integer.parseInt(port))));\r\n openServers.get(openServers.size() - 1).start();\r\n // tell client it's ok to connect\r\n outStream.write(output.getBytes());\r\n }\r\n done = true;\r\n }\r\n }\r\n }\r\n }", "title": "" } ]
024929b22b54041adca93618d0089e89
Set exception for available call.
[ { "docid": "b1697a31ecbadff18dc2847eb49ed747", "score": "0.63510674", "text": "public Builder setAvailableException(final boolean check, final String exceptionMessage) {\n if (check) {\n _availableException = new IOException(exceptionMessage);\n }\n return this;\n }", "title": "" } ]
[ { "docid": "fd9b345209700abb09d0dc67623df8f2", "score": "0.68029827", "text": "public Builder setAvailableException(final boolean check, final IOException exception) {\n if (check) {\n _availableException = exception;\n }\n return this;\n }", "title": "" }, { "docid": "c6c4fa68449b05ed94f7313b8b22c4ce", "score": "0.665451", "text": "public Builder setAvailableException(final IOException exception) {\n _availableException = exception;\n return this;\n }", "title": "" }, { "docid": "ea6c9028b8af0d33c317baee516b7c57", "score": "0.65733325", "text": "public void setException(SootClass exception);", "title": "" }, { "docid": "53f0f91bd677e0dd2097650165109b16", "score": "0.64468366", "text": "public void setException(Exception exception) {\n this.exception = exception;\n }", "title": "" }, { "docid": "a33167932e6533c012d9393bea219e69", "score": "0.6400773", "text": "public void setException(Exception exception) {\n this.exception = exception;\n }", "title": "" }, { "docid": "4e13f8a55687d4f261468db4228774c1", "score": "0.63222945", "text": "protected void setException( Exception exception ) {\n super.setException( exception );\n\n // Make sure DSIException is null because this is the more recent one.\n this.dsiException = null;\n\n // Clear cached exception value:\n cachedSendingException = null;\n }", "title": "" }, { "docid": "a43196a4a88035f50c38efc76c5b6b88", "score": "0.6316156", "text": "final void setNext(CallException next)\n throws IllegalStateException, IllegalArgumentException {\n\n // Check preconditions\n if (_next != null) {\n throw new IllegalStateException(\n \"Next linked CallException already set.\");\n }\n MandatoryArgumentChecker.check(\"next\", next);\n\n // Store the reference\n _next = next;\n }", "title": "" }, { "docid": "f8fbc0f91eae50ef66d17dbc5d18cc9d", "score": "0.61981344", "text": "public synchronized void setLinkedException(Exception ex) {\n linkedException = ex;\n }", "title": "" }, { "docid": "c484c03414d04af26b1a1dec4ff1049f", "score": "0.61867994", "text": "MyException(String exception) {\n setMyException(exception);\n }", "title": "" }, { "docid": "fb2636db6aad3870a4e2d0370a9acc98", "score": "0.6112008", "text": "public static void CPU_Exception( /*Bitu*/int which, /*Bitu*/int error) {\n cpu.exception.error = error;\n int flags = CPU_INT_EXCEPTION;\n if (which == 0x8 || which >= 0xA && which <= 0xE) {\n flags |= CPU_INT_HAS_ERROR;\n }\n CPU_Interrupt(which, flags, CPU_Regs.reg_eip);\n }", "title": "" }, { "docid": "1f9146b9331c8610cc49f5f669371c60", "score": "0.6062906", "text": "public Builder setAvailableException(final String exceptionMessage) {\n _availableException = new IOException(exceptionMessage);\n return this;\n }", "title": "" }, { "docid": "6f6ca68d7b9fd9735a4c9785d7425567", "score": "0.60381484", "text": "private void setMyException(String exception) {\n this.myException = \"Error: \" + exception;\n }", "title": "" }, { "docid": "1c904710d96670fa0b9b8d0676c07522", "score": "0.5856612", "text": "public void attachException(Exception ex) {\n exception = ex;\n }", "title": "" }, { "docid": "40b07b67902cc27f9ac55046961f45c6", "score": "0.5851159", "text": "protected void setDSIException( Any exception ) {\n this.dsiException = exception;\n\n // Clear cached exception value:\n cachedSendingException = null;\n }", "title": "" }, { "docid": "3910c800e050229eab5414917adcac81", "score": "0.58399075", "text": "public Builder setPossibleException(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n possibleException_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "7d7cf424c26a108ee7c25879ae8865ba", "score": "0.58308864", "text": "@Override\n\t\t\tpublic void requestNetExeption() {\n\n\t\t\t}", "title": "" }, { "docid": "3de69fb0e87a6185df154f85685901c1", "score": "0.58083034", "text": "public void setException(final Throwable _exception) {\r\n exception = _exception;\r\n resultIsSet = true;\r\n }", "title": "" }, { "docid": "7397306aadf6d13d50e3f9db5ac7c056", "score": "0.57238597", "text": "public empreinteInconnueExceptionHolder(controleAcces.coffreFortPackage.empreinteInconnueException initial)\r\n {\r\n value = initial;\r\n }", "title": "" }, { "docid": "3fe83bfd797207a1319cd4e325a51207", "score": "0.5670424", "text": "void onException();", "title": "" }, { "docid": "415ea30196f73d6336c62325af4ee154", "score": "0.5621551", "text": "void setThrowExceptionInRequest(Boolean value);", "title": "" }, { "docid": "bbf8d3e069b2e237055d0bbd4200aeb5", "score": "0.5608997", "text": "public void send_exception(ServerRequestInfo ri) {\n log.debug(\"send exception\");\n Stack stack = getLoaderStack();\n Thread.currentThread().setContextClassLoader((ClassLoader)stack.pop());\n }", "title": "" }, { "docid": "9407ea6e782404e0496b9858f68279e3", "score": "0.55946904", "text": "Event exception(Throwable t);", "title": "" }, { "docid": "add5255fa1d2bd42afdb3bc86897a322", "score": "0.5585999", "text": "void setThrowExceptionInTransport(Boolean value);", "title": "" }, { "docid": "1eaed9d90d3f3cc27ebc7a2c2fd04132", "score": "0.55755323", "text": "@Override\n\t\t\tpublic void onException(Exception arg0) {\n\n\t\t\t}", "title": "" }, { "docid": "11a4e393a36c692c4262e809c510c666", "score": "0.55542177", "text": "public void setExceptionCause(Throwable exception, Throwable cause);", "title": "" }, { "docid": "97209492a7189b030ad81c21171adf0f", "score": "0.5550777", "text": "@Override\r\n\tpublic void doException() {\n\r\n\t}", "title": "" }, { "docid": "97209492a7189b030ad81c21171adf0f", "score": "0.5550777", "text": "@Override\r\n\tpublic void doException() {\n\r\n\t}", "title": "" }, { "docid": "d7c7c1f306c5a75569a4247fe060f306", "score": "0.5530328", "text": "@Override\n protected void setError() {\n }", "title": "" }, { "docid": "0354b0b0a8d263b06b7d4a86eca568ae", "score": "0.55227256", "text": "public void setPolicyException(PolicyException param)\n\t\t{\n\n\t\t\tthis.localPolicyException = param;\n\n\t\t}", "title": "" }, { "docid": "7bfe435311d8cee8cc310627d7fcd68d", "score": "0.5517862", "text": "public abstract void mo7200a(Exception exc);", "title": "" }, { "docid": "87f59a72b58baca14bdb45b8fec28538", "score": "0.55123484", "text": "public void socketException(PacketChannel pc, Exception ex);", "title": "" }, { "docid": "79e8b06d272d1975d86d5b5cb6f37644", "score": "0.5505999", "text": "public void setUncaughtExceptionHandler(UncaughtExceptionHandler eh) {\r\n checkAccess();\r\n uncaughtExceptionHandler = eh;\r\n }", "title": "" }, { "docid": "d133f71d6e146b87d20474ec2955eeaa", "score": "0.5503379", "text": "void setEmailError();", "title": "" }, { "docid": "5fa35217efdd497045a51d88f7bda7b0", "score": "0.54991734", "text": "MyException(String exception, boolean check) {\n if (check)\n setMyExceptionWithCheck(exception);\n else\n setMyException(exception);\n }", "title": "" }, { "docid": "3f3cfeef07a9c0dab1e9bacdb6204559", "score": "0.54812664", "text": "public void setInternalException(Throwable exception) {\r\n internalException = exception;\r\n if (getCause() == null) {\r\n initCause(exception);\r\n }\r\n }", "title": "" }, { "docid": "ada6234ef6d50f6a31e11ceea33f548e", "score": "0.5477964", "text": "@Override\n public void onException(@NonNull EpoxyController controller,\n @NonNull RuntimeException exception) {\n }", "title": "" }, { "docid": "f568ba9f7e11dc59ec2e427eab879981", "score": "0.5465241", "text": "public void OnInCallSettingUpdated() {\n try {\n OnInCallSettingUpdatedImpl();\n } catch (Throwable th) {\n Thread.getDefaultUncaughtExceptionHandler().uncaughtException(Thread.currentThread(), th);\n }\n }", "title": "" }, { "docid": "0289e037ac428eef4b8cfa34885a7689", "score": "0.5462701", "text": "public void setEras(String[] newEras) {\n/* 228 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "title": "" }, { "docid": "c1937c38792321f6b459bdd57368211c", "score": "0.54567534", "text": "public void init() throws Exception {\n throw new RuntimeException(\"Should implement this function\");\n }", "title": "" }, { "docid": "51e21199a10422e1fff1415835acba04", "score": "0.544452", "text": "void mo4130a(Exception exc);", "title": "" }, { "docid": "b0a45963a69854d576fc7d46337a0c8b", "score": "0.54324967", "text": "@Override\n\t\t\tpublic void onException(Exception arg0) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "b0a45963a69854d576fc7d46337a0c8b", "score": "0.54324967", "text": "@Override\n\t\t\tpublic void onException(Exception arg0) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "31d4e4c15434d91796eb9addced6dbe4", "score": "0.54219276", "text": "public AddressProviderBuilder setDeferredException(ConfigurationException e)\n {\n m_eDeferred = e;\n return this;\n }", "title": "" }, { "docid": "469ac02382086805a1da94f5653871e5", "score": "0.5397942", "text": "@Override\n\tpublic void exception(IOException e, String requestUrl) {\n\n\t}", "title": "" }, { "docid": "43f87e076008e29c0bd322a6ab0872ae", "score": "0.53970313", "text": "private void registerExceptionsThrownByRestClientMethod() {\n findRestClientClass()\n // .peek(proxy -> log.debug(\"found rest client class {}\", proxy))\n .flatMap(type -> Stream.of(type.getDeclaredMethods()))\n // .peek(method -> log.debug(\"found rest client method {}\", method))\n .flatMap(this::exceptionTypes)\n // .peek(exceptionType -> log.debug(\"found rest client exception type {}\", exceptionType))\n .forEach(ProblemDetailExceptionRegistry::register);\n }", "title": "" }, { "docid": "015b77c0de6ff7ad244a2542d550bea1", "score": "0.5391395", "text": "public void processException() {\n\t\tState newState = State.ERROR_STATE;\n\t\tthis.setNewState(newState);\n\t}", "title": "" }, { "docid": "2950181008e85b8e8ca79eb1e0be5be6", "score": "0.53717095", "text": "void markFailedWith(Throwable cause);", "title": "" }, { "docid": "f67c6a814eb1270a4a63dea4f20f5721", "score": "0.53687733", "text": "@Override\n public boolean onException(Exception e, String model, Target<GlideDrawable> target, boolean isFirstResource) {\n return false;\n }", "title": "" }, { "docid": "f67c6a814eb1270a4a63dea4f20f5721", "score": "0.53687733", "text": "@Override\n public boolean onException(Exception e, String model, Target<GlideDrawable> target, boolean isFirstResource) {\n return false;\n }", "title": "" }, { "docid": "96a17de143c00ebce543c37cea1f68a4", "score": "0.53601706", "text": "MyException(){\n\t\t\n\t}", "title": "" }, { "docid": "144c2ac72c8ad5111e9a4dd409953232", "score": "0.5350905", "text": "@Override\n public void setSystemError(String err) {\n\n }", "title": "" }, { "docid": "27fa33ebb67a909a1b0a411ecb257a1d", "score": "0.53427005", "text": "void _throwError()", "title": "" }, { "docid": "656824d6aef7b9c7c86e1203237451e1", "score": "0.5332766", "text": "@Override\n public boolean onException(Exception e, String model, Target<GlideDrawable> target, boolean isFirstResource) {\n\n return false;\n }", "title": "" }, { "docid": "656824d6aef7b9c7c86e1203237451e1", "score": "0.5332766", "text": "@Override\n public boolean onException(Exception e, String model, Target<GlideDrawable> target, boolean isFirstResource) {\n\n return false;\n }", "title": "" }, { "docid": "7c426ce3441764ea7b344fc882c36c54", "score": "0.53310925", "text": "void failed(Exception ex);", "title": "" }, { "docid": "af041af3f6a75e70817d0703f039013d", "score": "0.5321379", "text": "public void catchExceptions() {\r\n setShouldCatchExceptions(true);\r\n }", "title": "" }, { "docid": "9dbe1990ef27bf126ba676e5ed64cd15", "score": "0.5318084", "text": "private void setMyExceptionWithCheck(String exception) {\n String finalException = \"Error: \";\n switch (exception) {\n case OPEN_BRACKET:\n finalException += \"Redundant opening parenthesis\";\n break;\n case CLOSE_BRACKET:\n finalException += \"Redundant closing parenthesis\";\n break;\n }\n\n setMyException(finalException);\n }", "title": "" }, { "docid": "218b18baf4e6f9beedd4e35667fd4cff", "score": "0.5291279", "text": "private void raiseException(AFTException curException,\n\t\t\tAFTException prevException) throws AFTException {\n\t\tif (curException != null || prevException != null) {\n\t\t\tthrow (prevException != null) ? prevException : curException;\n\t\t}\n\t}", "title": "" }, { "docid": "adb1ffa5fd6facc6b081f1f96337d0a2", "score": "0.52907556", "text": "public void setTestException(String exception) {\n this.exception = exception;\n }", "title": "" }, { "docid": "5c51f3480e21d57d13956c8119fe9294", "score": "0.5274488", "text": "Event atError();", "title": "" }, { "docid": "76e708db4e97545c1f4f6cb48a2d769d", "score": "0.52685463", "text": "void onException(@NonNull EpoxyController controller, @NonNull RuntimeException exception);", "title": "" }, { "docid": "2be9cc47166d25135179e96391909c7a", "score": "0.5266783", "text": "public void setCause(final Throwable exp) {\n this.initCause(exp);\n }", "title": "" }, { "docid": "faa6e40cc415e3d135984056a7067bc5", "score": "0.5257614", "text": "@Override\n\t\tpublic void exception(Cpu cpu, int opcode, int opcodePc, int newPc) {\n\n\t\t}", "title": "" }, { "docid": "79174c24fdb615d829dcb05cd4411ae4", "score": "0.52466756", "text": "private void setError(\n int index, WorldUps.UErr value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureErrorIsMutable();\n error_.set(index, value);\n }", "title": "" }, { "docid": "1212e3024c774229636e478c079cfe6e", "score": "0.52416945", "text": "@Override\n public void onException(Exception e) {\n }", "title": "" }, { "docid": "b5b06f72d9e73268205a73e2dcd7463d", "score": "0.52400833", "text": "public PropertySetException() {\n super();\n }", "title": "" }, { "docid": "950daf039bfd31b9aa370fdcb2b7c54c", "score": "0.5228637", "text": "@Test\n\t@Ignore\n\t@Override\n\tpublic void whenAnExceptionIsThrownDuringPreInitializingView_thenCatchAndRethrowAsBindingException() {\n\t}", "title": "" }, { "docid": "56c76b33da4c5ce273bdf27891e20509", "score": "0.52271956", "text": "@Override\n public void call(Throwable throwable) {\n }", "title": "" }, { "docid": "04745611cbe1dcecb1122676e1cb6e5a", "score": "0.52224636", "text": "public void customExceptionOccurred(Object source, Exception exception)\r\n\t\t\t\t\t{\n\t\t\t\t\t}", "title": "" }, { "docid": "c818d58e14a21bb096d98305378e39f1", "score": "0.5219943", "text": "public Builder setReadException(final boolean check, final IOException exception) {\n if (check) {\n _readException = exception;\n }\n return this;\n }", "title": "" }, { "docid": "694bfd0542fd2c72894456fb852dc9cd", "score": "0.5208768", "text": "public abstract void setGerError(java.lang.String gerError);", "title": "" }, { "docid": "cb96e80ecdd4b72eb594f7b5f67e05b9", "score": "0.52048844", "text": "public void setProblemProvider(IProblemProvider provider) throws Exception {\n }", "title": "" }, { "docid": "e5a67486c79ef680846e2a3544a4ca86", "score": "0.5204698", "text": "public void errorOccurred(Exception e, boolean severe);", "title": "" }, { "docid": "4566f439ba967aa2748b9d1cac2ed806", "score": "0.5204457", "text": "public void notifyExceptionResponse() {\n }", "title": "" }, { "docid": "e5703f95abcaaa1b3a6a0304fabe7129", "score": "0.5190954", "text": "public NhanceSystemException(String key){\n\t\tthis.addMessage(key, null);\n\t}", "title": "" }, { "docid": "9341250f5cff7efbe4e0380e6d4e3c77", "score": "0.51722246", "text": "public Exception getException();", "title": "" }, { "docid": "6f865a8f934675d8231456dfd4e1901f", "score": "0.5170353", "text": "private void captureCheckedException(GovernanceEngineOMASAPIResponse response,\n GovernanceEngineCheckedExceptionBase error,\n String exceptionClassName) {\n response.setRelatedHTTPCode(error.getReportedHTTPCode());\n response.setExceptionClassName(exceptionClassName);\n response.setExceptionErrorMessage(error.getErrorMessage());\n response.setExceptionSystemAction(error.getReportedSystemAction());\n response.setExceptionUserAction(error.getReportedUserAction());\n }", "title": "" }, { "docid": "62b6cf22a2af88c506057a41d0437495", "score": "0.51703125", "text": "public abstract Throwable exception();", "title": "" }, { "docid": "c8e5c82e041e97a9bcf1e7ec95c16bc4", "score": "0.51701134", "text": "public MultiExceptionsException() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "48bf1b94279846e5de12ba907d9b8a75", "score": "0.5151857", "text": "@Test\r\n\tpublic void test_SetReviewErrorThrown(){ \r\n\t\ttry {\r\n\t\t\treview.setRReview(str3); \r\n\t\t}catch(Exception e){\r\n\t\t\tif (e.getClass()==Exception.class){\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfail();\r\n\t}", "title": "" }, { "docid": "c13ad6c767f064d719873cf9613adca7", "score": "0.51509047", "text": "public final void mo74239a(Exception exc) {\n C7573i.m23587b(exc, \"e\");\n }", "title": "" }, { "docid": "dada4e4dd04c53f85ea05c4611bd6a89", "score": "0.51381606", "text": "private void throwEvent() {\n\t\tnew DataChangeEvent(this);\n\t}", "title": "" }, { "docid": "f249338de0bb4864d18d7adddb02141c", "score": "0.5136858", "text": "void setNetworkFaultCallback(Callable<?> callback);", "title": "" }, { "docid": "933733cc2f70b4744247975b3de571ed", "score": "0.51347166", "text": "public Any sending_exception () {\n checkAccess( MID_SENDING_EXCEPTION );\n\n if( cachedSendingException == null ) {\n Any result = null ;\n\n if( dsiException != null ) {\n result = dsiException;\n } else if( exception != null ) {\n result = exceptionToAny( exception );\n } else {\n // sending_exception should not be callable if both dsiException\n // and exception are null.\n throw wrapper.exceptionUnavailable() ;\n }\n\n cachedSendingException = result;\n }\n\n return cachedSendingException;\n }", "title": "" }, { "docid": "36bb2b9c81b6a9dc4d44ee9317248981", "score": "0.5127135", "text": "public SetupException()\r\n {\r\n super(\"Set up exception\");\r\n this.setCode(DEFAULT_ERROR_CODE);\r\n this.setCategory(DEFAULT_ERROR_CATEGORY);\r\n }", "title": "" }, { "docid": "637988be72eb2d85f9895622c16a23e9", "score": "0.5125532", "text": "public void setShouldThrowConformExceptions(int shouldThrowExceptions);", "title": "" }, { "docid": "8891708833ec5549a8a9af24b0458c62", "score": "0.51232177", "text": "@Override\n public void error(Throwable exception)\n {\n }", "title": "" }, { "docid": "f18ce3d2a33cf91a0013dfb0de4b7f29", "score": "0.51151055", "text": "private static void handleUnexpectedException(Throwable ex) {\n\t\t// Needs to avoid the chained constructor for JDK 1.4 compatibility.\n\t\tIllegalStateException isex = new IllegalStateException(\"Unexpected exception thrown\");\n\t\tisex.initCause(ex);\n\t\tthrow isex;\n\t}", "title": "" }, { "docid": "8767e08fc48a072647b539610daeb47e", "score": "0.5108611", "text": "@Override\n public void onRunError(Exception ex) {\n }", "title": "" }, { "docid": "6ca6f2d0d00344c52324935ba5b9c021", "score": "0.5104536", "text": "private void captureInvalidParameterException(GovernanceEngineOMASAPIResponse response,\n InvalidParameterException error) {\n captureCheckedException(response, error, error.getClass().getName());\n }", "title": "" }, { "docid": "0dfafbd1d0fde01738437aa8aa37dab2", "score": "0.5097527", "text": "protected final void setAttributeToException(boolean value) {\n\t\tthis.attributeToException = value;\n\t}", "title": "" }, { "docid": "9adb9644da1b56dd1ec305355159661f", "score": "0.50944614", "text": "public void onChannelException(String remoteAddress, Channel channel) {\n //\n }", "title": "" }, { "docid": "77f80e9a2cf50355148ba6dcd0b9c285", "score": "0.5086457", "text": "void setRegistered()\n throws ArgumentException\n {\n if (isRegistered)\n {\n throw new ArgumentException(ERR_ARG_ALREADY_REGISTERED.get(\n getIdentifierString()));\n }\n\n isRegistered = true;\n }", "title": "" }, { "docid": "c42e0e023175dfda91ab8449089bbaf4", "score": "0.50825036", "text": "public Builder setReadException(final IOException exception) {\n _readException = exception;\n return this;\n }", "title": "" }, { "docid": "2237374a9ebbd429a27c0769d0a64987", "score": "0.5079268", "text": "public void onRequestFail(Exception e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "title": "" }, { "docid": "8615ebf766d56a1d04851a6a7cd13489", "score": "0.5074786", "text": "private void inizia() throws Exception {\n }", "title": "" }, { "docid": "8615ebf766d56a1d04851a6a7cd13489", "score": "0.5074786", "text": "private void inizia() throws Exception {\n }", "title": "" }, { "docid": "8615ebf766d56a1d04851a6a7cd13489", "score": "0.5074786", "text": "private void inizia() throws Exception {\n }", "title": "" }, { "docid": "8615ebf766d56a1d04851a6a7cd13489", "score": "0.5074786", "text": "private void inizia() throws Exception {\n }", "title": "" }, { "docid": "6012ba57566d467ecaa182b9f9b794a0", "score": "0.5073729", "text": "public IllegalHandleException() {\n\t\t// do nothing\n\t}", "title": "" } ]
d27aea20bfc7893b9edeeff696075bb5
This method was generated by MyBatis Generator. This method corresponds to the database table lumchine_role
[ { "docid": "997e6e097040a5b7e86f96a593274fcd", "score": "0.0", "text": "long countByExample(LumchineRoleExample example);", "title": "" } ]
[ { "docid": "9dd8b7bac37d6a28f929808e5765a125", "score": "0.6756183", "text": "@Transactional\n\tpublic List<UserRole> ListUserRole() {\n\t\tList<UserRole> list =sessionFactory.getCurrentSession().createQuery(\"from userrole r\").list();\n\t\treturn null;\n\t}", "title": "" }, { "docid": "0ba33bde7cb7a1eb176c8c4f9381f901", "score": "0.6531562", "text": "public int getId_role()\r\n {\r\n return id_role;\r\n }", "title": "" }, { "docid": "f929aec855d1b1b4e0ae22267520fd34", "score": "0.65188235", "text": "UserRole selectByPrimaryKey(Integer uRoleId);", "title": "" }, { "docid": "792ee10c7091c1f8607ad48b258c6f59", "score": "0.64077586", "text": "@Query(\"from Role\")\n\tpublic List<Role> findAllRoles();", "title": "" }, { "docid": "56a3521b4c222086087c8e499c042288", "score": "0.638134", "text": "public long getRoleId();", "title": "" }, { "docid": "e1972c4c64f360db206a2707ff2c4f28", "score": "0.6340134", "text": "LumchineRole selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "83a31ad5c2bb77057eff4406ff026435", "score": "0.6303665", "text": "public void setRoleId(String in) {\n this.roleId = in;\n }", "title": "" }, { "docid": "a9b629a49c29cec85af67024984843d2", "score": "0.6266418", "text": "public void setRoleId(long roleId);", "title": "" }, { "docid": "feb6091735bff22f84ea3caea447d212", "score": "0.62570465", "text": "Role findBySQLforRL(Role detail);", "title": "" }, { "docid": "a8b4b819cac691142ecef24f4f0c8306", "score": "0.6250202", "text": "UserRole selectByPrimaryKey(Integer userRoleId);", "title": "" }, { "docid": "f109a42e85d47f7c9c1e31b99f9a3864", "score": "0.62286896", "text": "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<UserRole> listUserRole()\r\n\t{\r\n\t\tlog.debug(\"List User role instance\");\r\n\t\ttry\r\n\t\t{\r\n\t\t\tList<UserRole> urole=null;\r\n\t\t\turole = getSession().createQuery(\"from UserRole\").list();\r\n\t\t\treturn urole;\r\n\t\t}\r\n\t\tcatch(RuntimeException re) {\r\n\t\t\tlog.error(\"list all User role failed\", re);\r\n\t\t\tthrow re;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "5a912fa029285527a0a08864ed502e75", "score": "0.62192625", "text": "public String getRoleId() {\n return this.roleId;\n }", "title": "" }, { "docid": "5b1c1cbe01c7bde8f76e4dc3056042f8", "score": "0.6201589", "text": "TAgencyLevelRole selectByPrimaryKey(Long id);", "title": "" }, { "docid": "7f3938e05c990a2eb4f901aa9752ea9d", "score": "0.61620474", "text": "public List<UserRole> getAllRoles();", "title": "" }, { "docid": "1ffb4c305de7e05ae1ef203116334d48", "score": "0.6146907", "text": "Role getRole();", "title": "" }, { "docid": "46873fcbf466f4c5233de7e70d66aa0f", "score": "0.61370456", "text": "java.lang.String getRole();", "title": "" }, { "docid": "46873fcbf466f4c5233de7e70d66aa0f", "score": "0.61370456", "text": "java.lang.String getRole();", "title": "" }, { "docid": "1dfbd856176e40b6667e65dc27d597da", "score": "0.6122506", "text": "List<Role> findBySQLforRole(@Param(value=\"findBySQLforRole\") String findBySQL);", "title": "" }, { "docid": "fe1f0c3a0d402c807ececf129d9a209f", "score": "0.61005634", "text": "String getRole();", "title": "" }, { "docid": "fe1f0c3a0d402c807ececf129d9a209f", "score": "0.61005634", "text": "String getRole();", "title": "" }, { "docid": "3aa1c005691e315dce1c5abbe22d568b", "score": "0.6095818", "text": "public Long getRoleid() {\n return roleid;\n }", "title": "" }, { "docid": "0f4ec8990ac87c01be2d20badf195acf", "score": "0.60942984", "text": "List<Role> findByRoleid(long roleid);", "title": "" }, { "docid": "29a1a749ed120705efc5c2d0db691067", "score": "0.6092001", "text": "public interface RoleMapper {\n /**\n * 新增角色\n */\n void insertRole(Role role) throws Exception;\n /**\n * 删除角色\n */\n Integer deleteRoleById(Long id) throws Exception;\n /**\n * 禁用角色\n */\n Integer forbidOrEnableRoleById(@Param(\"id\") Long id, @Param(\"code\") Integer code) throws Exception;\n /**\n * 获取所有角色\n */\n List<Role> findAllRoles()throws Exception;\n /**\n * 更新角色\n */\n Integer updateRole(Role role)throws Exception;\n\n /**\n * 关联role和resource\n * @param roleId\n * @param resourceId\n * @return\n * @throws Exception\n */\n void relateRoleAndResource(@Param(\"roleId\") Long roleId,@Param(\"resourceId\")Long resourceId)throws Exception;\n\n /**\n * 取消关联role和resource\n * @param roleId\n * @param resourceId\n * @return\n * @throws Exception\n */\n void unrelateRoleAndResource(@Param(\"roleId\") Long roleId,@Param(\"resourceId\")Long resourceId)throws Exception;\n}", "title": "" }, { "docid": "4f19a8ba14bae1b25448198dd08f861d", "score": "0.6068039", "text": "public int getRoleId() {\r\n return roleId;\r\n }", "title": "" }, { "docid": "6c64bde67d370e5253ef9fecf4769421", "score": "0.6063826", "text": "public Integer getRoleId() {\r\n return roleId;\r\n }", "title": "" }, { "docid": "e8cf6a0c7d0b08331b86f17de6fbceee", "score": "0.6058447", "text": "public UserRole getRoleById(long id);", "title": "" }, { "docid": "b61aac34f8af940bcbc9b907f4951624", "score": "0.6046887", "text": "public Long getRoleId() {\n return roleId;\n }", "title": "" }, { "docid": "b61aac34f8af940bcbc9b907f4951624", "score": "0.6046887", "text": "public Long getRoleId() {\n return roleId;\n }", "title": "" }, { "docid": "b61aac34f8af940bcbc9b907f4951624", "score": "0.6046887", "text": "public Long getRoleId() {\n return roleId;\n }", "title": "" }, { "docid": "b61aac34f8af940bcbc9b907f4951624", "score": "0.6046887", "text": "public Long getRoleId() {\n return roleId;\n }", "title": "" }, { "docid": "b61aac34f8af940bcbc9b907f4951624", "score": "0.6046887", "text": "public Long getRoleId() {\n return roleId;\n }", "title": "" }, { "docid": "54babac39579c87622c81c6442f80b0a", "score": "0.60265815", "text": "public Integer getRoleId() {\n return roleId;\n }", "title": "" }, { "docid": "54babac39579c87622c81c6442f80b0a", "score": "0.60265815", "text": "public Integer getRoleId() {\n return roleId;\n }", "title": "" }, { "docid": "54babac39579c87622c81c6442f80b0a", "score": "0.60265815", "text": "public Integer getRoleId() {\n return roleId;\n }", "title": "" }, { "docid": "54babac39579c87622c81c6442f80b0a", "score": "0.60265815", "text": "public Integer getRoleId() {\n return roleId;\n }", "title": "" }, { "docid": "54babac39579c87622c81c6442f80b0a", "score": "0.60265815", "text": "public Integer getRoleId() {\n return roleId;\n }", "title": "" }, { "docid": "54babac39579c87622c81c6442f80b0a", "score": "0.60265815", "text": "public Integer getRoleId() {\n return roleId;\n }", "title": "" }, { "docid": "54babac39579c87622c81c6442f80b0a", "score": "0.60265815", "text": "public Integer getRoleId() {\n return roleId;\n }", "title": "" }, { "docid": "54babac39579c87622c81c6442f80b0a", "score": "0.60265815", "text": "public Integer getRoleId() {\n return roleId;\n }", "title": "" }, { "docid": "54babac39579c87622c81c6442f80b0a", "score": "0.60265815", "text": "public Integer getRoleId() {\n return roleId;\n }", "title": "" }, { "docid": "54babac39579c87622c81c6442f80b0a", "score": "0.60265815", "text": "public Integer getRoleId() {\n return roleId;\n }", "title": "" }, { "docid": "54babac39579c87622c81c6442f80b0a", "score": "0.60265815", "text": "public Integer getRoleId() {\n return roleId;\n }", "title": "" }, { "docid": "54babac39579c87622c81c6442f80b0a", "score": "0.60265815", "text": "public Integer getRoleId() {\n return roleId;\n }", "title": "" }, { "docid": "e01f359e5c1d84e37ffc0f72acc3c3a9", "score": "0.6016847", "text": "@Override\r\n\tpublic List<Role> getRole() {\n\t\treturn function_RoleMapper.getRole();\r\n\t}", "title": "" }, { "docid": "0fbe1dc94ace80e0390789ea6aa1f2da", "score": "0.6015623", "text": "Long getSorRoleId();", "title": "" }, { "docid": "78429d4a4b9f2d780c276cbe7f0ae919", "score": "0.6007426", "text": "public String getRoleId() {\r\n return roleId;\r\n }", "title": "" }, { "docid": "518ae5e8339d5f17fd9c2e71d404b2ce", "score": "0.59959567", "text": "public void setId_role(int id_role)\r\n {\r\n this.id_role = id_role;\r\n }", "title": "" }, { "docid": "f8b6bccc25deb90e04ec8a91f9340210", "score": "0.59944934", "text": "SysRole selectByPrimaryKey(Integer roleid);", "title": "" }, { "docid": "6caa1898f7c1cc2294f6cb0988ea362e", "score": "0.59932774", "text": "public static List<RolePersistence> getRole()\n\t{\n\t\tSqlSession session = SqlSessionManager.getSqlSessionFactory().openSession(true);\n\t\tRolePersistenceMapper mapper = session.getMapper(RolePersistenceMapper.class);\n\t\tList<RolePersistence> role = mapper.getAllRoleInfo();\n\t\tsession.close();\n\t\treturn role;\n\t}", "title": "" }, { "docid": "629cbc293f07982e68620ad70ff93fab", "score": "0.5991213", "text": "public int getRoleCode()\n {\n return roleCode;\n }", "title": "" }, { "docid": "91db6434464e185ae2e2f054d0081e2d", "score": "0.597881", "text": "List<EcsrRole> findAllEcsrRoles();", "title": "" }, { "docid": "e67d93aa986c1bffed1c5e73ac886884", "score": "0.59768933", "text": "@Override\r\n\tpublic Role queryrole(Role role) {\n\t\treturn function_RoleMapper.queryrole(role);\r\n\t}", "title": "" }, { "docid": "d71f50118a344fd23182a0d3bd1b7fbf", "score": "0.5976825", "text": "public String getRole(){\n return role;\n }", "title": "" }, { "docid": "b333c40859b0906a0f47ec5031dd779a", "score": "0.5964518", "text": "public UserRole getRoleByName(String name);", "title": "" }, { "docid": "aa7fa6f0bab6fc26f9d7bd0f590a7ab0", "score": "0.59550697", "text": "public String getRoleId() {\n return roleId;\n }", "title": "" }, { "docid": "aa7fa6f0bab6fc26f9d7bd0f590a7ab0", "score": "0.59550697", "text": "public String getRoleId() {\n return roleId;\n }", "title": "" }, { "docid": "53f961ba85c73ce2ce8a2ac73bfe0a03", "score": "0.5954366", "text": "public Integer getRoleid() {\n return roleid;\n }", "title": "" }, { "docid": "13f327ed89a33a15f3ff4562d1a1ff46", "score": "0.5953082", "text": "public Column getRoleColumn() {\n ColumnDescription columndesc = new ColumnDescription(\n ControllerColumn.ROLE\n .columnName(),\n \"getRoleColumn\",\n VersionNum.VERSION110);\n return (Column) super.getColumnHandler(columndesc);\n }", "title": "" }, { "docid": "714db3171497f4ab0d943e1c62ad1ec6", "score": "0.5946957", "text": "@Transient\r\n public Long getRoleId() {\r\n return roleId;\r\n }", "title": "" }, { "docid": "1dfe3a58a25380e683e88bd8b2b07f12", "score": "0.5946208", "text": "Role selectByPrimaryKey(String role);", "title": "" }, { "docid": "b17cda99e69182dfbaa8e9a836149b43", "score": "0.5929046", "text": "public String getRole() {\n return this.role;\n }", "title": "" }, { "docid": "38086f5c622112a0ed84a772fe8ba8fe", "score": "0.5916833", "text": "@Override\r\n\t@Transactional\r\n\tpublic List<Role> getRoleList() throws Exception {\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\tCriteria cr = session.createCriteria(Role.class);\r\n\t\tList<Role> results = cr.list();\r\n\t\treturn results;\r\n\t}", "title": "" }, { "docid": "f0b8ef055437b13ae64ebc1fea9ffb90", "score": "0.59021956", "text": "public List<UserRole> getRoleId(Long id) {\n\t\tList<UserRole> roles = null;\n\t try {\n\t \troles = em.createQuery(\"select ur from UserRole ur WHERE ur.userId = ?1\", UserRole.class)\n\t\t\t\t\t.setParameter(1, id)\n\t\t\t\t .getResultList(); \n\t\t \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 return roles;\n\t}", "title": "" }, { "docid": "c52c0808b8e8b4880a2a3d697843b5a0", "score": "0.5900895", "text": "public String getRole()\r\n {\r\n return role;\r\n }", "title": "" }, { "docid": "dbbb868d6a152f027916542d9f4570b0", "score": "0.5872397", "text": "int getRole() throws RemoteException;", "title": "" }, { "docid": "446fc46107b9b50113237eff48ec6059", "score": "0.587078", "text": "public long getRoleId() {\r\n\t\treturn roleId;\r\n\t}", "title": "" }, { "docid": "7966c35a5806828e82cd4b53ec8b36ae", "score": "0.58651114", "text": "public Long getRoleId() {\n\t\treturn roleId;\n\t}", "title": "" }, { "docid": "419c86ea28e4e07ac3237942bba0fc3d", "score": "0.58644664", "text": "public Role fetchRole(String roleName);", "title": "" }, { "docid": "9def9c6cb3d0ec9f25c81bf13755a55a", "score": "0.5863722", "text": "SysRole selectByPrimaryKey(String roleId);", "title": "" }, { "docid": "2fc5742673c9921b6fb94b840af8d10c", "score": "0.58629745", "text": "public Role getRole() {\n return role;\n }", "title": "" }, { "docid": "66f5a58f66a80f0e14c396baa0400821", "score": "0.58623034", "text": "public String getRolecode() {\r\n return rolecode;\r\n }", "title": "" }, { "docid": "88570f1d508b2830045bb71694b8c647", "score": "0.5859307", "text": "public String getRole() {\r\n return role;\r\n }", "title": "" }, { "docid": "f890712be01f74885406ad762fecd9ec", "score": "0.5849992", "text": "public void setRole(List<Roles> role) {\n this.role = role;\n }", "title": "" }, { "docid": "f6ab24d82a5d4f0ce8db9af3fbfb4cfa", "score": "0.5848687", "text": "public Roles fetchRoleById(Long id);", "title": "" }, { "docid": "5c5acec64e13dc00261016b29415fc75", "score": "0.58454406", "text": "List<LumchineRole> selectByExample(LumchineRoleExample example);", "title": "" }, { "docid": "1bac66f5ee27ea7ca7c86e0d81db5855", "score": "0.58417374", "text": "@Override\n\tpublic List<Role> getAllRole() {\n\t\treturn roleDao.getAllRole();\n\t}", "title": "" }, { "docid": "949b0a356a41ca3482bbcd07b87017b1", "score": "0.583856", "text": "public void setRole( Integer role ) {\n this.role = role;\n }", "title": "" }, { "docid": "dc40446cf0412fe192554d08d0ed7b05", "score": "0.58376753", "text": "public int getRoleid() {\n \t\treturn roleid;\n\t}", "title": "" }, { "docid": "4afec2317c07007d295d0e46541d3476", "score": "0.582568", "text": "List<Role> getRole(int dni);", "title": "" }, { "docid": "6e61bd613891fdc06206bb3f48b369e5", "score": "0.5823504", "text": "public String getRoleId() {\n return dataContainer.getRoleId();\n }", "title": "" }, { "docid": "eed8ca09a7a47f9312709d4ce5278bb4", "score": "0.58095926", "text": "SysMenuRole selectByPrimaryKey(Integer menuRoleId);", "title": "" }, { "docid": "27a138a15abe5aba9ec93c5b230aea99", "score": "0.58077234", "text": "public Role getRole() {\n return role;\n }", "title": "" }, { "docid": "cc226ddbcc3468246a0d395037bd4a5c", "score": "0.58037144", "text": "List<TUserRole> selectAll();", "title": "" }, { "docid": "c74e58080a5be18e4ea11f289d6ff1e6", "score": "0.58019334", "text": "PmRole selectByPrimaryKey(String id);", "title": "" }, { "docid": "9fce8c0d7cc32274178f3785664c1d1c", "score": "0.5801169", "text": "public String getRole() {\n return role;\n }", "title": "" }, { "docid": "9fce8c0d7cc32274178f3785664c1d1c", "score": "0.5801169", "text": "public String getRole() {\n return role;\n }", "title": "" }, { "docid": "166c8659c195f51dee8f295193b3e8ea", "score": "0.5801167", "text": "@Override\n\tpublic List<Role> getAllRoles() {\n\t\tList<Role> roles=adminDao.getAllRoles();\n\t\treturn roles;\n\t}", "title": "" }, { "docid": "540bca3f8497726632c678dd72c95e02", "score": "0.5792309", "text": "public Long getRolelevel() {\n return rolelevel;\n }", "title": "" }, { "docid": "aee950382d4c22ebc238aa72fcd861a8", "score": "0.57899356", "text": "Role findRole(int roleId);", "title": "" }, { "docid": "b0dc40c99694850df6a3cca24c937433", "score": "0.5786718", "text": "@Override\r\n\tpublic void updateRole(Role role) {\n\t\tfunction_RoleMapper.updateRole(role);\r\n\t}", "title": "" }, { "docid": "3486d79b5a77affa5cc4823b3bc7cc88", "score": "0.5784734", "text": "public Integer getRoleId() {\n\t\treturn roleId;\n\t}", "title": "" }, { "docid": "599252154dbf74a4850fb824aea8f24b", "score": "0.578386", "text": "public Roles getRole() {\n return role;\n }", "title": "" }, { "docid": "33ad9fbb2911d80ef6f008dcbd423ee4", "score": "0.5783614", "text": "public String requiredUserRole();", "title": "" }, { "docid": "41c64a968d51fde600a174bedf7d646d", "score": "0.57801694", "text": "public interface RoleDao {\r\n /**\r\n * 查询所有的角色\r\n *\r\n * @return\r\n */\r\n List<Role> selectRoles();\r\n\r\n /**\r\n * 查询最大的indexed字段\r\n *\r\n * @return\r\n */\r\n int selectMaxIndex();\r\n\r\n /**\r\n * 根据roleKey查询角色信息\r\n *\r\n * @param roleKey\r\n * @return\r\n */\r\n Role selectRoleByRoleKey(String roleKey);\r\n\r\n /**\r\n * 根据id查询角色信息\r\n *\r\n * @param id\r\n * @return\r\n */\r\n Role selectRoleById(String id);\r\n\r\n /**\r\n * 新增角色对象\r\n *\r\n * @param role\r\n * @return\r\n */\r\n int insertRole(Role role);\r\n\r\n /**\r\n * 根据roleId删除权限角色关联表\r\n *\r\n * @param roleId\r\n * @return\r\n */\r\n int deletePermissionsOfRole(String roleId);\r\n\r\n /**\r\n * 新增权限角色关联表数据\r\n *\r\n * @param role\r\n * @return\r\n */\r\n int insertPermissionsForRole(Role role);\r\n\r\n void insertInfoImage(ImageInfo imageInfo);\r\n}", "title": "" }, { "docid": "3624724b4ce7d7fe0ef3df9622913d80", "score": "0.5779894", "text": "List<UserRole> getUserRoles() throws MentorMeException;", "title": "" }, { "docid": "a177c3a9c833e142cc53f7cc1d429e43", "score": "0.57756025", "text": "public List<Roles> getRoles() {\r\n List<Roles> roleListe = null;\r\n Transaction tx = null;\r\n try {\r\n tx = sessionH.beginTransaction();\r\n Query q = this.sessionH.createQuery(\"from Roles ORDER BY roleId\");\r\n roleListe = q.list();\r\n tx.commit();\r\n } catch (HibernateException e) {\r\n if (tx != null) {\r\n tx.rollback();\r\n }\r\n e.printStackTrace();\r\n } finally {\r\n sessionH.close();\r\n }\r\n return roleListe;\r\n }", "title": "" }, { "docid": "1c0c594da87e88f52cf21493a13e9be4", "score": "0.57605034", "text": "public String getRole() {\r\n\t\treturn this.role;\r\n\t}", "title": "" }, { "docid": "382087e30117f224ef8be5de27719ef4", "score": "0.57582736", "text": "public UserRoleType getRoleName() {\n return roleName;\n }", "title": "" }, { "docid": "91e0f309ee959ef698812e643e9262fc", "score": "0.5753345", "text": "TeAccountRole selectByPrimaryKey(Long aoid);", "title": "" }, { "docid": "44d1e8960b85c7ba21ed2f85583256d4", "score": "0.5750241", "text": "List<SysRole> selectAll();", "title": "" }, { "docid": "44d1e8960b85c7ba21ed2f85583256d4", "score": "0.5750241", "text": "List<SysRole> selectAll();", "title": "" } ]
9539d13efd6d2b3d1e7cd8bcdd609462
Insert the method's description here. Creation date: (13.02.2002 10:21:31)
[ { "docid": "8d29960cd075b99eb02202b9bf4b4906", "score": "0.0", "text": "public void beforeUpdate(AbstractEntityAccessBean bean, javax.servlet.http.HttpServletRequest request) throws Exception {\n\tLeasePosSchetFaktAccessBean lpsfBean = (LeasePosSchetFaktAccessBean) bean;\n\tlpsfBean.setSumFreeTax(\n\t\tlpsfBean.getSumWithTax().subtract(lpsfBean.getSumNds()).setScale(2, BigDecimal.ROUND_HALF_UP));\n}", "title": "" } ]
[ { "docid": "5eb303064635f4909e997c3effe2511d", "score": "0.68930006", "text": "public void mo27792e() {\n }", "title": "" }, { "docid": "1e34493fdecb11f6bbc24ef12eea2281", "score": "0.68922716", "text": "public void mo27791d() {\n }", "title": "" }, { "docid": "381ca210fc42b87f9b8af474719578a0", "score": "0.68772626", "text": "public void mo41489c() {\n }", "title": "" }, { "docid": "0c69424878be03e50f19e2ca61ef640b", "score": "0.683481", "text": "@Override\r\n\tpublic void leggi() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8bf8511f65e0c2b04c8bd3242cfd3d0d", "score": "0.68341845", "text": "public void mo25201a() {\n }", "title": "" }, { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.681028", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "051f88f1f94e36fab8ec66de1946f037", "score": "0.68071216", "text": "public void mo27794g() {\n }", "title": "" }, { "docid": "b56810a1c55eb77e4fb5637cd2ed6edf", "score": "0.67888135", "text": "@Override\n\tpublic void Method() {\n\t\t\n\t}", "title": "" }, { "docid": "fdf6bcd763ea5f5b221fd5a7669d1afb", "score": "0.6766102", "text": "public void mo28805a() {\n }", "title": "" }, { "docid": "90fcb927e39fa8f78288d3712ec01730", "score": "0.67120516", "text": "public void mo3352e() {\n }", "title": "" }, { "docid": "8b6c961814c14fa02879570fd7e65ac5", "score": "0.6683184", "text": "@Override\r\n\tpublic void scarica() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0b319072f0ae7225e83791b70ea23079", "score": "0.6629627", "text": "@Override\r\n\tpublic void ghhvhg() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cf495ef9b2708251f1a707604305e445", "score": "0.66021377", "text": "public void mo10012e() {\n }", "title": "" }, { "docid": "203e120e0c17c7a390717d0ca9ff147a", "score": "0.65676105", "text": "public void mo11316JX() {\n }", "title": "" }, { "docid": "03143ee9b26aa8a7d43576d479e4400a", "score": "0.65636855", "text": "public final void mo55685Zy() {\n }", "title": "" }, { "docid": "5f0e23f62bd6d2b1e31222c9441c751d", "score": "0.6548889", "text": "public void method_1682() {\n }", "title": "" }, { "docid": "da5e9df869731b2ae1dfbbfdf12b8cd8", "score": "0.6545304", "text": "public void mo3351d() {\n }", "title": "" }, { "docid": "b623306824ebd023ab9bf4fc0a66aaf3", "score": "0.65393656", "text": "public void mo5928c() {\n }", "title": "" }, { "docid": "5b9aff24e7e4984e945578bd704e3a2d", "score": "0.6521121", "text": "public void mo28146a() {\n }", "title": "" }, { "docid": "001fb96f826080db086714a8bd3801a3", "score": "0.6510387", "text": "public void mo9429d() {\n }", "title": "" }, { "docid": "d8f3b297fd83b5ff2cf52e52d2bd2156", "score": "0.64711475", "text": "public void mo28733M() {\n }", "title": "" }, { "docid": "d480f72f82ed5650eb9310f1dc14f790", "score": "0.6464361", "text": "public void mo17722a() {\n }", "title": "" }, { "docid": "02124590ad2af00871285c92d46adf80", "score": "0.64632785", "text": "@Override\n\tpublic void method() {\t\n\t}", "title": "" }, { "docid": "222e7b9d44422cda9de5df0085949df1", "score": "0.64596224", "text": "public void mo27793f() {\n }", "title": "" }, { "docid": "248d8b56d4aa4cf60e6c5853cd714a73", "score": "0.64493144", "text": "public void method_1897() {\n }", "title": "" }, { "docid": "28ef0c0ea2fb4a49a620ac080b9dc85a", "score": "0.6437354", "text": "public void mo17728e() {\n }", "title": "" }, { "docid": "393237de9c40b0b47e9d2c845ed92ee5", "score": "0.6418147", "text": "public void mo45857a() {\n }", "title": "" }, { "docid": "2097402406ed48de16ed7ccfe28a85b4", "score": "0.64018416", "text": "public void mo5927b() {\n }", "title": "" }, { "docid": "8d4ae9af8ededa7ddfca4aca439ae8ff", "score": "0.63946813", "text": "public void mo9414a() {\n }", "title": "" }, { "docid": "dea7e5e15e0472ecf767959be112325f", "score": "0.6385611", "text": "public void mo25958a() {\n }", "title": "" }, { "docid": "57bcff9f0a732ddf830238c534e26b0f", "score": "0.6345539", "text": "public void mo2063a() {\n }", "title": "" }, { "docid": "e6d01eb992100a4242fde3c8b84a0a44", "score": "0.6338166", "text": "@Override\n\tpublic void codigo() {\n\t\t\n\t}", "title": "" }, { "docid": "89685a97be106c5e65406e42741d0ec3", "score": "0.63376856", "text": "public void mo1383a() {\n }", "title": "" }, { "docid": "f02c338eb46eb5cdf9d19504df309595", "score": "0.63274336", "text": "public void mo28814l() {\n }", "title": "" }, { "docid": "116656f10b2c7ff5230112f65d661bb8", "score": "0.6324892", "text": "public void mo9433g() {\n }", "title": "" }, { "docid": "a5ef62bece0f841aaa3116db1b93080d", "score": "0.63228005", "text": "public void mo8529a() {\n }", "title": "" }, { "docid": "5072ca3c978f251200712d539924263f", "score": "0.632121", "text": "public void mo9431e() {\n }", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6321143", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "76d062cb5a1d953629e78f0c8af2ad08", "score": "0.6308428", "text": "public void mo1577c() {\n }", "title": "" }, { "docid": "eb92b32dc3cd795c7c394190cf409bd5", "score": "0.63070226", "text": "public void mo41487a() {\n }", "title": "" }, { "docid": "20c98bfd723afd88308d888a2b9c105f", "score": "0.6302856", "text": "public void mo14477d() {\n }", "title": "" }, { "docid": "81e2e665536902ef3310e7a034f112ea", "score": "0.63027257", "text": "@Override\r\n\tpublic void apagar()\r\n\t{\n\r\n\t}", "title": "" }, { "docid": "2c68f3b402922996b8d8bd90d7fd3097", "score": "0.63006395", "text": "public void mo28734N() {\n }", "title": "" }, { "docid": "6fc1bc8405449cd5caa1d0d4cc253eff", "score": "0.6270058", "text": "public void mo27783b() {\n }", "title": "" }, { "docid": "fa12d2d57a7fccfc1c37a1cc8e442dcf", "score": "0.62685955", "text": "public void mo3353f() {\n }", "title": "" }, { "docid": "37fb6eea2eaae0833f3d814c6769ce96", "score": "0.6265775", "text": "public void mo17726b() {\n }", "title": "" }, { "docid": "dd66e8668788d27519d44caeb83b0c44", "score": "0.6264696", "text": "@Override\r\n\tpublic void operation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e0b006739acb364701ef6ed9651338a6", "score": "0.62587506", "text": "public void mo9439m() {\n }", "title": "" }, { "docid": "32fbfbe133f33f254fefeacf0eba248b", "score": "0.62316686", "text": "public void mo3350c() {\n }", "title": "" }, { "docid": "d16d8e3905deca79d620820a5875a635", "score": "0.62268835", "text": "public void mo1701a() {\n }", "title": "" }, { "docid": "f0b23a8df788663d6e67947bed8ac550", "score": "0.6213714", "text": "public void mo9426b() {\n }", "title": "" }, { "docid": "de5480604ae54822ca3e3427911bb2b8", "score": "0.6194815", "text": "@Override\r\n public void muestra() {\r\n \r\n }", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.61913383", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "e73ddffddad609b23fd409e53512ceb6", "score": "0.619094", "text": "public void mo13160a() {\n }", "title": "" }, { "docid": "8604f08f6f5688749bd395a21406fc6f", "score": "0.61772054", "text": "@Override\r\n\tpublic void xyz() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e8b6a10ed01f50fbe15d66c44e6b001f", "score": "0.6166757", "text": "public void mo28809c() {\n }", "title": "" }, { "docid": "71315d95fe9e922610d459b27566f4a8", "score": "0.6156009", "text": "public void mo60204g() {\n }", "title": "" }, { "docid": "9910fb19c9107cd38bd343e868c8deaa", "score": "0.6148292", "text": "public void m4869e() {\n }", "title": "" }, { "docid": "4cc23ec21a978357a8a06db5bbae181c", "score": "0.6140381", "text": "@Override\n\t\tpublic void beSporty() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "39970aed3dc3a7bed24f03fb23731e78", "score": "0.61298466", "text": "@Override\r\n\tpublic void laufen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "db4b95a4460fb609bcd3716b1a4b3e23", "score": "0.61295694", "text": "@Override\r\n\tpublic void compra() {\n\t\t\r\n\t}", "title": "" }, { "docid": "acbb02f47467f45f5ab2c3b2e5f7545d", "score": "0.61203074", "text": "public final void mo62452a() {\n }", "title": "" }, { "docid": "61b5f34bed8d0ebc39cd8ae396d6b61a", "score": "0.6114126", "text": "public abstract void mo114246n();", "title": "" }, { "docid": "4944b44c315dd79a1611e7afce1f8064", "score": "0.61113477", "text": "public void comsume(){\n }", "title": "" }, { "docid": "29fe342c361fca266f21502cee69c87c", "score": "0.61079663", "text": "public void mo24174m() {\n }", "title": "" }, { "docid": "521d5c4a58839eaaa89a4e169ff61323", "score": "0.61078686", "text": "Method() {\n\tsuper();\n\treturn;\n }", "title": "" }, { "docid": "24127c1aaba5ab942240f052757a1aae", "score": "0.6107839", "text": "@Override\n \tpublic void getStatus() {\n \t}", "title": "" }, { "docid": "b971f9e4e57b204443990c5756637316", "score": "0.609405", "text": "public void mo1385b() {\n }", "title": "" }, { "docid": "2bf7d908d282d111db5a3a573a27fd4a", "score": "0.608234", "text": "public void mo45861c() {\n }", "title": "" }, { "docid": "0449d2500abd0eb1624d7773d0cf88dd", "score": "0.6082081", "text": "@Override\n\tpublic void ponisti() {\n\n\t}", "title": "" }, { "docid": "c079871999fae2e8192332263a949f5b", "score": "0.60721177", "text": "public void mo3354g() {\n }", "title": "" }, { "docid": "baed26516e4668ed52a15fc3ef948b07", "score": "0.6065081", "text": "private void cogerFoco()\n {\n\n }", "title": "" }, { "docid": "46e4ba7db833ee0256d44745c85f0cca", "score": "0.6056522", "text": "public void mo9437k() {\n }", "title": "" }, { "docid": "4a325576b59d07e9544a2c1a4d02ff5c", "score": "0.60464483", "text": "public void mo8665a() {\n }", "title": "" }, { "docid": "4e88651060ca71e7b0affcbe488baeb9", "score": "0.6037224", "text": "public abstract void entzünden();", "title": "" }, { "docid": "06f66aa4b4a434e6d60036c1df6f6903", "score": "0.6031057", "text": "public abstract void mo114245m();", "title": "" }, { "docid": "60b47e4469570d683263465eb83d02d6", "score": "0.6027932", "text": "@Override\n\tpublic void sonucGoster() {\n\t\t\n\t}", "title": "" }, { "docid": "e1de97625320d08cb4eeb8365a6d930a", "score": "0.60278195", "text": "@Override\r\n public void Extraction(){\n }", "title": "" }, { "docid": "72fa8b5655f266987a420013076dfbe7", "score": "0.60264444", "text": "@Override \r\n\t \tpublic int method1() { \r\n\t \t\treturn 20; \r\n\t \t}", "title": "" }, { "docid": "036c569ae3d63ccf581271058236d3fc", "score": "0.60214806", "text": "@Override\n public void operation() {\n }", "title": "" }, { "docid": "6e55f14f515f55c796d15340efec8d1e", "score": "0.6016274", "text": "public void gasenjeSvjetala()\r\n\t{\r\n\t\t\r\n\t}", "title": "" }, { "docid": "5f122c528716d4e28cd3a6695d27b80f", "score": "0.6016213", "text": "@Override\n\tpublic void morir() {\n\n\t}", "title": "" }, { "docid": "41aabac9dcbb5573fbd69296a01f2662", "score": "0.6006958", "text": "public abstract void mo114242j();", "title": "" }, { "docid": "5da1ee2767e3aad77fece1d28d213fe8", "score": "0.60049856", "text": "public void mo9435i() {\n }", "title": "" }, { "docid": "85103d67698dd4b00df4656efea0fa0a", "score": "0.5994016", "text": "public abstract void mo114244l();", "title": "" }, { "docid": "aa1f0153cffcd6734386942f326d3b38", "score": "0.59786123", "text": "public final void mo52078y() {\n }", "title": "" }, { "docid": "bf4c0b25d73508267d02dbc546163517", "score": "0.59776086", "text": "@Override\r\n\tpublic void methodDiff() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9fe10a8f8c056afc50123cc1485a6fdc", "score": "0.5972698", "text": "@Override\n\tvoid comision() {\n\t\t\n\t}", "title": "" }, { "docid": "b6b7a6e21e24544012f5949237d28dec", "score": "0.59694326", "text": "void mo12505e();", "title": "" }, { "docid": "997e3a4ca0d87f37a6060325bf0e2f5a", "score": "0.5966645", "text": "public abstract void mo43895c();", "title": "" }, { "docid": "a1d358ef8dde60480477b5c8b2359c6d", "score": "0.5962341", "text": "@Override\n\tpublic void compra() {\n\t\t\n\t}", "title": "" }, { "docid": "e6068b0200c883e42ca4379e8b4390f4", "score": "0.59600496", "text": "@Override\n\tpublic void ihtiyacGidermek() {\n\t\t\n\t}", "title": "" }, { "docid": "88c794e3734c62e70ab73c5e965350ce", "score": "0.59598655", "text": "void methodOne() {\r\n\t\t\t\r\n\t}", "title": "" }, { "docid": "5a91ef0aa6990fc22e6e46d34355029e", "score": "0.5951929", "text": "@Override public void accionar() {\n\n }", "title": "" }, { "docid": "19432655c63da3a19ca9f84bf27874a2", "score": "0.5949154", "text": "public void mo1387d() {\n }", "title": "" }, { "docid": "ba888bf73e917ea24b75aeb25dbac927", "score": "0.5948504", "text": "public void mo9441o() {\n }", "title": "" }, { "docid": "a67a091dc00cfd57ed5e798e32ef966a", "score": "0.5947559", "text": "void mo12507g();", "title": "" }, { "docid": "70374b24c44623641ccc3360bf798dff", "score": "0.5941334", "text": "public final void mo28525a() {\n }", "title": "" }, { "docid": "1455e39f0e5e731291aa92bc9cb97c36", "score": "0.5940538", "text": "public void O0000Ooo() {\r\n }", "title": "" }, { "docid": "7c41c06aa3c7034d06fc92a8cf293ff9", "score": "0.5937317", "text": "void myMethod() {// method header\n\t\tSystem.out.println(\"THis is method I created\"); // method body\n\t}", "title": "" }, { "docid": "fb17202b74c1fe7a7d5bf119f222555b", "score": "0.5923707", "text": "public abstract void mo114243k();", "title": "" } ]
c615d7f8d04c07d1207b9e71de63bb2e
Sets the "downloadIncludedResources" attribute
[ { "docid": "289b08e70b6802429d2486d185414141", "score": "0.8389399", "text": "void setDownloadIncludedResources(boolean downloadIncludedResources);", "title": "" } ]
[ { "docid": "2169cf83b1c82b5f0137dfe3c2d5649b", "score": "0.7569255", "text": "void xsetDownloadIncludedResources(org.apache.xmlbeans.XmlBoolean downloadIncludedResources);", "title": "" }, { "docid": "ece98c51fd4f9bbff93c76d4f7f80c99", "score": "0.7317434", "text": "boolean getDownloadIncludedResources();", "title": "" }, { "docid": "19e129948c96a84d6177e5e85bf7178a", "score": "0.6980767", "text": "boolean isSetDownloadIncludedResources();", "title": "" }, { "docid": "5f9f1c22553dd05ee6992ed2d80a2127", "score": "0.6686523", "text": "void unsetDownloadIncludedResources();", "title": "" }, { "docid": "95c292f28883f1bc8e81f7325e2875ff", "score": "0.6508052", "text": "org.apache.xmlbeans.XmlBoolean xgetDownloadIncludedResources();", "title": "" }, { "docid": "e86d0a9cb591afcc4a3d12142803d51e", "score": "0.54664475", "text": "public void setAllowedResources(String allowedResources)\n/* */ {\n/* 140 */ this.allowedResources = allowedResources;\n/* */ }", "title": "" }, { "docid": "9ad69d9b600ed325b171885853a16d3e", "score": "0.53823966", "text": "public void setDownloadFiles(boolean downloadfiles) {\n this.downloadfiles = downloadfiles;\n }", "title": "" }, { "docid": "5a059531fc47d2ff19f2274156401a5e", "score": "0.5340335", "text": "protected void initResources()\n {\n getResourceSettings().setAddLastModifiedTimeToResourceReferenceUrl(true);\n getResourceSettings().setDisableGZipCompression(false);\n getResourceSettings().setDefaultCacheDuration(\n isDevelopmentMode() ? 0 : (int) Duration.days(365).seconds()\n );\n }", "title": "" }, { "docid": "d9db408adf7ea3a69a54414b9f045773", "score": "0.5099638", "text": "public void setShouldDownloadMultipleImages(boolean shouldDownloadMultipleImages) {\n\n }", "title": "" }, { "docid": "f9615a668d4580172c527a2fc361170f", "score": "0.4971405", "text": "public void setBorrowedResources(ArrayList<Resource> borrowedResources) {\r\n this.borrowedResources = borrowedResources;\r\n }", "title": "" }, { "docid": "c3ed1cefe29a0426d7045c47c96bfda2", "score": "0.49425635", "text": "public IResourceSetup copySetup();", "title": "" }, { "docid": "ac9cb46df122b85b1fd7d9c95ad6a19c", "score": "0.49156263", "text": "private void doInclude(HttpServletRequest request, HttpServletResponse response, String resourceUrl)\n/* */ throws ServletException, IOException\n/* */ {\n/* 273 */ if (this.contentType != null) {\n/* 274 */ response.setContentType(this.contentType);\n/* */ }\n/* 276 */ String[] resourceUrls = StringUtils.tokenizeToStringArray(resourceUrl, \",; \\t\\n\");\n/* 277 */ for (String url : resourceUrls) {\n/* 278 */ String path = StringUtils.cleanPath(url);\n/* */ \n/* 280 */ if ((this.allowedResources != null) && (!this.pathMatcher.match(this.allowedResources, path))) {\n/* 281 */ throw new ServletException(\"Resource [\" + path + \"] does not match allowed pattern [\" + this.allowedResources + \"]\");\n/* */ }\n/* */ \n/* 284 */ if (this.logger.isDebugEnabled()) {\n/* 285 */ this.logger.debug(\"Including resource [\" + path + \"]\");\n/* */ }\n/* 287 */ RequestDispatcher rd = request.getRequestDispatcher(path);\n/* 288 */ rd.include(request, response);\n/* */ }\n/* */ }", "title": "" }, { "docid": "f2c6fa0c8225a55b73db44700932f449", "score": "0.48059615", "text": "private void handleInclude() throws XMLStreamException, IOException {\n confInclude = null;\n int attrCount = reader.getAttributeCount();\n List<ParsedItem> items;\n for (int i = 0; i < attrCount; i++) {\n String attrName = reader.getAttributeLocalName(i);\n if (\"href\".equals(attrName)) {\n confInclude = reader.getAttributeValue(i);\n }\n }\n if (confInclude == null) {\n return;\n }\n if (isRestricted) {\n throw new RuntimeException(\"Error parsing resource \" + wrapper\n + \": XInclude is not supported for restricted resources\");\n }\n // Determine if the included resource is a classpath resource\n // otherwise fallback to a file resource\n // xi:include are treated as inline and retain current source\n URL include = getResource(confInclude);\n if (include != null) {\n Resource classpathResource = new Resource(include, name,\n wrapper.isParserRestricted());\n // This is only called recursively while the lock is already held\n // by this thread, but synchronizing avoids a findbugs warning.\n synchronized (Configuration.this) {\n XMLStreamReader2 includeReader =\n getStreamReader(classpathResource, quiet);\n if (includeReader == null) {\n throw new RuntimeException(classpathResource + \" not found\");\n }\n items = new Parser(includeReader, classpathResource, quiet).parse();\n }\n } else {\n URL url;\n try {\n url = new URL(confInclude);\n url.openConnection().connect();\n } catch (IOException ioe) {\n File href = new File(confInclude);\n if (!href.isAbsolute()) {\n // Included resources are relative to the current resource\n File baseFile;\n\n try {\n baseFile = new File(new URI(name));\n } catch (IllegalArgumentException | URISyntaxException e) {\n baseFile = new File(name);\n }\n\n baseFile = baseFile.getParentFile();\n href = new File(baseFile, href.getPath());\n }\n if (!href.exists()) {\n // Resource errors are non-fatal iff there is 1 xi:fallback\n fallbackAllowed = true;\n return;\n }\n url = href.toURI().toURL();\n }\n Resource uriResource = new Resource(url, name,\n wrapper.isParserRestricted());\n // This is only called recursively while the lock is already held\n // by this thread, but synchronizing avoids a findbugs warning.\n synchronized (Configuration.this) {\n XMLStreamReader2 includeReader =\n getStreamReader(uriResource, quiet);\n if (includeReader == null) {\n throw new RuntimeException(uriResource + \" not found\");\n }\n items = new Parser(includeReader, uriResource, quiet).parse();\n }\n }\n results.addAll(items);\n }", "title": "" }, { "docid": "af5c6f3cb9c6b691d28957b074536186", "score": "0.47861475", "text": "public JobReleaseTask withResourceFiles(List<ResourceFile> resourceFiles) {\n this.resourceFiles = resourceFiles;\n return this;\n }", "title": "" }, { "docid": "6cc83259fbb912358fee0cddeee281ca", "score": "0.4736963", "text": "protected void setdownloadComplete(boolean b) {\n\tdownloadComplete=b;\n\t}", "title": "" }, { "docid": "ff03d80da720b442d975ecc5ed223d86", "score": "0.47262985", "text": "public void setUseResource(java.lang.Boolean useResource) {\n this.useResource = useResource;\n }", "title": "" }, { "docid": "3df439e94af36b9d311cbfe541e2717f", "score": "0.47082376", "text": "public boolean getDownloadFiles() {\n return downloadfiles;\n }", "title": "" }, { "docid": "833206a7dc551316d2d1a5fa599e13d3", "score": "0.47053057", "text": "private void setNewResources(EditConfigurationVTwo conf) {\n\t\t//null makes default namespace be triggered\n \t//conf.addNewResource(\"page\", defaultDisplayNs);\n \t//conf.addNewResource(\"menuItem\", defaultDisplayNs);\n \tconf.addNewResource(\"page\", null);\n \tconf.addNewResource(\"menuItem\", null);\n\n\t}", "title": "" }, { "docid": "96efe727f23bc6c10be0ecebab27dcdb", "score": "0.46984345", "text": "public static void addResources(Resource r)\n\t{\n\t\tresources.add(r);\n\t}", "title": "" }, { "docid": "ae1b0bc9723f011fca0464e1430dc7b0", "score": "0.46895278", "text": "public void setResourceShare(int c);", "title": "" }, { "docid": "5edaed57fe8882c954b073da25ac75cb", "score": "0.46705818", "text": "void downloadDataFiles();", "title": "" }, { "docid": "63e8ccb25ebe8126becf1687669651a4", "score": "0.4658616", "text": "void setResourceArray(com.eviware.soapui.config.RestResourceConfig[] resourceArray);", "title": "" }, { "docid": "30579bad100b41df5da5de93a1040617", "score": "0.4652124", "text": "public void includeAll(boolean include)\n {\n this.incAll = include;\n }", "title": "" }, { "docid": "e32e13c07f023a7a515f1e816cad1b34", "score": "0.46506384", "text": "private void setNextAssetsForDownload() {\n ImageAssetData nextAssetData = nextAssetForDownloadMap.get(ImagesViewModel.this.currentAsset); //Getting the next asset data is derived from the previous asset data\n if(nextAssetData == null){\n nextAssetData = defaultAssetData;\n }\n sharedPreferences.edit().putString(resources.getString(R.string.key_current_asset), nextAssetData.name()).apply();\n }", "title": "" }, { "docid": "164bd87cfcb05bd1616b9794725ee8df", "score": "0.46372086", "text": "com.google.protobuf.ByteString getResourceBytes();", "title": "" }, { "docid": "96118a15427c96e27ecee99c0f5ee245", "score": "0.46326154", "text": "public void setResources(int resources) {\n _resources = resources;\n }", "title": "" }, { "docid": "1d5db2a31eafe89c16866ac6f049d322", "score": "0.4616306", "text": "public void installResource(ResourceFile resourceFile) {\n\t\tcheckWrite();\n System.arraycopy(resourceFiles, 0, resourceFiles = new ResourceFile[resourceFiles.length + 1], 0, resourceFiles.length - 1);\n resourceFiles[resourceFiles.length - 1] = resourceFile;\n Arrays.sort(resourceFiles, ResourceFile.comparer);\n if (resourceFile.name.equalsIgnoreCase(PROPERTIES_MANIFEST_RESOURCE_NAME)) {\n isPropertiesManifestResourceInstalled = true;\n // Add the properties defined in the manifest file\n loadProperties(resourceFile.data);\n }\n\t}", "title": "" }, { "docid": "6c73d67817625f57d5e5c096f27ae2a4", "score": "0.46136835", "text": "private void includeResource(PrintWriter out, String script, String dispatcherOptions, String resourceType, ScriptContext context, boolean dialog) {\n\n Bindings bindings = context.getBindings(ScriptContext.ENGINE_SCOPE);\n if (StringUtils.isEmpty(script)) {\n LOG.error(\"Script path cannot be empty\");\n } else {\n SlingHttpServletResponse customResponse = new PrintWriterResponseWrapper(out, (SlingHttpServletResponse) bindings.get(SlingBindings.RESPONSE));\n SlingHttpServletRequest request = (SlingHttpServletRequest) bindings.get(SlingBindings.REQUEST);\n\n script = normalizePath(request, script);\n ComponentContext componentContext = WCMUtils.getComponentContext(request);\n EditContext editContext = componentContext.getEditContext();\n\n Resource includeRes = request.getResourceResolver().resolve(script);\n if (includeRes instanceof NonExistingResource || includeRes.isResourceType(Resource.RESOURCE_TYPE_NON_EXISTING)) {\n includeRes = new SyntheticResource(request.getResourceResolver(), script, resourceType);\n }\n\n try {\n RequestDispatcherOptions opts = new RequestDispatcherOptions(dispatcherOptions);\n if (StringUtils.isNotEmpty(resourceType)) {\n opts.setForceResourceType(resourceType);\n }\n if (dialog) {\n opts.setAddSelectors(\"dialog\");\n }\n IncludeOptions options = IncludeOptions.getOptions(request, true);\n if (editContext == null) {\n // this is the editable.refresh() case where the root should not be\n // decorated but all others.\n // TODO better move this code up to the eval method\n options.forceEditContext(true);\n options.setDecorationTagName(\"\");\n opts.setReplaceSelectors(\"\");\n }\n\n RequestDispatcher dispatcher = request.getRequestDispatcher(includeRes, opts);\n dispatcher.include(request, customResponse);\n\n } catch (Exception e) {\n LOG.error(\"Failed to include resource {}\", script, e);\n }\n }\n }", "title": "" }, { "docid": "496901961d7cd528fe5ec166259f6c0e", "score": "0.46125877", "text": "void setResource(Resource resource) {\n _resource = resource;\n }", "title": "" }, { "docid": "74c8faa5dfd7d3f5d2700499230602e5", "score": "0.45988095", "text": "private static final native boolean internalSetResourceAttributes(byte[] fileName, ResourceAttributes attribute);", "title": "" }, { "docid": "4398c6ba96716af905de4748ce93f75a", "score": "0.45794776", "text": "public void addResources(int resources) {\n this._resources += resources;\n }", "title": "" }, { "docid": "aeec1cc90f29d5fe350bd7cb368f761d", "score": "0.45712215", "text": "public void setResourceCaches (List<ResourceCache> resourceCaches) {\n this.resourceCaches = resourceCaches;\n }", "title": "" }, { "docid": "7fed7c1136880b15fbc1fbd342f9ea24", "score": "0.45469955", "text": "@Override\n public void setResources(WdkModel model) throws WdkModelException {\n }", "title": "" }, { "docid": "808f8bf0293a8c47da6d56ce1e8f23c2", "score": "0.4543067", "text": "public void updateResources(ResourceBundle resources) {\n }", "title": "" }, { "docid": "0a14a85d63e37623c16998b67a74d50d", "score": "0.45294148", "text": "greco.PrebuiltClassArchive.PrebuiltClassArchiveResources getResources();", "title": "" }, { "docid": "99855c3a79faf92aac8a2b688d04e2b4", "score": "0.45268413", "text": "@Override\n public void setDownloadFileName(RequestWrapper request, ResponseWrapper response, String fileName) {\n \n }", "title": "" }, { "docid": "8f77b5dcd82f9982c8dfa837e78b9269", "score": "0.45204654", "text": "@Override\n\tpublic Set<String> getResourceIds() {\n\t\treturn resourceIds;\n\t}", "title": "" }, { "docid": "a34d18a42aa54602c7d823c53e83b503", "score": "0.45058098", "text": "public void addResource(Configuration conf) {\n addResourceObject(new Resource(conf.getProps(), conf.restrictSystemProps));\n }", "title": "" }, { "docid": "8d2ef0a6cfa33d9d4ae96e605e6b1759", "score": "0.45022777", "text": "protected void configureInstructions(Properties instructions, Map<String, Object> embeddedResources) throws RepositoryException, IOException, BundleException {\n getClasspathResolver(instructions, embeddedResources).resolve();\n }", "title": "" }, { "docid": "4fce1084e72b6a86f6924b8d8535664e", "score": "0.4496318", "text": "public IResourceDemandWriter[] getResources();", "title": "" }, { "docid": "baf01ce109f07d62385645cbc76af6c7", "score": "0.4485366", "text": "public void copyResources(String outputDirectory) {\n Properties copyResourcesProperties = new Properties();\n copyResourcesProperties.setProperty(\"outputDirectory\", outputDirectory + \"/resources\");\n runMaven(Collections.singletonList(\"resources:resources\"), copyResourcesProperties);\n }", "title": "" }, { "docid": "438743443ea5d02f89d0c4525025f5c2", "score": "0.44826618", "text": "@Override\r\n public void setResourceLoader(@Nonnull final NiftyResourceLoader resourceLoader) {\n }", "title": "" }, { "docid": "bb380e6e545dcdbd19af2f2de9bdc545", "score": "0.44808573", "text": "public void initialize() throws ResourceInitializationException {\n\n\t\tFile f = new File(PARAM_OUTPUTDIR);\n\t\tFileWriter fw;\n\t\ttry {\n\t\t\tfw = new FileWriter(f);\n\t\t\tfw.write(\"\");\n\t\tfw.close();\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}", "title": "" }, { "docid": "050abc81add08447956a34ea6e26ab6d", "score": "0.44755426", "text": "@Override\n\t\t\tpublic void setResourceAttributes(final ResourceAttributes attributes) throws CoreException {\n\n\t\t\t}", "title": "" }, { "docid": "5bcd83e118e6336f3782cdf4acd36959", "score": "0.4473589", "text": "public void setResourceYield() {\n int rand = getRandInt(0, 4);\n this.resourceYield = rand;\n }", "title": "" }, { "docid": "e407b4cb9e54958450ceb6ef0c36102d", "score": "0.44717434", "text": "greco.PrebuiltClassArchive.PrebuiltClassArchiveResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "c445eda40bb68f85bcb64c329f707d40", "score": "0.44564137", "text": "public void setRelativeResourceBase(String relativeResourceBase) {\n this.relativeResourceBase = relativeResourceBase;\n }", "title": "" }, { "docid": "d60d8800d2c810ee3fbd627de8efdab6", "score": "0.44515738", "text": "public IResourceProvisionWriter getResource();", "title": "" }, { "docid": "0377c398be0cc1f578c557070596e24d", "score": "0.44417122", "text": "public void setInclude(String include) {\n if (configured) {\n throw new IllegalStateException(\"Configuration is frozen\");\n }\n\n this.include = include;\n }", "title": "" }, { "docid": "2c5197d955e1cc51deeeff4dd39e815f", "score": "0.4434473", "text": "public void setIncludeDependencies( boolean includeDependencies )\n {\n this.includeDependencies = includeDependencies;\n }", "title": "" }, { "docid": "159638a69ba9554ae8396147ef382bd2", "score": "0.44294667", "text": "public void freeResources() {\n \tsuper.freeResources();\n//$Section=DefaultFreeResources$Preserve=yes\n//$Section=DefaultFreeResources$Preserve=no\n }", "title": "" }, { "docid": "82e3a844b78119c57a6c4be6394d0503", "score": "0.4421891", "text": "@Override\n\tpublic void setResourceLoader(ResourceLoader resourceLoader) {\n\t\tthis.resourceLoader = resourceLoader;\n\t}", "title": "" }, { "docid": "ee46576fe11a72aa15bf7741af54bbe7", "score": "0.44078156", "text": "public void setResource(Resource resource) {\r\n this.resource = resource;\r\n }", "title": "" }, { "docid": "2d95ab9a5386c34b3061585dead612e3", "score": "0.44032124", "text": "public Container withResources(ResourceRequirements resources) {\n this.resources = resources;\n return this;\n }", "title": "" }, { "docid": "1c79e7f75467e1ad130a89410e9edbaa", "score": "0.43969172", "text": "private static void extractResources() {\n try {\n File resPath = new File(\"res/\");\n if (!resPath.exists() || !resPath.isDirectory()) {\n System.out.println(extractFromJar(\"/res.zip\"));\n zipDecompress(\"res.zip\", \"res\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "593c3fce6770578133b11f7cbe8b70f1", "score": "0.43917787", "text": "public boolean ifLoadAllResources() {\n return true;\n }", "title": "" }, { "docid": "742276260d3016da04373e4d0a5e9401", "score": "0.43905863", "text": "private void launchDownload() {\n offlineRegion.setObserver(new OfflineRegion.OfflineRegionObserver() {\n @Override\n public void onStatusChanged(OfflineRegionStatus status) {\n // Compute a percentage\n double percentage = status.getRequiredResourceCount() >= 0\n ? (100.0 * status.getCompletedResourceCount() / status.getRequiredResourceCount()) :\n 0.0;\n\n if (status.isComplete()) {\n // Download complete\n endProgress(getString(R.string.end_progress_success));\n return;\n } else if (status.isRequiredResourceCountPrecise()) {\n // Switch to determinate state\n setPercentage((int) Math.round(percentage));\n }\n\n // Log what is being currently downloaded\n Log.d(TAG, String.format(\"%s/%s resources; %s bytes downloaded.\",\n String.valueOf(status.getCompletedResourceCount()),\n String.valueOf(status.getRequiredResourceCount()),\n String.valueOf(status.getCompletedResourceSize())));\n }\n\n @Override\n public void onError(OfflineRegionError error) {\n Log.e(TAG, \"onError reason: \" + error.getReason());\n Log.e(TAG, \"onError message: \" + error.getMessage());\n }\n\n @Override\n public void mapboxTileCountLimitExceeded(long limit) {\n Log.e(TAG, \"Mapbox tile count limit exceeded: \" + limit);\n }\n });\n\n // Change the region state\n offlineRegion.setDownloadState(OfflineRegion.STATE_ACTIVE);\n }", "title": "" }, { "docid": "96c7622fb31c8ff53e7a6a5bce5266c3", "score": "0.43822715", "text": "void setResourceSet(final ResourceSet resourceSet) {\n\t\tthis.resourceSet = resourceSet;\n\t}", "title": "" }, { "docid": "396613fb816b7e098595cc7a2f6c0632", "score": "0.4377973", "text": "protected void setDownloadURL(String downloadURL) {\n this.downloadURL = downloadURL;\n }", "title": "" }, { "docid": "8e4397b497d4f82824832ec6b479eeea", "score": "0.43775845", "text": "protected void setResourceBase(File base) throws UnavailableException {\n if (!base.isDirectory())\n throw new UnavailableException(\"Resource base does not exist: \" + base);\n _resourceBase = base;\n if (_log.shouldLog(Log.INFO))\n _log.info(\"Resource base is \" + _resourceBase);\n }", "title": "" }, { "docid": "b693aa4f05266acff4b1d6c8947f226c", "score": "0.43757144", "text": "public void addResourceFile(String platform, String src, String target) {\n Element parent = getPlatformElement(platform);\n\n Element editConfigElement = document.createElement(resourceFileNodeName);\n editConfigElement.setAttribute(\"src\", src);\n if (target != null) {\n editConfigElement.setAttribute(\"target\", target);\n }\n parent.appendChild(editConfigElement);\n }", "title": "" }, { "docid": "ce047c03166ce2da3c6824022b0d087c", "score": "0.43746084", "text": "public void setConfigResource(Resource configResource) {\n _configResource = configResource;\n }", "title": "" }, { "docid": "dcfad2bca5ad7d926f473bfa42b5f8d1", "score": "0.43714207", "text": "public String getResourceURL () {\n return requireValue(\"resource_url\");\n }", "title": "" }, { "docid": "d7ee6ecb199833198e6f60c27da0ae45", "score": "0.4367039", "text": "public void setDownload(String download) {\r\n this.download = download;\r\n }", "title": "" }, { "docid": "cf4d6da756f6ce3e7251fe961d5aac6d", "score": "0.436645", "text": "private void copyQunitResources() {\n\t\ttry {\n\t\t\tFileUtils.copyInputStreamToFile(this.getClass().getClassLoader().getResourceAsStream(qUnitCssFileName), new File(qUnitHtmlOutputPath + \"/\" + qUnitCssFileName));\n\t\t\tFileUtils.copyInputStreamToFile(this.getClass().getClassLoader().getResourceAsStream(qUnitJsFileName), new File(qUnitHtmlOutputPath + \"/\" + qUnitJsFileName));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "3b6ed77a0bccdbdffd5e370fe76e02fb", "score": "0.43655267", "text": "public boolean initResources() {\n return false;\n }", "title": "" }, { "docid": "fe4e98d6ea4ad01ee9ffb232793dc572", "score": "0.43621716", "text": "public Resources() {\n\t\treadFiles();\n\t}", "title": "" }, { "docid": "bf084d7d84f6d476c03be7558d2e3a16", "score": "0.43618724", "text": "public ResourcesDownloader() {\n final CommandRunner command = CommandRunner.instance;\n if (command != null) {\n locale = command.locale;\n colors = command.colors;\n } else {\n locale = Locale.getDefault();\n colors = false;\n }\n console = System.console();\n directory = DataDirectory.DATABASES.getDirectory();\n }", "title": "" }, { "docid": "44f2a73954f58e5d2b27f7fa6d9bf84a", "score": "0.435648", "text": "public void setIncludes( String includes )\n throws TaskException\n {\n defaultSetDefined = true;\n defaultSet.setIncludes( includes );\n }", "title": "" }, { "docid": "db72c554cdef7df827cece1bb2f9fd7c", "score": "0.4353728", "text": "@Override\n public synchronized void applyDeltaOnAvailableResource(\n org.apache.hadoop.yarn.api.records.Resource deltaResource) {\n Resources.addTo(this.availableResource, deltaResource);\n }", "title": "" }, { "docid": "ea15b63045f449f42f93e0746aba9d5d", "score": "0.43518305", "text": "@Override\r\n\tpublic void addResourceHandlers(ResourceHandlerRegistry registry) {\n\t\tregistry.addResourceHandler(\"/resources/**/\").addResourceLocations(\"/assets/\");\r\n\t}", "title": "" }, { "docid": "b07ca227c9c3501a2515307d177ff5b7", "score": "0.43502116", "text": "private static InstallationResources download() throws IOException {\n for (final InstallationResources c : ServiceLoader.load(InstallationResources.class,\n new URLClassLoader(new URL[] {new URL(DOWNLOAD_URL)})))\n {\n if (!c.getClass().isAnnotationPresent(Fallback.class) && c.getAuthorities().contains(EPSG)) {\n return c;\n }\n }\n throw new FileNotFoundException(); // Should not happen.\n }", "title": "" }, { "docid": "e809c39d50ed819f277a80e47645e1a7", "score": "0.43498486", "text": "void include(List<URI> uris, boolean transactional) throws DeploymentException;", "title": "" }, { "docid": "0d58eda571211f6130f5c6b7c517bd9c", "score": "0.43388098", "text": "protected final void doGet(HttpServletRequest request, HttpServletResponse response)\n/* */ throws ServletException, IOException\n/* */ {\n/* 200 */ String resourceUrl = determineResourceUrl(request);\n/* */ \n/* 202 */ if (resourceUrl != null) {\n/* */ try {\n/* 204 */ doInclude(request, response, resourceUrl);\n/* */ }\n/* */ catch (ServletException ex) {\n/* 207 */ if (this.logger.isWarnEnabled()) {\n/* 208 */ this.logger.warn(\"Failed to include content of resource [\" + resourceUrl + \"]\", ex);\n/* */ }\n/* */ \n/* 211 */ if (!includeDefaultUrl(request, response)) {\n/* 212 */ throw ex;\n/* */ }\n/* */ }\n/* */ catch (IOException ex) {\n/* 216 */ if (this.logger.isWarnEnabled()) {\n/* 217 */ this.logger.warn(\"Failed to include content of resource [\" + resourceUrl + \"]\", ex);\n/* */ }\n/* */ \n/* 220 */ if (!includeDefaultUrl(request, response)) {\n/* 221 */ throw ex;\n/* */ }\n/* */ \n/* */ }\n/* */ \n/* */ }\n/* 227 */ else if (!includeDefaultUrl(request, response)) {\n/* 228 */ throw new ServletException(\"No target resource URL found for request\");\n/* */ }\n/* */ }", "title": "" }, { "docid": "1482ab6f7be27571f26ca4820741f40e", "score": "0.4332612", "text": "private void initResources() {\n\t\tSAXBuilder saxBuilder = new SAXBuilder();\n\n\t\t// obtain file object\n\t\tInputStream is = this.getClass().getResourceAsStream(\n\t\t\t\t\"/icons/IconResources.xml\");\n\n\t\ttry {\n\t\t\t// converted file to document object\n\t\t\tDocument document = saxBuilder.build(is);\n\n\t\t\t// get root node from xml\n\t\t\tthis.resources = document.getRootElement().getChild(\"InformationView\");\n\t\t} catch (JDOMException | IOException e) {\n\t\t\tLogger.error(e);\n\t\t}\n\t}", "title": "" }, { "docid": "a74a8a41f871ecc76ad2eb0d72abe756", "score": "0.4330801", "text": "void setResourceArray(int i, com.eviware.soapui.config.RestResourceConfig resource);", "title": "" }, { "docid": "6fd2cb5e286c213d30095a996b7ce72c", "score": "0.43291613", "text": "@Override\r\n\tpublic Collection<Resource> getResources() {\r\n\t\treturn resources;\r\n\t}", "title": "" }, { "docid": "9e4cba60455a82819c75a0fb7ff58bbf", "score": "0.43217668", "text": "public void setDownloadFlag(boolean downloadFlag, String fileName) {\n\n Timber.d(\"SETTING FLAG FOR \" + fileName + \" TO \" + downloadFlag);\n\n if (fileName.contains(Constants.MAIN)) {\n setMainDownloadFlag(downloadFlag);\n } else if (fileName.contains(Constants.PATCH)) {\n setPatchDownloadFlag(downloadFlag);\n } else {\n Timber.e(\"CANNOT SET DOWNLOAD FLAG STATE FOR \" + fileName);\n }\n }", "title": "" }, { "docid": "13a773abb0d62cd1a65a30a15302ed3e", "score": "0.4320317", "text": "private static final native boolean internalSetResourceAttributesW(char[] fileName, ResourceAttributes attribute);", "title": "" }, { "docid": "7ff85a02bf9e9086f5e137934ec9cc65", "score": "0.4315858", "text": "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n String resource_id = request.getParameter(\"resource_id\");\n \n String get_protocol = request.getScheme(); // should be https\n String get_domain = request.getServerName();\n String base_URL = get_protocol + \"://\" + get_domain;\n\n XMLReader manifestdoc = new XMLReader(); \n manifestdoc.setRootPath(getServletContext().getRealPath(\"/\"));\n manifestdoc.setDoc(\"curric_manifest.xml\");\n ArrayList<String> class_ids = new ArrayList<String>();\n ArrayList<Tag> tag_groups = new ArrayList<Tag>();\n \n if (ValidationHelpers.isPositiveInteger(resource_id))\n {\n Resource this_res = new Resource(Integer.parseInt(resource_id));\n ArrayList<Tag> this_res_tags = this_res.getTags();\n \n ArrayList<Integer> to_remove = new ArrayList<Integer>();\n \n String base_path = \"/library/Curriculum Website/New Resource Previews\";\n String file_name = this_res.getRNumber() + \".xml\";\n\n String subject = \"\";\n \n/* ================================================\n * =========== GENERATE FILE CONTENTS =============\n * ================================================\n */\n StringBuilder entire_file_sb = new StringBuilder();\n \n entire_file_sb.append(\"<?xml version=\\\"1.0\\\" ?>\\n<resource>\\n<content>\\n\");\n\n \n // TITLE\n entire_file_sb.append(\"<title>\");\n entire_file_sb.append(this_res.getTitle());\n entire_file_sb.append(\"</title>\\n\");\n\n // AUTHORS\n entire_file_sb.append(\"<authors>\");\n int count = 0;\n for (Tag t : this_res_tags)\n { \n if (t.getType().equals(\"Author\"))\n {\n if (count > 0)\n {\n entire_file_sb.append(\", \");\n }\n entire_file_sb.append(t.getValue());\n count++;\n } \n }\n entire_file_sb.append(\"</authors>\\n\");\n \n // EDITORS\n entire_file_sb.append(\"<editors>\");\n count = 0;\n for (Tag t : this_res_tags)\n {\n if (t.getType().equals(\"Editor\"))\n {\n if (count > 0)\n {\n entire_file_sb.append(\", \");\n }\n entire_file_sb.append(t.getValue());\n count++;\n } \n }\n entire_file_sb.append(\"</editors>\\n\");\n\n \n // ANNOTATION AND NOTES\n entire_file_sb.append(\"<annotation><br/>\");\n String notes = \"\";\n for (ResourceText rt : ResourceTextLoader.loadByResourceID(this_res.getDBID()))\n {\n if (rt.getType().equals(\"Annotation\"))\n {\n entire_file_sb.append(rt.getText().replace(\"\\n\", \"<br/><br/>\"));\n }\n if (rt.getType().equals(\"Notes\"))\n {\n notes = rt.getText().replace(\"\\n\", \"<br/><br/>\"); // want to have notes after the annotation, so save it here and append it after the loop\n } \n }\n if (!notes.equals(\"\"))\n {\n entire_file_sb.append(\"<br/><br/>NOTE:<br/>\");\n entire_file_sb.append(notes);\n }\n entire_file_sb.append(\"<br/></annotation>\\n\");\n\n \n // GRADES\n entire_file_sb.append(\"<grades>\\n\");\n for (Tag t : this_res_tags)\n {\n if ((t.getType().equals(\"Grade\")) || (t.getType().equals(\"Level\")))\n {\n String this_level = t.getValue().replaceAll(\"[ABC]\", \"\");\n if (this_level.equals(\"20\"))\n { this_level = \"11\"; }\n if (this_level.equals(\"30\"))\n { this_level = \"12\"; }\n \n entire_file_sb.append(\"<grade>\");\n entire_file_sb.append(this_level);\n entire_file_sb.append(\"</grade>\\n\");\n }\n \n // get groups while we're here...\n if (t.getType().equals(\"Tag Group\"))\n { tag_groups.add(t); }\n }\n entire_file_sb.append(\"</grades>\\n\");\n \n // SUBJECTS AND CLASSIFICATION IDS\n for (Tag t : this_res_tags)\n {\n if (t.getType().equals(\"Subject\"))\n {\n subject = t.getValue(); // just keep it simple for now\n }\n }\n \n // SUGGESTED USES\n entire_file_sb.append(\"<suggested_use><br/>\");\n entire_file_sb.append(\"</suggested_use>\\n\");\n\n \n // PUBLISHER, PRODUCER, AND DISTRIBUTOR\n entire_file_sb.append(\"<publisher>\");\n count = 0;\n for (Tag t : this_res_tags)\n {\n if (t.getType().equals(\"Publisher\"))\n {\n if (count > 0)\n {\n entire_file_sb.append(\"<br/><br/>\");\n }\n entire_file_sb.append(t.getValue());\n entire_file_sb.append(\"<br/>\");\n if (t.getInfo() != null)\n {\n entire_file_sb.append(t.getInfo().replace(\"\\n\", \"<br/>\"));\n }\n count++;\n }\n }\n entire_file_sb.append(\"</publisher>\\n\");\n entire_file_sb.append(\"<producer>\");\n count = 0;\n for (Tag t : this_res_tags)\n {\n if (t.getType().equals(\"Producer\"))\n {\n if (count > 0)\n {\n entire_file_sb.append(\", \");\n }\n entire_file_sb.append(t.getValue());\n count++;\n } \n }\n entire_file_sb.append(\"</producer>\\n\");\n entire_file_sb.append(\"<distributor>\");\n count = 0;\n for (Tag t : this_res_tags)\n {\n if (t.getType().equals(\"Distributor\"))\n {\n if (count > 0)\n {\n entire_file_sb.append(\"<br/><br/>\");\n }\n entire_file_sb.append(t.getValue());\n entire_file_sb.append(\"<br/>\");\n if (t.getInfo() != null)\n {\n entire_file_sb.append(t.getInfo().replace(\"\\n\", \"<br/>\"));\n }\n count++;\n }\n }\n entire_file_sb.append(\"</distributor>\\n\");\n\n \n // PRICE\n entire_file_sb.append(\"<price>\");\n for (Tag t : this_res_tags)\n {\n if (t.getType().equals(\"Price\"))\n {\n entire_file_sb.append(t.getValue());\n }\n }\n entire_file_sb.append(\"</price>\\n\");\n\n // PAGINATION\n entire_file_sb.append(\"<pagination>\");\n for (Tag t : this_res_tags)\n {\n if (t.getType().equals(\"Number of Pages\"))\n {\n entire_file_sb.append(t.getValue());\n } \n }\n entire_file_sb.append(\"</pagination>\\n\");\n\n // ISBN\n entire_file_sb.append(\"<isbn>\");\n for (Tag t : this_res_tags)\n {\n if (t.getType().equals(\"ISBN\"))\n {\n entire_file_sb.append(t.getValue());\n } \n }\n entire_file_sb.append(\"</isbn>\\n\");\n\n // COPYRIGHT DATE\n entire_file_sb.append(\"<copyright>\");\n for (Tag t : this_res_tags)\n {\n if (t.getType().equals(\"Copyright Date\"))\n {\n entire_file_sb.append(t.getValue());\n } \n }\n entire_file_sb.append(\"</copyright>\\n\");\n\n // YEAR RECOMMENDED\n entire_file_sb.append(\"<year_recommended>\");\n int rec_year = 0;\n for (Recommendation rc : this_res.getRecommendations())\n {\n if (rc.getRecommended() == 1)\n {\n Calendar cal = Calendar.getInstance();\n cal.setTime(new Date(rc.getCreatedAt().getTime()));\n rec_year = cal.get(Calendar.YEAR);\n }\n }\n if (rec_year != 0)\n {\n entire_file_sb.append(rec_year);\n }\n entire_file_sb.append(\"</year_recommended>\\n\");\n\n \n ArrayList<Integer> child_ids = this_res.getChildIDs();\n if (!child_ids.isEmpty())\n {\n entire_file_sb.append(\"<related_resource_table>\\n\");\n entire_file_sb.append(\"<tbody>\\n\");\n entire_file_sb.append(\"<tr>\\n\");\n entire_file_sb.append(\"<td><p><b>Title</b></p></td>\\n\");\n entire_file_sb.append(\"<td><p><b>Link</b></p></td>\\n\");\n entire_file_sb.append(\"</tr>\\n\");\n }\n for (Integer c_id : this_res.getChildIDs())\n {\n Resource child = new Resource(c_id);\n \n entire_file_sb.append(\"<tr>\\n\");\n entire_file_sb.append(\"<td><p>\");\n entire_file_sb.append(child.getTitle());\n entire_file_sb.append(\"</p></td>\\n\");\n entire_file_sb.append(\"<td><p><a href=\\\"https://www.edonline.sk.ca/webapps/moe-curriculum-BBLEARN/index.jsp?view=resource_detail&amp;resource_file=/library/Curriculum%20Website/\");\n entire_file_sb.append(subject);\n entire_file_sb.append(\"/Resources/Additional/\");\n entire_file_sb.append(child.getRNumber());\n entire_file_sb.append(\".xml\\\">View</a></p></td>\\n\");\n entire_file_sb.append(\"</tr>\\n\");\n \n }\n if (!child_ids.isEmpty())\n {\n entire_file_sb.append(\"</tbody>\\n\");\n entire_file_sb.append(\"</related_resource_table>\\n\");\n }\n \n \n entire_file_sb.append(\"</content>\\n</resource>\");\n\n \n \n \n/* ================================================\n * =========== GET CLASSIFICATION IDS =============\n * ================================================\n */\n //String classificationID = manifestdoc.getNodeValue(\"subjects/subject[@name='\" + subj + \"']/levels/level[@id='\" + level + \"']/res_class_id\");\n for (Tag group : tag_groups)\n {\n ArrayList<String> all_subjects = new ArrayList<String>();\n ArrayList<String> all_levels = new ArrayList<String>();\n ArrayList<String> all_programs = new ArrayList<String>();\n for (Tag t : group.getChildren(this_res.getDBID()))\n {\n if (t.getType().equals(\"Subject\"))\n { all_subjects.add(t.getValue()); }\n if (t.getType().equals(\"Program\"))\n { all_programs.add(t.getValue()); }\n if ((t.getType().equals(\"Level\")) || (t.getType().equals(\"Grade\")))\n { all_levels.add(t.getValue()); }\n }\n \n if (all_programs.size() > 0)\n {\n int initial_size = all_subjects.size();\n for (int i=0; i<initial_size; i++)\n {\n //all_subjects.set(i, all_subjects.get(i) + program_modifier);\n }\n }\n }\n \n \n/* ====================================\n * =========== WRITE FILE =============\n * ====================================\n */\n \n CSContext cs_context = null;\n ByteArrayInputStream file_to_write_is = null;\n\n try {\n cs_context = CSContext.getContext();\n\n file_to_write_is = new ByteArrayInputStream(entire_file_sb.toString().getBytes());\n\n cs_context.isSuperUser(true);\n cs_context.createFile(base_path, file_name, file_to_write_is, true);\n\n System.out.println(\"Wrote file \" + file_name + \" to the folder \" + base_path);\n\n } catch (Exception e) {\n //StringWriter stringWriter = new StringWriter();\n //String stackTrace = \"\";\n //e.printStackTrace(new PrintWriter(stringWriter));\n //stackTrace = stringWriter.toString();\n //System.out.println(stackTrace);\n System.out.println(\"Error writing resource preview file \" + file_name + \" to \" + base_path + \": \" + e.getMessage());\n cs_context.rollback();\n } finally {\n if (cs_context != null) {\n try {\n\t\t\t\t\t\tcs_context.commit();\n\t\t\t\t\t} catch (XythosException 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 file_to_write_is.close();\n }\n }\n \n/* ==================================================\n * =========== GENERATE AND DISPLAY URL =============\n * ==================================================\n */\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n try {\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Preview Resource</title>\"); \n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<p><b>Here's the link: </b><p>\");\n out.println(\"<a target=\\\"_blank\\\" href=\\\"\");\n out.println(base_URL);\n out.println(\"/webapps/moe-curriculum-BBLEARN/index.jsp?view=resource_detail&resource_file=/library/Curriculum%20Website/New%20Resource%20Previews/\" + file_name + \"&dark_colour=d86558&light_colour=f7e0de\\\">Click here</a>\");\n \n if ((get_domain.contains(\"bbtest\")) || (get_domain.contains(\"bbdev\")))\n {\n out.println(\"<p>And here are all of the tags: </p>\");\n out.println(\"<ul>\");\n for (Tag t : this_res_tags)\n {\n out.println(\"<li>\");\n out.println(t.getType());\n out.println(\" - \");\n out.println(t.getValue());\n out.println(\"</li>\");\n }\n out.println(\"</ul>\"); \n }\n \n out.println(\"</body>\");\n out.println(\"</html>\");\n } finally { \n out.close();\n }\n \n \n }\n else\n {\n // TODO: handle the cases where value of resource_id is invalid\n System.out.println(\"Error: Resource ID is invalid\");\n }\n }", "title": "" }, { "docid": "d0a24213ad5bda0696f866f1fc814cd4", "score": "0.4315817", "text": "public void setForceDownload (boolean force) {\n forceDownload = force;\n }", "title": "" }, { "docid": "1c341ca75cfc6025cf892a79befae53c", "score": "0.4314474", "text": "public void setRequestResource(String requestResource) {\n this.requestResource = requestResource;\n }", "title": "" }, { "docid": "c18ba5ddc10b7ebfb92f996f0bfba219", "score": "0.43101332", "text": "@Override\n public void setDownloadFileName(String fileName, String fileNameEncoding) {\n \n }", "title": "" }, { "docid": "064bb040ec298c30a208c4d77da74ab0", "score": "0.42904532", "text": "public List<ResourceFile> resourceFiles() {\n return this.resourceFiles;\n }", "title": "" }, { "docid": "95cb7a18e1f3bfeddf471842994f8057", "score": "0.4290451", "text": "public void setResource(final Resource resource) {\r\n this.resource = resource;\r\n }", "title": "" }, { "docid": "3bdfccf5a2cbf53c776d68b215162a3c", "score": "0.42754373", "text": "@Override\n public void setResource(Resource resource) {\n super.setResource(resource);\n listId = resource.getFilename().split(\"\\\\.\")[0];\n }", "title": "" }, { "docid": "14e7d7547bb4ef2f3dfc04c3f492daf4", "score": "0.4263266", "text": "private void setDefaults() {\n resource = null;\n link = null;\n linkFileName = null;\n failonerror = true; // default behavior is to fail on an error\n overwrite = false; // default behavior is to not overwrite\n setAction(\"single\"); // default behavior is make a single link\n fileSets.clear();\n }", "title": "" }, { "docid": "e8f6f54cfa2e463e05861398b44aebce", "score": "0.42614275", "text": "public void setResource(String src) {\n this.resource = src;\n }", "title": "" }, { "docid": "d3b4884deeafcbababbf8637f6d855b2", "score": "0.42600933", "text": "private boolean copyResources() {\r\n Log.debug(\"Copying resources...\");\r\n String destination = arguments.option_out() + File.separatorChar + appName\r\n + File.separatorChar;\r\n \r\n for (String resource : arguments.option_resource()) {\r\n File resourceFile = new File(resource);\r\n if (!resourceFile.exists()) {\r\n Log.warn(\"Resource doesn't exist: \" + resourceFile.getAbsolutePath());\r\n continue;\r\n }\r\n if (resourceFile.isFile()) {\r\n if (!FileUtil\r\n .copyFile(resourceFile, new File(destination + resourceFile.getName()))) {\r\n Log.warn(\"Could not copy file: \" + resourceFile.getAbsolutePath());\r\n continue;\r\n }\r\n } else if (resourceFile.isDirectory()) {\r\n try {\r\n (new UtilCopy()).xCopy(destination, resourceFile.getAbsolutePath());\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n continue;\r\n }\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "d23b6f7ee9458f9e0242c5e1872a79cf", "score": "0.42563146", "text": "private void buildResourcesDocument(HttpServletRequest request,\n HttpServletResponse response,\n ResourceRegistry resourceRegistry) throws IOException,\n ServletException {\n List<ResourceRecord> records = resourceRegistry.getRecords();\n\n org.apache.wink.common.internal.model.admin.Resources resources =\n resourcesObjectFactory.createResources();\n\n for (ResourceRecord record : records) {\n\n // Add current resource\n resources.getResource().add(buildResource(record));\n\n // Add sub-resource locators & methods\n buildSubRrcMethodsAndLocatorsResources(resources, record);\n\n }\n\n // Write Document\n writeDocument(response, resources);\n return;\n\n }", "title": "" }, { "docid": "39b7cb2e959ead98ee034072aac33a0a", "score": "0.42490953", "text": "@ResourceAccess(ResourceAccess.AccessType.WRITE)\n public void merge(@Nonnull final ResourceType resourceType,\n @Nonnull final List<IBaseResource> resources) {\n final Encoder<IBaseResource> encoder = fhirEncoders.of(resourceType.toCode());\n final Dataset<Row> updates = spark.createDataset(resources, encoder).toDF();\n merge(resourceType, updates);\n }", "title": "" }, { "docid": "b54da378edec1deef841f5f6c61ef058", "score": "0.42463118", "text": "@ApiModelProperty(value = \"Compute Resources required by the sidecar container.\")\n public V1ResourceRequirements getResources() {\n return resources;\n }", "title": "" }, { "docid": "c5f77f6bbe35b8f178bdbdb329d0ec15", "score": "0.42442578", "text": "@Override\n\tpublic void setResourcePack(String arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "beae1f450dc63287a6ee5a680d8c3096", "score": "0.42406893", "text": "public Set<String> getNeededResources(){\n return needsMap.keySet();//the key set represents the resources needed\n }", "title": "" }, { "docid": "4572bce79df754f9210f516a850a29ce", "score": "0.42388782", "text": "public java.lang.Boolean getUseResource() {\n return useResource;\n }", "title": "" }, { "docid": "bc7089bb41c0dbc801c0105c30ce046b", "score": "0.4234329", "text": "void allowFileInclusion(boolean permit) {\n attendant.setFileInclusion(permit);\n }", "title": "" }, { "docid": "43664cb17f5706a5561b87aae75cd125", "score": "0.42303938", "text": "protected void setAdditionalAttributes(Set<FileAttribute> attributes)\n {\n _additionalAttributes = Sets.immutableEnumSet(attributes);\n }", "title": "" }, { "docid": "d4d000484106cf82a16cce271b6dc650", "score": "0.4228046", "text": "private FileSet[] getResourceDirectories() \n {\n ArrayList<FileSet> result = new ArrayList<FileSet>();\n @SuppressWarnings( \"unchecked\" )\n List<String> sourceRoots = this.mavenProject.getCompileSourceRoots();\n if ( sourceRoots != null ) \n {\n Iterator<String> sourceRootIter = sourceRoots.iterator();\n while ( sourceRootIter.hasNext() ) {\n FileSet srcFileSet = new FileSet();\n File sourceDir = new File( sourceRootIter.next() );\n srcFileSet.setDirectory( sourceDir.getAbsolutePath() );\n srcFileSet.addInclude( INCLUDE_ALL );\n result.add( srcFileSet );\n this.getLog().debug( \"Adding sourceRoot directory \"+srcFileSet.getDirectory() );\n }\n }\n @SuppressWarnings( \"unchecked\" )\n List<Resource> resourceList = this.mavenProject.getResources();\n if ( resourceList != null ) \n {\n Iterator<Resource> resourceIter = resourceList.iterator();\n while ( resourceIter.hasNext() ) \n {\n Resource resource = resourceIter.next();\n FileSet resourceFileSet = new FileSet();\n File resourceDir = new File( resource.getDirectory() );\n resourceFileSet.setDirectory( resourceDir.getAbsolutePath() );\n resourceFileSet.setExcludes( resource.getExcludes() );\n resourceFileSet.setIncludes( resource.getIncludes() );\n result.add( resourceFileSet );\n this.getLog().debug( \"Adding resource directory \"+resource.getDirectory() );\n }\n }\n this.getLog().debug( \"Number of filesets: \"+String.valueOf( result.size() ) );\n return result.toArray( new FileSet[result.size()] );\n }", "title": "" }, { "docid": "2768bd798a12cf58201dbe5f11e27bd7", "score": "0.422704", "text": "public List<SubResource> targetResources() {\n return this.innerProperties() == null ? null : this.innerProperties().targetResources();\n }", "title": "" }, { "docid": "22083eac4c14b1187157f9a6e45f6881", "score": "0.4224534", "text": "public void setResources(final int[] inResources,final Resources resources) {\n\t\tarrayList = new ArrayList<Bitmap>();\n\t\tThread th = new Thread(){\n\t\t\tpublic void run(){\n\t\t\t\tfor(int i=0; i<inResources.length; i++){\n\t\t\t\t\tBitmap bit = BitmapFactory.decodeResource(resources, inResources[i]);\n\t\t\t\t\tarrayList.add(bit);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tth.start();\n\t}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "eed18a6ff30d87f0edfa03899662d7e0", "score": "0.0", "text": "@Override\n\tpublic void onDebug(String d) {\n\t\t\n\t}", "title": "" } ]
[ { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.6836411", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.6679176", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "b8a45528a3f2e2c5ca531b00160fddfb", "score": "0.66538197", "text": "@Override\n\tpublic void nacer() {\n\n\t}", "title": "" }, { "docid": "b8a45528a3f2e2c5ca531b00160fddfb", "score": "0.66538197", "text": "@Override\n\tpublic void nacer() {\n\n\t}", "title": "" }, { "docid": "f777356e2cd2fecd871f35f7e556fda8", "score": "0.6646134", "text": "public void mo3640e() {\n }", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65323734", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.6481211", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "5314003d8592219f71035b81985fabc0", "score": "0.64631", "text": "@Override\n\tpublic void roule() {\n\t\t\n\t}", "title": "" }, { "docid": "d0a79718ff9c5863618b11860674ac5e", "score": "0.6461734", "text": "@Override\n\tpublic void comer() {\n\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "f9de8c9acb961a9d05ed00de5fe361e7", "score": "0.60638905", "text": "@Override\n\tpublic void seRetrage() {\n\t\t\n\t}", "title": "" }, { "docid": "483ae2cb94563f8e11864a532e44b464", "score": "0.606149", "text": "@Override\r\n public void perturb() {\n \r\n }", "title": "" }, { "docid": "e41230eaa4480036f1db3ae4856b5e2c", "score": "0.6048755", "text": "@Override\n\tpublic void evoluer() {\n\t\t\n\t}", "title": "" }, { "docid": "1fd4f5b0b471084e004373c89c1cf248", "score": "0.6040993", "text": "@Override\r\n\tpublic void sen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6023245", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "432a53d7cc7bff50c3cce7662418fe22", "score": "0.60228735", "text": "private static void daelijeom() {\n\t\t\n\t}", "title": "" }, { "docid": "feb1a9485d06df38283881186fb528a9", "score": "0.6014977", "text": "@Override\n \tprotected void initialize() {\n \n \t}", "title": "" }, { "docid": "1f6ca7603428a226b143ebf504f69fdb", "score": "0.6005143", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "609ec2ff060d9d4cb0276468f482734d", "score": "0.59771466", "text": "public void mo89673a() {\n }", "title": "" }, { "docid": "f3ea867fdaa4b61546bfc393614a093c", "score": "0.59687567", "text": "@Override\n\tpublic void setingInicial() {\n\t\t\n\t}", "title": "" }, { "docid": "3211287bc24304a8ca2975647e8a262e", "score": "0.59549016", "text": "public void mo1702b() {\n }", "title": "" }, { "docid": "e98e1f8ddb7a94a5d95c29c94232f737", "score": "0.5943817", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "2d61391fe8770661f25917f3770f2a26", "score": "0.5926535", "text": "@Override\n\t\tpublic void init(){\n\t\t\t\n\t\t}", "title": "" }, { "docid": "a55a150557f80abcbd733ee3162b0661", "score": "0.5925673", "text": "private void m18301a() {\n }", "title": "" }, { "docid": "6a8c6480f9fa5ab89d0437d00ffffccc", "score": "0.591947", "text": "@Override\n public void tirer() {\n\n }", "title": "" }, { "docid": "8f8a1c1dfa100614be8cac1247e068d5", "score": "0.59192646", "text": "@Override\r\n\t\t\tpublic void work() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "619a28ba3c7707bdf8bb1451d5c3d12b", "score": "0.5910928", "text": "public void mo25069a() {\n }", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5902906", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "3e6e2e657db69bfc88c40c8467801266", "score": "0.5899844", "text": "@Override\r\n\tpublic void ben() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1134c4caabd33b9bbd414763740fddde", "score": "0.5896682", "text": "@Override\n\tpublic void respirar() {\n\n\t}", "title": "" }, { "docid": "ab499170bffb402933a50d63a97e69dd", "score": "0.5896488", "text": "@Override\r\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "1dc1426b3b1c079ac18377166a6b34d3", "score": "0.5893354", "text": "@Override\n public int getOrder() {\n return 0;\n }", "title": "" }, { "docid": "f737e2251cf43d326f43b44297696e55", "score": "0.58891016", "text": "@Override\n\tpublic void patrol() {\n\n\t}", "title": "" }, { "docid": "de8c2aa495b8cdade7e8895e58745ea2", "score": "0.5887025", "text": "public void afficher() {\n\t\t\n\t}", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.5886342", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "13e4409784fd6f872b474e6effe9726e", "score": "0.5879506", "text": "@Override\n protected void initialization() {\n\n\n\n }", "title": "" }, { "docid": "bafce2e94d56e61baeadcb37047f6035", "score": "0.5858384", "text": "@Override\n\tprotected void postprocess() {\n\t}", "title": "" }, { "docid": "5aa237d31e744d1e0729621e464fcfb2", "score": "0.585451", "text": "@Override\r\n\tprotected void DataInit() {\n\r\n\t}", "title": "" }, { "docid": "5aa237d31e744d1e0729621e464fcfb2", "score": "0.585451", "text": "@Override\r\n\tprotected void DataInit() {\n\r\n\t}", "title": "" }, { "docid": "5aa237d31e744d1e0729621e464fcfb2", "score": "0.585451", "text": "@Override\r\n\tprotected void DataInit() {\n\r\n\t}", "title": "" }, { "docid": "9f52ad7c10a190c6268e275fdb4c1581", "score": "0.5853263", "text": "@Override\n\tpublic void jealous() {\n\t\t\n\t}", "title": "" }, { "docid": "9f52ad7c10a190c6268e275fdb4c1581", "score": "0.5853263", "text": "@Override\n\tpublic void jealous() {\n\t\t\n\t}", "title": "" }, { "docid": "cdf2a119ee69429ad4420d45c29db1b6", "score": "0.5849137", "text": "@Override\n\tpublic void netword() {\n\t\t\n\t}", "title": "" }, { "docid": "2bcac1bab4eaa6c9cc4cb7e33c684cef", "score": "0.5848443", "text": "public void mo1691a() {\n }", "title": "" }, { "docid": "5f122c528716d4e28cd3a6695d27b80f", "score": "0.584121", "text": "@Override\n\tpublic void morir() {\n\n\t}", "title": "" }, { "docid": "5f122c528716d4e28cd3a6695d27b80f", "score": "0.584121", "text": "@Override\n\tpublic void morir() {\n\n\t}", "title": "" }, { "docid": "339f0371e7ea38d751e17fe6de3b3608", "score": "0.58367133", "text": "@Override\n\tpublic void crecer() {\n\n\t}", "title": "" }, { "docid": "339f0371e7ea38d751e17fe6de3b3608", "score": "0.58367133", "text": "@Override\n\tpublic void crecer() {\n\n\t}", "title": "" }, { "docid": "6ed3e363c02164bd00163fa46e2c48c2", "score": "0.58366287", "text": "@Override\n public void init_moduule() {\n \n }", "title": "" }, { "docid": "3ea264268cd945e9281ac9d06e9bb7c5", "score": "0.5829954", "text": "@Override\n\tpublic void euphoria() {\n\t\t\n\t}", "title": "" }, { "docid": "3ea264268cd945e9281ac9d06e9bb7c5", "score": "0.5829954", "text": "@Override\n\tpublic void euphoria() {\n\t\t\n\t}", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5794177", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "b04ed49986fb3f4321a90ec19ab7f86d", "score": "0.57759553", "text": "@Override\n public void alistar() {\n }", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "849edaa5bbcc7511e16697ad05c01712", "score": "0.57732296", "text": "@Override\n\tpublic void avanzar() {\n\t\t\n\t}", "title": "" }, { "docid": "10e00e5505d97435b723aeadb7afb929", "score": "0.57712233", "text": "@Override\n\tpublic void pintar2() {\n\t\t\n\t}", "title": "" }, { "docid": "683eea6c39ec4e6df90f6be05200559d", "score": "0.5769485", "text": "@Override\r\n public void confer(){\n \r\n }", "title": "" }, { "docid": "728d084a23664ecf9b5c04acb6367b9c", "score": "0.5769356", "text": "@Override\r\n\tpublic void descarnsar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "359987993ad84757f9d7a12eaf38d2d7", "score": "0.5769273", "text": "public final void mo59419g() {\n }", "title": "" }, { "docid": "0e6111ae009ad752a364e5e9fb168e98", "score": "0.5768801", "text": "@Override\n\tpublic void volumne() {\n\t\t\n\t}", "title": "" }, { "docid": "3f651ef5a6fad17e313e8da4ea72b6e3", "score": "0.57645357", "text": "@Override\n\tpublic void CT() {\n\t\t\n\t}", "title": "" }, { "docid": "615018f0186427ab904e872db6726b2d", "score": "0.5759138", "text": "@Override\n public void init()\n {\n \n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e634836bc1d61a011e04bfb67a971792", "score": "0.5745885", "text": "@Override\r\n\tpublic void sair() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a7cff18dc205a0d79dbe54bb988e6894", "score": "0.57428306", "text": "public void emettreSon() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.573645", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "ac5a7a92eda66d2b7ef40199230fa4af", "score": "0.5731894", "text": "@Override\n\tpublic void arbeiteInPizzeria() {\n\n\t}", "title": "" }, { "docid": "d1c2c284b75d7d46145b6f407496cd96", "score": "0.5725441", "text": "@Override\n\t\tprotected void initParameters() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.57140535", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "65022f0bb57de78da8518cd156b102e6", "score": "0.57112384", "text": "private void init(){\n\t\t\t\n\t\t}", "title": "" }, { "docid": "216da885329e8d80cdc3490fda895c11", "score": "0.57087225", "text": "@Override\n\tpublic void yaz1() {\n\t\t\n\t}", "title": "" }, { "docid": "3c6f91c038ca7ffdab72b5c233b827c5", "score": "0.5705329", "text": "@Override\n\tprotected void initMethod() {\n\t}", "title": "" }, { "docid": "d3ea98d4cf6d33f166c8de2a1f7ab5a5", "score": "0.5697742", "text": "@Override\r\n\tpublic void Collusion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d3ea98d4cf6d33f166c8de2a1f7ab5a5", "score": "0.5697742", "text": "@Override\r\n\tpublic void Collusion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5f3e16954465fbae384d88f411211419", "score": "0.56972444", "text": "@Override\r\n public int E_generar() {\r\n return 0;\r\n }", "title": "" }, { "docid": "365a661b2084f764f5e458915ff735ac", "score": "0.56864643", "text": "@Override\n public int getMunition() {\n return 0;\n }", "title": "" }, { "docid": "40539b782464082aab77fae6b047eade", "score": "0.5681723", "text": "@Override\n\tprotected int get_count() {\n\t\treturn 1;\n\t}", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.56774884", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "5f628d368579dd40ef68362831006940", "score": "0.56769013", "text": "@Override\n\tpublic void fahreFahrzeug() {\n\n\t}", "title": "" }, { "docid": "5ae17f2516c21590c850e6758048effe", "score": "0.56625473", "text": "@Override\n public int getID()\n {\n return 0;\n }", "title": "" }, { "docid": "b8cd427648ea50c94f93c47d407d10a0", "score": "0.5660459", "text": "public void mo3639d() {\n }", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" } ]
5a9db16cb03921c8418929e1c9c7e6be
Test for an AssignmentNode, which left type String and right type Array.
[ { "docid": "6787f5cdd51ce1ad69988cfc56cddb24", "score": "0.66203225", "text": "@Test\n\tpublic void testAssignmentNodeConverter_StringArray() {\n\t\ttry {\n\t\t\tAssignmentNode node = Mockito.mock(AssignmentNode.class);\n\n\t\t\tIdentifierData leftData = new IdentifierData(\"testLeft\",\n\t\t\t\t\tnew StringType(0l));\n\t\t\twhen(converter.icg.popIdentifierData()).thenReturn(\n\t\t\t\t\tnew IdentifierData(\"testRight\", new ArrayType(\n\t\t\t\t\t\t\tnew LongType(), 0)), leftData);\n\t\t\tIdentifierData tmp = new IdentifierData(\"tmp\", new StringType(0l));\n\t\t\twhen(converter.icg.generateTempIdentifier(any(StringType.class)))\n\t\t\t\t\t.thenReturn(tmp);\n\t\t\tconverter.convert(node);\n\t\t\tfail();\n\t\t} catch (IntermediateCodeGeneratorException e) {\n\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "deaedc29c604a5105dcb76010f68b324", "score": "0.6451501", "text": "@Override\n\tpublic void visit(ArrayAssign node) {\n\t\t\n\t}", "title": "" }, { "docid": "83271d8f9c4f193d4481fe5526432308", "score": "0.62207425", "text": "@Test\n\tpublic void testAssignmentNodeConverter_ArrayArray() {\n\t\ttry {\n\t\t\tAssignmentNode node = Mockito.mock(AssignmentNode.class);\n\n\t\t\tIdentifierData leftData = new IdentifierData(\"testLeft\",\n\t\t\t\t\tnew ArrayType(new LongType(), 0));\n\t\t\twhen(converter.icg.popIdentifierData()).thenReturn(\n\t\t\t\t\tnew IdentifierData(\"testRight\", new ArrayType(\n\t\t\t\t\t\t\tnew LongType(), 0)), leftData);\n\t\t\tconverter.convert(node);\n\t\t\tfail();\n\n\t\t} catch (IntermediateCodeGeneratorException e) {\n\n\t\t}\n\t}", "title": "" }, { "docid": "9551487be608477943bffc840de14e6b", "score": "0.6040899", "text": "private boolean isAssignmentExpression(IASTExpression e) {\r\n if (e instanceof IASTBinaryExpression) {\r\n IASTBinaryExpression binExpr = (IASTBinaryExpression) e;\r\n return binExpr.getOperator() == IASTBinaryExpression.op_assign;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "43bee156c60b80417aa572a7a11752df", "score": "0.599533", "text": "public R visit(ArrayAssignmentStatement n, A argu);", "title": "" }, { "docid": "aeead8f9a567e834b1a1558cfae17d5f", "score": "0.5854662", "text": "@Test\n\tpublic void testAssignmentNodeConverter_ArrayBoolean() {\n\t\ttry {\n\t\t\tAssignmentNode node = Mockito.mock(AssignmentNode.class);\n\n\t\t\tIdentifierData leftData = new IdentifierData(\"testLeft\",\n\t\t\t\t\tnew ArrayType(new LongType(), 0));\n\t\t\twhen(converter.icg.popIdentifierData()).thenReturn(\n\t\t\t\t\tnew IdentifierData(\"testRight\", new BooleanType()),\n\t\t\t\t\tleftData);\n\t\t\tIdentifierData tmp = new IdentifierData(\"tmp\", new ArrayType(\n\t\t\t\t\tnew LongType(), 0));\n\t\t\twhen(converter.icg.generateTempIdentifier(any(ArrayType.class)))\n\t\t\t\t\t.thenReturn(tmp);\n\t\t\tconverter.convert(node);\n\t\t\tfail();\n\t\t} catch (IntermediateCodeGeneratorException e) {\n\n\t\t}\n\t}", "title": "" }, { "docid": "cfd69d61efc4f702d6e4088d1afb8d04", "score": "0.58385384", "text": "@Test\n\tpublic void testAssignmentNodeConverter_BooleanArray() {\n\t\ttry {\n\t\t\tAssignmentNode node = Mockito.mock(AssignmentNode.class);\n\n\t\t\tIdentifierData leftData = new IdentifierData(\"testLeft\",\n\t\t\t\t\tnew BooleanType());\n\t\t\twhen(converter.icg.popIdentifierData()).thenReturn(\n\t\t\t\t\tnew IdentifierData(\"testRight\", new ArrayType(\n\t\t\t\t\t\t\tnew LongType(), 0)), leftData);\n\t\t\tIdentifierData tmp = new IdentifierData(\"tmp\", new BooleanType());\n\t\t\twhen(converter.icg.generateTempIdentifier(any(BooleanType.class)))\n\t\t\t\t\t.thenReturn(tmp);\n\t\t\tconverter.convert(node);\n\t\t\tfail();\n\t\t} catch (IntermediateCodeGeneratorException e) {\n\n\t\t}\n\t}", "title": "" }, { "docid": "f7e2fb3948b537f7c8e773280dc477fd", "score": "0.5782513", "text": "@Test\n\tpublic void testAssignmentNodeConverter_ArrayStruct() {\n\t\ttry {\n\t\t\tAssignmentNode node = Mockito.mock(AssignmentNode.class);\n\n\t\t\tIdentifierData leftData = new IdentifierData(\"testLeft\",\n\t\t\t\t\tnew ArrayType(new LongType(), 0));\n\t\t\twhen(converter.icg.popIdentifierData()).thenReturn(\n\t\t\t\t\tnew IdentifierData(\"testRight\", new ArrayType(\n\t\t\t\t\t\t\tnew StructType(new Member[] { new Member(\"\",\n\t\t\t\t\t\t\t\t\tnew DoubleType()) }), 0)));\n\t\t\tIdentifierData tmp = new IdentifierData(\"tmp\", new ArrayType(\n\t\t\t\t\tnew LongType(), 0));\n\t\t\twhen(converter.icg.generateTempIdentifier(any(ArrayType.class)))\n\t\t\t\t\t.thenReturn(tmp);\n\t\t\tconverter.convert(node);\n\t\t\tfail();\n\t\t} catch (IntermediateCodeGeneratorException e) {\n\n\t\t}\n\t}", "title": "" }, { "docid": "c577697a0294294c27712f9713bc8ba1", "score": "0.57804996", "text": "@Override\n\tpublic void visit(StringArrayType node) {\n\t\t\n\t}", "title": "" }, { "docid": "f1b8b12d1a911ffda61f57ddc8136c86", "score": "0.57521665", "text": "public static Boolean is_lhs_of_assignment(Joern_db joern_db, Long node_id, Object var_name)\n {\n // if node is IdentifierDeclStatement\n List<Node> via_ids = Pipeline.v(node_id).children().has(\"type\", \"IdentifierDecl\").children().has(\"type\", \"Identifier\").has(\"code\", member_to_var_name(var_name)).to_list();\n\n if(via_ids.size() != 0)\n {\n return true;\n }\n\n // if node is ExpressionStatement\n List<Node> via_es = Pipeline.v(node_id).children().has(\"type\", \"AssignmentExpr\").lval().has(\"code\", member_to_var_name(var_name)).to_list();\n if(via_es.size() != 0)\n {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "7555fd5088fa183c21d04f7ddd042d5c", "score": "0.5734788", "text": "public interface AssignStatementNode extends SimpleStatementNode {\n /**\n * AssignStatementNodes must have something that is assigned to them\n * @return list of assigned names\n */\n AssignableNode[] getName();\n\n /**\n * Parse an assignment statement from a list of tokens.\n * @param tokens The tokens to be parsed. Removes tokens which are turned\n * into the node.\n * @return The statement that was parsed out\n */\n @NotNull\n static AssignStatementNode parse(@NotNull TokenList tokens) {\n if (!tokens.tokenIs(TokenType.NAME)) {\n return AssignmentNode.parse(tokens);\n }\n if (tokens.tokenIs(tokens.sizeOfVariable(), TokenType.ASSIGN, TokenType.COMMA)) {\n return AssignmentNode.parse(tokens);\n } else {\n return DeclaredAssignmentNode.parse(tokens);\n }\n }\n}", "title": "" }, { "docid": "86ac390f293e04552950fe110803c79c", "score": "0.5718348", "text": "@Override\n public boolean isAssignment()\n {\n return true;\n }", "title": "" }, { "docid": "777171d0caa5d6d136179ccc7f2bd91b", "score": "0.5705668", "text": "public boolean correspondsToAssignment(Node[] sNodes, int[] sValues){\n\t\tfor (int i = 0; i < sNodes.length; i++){\n\t\t\t// get index in nodes of the sNode\n\t\t\tint valueIndex = 0;\n\t\t\tfor (int j = 0; j < nodes.length; j++){\n\t\t\t\tif (sNodes[i].equals(nodes[j])){\n\t\t\t\t\tvalueIndex = j;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// if inputted value is not equal to stored value,\n\t\t\t// doesn't correspond to assignment\n\t\t\tif (sValues[i] != values[valueIndex]){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "1c7ed1526d5892857e433c704435d7b1", "score": "0.5688348", "text": "@Test\n\tpublic void testAssignmentNodeConverter_StructArray() {\n\t\ttry {\n\t\t\tAssignmentNode node = Mockito.mock(AssignmentNode.class);\n\n\t\t\tIdentifierData leftData = new IdentifierData(\"testLeft\",\n\t\t\t\t\tnew StructType(new Member[] { new Member(\"\",\n\t\t\t\t\t\t\tnew DoubleType()) }));\n\t\t\twhen(converter.icg.popIdentifierData()).thenReturn(\n\t\t\t\t\tnew IdentifierData(\"testRight\", new ArrayType(\n\t\t\t\t\t\t\tnew LongType(), 0)), leftData);\n\t\t\tIdentifierData tmp = new IdentifierData(\"tmp\", new StructType(\n\t\t\t\t\tnew Member[] { new Member(\"\", new DoubleType()) }));\n\t\t\twhen(converter.icg.generateTempIdentifier(any(StructType.class)))\n\t\t\t\t\t.thenReturn(tmp);\n\t\t\tconverter.convert(node);\n\t\t\tfail();\n\t\t} catch (IntermediateCodeGeneratorException e) {\n\n\t\t}\n\t}", "title": "" }, { "docid": "f963663587540fe316f42dbeca27af54", "score": "0.56797206", "text": "public Node Assignment() {\n\t\tNode node = null;\n\t\tString name = MatchAndEat(TokenType.IDENT).text;\n\t\tMatchAndEat(TokenType.ASSIGMENT);\n\n\t\tif (CurrentToken().type == TokenType.LEFT_BRACKET) {\n\t\t\t// Array assignment\n\t\t\tnode = ArrayDefinition(name);\n\t\t} \n\t\telse if (CurrentToken().type == TokenType.LEFT_BRACE) {\n\t\t\t// Dictionary assignment\n\t\t\tnode = DictionaryDefinition(name);\n\t\t}\n\t\telse {\n\t\t\t// Variable assignment\n\t\t\tNode value = Expression();\n\t\t\tnode = new AssignmentNode(name, value, this);\n\t\t}\t\n\t\t\n\t\treturn node;\n\t}", "title": "" }, { "docid": "8acc783228b0830cc9a831137f015769", "score": "0.5645716", "text": "public boolean correspondsToAssignment(Sample s) {\n\t\t\n\t\tfor (int i = 0; i < nodes.length; i++){\n\t\t\tif (values[i] != s.getValue(nodes[i])){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "f9ad65f6e313aed920109d7f60953cd3", "score": "0.5634116", "text": "@Test\n\tpublic void testAssignmentNodeConverter_ArrayDouble() {\n\t\ttry {\n\t\t\tAssignmentNode node = Mockito.mock(AssignmentNode.class);\n\n\t\t\tIdentifierData leftData = new IdentifierData(\"testLeft\",\n\t\t\t\t\tnew ArrayType(new LongType(), 0));\n\t\t\twhen(converter.icg.popIdentifierData())\n\t\t\t\t\t.thenReturn(\n\t\t\t\t\t\t\tnew IdentifierData(\"testRight\", new DoubleType()),\n\t\t\t\t\t\t\tleftData);\n\t\t\tIdentifierData tmp = new IdentifierData(\"tmp\", new ArrayType(\n\t\t\t\t\tnew LongType(), 0));\n\t\t\twhen(converter.icg.generateTempIdentifier(any(ArrayType.class)))\n\t\t\t\t\t.thenReturn(tmp);\n\t\t\tconverter.convert(node);\n\t\t\tfail();\n\t\t} catch (IntermediateCodeGeneratorException e) {\n\n\t\t}\n\t}", "title": "" }, { "docid": "3d5b4762ed61b8b5d5593ec15b2f766a", "score": "0.5624978", "text": "@Test\n\tpublic void testAssignmentNodeConverter_DoubleArray() {\n\t\ttry {\n\t\t\tAssignmentNode node = Mockito.mock(AssignmentNode.class);\n\n\t\t\tIdentifierData leftData = new IdentifierData(\"testLeft\",\n\t\t\t\t\tnew DoubleType());\n\t\t\twhen(converter.icg.popIdentifierData()).thenReturn(\n\t\t\t\t\tnew IdentifierData(\"testRight\", new ArrayType(\n\t\t\t\t\t\t\tnew LongType(), 0)), leftData);\n\t\t\tIdentifierData tmp = new IdentifierData(\"tmp\", new DoubleType());\n\t\t\twhen(converter.icg.generateTempIdentifier(any(DoubleType.class)))\n\t\t\t\t\t.thenReturn(tmp);\n\t\t\tconverter.convert(node);\n\t\t\tfail();\n\t\t} catch (IntermediateCodeGeneratorException e) {\n\n\t\t}\n\t}", "title": "" }, { "docid": "cbdf0b075c2bf1230664c6d4fa2e2879", "score": "0.5574421", "text": "@Test\n\tpublic void testAssignmentNodeConverter_StringString() {\n\t\ttry {\n\t\t\tAssignmentNode node = Mockito.mock(AssignmentNode.class);\n\n\t\t\tIdentifierData leftData = new IdentifierData(\"testLeft\",\n\t\t\t\t\tnew StringType(0l));\n\t\t\twhen(converter.icg.popIdentifierData()).thenReturn(\n\t\t\t\t\tnew IdentifierData(\"testRight\", new StringType(0l)),\n\t\t\t\t\tleftData);\n\t\t\tconverter.convert(node);\n\t\t\tverify(converter.icg).addQuadruple(\n\t\t\t\t\tnew QuadrupleJb(Operator.ASSIGN_STRING, \"testRight\",\n\t\t\t\t\t\t\tQuadruple.EmptyArgument, \"testLeft\"));\n\n\t\t\tverify(converter.icg).pushIdentifierData(leftData);\n\t\t} catch (IntermediateCodeGeneratorException e) {\n\n\t\t}\n\t}", "title": "" }, { "docid": "6807ba6886288d69cd50284c4572ad6b", "score": "0.5390333", "text": "public R visit(AssignmentOperator n, A argu);", "title": "" }, { "docid": "c31e5c02a11ffc3b21ffce788f2b9227", "score": "0.5378099", "text": "public void visit(ArrayAssignmentStatement n) {\n n.f0.accept(this);\n boolean isarray = false;\n if(current_function != \"\") {\n Struct idarray = symbol_table.get(\"Global\").get(current_function);\n if(idarray != null) {\n Vector<String> fnames = new Vector<String>();\n for(Struct i: helper.fields(idarray, symbol_table)) {\n if(i.getName() == n.f0.toString() && i.getType() == \"int[]\") {\n isarray = true;\n }\n }\n\n }\n }\n else {\n typechecks = false;\n return;\n }\n n.f1.accept(this);\n n.f2.accept(this);\n if(expr_type != \"int\") {\n typechecks = false;\n return;\n }\n n.f3.accept(this);\n n.f4.accept(this);\n n.f5.accept(this);\n if(expr_type != \"int\") {\n typechecks = false;\n return;\n }\n n.f6.accept(this);\n }", "title": "" }, { "docid": "ef493ea2371760f7903ce8394dd53553", "score": "0.53773963", "text": "@Test\r\n\tpublic void testConvertStringToAssignment() {\r\n\t\tassertTrue(true);\r\n\t}", "title": "" }, { "docid": "d7524b5c7d8df1fe550d8eaf8d76b44f", "score": "0.5341182", "text": "private NodeAssignmentList parseAssignmentList() throws BDParseException {\n\t\tString column;\n\t\tNodeValue value;\n\n\t\tif (m_tokenizer.token().getType() != BDTokenType.ID) {\n\t\t\treturn null;\n\t\t}\n\t\tcolumn = m_tokenizer.token().getName();\n\t\tm_tokenizer.advance();\n\n\t\tif (m_tokenizer.token().getType() != BDTokenType.EQ) {\n\t\t\tthrow new BDParseException(\"Assignment list does not contain =\");\n\t\t}\n\t\tm_tokenizer.advance();\n\n\t\tvalue = this.parseValue(false);\n\n\t\tif (m_tokenizer.token().getType() == BDTokenType.COMMA) {\n\t\t\tm_tokenizer.advance();\n\t\t}\n\n\t\treturn new NodeAssignmentList(column, value, parseAssignmentList());\n\t}", "title": "" }, { "docid": "faf0be533ba884dd70a4ada6b43682b3", "score": "0.5340786", "text": "public static void expressionCheck(Node lhs, Node rhs, Token op, Token sym) throws ParserException\n\t{\n\t\tcheckForArrayError(0, lhs, rhs, op);\n\t\tif(stringInstance(lhs.getType()) || stringInstance(rhs.getType()))\n\t\t{\n\t\t\tParser.stringPresent = true;// set the deep string flag , so if a\n\t\t\t// string is somewhere in a long expression , the whole expression\n\t\t\t// becomes a string\n\t\t\treturn;\n\t\t}\n\t\telse if(lhs.getType() != rhs.getType())\n\t\t{\n\t\t\tParser.printError(ErrorType.MISMATCH_ERROR, op, Parser.ERR_MISMATCH_INVALID_OP + op.getLexeme() + \", \"\n\t\t\t\t\t+ lhs.getType() + \", \" + rhs.getType());\n\t\t}\n\t}", "title": "" }, { "docid": "7ff8cbf560675d979ed74b358f38b8d5", "score": "0.5314061", "text": "public R visit(AssignmentStatement n, A argu);", "title": "" }, { "docid": "7ff8cbf560675d979ed74b358f38b8d5", "score": "0.5314061", "text": "public R visit(AssignmentStatement n, A argu);", "title": "" }, { "docid": "c8a01b79e8a42229c49645a3c91e35f1", "score": "0.5279679", "text": "@Override\n\tpublic void visit(Assign node) {\n\t\t\n\t}", "title": "" }, { "docid": "afaf522b956fd487d1e095c8e9767d4b", "score": "0.5249166", "text": "@Test\n\tpublic void testAssignmentNodeConverter_BooleanString() {\n\t\ttry {\n\t\t\tAssignmentNode node = Mockito.mock(AssignmentNode.class);\n\n\t\t\tIdentifierData leftData = new IdentifierData(\"testLeft\",\n\t\t\t\t\tnew BooleanType());\n\t\t\twhen(converter.icg.popIdentifierData()).thenReturn(\n\t\t\t\t\tnew IdentifierData(\"testRight\", new StringType(0l)),\n\t\t\t\t\tleftData);\n\t\t\tIdentifierData tmp = new IdentifierData(\"tmp\", new BooleanType());\n\t\t\twhen(converter.icg.generateTempIdentifier(any(BooleanType.class)))\n\t\t\t\t\t.thenReturn(tmp);\n\t\t\tconverter.convert(node);\n\t\t\tfail();\n\t\t} catch (IntermediateCodeGeneratorException e) {\n\n\t\t}\n\t}", "title": "" }, { "docid": "fe537b1af6fc0eab179b20f36308f777", "score": "0.518219", "text": "@Test\n\tpublic void testAssignmentNodeConverter_ArrayLong() {\n\t\ttry {\n\t\t\tAssignmentNode node = Mockito.mock(AssignmentNode.class);\n\n\t\t\tIdentifierData leftData = new IdentifierData(\"testLeft\",\n\t\t\t\t\tnew ArrayType(new LongType(), 0));\n\t\t\twhen(converter.icg.popIdentifierData()).thenReturn(\n\t\t\t\t\tnew IdentifierData(\"testRight\", new LongType()), leftData);\n\t\t\tIdentifierData tmp = new IdentifierData(\"tmp\", new ArrayType(\n\t\t\t\t\tnew LongType(), 0));\n\t\t\twhen(converter.icg.generateTempIdentifier(any(ArrayType.class)))\n\t\t\t\t\t.thenReturn(tmp);\n\t\t\tconverter.convert(node);\n\t\t\tfail();\n\t\t} catch (IntermediateCodeGeneratorException e) {\n\n\t\t}\n\t}", "title": "" }, { "docid": "14b071cb98e7606f764403515c30954a", "score": "0.518073", "text": "public TypeItem visit(AssignmentStatement n, Object argu) {\r\n TypeItem _ret=null;\r\n temp=n.f0.accept(this,argu);\r\n right=n.f2.accept(this, argu);\r\n if(right==null||!right.fitFor(types,temp))\r\n {\r\n \t System.out.println(\"TypeError: assign type \"+getType(right)+\" to \"+getType(temp)+\" in line \"+n.f0.f0.beginLine+\" column \"+n.f0.f0.beginColumn);\r\n }\r\n else if(!right.equalWith(temp))\r\n {\r\n \t\t n.f2.cast=true;\r\n \t\t n.f2.preType=right;\r\n \t\t n.f2.castType=temp;//type casting will occur\r\n }\r\n return _ret;\r\n }", "title": "" }, { "docid": "ef8375dd84a90b46e2b865dbbb4ecbe9", "score": "0.5167526", "text": "public R visit(ArrayAssignmentStatement n, A argu) {\n R _ret = null;\n String arrName = n.f0.accept(this, argu).toString();\n n.f1.accept(this, argu);\n String id = n.f2.accept(this, argu).toString();\n n.f3.accept(this, argu);\n n.f4.accept(this, argu);\n n.f5.accept(this, argu);\n n.f6.accept(this, argu);\n\n if(argu.toString().equals(\"entry\")){\n ArrayAccessStmt aas = new ArrayAccessStmt(arrName, id, \"LHS\");\n this.arrayStmts.add(aas);\n\n LoopAssignmentStmt las = new LoopAssignmentStmt(arrName, 1, n.f5);\n las.aas = aas;\n this.loopStmts.add(las);\n }\n\n return _ret;\n }", "title": "" }, { "docid": "e37ec9471c6b7293031c467deb762bed", "score": "0.5148788", "text": "private void AssignmentFrom(String left, HeapAssignParser.ExpressionContext right) {\n\t\tif(right.getChildCount()==2){ //object property\n\t\t\tString obj = right.VARIABLE().getText() + Obj_parse(right.obj_property());\n\t\t\tif(VarToValues.get(obj) == null){\n\t\t\t\tVarToValues.put(obj,null);\n\t\t\t}\n\t\t\tvalueUpdate(left, obj);\n\t\t\tpair = new Pair<>(left,obj);\n\t\t\tDataFlow.addElement(pair);\n\t\t}\n\t\telse{\n\t\t\ttry{ //variable\n\t\t\t\tString exp = right.VARIABLE().getText();\n\t\t\t\tif(VarToValues.get(exp) == null){\n\t\t\t\t\tVarToValues.put(exp,null);\n\t\t\t\t}\n\t\t\t\tvalueUpdate(left, exp);\n\t\t\t\tpair = new Pair<>(left,exp);\n\t\t\t\tDataFlow.addElement(pair);\n\t\t\t}\n\t\t\tcatch (NullPointerException e){}\t\t\t\n\t\t\ttry{ //constant\n\t\t\t\tString exp = right.CONSTANT().getText();\n\t\t\t\tvalueAdd(left,exp);\n\t\t\t}\n\t\t\tcatch (NullPointerException e){}\n\t\t\ttry{ //concat\n\t\t\t\tArrayList<String> tmp = new ArrayList<String>();\n\t\t\t\ttmp = VarToValues.get(left);\n\t\t\t\tHeapAssignParser.ExpressionContext exp1 = right.concat().expression(0);\n\t\t\t\tHeapAssignParser.ExpressionContext exp2 = right.concat().expression(1);\n\t\t\t\tAssignmentFrom(left,exp1);\n\t\t\t\tAssignmentFrom(left,exp2);\n\t\t\t\tVarToValues.put(left,tmp);\n\n\t\t\t\t//record concat value to VarToValues\n\t\t\t\tArrayList<String> e1 = new ArrayList<String>();\n\t\t\t\tArrayList<String> e2 = new ArrayList<String>();\n\n\t\t\t\ttry{e1 = VarToValues.get(exp1.VARIABLE().getText());}\n\t\t\t\tcatch (NullPointerException e){}\n\t\t\t\ttry{e1.add(exp1.CONSTANT().getText());}\n\t\t\t\tcatch (NullPointerException e){}\n\t\t\t\ttry{e2 = VarToValues.get(exp2.VARIABLE().getText());}\n\t\t\t\tcatch (NullPointerException e){}\n\t\t\t\ttry{e2.add(exp2.CONSTANT().getText());}\n\t\t\t\tcatch (NullPointerException e){}\n\n\t\t\t\tif (e1==null&&!(e2==null))\n\t\t\t\t\tfor (int i = 0; i < e2.size(); i++)\n\t\t\t\t\t\tvalueAdd(left,e2.get(i));\n\t\t\t\telse if (!(e1==null)&&e2==null)\n\t\t\t\t\tfor (int i = 0; i < e1.size(); i++)\n\t\t\t\t\t\tvalueAdd(left,e1.get(i));\n\t\t\t\telse if(!(e1==null)&&!(e2==null)){\n\t\t\t\t\tArrayList<String> mix = new ArrayList<String>();\n\t\t\t\t\tfor (int i = 0; i < e1.size(); i++)\n\t\t\t\t\t\tfor (int j = 0; j < e2.size(); j++){\n\t\t\t\t\t\t\tmix.add(e1.get(i).substring(0,e1.get(i).length()-1)+e2.get(j).substring(1,e2.get(j).length()));\n\t\t\t\t\t\t}\n\t\t\t\t\tfor (int i = 0; i < tmp.size(); i++)\n\t\t\t\t\t\tvalueAdd(left,mix.get(i));\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (NullPointerException e){}\n\t\t} \t\n }", "title": "" }, { "docid": "de45d1a92bfba738db5b754cd4f2af36", "score": "0.5138688", "text": "@Test\n\tpublic void testAssignmentNodeConverter_StringBoolean() {\n\t\ttry {\n\t\t\tAssignmentNode node = Mockito.mock(AssignmentNode.class);\n\n\t\t\tIdentifierData leftData = new IdentifierData(\"testLeft\",\n\t\t\t\t\tnew StringType(0l));\n\t\t\twhen(converter.icg.popIdentifierData()).thenReturn(\n\t\t\t\t\tnew IdentifierData(\"testRight\", new BooleanType()),\n\t\t\t\t\tleftData);\n\t\t\tIdentifierData tmp = new IdentifierData(\"tmp\", new StringType(0l));\n\t\t\twhen(converter.icg.generateTempIdentifier(any(StringType.class)))\n\t\t\t\t\t.thenReturn(tmp);\n\t\t\tconverter.convert(node);\n\t\t\tfail();\n\t\t} catch (IntermediateCodeGeneratorException e) {\n\n\t\t}\n\t}", "title": "" }, { "docid": "15dfb326ecfa40a7203bf73e723d8c29", "score": "0.5130397", "text": "public final JavaScriptParser.assignmentOperator_return assignmentOperator() throws RecognitionException {\n JavaScriptParser.assignmentOperator_return retval = new JavaScriptParser.assignmentOperator_return();\n retval.start = input.LT(1);\n int assignmentOperator_StartIndex = input.index();\n Object root_0 = null;\n\n Token set336=null;\n\n Object set336_tree=null;\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 80) ) { return retval; }\n // E:\\\\antlr\\\\JavaScript_329.g:424:2: ( '=' | '*=' | '/=' | '%=' | '+=' | '-=' | '<<=' | '>>=' | '>>>=' | '&=' | '^=' | '|=' )\n // E:\\\\antlr\\\\JavaScript_329.g:\n {\n root_0 = (Object)adaptor.nil();\n\n set336=(Token)input.LT(1);\n if ( input.LA(1)==69||(input.LA(1)>=92 && input.LA(1)<=102) ) {\n input.consume();\n if ( state.backtracking==0 ) adaptor.addChild(root_0, (Object)adaptor.create(set336));\n state.errorRecovery=false;state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n throw mse;\n }\n\n\n }\n\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (Object)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (Object)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 80, assignmentOperator_StartIndex); }\n }\n return retval;\n }", "title": "" }, { "docid": "f9f4e8cac19cdcb0aa9a8a7b57744608", "score": "0.5110952", "text": "private ResultValue arrayToArrayAssignment(Token target) throws Exception{\n /*\n When assigning one array to another, we have two cases:\n 1) String arrays\n a) target has the shorter length\n b) expression has the shorter length\n 2) Arrays\n a) target has the shorter length\n b) expression has the shorter length\n */\n if(scan.nextToken.primClassif != Classif.OPERATOR)\n error(\"Expected assignment operator\");\n scan.getNext(); // puts us on the assignment operator\n // TODO: For flexible requirements, add other cases for +=, -=, etc\n ResultValue targetRV = storageMgr.getVariableValue(target);\n\n scan.getNext(); // Puts us on the expr\n\n ResultValue source = expr.evaluateExpression(\";\");\n int targetBounds = targetRV.arr.getBounds();\n int exprBounds = source.arr.getBounds();\n\n try {\n int end = Math.min(targetBounds, exprBounds);\n targetRV.arr.copyArray(source, end);\n storageMgr.updateVariable(target.tokenStr, targetRV);\n } catch(Exception e){\n error(target.tokenStr + \" of type \" + targetRV.type + \" expected same type. Found:\" + source.type);\n }\n return targetRV;\n\n }", "title": "" }, { "docid": "471fb7f16393b085673c62b3d0808d56", "score": "0.5091404", "text": "public void visit (AssignStatement as) {\n\t\t\n\t\tif (as.getDesignator().obj != Tab.noObj\n\t\t\t\t&& as.getSource().struct != Tab.noType) {\n\t\t\t\n\t\t\tObj designator = as.getDesignator().obj;\n\t\t\tStruct source = as.getSource().struct;\n\t\t\t\n\t\t\t//log.info(designator == null);\n\t\t\t//log.info(source == null);\n\t\t\t\n\t\t\tif (designator.getKind() != Obj.Var\n\t\t\t\t\t&& designator.getKind() != Obj.Fld\n\t\t\t\t\t&& designator.getKind() != Obj.Elem)\n\t\t\t\treporter.reportSemanticError(designator.getName() + \" must be global/local variable, class field or array element\", as.getDesignator());\n\t\t\t\n\t\t\tif (!source.assignableTo(designator.getType()))\n\t\t\t\treporter.reportSemanticError(\"Expression after assign operator is not assignable to destination designator\", as.getSource());\n\t\t\t\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "bdf3c35156827df200014e7b47cb81f8", "score": "0.5091209", "text": "public TypeItem visit(ArrayAssignmentStatement n, Object argu) {\r\n TypeItem _ret=null;\r\n temp=n.f0.accept(this,argu);\r\n right=n.f2.accept(this, argu);\r\n if(temp.TypeIndex!=0)\r\n {\r\n \t System.out.println(\"TypeError: in line \"+n.f0.f0.beginLine+\" column \"+n.f0.f0.beginColumn+\" \"+n.f0.f0.tokenImage+\" not as an int[]\");\r\n }\r\n if(right==null||right.TypeIndex!=2)\r\n {\r\n \t System.out.println(\"TypeError: the expression after line \"+n.f1.beginLine+\" column \"+n.f1.beginColumn+\" not as an int cannot be put in [] as an index\");\r\n }\r\n temp=n.f5.accept(this, argu);\r\n if(temp==null||temp.TypeIndex!=2)\r\n {\r\n \t System.out.println(\"TypeError: the expression after line \"+n.f4.beginLine+\" column \"+n.f4.beginColumn+\" not as an int cannot be assigned to an int on the left\");\r\n }\r\n return _ret;\r\n }", "title": "" }, { "docid": "1720fbb2ceb7231e288cbd83d19058ea", "score": "0.5082729", "text": "public R visit(ArrayAssignmentStatement n, A argu) {\n R _ret = null;\n String id = (String) n.f0.accept(this, argu);\n Value v = environment.get(id);\n Value v2 = (Value) n.f5.accept(this, argu);\n Value v1 = (Value) n.f2.accept(this, argu);\n v._array.set(v1._int, v2._int);\n return _ret;\n }", "title": "" }, { "docid": "797b78135a1c06fe939a9ffa08c448ab", "score": "0.50721276", "text": "@Test\n public void isSameAssignment() {\n assertTrue(OASIS.isSameAssignment(OASIS));\n\n // null -> returns false\n assertFalse(OASIS.isSameAssignment(null));\n\n // different author -> returns false\n Assignment editedAssignment = new AssignmentBuilder(OASIS).withAssignmentName(VALID_PROJECT_OASIS)\n .withAuthor(VALID_NAME_BOB).build();\n assertFalse(OASIS.isSameAssignment(editedAssignment));\n\n // different name -> returns false\n editedAssignment = new AssignmentBuilder(OASIS).withAssignmentName(VALID_PROJECT_FALCON).build();\n assertFalse(OASIS.isSameAssignment(editedAssignment));\n\n // same name, same author, different description -> returns false\n editedAssignment = new AssignmentBuilder(OASIS).withAssignmentName(VALID_PROJECT_OASIS)\n .withAuthor(VALID_NAME_BOB).withDescription(VALID_DESCRIPTION_FALCON).build();\n assertFalse(OASIS.isSameAssignment(editedAssignment));\n }", "title": "" }, { "docid": "1a73606fa73f3482cc5dfe2d1249dca8", "score": "0.5056561", "text": "@Override\n\tpublic Type analyze(AssignStmt s) {\n\n\t\tList<Expr> le = s.targets;\n\t\tType t0 = s.value.dispatch(this);\n\t\tif (t0.isFuncType()) {\n\t\t\tFuncType tf = (FuncType) t0;\n\t\t\tt0 = tf.returnType;\n\t\t}\n\t\t// clear the invalid id hash table (ok to read not local declared variables)\n\t\tinValidIdNameHashTable.clear();\n\n\t\tType ttarget;\n\t\tfor (Expr expr : le) {\n\t\t\tttarget = expr.dispatch(this);\n\t\t\tif (ttarget != null) {\n\t\t\t\t// check t0 <= ttarget\n\t\t\t\tboolean typeCompat = Boolean.FALSE;\n\t\t\t\ttry {\n\t\t\t\t\ttypeCompat = this.typeHierarchy.isAssignmentCompatible(t0.toString(), ttarget.toString());\n\t\t\t\t} catch (UndefinedClassException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tif (!typeCompat) {\n\t\t\t\t\terr(s, \"Expected type `%s`; got type `%s`\", ttarget.toString(), t0.toString());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!expr.hasError()) {\n\t\t\t\t// If the assignment statement is in the body of a function definition\n\t\t\t\t// and the target of the assignment statement is an variable(identifier),\n\t\t\t\t// according to the semantic rule, the variable is either a local variable\n\t\t\t\t// or is an explicit-declared non-local or global variable.\n\t\t\t\t// Therefore, it needs to limit the searching scope of the symbol table to\n\t\t\t\t// the current symbol table only.\n\t\t\t\tEnumeration enu = inValidIdNameHashTable.keys();\n\t\t\t\twhile (enu.hasMoreElements()) {\n\t\t\t\t\terr(expr, \"Cannot assign to variable that is not explicitly declared in this scope: %s\",\n\t\t\t\t\t\t\tenu.nextElement());\n\t\t\t\t}\n\t\t\t\tif (expr instanceof IndexExpr) {\n\t\t\t\t\tType t = ((IndexExpr) expr).list.dispatch(this);\n\t\t\t\t\tif (!t.isListType() && STR_TYPE.equals(t)) {\n\t\t\t\t\t\terr(expr, \"`%s` is not a list type\", t.className());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (le.size() > 1) {\n\t\t\tif (t0.isListType() && NONE_TYPE.equals(t0.elementType())) {\n\t\t\t\terr(s, \"Right-hand side of multiple assignment may not be [<None>]\");\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "6987ad8fdfb38690c9442f33b52b0d57", "score": "0.50529367", "text": "@Override\n\tpublic void visit(AssignmentStmt assignStmt) {\n\t\t\n\t}", "title": "" }, { "docid": "be176105ded447c293544de841b95fc2", "score": "0.5048852", "text": "private void visitAnyassignment(ParserRuleContext ctx, TerminalNode terminalNode, SymbolInfo variable, Statements stmts)\r\n {\r\n if (terminalNode == null)\r\n {\r\n return;\r\n }\r\n\r\n String typeName;\r\n\r\n if (variable.var.type instanceof CollectionType)\r\n {\r\n typeName = ((CollectionType) variable.var.type).getInnermostType().name;\r\n }\r\n else\r\n {\r\n typeName = variable.var.type.name;\r\n }\r\n\r\n StringBuilder sassignment = new StringBuilder();\r\n switch (typeName)\r\n {\r\n case \"Integer\":\r\n sassignment.append(\"i\");\r\n break;\r\n case \"Decimal\":\r\n sassignment.append(\"d\");\r\n break;\r\n }\r\n\r\n switch (terminalNode.getText())\r\n {\r\n case \"+=\":\r\n sassignment.append(\"add\");\r\n break;\r\n case \"-=\":\r\n sassignment.append(\"sub\");\r\n break;\r\n case \"*=\":\r\n sassignment.append(\"mul\");\r\n break;\r\n case \"/=\":\r\n sassignment.append(\"div\");\r\n break;\r\n case \"%=\":\r\n sassignment.append(\"rem\");\r\n break;\r\n }\r\n stmts.add(sassignment.toString(), ctx);\r\n }", "title": "" }, { "docid": "fb151c14557b3c829f7118c7af330b71", "score": "0.5043256", "text": "private void assignmentexpression() {\n\t\t// variable\n\t\tif(match(TokenType.ID)) {\n\t\t\t// Debug\n\t\t\t// System.out.println(\"assignmentexpression -> variable ASSIGN otherexpression\");\n\t\t\tAttribute attr1 = variable(null);\n\t\t\t// ASSIGN\n\t\t\tif(match(TokenType.ASSIGN, \"assignmentexpression\", \"'='\")) {\n\t\t\t\tcurrentToken = la.getNextToken();\n\t\t\t\t// otherexpression\n\t\t\t\tAttribute attr2 = otherexpression();\n\t\t\t\t// Check for type coercion\n\t\t\t\tif(attr1.getType() == SymbolType.FLOAT && attr2.getType() == SymbolType.INT) {\n\t\t\t\t\tString newFltTempReg = getNewFltTempReg();\n\t\t\t\t\tgenInst(\"toFloat\", attr2.getId(), \"0\", newFltTempReg);\n\t\t\t\t\tgenInst(\"sw\", newFltTempReg, \"0\", attr1.getId());\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tgenInst(\"sw\", attr2.getId(), \"0\", attr1.getId());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// ERROR\n\t\telse {\n\t\t\tthrow new ParseException(\"assignmentexpression\", \"ID\", currentToken.getTokenText());\n\t\t}\n\t}", "title": "" }, { "docid": "d776da67e2d87f4915593733ae9ad73d", "score": "0.5038204", "text": "@Test\n\tpublic void testAssignmentNodeConverter_LongArray() {\n\t\ttry {\n\t\t\tAssignmentNode node = Mockito.mock(AssignmentNode.class);\n\n\t\t\tIdentifierData leftData = new IdentifierData(\"testLeft\",\n\t\t\t\t\tnew LongType());\n\t\t\twhen(converter.icg.popIdentifierData()).thenReturn(\n\t\t\t\t\tnew IdentifierData(\"testRight\", new ArrayType(\n\t\t\t\t\t\t\tnew LongType(), 0)), leftData);\n\t\t\tIdentifierData tmp = new IdentifierData(\"tmp\", new LongType());\n\t\t\twhen(converter.icg.generateTempIdentifier(any(LongType.class)))\n\t\t\t\t\t.thenReturn(tmp);\n\t\t\tconverter.convert(node);\n\t\t\tfail();\n\t\t} catch (IntermediateCodeGeneratorException e) {\n\n\t\t}\n\t}", "title": "" }, { "docid": "21ad207756ffec2eb733e5e29a959f7a", "score": "0.5021292", "text": "public Object visit(ASTEqualityExpression node, Object data) {\n if (!hasName(((SimpleNode)node.jjtGetChild(0)).jjtGetChild(0)) || !hasName(((SimpleNode)node.jjtGetChild(1)).jjtGetChild(0))) {\n return data;\n }\n \n // skip if either is a qualified name\n if (((SimpleNode)node.jjtGetChild(0).jjtGetChild(0).jjtGetChild(0)).getImage().indexOf(\".\") != -1\n || ((SimpleNode)node.jjtGetChild(1).jjtGetChild(0).jjtGetChild(0)).getImage().indexOf(\".\") != -1) {\n return data;\n }\n \n // skip static initializers... missing some cases here\n if (!node.getParentsOfType(ASTInitializer.class).isEmpty()) {\n return data;\n }\n \n ASTName n0 = (ASTName)node.jjtGetChild(0).jjtGetChild(0).jjtGetChild(0);\n ASTName n1 = (ASTName)node.jjtGetChild(1).jjtGetChild(0).jjtGetChild(0);\n \n if (n0.getNameDeclaration() instanceof VariableNameDeclaration && n1.getNameDeclaration() instanceof VariableNameDeclaration) {\n VariableNameDeclaration nd0 = (VariableNameDeclaration)n0.getNameDeclaration();\n VariableNameDeclaration nd1 = (VariableNameDeclaration)n1.getNameDeclaration();\n if (nd0.isReferenceType() && nd1.isReferenceType()) {\n addViolation(data, node);\n }\n }\n \n return data;\n }", "title": "" }, { "docid": "80de4db06921c3ffdddacb5f2099e456", "score": "0.49908257", "text": "void visitAssignment(@NotNull HOMEParser.AssignmentContext ctx, Statements stmts)\r\n {\r\n if (ctx.identifier() != null)\r\n {\r\n SymbolInfo variable = symbolTable.variables.getSymbol(ctx.identifier().getText());\r\n String type = variable.var.type.name;\r\n type = type.replaceAll(\"<.+>\", \"\");\r\n switch (type)\r\n {\r\n case \"Integer\":\r\n case \"Boolean\":\r\n if (ctx.AnyAssign() != null)\r\n {\r\n variable.load(ctx, stmts);\r\n }\r\n visitExpression(ctx.expression(), stmts);\r\n visitAnyassignment(ctx, ctx.AnyAssign(), variable, stmts);\r\n variable.store(ctx, stmts);\r\n break;\r\n\r\n case \"Decimal\":\r\n if (ctx.AnyAssign() != null)\r\n {\r\n variable.load(ctx, stmts);\r\n }\r\n visitExpression(ctx.expression(), stmts);\r\n visitAnyassignment(ctx, ctx.AnyAssign(), variable, stmts);\r\n variable.store(ctx, stmts);\r\n break;\r\n\r\n case \"String\":\r\n visitExpression(ctx.expression(), stmts);\r\n variable.store(ctx, stmts);\r\n break;\r\n\r\n case \"List\":\r\n // There are 4 different special cases when creating a List, each being handled in their own special way.\r\n // 1. List<List<Integer>> aList = {{}}, same as above yet we detect the depth of this list in case of a list within a list.\r\n // 2. List<Integer> aList = {1,2,3}\r\n // 3. List<Integer> aList = someFunction()\r\n CollectionType symbolType = (CollectionType) variable.var.type;\r\n int currentLocal = stmts.nextLocal();\r\n if (ctx.expression() != null)\r\n {\r\n if (ctx.expression().literal() != null)\r\n {\r\n int depth = emptyInit(ctx.expression().literal(), 1);\r\n //If depth equals -1, then the list literal contains elements\r\n if (depth == -1)\r\n {\r\n // case 2\r\n visitExpression(ctx.expression(), stmts);\r\n stmts.add(\"aload \" + currentLocal, ctx);\r\n }\r\n else\r\n {\r\n // case 1\r\n buildList(ctx, stmts, symbolType, depth);\r\n stmts.add(\"aload \" + currentLocal, ctx);\r\n }\r\n }\r\n else\r\n {\r\n // case 3\r\n visitExpression(ctx.expression(), stmts);\r\n if (variable.depth != 0)\r\n {\r\n stmts.LocalInc();\r\n currentLocal++;\r\n }\r\n }\r\n }\r\n\r\n variable.store(ctx, stmts);\r\n break;\r\n\r\n case \"Dictionary\":\r\n // There are 4 different special cases when creating a List, each being handled in their own special way.\r\n // 1. Dictionary<Integer> aList = {}, same as above yet we detect the depth of this list in case of a Dictionary within a dictionary.\r\n // 2. Dictionary<Integer> aList = {\"Test\"=1}\r\n // 3. Dictionary<Integer> aList = someFunction()\r\n symbolType = (CollectionType) variable.var.type;\r\n currentLocal = stmts.nextLocal();\r\n if (ctx.expression() != null)\r\n {\r\n if (ctx.expression().literal() != null)\r\n {\r\n int depth = emptyInit(ctx.expression().literal(), 1);\r\n //If depth equals -1, then the dictionary literal contains elements\r\n if (depth == -1)\r\n {\r\n // case 2\r\n visitExpression(ctx.expression(), stmts);\r\n stmts.add(\"aload \" + currentLocal, ctx);\r\n }\r\n else\r\n {\r\n // case 1\r\n buildDictionary(ctx, stmts, symbolType, depth);\r\n stmts.add(\"aload \" + currentLocal, ctx);\r\n }\r\n }\r\n else\r\n {\r\n // case 3\r\n visitExpression(ctx.expression(), stmts);\r\n if (variable.depth != 0)\r\n {\r\n stmts.LocalInc();\r\n currentLocal++;\r\n }\r\n }\r\n }\r\n variable.store(ctx, stmts);\r\n break;\r\n default:\r\n visitExpression(ctx.expression(), stmts);\r\n variable.store(ctx, stmts);\r\n break;\r\n\r\n }\r\n }\r\n else if (ctx.listIndex() != null)\r\n {\r\n SymbolInfo symbol = symbolTable.variables.getSymbol(ctx.listIndex().identifier().getText());\r\n CollectionType type = (CollectionType) symbolTable.variables.getType(ctx.listIndex().identifier().getText());\r\n\r\n symbol.load(ctx, stmts);\r\n\r\n List<HOMEParser.ExpressionContext> expressionContexts = ctx.listIndex().expression();\r\n for (Integer i = 0; i < expressionContexts.size() - 1; i++)\r\n {\r\n visitExpression(expressionContexts.get(i), stmts);\r\n switch (type.primaryType.name)\r\n {\r\n case \"List\":\r\n stmts.add(String.format(\"invokevirtual %s.get(%s)Ljava/lang/Object;\", Main.list.getClassByteCode(), Main.integer.bytecode), ctx);\r\n break;\r\n case \"Dictionary\":\r\n stmts.add(String.format(\"invokevirtual %s.get(%s)Ljava/lang/Object;\", Main.dictionary.getClassByteCode(), Main.object.bytecode), ctx);\r\n break;\r\n }\r\n stmts.add(\"checkcast \" + type.primaryType.getClassByteCode(), ctx);\r\n type = (CollectionType) type.innerType;\r\n }\r\n HOMEParser.ExpressionContext exp = expressionContexts.get(expressionContexts.size() - 1);\r\n if (ctx.AnyAssign() != null)\r\n {\r\n stmts.add(\"dup\", ctx);\r\n visitExpression(exp, stmts);\r\n stmts.add(\"swap\", ctx);\r\n visitExpression(exp, stmts);\r\n if (type.primaryType.equals(Main.list))\r\n {\r\n stmts.add(\"invokevirtual java/util/ArrayList.get(I)Ljava/lang/Object;\", ctx);\r\n }\r\n else\r\n {\r\n stmts.add(\"invokevirtual java/util/HashMap.get(Ljava/lang/Object;)Ljava/lang/Object;\", ctx);\r\n }\r\n stmts.add(\"checkcast \" + Main.integer.getClassByteCode(), ctx);\r\n stmts.add(\"invokevirtual java/lang/Integer/intValue()I\", ctx);\r\n visitExpression(ctx.expression(), stmts);\r\n visitAnyassignment(ctx, ctx.AnyAssign(), symbol, stmts);\r\n }\r\n else\r\n {\r\n visitExpression(exp, stmts);\r\n visitExpression(ctx.expression(), stmts);\r\n }\r\n\r\n switch (type.innerType.name)\r\n {\r\n case \"Integer\":\r\n stmts.add(\"invokestatic java/lang/Integer.valueOf(I)Ljava/lang/Integer;\", ctx);\r\n break;\r\n case \"Decimal\":\r\n stmts.add(\"invokestatic java/lang/Double.valueOf(D)Ljava/lang/Double;\", ctx);\r\n break;\r\n case \"Boolean\":\r\n stmts.add(\"invokestatic java/lang/Boolean.valueOf(Z)Ljava/lang/Boolean;\", ctx);\r\n break;\r\n }\r\n switch (type.primaryType.name)\r\n {\r\n case \"List\":\r\n stmts.add(String.format(\"invokevirtual %s.set(%sLjava/lang/Object;)Ljava/lang/Object;\", Main.list.getClassByteCode(), Main.integer.getSimpleByteCode()), ctx);\r\n break;\r\n case \"Dictionary\":\r\n stmts.add(String.format(\"invokevirtual %s.put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;\", Main.dictionary.getClassByteCode()), ctx);\r\n break;\r\n }\r\n stmts.add(\"pop\", ctx);\r\n }\r\n else if (ctx.field() != null)\r\n {\r\n SymbolInfo symbolClassInfo = symbolTable.variables.getSymbol(ctx.field().identifier(0).getText());\r\n Type fieldType = symbolClassInfo.var.type.getFieldByName(ctx.field().identifier(1).getText()).type;\r\n String fieldname = ctx.field().identifier(1).getText();\r\n\r\n symbolClassInfo.load(ctx, stmts);\r\n\r\n visitExpression(ctx.expression(), stmts);\r\n\r\n stmts.add(String.format(\"putfield %s/%s %s\",\r\n symbolClassInfo.var.type.getClassByteCode(),\r\n fieldname,\r\n fieldType.getSimpleByteCode()), ctx);\r\n }\r\n }", "title": "" }, { "docid": "0bf24fb12d87d91dd19d28df5da3cc1a", "score": "0.49818948", "text": "public final JavaScriptParser.assignmentExpression_eq_return assignmentExpression_eq() throws RecognitionException {\n JavaScriptParser.assignmentExpression_eq_return retval = new JavaScriptParser.assignmentExpression_eq_return();\n retval.start = input.LT(1);\n int assignmentExpression_eq_StartIndex = input.index();\n Object root_0 = null;\n\n JavaScriptParser.assignmentExpression_return assignmentExpression83 = null;\n\n\n RewriteRuleSubtreeStream stream_assignmentExpression=new RewriteRuleSubtreeStream(adaptor,\"rule assignmentExpression\");\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 18) ) { return retval; }\n // E:\\\\antlr\\\\JavaScript_329.g:140:2: ( assignmentExpression -> ^( AssignmentExpression assignmentExpression ) )\n // E:\\\\antlr\\\\JavaScript_329.g:140:4: assignmentExpression\n {\n pushFollow(FOLLOW_assignmentExpression_in_assignmentExpression_eq678);\n assignmentExpression83=assignmentExpression();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) stream_assignmentExpression.add(assignmentExpression83.getTree());\n\n\n // AST REWRITE\n // elements: assignmentExpression\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n if ( state.backtracking==0 ) {\n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"token retval\",retval!=null?retval.tree:null);\n\n root_0 = (Object)adaptor.nil();\n // 141:2: -> ^( AssignmentExpression assignmentExpression )\n {\n // E:\\\\antlr\\\\JavaScript_329.g:141:5: ^( AssignmentExpression assignmentExpression )\n {\n Object root_1 = (Object)adaptor.nil();\n root_1 = (Object)adaptor.becomeRoot((Object)adaptor.create(AssignmentExpression, \"AssignmentExpression\"), root_1);\n\n adaptor.addChild(root_1, stream_assignmentExpression.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;}\n }\n\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (Object)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (Object)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 18, assignmentExpression_eq_StartIndex); }\n }\n return retval;\n }", "title": "" }, { "docid": "03bc523eac60930b95dcbb6c1406e218", "score": "0.49774984", "text": "public void assignArray(String endTerm, Token tokAssign, ExecMode bExec) throws Exception {\n ResultValue targetRV = storageMgr.getVariableValue(tokAssign.tokenStr);\n SubClassif type = targetRV.type;\n StringBuilder valueString = new StringBuilder();\n int bounds = targetRV.arr.getBounds();\n int index = 0;\n ResultValue [] array = new ResultValue[bounds];\n\n if(bExec==ExecMode.EXECUTE) {\n while (!scan.currentToken.tokenStr.equals(endTerm)) {\n if (index >= bounds) {\n error(\"Number of variables assigned to \" + tokAssign.tokenStr +\n \" exceeds \" + bounds);\n }\n if (scan.currentToken.primClassif == Classif.SEPARATOR) {\n valueString.append(scan.currentToken.tokenStr);\n scan.getNext();\n continue;\n }\n String element;\n if (type == SubClassif.INTEGER) {\n element = Integer.toString((int) (Float.parseFloat(scan.currentToken.tokenStr)));\n } else if (type == SubClassif.FLOAT) {\n element = Float.toString(Float.parseFloat(scan.currentToken.tokenStr));\n } else { // String variables\n element = scan.currentToken.tokenStr;\n }\n valueString.append(element);\n array[index] = new ResultValue(element, \"primitive\", type);\n scan.getNext();\n index++;\n }\n targetRV.arr.arr = array;\n targetRV.value = valueString.toString();\n //System.out.print(\"Array assignment: \" + targetRV);\n storageMgr.updateVariable(tokAssign.tokenStr, targetRV);\n } else {\n skipTo(\";\");\n }\n }", "title": "" }, { "docid": "cf676325acb31581dbc4f2903d472af0", "score": "0.49437788", "text": "public void setType(AssignmentType type)\n {\n this.type = type;\n }", "title": "" }, { "docid": "cf466f87baf9e520be8ce4483b3b799a", "score": "0.49410206", "text": "@Override\n public Void visitIrAssignStmtEq(IrAssignStmtEq node) {\n node.getStoreLocation().accept(this);\n\n// if (node.getStoreLocation() instanceof IrLocationVar) {\n//// 2) check to make sure the var isn't a lone array var\n// String name = node.getStoreLocation().getLocationName().getValue();\n// if (symTable.checkIfSymbolExistsAtAnyScope(name)) {\n// IrVarDecl object = (IrVarDecl) symTable.getSymbol(node.getStoreLocation().getLocationName().getValue());\n//\n// if (object.getType() instanceof IrTypeArray) {\n// errorMessage.append(\"Can't assign an expression to array\" + \" line: \")\n// .append(node.getLineNumber()).append(\" col: \").append(node.getColNumber()).append(\"\\n\\n\");\n// }\n// }\n// }\n\n\n // 3) verify that the expr is semantically correct\n node.getExpr().accept(this);\n\n // 4) make sure that the IrExpr and IrLocation are the same VarTypeEnum\n if (node.getExpr().getExpressionType() == null){\n errorMessage.append(\"funciont block should not be used as function, line: \")\n .append(node.getLineNumber()).append(\" col: \").append(node.getColNumber()).append(\"\\n\\n\");\n }\n else if(node.getExpr().getExpressionType() != node.getStoreLocation().getExpressionType()){\n\n errorMessage.append(\"The variable to be assigned and the expression must both be of type int, real, or of type bool\" + \" line: \")\n .append(node.getLineNumber()).append(\" col: \").append(node.getColNumber())\n .append(\"\\n\\tExpr type : \").append(node.getExpr().getExpressionType())\n .append(\" StoreLocation type : \").append(node.getStoreLocation().getExpressionType()).append(\"\\n\\n\")\n ;\n }\n// boolean bothAreInts = (node.getExpr().getExpressionType() == VarTypeEnum.RES_INT)\n// && (node.getStoreLocation().getExpressionType() == VarTypeEnum.RES_INT);\n// boolean bothAreBools = (node.getExpr().getExpressionType() == VarTypeEnum.RES_BOOL )\n// && (node.getStoreLocation().getExpressionType() == VarTypeEnum.RES_BOOL);\n// boolean bothAreReals = (node.getExpr().getExpressionType() == VarTypeEnum.RES_REAL )\n// && (node.getStoreLocation().getExpressionType() == VarTypeEnum.RES_REAL);\n// if (!bothAreBools && !bothAreInts && !bothAreReals) {\n// errorMessage.append(\"The variable to be assigned and the expression must both be of type int, real, or of type bool\" + \" line: \")\n// .append(node.getLineNumber()).append(\" col: \").append(node.getColNumber()).append(\"\\n\\n\");\n// }\n return null;\n }", "title": "" }, { "docid": "0482230b09653ba9ebd57c65b40dce6a", "score": "0.491462", "text": "@Test\n\tpublic void testAssignmentNodeConverter_DoubleString() {\n\t\ttry {\n\t\t\tAssignmentNode node = Mockito.mock(AssignmentNode.class);\n\n\t\t\tIdentifierData leftData = new IdentifierData(\"testLeft\",\n\t\t\t\t\tnew DoubleType());\n\t\t\twhen(converter.icg.popIdentifierData()).thenReturn(\n\t\t\t\t\tnew IdentifierData(\"testRight\", new StringType(0l)),\n\t\t\t\t\tleftData);\n\t\t\tIdentifierData tmp = new IdentifierData(\"tmp\", new DoubleType());\n\t\t\twhen(converter.icg.generateTempIdentifier(any(DoubleType.class)))\n\t\t\t\t\t.thenReturn(tmp);\n\t\t\tconverter.convert(node);\n\t\t\tfail();\n\t\t} catch (IntermediateCodeGeneratorException e) {\n\n\t\t}\n\t}", "title": "" }, { "docid": "4c35a773a84a8af80ba042643c3687ea", "score": "0.4911445", "text": "public void visit(AssignmentStatement n) {\n n.f0.accept(this);\n String istype = \"\";\n if(current_function != \"\") {\n Struct idarray = symbol_table.get(\"Global\").get(current_function);\n if(idarray != null) {\n Vector<String> fnames = new Vector<String>();\n for(Struct i: helper.fields(idarray, symbol_table)) {\n if(i.getName() == n.f0.toString()) {\n istype = i.getType();\n }\n }\n\n }\n }\n else {\n typechecks = false;\n return;\n }\n n.f1.accept(this);\n n.f2.accept(this);\n String t2 = expr_type;\n n.f3.accept(this);\n if(t2 != istype) {\n typechecks = false;\n return;\n }\n\n expr_type = istype;\n }", "title": "" }, { "docid": "6a9bc996c6cc8ef8c2df077313aa3ca1", "score": "0.4904111", "text": "public final void rule__OpMultiAssign__Alternatives() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3127:1: ( ( '*=' ) | ( '/=' ) | ( '%=' ) | ( '+=' ) | ( '-=' ) | ( ( rule__OpMultiAssign__Group_5__0 ) ) | ( ( rule__OpMultiAssign__Group_6__0 ) ) | ( ( rule__OpMultiAssign__Group_7__0 ) ) | ( '&=' ) | ( '^=' ) | ( '|=' ) )\r\n int alt15=11;\r\n alt15 = dfa15.predict(input);\r\n switch (alt15) {\r\n case 1 :\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3128:1: ( '*=' )\r\n {\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3128:1: ( '*=' )\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3129:1: '*='\r\n {\r\n if (! isBacktracking() ) {\r\n before(grammarAccess.getOpMultiAssignAccess().getAsteriskEqualsSignKeyword_0()); \r\n }\r\n match(input,31,FOLLOW_31_in_rule__OpMultiAssign__Alternatives6700); if (state.failed) return ;\r\n if (! isBacktracking() ) {\r\n after(grammarAccess.getOpMultiAssignAccess().getAsteriskEqualsSignKeyword_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3136:6: ( '/=' )\r\n {\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3136:6: ( '/=' )\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3137:1: '/='\r\n {\r\n if (! isBacktracking() ) {\r\n before(grammarAccess.getOpMultiAssignAccess().getSolidusEqualsSignKeyword_1()); \r\n }\r\n match(input,32,FOLLOW_32_in_rule__OpMultiAssign__Alternatives6720); if (state.failed) return ;\r\n if (! isBacktracking() ) {\r\n after(grammarAccess.getOpMultiAssignAccess().getSolidusEqualsSignKeyword_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3144:6: ( '%=' )\r\n {\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3144:6: ( '%=' )\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3145:1: '%='\r\n {\r\n if (! isBacktracking() ) {\r\n before(grammarAccess.getOpMultiAssignAccess().getPercentSignEqualsSignKeyword_2()); \r\n }\r\n match(input,33,FOLLOW_33_in_rule__OpMultiAssign__Alternatives6740); if (state.failed) return ;\r\n if (! isBacktracking() ) {\r\n after(grammarAccess.getOpMultiAssignAccess().getPercentSignEqualsSignKeyword_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 4 :\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3152:6: ( '+=' )\r\n {\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3152:6: ( '+=' )\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3153:1: '+='\r\n {\r\n if (! isBacktracking() ) {\r\n before(grammarAccess.getOpMultiAssignAccess().getPlusSignEqualsSignKeyword_3()); \r\n }\r\n match(input,34,FOLLOW_34_in_rule__OpMultiAssign__Alternatives6760); if (state.failed) return ;\r\n if (! isBacktracking() ) {\r\n after(grammarAccess.getOpMultiAssignAccess().getPlusSignEqualsSignKeyword_3()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 5 :\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3160:6: ( '-=' )\r\n {\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3160:6: ( '-=' )\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3161:1: '-='\r\n {\r\n if (! isBacktracking() ) {\r\n before(grammarAccess.getOpMultiAssignAccess().getHyphenMinusEqualsSignKeyword_4()); \r\n }\r\n match(input,35,FOLLOW_35_in_rule__OpMultiAssign__Alternatives6780); if (state.failed) return ;\r\n if (! isBacktracking() ) {\r\n after(grammarAccess.getOpMultiAssignAccess().getHyphenMinusEqualsSignKeyword_4()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 6 :\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3168:6: ( ( rule__OpMultiAssign__Group_5__0 ) )\r\n {\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3168:6: ( ( rule__OpMultiAssign__Group_5__0 ) )\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3169:1: ( rule__OpMultiAssign__Group_5__0 )\r\n {\r\n if (! isBacktracking() ) {\r\n before(grammarAccess.getOpMultiAssignAccess().getGroup_5()); \r\n }\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3170:1: ( rule__OpMultiAssign__Group_5__0 )\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3170:2: rule__OpMultiAssign__Group_5__0\r\n {\r\n pushFollow(FOLLOW_rule__OpMultiAssign__Group_5__0_in_rule__OpMultiAssign__Alternatives6799);\r\n rule__OpMultiAssign__Group_5__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if (! isBacktracking() ) {\r\n after(grammarAccess.getOpMultiAssignAccess().getGroup_5()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 7 :\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3174:6: ( ( rule__OpMultiAssign__Group_6__0 ) )\r\n {\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3174:6: ( ( rule__OpMultiAssign__Group_6__0 ) )\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3175:1: ( rule__OpMultiAssign__Group_6__0 )\r\n {\r\n if (! isBacktracking() ) {\r\n before(grammarAccess.getOpMultiAssignAccess().getGroup_6()); \r\n }\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3176:1: ( rule__OpMultiAssign__Group_6__0 )\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3176:2: rule__OpMultiAssign__Group_6__0\r\n {\r\n pushFollow(FOLLOW_rule__OpMultiAssign__Group_6__0_in_rule__OpMultiAssign__Alternatives6817);\r\n rule__OpMultiAssign__Group_6__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if (! isBacktracking() ) {\r\n after(grammarAccess.getOpMultiAssignAccess().getGroup_6()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 8 :\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3180:6: ( ( rule__OpMultiAssign__Group_7__0 ) )\r\n {\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3180:6: ( ( rule__OpMultiAssign__Group_7__0 ) )\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3181:1: ( rule__OpMultiAssign__Group_7__0 )\r\n {\r\n if (! isBacktracking() ) {\r\n before(grammarAccess.getOpMultiAssignAccess().getGroup_7()); \r\n }\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3182:1: ( rule__OpMultiAssign__Group_7__0 )\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3182:2: rule__OpMultiAssign__Group_7__0\r\n {\r\n pushFollow(FOLLOW_rule__OpMultiAssign__Group_7__0_in_rule__OpMultiAssign__Alternatives6835);\r\n rule__OpMultiAssign__Group_7__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if (! isBacktracking() ) {\r\n after(grammarAccess.getOpMultiAssignAccess().getGroup_7()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 9 :\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3186:6: ( '&=' )\r\n {\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3186:6: ( '&=' )\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3187:1: '&='\r\n {\r\n if (! isBacktracking() ) {\r\n before(grammarAccess.getOpMultiAssignAccess().getAmpersandEqualsSignKeyword_8()); \r\n }\r\n match(input,36,FOLLOW_36_in_rule__OpMultiAssign__Alternatives6854); if (state.failed) return ;\r\n if (! isBacktracking() ) {\r\n after(grammarAccess.getOpMultiAssignAccess().getAmpersandEqualsSignKeyword_8()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 10 :\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3194:6: ( '^=' )\r\n {\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3194:6: ( '^=' )\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3195:1: '^='\r\n {\r\n if (! isBacktracking() ) {\r\n before(grammarAccess.getOpMultiAssignAccess().getCircumflexAccentEqualsSignKeyword_9()); \r\n }\r\n match(input,37,FOLLOW_37_in_rule__OpMultiAssign__Alternatives6874); if (state.failed) return ;\r\n if (! isBacktracking() ) {\r\n after(grammarAccess.getOpMultiAssignAccess().getCircumflexAccentEqualsSignKeyword_9()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 11 :\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3202:6: ( '|=' )\r\n {\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3202:6: ( '|=' )\r\n // ../org.summer.ss.ide/src-gen/org/summer/ss/ide/contentassist/antlr/internal/InternalSs.g:3203:1: '|='\r\n {\r\n if (! isBacktracking() ) {\r\n before(grammarAccess.getOpMultiAssignAccess().getVerticalLineEqualsSignKeyword_10()); \r\n }\r\n match(input,38,FOLLOW_38_in_rule__OpMultiAssign__Alternatives6894); if (state.failed) return ;\r\n if (! isBacktracking() ) {\r\n after(grammarAccess.getOpMultiAssignAccess().getVerticalLineEqualsSignKeyword_10()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "a42bc6bec8ebc3f24ad5d1b6156065b6", "score": "0.48903733", "text": "public CompType visit(ArrayAssignStmt a) throws SemanticException\n\t{\n\t\tif(! a.index.accept(this).type.equals(\"int\"))\n\t\t{\n\t\t\tString msg = \"Error: array index must be of type 'int'\";\n\t\t\tthrow new SemanticException(msg, a.index.line, a.index.offset);\n\t\t}\n\t\t// check that types match\n\t\tif(! a.value.accept(this).type.equals(a.id.accept(this).type))\n\t\t{\n\t\t\tString msg = \"Error: type mismatch, array is of type '\"+a.id.accept(this).type+\"'\";\n\t\t\tthrow new SemanticException(msg, a.id.line, a.id.offset);\n\t\t}\n\t\treturn a.id.accept(this);\n\t}", "title": "" }, { "docid": "ecb02112a2078a28a9dbf443a04b6184", "score": "0.4878729", "text": "@Test\n\tpublic void testAssignmentNodeConverter_StringStruct() {\n\t\ttry {\n\t\t\tAssignmentNode node = Mockito.mock(AssignmentNode.class);\n\n\t\t\tIdentifierData leftData = new IdentifierData(\"testLeft\",\n\t\t\t\t\tnew StringType(0l));\n\t\t\twhen(converter.icg.popIdentifierData())\n\t\t\t\t\t.thenReturn(\n\t\t\t\t\t\t\tnew IdentifierData(\"testRight\", new StructType(\n\t\t\t\t\t\t\t\t\tnew Member[] { new Member(\"\",\n\t\t\t\t\t\t\t\t\t\t\tnew DoubleType()) })), leftData);\n\t\t\tIdentifierData tmp = new IdentifierData(\"tmp\", new StringType(0l));\n\t\t\twhen(converter.icg.generateTempIdentifier(any(StringType.class)))\n\t\t\t\t\t.thenReturn(tmp);\n\t\t\tconverter.convert(node);\n\t\t\tfail();\n\t\t} catch (IntermediateCodeGeneratorException e) {\n\n\t\t}\n\t}", "title": "" }, { "docid": "cd5989dd06fcc7de608ff0e8751556fc", "score": "0.48779178", "text": "@Test\n\tpublic void testAssignmentNodeConverter_StringDouble() {\n\t\ttry {\n\t\t\tAssignmentNode node = Mockito.mock(AssignmentNode.class);\n\n\t\t\tIdentifierData leftData = new IdentifierData(\"testLeft\",\n\t\t\t\t\tnew StringType(0l));\n\t\t\twhen(converter.icg.popIdentifierData())\n\t\t\t\t\t.thenReturn(\n\t\t\t\t\t\t\tnew IdentifierData(\"testRight\", new DoubleType()),\n\t\t\t\t\t\t\tleftData);\n\t\t\tIdentifierData tmp = new IdentifierData(\"tmp\", new StringType(0l));\n\t\t\twhen(converter.icg.generateTempIdentifier(any(StringType.class)))\n\t\t\t\t\t.thenReturn(tmp);\n\t\t\tconverter.convert(node);\n\t\t\tfail();\n\t\t} catch (IntermediateCodeGeneratorException e) {\n\n\t\t}\n\t}", "title": "" }, { "docid": "cceb3139f77ca65eb0af859629bf174a", "score": "0.48744708", "text": "public void setAssignments(Assignment<Object>[] assignments)\n { this.postAssignments=assignments;\n }", "title": "" }, { "docid": "54ed383f12882f5e7dd33260e0a4468d", "score": "0.4858805", "text": "@Test\n\tpublic void testAssignmentNodeConverter_StructString() {\n\t\ttry {\n\t\t\tAssignmentNode node = Mockito.mock(AssignmentNode.class);\n\n\t\t\tIdentifierData leftData = new IdentifierData(\"testLeft\",\n\t\t\t\t\tnew StructType(new Member[] { new Member(\"\",\n\t\t\t\t\t\t\tnew DoubleType()) }));\n\t\t\twhen(converter.icg.popIdentifierData()).thenReturn(\n\t\t\t\t\tnew IdentifierData(\"testRight\", new StringType(0l)),\n\t\t\t\t\tleftData);\n\t\t\tIdentifierData tmp = new IdentifierData(\"tmp\", new StructType(\n\t\t\t\t\tnew Member[] { new Member(\"\", new DoubleType()) }));\n\t\t\twhen(converter.icg.generateTempIdentifier(any(StructType.class)))\n\t\t\t\t\t.thenReturn(tmp);\n\t\t\tconverter.convert(node);\n\t\t\tfail();\n\t\t} catch (IntermediateCodeGeneratorException e) {\n\n\t\t}\n\t}", "title": "" }, { "docid": "39d32f5c0068a7a97e0f7d382b341c93", "score": "0.48414296", "text": "public static void visitAssignmentStatementNode(\n ClassWriter cw,\n ClassNode classNode,\n AssignmentStatementNode assignmentStatementNode,\n MethodVisitor mv,\n MethodNode methodNode,\n LocalVarSymbolTable varTable,\n SubroutineSymbolTable subTable,\n boolean debug\n ) throws Exception{\n mv.visitLabel(new Label());\n\n if(assignmentStatementNode.variableNode.indexOptional.isPresent()){\n //assigning into an array at index\n visitAssignVarIntoArray(cw,classNode,assignmentStatementNode,mv,methodNode,varTable,subTable,debug);\n }else{\n visitAssignVarIntoVar(cw,classNode,assignmentStatementNode,mv,methodNode,varTable,subTable,debug);\n }\n\n }", "title": "" }, { "docid": "6b63335fd794332e3e7557b7ac32013e", "score": "0.4798323", "text": "public static Assignment getAssignment(HaxeTree tree)\r\n {\r\n for (HaxeTree i : tree.getChildren())\r\n {\r\n if (i instanceof Assignment)\r\n {\r\n return (Assignment)i;\r\n }\r\n else if (i.getChildCount() > 0)\r\n {\r\n Assignment result = getAssignment(i);\r\n if (result != null)\r\n {\r\n return result;\r\n }\r\n }\r\n }\r\n \r\n return null;\r\n }", "title": "" }, { "docid": "0f8d44e85c0274624f952dcdf07d9f92", "score": "0.47884935", "text": "@NotNull\n static AssignStatementNode parse(@NotNull TokenList tokens) {\n if (!tokens.tokenIs(TokenType.NAME)) {\n return AssignmentNode.parse(tokens);\n }\n if (tokens.tokenIs(tokens.sizeOfVariable(), TokenType.ASSIGN, TokenType.COMMA)) {\n return AssignmentNode.parse(tokens);\n } else {\n return DeclaredAssignmentNode.parse(tokens);\n }\n }", "title": "" }, { "docid": "70091c444c704fe279cf83b9b2bac6f4", "score": "0.4759058", "text": "public final void ruleOpSingleAssign() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.xbase.testlanguages.ui/src-gen/org/eclipse/xtext/xbase/testlanguages/ui/contentassist/antlr/internal/InternalContentAssistFragmentTestLang.g:186:2: ( ( '=' ) )\n // ../org.eclipse.xtext.xbase.testlanguages.ui/src-gen/org/eclipse/xtext/xbase/testlanguages/ui/contentassist/antlr/internal/InternalContentAssistFragmentTestLang.g:187:1: ( '=' )\n {\n // ../org.eclipse.xtext.xbase.testlanguages.ui/src-gen/org/eclipse/xtext/xbase/testlanguages/ui/contentassist/antlr/internal/InternalContentAssistFragmentTestLang.g:187:1: ( '=' )\n // ../org.eclipse.xtext.xbase.testlanguages.ui/src-gen/org/eclipse/xtext/xbase/testlanguages/ui/contentassist/antlr/internal/InternalContentAssistFragmentTestLang.g:188:1: '='\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpSingleAssignAccess().getEqualsSignKeyword()); \n }\n match(input,13,FOLLOW_13_in_ruleOpSingleAssign340); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpSingleAssignAccess().getEqualsSignKeyword()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "1264fbb0de737a6f85aa9749e305137e", "score": "0.47507063", "text": "private ParseTree assign() throws IOException,HandleException{\n // Assign -> VARNAME ASSIGN ExprArith\n usedRule.add(13);\n \n return new ParseTree(\"13 assign\",Arrays.asList(match(LexicalUnit.VARNAME),match(LexicalUnit.ASSIGN),exprArith()),13);\n }", "title": "" }, { "docid": "08f2c37a3abc103ade4944a3dc40fd21", "score": "0.4740624", "text": "public final EugeneParser.assignment_return assignment(boolean defer) throws RecognitionException {\n\t\tEugeneParser.assignment_return retval = new EugeneParser.assignment_return();\n\t\tretval.start = input.LT(1);\n\n\t\tObject root_0 = null;\n\n\t\tToken a=null;\n\t\tToken EQUALS110=null;\n\t\tParserRuleReturnScope lhs =null;\n\t\tParserRuleReturnScope rhs =null;\n\n\t\tObject a_tree=null;\n\t\tObject EQUALS110_tree=null;\n\n\t\ttry {\n\t\t\t// /Users/eoberortner/Projects/CIDAR/Eugene/git/eugene/grammar/Eugene.g:1542:2: (lhs= lhs_assignment[defer] EQUALS (a= AMP )? rhs= rhs_assignment[defer] )\n\t\t\t// /Users/eoberortner/Projects/CIDAR/Eugene/git/eugene/grammar/Eugene.g:1542:4: lhs= lhs_assignment[defer] EQUALS (a= AMP )? rhs= rhs_assignment[defer]\n\t\t\t{\n\t\t\troot_0 = (Object)adaptor.nil();\n\n\n\t\t\tpushFollow(FOLLOW_lhs_assignment_in_assignment2375);\n\t\t\tlhs=lhs_assignment(defer);\n\t\t\tstate._fsp--;\n\n\t\t\tadaptor.addChild(root_0, lhs.getTree());\n\n\t\t\tEQUALS110=(Token)match(input,EQUALS,FOLLOW_EQUALS_in_assignment2378); \n\t\t\tEQUALS110_tree = (Object)adaptor.create(EQUALS110);\n\t\t\tadaptor.addChild(root_0, EQUALS110_tree);\n\n\t\t\t// /Users/eoberortner/Projects/CIDAR/Eugene/git/eugene/grammar/Eugene.g:1542:37: (a= AMP )?\n\t\t\tint alt42=2;\n\t\t\tint LA42_0 = input.LA(1);\n\t\t\tif ( (LA42_0==AMP) ) {\n\t\t\t\talt42=1;\n\t\t\t}\n\t\t\tswitch (alt42) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// /Users/eoberortner/Projects/CIDAR/Eugene/git/eugene/grammar/Eugene.g:1542:38: a= AMP\n\t\t\t\t\t{\n\t\t\t\t\ta=(Token)match(input,AMP,FOLLOW_AMP_in_assignment2383); \n\t\t\t\t\ta_tree = (Object)adaptor.create(a);\n\t\t\t\t\tadaptor.addChild(root_0, a_tree);\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\tpushFollow(FOLLOW_rhs_assignment_in_assignment2389);\n\t\t\trhs=rhs_assignment(defer);\n\t\t\tstate._fsp--;\n\n\t\t\tadaptor.addChild(root_0, rhs.getTree());\n\n\n\t\t\tif(!defer && this.PARSING_PHASE == ParsingPhase.INTERPRETING) {\n\t\t\t try {\n\n\t\t\t /* --- NEW VERSION: Updated Oct 15th, 2014 \n\t\t\t by Ernst Oberortner\n\t\t\t \n\t\t\t in the new version, we do the parsing of the \n\t\t\t LHS in the interpreter.\n\t\t\t this influences the efficiency though (2x parsing and non-recursive interpretation).\n\t\t\t however, it works better, more stable, and is easier to understand and improve.\n\t\t\t \n\t\t\t To my offspring: Please improve!\n\n\t\t\t In general, the Eugene interpreter needs an Abstract Syntax Tree (AST)\n\t\t\t Example: \n\t\t\t this.interp.assignment((lhs!=null?((Object)lhs.getTree()):null), (rhs!=null?((EugeneParser.rhs_assignment_return)rhs).e:null));\n\t\t\t */\n\t\t\t this.interp.assignment(\n\t\t\t (lhs!=null?input.toString(lhs.start,lhs.stop):null), \n\t\t\t (rhs!=null?((EugeneParser.rhs_assignment_return)rhs).e:null));\n\t\t\t \n\t\t\t } catch(EugeneException ee) {\n\t\t\t printError(ee.getLocalizedMessage()); \n\t\t\t }\n\t\t\t}\t\n\t\t\t\t\n\t\t\t}\n\n\t\t\tretval.stop = input.LT(-1);\n\n\t\t\tretval.tree = (Object)adaptor.rulePostProcessing(root_0);\n\t\t\tadaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n\t\t}\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\trecover(input,re);\n\t\t\tretval.tree = (Object)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t\treturn retval;\n\t}", "title": "" }, { "docid": "40ae6e0c0eca5495aa1013cca90deb14", "score": "0.47290212", "text": "public final void rule__Domain__TypeAssignment_7_0_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalVertigoDsl.g:17595:1: ( ( RULE_STRING ) )\n // InternalVertigoDsl.g:17596:2: ( RULE_STRING )\n {\n // InternalVertigoDsl.g:17596:2: ( RULE_STRING )\n // InternalVertigoDsl.g:17597:3: RULE_STRING\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDomainAccess().getTypeSTRINGTerminalRuleCall_7_0_2_0()); \n }\n match(input,RULE_STRING,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDomainAccess().getTypeSTRINGTerminalRuleCall_7_0_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ab1e012380f1a14c7784a2618ff3fd4f", "score": "0.4691871", "text": "public final void rule__Type__StringAssignment_0_1() throws RecognitionException {\n\n\t\tint stackSize = keepStackSize();\n\n\t\ttry {\n\t\t\t// InternalAgreeParser.g:28119:1: ( ( ruleprimTypes ) )\n\t\t\t// InternalAgreeParser.g:28120:1: ( ruleprimTypes )\n\t\t\t{\n\t\t\t\t// InternalAgreeParser.g:28120:1: ( ruleprimTypes )\n\t\t\t\t// InternalAgreeParser.g:28121:1: ruleprimTypes\n\t\t\t\t{\n\t\t\t\t\tif (state.backtracking == 0) {\n\t\t\t\t\t\tbefore(grammarAccess.getTypeAccess().getStringPrimTypesParserRuleCall_0_1_0());\n\t\t\t\t\t}\n\t\t\t\t\tpushFollow(FollowSets000.FOLLOW_2);\n\t\t\t\t\truleprimTypes();\n\n\t\t\t\t\tstate._fsp--;\n\t\t\t\t\tif (state.failed) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif (state.backtracking == 0) {\n\t\t\t\t\t\tafter(grammarAccess.getTypeAccess().getStringPrimTypesParserRuleCall_0_1_0());\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t} catch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\trecover(input, re);\n\t\t} finally {\n\n\t\t\trestoreStackSize(stackSize);\n\n\t\t}\n\t\treturn;\n\t}", "title": "" }, { "docid": "d4840310b1cb1f9c0645744c1629049c", "score": "0.46901682", "text": "@Override\n public AnnotatedTypeMirror visitAssignment(AssignmentTree node,\n AnnotatedTypeFactory f) {\n return visit(node.getVariable(), f);\n }", "title": "" }, { "docid": "9c3bf831a2bd4faf5948a7c94cb714df", "score": "0.46868417", "text": "public final void rule__ArrayLiteralExpr__ElemsAssignment_1_2_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalAgreeParser.g:33405:1: ( ( ruleExpr ) )\n // InternalAgreeParser.g:33406:1: ( ruleExpr )\n {\n // InternalAgreeParser.g:33406:1: ( ruleExpr )\n // InternalAgreeParser.g:33407:1: ruleExpr\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getArrayLiteralExprAccess().getElemsExprParserRuleCall_1_2_1_0()); \n }\n pushFollow(FollowSets000.FOLLOW_2);\n ruleExpr();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getArrayLiteralExprAccess().getElemsExprParserRuleCall_1_2_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "2d8914ce4a1d4f7f6ae028aa4ad0884d", "score": "0.46800876", "text": "public final void rule__AlterDomain__TypeAssignment_7_0_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalVertigoDsl.g:17689:1: ( ( RULE_STRING ) )\n // InternalVertigoDsl.g:17690:2: ( RULE_STRING )\n {\n // InternalVertigoDsl.g:17690:2: ( RULE_STRING )\n // InternalVertigoDsl.g:17691:3: RULE_STRING\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getAlterDomainAccess().getTypeSTRINGTerminalRuleCall_7_0_2_0()); \n }\n match(input,RULE_STRING,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getAlterDomainAccess().getTypeSTRINGTerminalRuleCall_7_0_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "4dbcb26dd6f63e81c640ca9283d4c996", "score": "0.46698678", "text": "public AssignmentType getType()\n {\n return type;\n }", "title": "" }, { "docid": "7fa5fa62f2d2ba235d1255c4dbaafb17", "score": "0.46608013", "text": "public final void rule__Operation__ContentsAssignment_1_2_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.StateMachine.sm.ui/src-gen/org/xtext/StateMachine/sm/ui/contentassist/antlr/internal/InternalSM.g:3532:1: ( ( ruleAssignment ) )\n // ../org.xtext.StateMachine.sm.ui/src-gen/org/xtext/StateMachine/sm/ui/contentassist/antlr/internal/InternalSM.g:3533:1: ( ruleAssignment )\n {\n // ../org.xtext.StateMachine.sm.ui/src-gen/org/xtext/StateMachine/sm/ui/contentassist/antlr/internal/InternalSM.g:3533:1: ( ruleAssignment )\n // ../org.xtext.StateMachine.sm.ui/src-gen/org/xtext/StateMachine/sm/ui/contentassist/antlr/internal/InternalSM.g:3534:1: ruleAssignment\n {\n before(grammarAccess.getOperationAccess().getContentsAssignmentParserRuleCall_1_2_1_0()); \n pushFollow(FollowSets000.FOLLOW_ruleAssignment_in_rule__Operation__ContentsAssignment_1_2_17126);\n ruleAssignment();\n\n state._fsp--;\n\n after(grammarAccess.getOperationAccess().getContentsAssignmentParserRuleCall_1_2_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6d02cec1d5cab5c9cd8540f9c6911ed4", "score": "0.46568507", "text": "public final void rule__Operation__ContentsAssignment_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.StateMachine.sm.ui/src-gen/org/xtext/StateMachine/sm/ui/contentassist/antlr/internal/InternalSM.g:3517:1: ( ( ruleAssignment ) )\n // ../org.xtext.StateMachine.sm.ui/src-gen/org/xtext/StateMachine/sm/ui/contentassist/antlr/internal/InternalSM.g:3518:1: ( ruleAssignment )\n {\n // ../org.xtext.StateMachine.sm.ui/src-gen/org/xtext/StateMachine/sm/ui/contentassist/antlr/internal/InternalSM.g:3518:1: ( ruleAssignment )\n // ../org.xtext.StateMachine.sm.ui/src-gen/org/xtext/StateMachine/sm/ui/contentassist/antlr/internal/InternalSM.g:3519:1: ruleAssignment\n {\n before(grammarAccess.getOperationAccess().getContentsAssignmentParserRuleCall_1_1_0()); \n pushFollow(FollowSets000.FOLLOW_ruleAssignment_in_rule__Operation__ContentsAssignment_1_17095);\n ruleAssignment();\n\n state._fsp--;\n\n after(grammarAccess.getOperationAccess().getContentsAssignmentParserRuleCall_1_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "a3c40c167f1b593e0b59207e33ddffd0", "score": "0.4656278", "text": "public final void rule__ValueRange__RangeTypeAssignment_6() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalStateSpecification.g:8054:1: ( ( RULE_STRING ) )\n // InternalStateSpecification.g:8055:1: ( RULE_STRING )\n {\n // InternalStateSpecification.g:8055:1: ( RULE_STRING )\n // InternalStateSpecification.g:8056:1: RULE_STRING\n {\n before(grammarAccess.getValueRangeAccess().getRangeTypeSTRINGTerminalRuleCall_6_0()); \n match(input,RULE_STRING,FOLLOW_2); \n after(grammarAccess.getValueRangeAccess().getRangeTypeSTRINGTerminalRuleCall_6_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ad4f07bdc2d35e7438c9bfdadbb95407", "score": "0.464799", "text": "public final void rule__XAssignment__RightOperandAssignment_1_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.xbase.testlanguages.ui/src-gen/org/eclipse/xtext/xbase/testlanguages/ui/contentassist/antlr/internal/InternalContentAssistFragmentTestLang.g:17105:1: ( ( ruleXAssignment ) )\n // ../org.eclipse.xtext.xbase.testlanguages.ui/src-gen/org/eclipse/xtext/xbase/testlanguages/ui/contentassist/antlr/internal/InternalContentAssistFragmentTestLang.g:17106:1: ( ruleXAssignment )\n {\n // ../org.eclipse.xtext.xbase.testlanguages.ui/src-gen/org/eclipse/xtext/xbase/testlanguages/ui/contentassist/antlr/internal/InternalContentAssistFragmentTestLang.g:17106:1: ( ruleXAssignment )\n // ../org.eclipse.xtext.xbase.testlanguages.ui/src-gen/org/eclipse/xtext/xbase/testlanguages/ui/contentassist/antlr/internal/InternalContentAssistFragmentTestLang.g:17107:1: ruleXAssignment\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXAssignmentAccess().getRightOperandXAssignmentParserRuleCall_1_1_1_0()); \n }\n pushFollow(FOLLOW_ruleXAssignment_in_rule__XAssignment__RightOperandAssignment_1_1_134383);\n ruleXAssignment();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXAssignmentAccess().getRightOperandXAssignmentParserRuleCall_1_1_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f230f2cee90c69fa2228ddb12bdd886a", "score": "0.4631198", "text": "public final void rule__ArrayLiteralExpr__ElemsAssignment_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalAgreeParser.g:33390:1: ( ( ruleExpr ) )\n // InternalAgreeParser.g:33391:1: ( ruleExpr )\n {\n // InternalAgreeParser.g:33391:1: ( ruleExpr )\n // InternalAgreeParser.g:33392:1: ruleExpr\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getArrayLiteralExprAccess().getElemsExprParserRuleCall_1_1_0()); \n }\n pushFollow(FollowSets000.FOLLOW_2);\n ruleExpr();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getArrayLiteralExprAccess().getElemsExprParserRuleCall_1_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "55f469d62b2e317da1452737a4718332", "score": "0.46293303", "text": "public final void ruleXAssignment() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.xbase.testlanguages.ui/src-gen/org/eclipse/xtext/xbase/testlanguages/ui/contentassist/antlr/internal/InternalContentAssistFragmentTestLang.g:158:2: ( ( ( rule__XAssignment__Alternatives ) ) )\n // ../org.eclipse.xtext.xbase.testlanguages.ui/src-gen/org/eclipse/xtext/xbase/testlanguages/ui/contentassist/antlr/internal/InternalContentAssistFragmentTestLang.g:159:1: ( ( rule__XAssignment__Alternatives ) )\n {\n // ../org.eclipse.xtext.xbase.testlanguages.ui/src-gen/org/eclipse/xtext/xbase/testlanguages/ui/contentassist/antlr/internal/InternalContentAssistFragmentTestLang.g:159:1: ( ( rule__XAssignment__Alternatives ) )\n // ../org.eclipse.xtext.xbase.testlanguages.ui/src-gen/org/eclipse/xtext/xbase/testlanguages/ui/contentassist/antlr/internal/InternalContentAssistFragmentTestLang.g:160:1: ( rule__XAssignment__Alternatives )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXAssignmentAccess().getAlternatives()); \n }\n // ../org.eclipse.xtext.xbase.testlanguages.ui/src-gen/org/eclipse/xtext/xbase/testlanguages/ui/contentassist/antlr/internal/InternalContentAssistFragmentTestLang.g:161:1: ( rule__XAssignment__Alternatives )\n // ../org.eclipse.xtext.xbase.testlanguages.ui/src-gen/org/eclipse/xtext/xbase/testlanguages/ui/contentassist/antlr/internal/InternalContentAssistFragmentTestLang.g:161:2: rule__XAssignment__Alternatives\n {\n pushFollow(FOLLOW_rule__XAssignment__Alternatives_in_ruleXAssignment279);\n rule__XAssignment__Alternatives();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXAssignmentAccess().getAlternatives()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "49bc4943069ee288782fd1847aeddcb2", "score": "0.46240827", "text": "public final void rule__RtContents__Alternatives_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // InternalRtVil.g:2309:1: ( ( ( rule__RtContents__ElementsAssignment_1_0 ) ) | ( ( rule__RtContents__ElementsAssignment_1_1 ) ) | ( ( rule__RtContents__ElementsAssignment_1_2 ) ) | ( ( rule__RtContents__ElementsAssignment_1_3 ) ) | ( ( rule__RtContents__ElementsAssignment_1_4 ) ) | ( ( rule__RtContents__ElementsAssignment_1_5 ) ) )\r\n int alt1=6;\r\n alt1 = dfa1.predict(input);\r\n switch (alt1) {\r\n case 1 :\r\n // InternalRtVil.g:2310:1: ( ( rule__RtContents__ElementsAssignment_1_0 ) )\r\n {\r\n // InternalRtVil.g:2310:1: ( ( rule__RtContents__ElementsAssignment_1_0 ) )\r\n // InternalRtVil.g:2311:1: ( rule__RtContents__ElementsAssignment_1_0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getRtContentsAccess().getElementsAssignment_1_0()); \r\n }\r\n // InternalRtVil.g:2312:1: ( rule__RtContents__ElementsAssignment_1_0 )\r\n // InternalRtVil.g:2312:2: rule__RtContents__ElementsAssignment_1_0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__RtContents__ElementsAssignment_1_0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getRtContentsAccess().getElementsAssignment_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // InternalRtVil.g:2316:6: ( ( rule__RtContents__ElementsAssignment_1_1 ) )\r\n {\r\n // InternalRtVil.g:2316:6: ( ( rule__RtContents__ElementsAssignment_1_1 ) )\r\n // InternalRtVil.g:2317:1: ( rule__RtContents__ElementsAssignment_1_1 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getRtContentsAccess().getElementsAssignment_1_1()); \r\n }\r\n // InternalRtVil.g:2318:1: ( rule__RtContents__ElementsAssignment_1_1 )\r\n // InternalRtVil.g:2318:2: rule__RtContents__ElementsAssignment_1_1\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__RtContents__ElementsAssignment_1_1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getRtContentsAccess().getElementsAssignment_1_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // InternalRtVil.g:2322:6: ( ( rule__RtContents__ElementsAssignment_1_2 ) )\r\n {\r\n // InternalRtVil.g:2322:6: ( ( rule__RtContents__ElementsAssignment_1_2 ) )\r\n // InternalRtVil.g:2323:1: ( rule__RtContents__ElementsAssignment_1_2 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getRtContentsAccess().getElementsAssignment_1_2()); \r\n }\r\n // InternalRtVil.g:2324:1: ( rule__RtContents__ElementsAssignment_1_2 )\r\n // InternalRtVil.g:2324:2: rule__RtContents__ElementsAssignment_1_2\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__RtContents__ElementsAssignment_1_2();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getRtContentsAccess().getElementsAssignment_1_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 4 :\r\n // InternalRtVil.g:2328:6: ( ( rule__RtContents__ElementsAssignment_1_3 ) )\r\n {\r\n // InternalRtVil.g:2328:6: ( ( rule__RtContents__ElementsAssignment_1_3 ) )\r\n // InternalRtVil.g:2329:1: ( rule__RtContents__ElementsAssignment_1_3 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getRtContentsAccess().getElementsAssignment_1_3()); \r\n }\r\n // InternalRtVil.g:2330:1: ( rule__RtContents__ElementsAssignment_1_3 )\r\n // InternalRtVil.g:2330:2: rule__RtContents__ElementsAssignment_1_3\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__RtContents__ElementsAssignment_1_3();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getRtContentsAccess().getElementsAssignment_1_3()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 5 :\r\n // InternalRtVil.g:2334:6: ( ( rule__RtContents__ElementsAssignment_1_4 ) )\r\n {\r\n // InternalRtVil.g:2334:6: ( ( rule__RtContents__ElementsAssignment_1_4 ) )\r\n // InternalRtVil.g:2335:1: ( rule__RtContents__ElementsAssignment_1_4 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getRtContentsAccess().getElementsAssignment_1_4()); \r\n }\r\n // InternalRtVil.g:2336:1: ( rule__RtContents__ElementsAssignment_1_4 )\r\n // InternalRtVil.g:2336:2: rule__RtContents__ElementsAssignment_1_4\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__RtContents__ElementsAssignment_1_4();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getRtContentsAccess().getElementsAssignment_1_4()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 6 :\r\n // InternalRtVil.g:2340:6: ( ( rule__RtContents__ElementsAssignment_1_5 ) )\r\n {\r\n // InternalRtVil.g:2340:6: ( ( rule__RtContents__ElementsAssignment_1_5 ) )\r\n // InternalRtVil.g:2341:1: ( rule__RtContents__ElementsAssignment_1_5 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getRtContentsAccess().getElementsAssignment_1_5()); \r\n }\r\n // InternalRtVil.g:2342:1: ( rule__RtContents__ElementsAssignment_1_5 )\r\n // InternalRtVil.g:2342:2: rule__RtContents__ElementsAssignment_1_5\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__RtContents__ElementsAssignment_1_5();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getRtContentsAccess().getElementsAssignment_1_5()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "ef3d55f5c5b492ed1b7a7846980be5b7", "score": "0.4616028", "text": "public void setPostAssignments(Assignment<Object>[] assignments)\n { this.postAssignments=assignments;\n }", "title": "" }, { "docid": "18084fc69c6290a7e52c99b358989bc3", "score": "0.4609832", "text": "public final void rule__NodeStmt__StrAssignment_1_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalAgreeParser.g:31841:1: ( ( RULE_STRING ) )\n // InternalAgreeParser.g:31842:1: ( RULE_STRING )\n {\n // InternalAgreeParser.g:31842:1: ( RULE_STRING )\n // InternalAgreeParser.g:31843:1: RULE_STRING\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getNodeStmtAccess().getStrSTRINGTerminalRuleCall_1_2_0()); \n }\n match(input,RULE_STRING,FollowSets000.FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getNodeStmtAccess().getStrSTRINGTerminalRuleCall_1_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "5928d298388c0cd890195e4625294981", "score": "0.460515", "text": "public final void rule__ArrayLiteralExpr__ElemsAssignment_1_0_0_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalAgreeParser.g:33375:1: ( ( ruleExpr ) )\n // InternalAgreeParser.g:33376:1: ( ruleExpr )\n {\n // InternalAgreeParser.g:33376:1: ( ruleExpr )\n // InternalAgreeParser.g:33377:1: ruleExpr\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getArrayLiteralExprAccess().getElemsExprParserRuleCall_1_0_0_1_0()); \n }\n pushFollow(FollowSets000.FOLLOW_2);\n ruleExpr();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getArrayLiteralExprAccess().getElemsExprParserRuleCall_1_0_0_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "51e0ff18323867f42ff1b1c51b862201", "score": "0.460043", "text": "private ResultValue assignmentStmt(ExecMode bExec) throws Exception{\n //System.out.println(\"....Enter assignment...\");\n ResultValue res = new ResultValue();\n if(!(bExec == ExecMode.EXECUTE)){\n skipTo(\";\");\n return res;\n }\n if(scan.currentToken.subClassif != SubClassif.IDENTIFIER){\n error(\"Expected a variable for assignment\");\n }\n\n if(expr.isArray(scan.currentToken)){\n //ResultValue arrayAssignment = arrayToArrayAssignment(scan.currentToken);\n //return arrayAssignment;\n return arrayToArrayAssignment(scan.currentToken);\n //error(\"We are trying to copy an existing array into another, we dont have anything to handle it: \" + scan.currentToken.tokenStr);\n }\n\n String targetVariable = scan.currentToken.tokenStr;\n scan.getNext(); //Move current token to be on the operator\n if(scan.currentToken.primClassif != Classif.OPERATOR){\n error(\"Expected an assignment operator token after variable.\");\n }\n\n //Declare variables that might need to be used\n ResultValue res1;\n ResultValue res2;\n Numeric num1;\n Numeric num2;\n\n switch(scan.currentToken.tokenStr){\n case \"=\":\n //print(\"Equal sign assignment\");\n res1 = storageMgr.getVariableValue(targetVariable);\n scan.getNext();\n\n if (res1.type == SubClassif.DATE) {\n res2 = expr.evaluateDate();\n } else {\n res2 = expr.evaluateExpression(\";\");\n }\n //System.out.println(\"From assignment>>>\" + res2);\n res = assign(targetVariable, res2);\n break;\n case \"-=\": // x -= 5+1;\n scan.getNext();\n res2 = expr.evaluateExpression(\";\");\n num2 = new Numeric(this, res2, \"-=\", \"2nd operator\");\n res1 = storageMgr.getVariableValue(targetVariable);\n num1 = new Numeric(this, res1, \"-=\", \"1st operator\");\n res = assign(targetVariable, util.subtract(this, num1, num2));\n break;\n case \"+=\":\n scan.getNext();\n res2 = expr.evaluateExpression(\";\");\n num2 = new Numeric(this, res2, \"+=\", \"2nd operator\");\n res1 = storageMgr.getVariableValue(targetVariable);\n num1 = new Numeric(this, res1, \"+=\", \"1st operator\");\n res = assign(targetVariable, util.add(this, num1, num2));\n break;\n default:\n\n error(\"Expected an assignment operator token after variable, saw \" + scan.currentToken.tokenStr);\n }\n return res;\n }", "title": "" }, { "docid": "f8c0957511c0ea41c2773d32197d7d29", "score": "0.4599659", "text": "public R visit(AssignmentStatement n, A argu) {\n R _ret = null;\n String id = n.f0.accept(this, argu).toString();\n // n.f1.accept(this, argu);\n // n.f2.accept(this, argu);\n // n.f3.accept(this, argu);\n\n if(argu.toString().equals(\"entry\")){\n LoopAssignmentStmt las = new LoopAssignmentStmt(id, 0, n.f2);\n if(n.f2.f0.which==5){\n las.type = 1;\n las.aas = (ArrayAccessStmt)n.f2.f0.choice.accept(this, argu);\n }\n this.loopStmts.add(las);\n }\n\n return _ret;\n }", "title": "" }, { "docid": "a139f8d62eda97ffaeb03107ac881f35", "score": "0.45950115", "text": "public Assignment assignment() {\r\n \t// target\r\n \t\t\tmatch(TokenType.AssignText);\r\n \t\t\tmatch(TokenType.TargetText);\r\n \t\t\tmatch(TokenType.Assign);\r\n\t\t\t\tVariable v = new Variable(token.value());\r\n \t\t\tmatch(TokenType.Identifier);\r\n\t\t\t\tmatch(TokenType.RightBrace);\r\n \t\t\tExpression source = expression();\r\n \t\t\tmatch(TokenType.LeftBrace);\r\n\t\t\t\tmatch(TokenType.Divide);\r\n\t\t\t\tmatch(TokenType.AssignText);\r\n\t\t\t\tmatch(TokenType.RightBrace);\r\n \t\t\tmatch(TokenType.LeftBrace);\r\n \t\t\treturn new Assignment(v, source);\r\n }", "title": "" }, { "docid": "abc6024d6ec53e71d5b77e8e94782bf1", "score": "0.45926553", "text": "public final void rule__ArrayLiteralExpr__Group_1_2__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalAgreeParser.g:26217:1: ( ( ( rule__ArrayLiteralExpr__ElemsAssignment_1_2_1 ) ) )\n // InternalAgreeParser.g:26218:1: ( ( rule__ArrayLiteralExpr__ElemsAssignment_1_2_1 ) )\n {\n // InternalAgreeParser.g:26218:1: ( ( rule__ArrayLiteralExpr__ElemsAssignment_1_2_1 ) )\n // InternalAgreeParser.g:26219:1: ( rule__ArrayLiteralExpr__ElemsAssignment_1_2_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getArrayLiteralExprAccess().getElemsAssignment_1_2_1()); \n }\n // InternalAgreeParser.g:26220:1: ( rule__ArrayLiteralExpr__ElemsAssignment_1_2_1 )\n // InternalAgreeParser.g:26220:2: rule__ArrayLiteralExpr__ElemsAssignment_1_2_1\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule__ArrayLiteralExpr__ElemsAssignment_1_2_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getArrayLiteralExprAccess().getElemsAssignment_1_2_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "db483d1fef3515b4eebaa34263534bd5", "score": "0.45922208", "text": "public final void rule__Domain__IndexTypeAssignment_7_2_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalVertigoDsl.g:17625:1: ( ( RULE_STRING ) )\n // InternalVertigoDsl.g:17626:2: ( RULE_STRING )\n {\n // InternalVertigoDsl.g:17626:2: ( RULE_STRING )\n // InternalVertigoDsl.g:17627:3: RULE_STRING\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDomainAccess().getIndexTypeSTRINGTerminalRuleCall_7_2_2_0()); \n }\n match(input,RULE_STRING,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDomainAccess().getIndexTypeSTRINGTerminalRuleCall_7_2_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6f043184a71e3bd1669d2cfb1ed75b48", "score": "0.45910615", "text": "public final void rule__ArrayLiteralExpr__Group_1_0_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalAgreeParser.g:26122:1: ( ( ( rule__ArrayLiteralExpr__ElemsAssignment_1_0_0_1 ) ) )\n // InternalAgreeParser.g:26123:1: ( ( rule__ArrayLiteralExpr__ElemsAssignment_1_0_0_1 ) )\n {\n // InternalAgreeParser.g:26123:1: ( ( rule__ArrayLiteralExpr__ElemsAssignment_1_0_0_1 ) )\n // InternalAgreeParser.g:26124:1: ( rule__ArrayLiteralExpr__ElemsAssignment_1_0_0_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getArrayLiteralExprAccess().getElemsAssignment_1_0_0_1()); \n }\n // InternalAgreeParser.g:26125:1: ( rule__ArrayLiteralExpr__ElemsAssignment_1_0_0_1 )\n // InternalAgreeParser.g:26125:2: rule__ArrayLiteralExpr__ElemsAssignment_1_0_0_1\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule__ArrayLiteralExpr__ElemsAssignment_1_0_0_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getArrayLiteralExprAccess().getElemsAssignment_1_0_0_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6abed1bf7b14d6db412bac36fce30fa1", "score": "0.4588422", "text": "public final void rule__ArrayLiteralExpr__Group_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalAgreeParser.g:25965:1: ( ( ( rule__ArrayLiteralExpr__ElemsAssignment_1_1 ) ) )\n // InternalAgreeParser.g:25966:1: ( ( rule__ArrayLiteralExpr__ElemsAssignment_1_1 ) )\n {\n // InternalAgreeParser.g:25966:1: ( ( rule__ArrayLiteralExpr__ElemsAssignment_1_1 ) )\n // InternalAgreeParser.g:25967:1: ( rule__ArrayLiteralExpr__ElemsAssignment_1_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getArrayLiteralExprAccess().getElemsAssignment_1_1()); \n }\n // InternalAgreeParser.g:25968:1: ( rule__ArrayLiteralExpr__ElemsAssignment_1_1 )\n // InternalAgreeParser.g:25968:2: rule__ArrayLiteralExpr__ElemsAssignment_1_1\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule__ArrayLiteralExpr__ElemsAssignment_1_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getArrayLiteralExprAccess().getElemsAssignment_1_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "eaf8f462f40abacb1f8fb7ea14d209df", "score": "0.45828858", "text": "public NodeRelationEqual( NodeExpr left,NodeExpr right )\n\t{\n\t\t_left = left;\n\t\t_right = right;\n\t}", "title": "" }, { "docid": "403c26f1093a49b6e3dc7f67503c4dcf", "score": "0.4581183", "text": "public final void rule__AlterDomain__StoreTypeAssignment_7_1_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalVertigoDsl.g:17704:1: ( ( RULE_STRING ) )\n // InternalVertigoDsl.g:17705:2: ( RULE_STRING )\n {\n // InternalVertigoDsl.g:17705:2: ( RULE_STRING )\n // InternalVertigoDsl.g:17706:3: RULE_STRING\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getAlterDomainAccess().getStoreTypeSTRINGTerminalRuleCall_7_1_2_0()); \n }\n match(input,RULE_STRING,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getAlterDomainAccess().getStoreTypeSTRINGTerminalRuleCall_7_1_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "1b56ad8e16edc2318259c1220b7cd506", "score": "0.45584077", "text": "public final void rule__ComponentMapping__AssignmentAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:6355:1: ( ( ruleAssignment ) )\n // InternalMyDsl.g:6356:2: ( ruleAssignment )\n {\n // InternalMyDsl.g:6356:2: ( ruleAssignment )\n // InternalMyDsl.g:6357:3: ruleAssignment\n {\n before(grammarAccess.getComponentMappingAccess().getAssignmentAssignmentParserRuleCall_2_0()); \n pushFollow(FOLLOW_2);\n ruleAssignment();\n\n state._fsp--;\n\n after(grammarAccess.getComponentMappingAccess().getAssignmentAssignmentParserRuleCall_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "194e94ec47b8eb5ab1758c6209536019", "score": "0.4552161", "text": "public final void rule__Domain__StoreTypeAssignment_7_1_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalVertigoDsl.g:17610:1: ( ( RULE_STRING ) )\n // InternalVertigoDsl.g:17611:2: ( RULE_STRING )\n {\n // InternalVertigoDsl.g:17611:2: ( RULE_STRING )\n // InternalVertigoDsl.g:17612:3: RULE_STRING\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDomainAccess().getStoreTypeSTRINGTerminalRuleCall_7_1_2_0()); \n }\n match(input,RULE_STRING,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDomainAccess().getStoreTypeSTRINGTerminalRuleCall_7_1_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f808315c5bdd1b0b2e7968aa88a69cc8", "score": "0.4550917", "text": "public final void rule__ArrayLiteralExpr__ElemsAssignment_0_0_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalAgreeParser.g:33360:1: ( ( ruleExpr ) )\n // InternalAgreeParser.g:33361:1: ( ruleExpr )\n {\n // InternalAgreeParser.g:33361:1: ( ruleExpr )\n // InternalAgreeParser.g:33362:1: ruleExpr\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getArrayLiteralExprAccess().getElemsExprParserRuleCall_0_0_1_0()); \n }\n pushFollow(FollowSets000.FOLLOW_2);\n ruleExpr();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getArrayLiteralExprAccess().getElemsExprParserRuleCall_0_0_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "de067d87b8e14f4319f79bcc92e35e05", "score": "0.45479476", "text": "public final void rule__EqualityExpressionPart__OpAssignment_0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // InternalRtVil.g:16434:1: ( ( ruleEqualityOperator ) )\r\n // InternalRtVil.g:16435:1: ( ruleEqualityOperator )\r\n {\r\n // InternalRtVil.g:16435:1: ( ruleEqualityOperator )\r\n // InternalRtVil.g:16436:1: ruleEqualityOperator\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getEqualityExpressionPartAccess().getOpEqualityOperatorParserRuleCall_0_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleEqualityOperator();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getEqualityExpressionPartAccess().getOpEqualityOperatorParserRuleCall_0_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "e2d34520fe52579eeaf06abc1f2983a1", "score": "0.45361382", "text": "@Check\n\tpublic void verifyAssignmentIDs(AssignmentStatement as) {\n\t\tIdList idl = as.getIds();\n\t\t\n\t\tint i=0;\n\t\tfor(VariableRef vr : idl.getIds()) {\n\t\t\tif(vr instanceof ConstantDeclaration) {\n\t\t\t\terror(\"Constants may not be assigned in a function.\", idl, LimpPackage.Literals.ID_LIST__IDS, i);\n\t\t\t}\n\t\t\t\n\t\t\tif(vr instanceof InputArg) {\n\t\t\t\terror(\"Inputs may not be assigned.\", idl, LimpPackage.Literals.ID_LIST__IDS, i);\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t}", "title": "" }, { "docid": "5776c5ea2a5e202301912f5760e7b129", "score": "0.45318273", "text": "@Test\n public void test() {\n TestUtil.testEquals(new Object[][]{\n {\"ada\", ArrayUtil.of(\"abc\", \"car\", \"ada\", \"racecar\", \"cool\")},\n {\"racecar\", ArrayUtil.of(\"notapalindrome\", \"racecar\")},\n {\"\", ArrayUtil.of(\"def\", \"ghi\")}\n });\n }", "title": "" }, { "docid": "389e8b93049ccb41b7118f9c2f9505a9", "score": "0.45315358", "text": "public final void rule__Solution__AssignmentsAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:6200:1: ( ( ruleAssignment ) )\n // InternalMyDsl.g:6201:2: ( ruleAssignment )\n {\n // InternalMyDsl.g:6201:2: ( ruleAssignment )\n // InternalMyDsl.g:6202:3: ruleAssignment\n {\n before(grammarAccess.getSolutionAccess().getAssignmentsAssignmentParserRuleCall_2_0()); \n pushFollow(FOLLOW_2);\n ruleAssignment();\n\n state._fsp--;\n\n after(grammarAccess.getSolutionAccess().getAssignmentsAssignmentParserRuleCall_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "722aace52731bcec9e2c411d0b87650e", "score": "0.4524128", "text": "public final void rule__ArrayLiteralExpr__Group_0_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalAgreeParser.g:25871:1: ( ( ( rule__ArrayLiteralExpr__ElemsAssignment_0_0_1 ) ) )\n // InternalAgreeParser.g:25872:1: ( ( rule__ArrayLiteralExpr__ElemsAssignment_0_0_1 ) )\n {\n // InternalAgreeParser.g:25872:1: ( ( rule__ArrayLiteralExpr__ElemsAssignment_0_0_1 ) )\n // InternalAgreeParser.g:25873:1: ( rule__ArrayLiteralExpr__ElemsAssignment_0_0_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getArrayLiteralExprAccess().getElemsAssignment_0_0_1()); \n }\n // InternalAgreeParser.g:25874:1: ( rule__ArrayLiteralExpr__ElemsAssignment_0_0_1 )\n // InternalAgreeParser.g:25874:2: rule__ArrayLiteralExpr__ElemsAssignment_0_0_1\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule__ArrayLiteralExpr__ElemsAssignment_0_0_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getArrayLiteralExprAccess().getElemsAssignment_0_0_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "3448a2f2a5a207c52f0a931e12d0a8ea", "score": "0.4522916", "text": "public static boolean testType(String s, String[] a)\r\n/* 368: */ {\r\n/* 369:396 */ for (int i = 0; i < a.length; i++) {\r\n/* 370:397 */ if (s.equalsIgnoreCase(a[i])) {\r\n/* 371:398 */ return true;\r\n/* 372: */ }\r\n/* 373: */ }\r\n/* 374:401 */ return false;\r\n/* 375: */ }", "title": "" }, { "docid": "31b9d17cf769cdedb5bab8408ac8bd57", "score": "0.45228308", "text": "public final void ruleOpSingleAssign() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalJavaFXDsl.g:917:2: ( ( '=' ) )\r\n // InternalJavaFXDsl.g:918:2: ( '=' )\r\n {\r\n // InternalJavaFXDsl.g:918:2: ( '=' )\r\n // InternalJavaFXDsl.g:919:3: '='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpSingleAssignAccess().getEqualsSignKeyword()); \r\n }\r\n match(input,13,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpSingleAssignAccess().getEqualsSignKeyword()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "dd28461eb6abe652df349d48df149727", "score": "0.45213655", "text": "public final void rule__XRelationalExpression__Group_1_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.xtext.xbase.testlanguages.ui/src-gen/org/eclipse/xtext/xbase/testlanguages/ui/contentassist/antlr/internal/InternalContentAssistFragmentTestLang.g:4981:1: ( ( ( rule__XRelationalExpression__TypeAssignment_1_0_1 ) ) )\n // ../org.eclipse.xtext.xbase.testlanguages.ui/src-gen/org/eclipse/xtext/xbase/testlanguages/ui/contentassist/antlr/internal/InternalContentAssistFragmentTestLang.g:4982:1: ( ( rule__XRelationalExpression__TypeAssignment_1_0_1 ) )\n {\n // ../org.eclipse.xtext.xbase.testlanguages.ui/src-gen/org/eclipse/xtext/xbase/testlanguages/ui/contentassist/antlr/internal/InternalContentAssistFragmentTestLang.g:4982:1: ( ( rule__XRelationalExpression__TypeAssignment_1_0_1 ) )\n // ../org.eclipse.xtext.xbase.testlanguages.ui/src-gen/org/eclipse/xtext/xbase/testlanguages/ui/contentassist/antlr/internal/InternalContentAssistFragmentTestLang.g:4983:1: ( rule__XRelationalExpression__TypeAssignment_1_0_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXRelationalExpressionAccess().getTypeAssignment_1_0_1()); \n }\n // ../org.eclipse.xtext.xbase.testlanguages.ui/src-gen/org/eclipse/xtext/xbase/testlanguages/ui/contentassist/antlr/internal/InternalContentAssistFragmentTestLang.g:4984:1: ( rule__XRelationalExpression__TypeAssignment_1_0_1 )\n // ../org.eclipse.xtext.xbase.testlanguages.ui/src-gen/org/eclipse/xtext/xbase/testlanguages/ui/contentassist/antlr/internal/InternalContentAssistFragmentTestLang.g:4984:2: rule__XRelationalExpression__TypeAssignment_1_0_1\n {\n pushFollow(FOLLOW_rule__XRelationalExpression__TypeAssignment_1_0_1_in_rule__XRelationalExpression__Group_1_0__1__Impl10560);\n rule__XRelationalExpression__TypeAssignment_1_0_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXRelationalExpressionAccess().getTypeAssignment_1_0_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e9dac6b653b8cb35b582632861ab237b", "score": "0.45213348", "text": "public final JavaScriptParser.assignmentExpression_return assignmentExpression() throws RecognitionException {\n JavaScriptParser.assignmentExpression_return retval = new JavaScriptParser.assignmentExpression_return();\n retval.start = input.LT(1);\n int assignmentExpression_StartIndex = input.index();\n Object root_0 = null;\n\n Token LT284=null;\n Token LT286=null;\n JavaScriptParser.conditionalExpression_return conditionalExpression282 = null;\n\n JavaScriptParser.leftHandSideExpression_return leftHandSideExpression283 = null;\n\n JavaScriptParser.assignmentOperator_return assignmentOperator285 = null;\n\n JavaScriptParser.assignmentExpression_return assignmentExpression287 = null;\n\n\n Object LT284_tree=null;\n Object LT286_tree=null;\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 69) ) { return retval; }\n // E:\\\\antlr\\\\JavaScript_329.g:372:2: ( conditionalExpression | leftHandSideExpression ( LT )* assignmentOperator ( LT )* assignmentExpression )\n int alt126=2;\n alt126 = dfa126.predict(input);\n switch (alt126) {\n case 1 :\n // E:\\\\antlr\\\\JavaScript_329.g:372:4: conditionalExpression\n {\n root_0 = (Object)adaptor.nil();\n\n pushFollow(FOLLOW_conditionalExpression_in_assignmentExpression2009);\n conditionalExpression282=conditionalExpression();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, conditionalExpression282.getTree());\n\n }\n break;\n case 2 :\n // E:\\\\antlr\\\\JavaScript_329.g:373:4: leftHandSideExpression ( LT )* assignmentOperator ( LT )* assignmentExpression\n {\n root_0 = (Object)adaptor.nil();\n\n pushFollow(FOLLOW_leftHandSideExpression_in_assignmentExpression2014);\n leftHandSideExpression283=leftHandSideExpression();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, leftHandSideExpression283.getTree());\n // E:\\\\antlr\\\\JavaScript_329.g:373:29: ( LT )*\n loop124:\n do {\n int alt124=2;\n int LA124_0 = input.LA(1);\n\n if ( (LA124_0==LT) ) {\n alt124=1;\n }\n\n\n switch (alt124) {\n \tcase 1 :\n \t // E:\\\\antlr\\\\JavaScript_329.g:0:0: LT\n \t {\n \t LT284=(Token)match(input,LT,FOLLOW_LT_in_assignmentExpression2016); if (state.failed) return retval;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop124;\n }\n } while (true);\n\n pushFollow(FOLLOW_assignmentOperator_in_assignmentExpression2020);\n assignmentOperator285=assignmentOperator();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, assignmentOperator285.getTree());\n // E:\\\\antlr\\\\JavaScript_329.g:373:53: ( LT )*\n loop125:\n do {\n int alt125=2;\n int LA125_0 = input.LA(1);\n\n if ( (LA125_0==LT) ) {\n alt125=1;\n }\n\n\n switch (alt125) {\n \tcase 1 :\n \t // E:\\\\antlr\\\\JavaScript_329.g:0:0: LT\n \t {\n \t LT286=(Token)match(input,LT,FOLLOW_LT_in_assignmentExpression2022); if (state.failed) return retval;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop125;\n }\n } while (true);\n\n pushFollow(FOLLOW_assignmentExpression_in_assignmentExpression2026);\n assignmentExpression287=assignmentExpression();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, assignmentExpression287.getTree());\n\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (Object)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (Object)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 69, assignmentExpression_StartIndex); }\n }\n return retval;\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "de4a14fc24c476b7053faa82390da61b", "score": "0.0", "text": "@Override\n\tpublic void organiserUnColloque(String s) {\n\t\tSystem.out.println(\"Le sujet de notre colloque de notre mégalopole est: \"+s);\n\t}", "title": "" } ]
[ { "docid": "f4bccec648e6eb25ae6f4d7165ffc5a1", "score": "0.7037216", "text": "@Override\n\t\t\tpublic void Goruntule() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "27bc40cf2c5e26e0bf8b70807e0bcaed", "score": "0.68683225", "text": "@Override\r\n\tpublic void caminar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.68399656", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65278774", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.6481321", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "4d9e164e4e911df1380f4618e0fe7a08", "score": "0.6446192", "text": "OI (){\n\t\t\n\t}", "title": "" }, { "docid": "b7026792f4497bfcada6c43399e85e01", "score": "0.6412251", "text": "@Override\r\n\tpublic void kellton() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5435fed6c0a9345524c30343d8ed9829", "score": "0.63880783", "text": "@Override\r\n\tpublic void entrenar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d3082ef05aec8dc343ca108ab345f43a", "score": "0.6346641", "text": "@Override\r\n\tpublic void morir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "063ae6a38469d06ddf88fd9af6522171", "score": "0.6303464", "text": "@Override\r\n\tpublic void guru() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d4e15b200c2022658af267c700b34269", "score": "0.6269351", "text": "@Override\n\tpublic void anlegen() {\n\t\t\n\t}", "title": "" }, { "docid": "582acaef2e3110454651d58f22c1b299", "score": "0.62566763", "text": "public void mo14492g() {\n }", "title": "" }, { "docid": "df89b968807fade64158ed6c7401bc7a", "score": "0.6251392", "text": "@Override\r\n\tpublic void afficher() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6237362", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "bd9b859f3a9c1a1565a6602ccdbe7e59", "score": "0.6166928", "text": "@Override\n\tpublic void fiyatt() {\n\n\t}", "title": "" }, { "docid": "a2392cc71aaf87bc730f13f37ecdb439", "score": "0.6154919", "text": "private void apparence()\r\n\t\t{\r\n\t\t//Rien\r\n\t\t}", "title": "" }, { "docid": "fa32f830910aeae71dc86bf338a8b0fc", "score": "0.61459744", "text": "@Override\n\tpublic void genrator() {\n\n\t}", "title": "" }, { "docid": "7ba2946d983bb1e7f8bf10a547e6dc3f", "score": "0.6142578", "text": "public void mo14489d() {\n }", "title": "" }, { "docid": "a6e9388ba580a030c48b527221f8e81a", "score": "0.6141126", "text": "@Override\n\tpublic void actuar() {\n\t\t\n\t}", "title": "" }, { "docid": "fcaf77b6f021a702cb2ac62e6c374cbd", "score": "0.6100913", "text": "@Override\r\n\tpublic void afficher() {\n\r\n\t}", "title": "" }, { "docid": "12c148d05fe753983614cee07240d8f6", "score": "0.6074055", "text": "@Override\n\t\t\t\tpublic void ll() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "ad4d9339a0e3b347b6df9466d063badd", "score": "0.60696864", "text": "public void piocher(){\n\t\t\n\t}", "title": "" }, { "docid": "42693116fba02f3f07be1ab752c6d9bc", "score": "0.6062165", "text": "@Override\r\n\tpublic void concentrarse() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.6059389", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "817efc043b4e1d7ba918f254f9fa5ae6", "score": "0.6055012", "text": "@Override\n public void taunt() {\n\n }", "title": "" }, { "docid": "d18a5453cb937c44d51c46c967f1f4f6", "score": "0.60443264", "text": "protected void method_3848() {}", "title": "" }, { "docid": "df970d9257b3282612e3b7ad881bca60", "score": "0.6016086", "text": "protected void bhjp5027AcedeMhjj027a() {\n }", "title": "" }, { "docid": "6e6512370dbb6f9cb6dcc13bd5aa3b2d", "score": "0.60138226", "text": "@Override\n\tvoid absone() {\n\t\t\n\t}", "title": "" }, { "docid": "5fa8025455ce490980ad8cccfd13eea3", "score": "0.5963883", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "be358957d7b1e72f6001c386d8960179", "score": "0.5960806", "text": "@Override\n public void menace() {\n }", "title": "" }, { "docid": "be358957d7b1e72f6001c386d8960179", "score": "0.5960806", "text": "@Override\n public void menace() {\n }", "title": "" }, { "docid": "90e62de5f767b081d1ecd30f250f7e27", "score": "0.5956729", "text": "@Override\n\t\tpublic void ll() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "408c943a1e709ecc31c924c09b2315eb", "score": "0.5924403", "text": "protected void bhyp0200RotinaDatas() {\n }", "title": "" }, { "docid": "1a4f9aa6f736074c80c425a66e966e33", "score": "0.591473", "text": "@Override\n\tpublic void acariciar() {\n\n\t}", "title": "" }, { "docid": "a82715cbd2b63f8780c6a8d4d9ca9642", "score": "0.5904261", "text": "@Override\r\n\tpublic void getBalalnce() {\n\t\t\r\n\t}", "title": "" }, { "docid": "afad8999ad242028a092a07078328021", "score": "0.5886539", "text": "public void mo55240a() {\n }", "title": "" }, { "docid": "afad8999ad242028a092a07078328021", "score": "0.5886539", "text": "public void mo55240a() {\n }", "title": "" }, { "docid": "40be4915804d3229e08fed067ec03fd6", "score": "0.58759344", "text": "Bug_616419() {\r\n\t}", "title": "" }, { "docid": "2b60191c95bfebe3c1552e6c0a013032", "score": "0.58680886", "text": "@Override\r\npublic void generate() {\n\t\r\n}", "title": "" }, { "docid": "efaf1962840c7f5346e81dc22773c34b", "score": "0.5850078", "text": "@Override\n protected void init() {\n\n }", "title": "" }, { "docid": "cf22f889d7fbcd272d230fe8e0354d0c", "score": "0.5832774", "text": "public void mo5203c() {\n }", "title": "" }, { "docid": "7d4da85943fb6a6ba61dac3c9ae538b3", "score": "0.5831551", "text": "@Override\n\tpublic void morir() {\n\t\t\n\t}", "title": "" }, { "docid": "5c40bd2e5c1d492aac9d5983bf52d2e3", "score": "0.5811345", "text": "@Override\n\tpublic void vericar() {\n\t\t\n\t}", "title": "" }, { "docid": "da813fa08844d9ea0dcf6109d766cb06", "score": "0.5810397", "text": "@Override\n public void geefOpleidingNiveau() {\n }", "title": "" }, { "docid": "655a271d981b875feb8fbc679e1a4f87", "score": "0.5804755", "text": "public void mo9609a() {\n }", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b6296d9cb06e3094b2a07ffb1a50fe1e", "score": "0.5790954", "text": "@Override\n\tpublic void acariciar() {\n\t}", "title": "" }, { "docid": "8bb51b817eb666c4867465105352c93f", "score": "0.5789445", "text": "@Override\r\n\tvoid oracle() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "eaf44b0db9fccdd4e25d11d08215adc0", "score": "0.57868445", "text": "@Override\n\tpublic void zufallsKanteEinfuegen()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "cdfd4f491038656c3a88e9465c6ba0e6", "score": "0.57737845", "text": "@Override\n\tpublic void reculer() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "91bd67fab28a493021bd6f1f7b3e5e0a", "score": "0.57590026", "text": "@Override\n public void dirve() {\n\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "24b32615866ab9d1bd9b2e291b95a1c6", "score": "0.5758869", "text": "public void getPheromone() \n {\n\t \n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1f4988c898d552b0a5965dcb636a68ca", "score": "0.57391614", "text": "@Override\r\n\tpublic void correr() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a59d3a080703df0c29632666d64e3e65", "score": "0.57377326", "text": "@Override\n\tprotected void initialize()\n {\n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "94635a88abd93d3624c032aa22ccc337", "score": "0.5731695", "text": "@Override\n\t\t\tpublic void refresh() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "18ea513e33a6ccd2005fa08437bc8da3", "score": "0.573015", "text": "@Override\n public int describeContents() {\n return 0;\n }", "title": "" }, { "docid": "8887ffca90e3cb4fff0262bd3dd5bd82", "score": "0.57280916", "text": "@Override\r\n\tpublic void Y() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8648511042e2a7fd608e085a1fcb7ccf", "score": "0.5726677", "text": "@Override\r\n\tpublic void operation() {\n\r\n\t}", "title": "" }, { "docid": "1c4063058b784c69f3e491b8fe1c5d87", "score": "0.5722229", "text": "@Override\r\n\tpublic void vivir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "47b0ce2a4738b951bd3c2a4491ec7cd6", "score": "0.57205975", "text": "@Override\n \tpublic String toString() {\n \t\treturn null;\n \t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5718783", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5718783", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.571633", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "12104bcdcc776dd1fc9415fbc08ab9a4", "score": "0.5712942", "text": "private ExtentTS() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "258fef0e9420b0df779163d8d9cb25a9", "score": "0.5707184", "text": "private void hf() {\n\n\t}", "title": "" }, { "docid": "f720716362bda7cd9a07a11b5f77ac9c", "score": "0.5702897", "text": "public void ObjeyiOlustur() {\n \r\n }", "title": "" }, { "docid": "5e4bdac9e86e82025f9be7b708955d73", "score": "0.56991893", "text": "@Override\n\tprotected void startOfIteration() {\n\n\t}", "title": "" }, { "docid": "a7998f80ff10142923d6914a455d5129", "score": "0.5687978", "text": "public void colisionBala() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a4f5275a394442b77ca743e85e2d2f20", "score": "0.568737", "text": "public void mo3892a() {\n }", "title": "" }, { "docid": "1614b26591fe3a156f284f7d7d0238ab", "score": "0.56871134", "text": "public void mo3894c() {\n }", "title": "" }, { "docid": "92b8246d78d46bf0f60b46e17e797540", "score": "0.56825924", "text": "@Override\n\tpublic void init () {\n\t}", "title": "" }, { "docid": "62020c21199fdbaf0b47453874f310f1", "score": "0.5677236", "text": "@Override\n\tpublic void init()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "02b2c6e51ebb5faf78f05c34c734f88d", "score": "0.5676809", "text": "@Override\n\tprotected void adjust() {\n\t\t\n\t}", "title": "" }, { "docid": "b28a6bba203633cc1b71e802b691f592", "score": "0.567235", "text": "@Override\n\tpublic void shuthdown() {\n\n\t}", "title": "" }, { "docid": "cffc9e76f5aeaa8126396b11e98f261b", "score": "0.5667161", "text": "@Override\n public int describeContents() {\n return 0;\n }", "title": "" }, { "docid": "febadec59d2787ed37a521b11b0fe57d", "score": "0.56570727", "text": "public void getdata() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" } ]
1bf89447b80ec86ff401a389c9f91f7d
/ access modifiers changed from: protected
[ { "docid": "d853770c6880ad2d7b3f8037a318144c", "score": "0.0", "text": "@NonNull\n @Named(\"nutrition-graph-preference\")\n @Provides\n public KeyedSharedPreferences provideNutritionGraphPreference(Context context, Lazy<Session> lazy) {\n return new KeyedSharedPreferences(context.getSharedPreferences(Injection.Named.NUTRITION_GRAPH_PREFERENCE, 0), new UserIdSharedPreferenceKeyProvider(lazy));\n }", "title": "" } ]
[ { "docid": "838a915c9ea69d56cc37df198cff9cb2", "score": "0.7004436", "text": "@Override\n\t\t\t\tpublic void pintar() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "ffe5fe3cec40acf4b0b07ea257dfa06a", "score": "0.6881562", "text": "private void apparence()\r\n\t\t{\r\n\r\n\t\t}", "title": "" }, { "docid": "440ce72c689aef1dd3c429cf5498732b", "score": "0.6733893", "text": "@Override\n\tpublic void pohyb() {\n\n\t}", "title": "" }, { "docid": "0c9a671bc5d5d5d4ac8cef41f8584cd4", "score": "0.66747963", "text": "private void combustible(){\n }", "title": "" }, { "docid": "4faa810505ebcb260aff0793654a731e", "score": "0.6656223", "text": "@Override\n\tpublic void refuel() {\n\t\t\n\t}", "title": "" }, { "docid": "ff9130d3531037a891a2580fd00e89e9", "score": "0.6616407", "text": "@Override\r\n\tpublic void refuel() {\n\r\n\t}", "title": "" }, { "docid": "95ffa256b098e9b494cb96d4874e063f", "score": "0.6609077", "text": "@Override\n\tvoid refuel() {\n\n\t}", "title": "" }, { "docid": "b4f806add60ad7a84ab034d616e626e7", "score": "0.65411127", "text": "@Override\n public void Ramasser() {\n }", "title": "" }, { "docid": "9ac044e4cfea7cf27e6cfa2228a83588", "score": "0.65082693", "text": "public abstract void mo4741aD();", "title": "" }, { "docid": "453637afdcc490de35afa10f347a4092", "score": "0.65026665", "text": "protected void mo4927v() {\n }", "title": "" }, { "docid": "c51225498a6fc814478a1ac3d94d3e00", "score": "0.64623076", "text": "private void method_3829() {\r\n super();\r\n }", "title": "" }, { "docid": "4bc8e88e84699c223ea476caacb4d454", "score": "0.6449461", "text": "@Override\r\n\tpublic void sauter() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ce165aec4a92510d2d7f78a45c6a1f81", "score": "0.6445718", "text": "@Override\r\n\tpublic void retirer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cedbebf11d27c2dae772141acaf870df", "score": "0.64393365", "text": "private void method_3728() {\r\n super();\r\n }", "title": "" }, { "docid": "0b54567211035ff78f6d8b8cd7808016", "score": "0.6410838", "text": "private Methods() {\n\t}", "title": "" }, { "docid": "dfa3deb699f1baaf610b77ae9370559a", "score": "0.63599837", "text": "@Override\n\tpublic void gravar() {\n\n\t}", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.63416106", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.6327005", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a7ae27b45bb1a02a96ba4232264be825", "score": "0.6324575", "text": "@Override\n\tpublic void embarcar() {\n\t\t\n\t}", "title": "" }, { "docid": "eb42ad591b603bc73d6780d13981b90d", "score": "0.6301183", "text": "private CatalogReaderAccess() {\n\t}", "title": "" }, { "docid": "083f643ca300aa9160bd6e23caeb13da", "score": "0.627676", "text": "@Override\n\tpublic void embarcar() {\n\n\t}", "title": "" }, { "docid": "af1adf614eadb1a9afa77804d2ed4e42", "score": "0.62746066", "text": "@Override\r\n\tpublic void sub() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fdc4ef2b5e906714a82a75f33f832724", "score": "0.6268596", "text": "@Override\n\tpublic void cheer() {\n\t\t\n\t}", "title": "" }, { "docid": "093a096d6e96e05b160fe2406b1e8a2d", "score": "0.6263023", "text": "@Override\n\tpublic void parir() {\n\t\t\n\t}", "title": "" }, { "docid": "80d10ea62cee927f9ad0a7965909eaba", "score": "0.6262852", "text": "@Override\n\tprotected void remplit() {\n\t\t\n\t}", "title": "" }, { "docid": "73b8b8eec1e17eae8b8035336277ea1b", "score": "0.62413436", "text": "@Override\n\tpublic void sub() {\n\t\t\n\t}", "title": "" }, { "docid": "8fb6f70fd376004aa86400a44bb8dae7", "score": "0.62313604", "text": "@Override\r\n\tvoid dibujar() {\n\r\n\t}", "title": "" }, { "docid": "10daa0b69fc83ea1f81c27147cd56557", "score": "0.6229458", "text": "@Override\n\tpublic void Ordenar() {\n\t\t\n\t}", "title": "" }, { "docid": "47db28280f8e4a282d65a28016cf1185", "score": "0.62279266", "text": "public abstract void mo131149d();", "title": "" }, { "docid": "e1a5212784625cf033b8b0d71916d9a8", "score": "0.62210995", "text": "@Override\r\n\tpublic void se_baisser() {\n\t\t\r\n\t}", "title": "" }, { "docid": "99edd4e3b4a1e74ee38567b94d3dbd3d", "score": "0.62090945", "text": "@Override // com.baidu.mobads.production.AbstractC2493a\n /* renamed from: d */\n public void mo20055d() {\n }", "title": "" }, { "docid": "01084478d2aaee960e0f17c9424b4491", "score": "0.6204694", "text": "@Override\n\t\t\tpublic void a() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "081ae6b4d91b610b8046f5ebfe7ba326", "score": "0.61957127", "text": "@Override\r\n\tpublic void fertilizar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1985dddb6264adc2fb069a687b25f36b", "score": "0.619354", "text": "@Override\n\tpublic void groom() {\n\t\t\n\t}", "title": "" }, { "docid": "bdb3c3f50df9e5b7e4195b700c5e12e0", "score": "0.61907464", "text": "public abstract void mo1626d();", "title": "" }, { "docid": "23f3a7415a3f7463e8a1124d06cf4cf2", "score": "0.6184823", "text": "@Override\n\tpublic void valide() {\n\t\t\n\t}", "title": "" }, { "docid": "36c3ed9624887f59492ae385d7df9b95", "score": "0.6170371", "text": "private Manche(){\n\t\tsuper();\n\t}", "title": "" }, { "docid": "ec65747f9bc49d9729d8cd9d959dd4eb", "score": "0.6163698", "text": "@Override\n\tpublic void specialDoing() {\n\t\t\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.61617017", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "b39a7a767faaa619bf330f5ce3780eb5", "score": "0.6140396", "text": "@Override\r\n\tpublic void buscar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "29f7ab8769a3b88dc7f03c11eff6146e", "score": "0.61365587", "text": "@Override\n protected void readImpl() {\n }", "title": "" }, { "docid": "19b3e42a0d7a8b781dc08a451430f973", "score": "0.61209", "text": "public void method_9554() {\r\n super();\r\n }", "title": "" }, { "docid": "4c957ed6879296e2489fa4cc534c9d68", "score": "0.61102134", "text": "@Override\r\n\tpublic void geefMeerprijs() {\n\t\t\r\n\t}", "title": "" }, { "docid": "da6d5893e6e1b9f16f6943da24f47288", "score": "0.6096935", "text": "@Override\r\n\t\t\tpublic void inMethod() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "835a3677095e4c9f21649ab17f1ba40b", "score": "0.6090108", "text": "private static void diwalioffer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b17089ec7f3b873adc1ebff906be9241", "score": "0.6089586", "text": "@Override\r\n\tpublic void carregar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "86873ab379d889d031cbc486bf7ee4a4", "score": "0.60703486", "text": "private void cierrecontable(){\n }", "title": "" }, { "docid": "2a550f8458794d16824f204804d00e1c", "score": "0.6066639", "text": "@Override\n public void visitClassContext(ClassContext classContext) {\n }", "title": "" }, { "docid": "04406d4ba9e4f0a873ba42c460640d7b", "score": "0.60572696", "text": "private Conversion() {\n\t\t// Nothing to do\n\t}", "title": "" }, { "docid": "cd779aacc91809113f74aef470842acb", "score": "0.60538375", "text": "protected void init() {}", "title": "" }, { "docid": "cd779aacc91809113f74aef470842acb", "score": "0.60538375", "text": "protected void init() {}", "title": "" }, { "docid": "acc39f55f5b37ab7050a241c64f9a4f9", "score": "0.60519016", "text": "@Override\n\tpublic void actualize() {\n\t\t\n\t}", "title": "" }, { "docid": "9b8bff01309bc941d59b284fda4a097c", "score": "0.6049644", "text": "@Override\r\n\t\tpublic void protect() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "05b92fe6834e71a629bc6b218827d95f", "score": "0.6046094", "text": "Intervencion() {\n\t}", "title": "" }, { "docid": "9f789add365a4d92ff33638a80fdf063", "score": "0.6039184", "text": "protected void carBack() {\n\n\t}", "title": "" }, { "docid": "5178d61c88699ad13f78cb117955c3a5", "score": "0.60373116", "text": "@Override\n\tpublic void sing2() {\n\t\t\n\t}", "title": "" }, { "docid": "39c15addb7f9cae9284ae4af01c5a911", "score": "0.60343075", "text": "@Override\r\n\tpublic void cortar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8d370a9943b8e2259c9e3e0d231de95d", "score": "0.60338914", "text": "public abstract void dibujar();", "title": "" }, { "docid": "d346e8c329fedfb15f1ec5170c497e0f", "score": "0.6018888", "text": "protected void init() {\n \t}", "title": "" }, { "docid": "9490d7b915bd1185fbfb38a6968f0217", "score": "0.60154855", "text": "public void getsalary() {\n\t\t\t\tSystem.out.println(\"overridden method getsalary()\");\n\t\t\t}", "title": "" }, { "docid": "7a75aac081b1c9341a1cabd9e7ca7bdf", "score": "0.6007454", "text": "@Override\n public int getModifiers() {\n return 1;\n }", "title": "" }, { "docid": "36e3d999f0a64b90e6ffd4338ec3e383", "score": "0.600509", "text": "public void method_8142() {\r\n super();\r\n }", "title": "" }, { "docid": "47bef3d0c0ee761e936de1dada2442ec", "score": "0.5997991", "text": "private void Partida() {\r\n\t}", "title": "" }, { "docid": "56f31c4e44948c101e20720bc677fd6c", "score": "0.59957165", "text": "@Override\n\tpublic void Buscar() {\n\t\t\n\t}", "title": "" }, { "docid": "03d7171196199db238d56b8aeab47987", "score": "0.59918505", "text": "private void welcom() {\n\n\t}", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.59749186", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "485cd8808f9184d783b86c07fdb7191f", "score": "0.59745246", "text": "private I000091(){\r\n\t\r\n\t}", "title": "" }, { "docid": "92f9e4b4155fb0727a4a89b2a5fc74e0", "score": "0.59742504", "text": "public abstract void mo1627e();", "title": "" }, { "docid": "4a365ed88d1124dd307aa9cf6fab2c17", "score": "0.5973933", "text": "public abstract void mo37691e();", "title": "" }, { "docid": "162a468b891a508701c52265588e91b6", "score": "0.5970353", "text": "@Override\r\n public void init() {\n\r\n }", "title": "" }, { "docid": "3988c8e9cb4fc7ffeafdf51358afc77f", "score": "0.5969868", "text": "protected abstract Object getTestObject();", "title": "" }, { "docid": "4f273ae9f3e4c6b384dcd4c43325ebdf", "score": "0.59673816", "text": "private AclTransformation() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5966894", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5966894", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5966894", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5966894", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5966894", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "0ce436410fb4ad1af4e012ab5253a43a", "score": "0.5963384", "text": "@Override\n\tpublic void maas() {\n\t\t\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.59616375", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "abd0bfc29e4d2a51f46ce3311f857b50", "score": "0.5960965", "text": "@Override\npublic void cafeteria() {\n\t\n}", "title": "" }, { "docid": "7f99df009e43709ac8aaed6198d8cc5e", "score": "0.5957423", "text": "public abstract void mo37681a();", "title": "" }, { "docid": "16a4669a2213802ac94829fc8d9946ff", "score": "0.5948107", "text": "@Override\n\t\tpublic void init() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "357c93acebff5fb9aaa93ecafc141112", "score": "0.59459627", "text": "public abstract void deplacerPersonnage();", "title": "" }, { "docid": "278770d3faa6f9997df871559b735807", "score": "0.59431934", "text": "public abstract void mo23871k();", "title": "" }, { "docid": "702057af1e4f459d1a47603bdcebdf34", "score": "0.59421", "text": "public NotProtectedControl() {\n }", "title": "" }, { "docid": "6fba68e503150b58bb627390fe723ce3", "score": "0.5929475", "text": "@Override\r\n\tpublic void servir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "db6adf52deb87c2723f80c6df873c47d", "score": "0.5927919", "text": "public void mo4741aD() {\n }", "title": "" }, { "docid": "94eea42405a03238c5c952f64b6941e0", "score": "0.5927596", "text": "private Base(){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a0fb1b7eb35ce3f0bc9779dabd4aeb26", "score": "0.5927247", "text": "private BaseUtils() {}", "title": "" }, { "docid": "9e8299e02e2afca4b347ab5022949b84", "score": "0.592709", "text": "@Override\n public void rest() {\n \n }", "title": "" }, { "docid": "d50c2e3543e584680a0a7842e005c6cd", "score": "0.5923461", "text": "private Examiner() {\r\n\t}", "title": "" }, { "docid": "6941e7d39c3ffe6c8c8c8b983e3e9234", "score": "0.591341", "text": "@Override\n void init() {\n }", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.59126604", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "78a0d7cad7b423dba2c6000b1302b9a0", "score": "0.58974683", "text": "@Override\n\tprotected void ganharExp() {\n\t\t\n\t}", "title": "" }, { "docid": "e2c0ee2f563aa58a1d1fbb6ed1a49084", "score": "0.58924127", "text": "public void namam() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e2c0ee2f563aa58a1d1fbb6ed1a49084", "score": "0.58924127", "text": "public void namam() {\n\t\t\r\n\t}", "title": "" }, { "docid": "627bf6ef88b45b88b902a23fc9a6eb2b", "score": "0.5889856", "text": "@Override\r\n\tpublic void init()\r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "35a5baa75906e681596a6db630b9374d", "score": "0.58863306", "text": "@Override\n\t\t\tpublic void b() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "83f62a4165d3a7756990f2cc550c6327", "score": "0.58793646", "text": "abstract protected String initializeThis();", "title": "" }, { "docid": "9a1a66628f4518af9fa213c400d9592e", "score": "0.587659", "text": "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "8bfea442d9df43a8639213bfc6653f88", "score": "0.5876419", "text": "@Override\n\tpublic void test4() {\n\t\t\n\t}", "title": "" } ]
a843f1bbcca615bcf5840d4288c70bfe
Returns a new instance of this fragment for the given section number.
[ { "docid": "e1edd0d664ea165d6818d9b34bf019e9", "score": "0.7775138", "text": "public static TELFragment newInstance(int sectionNumber) {\n TELFragment fragment = new TELFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" } ]
[ { "docid": "8c9c0888f0c5cc23bccf4a79f056b3df", "score": "0.7824596", "text": "public static MainFragment newInstance(int sectionNumber) {\n\t\tMainFragment fragment = new MainFragment();\n\t\tBundle args = new Bundle();\n\t\t// args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n\t\tfragment.setArguments(args);\n\t\treturn fragment;\n\t}", "title": "" }, { "docid": "6da1a987046c1e4438a53a7c9aa79624", "score": "0.7782472", "text": "public static MainFragment newInstance(int sectionNumber) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "f22ad17f7f2648527768a5a155b22ef6", "score": "0.76814276", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n\n selectedNumber = sectionNumber;\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "5d959102b022fd049d10065b3b0663d3", "score": "0.76699984", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n\n\n return fragment;\n }", "title": "" }, { "docid": "d1a4cfb162808af06dc8c6d9c31e2266", "score": "0.7657299", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n\n\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a08478d09325d3262b2b9653e4121837", "score": "0.76489997", "text": "public static LogFragment newInstance(int sectionNumber) {\n LogFragment fragment = new LogFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "b8e10937ef71acabaea3710ec0f38873", "score": "0.76117134", "text": "public PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "b97d193a23120dd59e4900442abb6efd", "score": "0.7602828", "text": "public static MainActivity.FormFragment newInstance(int sectionNumber) {\n MainActivity.FormFragment fragment = new MainActivity.FormFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a6dc57f206b53bcb69448a4277689b7b", "score": "0.7570339", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a6dc57f206b53bcb69448a4277689b7b", "score": "0.7570339", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a6dc57f206b53bcb69448a4277689b7b", "score": "0.7570339", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a6dc57f206b53bcb69448a4277689b7b", "score": "0.7570339", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a6dc57f206b53bcb69448a4277689b7b", "score": "0.7570339", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a6dc57f206b53bcb69448a4277689b7b", "score": "0.7570339", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a6dc57f206b53bcb69448a4277689b7b", "score": "0.7570339", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a6dc57f206b53bcb69448a4277689b7b", "score": "0.7570339", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a6dc57f206b53bcb69448a4277689b7b", "score": "0.7570339", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a6dc57f206b53bcb69448a4277689b7b", "score": "0.7570339", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a6dc57f206b53bcb69448a4277689b7b", "score": "0.7570339", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a6dc57f206b53bcb69448a4277689b7b", "score": "0.7570339", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a6dc57f206b53bcb69448a4277689b7b", "score": "0.7570339", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a6dc57f206b53bcb69448a4277689b7b", "score": "0.7570339", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a6dc57f206b53bcb69448a4277689b7b", "score": "0.7570339", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a6dc57f206b53bcb69448a4277689b7b", "score": "0.7570339", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a6dc57f206b53bcb69448a4277689b7b", "score": "0.7570339", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a6dc57f206b53bcb69448a4277689b7b", "score": "0.7570339", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a6dc57f206b53bcb69448a4277689b7b", "score": "0.7570339", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a6dc57f206b53bcb69448a4277689b7b", "score": "0.7570339", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a6dc57f206b53bcb69448a4277689b7b", "score": "0.7570339", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a6dc57f206b53bcb69448a4277689b7b", "score": "0.7570339", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a6dc57f206b53bcb69448a4277689b7b", "score": "0.7570339", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a6dc57f206b53bcb69448a4277689b7b", "score": "0.7570339", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a6dc57f206b53bcb69448a4277689b7b", "score": "0.7570339", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a6dc57f206b53bcb69448a4277689b7b", "score": "0.7570339", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a6dc57f206b53bcb69448a4277689b7b", "score": "0.7570339", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a6dc57f206b53bcb69448a4277689b7b", "score": "0.7570339", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a6dc57f206b53bcb69448a4277689b7b", "score": "0.7570339", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a6dc57f206b53bcb69448a4277689b7b", "score": "0.7570339", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a6dc57f206b53bcb69448a4277689b7b", "score": "0.7570339", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a6dc57f206b53bcb69448a4277689b7b", "score": "0.7570339", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "aa7113b2e040c98243a9db752720655e", "score": "0.7560598", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "d2059c509b4330873187a6d66119c25d", "score": "0.7556225", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\r\n PlaceholderFragment fragment = new PlaceholderFragment();\r\n Bundle args = new Bundle();\r\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\r\n fragment.setArguments(args);\r\n return fragment;\r\n }", "title": "" }, { "docid": "2f3a74c1009580fee9792ba7740b3ce7", "score": "0.75502765", "text": "public static SearchFragment newInstance(int sectionNumber) {\r\n\t\tSearchFragment fragment = new SearchFragment();\r\n\t\tBundle args = new Bundle();\r\n\t\targs.putInt(ARG_SECTION_NUMBER, sectionNumber);\r\n\t\tfragment.setArguments(args);\r\n\t\treturn fragment;\r\n\t}", "title": "" }, { "docid": "80bd20036f0009dccb29ce46c91995c3", "score": "0.75479347", "text": "public static TaskFragment newInstance(int sectionNumber) {\n TaskFragment fragment = new TaskFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "87030b3c3a5c5788e8af3e6e7473dd48", "score": "0.75350153", "text": "public static ProfileFragment newInstance(int sectionNumber) {\n\t\tProfileFragment fragment = new ProfileFragment();\n\t\tBundle args = new Bundle();\n\t\targs.putInt(ARG_SECTION_NUMBER, sectionNumber);\n\t\tfragment.setArguments(args);\n\t\treturn fragment;\n\t}", "title": "" }, { "docid": "1bbffc18b59d06cc3da36a0abe4f4412", "score": "0.75256324", "text": "public static Fragment newInstance(int sectionNumber) {\n Fragment fragment=null;\n switch (sectionNumber){\n case 1:fragment=new frgConsPublicadores();\n break;\n case 2:fragment=new frgConsVarones();\n break;\n case 3:fragment=new frgConsPromedios();\n break;\n case 4:fragment=new frgConsAuxiliares();\n break;\n case 5:fragment=new frgConsRegulares();\n break;\n case 6:fragment=new frgConsBajaActividad();\n break;\n case 7:fragment=new frgConsIrregulares();\n break;\n case 8:fragment=new frgConsNoRevisitas();\n break;\n case 9:fragment=new frgConsNoEstudios();\n break;\n }\n return fragment;\n }", "title": "" }, { "docid": "bbd37c9470c4820a0521bfcb81dc6c3e", "score": "0.750513", "text": "public static MedicFragment newInstance(int sectionNumber) {\n MedicFragment fragment = new MedicFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "73405dc443ec4ec6e5c1d13aac01719b", "score": "0.75026524", "text": "public static ContactsFragment newInstance(int sectionNumber) {\n ContactsFragment fragment = new ContactsFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "f8ae00a040b326eb3004bd82126c22fb", "score": "0.7500368", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n\t\t\tPlaceholderFragment fragment = new PlaceholderFragment();\n\t\t\tBundle args = new Bundle();\n\t\t\targs.putInt(ARG_SECTION_NUMBER, sectionNumber);\n\t\t\tfragment.setArguments(args);\n\t\t\treturn fragment;\n\t\t}", "title": "" }, { "docid": "f8ae00a040b326eb3004bd82126c22fb", "score": "0.7500368", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n\t\t\tPlaceholderFragment fragment = new PlaceholderFragment();\n\t\t\tBundle args = new Bundle();\n\t\t\targs.putInt(ARG_SECTION_NUMBER, sectionNumber);\n\t\t\tfragment.setArguments(args);\n\t\t\treturn fragment;\n\t\t}", "title": "" }, { "docid": "35be00195f28e2c0205d2facf3cfe15b", "score": "0.7495767", "text": "public static SummaryFragment newInstance(int sectionNumber) {\n SummaryFragment fragment = new SummaryFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "367f2bcf1d3b32e07eb842631e9cfb79", "score": "0.7493954", "text": "public static AnalyticsFragment newInstance(int sectionNumber) {\n AnalyticsFragment fragment = new AnalyticsFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "e8f5c31f912179a14b9ae93364416f4d", "score": "0.74623734", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\r\n\t\t\tPlaceholderFragment fragment = new PlaceholderFragment();\r\n\t\t\tBundle args = new Bundle();\r\n\t\t\targs.putInt(ARG_SECTION_NUMBER, sectionNumber);\r\n\t\t\tfragment.setArguments(args);\r\n\t\t\treturn fragment;\r\n\t\t}", "title": "" }, { "docid": "f9601e4f212cec1db34489f2dfac9a7d", "score": "0.74604225", "text": "public static ProductDetailsFragment newInstance(int sectionNumber) {\n\t\tProductDetailsFragment fragment = new ProductDetailsFragment();\n\t\tBundle args = new Bundle();\n\t\targs.putInt(ARG_SECTION_NUMBER, sectionNumber);\n\t\tfragment.setArguments(args);\n\t\treturn fragment;\n\t}", "title": "" }, { "docid": "dea2c2a64677f7fd71dee79a2c0a9bb6", "score": "0.74508274", "text": "public static InboxFragment newInstance(int sectionNumber) {\n InboxFragment fragment = new InboxFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "b836f6e484283de689f2d1b4af0a3306", "score": "0.74098504", "text": "public static AllLightsFragmentV2 newInstance(int sectionNumber) {\n Log.i(TAG, \"newInstance\");\n\n AllLightsFragmentV2 fragment = new AllLightsFragmentV2();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "e592490d2cc04f4331ec7147f757e668", "score": "0.73905873", "text": "public static FragmentMedia newInstance(int sectionNumber) {\n\t\t\tFragmentMedia fragment = new FragmentMedia();\n\t\t\tBundle args = new Bundle();\n\t\t\targs.putInt(ARG_SECTION_NUMBER, sectionNumber);\n\t\t\tfragment.setArguments(args);\n\t\t\treturn fragment;\n\t\t}", "title": "" }, { "docid": "8b8947755182f082d270d8ba020aa510", "score": "0.73798513", "text": "public static GameFragment newInstance(int sectionNumber) {\n GameFragment fragment = new GameFragment();\n Bundle args = new Bundle();\n args.putInt(\"section_number\", sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "8b169001e46e1cdacd3bf94aca88ad36", "score": "0.7374952", "text": "public static SettingsFragment newInstance(int section_number) {\n SettingsFragment fragment = new SettingsFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, section_number);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "37a82a79c3397ee37247746a518dd112", "score": "0.73650354", "text": "public static SettingsFragment newInstance(int sectionNumber) {\n\t\tSettingsFragment fragment = new SettingsFragment();\n\t\tBundle args = new Bundle();\n\t\targs.putInt(ARG_SECTION_NUMBER, sectionNumber);\n\t\tfragment.setArguments(args);\n\t\treturn fragment;\n\t}", "title": "" }, { "docid": "19b6f788221a6e64c2c186da930f769e", "score": "0.7359473", "text": "public static DiaryFragment newInstance(int sectionNumber) {\n DiaryFragment fragment = new DiaryFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "9aff07e82c2ece48e6a7c10de0847ea8", "score": "0.73579353", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putString(ARG_SECTION_NUMBER, urls[sectionNumber]);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "77eda497f52095cb3dd86feb943ae4d0", "score": "0.7350233", "text": "public static TwitterFragment newInstance(int sectionNumber) {\n TwitterFragment fragment = new TwitterFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "d97b5af06a340250da9ef91b5485c56e", "score": "0.73220897", "text": "public static FriendsFragment newInstance(int sectionNumber) {\n FriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "8dc0c341b7435ab7baf597e991887ba6", "score": "0.7305538", "text": "public static RegisterFragment newInstance(int sectionNumber) {\n\t\tRegisterFragment fragment = new RegisterFragment();\n\t\tBundle args = new Bundle();\n\t\targs.putInt(ARG_SECTION_NUMBER, sectionNumber);\n\t\tfragment.setArguments(args);\n\t\treturn fragment;\n\t}", "title": "" }, { "docid": "4c450fd276835222777b70d20b4d5748", "score": "0.7302997", "text": "public static ContactsFragment newInstance(int sectionNumber) {\n ContactsFragment fragment = new ContactsFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n args.putString(TAB_NAME, tabNames.get(sectionNumber));\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "fc890a6cff4f7a412f7fd682cc4876a6", "score": "0.72780573", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n provider_id = sectionNumber;\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "3cdde4884cd96e201c857b3c444d6791", "score": "0.72708863", "text": "public static VolleySampleFragment newInstance(int sectionNumber) {\n\t\tVolleySampleFragment fragment = new VolleySampleFragment();\n\t\tBundle args = new Bundle();\n\t\targs.putInt(ARG_SECTION_NUMBER, sectionNumber);\n\t\tfragment.setArguments(args);\n\t\treturn fragment;\n\t}", "title": "" }, { "docid": "728b690e86512dbf41d18db021bd5572", "score": "0.72682536", "text": "public static SignInFragment newInstance(int sectionNumber) {\n SignInFragment fragment = new SignInFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "98a19eb5bdb7800cd413742ec74dabaa", "score": "0.7262923", "text": "public static PrizesDaily newInstance(int sectionNumber) {\n PrizesDaily fragment = new PrizesDaily();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "1e456c59d5daf2993553da12ee19f0cc", "score": "0.726051", "text": "public AllOpportunityFragment newInstance(int sectionNumber) {\n AllOpportunityFragment fragment = new AllOpportunityFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "912d40695dac2bc3c03ea8786e4fa818", "score": "0.7256787", "text": "public static MoviesFragment newInstance(String sectionNumber, int number) {\n MoviesFragment fragment = new MoviesFragment();\n Bundle args = new Bundle();\n fragment.sectionNumber = sectionNumber;\n args.putInt(sectionNumber, number);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "6ddc26a10bc1bd8d4e207607a3956544", "score": "0.7244556", "text": "public static PatientListFragment newInstance(int sectionNumber) {\n PatientListFragment fragment = new PatientListFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "c2ade1c6be8c4122f0e8c5ed39eb34dd", "score": "0.723849", "text": "public static HomeFragment newInstance(int sectionNumber) {\r\n\t\tHomeFragment fragment = new HomeFragment();\r\n\t\tBundle args = new Bundle();\r\n\t\targs.putInt(ARG_SECTION_NUMBER, sectionNumber);\r\n\t\tfragment.setArguments(args);\r\n\t\treturn fragment;\r\n\t}", "title": "" }, { "docid": "e305b1d4fe7973379af5b3af147d70c0", "score": "0.7230224", "text": "public static QuadDriverFragment newInstance(int sectionNumber) {\n\t\tQuadDriverFragment fragment = new QuadDriverFragment();\n\t\tBundle args = new Bundle();\n\t\targs.putInt(ARG_SECTION_NUMBER, sectionNumber);\n\t\tfragment.setArguments(args);\n\t\treturn fragment;\n\t}", "title": "" }, { "docid": "7ffdce9aa5f6c24fec73e565a803f48d", "score": "0.72238004", "text": "public static Clocks_Fragment newInstance(int sectionNumber) {\r\n\t\t\r\n\t\tClocks_Fragment fragment = new Clocks_Fragment();\r\n\t\tBundle args = new Bundle();\r\n\t\targs.putInt(ARG_SECTION_NUMBER, sectionNumber);\r\n\t\tfragment.setArguments(args);\r\n\t\treturn fragment;\r\n\t}", "title": "" }, { "docid": "45fd1691822dbb8f8c94b434b720184f", "score": "0.71553683", "text": "public static ManagerFragment newInstance(int sectionNumber) {\n ManagerFragment fragment = new ManagerFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "875ec2719914dd3bcd5d8b096550a938", "score": "0.7108481", "text": "public static ManagePlaceholderFragment newInstance(int sectionNumber) {\n\t\tManagePlaceholderFragment fragment = new ManagePlaceholderFragment();\n\t\tBundle args = new Bundle();\n\t\targs.putInt(ARG_SECTION_NUMBER, sectionNumber);\n\t\tfragment.setArguments(args);\n\n\t\treturn fragment;\n\t}", "title": "" }, { "docid": "42aac7ec4bc44ce54cada07802c209af", "score": "0.7088755", "text": "public static SchedulerFragment newInstance(int sectionNumber) {\r\n SchedulerFragment fragment = new SchedulerFragment();\r\n Bundle args = new Bundle();\r\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\r\n fragment.setArguments(args);\r\n return fragment;\r\n }", "title": "" }, { "docid": "d402bb07b2073d44d729007e2849a52f", "score": "0.70759237", "text": "public static FragmentHomeFeatured newInstance(int sectionNumber)\n\t{\n\t\tFragmentHomeFeatured fragment = new FragmentHomeFeatured();\n\t\tBundle args = new Bundle();\n\t\targs.putInt(ARG_SECTION_NUMBER, sectionNumber);\n\t\tfragment.setArguments(args);\n\t\treturn fragment;\n\t}", "title": "" }, { "docid": "49489248954531d29a9f05ef19db4379", "score": "0.7066734", "text": "public static PlaceholderFragmentTwo newInstance(int sectionNumber) {\n\t\t\tPlaceholderFragmentTwo fragment = new PlaceholderFragmentTwo();\n\t\t\tBundle args = new Bundle();\n\t\t\targs.putInt(ARG_SECTION_NUMBER_TWO, sectionNumber);\n\t\t\tfragment.setArguments(args);\n\t\t\treturn fragment;\n\t\t}", "title": "" }, { "docid": "a4c494da1db05462aeff9640c1169710", "score": "0.70524704", "text": "public static MesChargementsFragment newInstance(int sectionNumber) {\n MesChargementsFragment fragment = new MesChargementsFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a19be4c2df768737fad5fbfe0599e85f", "score": "0.7033635", "text": "public static ClassPlanFragment newInstance(int sectionNumber) {\n ClassPlanFragment fragment = new ClassPlanFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "41ff0c0926c64bdb85e3bdd3cb3461d9", "score": "0.7018466", "text": "public static PlaceholderFragmentDataPemeriksaan newInstance(int sectionNumber) {\n PlaceholderFragmentDataPemeriksaan fragment = new PlaceholderFragmentDataPemeriksaan();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "9fa6debb16d0febc99344122f41c699f", "score": "0.6763111", "text": "public static JavaCallNativeFragment newInstance(int sectionNumber) {\n JavaCallNativeFragment fragment = new JavaCallNativeFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a2a4912383fa31ca573f206c12bd0c2c", "score": "0.67569023", "text": "public static GroupFragment newInstance(int sectionNumber) {\n GroupFragment fragment = new GroupFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n args.putString(TAB_NAME, tabNames.get(sectionNumber));\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "7a271deb726f9f6b12809fb28810034f", "score": "0.67443115", "text": "public static PlaceHolderFragment newInstance(int sectionNumber, JSONObject obj) {\n\n //set global obje\n obje = obj;\n\n PlaceHolderFragment fragment = new PlaceHolderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "f536cf0ea04b916d4da0cc8418f16e72", "score": "0.6507472", "text": "public static StoreInfoFragment newInstance(int sectionNumber, String storeId) {\n StoreInfoFragment fragment = new StoreInfoFragment();\n Bundle args = new Bundle();\n args.putString(ARG_STORE_ID, storeId);\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "5608f2ed67b3dff9db2a049a8c4e3776", "score": "0.64446485", "text": "public static TeamViewFragment newInstance(int sectionNumber, Team _currentTeam) {\n\n TeamViewFragment fragment = new TeamViewFragment();\n Bundle args = new Bundle();\n fragment.tbInstance = _currentTeam;\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "bd265459475456d06629b36770df6e18", "score": "0.6371882", "text": "public static PlaceholderFragment newInstance(int sectionNumber, String string, String aesKey) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n args.putString(\"degree\", string);\n args.putString(\"aesKey\", aesKey);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "26dd864000fe8994ae23fe44f0d2ddfd", "score": "0.6328833", "text": "public static PlaceholderFragment newInstance(int sectionNumber, String hint_text) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n args.putString(ARG_HINT_TEXT, hint_text);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "67f3d1f0cf8a48f1365e583b5156a568", "score": "0.62189", "text": "public static MainVocaFragment newInstance(int position) {\n// MainVocaFragment fragment = new MainVocaFragment();\n// Bundle args = new Bundle();\n// args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n// fragment.setArguments(args);\n return new MainVocaFragment();\n }", "title": "" }, { "docid": "7b52ef1877b1a6766afb2ddbfb411b63", "score": "0.6072736", "text": "public static TeamFragment newInstance(int sectionNumber, Team team, Game game) {\n TeamFragment fragment = new TeamFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n args.putSerializable(ARG_SECTION_TEAM, team);\n args.putSerializable(ARG_SECTION_GAME, game);\n\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "e6359ea16ca0b61ef579a93137be296d", "score": "0.59794694", "text": "@Override\n \t\tpublic Fragment getItem(int position) {\n \t\t\tFragment fragment = new SectionFragment();\n \t\t\tBundle args = new Bundle();\n \t\t\targs.putInt(SectionFragment.ARG_SECTION_NUMBER, position + 1);\n \t\t\tfragment.setArguments(args);\n \t\t\treturn fragment;\n \t\t}", "title": "" }, { "docid": "05d292d5be99b6173c38f641df6d66e1", "score": "0.59734285", "text": "public static CreditSectionFragment newInstance (int position) {\n CreditSectionFragment fragment = new CreditSectionFragment();\n Bundle args = new Bundle();\n args.putInt(POSITION_PARAM, position);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "fce81a23a7dd36b8ca920586776e26bc", "score": "0.5893457", "text": "public static NewsFragment newInstance(String newsSection, int fragmentPosition) {\n NewsFragment newsFragment = new NewsFragment();\n Bundle args = new Bundle();\n args.putString(Constants.STATE_NEWS_SECTION, newsSection);\n args.putInt(Constants.STATE_FRAGMENT_POSITION, fragmentPosition);\n newsFragment.setArguments(args);\n return newsFragment;\n }", "title": "" }, { "docid": "5563b3bec5f7822f8e3c466a77ea21af", "score": "0.5865854", "text": "@Override\n public Fragment getItem(int position) {\n Fragment fragment = new DummySectionFragment();\n Bundle args = new Bundle();\n args.putInt(DummySectionFragment.ARG_SECTION_NUMBER, position + 1);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "2589fdb67d2f582d6213b96ee8c8e6e4", "score": "0.5843261", "text": "public static SetNumberFragment newInstance() {\n SetNumberFragment fragment = new SetNumberFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "1910cd210a62675f4ccad7fb970d4999", "score": "0.58219826", "text": "public static Contact newInstance() {\n Contact fragment = new Contact();\n return fragment;\n }", "title": "" }, { "docid": "44c20c3a93a6b6430f5312046abf12f0", "score": "0.5811974", "text": "public static SearchTicketNumberFragment newInstance() {\n SearchTicketNumberFragment fragment = new SearchTicketNumberFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "title": "" } ]
8db90aef1da6026097cbe2649b959f66
Add list of posts (used for SwipeRefresh)
[ { "docid": "ca0e08cafea364076816b8b16e114ef5", "score": "0.0", "text": "public void addAll(List<ParseUser> list) {\n for (ParseUser user : list) {\n if (user.getInt(FocusUser.KEY_TOTAL) < mLastMax) {\n mNextRank += mTied;\n mTied = TIED_DEFAULT;\n mLastMax = user.getInt(FocusUser.KEY_TOTAL);\n } else {\n mTied++;\n }\n user.put(FocusUser.KEY_RANK, mNextRank);\n }\n mFocusUsers.addAll(list);\n notifyDataSetChanged();\n }", "title": "" } ]
[ { "docid": "15ecee6b28c41aecb82ab7e99dab05b1", "score": "0.7641848", "text": "public void addNewPosts(List<FeedPost> posts) {\n mPosts.addAll(0, posts);\n mAdapter.notifyItemRangeInserted(0, posts.size());\n /*\n * TODO: Decode bitmap from an InputStream created by url, asynchronously.\n * After decoding, put the result into ImageView. This should be done when\n * the card view is placed on the screen.\n */\n }", "title": "" }, { "docid": "ae1866c3b4d0c882c9ea5e400580e88c", "score": "0.7529788", "text": "@Override\n\t\tpublic void postList(Post post) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "52c2a8a1d065040238efb75724238d4b", "score": "0.74153394", "text": "public void addAllPosts(List<Post> postsList) {\n posts.addAll(postsList);\n notifyDataSetChanged();\n }", "title": "" }, { "docid": "c215d9d2eaa8ee28d87d02ed6530ba20", "score": "0.71996474", "text": "public void addAll(List<Post> post) {\n posts.addAll(post);\n notifyDataSetChanged();\n }", "title": "" }, { "docid": "2a5db322567c544bec0f83da24df252d", "score": "0.7052187", "text": "public void addAll(ArrayList<InstagramPost> list) {\n posts.addAll(list);\n notifyDataSetChanged();\n }", "title": "" }, { "docid": "25d8a4e9b4d245e025c982acf6aa5849", "score": "0.70153373", "text": "public void addAll(List<Post> list) {\n posts.addAll(list);\n notifyDataSetChanged();\n }", "title": "" }, { "docid": "0ea13a2aa0e14f61ddcc31253f2ab03d", "score": "0.70107895", "text": "private ArrayList<Post> createPosts(List<ParseObject> postsList) {\n\t\tArrayList<Post> posts = new ArrayList<Post>();\n\t\tLog.d(tag, \"empty: \" + postsList.isEmpty());\n\n\t\tif (postsList != null) {\n\t\t\tboolean skip = false;\n\t\t\tfor (int i = 0; i < postsList.size(); i++) {\n\n//\t\t\t\tPost p = new Post();\n\t\t\t\tPost p = new Post(postsList.get(i), postsList.get(i).getParseObject(\"user\"));\n\n\t\t\t\t/****** This is for system posts. It needs this extra logic ******/\n\t\t\t\tif (postsList.get(i).getInt(\"system_post\") == 1) {\n\t\t\t\t\tLog.i(tag, \"SYSTEM_POST\");\n\t\t\t\t\tif (user_info.getString(\"user_type\", \"\").equalsIgnoreCase(\n\t\t\t\t\t\t\t\"student\")) {\n\t\t\t\t\t\tif (postsList.get(i).getString(\"socialNetworkName\")\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"twitter\")) {\n\t\t\t\t\t\t\tif (user_info.getBoolean(\"hasTwitter\", false))\n\t\t\t\t\t\t\t\tskip = true;\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tp.setIsSystemPost(true);\n\t\t\t\t\t\t} else if (postsList.get(i)\n\t\t\t\t\t\t\t\t.getString(\"socialNetworkName\")\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"instagram\")) {\n\t\t\t\t\t\t\tif (user_info.getBoolean(\"hasInstagram\", false))\n\t\t\t\t\t\t\t\tskip = true;\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tp.setIsSystemPost(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tskip = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\n\t\t\t\t// p.setClassYear(3);// placeholder data\n\t\t\t\t// posts.add(p);\n\t\t\t\t// }\n\t\t\t\tif (!skip) {\n\t\t\t\t\tif (AddToTop)\n\t\t\t\t\t\tpa.add(0, p);\n\t\t\t\t\telse\n\t\t\t\t\t\tpa.add(p);\n\t\t\t\t} else\n\t\t\t\t\tskip = false;\n\t\t\t}\n\n\t\t}\n\t\tpa.setStatus(false);\n\t\tAddToTop = false;\n\t\treturn posts;\n\t}", "title": "" }, { "docid": "09c62700c5b0a6780b521917615ae62b", "score": "0.69908786", "text": "public static void addPost(Post item){\n postList.add(item);\n }", "title": "" }, { "docid": "72d1714ec8a0a6410134a15f9ddced0b", "score": "0.6876714", "text": "private void loadPosts() {\n adapterPost = new AdapterPost(getActivity(), queueToList);\n recyclerView.setAdapter(adapterPost);\n //path of all posts\n layoutManager.setReverseLayout(true);\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference(\"Posts\");\n ref.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n postList.clear();\n for (DataSnapshot ds : dataSnapshot.getChildren()) {\n ModelPost modelPost = ds.getValue(ModelPost.class);\n postList.add(modelPost);\n //adapter\n recyclerView.smoothScrollToPosition(recyclerView.getAdapter().getItemCount());\n }\n Iterator<ModelPost> iter = postList.iterator();\n while (iter.hasNext()) {\n postTemp = iter.next();\n queueToList.add(postTemp);\n }\n recyclerView.smoothScrollToPosition(recyclerView.getAdapter().getItemCount());\n System.out.println(postList + \"hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh\");\n adapterPost.notifyDataSetChanged();\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n //if there is an error\n Toast.makeText(getActivity(), \"\" + databaseError.getMessage(), Toast.LENGTH_SHORT).show();\n }\n });\n }", "title": "" }, { "docid": "27758187e7830a3c616169c49a1773b0", "score": "0.6631909", "text": "@Override\n public void refreshPosts() {\n }", "title": "" }, { "docid": "c5bb4abb2f36d7381b758fb27e3b9410", "score": "0.6599166", "text": "private void getPosts(Post.Query postsQuery) {\n mPostAdapter.clear();\n postsQuery.addDescendingOrder(\"createdAt\");\n mProgressBar = findViewById(R.id.pbLoading);\n mProgressBar.setVisibility(View.VISIBLE);\n postsQuery.findInBackground(new FindCallback<Post>() {\n @Override\n public void done(List<Post> objects, ParseException e) {\n if (e == null) {\n for (int i = 0; i < objects.size(); i++) {\n Post post = objects.get(i);\n mPosts.add(post);\n mPostAdapter.notifyItemInserted(mPosts.size() - 1);\n }\n if (mPosts.size() == 0) {\n mNoPosts.setVisibility(View.VISIBLE);\n } else {\n mNoPosts.setVisibility(View.INVISIBLE);\n }\n mSwipeContainer.setRefreshing(false);\n mProgressBar.setVisibility(View.INVISIBLE);\n } else {\n e.printStackTrace();\n }\n }\n });\n }", "title": "" }, { "docid": "a8a6869a9a2fef9c712490b9c23ee772", "score": "0.65103716", "text": "public void loadPostInView(){\n PostAdapter adapter = new PostAdapter(posts.getPosts());\n rvPosts.setAdapter(adapter);\n //Refresh\n adapter.notifyDataSetChanged();\n //Set position to start of new posts\n mLayoutManager.scrollToPosition(posts.getPosts().size()-25);\n }", "title": "" }, { "docid": "e07e7dda0be12d79fcf8c9c6da362410", "score": "0.6464518", "text": "public List<Post> getPost();", "title": "" }, { "docid": "c4456321cb76c334f167e693fae3b636", "score": "0.6439156", "text": "private void createPosts() {\n for(int i=0;i<100;i++){\n save(new Post(\"title \" + (i+1), \"Some body content\"+ (i+2) ));\n }\n }", "title": "" }, { "docid": "ca35f660dca76ede33f1b68c381b04b5", "score": "0.6368633", "text": "public List<Post> getIndexPosts()\n\t{\n\t\tList<Post> list = new ArrayList<Post>();\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tString query=\"select * from posts order by pid desc\tlimit 6\";\n\t\t\t\t\tPreparedStatement pstmt = con.prepareStatement(query);\n\t\t\t\t\tResultSet rs = pstmt.executeQuery();\n\t\t\t\t\t\n\t\t\t\t\twhile(rs.next()) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tint pid = rs.getInt(\"pid\");\n\t\t\t\t\t\tString pTitle = rs.getString(\"pTitle\");\n\t\t\t\t\t\tString pContent = rs.getString(\"pContent\");\n\t\t\t\t\t\tString pCode = rs.getString(\"pCode\");\n\t\t\t\t\t\tString pPic = rs.getString(\"pPic\");\n\t\t\t\t\t\tTimestamp date = rs.getTimestamp(\"pDate\");\n\t\t\t\t\t\tint catId = rs.getInt(\"catId\");\n\t\t\t\t\t\tint userId = rs.getInt(\"userId\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tPost post = new Post(pid, pTitle, pContent, pCode, pPic, date, catId, userId);\n\t\t\t\t\t\tlist.add(post);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}catch(Exception e)\n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\treturn list;\n\t}", "title": "" }, { "docid": "54e8a82a561dca7a026d7174f0b34f3a", "score": "0.63597345", "text": "private void generateDataList(List<Post> postovi) {\n postAdapter = new PostAdapter(this, postovi);\n recyclerView.setLayoutManager(new LinearLayoutManager(this));\n recyclerView.setAdapter(postAdapter);\n }", "title": "" }, { "docid": "6c08e0d9b5a5cc61ce596a45b9aab7bb", "score": "0.6349179", "text": "public void pushPost(Posts post) {\n final ParseObject parsePost = new ParseObject(\"ParsePosts\");\n // put each field of post into the parse object\n parsePost.put(\"item\", post.getItem());\n parsePost.put(\"description\", post.getDescription());\n parsePost.put(\"category\", post.getCategory());\n parsePost.put(\"image\", post.getImage());\n parsePost.put(\"contact\", post.getContact());\n parsePost.put(\"userID\", ParseUser.getCurrentUser().getObjectId());\n\n //Security settings for post objects, public read/private write\n ParseACL postsACL = new ParseACL(ParseUser.getCurrentUser());\n postsACL.setPublicReadAccess(true);\n parsePost.setACL(postsACL);\n // try to save the ParseObject\n try {\n parsePost.save();\n }\n catch (ParseException e) {\n parsePost.saveInBackground();\n }\n // Create new notification\n JSONObject data = null;\n try {\n data = new JSONObject(\n \"{\\\"alert\\\": \\\"A new item is available!\\\", \" +\n \"\\\"title\\\": \\\"Check out Clare's List!\\\"}\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n // Push the notification\n ParsePush push = new ParsePush();\n push.setChannel(post.getCategory());\n push.setData(data);\n push.sendInBackground();\n\n // Set post's ID\n post.setmID(parsePost.getObjectId());\n }", "title": "" }, { "docid": "eeed33bf993fe05e1aef78667e000a26", "score": "0.63424945", "text": "protected void queryPosts() {\n ParseQuery<Post> query = ParseQuery.getQuery(Post.class);\n query.include(Post.KEY_USER);\n query.whereEqualTo(Post.KEY_USER, ParseUser.getCurrentUser());\n query.setLimit(20);\n query.addDescendingOrder(Post.KEY_CREATED_KEY);\n query.findInBackground(new FindCallback<Post>() {\n @Override\n public void done(List<Post> posts, ParseException e) {\n if (e != null) {\n Log.e(TAG, \"Issue with getting posts\", e);\n return;\n }\n for (Post post : posts) {\n Log.i(TAG, \"Post: \" + post.getDescription() + \", username: \" + post.getUser().getUsername());\n }\n allPosts.addAll(posts);\n adapter.notifyDataSetChanged();\n }\n });\n }", "title": "" }, { "docid": "3505a4d4b68f9f95d466a05ad0503544", "score": "0.6307893", "text": "public void addNewPost(FeedPost post) {\n mPosts.addFirst(post);\n mAdapter.notifyItemInserted(0);\n /*\n * TODO: Decode bitmap from an InputStream created by url, asynchronously.\n * After decoding, put the result into ImageView. This should be done when\n * the card view is placed on the screen.\n */\n }", "title": "" }, { "docid": "9f67c3d1dbc1db627fb8e247adca2ba3", "score": "0.62774754", "text": "public void setEntries(List<EntryImpl> lb)\n {\n this.posts = lb;\n }", "title": "" }, { "docid": "974c3de01cb4255688de29428e713d29", "score": "0.6264829", "text": "public Lista getPosts() {\n Lista posts = new Lista();\n Publicacion ptr = postPtr;\n posts.setData(ptr);\n ptr = ptr.getLink();\n while (ptr != null) {\n posts.add(ptr);\n ptr = ptr.getLink();\n }\n return posts;\n }", "title": "" }, { "docid": "28fff226072e5038e3ccdc5e36cf245f", "score": "0.6242387", "text": "public void postNewMessage(Message msg){// just adds a new msg to the list array of posts.\n posts.add(msg);\n }", "title": "" }, { "docid": "9f3d3fe1cc92d5cb157db6dedddb0e61", "score": "0.62352836", "text": "private void createPostsFromBackend()\n\t{\n\t\tServerCom.getInstance().setActivity(activity);\n\t\tServerCom.getInstance().setup();\n\t\tServerCom.getInstance().setRequestMethod(Request.Method.GET);\n\t\tServerCom.getInstance().setResponseReturnPoint(ServerCom.ReturnData.FEED_ACTIVITY_POST);\n\t\tServerCom.getInstance().getAllPostsEndpoint();\n\t\tServerCom.getInstance().executeArray();\n\t}", "title": "" }, { "docid": "3b35b0992909fe397c7c90b47c256807", "score": "0.6206759", "text": "public List<Post> getAllPosts() {\n List<Post> posts = new ArrayList<>();\n\n String query = \"SELECT * FROM \" + TABLE_POST + \";\";\n\n if (db == null) {\n db = getReadableDatabase();\n }\n\n Cursor c = db.rawQuery(query, null);\n\n if (c != null)\n c.moveToFirst();\n\n // Loop through all rows and add each to list\n while(!c.isAfterLast()) {\n Post post = new Post();\n post.setId(Integer.parseInt(c.getString(0)));\n post.setAuthor(c.getString(1));\n post.setCreated(c.getString(2));\n post.setUrl(c.getString(3));\n post.setThumbnail(c.getString(4));\n post.setTitle(c.getString(5));\n post.setBody(c.getString(6));\n\n posts.add(post);\n\n c.moveToNext();\n }\n\n return posts;\n }", "title": "" }, { "docid": "950afac4614d7ed7c2b11ec7e6350076", "score": "0.6204712", "text": "@Override\n public List<Post> getAllPosts() {\n return new ArrayList<>(this.findAllPosts());\n }", "title": "" }, { "docid": "41117307fcb7b86e84e5a4b4bcb67440", "score": "0.6200196", "text": "private void addPost() {\n values = new ContentValues();\n values.put(Posts.PostEntry.COLUMN_NAME_TITLE, titleText.getText().toString());\n values.put(Posts.PostEntry.COLUMN_NAME_DESCRIPTION, descText.getText().toString());\n values.put(Posts.PostEntry.COLUMN_NAME_PRICE, priceText.getText().toString());\n\n // Insert the new row, returning the primary key value of the new row\n long newRowId;\n newRowId = db.insert(\n Posts.PostEntry.TABLE_NAME,\n null,\n values);\n System.out.println(\"Added new post\");\n // Done adding new entry into database, navigate user back to browsing screen\n startActivity(new Intent(this, BrowsePostsActivity.class));\n }", "title": "" }, { "docid": "35b31cceeed5a81697d6ab539e6c8515", "score": "0.61617357", "text": "@Override\r\n public void addPost(String postType, String title, String desc, String url, String userName) {\n \r\n }", "title": "" }, { "docid": "082d9829025d79b63fcd15cde8be06ae", "score": "0.6159283", "text": "private void createPosts() {\n Call<Post> postCall = jsonPlaceHolder.createPostUrls(23, \"jeus\", \"welcome\");\n postCall.enqueue(new Callback<Post>() {\n @Override\n public void onResponse(Call<Post> call, Response<Post> response) {\n if (!response.isSuccessful()) {\n tvResult.setText(\"code\" + response.code());\n return;\n }\n Post post1 = response.body();\n tvResult.setText(response.code() + \"\\n\\n\");\n tvResult.setText(post1.toString());\n }\n\n @Override\n public void onFailure(Call<Post> call, Throwable t) {\n tvResult.setText(t.getMessage());\n }\n });\n }", "title": "" }, { "docid": "4ca64d30e6137aefe7c166f6f7dd2858", "score": "0.61555094", "text": "public static void clearPosts() {\n \tpostList.clear();\n }", "title": "" }, { "docid": "cc00751361e814294228a17164bebf65", "score": "0.61487615", "text": "private void getAllPosts() {\n showParent(View.GONE);\n Call<List<Post>> call = ServiceGenerator.getMiniFBAPI().getAllPosts();\n call.enqueue(new Callback<List<Post>>() {\n @Override\n public void onResponse(Call<List<Post>> call, Response<List<Post>> response) {\n showParent(View.VISIBLE);\n if (response.isSuccessful()) {\n //Assign posts returned from REST API to our variable posts\n posts = response.body();\n //Send the posts to our adapter then assign the adapter to our recyclerview\n populateViews();\n } else {\n Toast.makeText(MainActivity.this, response.message(), Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<List<Post>> call, Throwable t) {\n showParent(View.VISIBLE);\n t.printStackTrace();\n Toast.makeText(MainActivity.this, getString(R.string.smthing_went_wrong), Toast.LENGTH_SHORT).show();\n }\n });\n }", "title": "" }, { "docid": "0e4369cc51dc824192fc220b2c58158a", "score": "0.61237323", "text": "@Path(\"/Posts\")@GET\r\n\t@Produces(MediaType.APPLICATION_JSON)\r\n\tpublic List<Posts> listPostss() {\r\n\t\treturn new java.util.ArrayList<Posts>(postsService.loadPostss());\r\n\t}", "title": "" }, { "docid": "da8cdc81cbba78b1400196da1dbb6a9f", "score": "0.6110587", "text": "@Override\n\tpublic void onPost(List<BigItem> appendList) {\n\t\t\n\t}", "title": "" }, { "docid": "84ba80c8803c6dc75c828d1e1a729234", "score": "0.60198164", "text": "@Override\r\n public void onResponse(JSONObject jsonObject) {\n progressDialog.dismiss();\r\n\r\n try {\r\n // Parse Json data\r\n JSONArray postArray = jsonObject.getJSONArray(\"posts\");\r\n //int numPerPage = jsonObject.getInt(\"count\");\r\n\r\n // Go through each post\r\n for (int i = 0; i < postArray.length(); i++) {\r\n JSONObject postObject = postArray.getJSONObject(i);\r\n\r\n // Create a temp Post object\r\n Post post = new Post();\r\n // Setup the Post object\r\n post.setTitle(postObject.getString(\"title\"));\r\n post.setThumbnailUrl(postObject.getString(\"thumbnail\"));\r\n post.setCommentCount(postObject.getInt(\"comment_count\"));\r\n post.setViewCount(postObject.getJSONObject(\"custom_fields\")\r\n .getJSONArray(\"post_views_count\").getString(0));\r\n\r\n post.setDate(postObject.getString(\"date\"));\r\n post.setContent(postObject.getString(\"content\"));\r\n post.setAuthor(postObject.getJSONObject(\"author\").getString(\"name\"));\r\n post.setId(postObject.getInt(\"id\"));\r\n post.setUrl(postObject.getString(\"url\"));\r\n\r\n postList.add(post); // Add to the ArrayList\r\n }\r\n\r\n postAdaptor.notifyDataSetChanged(); // Data has changed\r\n loading = false; // Loading finished. Set flag to false\r\n\r\n // Set ListView position\r\n if (PostListFragment.this.page != 1) {\r\n //listView.setSelection((PostListFragment.this.page -1) *\r\n // numPerPage - 1);\r\n // Move the article list up by one row\r\n listView.setSelection(listView.getFirstVisiblePosition() + 1);\r\n }\r\n // Add 1 to page to prepare for the next page\r\n PostListFragment.this.page++;\r\n\r\n } catch (JSONException e) {\r\n Log.d(TAG, e.getMessage());\r\n Log.d(TAG, \"----------------- Json Exception\");\r\n Toast.makeText(getActivity(), \"Json Exception. Please try again.\",\r\n Toast.LENGTH_SHORT).show();\r\n }\r\n }", "title": "" }, { "docid": "734c49ac05d2e4ed5e156c0c4c4835ca", "score": "0.6012618", "text": "private void setListeners() {\n recyclerView.addOnItemTouchListener(\n new RecyclerTouchListener(getContext(), recyclerView, new GalleryAdapter.ClickListener() {\n @Override\n public void onClick(View view, int position) {\n clickedPosition = position;\n mListener.onPostSelected(posts.get(position), view);\n }\n\n @Override\n public void onLongClick(View view, int position) {\n clickedPosition = position;\n }\n }));\n\n\n /**\n * Called when the user reaches end of recyclerView while scrolling the list.\n * the call is only made once, we check that using the loading boolean.\n * When the user reaches the end of list, we start downloading the remaining\n * posts from the server.\n */\n recyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() {\n @Override\n public void onScrolled(RecyclerView recyclerView, int dx, int dy) {\n\n if(dy > 0) //check for scroll down\n {\n visibleItemCount = layoutManager.getChildCount();\n totalItemCount = layoutManager.getItemCount();\n pastVisibleItems = layoutManager.findFirstVisibleItemPosition();\n\n if (loading)\n {\n if ( (visibleItemCount + pastVisibleItems) >= totalItemCount)\n {\n loading = false;\n Toast.makeText(getContext(), \"Loading more posts...\", Toast.LENGTH_SHORT).show();\n\n /**\n * Network call to download additional posts.\n */\n new FirebasePostApi().getAllPosts(thread.getThread_id(), new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n for(DataSnapshot shot : dataSnapshot.getChildren()) {\n Post post = shot.getValue(Post.class);\n post.setPostId(shot.getKey());\n\n /**\n * Only add posts if they are not already\n * present in the list.\n */\n if (!posts.contains(post)){\n posts.add(post);\n }\n }\n /**\n * Sorting the fetched posts based on their timestamp.\n */\n Collections.sort(posts, comparator);\n postsAdapter.notifyDataSetChanged();\n }\n\n @Override\n public void onCancelled(FirebaseError firebaseError) {}\n });\n }\n }\n }\n }\n });\n\n\n /**\n * This listener tracks addition of new posts into the list. Also, any\n * change to the posts will be tracked by this listener.\n */\n new FirebasePostApi().getPosts(thread.getThread_id(), new ChildEventListener() {\n @Override\n public void onChildAdded(DataSnapshot dataSnapshot, String s) {\n Post post = dataSnapshot.getValue(Post.class);\n post.setPostId(dataSnapshot.getKey());\n\n /**\n * Add post if it is not already present in the\n * list\n */\n if (!posts.contains(post)) {\n posts.add(post);\n Collections.sort(posts, comparator);\n postsAdapter.notifyDataSetChanged();\n }\n }\n\n @Override\n public void onChildChanged(DataSnapshot dataSnapshot, String s) {\n Post post = dataSnapshot.getValue(Post.class);\n post.setPostId(dataSnapshot.getKey());\n\n /**\n * Find the changed post in the list and replace it\n * with the new post.\n */\n for (Post p : posts) {\n if (post.equals(p)){\n int i = posts.indexOf(p);\n posts.set(i,post);\n postsAdapter.notifyDataSetChanged();\n }\n }\n }\n\n @Override\n public void onChildRemoved(DataSnapshot dataSnapshot) {}\n\n @Override\n public void onChildMoved(DataSnapshot dataSnapshot, String s) {}\n\n @Override\n public void onCancelled(FirebaseError firebaseError) {}\n });\n }", "title": "" }, { "docid": "258081ef8dcf64633c213e23d573fd2b", "score": "0.5990635", "text": "public void syncPosts(final List<Posts> localPosts) {\n Firebase.getAllPosts(new MainModel.GetAllPostsListener() {\n @Override\n public void onComplete(List<Posts> firebasePosts) {\n\n for (final Posts post : firebasePosts) {\n\n PostAsyncDao.setPosts(post, new MainModel.AddPostListener() {\n @Override\n public void onComplete(boolean success) {\n syncImages(post.getPostImageUrl());\n }\n });\n }\n\n for (final Posts post : localPosts) {\n if (!isIMatchId(firebasePosts, post)) {\n PostAsyncDao.deletePost(post, new MainModel.DeletePostListener() {\n @Override\n public void onComplete(boolean success) {\n\n }\n });\n }\n }\n\n // This part needs to be removed from this function and get into a function that get's the posts from the local DB cache\n // instaed of Firebase\n /*recyclerViewAdapter = new PostsListAdapter(getContext(), data.toArray(new Posts[data.size()]));\n recyclerView.setAdapter(recyclerViewAdapter);*/\n }\n });\n }", "title": "" }, { "docid": "1c6b2a5a9edd507742f8096651aa8780", "score": "0.59453195", "text": "@Override\n public void onRefresh() {\n adapter.clear();\n queryPosts();\n swipeContainer.setRefreshing(false);\n }", "title": "" }, { "docid": "ce352a64bc31fb1cc91939d69e1888d9", "score": "0.59425026", "text": "private void launchPosts(SubRoom sr) {\n Query query = mStoreBase.collection(\"room\").whereEqualTo(\"room\", sr);\n\n FirestoreRecyclerOptions<Post> options = new FirestoreRecyclerOptions.Builder<Post>().setQuery(query, Post.class).build();\n\n adapter = new FirestoreRecyclerAdapter<Post, ViewHolder>(options) {\n @NonNull\n @Override\n public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {\n View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_post, parent, false);\n return new ViewHolder(view);\n }\n\n @Override\n protected void onBindViewHolder(@NonNull final ViewHolder userViewHolder, int i, @NonNull final Post p) {\n userViewHolder.nbComment.setText(p.getNbComment()+\"\");\n userViewHolder.nbLike.setText(p.getNbLike()+\"\");\n userViewHolder.nbShare.setText(p.getNbShare()+\"\");\n userViewHolder.author.setText(p.getOwnerName());\n userViewHolder.message.setText(p.getMessage());\n if(p.getType() != TypePost.VIDEO){\n userViewHolder.postImage.setVisibility(View.GONE);\n }else{\n userViewHolder.postImage.setVisibility(View.VISIBLE);\n\n }\n userViewHolder.like.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n mStoreBase.collection(\"users\").document(currentUser.getUid()).collection(\"likes\")\n .document(p.getId()).get().addOnCompleteListener(new OnCompleteListener<DocumentSnapshot>() {\n @Override\n public void onComplete(@NonNull Task<DocumentSnapshot> task) {\n if(task.isSuccessful()){\n if(!task.getResult().exists()) {\n userViewHolder.like.setImageDrawable(getResources().getDrawable(R.drawable.star_post_focused));\n BddPost post = new BddPost();\n post.addLike(p);\n }else{\n userViewHolder.like.setImageDrawable(getResources().getDrawable(R.drawable.star_post));\n BddPost post = new BddPost();\n post.removeLike(p);\n }\n }\n }\n });\n }\n });\n }\n };\n mRecyclerView.setLayoutManager(new LinearLayoutManager(getContext()));\n mRecyclerView.setAdapter(adapter);\n adapter.startListening();\n }", "title": "" }, { "docid": "761b0d38ef7ff2d12b178eae525559f2", "score": "0.5877088", "text": "public void addPost(Post post){\n realm.beginTransaction();\n realm.copyToRealm(post);\n realm.commitTransaction();\n }", "title": "" }, { "docid": "856617257e0103492324001901855ad4", "score": "0.5873146", "text": "@Path(\"/Posts\")@POST\r\n\t@Produces(MediaType.APPLICATION_JSON)\r\n\t@Consumes(MediaType.APPLICATION_JSON)\r\n\tpublic Posts newPosts( Posts posts) {\r\n\t\tpostsService.savePosts(posts);\r\n\t\treturn postsDAO.findPostsByPrimaryKey(posts.getId());\r\n\t}", "title": "" }, { "docid": "5f0849928ffd03ba75fb0307bfe236df", "score": "0.58654916", "text": "Iterable<JSONObject> getPosts();", "title": "" }, { "docid": "0a69a5eeba1a7a6113c3807e5f7a7189", "score": "0.57967454", "text": "public void loadPosts(int page) {\r\n Log.d(TAG, \"----------------- Loading category \" + catId + \", page \" + String.valueOf(page));\r\n\r\n // Show a progress dialog while downloading posts\r\n progressDialog = new ProgressDialog(getActivity());\r\n progressDialog.setMessage(getString(R.string.loading_articles));\r\n progressDialog.setCanceledOnTouchOutside(false);\r\n progressDialog.show();\r\n\r\n // Construct the proper API Url\r\n String url;\r\n if (catId == 0) { // The \"All\" tab\r\n url = Config.BASE_URL + \"?json=get_posts&page=\" + String.valueOf(page);\r\n } else { // Everything else\r\n url = Config.BASE_URL + \"?json=get_category_posts&category_id=\" +\r\n String.valueOf(catId) + \"&page=\" + String.valueOf(page);\r\n }\r\n\r\n // Make a Json request with Volley\r\n JsonObjectRequest request = new JsonObjectRequest(Request.Method.GET, url, null,\r\n new Response.Listener<JSONObject>() {\r\n @Override\r\n public void onResponse(JSONObject jsonObject) {\r\n //Log.d(TAG, \"----------------- Enter OnResponse\");\r\n progressDialog.dismiss();\r\n\r\n try {\r\n // Parse Json data\r\n JSONArray postArray = jsonObject.getJSONArray(\"posts\");\r\n //int numPerPage = jsonObject.getInt(\"count\");\r\n\r\n // Go through each post\r\n for (int i = 0; i < postArray.length(); i++) {\r\n JSONObject postObject = postArray.getJSONObject(i);\r\n\r\n // Create a temp Post object\r\n Post post = new Post();\r\n // Setup the Post object\r\n post.setTitle(postObject.getString(\"title\"));\r\n post.setThumbnailUrl(postObject.getString(\"thumbnail\"));\r\n post.setCommentCount(postObject.getInt(\"comment_count\"));\r\n post.setViewCount(postObject.getJSONObject(\"custom_fields\")\r\n .getJSONArray(\"post_views_count\").getString(0));\r\n\r\n post.setDate(postObject.getString(\"date\"));\r\n post.setContent(postObject.getString(\"content\"));\r\n post.setAuthor(postObject.getJSONObject(\"author\").getString(\"name\"));\r\n post.setId(postObject.getInt(\"id\"));\r\n post.setUrl(postObject.getString(\"url\"));\r\n\r\n postList.add(post); // Add to the ArrayList\r\n }\r\n\r\n postAdaptor.notifyDataSetChanged(); // Data has changed\r\n loading = false; // Loading finished. Set flag to false\r\n\r\n // Set ListView position\r\n if (PostListFragment.this.page != 1) {\r\n //listView.setSelection((PostListFragment.this.page -1) *\r\n // numPerPage - 1);\r\n // Move the article list up by one row\r\n listView.setSelection(listView.getFirstVisiblePosition() + 1);\r\n }\r\n // Add 1 to page to prepare for the next page\r\n PostListFragment.this.page++;\r\n\r\n } catch (JSONException e) {\r\n Log.d(TAG, e.getMessage());\r\n Log.d(TAG, \"----------------- Json Exception\");\r\n Toast.makeText(getActivity(), \"Json Exception. Please try again.\",\r\n Toast.LENGTH_SHORT).show();\r\n }\r\n }\r\n },\r\n new Response.ErrorListener() {\r\n @Override\r\n public void onErrorResponse(VolleyError volleyError) {\r\n progressDialog.dismiss();\r\n volleyError.printStackTrace();\r\n Log.d(TAG, \"----------------- Error: \" + volleyError.getMessage());\r\n Toast.makeText(getActivity(), \"Network error. Please try again later...\",\r\n Toast.LENGTH_SHORT).show();\r\n }\r\n });\r\n\r\n // Set timeout to 10 seconds instead of the default value 5 seconds since my\r\n // crappy server is quite slow and I always get timeout error...\r\n request.setRetryPolicy(new DefaultRetryPolicy(10000, DefaultRetryPolicy.DEFAULT_MAX_RETRIES,\r\n DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));\r\n\r\n // Add request to request queue\r\n AppController.getInstance().addToRequestQueue(request, TAG);\r\n }", "title": "" }, { "docid": "adc04667eb9bd2c9476aebc143580b52", "score": "0.57808083", "text": "private static void sortPosts()\n\t{\n\t\tList<CardData> toSort = new ArrayList<>(posts);\n\t\tfor(int i = 1; i < toSort.size(); i++)\n\t\t{\n\t\t\tCardData key = toSort.get(i);\n\t\t\tint j = i - 1;\n\t\t\twhile(j >= 0 && key.compareTo(toSort.get(j)) < 0)\n\t\t\t{\n\t\t\t\ttoSort.set(j+1, toSort.get(j));\n\t\t\t\tj = j-1;\n\t\t\t}\n\t\t\ttoSort.set(j+1, key);\n\t\t}\n\t\tposts.clear();\n\t\tLog.d(SAMMY_DEBUG, \"\"+ toSort.size());\n\t\tfor(int i = toSort.size(); i > 0; i--)\n\t\t{\n\t\t\tposts.add(toSort.get(i-1));\n\t\t}\n\n\t\trv.getAdapter().notifyDataSetChanged();\n\t}", "title": "" }, { "docid": "9ca75bdf5864df32170f9b8b6d0be522", "score": "0.57704943", "text": "PostingList() {\n\t\tpostList = new TreeMap<String, Postings>();\n\t}", "title": "" }, { "docid": "7a02f569f7581b6fd86b01dfc6698f8f", "score": "0.5768812", "text": "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n for (DataSnapshot postSnapshot : dataSnapshot.getChildren()) {\n\n String key = postSnapshot.child(\"postKey\").getValue().toString();\n String uploadId = postSnapshot.child(\"uploadId\").getValue().toString();\n String uploadTitle = postSnapshot.child(\"uploadTitle\").getValue().toString();\n String url = postSnapshot.child(\"uploadImageUrl\").getValue().toString();\n\n Log.d(\"Myposts\", \"Value is: \" + currentUserId + \"\\t\\t\" + uploadId);\n if (currentUserId.equals(uploadId)) {\n MyPostModel model = new MyPostModel();\n model.setUploadTitle(uploadTitle);\n model.setPostKey(key);\n model.setUploadId(uploadId);\n\n\n mypostArrayList.add(model);\n\n }\n\n\n adapter = new MyPostsAdapter(myposts.this, mypostArrayList);\n\n recyclerView.setAdapter(adapter);\n\n enableSwipe();\n }\n\n\n MyPostModel value = dataSnapshot.getValue(MyPostModel.class);\n }", "title": "" }, { "docid": "707b414c2d0045f56eba8fb151b53bf6", "score": "0.5752087", "text": "private List<Post> makePost(List<DBObject> postDB){\n\t\t\n\t\tList<Post> posts = new ArrayList<Post>();\n\t\t\n\t\tfor(int i=0;i<postDB.size();i++){\t\t\n\t\t\t\n\t\t\tPost post = new Post();\n\t\t\tDBObject json = postDB.get(i);\n\t\t\tpost.setId(json.get(\"_id\").toString());\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tBSONObject jpost = (BSONObject) json.get(\"post\");\n\t\t\tBSONObject jAuthor = (BSONObject) jpost.get(author);\n\t\t\t\t\t\n\t\t\tAuthor postAuthor = new Author(jAuthor.get(fullName).toString(),jAuthor.get(email).toString()); \n\t\t\t\n\t\t\tif(jAuthor.containsField(faceID)){\n\t\t\t\tpostAuthor.setFacebookId(jAuthor.get(faceID).toString());\n\t\t\t}\n\t\t\tpost.setAuthor(postAuthor);\n\t\t\tDBObject jComments = (DBObject) jpost.get(comments);\n\t\t\t\n\t\t\t\n\t\t\tif(jpost.containsField(comments)){\n\t\t\t\tList<Comment> commentsArray = new ArrayList<Comment>();\n\t\t\t\tString[] g = jComments.toString().split(author,10);\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor(int s = 1;s<g.length;s++){\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tString partial = g[s];\n\t\t\t\t\tint indexA = partial.indexOf(email);\n\t\t\t\t\tint indexC = partial.indexOf(\",\",indexA+1);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tString em = partial.substring(indexA+10,indexC-2);\n\t\t\t\t\t\n\t\t\t\t\tindexA = partial.indexOf(\"fullName\");\n\t\t\t\t\tindexC = partial.indexOf(\"}\",indexA);\n\t\t\t\t\tint indexId = partial.indexOf(faceID);\n\t\t\t\t\tint indexIdEnd = -1;\n\t\t\t\t\tString faceIdComment = null;\n\t\t\t\t\t\n\t\t\t\t\tif(indexId != -1){\n\t\t\t\t\t\tindexIdEnd = indexC; \n\t\t\t\t\t\tindexC = indexId - 5;\n\t\t\t\t\t\tindexId = partial.indexOf(\":\",indexId);\n\t\t\t\t\t\tfaceIdComment = partial.substring(indexId+3,indexIdEnd-1);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tString funame = partial.substring(indexA+13,indexC);\n\t\t\t\t\t\n\t\t\t\t\tComment co = new Comment();\n\t\t\t\t\tAuthor au = new Author(funame,em);\n\n\t\t\t\t\tif(indexIdEnd != -1){\n\t\t\t\t\t\tau.setFacebookId(faceIdComment);\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tco.setAuthor(au);\n\t\t\t\t\tindexA = partial.indexOf(\"date\");\n\t\t\t\t\tindexC = partial.indexOf(\",\",indexA);\n\t\t\t\t\t\n\t\t\t\t\tString dateString = partial.substring(indexA+9,indexC-2);\t\t\t\t\t\t\n\t\t\t SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"EE MMM dd HH:mm:ss z yyyy\",\n Locale.ENGLISH);\n\t\t\t try\n\t\t\t {\n\t\t\t Date date = simpleDateFormat.parse(dateString);\n\t\t\t co.setCreationTimestamp(date);\n\t\t\t }\n\t\t\t catch (Exception ex)\n\t\t\t {\n\t\t\t System.out.println(\"Exception \"+ex);\n\t\t\t }\t\t\t\t\t\t\n\t\t\t\t\tindexA = partial.indexOf(\"message\");\n\t\t\t\t\tindexC = partial.indexOf(\"}\",indexA);\n\t\t\t\t\t\n\t\t\t\t\tString commentString = partial.substring(indexA+12,indexC-1);\n\t\t\t\t\tco.setMessage(commentString);\n\t\t\t\t\t\n\t\t\t\t\tcommentsArray.add(co);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tpost.setComments(commentsArray);\n\t\t\t\t\n\t\t\t}\n\t\t\t\t\t\n\t\t\t\n\t\t\tif(jpost.toString().contains(opinions)){\n\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\tString lik = jpost.get(like).toString();\n\t\t\t\t\tint li = Integer.parseInt(lik);\n\t\t\t\t\tpost.setLikes(li);\t\t\t\t\n\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\ttry{\n\t\t\t\t\tString dislik = jpost.get(dislike).toString();\n\t\t\t\t\tint dil = Integer.parseInt(dislik);\n\t\t\t\t\tpost.setDislikes(dil);\n\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tDBObject jOpinion = (DBObject) jpost.get(opinions);\n\t\t\t\tString[] opis = jOpinion.toString().split(author);\n\t\t\t\t\n\t\t\t\tList<Opinion> opinionsList = new ArrayList<Opinion>();\n\t\t\t\tfor(int opin=1;opin<opis.length;opin++){\n\t\t\t\t\t\n\t\t\t\t\tOpinion op = new Opinion();\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\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tString opisPartial = opis[opin];\n\t\t\t\t\tint indexA = opisPartial.indexOf(email);\n\t\t\t\t\tint indexC = opisPartial.indexOf(\",\",indexA+1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tString em = opisPartial.substring(indexA+10,indexC-2);\n\t\t\t\t\t\n\t\t\t\t\tindexA = opisPartial.indexOf(\"fullName\");\n\t\t\t\t\tindexC = opisPartial.indexOf(\"}\",indexA);\n\t\t\t\t\tint indexId = opisPartial.indexOf(faceID);\n\t\t\t\t\tint indexIdEnd = -1;\n\t\t\t\t\tString faceIdOpin = null;\n\t\t\t\t\t\n\t\t\t\t\tif(indexId != -1){\n\t\t\t\t\t\tindexIdEnd = indexC; \n\t\t\t\t\t\tindexC = indexId - 5;\n\t\t\t\t\t\tindexId = opisPartial.indexOf(\":\",indexId);\n\t\t\t\t\t\tfaceIdOpin = opisPartial.substring(indexId+3,indexIdEnd-1);\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tString funame = opisPartial.substring(indexA+13,indexC);\n\t\t\t\t\t\n\t\t\t\t\tAuthor a = new Author(funame,em);\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tif(indexIdEnd != -1){\n\t\t\t\t\t\ta.setFacebookId(faceIdOpin);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\top.setAuthor(a);\n\t\t\t\t\t\n\t\t\t\t\tindexA = opisPartial.indexOf(\":\",indexC);\n\t\t\t\t\tindexC = opisPartial.indexOf(\"}\",indexA);\n\t\t\t\t\t\n\t\t\t\t\tString opiPosit = opisPartial.substring(indexA+3,indexC-1);\n\t\t\t\t\t\n\t\t\t\t\tif(opiPosit.equalsIgnoreCase(\"true\")){\n\t\t\t\t\t\top.setPositive(true);\n\t\t\t\t\t}else{\n\t\t\t\t\t\top.setPositive(false);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\topinionsList.add(op);\n\t\t\t\t\t \t\t\t\n\t\t\t\t}\n\t\t\t\tpost.setOpinions(opinionsList);\n\t\t\t\t\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tString [] dataFinal = null; \t\t\t\t\t\t\t\n\t\t\tString dataString = null;\n\t\t\t\n\t\t\tif(jpost.containsField(date)){\n\t\t\t\tdataFinal = jpost.toString().split(date); \t\t\t\t\t\t\t\n\t\t\t\tdataString = dataFinal[dataFinal.length-1];\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(dataFinal != null){\n\t\t\t\tint indexA = dataString.indexOf(\":\");\n\t\t\t\tint indexC = dataString.indexOf(\",\",indexA);\n\t\t\t\t\n\t\t\t\tString dateFinal = dataString.substring(indexA+3,indexC-2);\n\t\t SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"EE MMM dd HH:mm:ss z yyyy\",\n\t Locale.ENGLISH);\n\t\t try\n\t\t {\n\t\t Date date = simpleDateFormat.parse(dateFinal);\n\t\t post.setCreationTimestamp(date);\n\t\t }\n\t\t catch (Exception ex)\n\t\t {\n\t\t \n\t\t }\t\n\t\t \n\t\t\t\tindexA = dataString.indexOf(\":\",indexC);\n\t\t\t\tindexC = dataString.indexOf(\"}\",indexA);\n\t\t \n\t\t\t\tString messagePost = dataString.substring(indexA+3,indexC-1); \n\t\t\t\tpost.setMessage(messagePost);\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t\n\t\t\tposts.add(post);\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\treturn posts;\t\t\t\t\n\t\t\n\t}", "title": "" }, { "docid": "2e4ed0703393145a6bdb427c7c42af5c", "score": "0.57414806", "text": "@RequestMapping(method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n public final List<PostDTO> getPosts() {\n logger.debug(\"rest getPosts()\");\n return postFacade.getAllPosts();\n }", "title": "" }, { "docid": "27b9971dac0e91ee605b3e40b967e985", "score": "0.57394326", "text": "@GetMapping(\"/addPost\") // przejście metodą GET na stronę formularze\n public String addPost(Model model){\n model.addAttribute(\"post\", new Post());\n model.addAttribute(\"categories\", new ArrayList<>(Arrays.asList(Category.values())));\n return \"addPost\";\n }", "title": "" }, { "docid": "f2f50a557b735bf073a07b233e3f0336", "score": "0.5721338", "text": "private void initNewActivePosts(ArrayList<Post> activePosts) {\n\t\tthis.activePosts = activePosts;\n\t\tinitPostArrayAdapter();\n\t}", "title": "" }, { "docid": "1d8191e921b9e138f69da52ba3917150", "score": "0.5692823", "text": "@Override\r\n public List<PostDto> getAllPosts() {\r\n List<Post> posts = postRepository.findAll();\r\n return posts.stream().map(post -> mapToDto(post)).collect(Collectors.toList());\r\n }", "title": "" }, { "docid": "9740b00a258f15dbdbd6b6ae233c7176", "score": "0.5691443", "text": "public List<EntryImpl> getEntries()\n {\n return posts;\n }", "title": "" }, { "docid": "38456908d4f2a3ad0aa7205eabf3b436", "score": "0.5690374", "text": "public void updateEntries(EntryImpl b)\n {\n this.posts.add(b);\n }", "title": "" }, { "docid": "0b0273c7bfb2bcc74e837738eff12e6a", "score": "0.566475", "text": "@RequestMapping(method = RequestMethod.GET, path = \"/users/posts\")\n public List<Post> getAllPosts() {\n return postJPARepository.findAll();\n }", "title": "" }, { "docid": "7f4b8924df9c6f1a7033f9f9068c8cab", "score": "0.56606954", "text": "public void mostrarTodosPosts() {\n //fazendo uma conexaõ para puxar 3 posts do banco de dados da tabela post\n try {\n con = new ConexaoBancoDeDados();\n con.conectar();\n PreparedStatement consultaTrazTudo = this.con.getConnection().prepareStatement(\"SELECT id_post,fk_pessoa,descricao,imagem,data FROM post order by id_post desc LIMIT ?;;\");\n consultaTrazTudo.setInt(1,3); //setando um limite para trazer so 3 posts ultimos post\n ResultSet resultadoConsulta = consultaTrazTudo.executeQuery();\n while(resultadoConsulta.next()) {\n //populando um post atual sendo avalido para o panel interno\n post = new ClassePost();\n post.setBinarioImagem(resultadoConsulta.getBytes(4));\n post.setDescricao(resultadoConsulta.getString(3));\n post.setId_post(resultadoConsulta.getInt(1));\n post.setFk_pessoa(resultadoConsulta.getInt(2));\n post.setData(resultadoConsulta.getDate(5)); // pegando a data da consulta e setando no objeto\n PanelParaVerPostEDarLike panelMostraPost = new PanelParaVerPostEDarLike(this.post,this.usuarioPrincipalQueVaiDarLike);\n this.painelParaMostrarPost.add(panelMostraPost);\n }\n } catch (SQLException e) {\n JOptionPane.showMessageDialog(null,\"ocorreu um erro ao buscar os posts de usuarios diferentes!\");\n }\n }", "title": "" }, { "docid": "fb7376812692c7447495163afb1faf9f", "score": "0.5658661", "text": "public List<GetPostsDTO> getPosts(int threadid);", "title": "" }, { "docid": "780b76b0aa9a2502294264198b10482f", "score": "0.5656193", "text": "public void addTweet(Post post);", "title": "" }, { "docid": "1d7cc4b8242e696d72da8f992d688136", "score": "0.5652558", "text": "public List<Post> getPosts(String endpoint) {\n List<Post> postsList = new ArrayList<>();\n JSONArray jsonArray = new JSONArray(getRequest(endpoint).body().prettyPrint());\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n postsList.add(Post.mapJsonToPost(jsonObject));\n }\n return postsList;\n }", "title": "" }, { "docid": "3a6ea0575c2748bde9c30e5d20290034", "score": "0.5629965", "text": "public void savePosts(PostingData postingData);", "title": "" }, { "docid": "ffc3dfad7950dfc1ff61d77ff65cbf5a", "score": "0.5607565", "text": "@RequestMapping(value = \"/list\", method = RequestMethod.GET)\n public String listPost(Model model) {\n LOGGER.info(\"UI METHOD CALLED: list\");\n model.addAttribute(\"posts\", postService.findAllByOrderByCreatedAtDesc());\n return \"posts/list\";\n }", "title": "" }, { "docid": "64ce2f5b536b5f4dcf99e4b643e69ddc", "score": "0.5604063", "text": "public List<Posts> findallpost() {\n\t\treturn this.postDao.findallpost();\r\n\t}", "title": "" }, { "docid": "57792454467624a02b8a1eb36954cf89", "score": "0.5603695", "text": "public List<PostModel> loadData(int page) {\n List<PostModel> list = new ArrayList<>();\n String url = \"https://jsonplaceholder.typicode.com/posts?_page=\" + page;\n Log.d(TAG, \"QUERY URL : \" + url);\n list.addAll(getPostsListFrmServer(url));\n if (page > PAGE_LIMIT) {\n sEndOfData = true;\n }\n return list;\n }", "title": "" }, { "docid": "455d4f89f0473ee4173d1893ba446baf", "score": "0.55995345", "text": "public List<Post> getWallPosts(Long userID, int start, int count);", "title": "" }, { "docid": "fe6732aaa1793ae7ca505ccd599ff080", "score": "0.55944216", "text": "public void a(List<Post> list) {\n if (list == null || list.isEmpty() || list.size() == 1 && !(list.get(0) instanceof Post)) {\n return;\n }\n hp.this.b.a(list);\n hp.this.b.a(Integer.toString((int)((Post)list.get((int)(-1 + list.size()))).post_id));\n }", "title": "" }, { "docid": "721a7248dbb10f3e96315dfad2443732", "score": "0.5587755", "text": "public List<Post> getUserPosts(Long userID, int start, int count);", "title": "" }, { "docid": "b8bd76e7d7dfcac38c2039755f0ad5ce", "score": "0.5580706", "text": "public void getPosts(String cName){\n System.out.println(\"Here is the list of posts:\\n\\n\");\n clubName = cName;\n //calls db object to get the posts in order of their dates(latest to oldest)\n db.getPostsFromDataBase(clubName);\n }", "title": "" }, { "docid": "7b306c27b64bef818e937ea8fd1e8b66", "score": "0.5580375", "text": "public List<PostModel> getPostsListFrmServer(String url) {\n final List<PostModel> postslist = new ArrayList<>();\n final PostModelHelper postModelHelper = new PostModelHelper();\n String postJson = null;\n try {\n postJson = new GetPostsJsonFrmServerTask().execute(url).get();\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (ExecutionException e) {\n e.printStackTrace();\n }\n if (postJson != null) {\n try {\n postslist.addAll(postModelHelper.postsJsonDserializer(postJson));\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n return postslist;\n }", "title": "" }, { "docid": "4ac174e25fa456113bc903ed94912fab", "score": "0.5572956", "text": "public void addPost(Post post) {\n ContentValues values = new ContentValues();\n values.put(POST_COLUMN_AUTHOR, String.valueOf(post.getAuthor()));\n values.put(POST_COLUMN_DATE, String.valueOf(post.getCreated()));\n values.put(POST_COLUMN_URL, String.valueOf(post.getUrl()));\n values.put(POST_COLUMN_THUMBNAIL, String.valueOf(post.getThumbnail()));\n values.put(POST_COLUMN_TITLE, String.valueOf(post.getTitle()));\n values.put(POST_COLUMN_BODY, String.valueOf(post.getBody()));\n if (db == null) {\n db = getWritableDatabase();\n }\n db.insert(TABLE_POST, null, values);\n }", "title": "" }, { "docid": "c0ab00c1990cd41324c099be31a9bd14", "score": "0.55723625", "text": "@Override\r\n public List<NewsVO> getLatestPosts() {\n// \r\n// n = new NewsVO();\r\n// n.setTitle(\"Title of news 2\");\r\n// n.setDesc(\"Desc DescDescDescDescDescDescDescDescDescDescDescDescDesc of news 1\");\r\n// n.setUpCount(20);\r\n// n.setDownCount(2);\r\n// n.setId(2);\r\n// n.setShowEdit(true);\r\n// n.setScore(5);\r\n// n.setUserName(\"rajat\");\r\n// n.setDomain(\"www.indianwall.com\");\r\n// n.setWhen(new Date());\r\n// nlist.add(n);\r\n DBHelper dbhelper = new HSqlHelper();\r\n List<NewsVO> nlist = dbhelper.selectLatestPosts();\r\n return nlist;\r\n }", "title": "" }, { "docid": "97b79007567f225658876a80f040886f", "score": "0.5569648", "text": "private void addNewsCategories(List<PostCategory> postCategories) {\n \n for (int i = 0; i < postCategories.size(); i++) {\n if (postCategories.get(i).getCount() != 0)\n postCategoriesList.add(postCategories.get(i));\n }\n \n newsCategoriesAdapter.notifyDataSetChanged();\n \n \n for (int i = 0; i < postCategoriesList.size(); i++) {\n RequestAllNewsOfCategory(postCategoriesList.get(i).getId());\n }\n\n\n // Change the Visibility of emptyRecord Text based on ProductList's Size\n if (newsCategoriesAdapter.getItemCount() == 0) {\n emptyText.setVisibility(View.VISIBLE);\n } else {\n emptyText.setVisibility(View.GONE);\n }\n }", "title": "" }, { "docid": "7dd1ac8439b38ebf219e9ac241f91395", "score": "0.5566803", "text": "@Override\n public void onLoadMore(int current_page) {\n\n if(!loading && loadMoreData == true){\n pageNo++;\n // UserPostObj userPostObj = new UserPostObj();\n //userPostObj.viewType = \"progress\";\n rPostList.add(null);\n //recyclerView.addD\n restaurantProfileAdapter.notifyItemInserted(rPostList.size()-1);\n //--homeFeedAdapter.notifyItemInserted(postData.size()-1);\n loading = true;\n //Log.d(\"loadMore\", \"call getPostFeed('loadMore')\");\n try {\n getRestaurantProfile(\"myProfilePost\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "afc9ba123d2bcf7a92aafd2ec6e0d9b5", "score": "0.5561747", "text": "public void addNewPost(String contentFromGUI, int userIDFromGUI, int timestamp, String visibilityFromGUI) {\r\n String[] hashTags = parseForTags(contentFromGUI, \"#\");\r\n String[] atTags = parseForTags(contentFromGUI, \"@\");\r\n int postID = posts.size() + 1;\r\n \tPost newPost = new Post(contentFromGUI,userIDFromGUI, timestamp, hashTags, atTags, postID, visibilityFromGUI);\r\n posts.ensureCapacity(posts.size() + 1);\r\n posts.add(newPost);\r\n \r\n String toFile = \"\" + userIDFromGUI + \",\" + postID + \",\";\r\n for(int i=0; i<hashTags.length; i++){\r\n \tif(i == 0){\r\n \t\ttoFile = toFile + hashTags[i];\r\n \t} else {\r\n \t\ttoFile = toFile + \" \" + hashTags[i];\r\n \t}\r\n }\r\n \r\n toFile = toFile + \",\";\r\n for(int i=0; i<atTags.length; i++){\r\n \tif(i == 0){\r\n \t\ttoFile = toFile + atTags[i];\r\n \t} else {\r\n \t\ttoFile = toFile + \" \" + atTags[i];\r\n \t}\r\n }\r\n toFile = toFile + \",\" + visibilityFromGUI + \",\" + contentFromGUI + \"\\r\";\r\n \r\n try {\r\n PrintWriter fstream = new PrintWriter(new FileWriter(filename2, true));\r\n BufferedWriter out = new BufferedWriter(fstream);\r\n out.write(toFile);\r\n out.close();\r\n }\r\n catch (Exception e) {\r\n \r\n }\r\n \r\n \r\n }", "title": "" }, { "docid": "43447af031e178169699f99ac29bbb8a", "score": "0.55575114", "text": "@Override\r\n\tpublic List<Post> getAllPost() {\n\t\treturn systemDao.getAllPost();\r\n\t}", "title": "" }, { "docid": "509d95f10d94fc12bcb86edc8b4ce0d1", "score": "0.5544704", "text": "private void loadTopPosts() {\n final Post.Query postsQuery = new Post.Query();\n\n //ParseQuery<Post> postQuery = new ParseQuery<>(Post.class);\n //postQuery.include(Post.KEY_USER)\n // get top 20 posts with user info\n postsQuery.getTop().withUser();\n\n\n\n\n // registers sub class\n ParseObject.registerSubclass(Post.class);\n\n\n // make query to grab current posts\n postsQuery.findInBackground(new FindCallback<Post>() {\n @Override\n public void done(List<Post> objects, ParseException e) {\n if (e == null) {\n // occupy Recycler View w posts...\n mPosts.addAll(objects);\n feedAdapter.notifyDataSetChanged();\n\n for (int i = 0; i < objects.size(); i++) {\n Log.d(\"FeedFragment\", \"Post[\" + i + \"] = \" + objects.get(i).getDescription()\n + \" username =\" + objects.get(i).getUser().getUsername());\n\n }\n } else {\n Log.d(\"FeedFragment\", \"Querying of Posts failed\");\n e.printStackTrace();\n }\n }\n });\n\n }", "title": "" }, { "docid": "398db4ad8106c1ab108083e69648d3ce", "score": "0.5532723", "text": "private void initialize() {\n\n if (posts.size() == 0) {\n\n // Must execute network tasks outside the UI\n // thread. So create a new thread.\n\n new Thread() {\n\n public void run() {\n posts.addAll(postsHolder.fetchPosts());\n\n // UI elements should be accessed only in\n // the primary thread, so we must use the\n // handler here.\n\n handler.post(new Runnable() {\n public void run() {\n createAdapter();\n }\n });\n }\n }.start();\n } else {\n createAdapter();\n }\n }", "title": "" }, { "docid": "02f00ed41be1fb7abdc7c484462c9304", "score": "0.5529671", "text": "@Override\n\tpublic List<Post> Posts(int pageNo, int pageSize) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "c052ddfafcf7c5ba9b6fbda11b4ab342", "score": "0.55121505", "text": "public void addFavoritePost(FavoritePost post){\n realm.beginTransaction();\n realm.copyToRealm(post);\n realm.commitTransaction();\n }", "title": "" }, { "docid": "46889e6e6dcde39194868a4ae6c0fe4b", "score": "0.55121315", "text": "private void insertData() {\n ContentValues postValues = new ContentValues();\n\n postValues.put(FreeganContract.FreegansEntry.COLUMN_POST_DESCRIPTION, mPost.getDescription());\n postValues.put(FreeganContract.FreegansEntry.COLUMN_FREEGAN_ID, mPost.getPostId());\n\n JSONObject json = new JSONObject();\n try {\n json.put(JSONARRAYKEY, new JSONArray(mPost.getImageUrl()));\n } catch (JSONException e) {\n e.printStackTrace();\n }\n String postImageUrls = json.toString();\n\n postValues.put(FreeganContract.FreegansEntry.COLUMN_POST_PICTURE_PATH, postImageUrls);\n postValues.put(FreeganContract.FreegansEntry.COLUMN_POSTER_NAME, mPost.getUserName());\n postValues.put(FreeganContract.FreegansEntry.COLUMN_POSTER_ID, mPost.getPostUserObjectId());\n postValues.put(FreeganContract.FreegansEntry.COLUMN_POSTER_PICTURE_PATH, mPost.getProfileImgUrl());\n postValues.put(FreeganContract.FreegansEntry.COLUMN_POST_DATE, mPost.getPostDate());\n\n getActivity().getApplicationContext().getContentResolver().insert(FreeganContract.FreegansEntry.CONTENT_URI,\n postValues);\n }", "title": "" }, { "docid": "3b8c0148577ea7bdb2e0bff6b7d52c83", "score": "0.5495051", "text": "@Override\r\n\tpublic List<Post> findAllPost(int id) {\n\t\treturn this.postDao.findAllPost(id) ;\r\n\t}", "title": "" }, { "docid": "1cf4de3c1c05f8ea65a0b758568b158d", "score": "0.5494487", "text": "private void getAllPublicPosts(){\n\n mPosts.clear();\n collectionReference.get().addOnSuccessListener(new OnSuccessListener<QuerySnapshot>() {\n @Override\n public void onSuccess(QuerySnapshot documentSnapshots) {\n\n for(DocumentSnapshot documentSnapshot : documentSnapshots){\n\n documentSnapshot.getReference()\n .collection(\"User Posts\")\n .whereEqualTo(\"privacyLevel\", 2)\n .get()\n .addOnSuccessListener(new OnSuccessListener<QuerySnapshot>() {\n @Override\n public void onSuccess(QuerySnapshot documentSnapshots) {\n\n for(DocumentSnapshot documentSnapshot1 : documentSnapshots){\n\n Post post = documentSnapshot1.toObject(Post.class);\n mPosts.add(post);\n }\n\n Collections.sort(mPosts, new Comparator<Post>() {\n @Override\n public int compare(Post o1, Post o2) {\n return o2.getTimeStamp().compareTo(o1.getTimeStamp());\n }\n });\n\n mFeedAdapter.notifyDataSetChanged();\n }\n });\n }\n }\n });\n }", "title": "" }, { "docid": "9ab679cc70318f1c0fc61045c9861644", "score": "0.54934984", "text": "public static void getPosts(Callback<List<WPPostsData>> callback) {\n\n }", "title": "" }, { "docid": "ac5ce4d962639de3e1e499dde7df5e85", "score": "0.5483668", "text": "@Override\n public void addFragments() {\n for (ArticleListHelper articleListHelper : LibraryFragment.getPages(getActivity())) {\n\n this.addFragment(articleListHelper.getTitle(), ArticleListFragment.newInstance(articleListHelper, false));\n\n }\n\n }", "title": "" }, { "docid": "ade97d6aca3144c5c24ea129f59eb9d8", "score": "0.5478289", "text": "private void updateTimelineUI() {\n final StringBuilder sb = new StringBuilder();\n for (CloudEntity post : posts) {\n sb.append(sdf.format(post.getCreatedAt()) + getCreatorName(post) + \": \" + post.get(\"message\")\n + \"\\n\");\n }\n tvPosts.setText(sb.toString());\n }", "title": "" }, { "docid": "177039b37f2f8d5f02870c664fbab2fd", "score": "0.5470485", "text": "public List<Post> getRecentPosts(){\n\t\treturn postDAO.getRecentPosts();\n\t}", "title": "" }, { "docid": "8ac3fec3db3ab43ca2d55c5d428b2cd8", "score": "0.54689723", "text": "private void getPosts(final hCallBack callBack) {\n String url = hRequestQueue.BASE_URL + \"/post.php\";\n StringRequest request = new StringRequest(Method.POST, url, new Listener<String>() {\n @Override\n public void onResponse(String response) {\n Logger.d(response);\n callBack.call(response);\n }\n }, new ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Logger.d(error);\n }\n }) {\n @Override\n public Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n String ourTeam = mSettings.instance.our_team + \"\";\n String totalTeamCount = mSettings.instance.total_team_count + \"\";\n params.put(\"team\", ourTeam);\n params.put(\"get_posts\", \"true\");\n params.put(\"total_team_count\", totalTeamCount);\n return params;\n }\n };\n hRequestQueue.getInstance(getActivity()).add(request);\n }", "title": "" }, { "docid": "749be339edd4a698bdde50c3811fbd01", "score": "0.54648465", "text": "@Dao\npublic interface PostDao {\n\n @Insert(onConflict = REPLACE)\n void savePosts(List<Post> posts);\n\n @Insert(onConflict = REPLACE)\n void savePost(Post post);\n\n @Query(\"SELECT * FROM posts\")\n LiveData<List<Post>> getAllPosts();\n\n @Query(\"SELECT * FROM posts WHERE id =:postId\")\n LiveData<Post> getPost(Integer postId);\n}", "title": "" }, { "docid": "cf194b866b9706ba3192b29425462c9c", "score": "0.5461939", "text": "@WebMethod(operationName = \"listPost\")\n public List<Post> listPost(@WebParam(name = \"status\") String status) throws Exception {\n String jsonString = readUrl(\"https://simpleblog5.firebaseio.com/post.json\");\n List<Post> posts = new ArrayList<>();\n \n HashMap<String, Map<String, String>> result = new ObjectMapper().readValue(jsonString, HashMap.class);\n\n for(String key: result.keySet()){\n if(result.get(key).get(\"status\").equals(status)){\n Post post = new Post();\n post.setId(key);\n post.setJudul(result.get(key).get(\"judul\"));\n post.setContent(result.get(key).get(\"konten\"));\n post.setTanggal(result.get(key).get(\"tanggal\"));\n post.setAuthor(result.get(key).get(\"author\"));\n post.setStatus(result.get(key).get(\"status\"));\n posts.add(post);\n }\n }\n \n return posts;\n }", "title": "" }, { "docid": "0113c6a0ce999174926860f8f1fa0208", "score": "0.54500604", "text": "@Transactional\n\tpublic List<Post> showALLPost() {\n\t\treturn this.postDAO.showALLPost();\n\t}", "title": "" }, { "docid": "63de313dfa22390fdbd965b361bea594", "score": "0.5449566", "text": "@Override\r\n\tpublic List<Post> getPostByName(String name) {\n\t\treturn systemDao.getPostByName(name);\r\n\t}", "title": "" }, { "docid": "e9791b49fdb896d25771adb82a650c8a", "score": "0.5434284", "text": "public void addAll(List<Article> list) {\n articles.addAll(list);\n notifyDataSetChanged();\n }", "title": "" }, { "docid": "03bf0319454797637b425291f198877a", "score": "0.54337806", "text": "public List<Posts> viewpost(Integer pageSize, Integer pageNow) {\n\t\treturn this.postDao.viewpost(pageSize,pageNow);\r\n\t}", "title": "" }, { "docid": "e17c9963c31e789fbcd2bf870585927d", "score": "0.54290456", "text": "@Override\n public Post addPost(Post post) {\n this.savePost(post);\n return this.findPostById(post.getId());\n }", "title": "" }, { "docid": "384bdf74bce1fa7a4506e97d41e1854c", "score": "0.5420103", "text": "public void handleBlogResponse() {\n\t\tmProgressBar.setVisibility(View.INVISIBLE);\n\t\tif(mBlogData==null){\n\t\t\tupdateDisplayForErrors();\n\t\t} else\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tJSONArray jsonPosts=mBlogData.getJSONArray(\"posts\");\n\t\t\t\t//mBlogListTitles=new String[jsonPosts.length()];\n\t\t\t\tArrayList<HashMap<String, String>> blogPosts=new ArrayList<HashMap<String, String>>();\n\t\t\t\t\n\t\t\t\tfor (int i=0; i<jsonPosts.length();i++){\n\t\t\t\t\tJSONObject post=jsonPosts.getJSONObject(i);\n\t\t\t\t\tString title=post.getString(\"title\");\n\t\t\t\t\t\n\t\t\t\t\t/*\n\t\t\t\t\t * @fromHTML Returns displayable styled text from the provided HTML string. Any <img> tags in the HTML \n\t\t\t\t\t * will display as a generic replacement image which your program can then go through and replace with real images\n\t\t\t\t\t */\n\t\t\t\t\ttitle=Html.fromHtml(title).toString();\n\t\t\t\t\tString author=post.getString(\"author\");\n\t\t\t\t\tauthor=Html.fromHtml(author).toString();\n\t\t\t\t\t\n\t\t\t\t\tHashMap<String, String> blogPost=new HashMap<String, String> ();\n\t\t\t\t\tblogPost.put(KEY_TITLE, title);\n\t\t\t\t\tblogPost.put(KEY_AUTHOR, author);\n\t\t\t\t\tblogPosts.add(blogPost);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString[] keys={KEY_TITLE,KEY_AUTHOR};\n\t\t\t\tint[] ids={ android.R.id.text1, android.R.id.text2};\n\t\t\t\t\n\t\t\t\tSimpleAdapter myAdapter=new SimpleAdapter(this, blogPosts, \n\t\t\t\t\t\tandroid.R.layout.simple_list_item_2, keys, ids);\n\t\t\t\tsetListAdapter(myAdapter);\n\t\t\t} catch (JSONException e) {\n\t\t\t\tlogExceptions(e);\n\t\t\t}\n\t}", "title": "" }, { "docid": "3392bae95790e38a5c14b2345cbc986e", "score": "0.54163444", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_home, container, false);\n setHasOptionsMenu(true);\n postsList = new ArrayList<ModelPosts>();\n\n firebaseAuth = FirebaseAuth.getInstance();\n db = FirebaseFirestore.getInstance();\n\n P_recyclerView = view.findViewById(R.id.posts_recycledView);\n P_recyclerView.setHasFixedSize(true);\n P_recyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));\n\n //P_adapter = new PostAdapter(postsList);\n //P_recyclerView.setAdapter(P_adapter);\n\n getAllPosts();\n\n return view;\n\n }", "title": "" }, { "docid": "a8b648518b8654d19b9652e72177572c", "score": "0.54138726", "text": "private ArrayList<Post> getAllGovernmentPosts(){\n ArrayList<Post> postArrayList = new ArrayList<>();\n postArrayList.add(new Post(1,\"Daffodil International University\",\"daffodilvarsity@diu.edu.bd\",\"+880-1739-574727\",\"http://studentportal.diu.edu.bd/\", \"Sobahanbagh,Dhanmondi-27,Dhaka\",1,\"10-Jan-2020\"));\n postArrayList.add(new Post(2,\"BUET\",\"buet@edu.bd\",\"+880-1739-574727\",\"http://buet.diu.edu.bd/\", \"Shahbagh,Palashi,Dhaka\",2,\"30-Jun-2019\"));\n postArrayList.add(new Post(3,\"DMC\",\"dhakamedicalcollege@edu.bd\",\"+880-4512-574727\",\"http://studentportal.diu.edu.bd/\", \"Sobahanbagh,Dhanmondi-27,Dhaka\",2,\"20-Aug-2018\"));\n return postArrayList;\n }", "title": "" }, { "docid": "ad4f2ceec52555583e67fcb8ac8e7b96", "score": "0.54107857", "text": "private void loadPostInfo() {\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference(\"Posts\");\n Query query = ref.orderByChild(\"pId\").equalTo(postId);\n query.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n //gerekli gönderiyi alana kadar gönderileri kontrol etmeye devam edin\n for (DataSnapshot ds: snapshot.getChildren()){\n //get data\n String pTitle = \"\"+ds.child(\"pTitle\").getValue();\n String pDesc = \"\"+ds.child(\"pDesc\").getValue();\n String pTimeStamp = \"\"+ds.child(\"pTime\").getValue();\n pImage = \"\"+ds.child(\"pImage\").getValue();\n herDp = \"\"+ds.child(\"uDp\").getValue();\n herUid = \"\"+ds.child(\"uid\").getValue();\n String uEmail = \"\"+ds.child(\"uEmail\").getValue();\n herName = \"\"+ds.child(\"uName\").getValue();\n String commentCount = \"\" + ds.child(\"pComments\").getValue();\n\n //zaman göstergesini dd/mm/yyyy hh:mm am/pm şekline dönüştür\n Calendar calendar = Calendar.getInstance(Locale.getDefault());\n calendar.setTimeInMillis(Long.parseLong(pTimeStamp));\n String pTime = DateFormat.format(\"dd/MM/yyyy hh:mm aa\", calendar).toString();\n\n //set data\n pTitle_Txt.setText(pTitle);\n pDesc_Txt.setText(pDesc);\n pTime_Txt.setText(pTime);\n uName_Txt.setText(herName);\n pComments_Txt.setText(commentCount+\" Comments\");\n\n //postu gönderen kullanıcın resmini almak için\n //Eğer post resimsiz ise pImage.equals(\"noImage\") ve imageView'i gizle\n if (pImage.equals(\"noImage\")){\n //imageView'i gizle\n pImage_Imw.setVisibility(View.GONE);\n }\n else {\n //imageView'i göster\n pImage_Imw.setVisibility(View.VISIBLE);\n\n try {\n Picasso.get().load(pImage).into(pImage_Imw);\n }\n catch (Exception e){\n\n }\n }\n\n //yorum kısmındaki kullancıı resmini ayarlama\n try {\n Picasso.get().load(herDp).placeholder(R.mipmap.default_pic_foreground).into(uPicture_Imw);\n }\n catch (Exception e){\n Picasso.get().load(R.mipmap.default_pic_foreground).into(uPicture_Imw);\n }\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n });\n\n }", "title": "" }, { "docid": "720e48cd957dfdfc992a4de09ac02f6f", "score": "0.54107136", "text": "@Override\r\n\tpublic List<Post> getAllPostByPager(PagerUtil pager) {\n\t\treturn systemDao.getAllPostByPager(pager);\r\n\t}", "title": "" }, { "docid": "7b9e55cf43c165e864f0710e6648228a", "score": "0.5408062", "text": "public void a(List<Post> list) {\n if (list == null || list.isEmpty()) {\n hp.this.b.a((String)null);\n return;\n } else {\n if (list.size() == 1 && !(list.get(0) instanceof Post)) return;\n {\n hp.this.b.b(list);\n hp.this.b.a(Integer.toString((int)((Post)list.get((int)(-1 + list.size()))).post_id));\n return;\n }\n }\n }", "title": "" }, { "docid": "a72ada9d0cd97c266e8e8bf103d5ecb3", "score": "0.5404184", "text": "protected ArrayList<Post> fetch_all_posts(int forum_id){\n\t\tint i;\n\t\tPost p;\n\t\tArrayList<Post> al = null;\n\t\tString[] post_detail = new String[3];\n\t\tExecuteForResultSet obj = new ExecuteForResultSet();\n\t\ttry{\n\t\t\tString query = \"{CALL spGetAllPostsById(?)}\";\n\t\t\tCallableStatement cs = obj.getContext().prepareCall(query);\n\t\t\tcs.setInt(1, forum_id);\n\t\t\tResultSet rs = obj.Execute(cs);\n\t\t\tint count = 0;\n\t\t\twhile(rs.next()){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tif(count > 0){\n\t\t\t\t//add all the posts to the array list\n\t\t\t\trs = obj.Execute(cs);\n\t\t\t\tal = new ArrayList<Post>();\n\t\t\t\twhile(rs.next()){\n\t\t\t\t\tpost_detail[0] = rs.getString(1);\n\t\t\t\t\tpost_detail[1] = rs.getString(2);\n\t\t\t\t\tpost_detail[2] = rs.getString(3);\n\t\t\t\t\tp = new Post(forum_id, post_detail);\n\t\t\t\t\tal.add(p);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn al;\n\t}", "title": "" }, { "docid": "7b2bed10a77eee4f48b628704a2b5135", "score": "0.5391914", "text": "private void showPosts(int nextOrPrev){\n\t\tArrayList<Post> posts = searchResultController.getQuestionsByFreeTextAndTagsWithLimits(freeText, tags, currSortingAlogorithm, activePosts, nextOrPrev);\t\t\n\t\tposts = searchResultController.augmentPostsByHeat(freeText, tags, posts);\n\t\tupdateCorrespondingPostArray(posts);\n\t\tinitNewActivePosts(posts);\n\t}", "title": "" }, { "docid": "431e059a39887cefe00e13f829e0f3a4", "score": "0.5380406", "text": "public Integer addPost(Post post,boolean update);", "title": "" }, { "docid": "01e483a07fdad67ea34b34b425a30306", "score": "0.5371608", "text": "public void getComments() {\n progressView.startAnimation();\n progressView.setVisibility(View.VISIBLE);\n ParseQuery<ParseObject> query = new ParseQuery<ParseObject>(getString(R.string.object_post_id));\n\n query.findInBackground(new FindCallback<ParseObject>() {\n @Override\n public void done(List<ParseObject> listPost, ParseException e) {\n if (e == null) {//query salio bien\n Log.i(\"myLog\", \"salio bien\");\n for (int i = 0; i < listPost.size(); i++) {\n String title = listPost.get(i).getString(getString(R.string.key_title));\n String category = listPost.get(i).getString(getString(R.string.key_category));\n String description = listPost.get(i).getString(getString(R.string.key_descripcion));\n String latLon = listPost.get(i).getString(getString(R.string.key_latlon));\n String userId = listPost.get(i).getParseUser(getString(R.string.key_parent)).getObjectId();\n int noMatches = listPost.get(i).getInt(getString(R.string.key_no_matches));\n int noComments = listPost.get(i).getInt(getString(R.string.key_no_comments));\n String objectId = listPost.get(i).getObjectId();\n Post post = new Post(title, category, description, latLon, userId, noComments, noMatches, objectId);\n Log.i(\"myLog\", post.toString());\n new task().execute();\n arrayPost.add(post);\n }\n\n //progressDialog.dismiss();\n Collections.reverse(arrayPost);\n adapter = new CardsAdapter(MainActivity.this, arrayPost);\n cardList.setAdapter(adapter);\n progressView.resetAnimation();\n progressView.setVisibility(View.INVISIBLE);\n\n\n } else {//error)\n progressView.resetAnimation();\n progressView.setVisibility(View.INVISIBLE);\n new task().execute();\n Log.i(\"myLog\", \"error al cargar los post\");\n }\n }\n });\n }", "title": "" }, { "docid": "01b5476b8f7a309bd649a9b09bc23c25", "score": "0.5342373", "text": "public static List<Post> getTop10RecentPosts() throws ClassNotFoundException {\n List<Post> posts = new ArrayList<>();\n\n Statement stmt = null;\n Connection con = null;\n\n try {\n\n con = CS359DB.getConnection();\n stmt = con.createStatement();\n\n StringBuilder insQuery = new StringBuilder();\n\n insQuery.append(\"SELECT * FROM posts ORDER BY created_at DESC LIMIT 10;\");\n\n stmt.execute(insQuery.toString());\n\n ResultSet res = stmt.getResultSet();\n\n while (res.next() == true) {\n Post post = new Post();\n post.setPostID(res.getInt(\"post_id\"));\n post.setUserName(res.getString(\"user_name\"));\n post.setDescription(res.getString(\"description\"));\n post.setResourceURL(res.getString(\"resource_URL\"));\n post.setImageURL(res.getString(\"image_URL\"));\n post.setImageBase64(res.getString(\"image_base64\"));\n post.setLatitude(res.getString(\"latitude\"));\n post.setLongitude(res.getString(\"longitude\"));\n post.setCreatedAt(res.getString(\"created_at\"));\n posts.add(post);\n }\n\n } catch (SQLException ex) {\n // Log exception\n Logger.getLogger(PostDB.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n // close connection\n closeDBConnection(stmt, con);\n }\n\n return posts;\n }", "title": "" } ]
5e185150f8b61ce5105970ef4a853eb6
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.
[ { "docid": "a04193286326cd6038efb577c26c5507", "score": "0.0", "text": "@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\r\n private void initComponents() {\r\n\r\n jLabel7 = new javax.swing.JLabel();\r\n jTextField1 = new javax.swing.JTextField();\r\n\r\n jLabel7.setFont(new java.awt.Font(\"Calibri\", 3, 18)); // NOI18N\r\n java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle(\"I18n/Bundle\"); // NOI18N\r\n jLabel7.setText(bundle.getString(\"JPValorVariavel.jLabel7.text\")); // NOI18N\r\n\r\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\r\n this.setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addComponent(jLabel7)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 274, Short.MAX_VALUE))\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel7)\r\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n );\r\n }", "title": "" } ]
[ { "docid": "98e3f367d20a60eb829a633a5ff465e6", "score": "0.72930163", "text": "public LeTanForm() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.72906625", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.72906625", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.72906625", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "aa07ff7e3edf35c55c5c87cefaf79466", "score": "0.72654414", "text": "public BuildForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "6d8a5efc8e7a18f2819fb9aa46d40ef7", "score": "0.7257468", "text": "private MyForm() {\n initComponents();\n }", "title": "" }, { "docid": "c4acbeda5cea01954bccb283480cff55", "score": "0.7234026", "text": "public MyForm() {\n initComponents();\n }", "title": "" }, { "docid": "a479964e61c568dc27e3b2df8ede0ab3", "score": "0.72237843", "text": "public Des7() {\n initComponents();\n }", "title": "" }, { "docid": "f3bfe9744585eb30ab0e0e9e6e69e630", "score": "0.72057104", "text": "public GuiEncripDescripTxt1() {\n initComponents();\n }", "title": "" }, { "docid": "9be06aa39008afd36508e7b586879b4b", "score": "0.71987444", "text": "public mainForm() {\n initComponents();\n }", "title": "" }, { "docid": "070280bd61dd17f670ae6ba6537039b9", "score": "0.71893126", "text": "public KenoForm() {\n initComponents();\n }", "title": "" }, { "docid": "e37dde8b1fbb23317614a81ff45164f3", "score": "0.7172663", "text": "public Boletin22_2() {\n initComponents();\n }", "title": "" }, { "docid": "cd0565e6923168f5522295fa4162005b", "score": "0.71723866", "text": "public ScoreForm() {\n\n initComponents();\n setLocationRelativeTo(null);\n setDefaultCloseOperation(EXIT_ON_CLOSE);\n\n }", "title": "" }, { "docid": "5bad288018f82ce807ea7e9793620889", "score": "0.71420777", "text": "public SalesForm() {\n initComponents();\n setLocationRelativeTo(this);\n fillComboArticles();\n fillComboClients();\n }", "title": "" }, { "docid": "3e9704f1498c0a397412adbe69f64cbe", "score": "0.71412134", "text": "public infrm_Bodegas() {\n initComponents();\n }", "title": "" }, { "docid": "0101e19944e468839f4a369bd6264cc8", "score": "0.7108364", "text": "public MeganOstrander_UI() {\n initComponents();\n }", "title": "" }, { "docid": "614e4b0f34aa885f6d0c5861f2680c01", "score": "0.71069044", "text": "public Form_KHS() {\n initComponents();\n setLocationRelativeTo(this);\n }", "title": "" }, { "docid": "bc45a28cb4a44a9c66cee49863fd9216", "score": "0.71040756", "text": "public KalkulatorGUI() {\n initComponents();\n }", "title": "" }, { "docid": "66d9aee5c3599615d4fca9d3ad60d6f8", "score": "0.7103687", "text": "public AddDyeingForm() {\n initComponents();\n \n }", "title": "" }, { "docid": "0a2c7c4e3ed64a0f993964910d6391cc", "score": "0.71018755", "text": "public MainForm() {\n initComponents(); \n initialize();\n }", "title": "" }, { "docid": "e079c23c67c1c3e97870dcce82b9433c", "score": "0.7098379", "text": "public Des5() {\n initComponents();\n \n }", "title": "" }, { "docid": "34cf5e3633e4f275f271cd8780120091", "score": "0.7072501", "text": "public frmSupplier() {\n initComponents();\n }", "title": "" }, { "docid": "839a7d72831473fc4a524568c9ba700a", "score": "0.7070749", "text": "public officerFrame() {\n initComponents();\n }", "title": "" }, { "docid": "2fc2f42cacba682866dde2468318895d", "score": "0.7045222", "text": "public AmountReleasedChangeForm() {\r\n initComponents();\r\n }", "title": "" }, { "docid": "d0b275358d703f251ac04263b48273b5", "score": "0.70433074", "text": "public REFERENCE() {\n initComponents();\n }", "title": "" }, { "docid": "75d9abda3aa075191bd782f368a402ae", "score": "0.7036103", "text": "public AlarmGUI() {\n initComponents();\n }", "title": "" }, { "docid": "4afcbf4a2f9c6e766e62c5d89fec7bb7", "score": "0.7027502", "text": "public frmSemaforo() {\n initComponents();\n }", "title": "" }, { "docid": "1da83f490b2d389ac445e80ab8c60cb4", "score": "0.70255595", "text": "public Form_Laundry() {\n initComponents();\n }", "title": "" }, { "docid": "27c07852380f44f6698ffd5432332473", "score": "0.70051944", "text": "public customercatering() {\n initComponents();\n }", "title": "" }, { "docid": "5696b04757fc0f0fb211f01f50e92914", "score": "0.7001916", "text": "public frmRealEstate() {\n initComponents();\n setLocationRelativeTo(null);\n BindRealEstate();\n }", "title": "" }, { "docid": "9ecf05bb3010f0e93e2b3d3fa7d980cc", "score": "0.70004696", "text": "public TradeManagerForm() {\n\tinitComponents();\n }", "title": "" }, { "docid": "3626356331f9775ef2812df66d0f2a29", "score": "0.69876516", "text": "public frmRelatorios() {\n initComponents();\n }", "title": "" }, { "docid": "0f55803ab0e0c6e2735ea20ae6774041", "score": "0.69823265", "text": "public frmNguoiDung() {\n initComponents();\n }", "title": "" }, { "docid": "30391031563ffd6aee9d9875733cc653", "score": "0.69754004", "text": "public PropertiesForm()\n {\n super((Frame)null, true);\n initComponents();\n this.confirm = false;\n this.setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "cd6b1bb0c64543062e92ca4b5c6b66e1", "score": "0.6970088", "text": "public Preisumrechner() {\n initComponents();\n }", "title": "" }, { "docid": "44957ee34753419ab784fee0756e553d", "score": "0.6967426", "text": "public JPersonal() {\n initComponents();\n }", "title": "" }, { "docid": "2c90036bdc3ac447775e902b16c0e257", "score": "0.69660425", "text": "public StudentMainForm() {\n initComponents();\n }", "title": "" }, { "docid": "ee02256c1e6662f2adbd9b864014b381", "score": "0.69538665", "text": "public FStasiun() {\n initComponents();\n }", "title": "" }, { "docid": "5cd485168694e931815ad27063edb9f9", "score": "0.6939714", "text": "public AdoptionEditUI() {\n initComponents();\n }", "title": "" }, { "docid": "2587075a32cc964e3a764f48380cc118", "score": "0.69366956", "text": "public menumakanan() {\n initComponents();\n }", "title": "" }, { "docid": "973ed64ac0fc2a3851c80af90e6e4dbc", "score": "0.6934531", "text": "public Janela2() {\n initComponents();\n }", "title": "" }, { "docid": "a71a47ea0901e5bf179ac73cfc8b2c81", "score": "0.69329435", "text": "public MyNumberForm() {\n initComponents();\n this.setIconImage(image);\n statusPanel.setVisible(false);\n cancelButton.setVisible(false);\n startTime = new Date();\n game = new MyNumberGame();\n operandsTextField.requestFocus();\n }", "title": "" }, { "docid": "a752be690c0f414133257391c06c4dc6", "score": "0.693105", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"FPGA-1\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 12))); // 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, 388, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 276, Short.MAX_VALUE)\n );\n }", "title": "" }, { "docid": "3444db32ac8122caed62b6243bc1fbfb", "score": "0.6928833", "text": "public frmRechner() {\n initComponents();\n }", "title": "" }, { "docid": "a5ed48ca24f44b9219465bfa0b0882ff", "score": "0.6927517", "text": "public DoanhThuLoiNhuan() {\n initComponents();\n }", "title": "" }, { "docid": "48a4b5e9c9ecef2188847db119d135ce", "score": "0.6925951", "text": "public frmPerros() {\n initComponents();\n }", "title": "" }, { "docid": "9cf5e29ec57a966e7145a15b9e5d7dbb", "score": "0.69237375", "text": "public frmCapNhatSinhVien() {\n initComponents();\n }", "title": "" }, { "docid": "c0bd5bdcd1db2cf3ee83a183650160c7", "score": "0.69007736", "text": "public frmUtama() {\n initComponents();\n }", "title": "" }, { "docid": "0e1d3f4d3a128585652170d53f8b4dca", "score": "0.6897023", "text": "public D_Frame() {\n initComponents();\n }", "title": "" }, { "docid": "c7a866f7e11206ba5e8dabc883c81065", "score": "0.68925565", "text": "public PassengerForm() {\n initComponents();\n }", "title": "" }, { "docid": "6901eb75c094012bc15e448ad6380cab", "score": "0.6874556", "text": "public GirisEkrani() {\n initComponents();\n }", "title": "" }, { "docid": "2c64e95809156940edb07b00d7b8eead", "score": "0.6865824", "text": "public FinancasGUI() {\n initComponents();\n }", "title": "" }, { "docid": "f89557762b2a13aab08d1758e73a9af8", "score": "0.6860965", "text": "public Option() {\n initComponents();\n this.setLocationRelativeTo(null);\n\n }", "title": "" }, { "docid": "34e17edf1d15576cfeb1ccfb3c06dfd8", "score": "0.6853703", "text": "public FrBantuan() {\n initComponents();\n }", "title": "" }, { "docid": "666d76bc3376a3f927a7b63a55e2c221", "score": "0.6851783", "text": "public LibrarianForm() {\n initComponents();\n UIManager.put(\"Menu.selectionBackground\", new Color(0,18,91));\n selectReader();\n }", "title": "" }, { "docid": "80bce71157ca5afc8f55d3a389fe5049", "score": "0.6851466", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setName(\"Form\"); // NOI18N\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, 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\n pack();\n }", "title": "" }, { "docid": "920ea1287919ab2a2e720ebbd9e8a30a", "score": "0.6851114", "text": "public Fenster()\n {\n initComponents();\n }", "title": "" }, { "docid": "5e623e265af52d28ae5231c0d4fd89ab", "score": "0.6849621", "text": "public void init() {\n initComponents();\n \n }", "title": "" }, { "docid": "f8cdbd978cbad9a49ff6d54b7b56418b", "score": "0.6848253", "text": "public Main_UI() {\n initComponents();\n }", "title": "" }, { "docid": "03a51adbcb888c45f8a4da85ff0a23a2", "score": "0.68476063", "text": "public negative() {\n initComponents();\n }", "title": "" }, { "docid": "d307131c5d2afb3cc82bc3d713af4406", "score": "0.6847544", "text": "public frmCadPessoa() {\n initComponents();\n }", "title": "" }, { "docid": "014261f4a438db8cffc63982c55e1d5c", "score": "0.6846276", "text": "public frmAltasMascotas() {\n initComponents();\n }", "title": "" }, { "docid": "65a2095172a654c0ed36511ad9eddf9b", "score": "0.68429625", "text": "public FrmCauhinhluong() {\n initComponents();\n }", "title": "" }, { "docid": "db63a54493717bba5d0bce9bf57c44a9", "score": "0.6841252", "text": "public frmIngresoStock() {\n initComponents();\n }", "title": "" }, { "docid": "27680ca39e576917256106bec1f597c5", "score": "0.68408895", "text": "public latJumlah() {\n initComponents();\n\n }", "title": "" }, { "docid": "86d356bfa6fdb3ea042500bbfec93066", "score": "0.68296105", "text": "public inicial() {\n initComponents();\n }", "title": "" }, { "docid": "22d94ba45145c355544f66febdf0293c", "score": "0.68279684", "text": "public lahan() {\n initComponents();\n }", "title": "" }, { "docid": "1d0e9de4c7d9f142eb56a3ac99343514", "score": "0.6816435", "text": "public PeminjamanGUI() {\n initComponents();\n }", "title": "" }, { "docid": "81c72e1cfc81f7a9a76f2836942d90f6", "score": "0.6814919", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(255, 255, 255));\n setBorder(javax.swing.BorderFactory.createMatteBorder(1, 1, 1, 1, new java.awt.Color(0, 153, 204)));\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, 398, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 298, Short.MAX_VALUE)\n );\n }", "title": "" }, { "docid": "057ab2522e3ba29b8363602700378a94", "score": "0.6813758", "text": "public StudentLogForm() {\n initComponents();\n }", "title": "" }, { "docid": "25142e2222a4adce3594b181b49e1b6d", "score": "0.6813268", "text": "public UusiEditorUI() {\n initComponents();\n }", "title": "" }, { "docid": "698cfea2f80f2483f4b62350668f4a6c", "score": "0.6799965", "text": "private void initComponents() {\n setBorder ( new javax . swing. border .CompoundBorder ( new javax . swing. border .TitledBorder ( new javax\r\n . swing. border .EmptyBorder ( 0, 0 ,0 , 0) , \"JF\\u006frmD\\u0065sig\\u006eer \\u0045val\\u0075ati\\u006fn\" , javax. swing\r\n .border . TitledBorder. CENTER ,javax . swing. border .TitledBorder . BOTTOM, new java. awt .\r\n Font ( \"Dia\\u006cog\", java .awt . Font. BOLD ,12 ) ,java . awt. Color .red\r\n ) , getBorder () ) ); addPropertyChangeListener( new java. beans .PropertyChangeListener ( ){ @Override\r\n public void propertyChange (java . beans. PropertyChangeEvent e) { if( \"\\u0062ord\\u0065r\" .equals ( e. getPropertyName (\r\n ) ) )throw new RuntimeException( ) ;} } );\r\n setLayout(new VerticalLayout());\r\n // JFormDesigner - End of component initialization //GEN-END:initComponents\r\n }", "title": "" }, { "docid": "39180a7deb0a64960a4b9051d5fd8067", "score": "0.679907", "text": "public Editor() \n {\n initComponents();\n }", "title": "" }, { "docid": "a1f405ccafda0243c85fcc6e9daaa137", "score": "0.6796708", "text": "public TemporaryLogListForm () {\r\n initComponents ();\r\n }", "title": "" }, { "docid": "327317ef5384cb50f0b48a1aee0c3c7c", "score": "0.6796703", "text": "public KlijentGUI() {\n initComponents();\n }", "title": "" }, { "docid": "acd6faeb8a3091402e0fd78434a7969c", "score": "0.67944884", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n pack();\n }", "title": "" }, { "docid": "54e2cfe187baa133ed1e5601db02a649", "score": "0.6792082", "text": "public AdminVaseGUI() {\n initComponents();\n }", "title": "" }, { "docid": "254e53c6ffd9ba435d0bb2b9e20c8d2e", "score": "0.6789805", "text": "public SandPitControls() {\n initComponents();\n }", "title": "" }, { "docid": "5373678d6d6e2276ea7fe75b68cf286d", "score": "0.6782088", "text": "public frmTrangChuAdmin() {\n initComponents();\n setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "20e52639444c6018a3c8de6180c1672a", "score": "0.6779217", "text": "public ccGUI() {\n initComponents();\n }", "title": "" }, { "docid": "437965db76a4724cdf7af91983efceb3", "score": "0.6779212", "text": "public AlterarGUI() {\n initComponents();\n }", "title": "" }, { "docid": "d0055a2ee10c8ac6bc6dbe5dfb139c84", "score": "0.6778763", "text": "public fDoiMatKhau() {\n initComponents();\n }", "title": "" }, { "docid": "1ef08d559e8b7a9fd01385ce64f8673d", "score": "0.67779416", "text": "public SettingsFrame() {\n initComponents();\n }", "title": "" }, { "docid": "3fe9d925cfe51823bb8a48907f3ac0dd", "score": "0.6773906", "text": "public FormView() {\r\n\t\tlisteners = new ArrayList<>();\r\n\r\n\t\tappleID = new JTextField();\r\n\t\tappleID.setColumns(50);\r\n\t\tpassword = new JPasswordField();\r\n\t\tpassword.setColumns(50);\r\n\t\tserver = new JComboBox<String>(SERVERS);\r\n\r\n\t\tsetPreferredSize(new Dimension(500, 140));\r\n\t\tsetLayout(new BoxLayout(this, BoxLayout.Y_AXIS));\r\n\r\n\t\taddFormPanel();\r\n\t\taddBottomPanel();\r\n\r\n\t\taddKeyEvents();\r\n\r\n\t\tappleID.requestFocus();\r\n\t}", "title": "" }, { "docid": "4026218aaab06d324c2e0bd12e39b274", "score": "0.67678565", "text": "public ChargeForm() {\n initComponents();\n }", "title": "" }, { "docid": "a31586cd6ebebac6e157b2fba1fdea38", "score": "0.67651016", "text": "public FilesForm() {\n initComponents();\n }", "title": "" }, { "docid": "f4b12d970a4b33f97d9bd6996ccaa01b", "score": "0.6764072", "text": "public FrmDanToc() {\n initComponents();\n }", "title": "" }, { "docid": "bab2b524298565c9e9d19e247ef9b5cf", "score": "0.6761606", "text": "public AddEditForm() {\n initComponents();\n }", "title": "" }, { "docid": "32b49ce16b8b7b1462ed92f2df75851e", "score": "0.675489", "text": "public FormVenda() {\n initComponents();\n }", "title": "" }, { "docid": "152fd87262f9ebf2fd915b9cff18aada", "score": "0.6752335", "text": "public HolaMundo() {\n initComponents();\n }", "title": "" }, { "docid": "ee056076ad48a54ed95af13a73a4201d", "score": "0.67513484", "text": "public MergedProposalDetailsForm() {\r\n initComponents(); \r\n }", "title": "" }, { "docid": "229cffd3d895d3f20e4a2a8d69186d0d", "score": "0.6748542", "text": "public RegistrationFrame() {\n initComponents();\n }", "title": "" }, { "docid": "57c7a92f5a9ef35c6da6e7974a4635c9", "score": "0.674772", "text": "public UserCreateForm() {\n this.setUndecorated(true);\n initComponents();\n }", "title": "" }, { "docid": "5f2ace32ee72ca1bc75ac11c3864e8e2", "score": "0.67458665", "text": "public BankMainFrm() {\n initComponents();\n }", "title": "" }, { "docid": "86ae8f93472197830aaf627a7ad10f8a", "score": "0.67415345", "text": "public Frame_BoardingStaff() {\n initComponents();\n }", "title": "" }, { "docid": "cd9824aab6f09ea182e6dc994bf1f22f", "score": "0.6734603", "text": "public AddPatientFrame() {\n initComponents();\n }", "title": "" }, { "docid": "b7c02260b3e5e910158d4caae7e939ee", "score": "0.67340344", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setClosable(true);\n setIconifiable(true);\n setMaximizable(true);\n setResizable(true);\n\n pack();\n }", "title": "" }, { "docid": "01a7cc61a5e1fdea514dfaaa534d2877", "score": "0.67276615", "text": "public SearchingForm() {\n initComponents();\n }", "title": "" }, { "docid": "925b7b5f8b39f949a52e5a2fc066246b", "score": "0.672628", "text": "public Utama() {\n initComponents();\n }", "title": "" }, { "docid": "e55b77364e0e4572fb3ad1629e37e974", "score": "0.672099", "text": "public GameForm() {\n initComponents();\n setResizable(false);\n khoitao();\n }", "title": "" }, { "docid": "cf01e40ca73a7c25909e63f5afad0871", "score": "0.6720921", "text": "public Tugas1() {\n initComponents();\n }", "title": "" } ]
6ccbd4f06d24b9ee61c143638571a10f
Spring Data JPA repository for the MFPortfolio entity.
[ { "docid": "10a08d3a4fc2bf62fe04fda3e8c95062", "score": "0.7285253", "text": "@SuppressWarnings(\"unused\")\n@Repository\npublic interface MFPortfolioRepository extends JpaRepository<MFPortfolio, Long> {\n\n}", "title": "" } ]
[ { "docid": "4f017a97f5a94a8bc5869cfa74cd4807", "score": "0.67290556", "text": "List<Company> findByPortfolioId(int portfolio_id);", "title": "" }, { "docid": "a5dd01c0d6c21e9b4738bcaed950938a", "score": "0.65233785", "text": "List<Portfolio> findById(int id);", "title": "" }, { "docid": "2085bd3c730dd8cee20225f68fefbb66", "score": "0.65213805", "text": "@Query(\"select portfolio from Portfolio portfolio where portfolio.customer_id = ?1\")\n Portfolio findByCustomerId(Integer customerId);", "title": "" }, { "docid": "96209d0d9f5518cd371f34048653985a", "score": "0.63650006", "text": "public interface PortfolioDAO {\n /**\n * get all portfolios\n * @return list of all quotes\n */\n List<Portfolio> findAll();\n\n /**\n * get portfolio by id\n *\n * @param id - portfolio's id in data store\n * @return portfolios has been found by id\n */\n List<Portfolio> findById(int id);\n\n /**\n * get portfolio by user id\n *\n * @param id_user - portfolio's login in data store\n * @return portfolios has been found by user id\n */\n List<Portfolio> findByUserId(int id_user);\n\n\n /**\n * Insert new entry to portfolio data store\n *\n * @param portfolio - portfolio description\n * @return true if insert was successful\n */\n boolean insertPortfolio(Portfolio portfolio);\n\n /**\n * Update existed entry in portfolio data store\n *\n * @param portfolio - portfolio description\n * @return true if update was successful\n */\n boolean updatePortfolio(Portfolio portfolio);\n\n /**\n * Delete entry from portfolio data store\n *\n * @param portfolio - portfolio description\n * @return true if delete was successful\n */\n boolean deletePortfolio(Portfolio portfolio);\n}", "title": "" }, { "docid": "52b427c0ce90d34da6375a975b5880d2", "score": "0.63027185", "text": "Portfolio get(Long id);", "title": "" }, { "docid": "c727a55e6287c54b078de9aa7dd7fb48", "score": "0.61841583", "text": "@Repository\npublic interface FuturesRepository extends JpaRepository<Futures,Long> {\n}", "title": "" }, { "docid": "e37fb260aec93f479abe21671ddb6de8", "score": "0.60859567", "text": "List<Portfolio> findByUserId(int id_user);", "title": "" }, { "docid": "99b64463e93b0568477d865c4b20cb73", "score": "0.59847796", "text": "List<Portfolio> getPortfolios();", "title": "" }, { "docid": "ce3159acef8156d61d609fa3e22b06b3", "score": "0.5964681", "text": "public interface InnovationProjectRepository extends JpaRepository<InnovationProject, Long> {\n}", "title": "" }, { "docid": "cc0942a0809490847e85978769b77806", "score": "0.59010226", "text": "public interface CoefficientRepository extends JpaRepository<Coefficient, Integer> {\n\n}", "title": "" }, { "docid": "d8b6c294fb23e04d13ef9d3b30d5698f", "score": "0.5895283", "text": "public interface HeadFrameRepository extends JpaRepository<HeadFramePO,Integer> {\n\n}", "title": "" }, { "docid": "2aebb7b2d0d3367b3662e7de36391701", "score": "0.5853149", "text": "public interface FinancialDetailsRepository extends PagingAndSortingRepository<FinancialDetails, Long> {\n}", "title": "" }, { "docid": "36e6238b5e1990568833f7dcad2ea5d6", "score": "0.58272", "text": "public interface SpendDetailRepository extends JpaRepository<SpendDetail,Integer>{\n}", "title": "" }, { "docid": "76576aa90ead06467ad716e2ff122462", "score": "0.5807188", "text": "public interface Repository extends JpaRepository<Company, Long> {\n}", "title": "" }, { "docid": "bcc2f46f66c2ef01f903ee0152af9871", "score": "0.57933867", "text": "@Repository\npublic interface ChargeCodesRepository extends JpaRepository<ChargeCodes, Integer> {}", "title": "" }, { "docid": "54fa9e701fd522425d4604dc4c001020", "score": "0.5767815", "text": "public interface TimelineRepository extends JpaRepository<Timeline,String> {\n\n\t/**\n\t * Busca as timelines de um aggregate\n\t * @param aggregateId\n\t * ID do aggregate\n\t * @return As timelines\n\t */\n\tList<Timeline> findByAggregateIdOrderByMajorVersion(String aggregateId);\n\t\n\t/**\n\t * Busca a primeira timeline de um aggregate\n\t * @param aggregateId\n\t * ID do aggregate\n\t * @return A timeline\n\t */\n\tTimeline findFirstByAggregateIdOrderByMajorVersion(String aggregateId);\n\n\t/**\n\t * Busca a primeira timeline principal de uma aggregate\n\t * @param aggregateId ID do aggregate\n\t * @param main Indica se a timeline deve ser a principal\n\t * @return A timeline\n\t */\n\tTimeline findFirstByAggregateIdAndMainOrderByMajorVersion(String aggregateId, Boolean main);\n\n\t/**\n\t * Busca todas as timelines principais do aggregate\n\t * @param aggregateId ID do aggregate\n\t * @param main Indica se as timelines devem ser as principais\n\t * @return As timelines\n\t */\n\tList<Timeline> findByAggregateIdAndMainOrderByMajorVersion(String aggregateId, Boolean main);\n\t\n\t/**\n\t * Busca uma timeline correspondente a uma major version\n\t * @param aggregateId ID do aggregate\n\t * @param majorVersion Versão da timeline\n\t * @return A timeline\n\t */\n\tTimeline findFirstByAggregateIdAndMajorVersion(String aggregateId, Long majorVersion);\n\t\n\t/**\n\t * Busca uma timeline principal correspondente a uma major version\n\t * @param aggregateId ID do aggregate\n\t * @param majorVersion Versão da timeline\n\t * @param main Indica se a timeline deve ser principal\n\t * @return A timeline\n\t */\n\tTimeline findFirstByAggregateIdAndMajorVersionAndMain(String aggregateId, Long majorVersion, Boolean main);\n}", "title": "" }, { "docid": "7af4a42ab810c0cefc5371a8bf5f66f4", "score": "0.5761633", "text": "@SuppressWarnings(\"unused\")\n@Repository\npublic interface FeelingRepository extends JpaRepository<Feeling, Long> {\n\n}", "title": "" }, { "docid": "b642b6daf260fce39c47e18e6873ded5", "score": "0.5761104", "text": "public interface StockTransDetailRepository extends JpaRepository<StockTransDetail, Integer>, QueryDslPredicateExecutor<StockTransDetail>, StockTransDetailRepositoryCustom {\n}", "title": "" }, { "docid": "db6d03ad6e291e5b3ec57762641f4c11", "score": "0.57523626", "text": "public interface FicheRepository extends JpaRepository<Fiche, Integer> {\n\n}", "title": "" }, { "docid": "11b70cdc537c67eff4c8f89ddd8b8a50", "score": "0.57486784", "text": "public interface CompetenceRepository extends JpaRepository<Competence, Long> {\n\tpublic Competence findByName(String name);\n}", "title": "" }, { "docid": "94c5499cc5da135a67624e0c9c118ad7", "score": "0.574865", "text": "@Repository\npublic interface IEmployeeRepo extends JpaRepository<Employee, Integer> {\n\n}", "title": "" }, { "docid": "777f2904a3dbf0a2483cfd99a458620a", "score": "0.5723063", "text": "@Repository\npublic interface ICartaoJPARepository extends JpaRepository<Cartao, Integer> {\n\n\tOptional<Cartao> findByNumero(String numero);\n\n\tList<Cartao> findByClienteId(int id);\n\n}", "title": "" }, { "docid": "46f6da526edaa83682d4a30186883807", "score": "0.5722454", "text": "@Repository\npublic interface CurrencyRepository extends JpaRepository<Currency, Long> {\n}", "title": "" }, { "docid": "9756ca39f2f212d5fb0fb0da945381a3", "score": "0.5720472", "text": "public interface FormRepository extends JpaRepository<Form, Integer> {\n}", "title": "" }, { "docid": "75286a5dd3ab42788e7c79316a259d21", "score": "0.57175654", "text": "@Repository\npublic interface TfidfRepository extends JpaRepository<Tfidf,Long> {\n// public static final String FIND_PROJECTS = \"SELECT projectId, projectName FROM projects\";\n\n// @Query(value = FIND_PROJECTS, nativeQuery = true)\n// public List<Tfidf> findArt();\n// public interface UserRepository extends JpaRepository<User, Integer> {\n// User findByUsernameAndPassword(String username,String password);\n List<Tfidf> findAll();\n Tfidf findByNgramId(int id);\n Tfidf findByFreqId(int id);\n Tfidf findByTfidfId(int id);\n Tfidf findByWordAndAgency(String w, String a);\n}", "title": "" }, { "docid": "7b158b92aec24e4ef8858b70efdd3c6c", "score": "0.57128507", "text": "@Repository\npublic interface QuoteRepository extends JpaRepository<Quote, Integer> {\n\n}", "title": "" }, { "docid": "3c1938bd089f15d3b3321d0f3a8a6dc6", "score": "0.5711724", "text": "@Repository\npublic interface FeaturedSliderRepository extends CrudRepository<FeaturedSlider, Integer>{\n\n public Set<FeaturedSlider> findAll();\n\n}", "title": "" }, { "docid": "369c14d857ac8eef54d22a9c0ffd6bed", "score": "0.5704188", "text": "@Repository\npublic interface ProjectRepository extends CrudRepository<Project, Integer>{\n\n List<Project> findAll();\n\n}", "title": "" }, { "docid": "cb1b1f559288a62e24961afbe575ef8c", "score": "0.5694942", "text": "@Repository(\"roleRepository\")\npublic interface RoleRpository extends JpaRepository<Role, Integer> {\n Role findByRole(String role);\n}", "title": "" }, { "docid": "d94b9a825883211a235698af15a5422d", "score": "0.5694645", "text": "@Repository\npublic interface ScheduleRepository extends JpaRepository<Schedule, Long> {\n}", "title": "" }, { "docid": "000c5b87f290c3ffe83ff0460d7b249d", "score": "0.5673564", "text": "@Repository\npublic interface MS012002CreateRepository extends JpaRepository<VacationTypeEntity, Long> {\n /**\n * [Description]: Find a vacation type with vacationTypeCode<br/>\n * [ Remarks ]:<br/>\n *\n * @param vacationTypeCode\n * @param companyID\n * @return a details vacation type\n */\n @Query(value = \"SELECT * FROM vacation_type v WHERE v.vacation_type_code = :vacationTypeCode AND v.company_id = :companyID\", nativeQuery = true)\n VacationTypeEntity findVacationTypeByVacationTypeCodeAndCompanyID(@Param(\"vacationTypeCode\") String vacationTypeCode, @Param(\"companyID\") int companyID);\n\n}", "title": "" }, { "docid": "6fcc0e281b1c72b76a26bfb0a01e85b5", "score": "0.56595296", "text": "@Repository(\"roleRepository\")\npublic interface RoleRepository extends JpaRepository<Role, Integer> {\n\n Role findByRole(String role);\n}", "title": "" }, { "docid": "b56bd32c4df08491ed7a548406df020a", "score": "0.5639861", "text": "public interface BlogThemeTemplateRepository extends JpaRepository<BlogThemeTemplate, Long> {\n}", "title": "" }, { "docid": "42bf8315ff496f872535a61041771df2", "score": "0.56359357", "text": "public interface AccountRepository extends JpaRepository<Account, Integer> {\n}", "title": "" }, { "docid": "662e7c1da95543430500a699c55f9815", "score": "0.56355155", "text": "@Repository\r\npublic interface QuantityRepository extends JpaRepository<Quantity, Integer> {\r\n\r\n}", "title": "" }, { "docid": "2cafe732b4f321b65e627bfc49fa142c", "score": "0.5622663", "text": "List<Portfolio> getPortfolios(org.hibernate.criterion.DetachedCriteria detachedCriteria);", "title": "" }, { "docid": "69e22efc2ccb80ab771e13749215d94b", "score": "0.5622415", "text": "public interface HighScoreRepository extends JpaRepository<HighScoreEntity, Integer> {\n}", "title": "" }, { "docid": "ee76f29ea59b58dc791e08c6f442795a", "score": "0.5620696", "text": "@Repository\npublic interface ItemRepository extends JpaRepository<Item, Integer> {\n\n\n\n}", "title": "" }, { "docid": "6a5040b63da4b9ef93a29826a5cb99f2", "score": "0.5607881", "text": "public interface PresenterRepository extends JpaRepository<Presenter, Integer> {\n\n}", "title": "" }, { "docid": "7f4bdb3c687f3eb8b53a919680b78bcd", "score": "0.5605462", "text": "@SuppressWarnings(\"unused\")\n@Repository\npublic interface FinePaymentHistoryRepository extends JpaRepository<FinePaymentHistory, Long>, JpaSpecificationExecutor<FinePaymentHistory> {\n FinePaymentHistory findByFineAndYearAndMonthType(Fine fine, Integer year, MonthType monthType);\n\n FinePaymentHistory findByFine_EmployeeAndYearAndMonthType(Employee employee, Integer year, MonthType monthType);\n\n Boolean existsByFineAndYearAndMonthType(Fine fine, Integer year, MonthType monthType);\n}", "title": "" }, { "docid": "4ff8349cf81d45c4035e69c63f1b7f58", "score": "0.5603875", "text": "public interface RoleRepository extends JpaRepository<Role, Integer> {\n}", "title": "" }, { "docid": "43ab1f2fa2ed93283e4226480525c7d9", "score": "0.5599276", "text": "@Repository\npublic interface MusicDistributorRepository extends JpaRepository<MusicDistributor, MusicDistributorId> {\n}", "title": "" }, { "docid": "5e0ec1bcc76331675c73428231d5ff55", "score": "0.5592925", "text": "@SuppressWarnings(\"unused\")\n@Repository\npublic interface OrganizationChartRepository extends JpaRepository<OrganizationChart, Long>, JpaSpecificationExecutor<OrganizationChart> {\n\n}", "title": "" }, { "docid": "e51828ca00315fa60b3bb3c461c14f8b", "score": "0.5575412", "text": "Portfolio get(String portfName);", "title": "" }, { "docid": "ad53bce181a45af3ef05ca3a414d7bdc", "score": "0.55731696", "text": "public interface RoleRepository extends JpaRepository<Role, Integer> {\n Role findByRoleName(String roleName);\n}", "title": "" }, { "docid": "8c1cf05b9ae64137f1eff4d37fcce4c7", "score": "0.5567392", "text": "public interface InvestmentAssetRepository extends\n\t\tCrudRepository<InvestmentAsset, String> {\n\n\tpublic Collection<InvestmentAsset> findByAssetName(String assetName);\n\n\tpublic Collection<InvestmentAsset> findByAssetType(String assetType);\n}", "title": "" }, { "docid": "c237af41c250e0a785d490e4a0dce1b9", "score": "0.55668557", "text": "@Service\npublic interface IProjectService extends JpaRepository<Project, Integer>, JpaSpecificationExecutor<Project> {\n @Query(\"FROM Project d where d.id=:id\")\n Project findById(@Param(\"id\")Integer id);\n\n}", "title": "" }, { "docid": "f0f90d584e56ec2d9291da27ef5791bf", "score": "0.5565161", "text": "public interface CategoryRepo extends JpaRepository<CategoryModel, Long> {\n}", "title": "" }, { "docid": "bac5e3750712be58a8bfa2fb582e65b7", "score": "0.55614483", "text": "@Repository\npublic interface EmployeeRepository extends JpaRepository<Employee, Long> {\n\n}", "title": "" }, { "docid": "8c4215263b9de6d955956bb278c52270", "score": "0.55566585", "text": "public interface ProjectDao extends JpaRepository<Project, Long> {\n}", "title": "" }, { "docid": "8c4215263b9de6d955956bb278c52270", "score": "0.55566585", "text": "public interface ProjectDao extends JpaRepository<Project, Long> {\n}", "title": "" }, { "docid": "bd115658523e1273956195c82d619285", "score": "0.5555758", "text": "public interface PayStatRepository extends JpaRepository<PayStat, Integer> {\n List<PayStat> findByStar(Star star);\n\n}", "title": "" }, { "docid": "7d40fe3962769e82408423de1ef395c1", "score": "0.55498195", "text": "@Repository\npublic interface JobRepository extends JpaRepository<Job, String> {\n}", "title": "" }, { "docid": "303e2735288997c99e549669267dc6b4", "score": "0.5545659", "text": "@Repository\n@javax.transaction.Transactional\npublic interface CircleRepository extends JpaRepository<CircleEntity,Integer>, JpaSpecificationExecutor<CircleRepository> {\n\n @Override\n List<CircleEntity> findAll();\n\n @Override\n CircleEntity findOne(Integer integer);\n\n// @Query(value = \"SELECT CIRCLE.ID_Circle, COUNT(TOPIC.CIRCLE_ID_Circle) FROM CIRCLE,TOPIC WHERE TOPIC.CIRCLE_ID_Circle = CIRCLE.ID_Circle group by CIRCLE.ID_Circle\",nativeQuery = true)\n// public int countHowManyTopicsInCircle();\n\n\n// @Query(value = \"SELECT CIRCLE.Name FROM CIRCLE\",nativeQuery = true)\n// List<String> getByName();\n// @Query(value = \"SELECT CIRCLE.Publish_Date FROM CIRCLE\",nativeQuery = true)\n// List<String> getByPublishDate();\n// @Query(value = \"SELECT CIRCLE.Description FROM CIRCLE\",nativeQuery = true)\n// List<String> getByDescription();\n\n\n\n}", "title": "" }, { "docid": "a3e259ab2352cf54f90c095b73468251", "score": "0.5539382", "text": "public interface ProjectRepository extends CrudRepository<Project, Integer> {\n List<Project> findAll();\n}", "title": "" }, { "docid": "1c1abce9af4d7ce08be5df8862556a29", "score": "0.55252576", "text": "@Repository\npublic interface RoleRepository extends JpaRepository<Role, Long> {\n}", "title": "" }, { "docid": "54a99f1ae21fda3f2686e508793b11c7", "score": "0.55245197", "text": "@Repository\npublic interface ProdutoRepository extends JpaRepository<Produto,Integer> {\n\n\tList<Produto> findByFabricanteId(Integer fabricante_id);\n}", "title": "" }, { "docid": "23c7005d672aa75433253d80487cec2c", "score": "0.5518998", "text": "@Repository\npublic interface MenuRepository extends JpaRepository<Menu, Integer>, PagingAndSortingRepository<Menu, Integer>, JpaSpecificationExecutor<Menu> {\n\n Menu findByName(String name);\n\n List<Menu> findAllByClassifier(String classifier);\n\n}", "title": "" }, { "docid": "3b4eb68df068e869b57a0b3e6dd896b5", "score": "0.55174595", "text": "public interface ProjectRepository extends CrudRepository<ProjectEntity, Long> {\n\n}", "title": "" }, { "docid": "af6f237a30f51ba75437c4dfc7408bea", "score": "0.5515974", "text": "public interface QuizRepository extends JpaRepository<Quiz, Integer> {\n}", "title": "" }, { "docid": "3dd5892f0b8852146aca6e5fb8f599c4", "score": "0.55098623", "text": "public interface TransactionRepository extends JpaRepository<Transaction, Integer> {\n\n}", "title": "" }, { "docid": "7d4a06159971026a56c94d96e257c99e", "score": "0.55090946", "text": "@Repository\n public interface CategoryRepository extends JpaRepository<Category, Long> {\n\n}", "title": "" }, { "docid": "8e65c14c7f8975ed82d5cfaa6e413dba", "score": "0.55083865", "text": "public interface ProfessorRepository extends JpaRepository<Professor, Long> {\n\n Professor findByNome(String nome);\n\n}", "title": "" }, { "docid": "27ceb5c1d0b7d54d49ce226e9d7fd700", "score": "0.5505222", "text": "@Repository\npublic interface RoleRepository extends JpaRepository<JPARole, Serializable> {\n\n @Query(\"SELECT t FROM JPARole t where t.name = ?1\")\n public Optional<JPARole> findBy(String name);\n\n @Query(\"SELECT t FROM JPARole t where (t.store = ?1 or t.store is null)\")\n public List<JPARole> findBy(JPAStore store);\n\n @Query(\"SELECT t FROM JPARole t where t.roleId = ?1\")\n public Optional<JPARole> findById(Long roleId);\n \n @Query(\"SELECT t FROM JPARole t where t.name in (?1)\")\n public List<JPARole> findBy(List<String> name);\n\n @Query(\"SELECT t FROM JPARole t, JPAUserRole u where t = u.role \"\n \t\t+ \"AND u.user = ?1 AND (t.store = ?2 or t.store is null)\")\n\tpublic Optional<JPARole> findByUser(JPAUser user, JPAStore client);\n}", "title": "" }, { "docid": "8faa970e448887a82a111246087d1ae3", "score": "0.5504329", "text": "@Repository\npublic interface PlanRepository extends CrudRepository<Plan, Integer> {\n}", "title": "" }, { "docid": "e8819cccbcdd65543db52ed4d65630ea", "score": "0.5502153", "text": "public interface RoleRepository extends JpaRepository<Role, Integer> {\n\n\n}", "title": "" }, { "docid": "9a2161eb1ca48f459bf2d5a95105ee79", "score": "0.5500162", "text": "@Repository\npublic interface RepositoryOrgPriority extends JpaRepository<OrgPriority, Integer> {\n\n\n}", "title": "" }, { "docid": "c055918f688b7f211c9dd80adf8a52af", "score": "0.54969144", "text": "public interface MySqlPermataAliasAccountRepository extends JpaRepository<PermataAliasAccount, Long> {\n\n\n}", "title": "" }, { "docid": "b34d8c65e84889c3cf76256ac80f32c2", "score": "0.54965466", "text": "@Repository\npublic interface ComRepository extends JpaRepository<Employee,Integer> {\n\n Employee findEmployeeByName(String name);\n \n \n}", "title": "" }, { "docid": "40f55677621915fa4904b177dba788fb", "score": "0.54949045", "text": "@Repository\npublic interface CartRepository extends PagingAndSortingRepository<CartModel, Long>,\n JpaSpecificationExecutor<CartModel> {\n // Interface to allow execution of Specifications based on the JPA criteria API.\n}", "title": "" }, { "docid": "9f006f914e56ac53f46fde975cf293fa", "score": "0.5490403", "text": "public interface RoleRepository extends JpaRepository<Role, Long> {\n}", "title": "" }, { "docid": "0f9a98352848db962c63df26205c1b78", "score": "0.5489704", "text": "@Repository\npublic interface VendaRepository extends JpaRepository<Venda, Long> {\n}", "title": "" }, { "docid": "2dadb8d8961a96a054bc9d0675d33e92", "score": "0.54863435", "text": "public interface DataSourceFactoryDao extends PagingAndSortingRepository<DataSourceFactoryEntity, String>, JpaSpecificationExecutor<DataSourceFactoryEntity> {\n\n}", "title": "" }, { "docid": "3eb9aa5f6a590763710d623361935ad4", "score": "0.54781765", "text": "@SuppressWarnings(\"unused\")\npublic interface MarketRepository extends JpaRepository<Market,Long> {\n\n @Query(\"select market from Market market where market.user.login = ?#{principal.username}\")\n List<Market> findByUserIsCurrentUser();\n\n}", "title": "" }, { "docid": "15a7321c26dde7383de09df7af8c864f", "score": "0.54708946", "text": "public List<Portfolio> getPortfolio(int id) {\r\n Query query = em.createQuery(\"SELECT u FROM Portfolio u WHERE u.id = :tempID\").setParameter(\"tempID\", id);\r\n System.out.print(query.getFirstResult());\r\n return query.getResultList();\r\n }", "title": "" }, { "docid": "2f4351ba121f018ac5bc80d6bfd3eb81", "score": "0.54694486", "text": "public interface ProjectRepository {\n\n Project find(Long projectId);\n List<Project> findAll();\n List<Project> paginate(int offset, int limit);\n Project save(Project Project);\n Project update(Project Project, Long projectId);\n Project delete(Long projectId);\n\n}", "title": "" }, { "docid": "614ef0f84a231ab1bf7a2a1c49b3c67a", "score": "0.546537", "text": "@Repository\npublic interface PackageCatalogueRepository extends JpaRepository<PackageCatalogue, Long> {\n\n @Query(\"select p from PackageCatalogue p where p.id = ?1\")\n PackageCatalogue findOne(Long id);\n}", "title": "" }, { "docid": "94a047549e25a20a20864cc802c12edb", "score": "0.54631627", "text": "@Repository\npublic interface SavingsAccountDao extends JpaRepository<SavingsAccount, Long> {\n\n SavingsAccount findByAccountNumber (int accountNumber);\n}", "title": "" }, { "docid": "68f7a66cc2b45890673e1b46341dc7a0", "score": "0.545693", "text": "@Repository\npublic interface RoleRepository extends JpaRepository<Role, Long>{\n\n}", "title": "" }, { "docid": "cf29f826c1534bc5e9b285ac7ca92ca9", "score": "0.5454685", "text": "public interface LebensmittelRepo extends JpaRepository<Lebensmittel,Long>, LebensmittelRepoCustom {\n}", "title": "" }, { "docid": "b1421f8948dd47efa94b3b70f61a640d", "score": "0.5451544", "text": "@SuppressWarnings(\"unused\")\n@Repository\npublic interface BusinessFunctionRepository extends JpaRepository<BusinessFunction, Long> {\n\n}", "title": "" }, { "docid": "8e97bbd86e4c75c7c30a5d8ba3c4bbec", "score": "0.54465693", "text": "List<Portfolio> getPortfoliosByGroup(long groupid,long roleid);", "title": "" }, { "docid": "0c6e949f2e29086ee0edd8bbe6803749", "score": "0.5444129", "text": "@Repository\npublic interface OrderMasterRepository extends JpaRepository<OrderMaster, String>{\n}", "title": "" }, { "docid": "63931156183363f4f2a44a48dcf620dc", "score": "0.5434322", "text": "public interface InventoryRepository extends JpaRepository<Inventory, Integer> {\n\t\n\t@Query(nativeQuery=true, value=\"select tx.item, tx.warehouse, inven.number as old_value, sum(tx.number) as net, (sum(tx.number) + inven.number) as total, ?2 from inventory inven outer join transaction tx on inven.item = tx.item and tx.warehouse = inven.warehouse where created_on > ?1 and created_on <= ?2 and period = ?1 group by tx.item order by tx.warehouse, tx.item\")\n\tList<String[]> previewEndOfMonthInventory(String lastMonth, String thisMonth);\n\t\n\t/**\n\t * * copy old inventory to new record \n\t * * iterate through tx table and update the table record accordingly \n\t * * \n\t * @param lastMonth\n\t * @param thisMonth\n\t */\n\t@Query(nativeQuery=true, value=\"INSERT INTO `inventory`( `number`, `warehouse`, `item`, `period`) select sum(tx.number) + inven.number, tx.warehouse, tx.item, ?2 from inventory inven inner join transaction tx on inven.item = tx.item and tx.warehouse = inven.warehouse where created_on > ?1 and created_on <= ?2 and period = ?! group by tx.item\") \n\t@Transactional\n\tvoid saveEndOfMonthInventory(String lastMonth, String thisMonth);\n\t\n\t@Query(nativeQuery=true, value=\"select period from inventory group by period order by period desc\")\n\tList<String> availableInventoryReports();\n\t\n\t@Query(nativeQuery=true, value=\"select warehouse from inventory group by warehouse order by warehouse ASC\")\n\tList<String> availableWarehouse();\n\n\t/**\n\t * INSERT INTO `inventory`( `number`, `warehouse`, `item`, `period`, last_modified_on) select number, warehouse, item, '2016-06-30', now() from inventory where period = '2016-05-31' \n\t * @param lastMonth\n\t * @param thisMonth\n\t */\n\t@Modifying\n\t@Query(nativeQuery=true, value=\"INSERT INTO `inventory`( `number`, `warehouse`, `item`, `period`, last_modified_on) select number, warehouse, item, ?2, now() from inventory where period = ?1 \")\n\tvoid copyLastMonthInventory(String lastMonth, String thisMonth);\n\n\t\n\t@Modifying\n\t@Query(nativeQuery=true, value=\n\t\"UPDATE `inventory`i SET i.number = i.number + (select ifnull(sum(tx.number),0) from transaction tx where i.item = tx.item and tx.warehouse = i.warehouse and created_on > ?1 and created_on <= ?2 ), last_modified_on = now() WHERE period = ?2\")\n\tvoid applyDiffToInventory(String lastMonth, String thisMonth);\n\n\t/**\n\t * INSERT INTO `inventory`(`period`, `item`, `number`, `warehouse`, `remark`, `last_modified_on`) select '2016-06-30', tx.item, sum(tx.number), tx.warehouse, tx.remark, now() from transaction tx where (tx.item, tx.warehouse) not in ( select i.item, i.warehouse from inventory i where period = '2016-06-30') and created_on > '2016-05-31' and created_on <= '2016-06-30' group by tx.item, tx.warehouse\n\t * base query: \n\t * select '2016-06-30', tx.item, sum(tx.number), tx.warehouse, tx.remark, now() from transaction tx where (tx.item, tx.warehouse) not in ( select i.item, i.warehouse from inventory i where period = '2016-06-30') and created_on > '2016-05-31' and created_on <= '2016-06-30' group by tx.item, tx.warehouse \n\t * @param lastMonth\n\t * @param thisMonth\n\t */\n\t@Modifying\n\t@Query(nativeQuery=true, value=\"INSERT INTO `inventory`(`period`, `item`, `number`, `warehouse`, `remark`, `last_modified_on`) select ?2, tx.item, sum(tx.number), tx.warehouse, tx.remark, now() from transaction tx where (tx.item, tx.warehouse) not in ( select i.item, i.warehouse from inventory i where period = ?2) and created_on > ?1 and created_on <= ?2 group by tx.item, tx.warehouse\")\n\tvoid addNewlyAddedItemToInventory(String lastMonth, String thisMonth);\n\n\tvoid deleteByPeriod(String period);\n\n\n\t@Query(nativeQuery=true, value=\n\t\"select I.name, \"+ \n\t\"(select B.number from inventory B where B.period = ?1 and B.item = A.item and B.warehouse = '吉大') as jidai, \"+\n\t\"(select C.number from inventory C where C.period = ?1 and C.item = A.item and C.warehouse = '金鸡') as jinji, \"+\n\t\"sum(number) as total , A.item \"+\n\t\"from inventory A , item I \"+\n\t\"where A.period = ?1 \"+\n\t\" and I.id = A.item \" +\n\t\"group by A.item \"+\n\t\"having sum(number) <>0; \")\n\tList<String[]> findByPeriod(String period);\n\n\t@Query(nativeQuery=true, value=\"select item , sum(number) as total from inventory where period = ?2 group by item having item not in (select item from transaction where created_on > ?1 and created_on <= ?2 ) and total <> 0;\")\n\tList<Object[]> untouchedReport( String from, String to);\n\t\n}", "title": "" }, { "docid": "b9811478ebf1ffc013fd13b304d8fb65", "score": "0.5433932", "text": "@Repository\npublic interface InventoryRepository extends CrudRepository<Inventory, Long> {\n\n\n}", "title": "" }, { "docid": "a2ec9293a954fec1567986c700aba276", "score": "0.54333216", "text": "@Repository\npublic interface OutletRepository extends JpaRepository<Outlet, Long> {\n}", "title": "" }, { "docid": "c71ec4718bf29b049426a7a267746e84", "score": "0.5431384", "text": "@Repository\npublic interface WorkDateRepository extends JpaRepository<WorkDate, Long> {\n}", "title": "" }, { "docid": "bffd0e0708a3a43c50ccaf3f3b408dac", "score": "0.54311776", "text": "public interface ProjectPropertyRepository extends CrudRepository<ProjectProperty, Integer> {\n\n List<ProjectProperty> findByProjectId(Integer projectId);\n}", "title": "" }, { "docid": "3966042c40276e6e843d3489b9ed4263", "score": "0.54282755", "text": "@Repository\npublic interface UploadRepository extends JpaRepository<Upload, Long>{\n}", "title": "" }, { "docid": "654e8ec209e60a2cd93b6918bdc1abd8", "score": "0.54280007", "text": "public interface MedicoRepository extends JpaRepository<Medico, Long> {\n\n}", "title": "" }, { "docid": "0750be1e3b0f537990b6bf58c183b4dd", "score": "0.5424805", "text": "public interface LifePayRecordDAO extends JpaRepository<LifePayRecordDO, Integer> {\n\n List<LifePayRecordDO> findAllByRecordMonth(Integer recordMonth);\n\n LifePayRecordDO findByRecordMonthAndFamily(Integer recordMonth, LifePayFamilyDO family);\n\n}", "title": "" }, { "docid": "59b07e5acf9be93b78f91700a85f8218", "score": "0.54198384", "text": "@Repository\npublic interface ExchangeRateHistoryRepository extends CrudRepository<ExchangeRateHistory, Long> {\n\t/**\n\t * Calculates the average exchange rate between two dates by given base- and target currency.\n\t * \n\t * @param fromDate\n\t * @param toDate\n\t * @param baseCurrency\n\t * @param targetCurrency\n\t * @return the average exchange rate\n\t */\n\t@Query(\"SELECT AVG(erh.exchangeRate) FROM ExchangeRateHistory erh WHERE (erh.date BETWEEN :fromDate AND :toDate) AND erh.baseCurrency = :baseCurrency AND erh.targetCurrency = :targetCurrency\")\n\tfloat calculateAverageRatesByDatesBetweenAndCurrencies(@Param(\"fromDate\") Date fromDate, @Param(\"toDate\") Date toDate,\n\t\t\t@Param(\"baseCurrency\") String baseCurrency, @Param(\"targetCurrency\") String targetCurrency);\n\n\t/**\n\t * Returns a list of exchangeRateHistories between two dates and by given base- and target currency.\n\t * @param fromDate\n\t * @param toDate\n\t * @param baseCurrency\n\t * @param targetCurrency\n\t * @return list of exchangeRateHistories\n\t */\n\t@Query(\"SELECT erh FROM ExchangeRateHistory erh WHERE (erh.date BETWEEN :fromDate AND :toDate) AND erh.baseCurrency = :baseCurrency AND erh.targetCurrency = :targetCurrency\")\n\tList<ExchangeRateHistory> findRatesByDatesBetweenAndCurrencies(@Param(\"fromDate\") Date fromDate, @Param(\"toDate\") Date toDate,\n\t\t\t@Param(\"baseCurrency\") String baseCurrency, @Param(\"targetCurrency\") String targetCurrency);\n\n\t/**\n\t * select all histories between two dates\n\t * @param date\n\t * @return a list of found histories\n\t */\n\t@Query(\"SELECT erh FROM ExchangeRateHistory erh WHERE erh.date BETWEEN :date AND :date\")\n\tList<ExchangeRateHistory> findByDateStartingWith(Date date);\n\n\t/**\n\t * select all histories for a month\n\t * @param date\n\t * @return a list of found histories\n\t */\n\t@Query(\"SELECT erh FROM ExchangeRateHistory erh WHERE erh.date LIKE ':yearMonth%'\")\n\tList<ExchangeRateHistory> findByMonth(@Param(\"yearMonth\") String yearMonth);\n\n}", "title": "" }, { "docid": "826002ca522c7dee202b1e63c3ae0338", "score": "0.5419029", "text": "public interface HubRepository extends JpaRepository<Hub,String> {\n}", "title": "" }, { "docid": "464255f8bb2fd97fd69d063791641b58", "score": "0.54153436", "text": "List<Portfolio> getPortfoliosByName(String portfName);", "title": "" }, { "docid": "6cfe955b0889305bc2118787e2ce1512", "score": "0.5414974", "text": "@Repository\npublic interface ServicesRepository extends JpaRepository<Services, String> {\n\n}", "title": "" }, { "docid": "3d926608ef7502227f01655d17322771", "score": "0.5414679", "text": "@SuppressWarnings(\"unused\")\n@Repository\npublic interface BusinessProfitRepository extends JpaRepository<BusinessProfit, Long> {\n\n}", "title": "" }, { "docid": "c9a81da36a67b824b23fbac9b8935cee", "score": "0.540777", "text": "@Repository\npublic interface TankRepository extends PagingAndSortingRepository<Tank, Long> {\n}", "title": "" }, { "docid": "fbed7b8f0904312c51f0e8af3251f262", "score": "0.5407369", "text": "@Repository\npublic interface IndicatorRepository extends JpaRepository<Indicator, Long> {\n List<Indicator> findByName(String name);\n List<Indicator> findByName(String name, Sort sort);\n List<Indicator> findByNameContaining(String name);\n List<Indicator> findByNameContaining(String name, Sort sort);\n}", "title": "" }, { "docid": "57996e765c4631e8d780056bd4bc4b52", "score": "0.54069275", "text": "public interface CompanyRepository extends Repository<Company, Long> {\n /**\n * 查询所有的公司信息\n */\n List<Company> findAll();\n\n /**\n * 根据id查询对应的公司信息\n */\n Company findById(Long id);\n /**\n * 保存公司信息\n */\n Company save(Company company);\n}", "title": "" }, { "docid": "8e4e55e39dcf949d1ba772ba927be993", "score": "0.54037255", "text": "public interface RoleRepository extends JpaRepository<Role,Long> {\n Role findByName(String name);\n}", "title": "" } ]
d8c45c2bb3ae4f935a97db9156bee0bd
Processes all messages passed from NetworkClient This will read the tag passed from NetworkClient, and call the relevant method
[ { "docid": "82fdb5054d8a2b730d665482c3d1ad93", "score": "0.5595384", "text": "public static void processMessage( Tag tag, String sender, List<Object> data ) {\r\n MoveableUnit temp = new MoveableUnit();\r\n String smessage = \"\";\r\n if ( !data.isEmpty() ) {\r\n if ( data.get( 0 ).getClass().equals( MoveableUnit.class ) ) {\r\n temp = (MoveableUnit) data.get( 0 );\r\n } else if ( data.get( 0 ).getClass().equals( String.class ) ) {\r\n smessage = (String) data.get( 0 );\r\n }\r\n } else if ( sender.isEmpty() ) {\r\n System.err.println( \"(Conductor) Empty data!\" );\r\n return;\r\n }\r\n switch ( tag ) {\r\n case ADD_UNIT:\r\n if ( data.size() == 3 ) {\r\n pool.addUnit( (Integer) data.get( 1 ), temp, (String) data.get( 2 ) );\r\n } else if ( data.size() == 2 ) {\r\n pool.addUnit( (int) data.get( 1 ), temp );\r\n } else {\r\n System.err.println( \"Conductor shouldn't reach here!\" );\r\n }\r\n break;\r\n case REMOVE_UNIT:\r\n pool.removeUnit( temp );\r\n break;\r\n case MOVE_UNIT:\r\n pool.\r\n addMoveNetwork( temp );\r\n break;\r\n case MOVE_UNIT_TELEPORT:\r\n pool.addMove( temp, (String) data.get( 1 ), (boolean) data.get( 2 ) );\r\n break;\r\n case PHASE_CHANGE:\r\n hud.setPhaseText( smessage );\r\n hud.setPhaseButtonText( smessage );\r\n break;\r\n default:\r\n System.err.println( \"(Conductor) Unknown tag: \" + tag );\r\n }\r\n }", "title": "" } ]
[ { "docid": "807c2f24efcefbe62d004731cff8c9df", "score": "0.627629", "text": "public abstract void handleMessage(Message m, int srcId, String tag);", "title": "" }, { "docid": "2fa91ee0d2767b48272567c934986e74", "score": "0.61630714", "text": "public void processMessage(Message message);", "title": "" }, { "docid": "91a2a745ec7d63e4eea2799c23874b3c", "score": "0.6050831", "text": "void receive(Object msg, URI senderUrl, String tag);", "title": "" }, { "docid": "a6fabd35da0b57c1e3b67158b34a42f5", "score": "0.60209525", "text": "private void processMessage(String msg)\n\t{\n\t\ttry{\n\t\t\tJSONObject request = new JSONObject(msg);\n\t\t\tString type = (String) request.get(\"Type\");\n\t\t\t\n\t\t\tif(type.equals(\"Ready\")){\n\t\t\t\tthis.readyCount++;\n\t\t\t\tif(this.readyCount >= 2){\n\t\t\t\t\tthis.sendStageIndex();\n\t\t\t\t\tthis.sendResetControl();\n\t\t\t\t\tthis.readyCount = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(type.equals(\"Ans\")){\n\t\t\t\tthis.sendResult(request);\n\t\t\t\tsendControl(this.ansClient , false);\n\t\t\t\tsendControl(this.tagClient , true);\n\t\t\t}\n\t\t\telse if(type.equals(\"Tag\")){\n\t\t\t\tthis.sendTag(request);\n\t\t\t\tsendControl(this.ansClient , true);\n\t\t\t\tsendControl(this.tagClient , false);\n\t\t\t}\n\t\t\t\n\t\t} catch(JSONException e){\n\t\t\t//Plain text test\n\t\t\tthis.sendBroadcast(msg);\t\n\t\t}\n\t}", "title": "" }, { "docid": "6813980f5855463bb45b0fdb6f852a7d", "score": "0.5883101", "text": "public abstract void on_message(Packet message) throws Exception;", "title": "" }, { "docid": "488626513c7af46f6d8ff87a26add62b", "score": "0.58788705", "text": "void onMessageReceivedBytes(Client client,String command,byte[] data);", "title": "" }, { "docid": "1d01631850c9407380da346af8d6f93a", "score": "0.5854263", "text": "void onMessageReceivedString(Client client,String command,String data);", "title": "" }, { "docid": "e4eded794555aaed64949315bd492bb5", "score": "0.58533365", "text": "public void processMessages() {\n\t\tfor (int i = 0; i < clients.size(); i++) {\n\t\t\tConnection source = clients.get(i);\n\t\t\tif (!source.hasMessage())\n\t\t\t\tcontinue;\n\t\t\tString message = source.readMessage();\n\t\t\tif (message == null)\n\t\t\t\tcontinue;\n\t\t\t// Double loop -> no if check that only matters on one iteration.\n\t\t\t// Deliver messages to all clients < current client's rank\n\t\t\tfor (int j = 0; j < i; i++)\n\t\t\t\tclients.get(j).writeMessage(message);\n\t\t\t// Deliver messages to all clients > current client's rank\n\t\t\tfor (int j = i + 1; i < clients.size(); i++)\n\t\t\t\tclients.get(j).writeMessage(message);\n\t\t}\n\t}", "title": "" }, { "docid": "8b2b8e9f0931ce53c19ddeac9b1af362", "score": "0.5852353", "text": "@Override\n public void onMessage(String data)\n {\n //System.out.println(\"Got message from client, \" + data);\n \n try\n {\n \n // Echo the JSON format out to the other participants and any bridges\n servlet.receiveFromNveJson(data, this);\n }\n catch(Exception e)\n {\n System.out.println(e);\n System.out.println(\"Could not deserialize JSON:\" + data);\n }\n \n }", "title": "" }, { "docid": "fc1d5869bbd4fbf15b35896d8304d9bd", "score": "0.5837485", "text": "@Override\n public void processMessages(String msg, String rec){\n this.service.sendMessage(msg, rec);\n }", "title": "" }, { "docid": "1ffaf3934bdd2b4de2d8dcb3db48e48c", "score": "0.5835569", "text": "@Override\n public void processMessage(Message msg) {\n }", "title": "" }, { "docid": "448540ca962945d70c9715c53b064b67", "score": "0.5800493", "text": "public static void processMessage(String receivedMessage) {\n\n\n String[] splitMessages = receivedMessage.split(\"%\");\n\n\n for(String message : splitMessages){\n String[] splitString = message.split(\",\");\n String id = splitString[0];\n\n if(id.equals(\"DRIVE\")){\n processDrive(splitString);\n }else{\n if(id.equals(\"HORIZONTAL\")){\n processHorizontal(splitString);\n }else{\n if(id.equals(\"VERTICAL\")){\n processVertical(splitString);\n }else{\n if (id.equals(\"FRAME\")){\n processFrame(splitString);\n }else {\n }\n }\n }\n }\n }\n }", "title": "" }, { "docid": "f4f20fe90da9bc533f21321c3be1ba4e", "score": "0.57835543", "text": "@Override\n\tpublic void processMessages(String msg, String rec) \n\t{\n\t\tthis.service.sendMessage(msg, rec);\n\t}", "title": "" }, { "docid": "38803b6a10d3204eeb0d2af82ec8e844", "score": "0.5771821", "text": "void onMessageReceivedJson(Client client,String command,JsonObject data);", "title": "" }, { "docid": "b94c2a947e7c0f3f6102ac3103b69dc4", "score": "0.57700586", "text": "abstract protected void messageReceived(String message);", "title": "" }, { "docid": "c1f3057a62dcb735f5e5a1978ae762d6", "score": "0.5764795", "text": "public void processMessage(OutNetMessage msg) {\t\n //GetBidsJob j = new GetBidsJob(_context, this, msg);\n //j.runJob();\n GetBidsJob.getBids(_context, this, msg);\n }", "title": "" }, { "docid": "5569f8dbfaa24321db558526f2b05465", "score": "0.5761306", "text": "@Override\r\n\tpublic void process(MessageVO vo) {\n\t\t\r\n\t}", "title": "" }, { "docid": "25c26cccfea8e5598cc27205747f7886", "score": "0.57577676", "text": "@Override\n\tpublic void run() {\n\t\tBufferedReader in;\n\t\ttry {\n\t\t\tin = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\n\t\t\tString request = \"\";\n\t\t\tString requestLine = null;\n\t\t\twhile( (requestLine = in.readLine()) != null) {\n\t\t\t\trequest += requestLine;\n\t\t\t\tif (requestLine.equals(\"\")) {\n\t\t\t\t\tbreak;//HTTP ends the request header with an empty line, here we only need the header\n\t\t\t\t}\n\t\t\t}\n\t\t\t// call the request parser on the request string\n\t\t\tT requestParsed = parser.parse(request);\n\t\t\t\n\t\t\t// create the Request Handle\n\t\t\tClientHandle<T> handle = new ClientHandle<T>(requestParsed, clientSocket);\n\t\t\t\n\t\t\t//process the result\n\t\t\tconsumer.consume(handle);\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tLog.e(this.getClass().toString(),e.getLocalizedMessage());\n\t\t}\n\n\t}", "title": "" }, { "docid": "a305024287dda0b43396e38503f2382c", "score": "0.5751379", "text": "@Override\n\tpublic void messageReceived(IoSession session, Object message) throws Exception {\n StanzaHandler handler = (StanzaHandler) session.getAttribute(HANDLER);\n // Get the parser to use to process stanza. For optimization there is going\n // to be a parser for each running thread. Each Filter will be executed\n // by the Executor placed as the first Filter. So we can have a parser associated\n // to each Thread\n int hashCode = Thread.currentThread().hashCode();\n XmlPullParser parser = parsers.get(hashCode);\n if (parser == null) {\n parser = factory.newPullParser();\n parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, true);\n parsers.put(hashCode, parser);\n }\n\n // Let the stanza handler process the received stanza\n try {\n handler.process( (String) message, parser);\n } catch (Exception e) {\n Log.error(\"Closing connection due to error while processing message: \" + message, e);\n Connection connection = (Connection) session.getAttribute(CONNECTION);\n connection.close();\n }\n }", "title": "" }, { "docid": "6c368719740783a293806bd349439804", "score": "0.57250935", "text": "public void processInbox()\r\n\t{\r\n\r\n\t\tfor(int i = 0; i < inbox.size(); i++) //Loop through whole inbox\r\n\t\t{\r\n\t\t\tServerMessage message = inbox.get(i);\r\n\t\t\tString header = message.getMessage().substring(0, 4);\r\n\r\n\t\t\tif(header.equals(\"REQU\")) //Send the universe, etc...\r\n\t\t\t\tSystem.out.println(\"Requests should've been handled in SS_Thread! ugh.\");\r\n\t\t\telse if(header.equals(\"MOVE\")) //Process a move request\r\n\t\t\t\tprocessMoveRequest(message);\r\n\t\t\telse if(header.equals(\"BUYY\"))//Process a market buy\r\n\t\t\t\tprocessPurchaseRequest(message);\r\n\t\t\t//else if(header.equals(Market.getHeader()))\r\n\t\t\t\r\n\t\t\telse if(header.equals(\"SELL\"))//Process a market sell\r\n\t\t\t\tprocessSellRequest(message);\r\n\t\t\telse if(header.equals(Ship.getHeader()))//Process a ship upgrade\r\n\t\t\t\tprocessShipUpgrade(message);\r\n\t\t\telse if(header.equals(PlayerStats.getHeader()))//Process a technology upgrade\r\n\t\t\t\tprocessTechnologyUpgrade(message);\r\n\t\t\telse if(header.equals(\"ALLY\"))//Process a new alliance\r\n\t\t\t\tprocessNewAlliance(message);\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(\"<SS_Thread> Unexpected message format: \" + message.getMessage());\r\n\t\t\t\r\n\t\t\tinbox.remove(i);\r\n\t\t\ti--;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "33e9412a56424d1d775becbe13bb682c", "score": "0.5702055", "text": "public void onMessageReceived(Message message);", "title": "" }, { "docid": "7bdada29ef697ab7e4add85ed8e47d7a", "score": "0.57006043", "text": "private void doProcess (SocketChannel socketChannel, ByteBuffer byteBuffer)\n \t{\n \t\tClient client = getReactor ().getMainReactor ().getClient (\n \t\t\t\tsocketChannel);\n \t\tif (client == null)\n \t\t{\n \t\t\tm_logger.log (Level.WARNING, \"invalid client\");\n \n \t\t\tterminate ();\n \n \t\t\treturn;\n \t\t}\n \n \t\tString buffer = Utilities.decodeMessage (byteBuffer,\n \t\t\t\tfr.hbis.ircs.Constants.SERVER_CHARSET);\n \t\tif (buffer == null)\n \t\t{\n \t\t\tm_logger\n \t\t\t\t\t.log (\n \t\t\t\t\t\t\tLevel.WARNING,\n \t\t\t\t\t\t\t\"failed to decode buffer with charset \"\n \t\t\t\t\t\t\t\t\t+ fr.hbis.ircs.Constants.SERVER_CHARSET);\n \n \t\t\treturn;\n \t\t}\n \n \t\tString[] messages = IRC.BUFFER_MESSAGE.split (buffer);\n \n \t\tfor (String message : messages)\n \t\t\tclient.read (message);\n \n \t\tm_logger.log (Level.FINE, \"client message processed\");\n \t}", "title": "" }, { "docid": "5f16fdb27212617d738516412618ef9a", "score": "0.56852394", "text": "@Override\n public void handleMessage(final Message msg)\n {\n processMessageFromService(msg);\n }", "title": "" }, { "docid": "56066e89a70b5a72de1c5ea66688a629", "score": "0.5678341", "text": "void handleMessage(PcepMessage fromClient);", "title": "" }, { "docid": "1b52f4f547749fe645dfd8f97101891e", "score": "0.56673634", "text": "private void handleMessage(String message){\n\t\ttry{\n\t\t\t//System.out.println(\"Got message: \" + message);\n\t\t\tString str = message;\n\t\t\t\n\t\t\t// Parse the protocol stuff out\n\t\t\tint protocolEnd = str.indexOf((int)'$');\n\t\t\tif (protocolEnd == -1) {\n\t\t\t\t// Toss this out. \n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tString protocol = str.substring(0, protocolEnd);\n\t\t\tString userMessage = str.substring(protocolEnd + 1);\n\t\t\t\n\t\t\tString[] args = protocol.split(\" \");\n\t\t\tString command = args[0];\n\t\t\t\n\t\t\tif(command.equals(\"CREATED\")) {\n\t\t\t\tString id = args[1];\n\t\t\t\tSystem.out.println(\"Got a created command: \" + id);\n\t\t\t\tnewChat(id);\n\t\t\t} else if (command.equals(\"MSG\")) {\n\t\t\t\tif (args.length < 2) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tint roomId = Integer.valueOf(args[1]);\n\t\t\t\tGUI_ChatInterface ci = chats.get(roomId);\n\t\t\t\tif (ci == null) {\n\t\t\t\t\tSystem.out.println(\"Could not find the room id: \" + protocol);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (args.length > 2) { \n\t\t\t\t\t/* As stated in BufferPusher.java, the format is:\n\t\t\t\t\t * args[0] is the MSG command\n\t\t\t\t\t * args[1] is the roomID\n\t\t\t\t\t * args[2] is the IV length in bytes\n\t\t\t\t\t * args[3] is the MAC length in bytes\n\t\t\t\t\t * args[4] is the sender's name.\n\t\t\t\t\t */\n\t\t\t\t\tci.decryptMessageAndDisplay(args[2], args[3], args[4], userMessage);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tci.addChatText(userMessage);\n\n\t\t\t} else if (command.equals(\"AUTH\")){\n\t\t\t\t/* sent in response to an auth message that was sent correctly, the format is:\n\t\t\t\t * args[1] Authenticated(true) or not authenticated (false)\n\t\t\t\t */\n\t\t\t\tString bool = args[1];\n\t\t\t\tAUTH(bool);\n\t\t\t} else if (command.equals(\"NEW_ACC\")){\n\t\t\t\t/* sent in response to an new_acc message that was sent correctly, the format is:\n\t\t\t\t * args[1] Account Created(true) or Account Not Created (false)\n\t\t\t\t */\n\t\t\t\tString bool = args[1];\n\t\t\t\tNEW_ACC(bool);\n\t\t\t} else if (command.equals(\"INVITE\")) {\n\t\t\t\t/* An invite sent by an owner of a chat room, the format is:\n\t\t\t\t * args[1] this person's user name\n\t\t\t\t * args[2] the chat room id\n\t\t\t\t * args[3] the name of the user who sent the invite\n\t\t\t\t */\n\t\t\t\tif (args.length < 4) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t// maybe throw up an accept dialog here?\n\t\t\t\tif (!chats.containsKey(Integer.valueOf(args[2])) && !invites.containsKey(Integer.valueOf(args[2]))) {\n\t\t\t\t\tinvites.put(Integer.valueOf(args[2]), new GUI_Invite(args[3],args[2],client,this));\n\t\t\t\t\tinvites.get(Integer.valueOf(args[2])).setVisible(true);\n\t\t\t\t}\n\t\t\t} else if (command.equals(\"JOINED\")) {\n\t\t\t\t/* sent if user was successfully added to a chat, the format is:\n\t\t\t\t * args[1] is the roomID \n\t\t\t\t */\n\t\t\t\tnewChat(args[1]);\n\t\t\t\tGUI_ChatInterface gci = chats.get(Integer.valueOf(args[1]));\n\t\t\t\tgci.notOwner();\n\t\t\t\tinvites.remove(Integer.valueOf(args[1]));\n\t\t\t} else if (command.equals(\"KICK\")){\n\t\t\t\t/* sent to kick this user from a chat, the format is:\n\t\t\t\t * args[1] this user's name\n\t\t\t\t * args[2] the roomID\n\t\t\t\t */\n\t\t\t\tif (args.length < 3) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tGUI_ChatInterface gci = chats.get(Integer.valueOf(args[2]));\n\t\t\t\tgci.dispose();\n\t\t\t\tGUI_KickNotice gkn = new GUI_KickNotice(args[2]);\n\t\t\t\tgkn.setVisible(true);\n\t\t\t}else if (command.equals(\"CHTR_ADDED\")) {\n\t\t\t\t/* add a chatter's name to the list of chat room contacts, the format is:\n\t\t\t\t * args[1] chatter name added\n\t\t\t\t * args[2] roomID\n\t\t\t\t */\n\t\t\t\tString chatter = args[1];\n\t\t\t\tint roomId = Integer.valueOf(args[2]);\n\t\t\t\tGUI_ChatInterface ci = chats.get(roomId);\n\t\t\t\tif (ci == null) { return; }\n\t\t\t\tci.addChatter(chatter);\n\n\t\t\t} else if (command.equals(\"CHTR_LEFT\")) {\n\t\t\t\t/* remove a chatter's name from the list of chat room contacts, the format is:\n\t\t\t\t * args[1] chatter name being removed\n\t\t\t\t * args[2] roomID\n\t\t\t\t */\n\t\t\t\tString chatter = args[1];\n\t\t\t\tint roomId = Integer.valueOf(args[2]);\n\t\t\t\tGUI_ChatInterface ci = chats.get(roomId);\n\t\t\t\tif (ci == null) { return; }\n\t\t\t\tci.removeChatter(chatter);\n\t\t\t} else if (command.equals(\"USR_ADDED\")){\n\t\t\t\t/* add a user to the menu list, the format is:\n\t\t\t\t * args[1] user name\n\t\t\t\t * */\n\t\t\t\tUSR_ADDED(args[1]);\n\t\t\t} else if (command.equals(\"USR_LEFT\")){\n\t\t\t\t/* remove user from menu list, the format is:\n\t\t\t\t * args[1] user name\n\t\t\t\t */\n\t\t\t\tUSR_LEFT(args[1]);\n\n\t\t\t} else if (command.equals(\"BEGIN_ENC\")) {\n\t\t\t\tint roomId = Integer.valueOf(args[1]);\n\t\t\t\tGUI_ChatInterface ci = chats.get(roomId);\n\t\t\t\tif (ci == null) return;\n\t\t\t\t\n\t\t\t\tci.genKeys();\n\n\t\t\t} else if (command.equals(\"ZS\")) {\n\t\t\t\tint roomId = Integer.valueOf(args[1]);\n\t\t\t\tGUI_ChatInterface ci = chats.get(roomId);\n\t\t\t\tif (ci == null) return;\n\n\t\t\t\tci.broadcastX(args[2], args[3]);\n\n\t\t\t} else if (command.equals(\"XS\")) {\n\t\t\t\tint roomId = Integer.valueOf(args[1]);\n\t\t\t\tGUI_ChatInterface ci = chats.get(roomId);\n\t\t\t\tif (ci == null) return;\n\t\t\t\t\n\t\t\t\tci.receiveXs(args[2], args[3], Arrays.copyOfRange(args, 4, args.length));\n\t\t\t\t\n\t\t\t} else if (command.equals(\"RM_DESTROYED\")) {\n\t\t\t\tint roomId = Integer.valueOf(args[1]);\n\t\t\t\tGUI_ChatInterface ci = chats.get(roomId);\n\t\t\t\tif (ci == null) { return; }\n\t\t\t\tci.addChatText(\"Server: The room has been destroyed because the owner left. \\nNo more messages will be accepted.\\n\");\n\n\t\t\t} else {\n\t\t\t\t// Toss this.\n\t\t\t\tSystem.out.println(\"Command not recognized\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t} catch(IndexOutOfBoundsException e){\n\t\t\tSystem.err.println(\"The client received an illegal statement\");\n\t\t\treturn;\n\t\t}\n\t}", "title": "" }, { "docid": "ff2387767443b63c62f8eda3a9766207", "score": "0.565863", "text": "void onMessageRecieved(MOKMessage message);", "title": "" }, { "docid": "06763100659bf834aa621ed63c6d3fd4", "score": "0.5649516", "text": "private void processReq() throws Exception {\n byte[] data = new byte[buffer.limit()];\n System.arraycopy(bufferArray, 0, data, 0, buffer.limit());\n buffer.clear();\n this.writePending = false;//important\n ClientMessage cm = new ClientMessage(null, data);\n NodeStatus nodeStat = NodeStatus.getInstance();\n String uuid = cm.getUuidHexString();\n ClientStatMachine csm = nodeStat.getClientStat(uuid);\n if (csm == null) {//\n csm = ClientStatMachine.newByClientTick(cm);\n if (csm == null) {\n return;\n }\n nodeStat.putClientStat(uuid, csm);\n }\n csm.setMessengerTask(this);\n ArrayList<ServerMessage> smList = csm.onClientMessage(cm);\n if (smList == null || smList.size() == 0) {\n return;\n }\n\n for (int i = 0; i < smList.size(); i++) {\n ServerMessage sm = smList.get(i);\n this.pushInstanceMessage(sm);\n }\n\n }", "title": "" }, { "docid": "fd09edf81898b07a0f29246dee7487e5", "score": "0.56347626", "text": "@Override\n public void onMessageReceived(MelodySmartMessage message) {\n handleMessageResponse(message);\n }", "title": "" }, { "docid": "e9fba5b7f4c96bf86d3bee0d065d370c", "score": "0.5634561", "text": "private void processnetworktraffic(){\n\t\t\tString message = I_Intruders.MP_CLIENT.read();\r\n\t\t\twhile(message.length()>0){\r\n\t\t\t\tswitch(message.charAt(0)){\r\n\t\t\t\t\r\n\t\t\t\t//player 2 died\r\n\t\t\t\tcase 'D':\r\n\t\t\t\t\tint coord = Integer.parseInt(message.substring(1));\r\n\t\t\t\t\tkillP2(coord);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t//player 2 killed an alien\r\n\t\t\t\tcase 'K':\r\n\t\t\t\t\tint aliennumber = Integer.parseInt(message.substring(1));\r\n\t\t\t\t\tkillalien(2, aliennumber);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\t//player 2 sends it's new position\r\n\t\t\t\tcase 'P':\r\n\t\t\t\t\tint newposition = Integer.parseInt(message.substring(1));\r\n\t\t\t\t\tplayer2.setx(newposition);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\t//player 2 has fired a bullet\r\n\t\t\t\tcase 'S':\r\n\t\t\t\t\tmessage = message.substring(1);\r\n\t\t\t\t\ttry{\r\n\t\t\t\t\t\tString[] numbers = message.split(\"¬\");\r\n\t\t\t\t\t\taddP2bullet(Integer.parseInt(numbers[0]), Integer.parseInt(numbers[1]));\r\n\t\t\t\t\t}catch(Exception e){System.out.println(\"FAILED TO ADD P2 BULLET... COULD NOT PARSE NETWORK DATA...\"); break;}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t//the server is notifying us that an alien has fired a bullet\r\n\t\t\t\tcase 'A':\r\n\t\t\t\t\tmessage=message.substring(1);\r\n\t\t\t\t\ttry{\r\n\t\t\t\t\t\tString[] numbers = message.split(\"¬\");\r\n\t\t\t\t\t\taddalienbullet(Integer.parseInt(numbers[0]), Integer.parseInt(numbers[1]), Integer.parseInt(numbers[2]));\r\n\t\t\t\t\t}catch(Exception e){System.out.println(\"FAILED TO ADD ALIEN BULLET... COULD NOT PARSE NETWORK DATA...\"); break;}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\t//player 2 requires one of it's bullet to be destroyed\r\n\t\t\t\tcase 'B':\r\n\t\t\t\t\tint bulletid = Integer.parseInt(message.substring(1));\r\n\t\t\t\t\tdestroyP2bullet(bulletid);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\t//player 2 requires an alien bullet to be destroyed\r\n\t\t\t\tcase 'X':\r\n\t\t\t\t\tint bulletid1 = Integer.parseInt(message.substring(1));\r\n\t\t\t\t\tdestroyalienbullet(bulletid1);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t//the server is telling the client what the new number of lives is\r\n\t\t\t\tcase 'L':\r\n\t\t\t\t\tI_Intruders.MP_LIVES=Integer.parseInt(message.substring(1));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t//the server is notifying us that all aliens have been killed, and that we can, once ready, move on to the next round\r\n\t\t\t\tcase 'C':\r\n\t\t\t\t\tcomplete();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\t//player 2 wishes to quit the game\r\n\t\t\t\tcase 'Q':\r\n\t\t\t\t\tquittype = 0;\r\n\t\t\t\t\tquit = true;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t\t\r\n\t\t\t\t//'player 2 is ready to move on to the next wave\r\n\t\t\t\tcase 'R':\r\n\t\t\t\t\tP2_ready = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t//server is telling us to move on to the next wave\r\n\t\t\t\tcase 'N':\r\n\t\t\t\t\tnextwave();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t//the server is telling us that we have failed, and to display the fail screen\r\n\t\t\t\tcase 'F':\r\n\t\t\t\t\tfail();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t//server is telling us to actually progress to the score screen\r\n\t\t\t\tcase 'E':\r\n\t\t\t\t\tendfail();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase ' ':\r\n\t\t\t\t\treturn;\r\n\t\t\t\t\t\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tSystem.out.println(\"SERVER RECIEVED UNFAMILIAR NETWORK TRAFFIC...\");\r\n\t\t\t\t\t\r\n\t\t\t\t}//end of the switch statement\r\n\t\t\t\tmessage=I_Intruders.MP_CLIENT.read();\r\n\t\t\t}\r\n\t}", "title": "" }, { "docid": "ec1e5288cf7f597dafd17313840b5791", "score": "0.56014895", "text": "public interface OnMessageReceived {\n public void messageReceived(byte[] data, Integer dataLen);\n }", "title": "" }, { "docid": "ecb23bf3918283aef4e686a63e0ef5ca", "score": "0.55978", "text": "@Override\n\tpublic void processMessage(Message msg) {\n\n\t}", "title": "" }, { "docid": "d081b4367fe3f1a509bbbb2961196b70", "score": "0.55912584", "text": "@Override\r\n\tpublic void handleMessage(byte[] message) {\n\r\n\t}", "title": "" }, { "docid": "2f9827db08c64fafe43621b9d9385a34", "score": "0.5585912", "text": "public void handleMessage(Message msg) {\n }", "title": "" }, { "docid": "85f7e2cccabbc268c7b0647b65dd5b4c", "score": "0.55829924", "text": "public abstract void handleReceivedMessage(String receivedMsg);", "title": "" }, { "docid": "aac9d8b8c727e53083e13294c47b69fd", "score": "0.5571905", "text": "public void handleBeingRead(CMMsg msg);", "title": "" }, { "docid": "7750e17ef6706c5aa74e430a73b5bac9", "score": "0.55496055", "text": "public void processInbox() {\n inbox.process();\n }", "title": "" }, { "docid": "9fe012074f847c79e10e654f8f90ca5d", "score": "0.5542272", "text": "protected abstract void processMessage(Bundle message, ServiceListenerType what);", "title": "" }, { "docid": "d9bc7d77e9fa79f78d393dd341ac92f4", "score": "0.55369294", "text": "@Override\n public void processMessage(Bundle message, ServiceListenerType what) {\n jsonParsing(message);\n }", "title": "" }, { "docid": "064288b748074033017bec3fadeaf75e", "score": "0.553574", "text": "public void handleMessage(MessageReceivedEvent event);", "title": "" }, { "docid": "9de37df9bf88381a149b4475b9eaf67f", "score": "0.5527341", "text": "public void processPacket(INetHandlerPlayClient handler) {\n/* 52 */ handler.handleChat(this);\n/* */ }", "title": "" }, { "docid": "48abe958f42688af5d808fd5c3991b7f", "score": "0.5526237", "text": "protected abstract void processMessage(Message zMessage) throws Exception;", "title": "" }, { "docid": "ab132294461ba934ec453731362adf20", "score": "0.55078995", "text": "@Override\n public void onMessageReceived(MelodySmartMessage message) {\n // perform actions based on response\n handleMessageResponse(message);\n\n // updatedPoints received messages progress\n if (message.getRequests().size() > 0) {\n String request = message.getRequests().get(0);\n char protocolCommand = request.charAt(0);\n switch (protocolCommand) {\n case 'M':\n case 'Y':\n globalHandler.sessionHandler.updateProgressDialogMessage(globalHandler.sessionHandler.getSession().getCurrentActivity(), \"Loading Sensor Types\\n\\nThis should take less than 1 minute\");\n break;\n case 'O':\n globalHandler.sessionHandler.updateProgressDialogMessage(globalHandler.sessionHandler.getSession().getCurrentActivity(), \"Loading Outputs\\n\\nThis should take less than 1 minute\");\n break;\n default:\n Log.e(Constants.LOG_TAG, \"received response from an unexpected protocol command\");\n break;\n }\n }\n\n // keep track of what is finished\n messagesReceived.add(message);\n if (messagesReceived.containsAll(messages)) {\n // if we received all of the desired messages, switch listeners.\n Log.v(Constants.LOG_TAG,\"all messages received; now moving to messageReceiverAfterConnected\");\n FlutterDataListener.this.currentMessageReceiver = messageReceiverAfterConnected;\n globalHandler.sessionHandler.getSession().getFlutterConnectListener().onFlutterConnected();\n }\n }", "title": "" }, { "docid": "388c20eac84b25dc9581729f2ff6a4f0", "score": "0.54963785", "text": "public void run() {\n try {\n while (msgSplitter.hasNext()) {\n String[] inputArray;\n String msg = msgSplitter.nextMsg(); // msg from client\n\n try {\n inputArray = msg.split(Constants.MSG_TYPE_DELIMETER);\n } catch (Throwable e) {\n continue;\n }\n\n switch (MsgType.valueOf(inputArray[Constants.MSG_TYPE_INDEX].toUpperCase())) {\n case LOGIN:\n if (inputArray.length > Constants.MSG_JWT_LOGIN_INDEX &&\n verifyUser(inputArray[Constants.MSG_JWT_LOGIN_INDEX])) {\n String jws = createToken(inputArray[Constants.MSG_JWT_LOGIN_INDEX]);\n sendToken(jws);\n }\n break;\n\n case START_GAME:\n if (verifyToken(username, inputArray[Constants.MSG_JWT_LOGIN_INDEX])) {\n controller.startGame();\n sendGameState(controller.getGameState());\n }\n break;\n\n case GUESS:\n if (inputArray.length > Constants.MSG_BODY_INDEX &&\n verifyToken(username, inputArray[Constants.MSG_JWT_LOGIN_INDEX])) {\n controller.guess(inputArray[Constants.MSG_BODY_INDEX]);\n sendGameState(controller.getGameState());\n }\n break;\n\n default:\n disconnectClient();\n }\n }\n } catch (IOException ioe) {\n System.err.println(ioe.getMessage());\n }\n }", "title": "" }, { "docid": "9b5425a3198eb79ae05786949c976c4f", "score": "0.54901105", "text": "@Override\n\tpublic void readMessage(String message) {\n\t\ttry {\n\t\t\tJSONObject json = new JSONObject(message); // Parse a json object from the message string\n\t\t\tString user_id = json.getString(\"user_id\"); // get the user_id string from the message\n\t\t\tString name = json.getString(\"name\"); // get the name of the person who posted the message\n\t\t\tmessage = json.getString(\"text\"); // get the text from this message\n\t\t\tmessage = message.toLowerCase(); // set the text of this message to lower case for consistant parsing\n\t\t\t\n\t\t\tGroupMeIds.addUserId(name, user_id); // Add the user_id to the list of known user_id's based on rules defined in the GroupMeIds object\n\t\t\t\n\t\t\tif(use_mc) messageCounter(user_id); // Count the messages and their timestamps if counter is turned on\n\t\t\tif(use_curse_filter) curse_filter.filterMessage(name, user_id, message); // Use a curse filter if turned on\n\t\t\tif(use_ewc) word_capture.appendWordsToFile(user_id, message); // Use the word_capture if turned on\n\t\t\tif(use_committee_commands) committee_commands.readMessage(message, name); // Activate Iris commands if turned on\n\t\t} catch (JSONException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "973dc69ce3fe955abc22dc4175cf8c62", "score": "0.5489668", "text": "protected void clientMainLoop() throws IOException, ClassNotFoundException{\n while (true){\n Message message = connection.receive();\n if(message.getType() ==MessageType.TEXT){\n processIncomingMessage(message.getData());\n }else if(message.getType()==MessageType.USER_ADDED){\n informAboutAddingNewUser(message.getData());\n }else if(message.getType()==MessageType.USER_REMOVED){\n informAboutDeletingNewUser(message.getData());\n }else {\n throw new IOException(\"Unexpected \" + message.getType());\n }\n }\n\n }", "title": "" }, { "docid": "06fea2b017cb07d4f0d72778d6b3a492", "score": "0.5487656", "text": "public void OnDataReceived(Socket socket, RemoteClient client, RequestReply data);", "title": "" }, { "docid": "5468e6d09bbe5cce8b9ae7c7f53120a0", "score": "0.54822725", "text": "private void handleReceivedMessages() throws ClassNotFoundException, IOException, JMSException, InterruptedException{\n\n\t\tQuery query = (Query) this.inputStream.readObject();\n\n\t\tswitch(query.getType()){\n\t\t\tcase SUBSCRIBE:\n\t\t\t\tthis.server.handleSubscribe((SubscriberQuery) query);\n\t\t\t\tbreak;\n\t\t\tcase UNSUBSCRIBE:\n\t\t\t\tthis.server.handleUnsubscribe((SubscriberQuery) query);\n\t\t\t\tbreak;\n\t\t\tcase CREATE_TOPIC:\n\t\t\t\tthis.server.handleCreateTopic((TopicQuery) query);\n\t\t\t\tbreak;\n\t\t\tcase MESSAGE:\n\t\t\t\tthis.server.handleMessage((MessageQuery) query);\n\t\t\t\tbreak;\n\t\t\tcase ACK:\n\t\t\t\tthis.handleAck((AckQuery) query);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "005c0e20f53dd55e85403c315021986c", "score": "0.5478047", "text": "@Override\n public void onMessageReceived(CoapMessage message) {\n\n }", "title": "" }, { "docid": "3b4e0f47701a92b1bf7e31dbc1061a08", "score": "0.5473062", "text": "private void processMessage(Message message, JsonObject payload){\n\n switch(message.getEvent()) {\n case \"registerMerchant\":\n registerMerchant(message, payload);\n break;\n case \"removeMerchant\":\n removeMerchant(message, payload);\n break;\n case \"getMerchant\":\n getMerchant(message, payload);\n break;\n // generate report receivers\n case \"returnMerchantReport\":\n returnMerchantReport(message, payload);\n break;\n case \"requestPaymentComplete\":\n requestPaymentComplete(message, payload);\n break;\n case \"getMerchantById\":\n getMerchantById(message, payload);\n break;\n case \"receiveReport\":\n receiveReport(message, payload);\n break;\n default:\n System.out.println(\"Event not handled: \" + message.getEvent());\n }\n }", "title": "" }, { "docid": "5dfdf3f1552b2c21b9466f944fd85700", "score": "0.5466437", "text": "public interface OnMessageReceived {\n void messageReceived(int messageType, String dataReceived);\n }", "title": "" }, { "docid": "18846b1850a49da347fb8a3e93c28a28", "score": "0.54641795", "text": "@Override\n\t\tpublic void onMessage(Message message) {\n\t\t\tif (message instanceof TextMessage) {\n\t\t\t\tTextMessage msg = (TextMessage) message;\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tClass<?> msgClass = Class.forName(ObjectUtils.defaultIfNull(msg.getStringProperty(\"MessageClass\"), Object.class.getCanonicalName()));\n\t\t\t\t\t//validate if we can instantiate\n\t\t\t\t\tfor(JMSConsumerMessageHandler currMsgHandler : registeredHandlers){\n\t\t\t\t\t\tif(currMsgHandler.getMessageClass().equals(msgClass)){\n\t\t\t\t\t\t\tProcessingMessageIF chunk = (ProcessingMessageIF)om.readValue(msg.getText(), msgClass);\n\t\t\t\t\t\t\tcurrMsgHandler.handleMessage(chunk);\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\t\t//TODO : add support for ControlMessageIF\n\t\t\t\t\t\t//TODO : raise error if no handler can process it\n\t\t\t\t\t}\n\t\t\t\t} catch (JMSException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (JsonParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (JsonMappingException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "79b89d0d585b768f8ab3d39643e7d4b4", "score": "0.5450349", "text": "void processIncomingPacket(Packet packet);", "title": "" }, { "docid": "cfd4b0fc55d0830e48262c421ecc3f81", "score": "0.54389405", "text": "void afterServerMessageProcessed(Client client,ServerMessageType serverMessageType,String customMessageCommand,boolean isBinary,Object data);", "title": "" }, { "docid": "8492406177a18ba0771defd5a071cd93", "score": "0.5418395", "text": "public void run() {\n\t\tCSMessage messageFromClient;\n\t\twhile (!this.streamSocketWithClient.isClosed()) {// keep \"lestning\" while the client is connected\n\t\t\ttry {\n\t\t\t\tmessageFromClient = (CSMessage) inPut.readObject();// getting a message\n\t\t\t} catch (ClassNotFoundException | IOException e) {\n\t\t\t\tSystem.out.println(\"ERROR Occured: \" + e.getMessage());\n\t\t\t\tthis.close();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis.userName = messageFromClient.getName();// checking which service the client wants\n\t\t\tswitch (messageFromClient.getSort()) {\n\t\t\tcase \"connect\":\n\t\t\t\tconnect(messageFromClient);\n\t\t\t\tbreak;\n\t\t\tcase \"disconnect\":\n\t\t\t\tdisConnect(messageFromClient);\n\t\t\t\tbreak;\n\t\t\tcase \"allConnected\":\n\t\t\t\tallConnected();\n\t\t\t\tbreak;\n\t\t\tcase \"public\":\n\t\t\t\tmessageAll(messageFromClient);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tprivateMessage(messageFromClient);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tthis.close();// closing all thread \"functions\" if the stream socket with client is closed\n\t}", "title": "" }, { "docid": "bbf42f1457787cbd6bd3972c27292c2c", "score": "0.54161954", "text": "public void onMessage(Message m) {\n \n \t\t// Unpack the message, be careful when casting to the correct\n \t\t// message type. onMessage should not throw any application\n \t\t// exceptions.\n \t\ttry {\n \n \t\t\t// String msg = ((TextMessage)m).getText();\n \t\t\tObjectMessage msg = (ObjectMessage) m;\n \t\t\tAnalysisRequest request = (AnalysisRequest) msg.getObject();\n \t\t\t//System.out.println(\"AnalysisProcessor got request: \" + request);\n \t\t\tlogger.info(\"AnalysisProcessor got request: \" + request);\n \t\t\t\n \t\t\tif (request instanceof ClassComparisonRequest) {\n \t\t\t\tprocessClassComparisonRequest((ClassComparisonRequest) request);\n \t\t\t} else if (request instanceof HierarchicalClusteringRequest) {\n \t\t\t\tprocessHierarchicalClusteringRequest((HierarchicalClusteringRequest) request);\n \t\t\t} else if (request instanceof PrincipalComponentAnalysisRequest) {\n \t\t\t\tprocessPrincipalComponentAnalysisRequest((PrincipalComponentAnalysisRequest) request);\n \t\t\t}\n \n \t\t\t// sendResult(request);\n \n \t\t} catch (JMSException ex) {\n logger.error(\"AnalysisProcessor exception: \" + ex);\n logger.error(ex);\n //\t\t\tSystem.err.println(\"AnalysisProcessor exception: \" + ex);\n //\t\t\tex.printStackTrace();\n \n \t\t}\n \n \t}", "title": "" }, { "docid": "f16daef14487afbd1bbd19ad0376ab2f", "score": "0.54150015", "text": "protected void msgProcess(Message msg) {\n\n }", "title": "" }, { "docid": "f96788d423dd5f9e12e5ef98f3816726", "score": "0.5409886", "text": "public void processData() throws IOException {\n\t\tString[] data = null;\n\t\ttry {\n\t\t\tdata = recieveData();\n\n\t\t\tfor (String s : data) {\n\t\t\t\t// Client pings back\n\t\t\t\tif (s.equals(\"Ping\")) {\n\t\t\t\t\tlastPinged = System.currentTimeMillis();\n\t\t\t\t} else if (s.contains(\"Login: \")) {\n\t\t\t\t\tSystem.out.println(this.S + \" Sent: \" + s);\n\t\t\t\t\tlogIn(s);\n\t\t\t\t} else if (s.contains(\"Register: \")) {\n\t\t\t\t\tSystem.out.println(this.S + \" Sent: \" + s);\n\t\t\t\t\tregister(s);\n\t\t\t\t} else if (s.contains(\"Send Message: \")) {\n\t\t\t\t\tsendMessage(s);\n\t\t\t\t} else if (s.contains(\"Retrieve Messages: \")) {\n\t\t\t\t\tSystem.out.println(s);\n\t\t\t\t\tretrieveChatIDMessages(s);\n\t\t\t\t} else if (s.contains(\"Send Friend Message: \")) {\n\t\t\t\t\tSystem.out.println(s);\n\t\t\t\t\tsendMessageToFriend(s);\n\t\t\t\t} else if (s.contains(\"Retrieve Friend Messages: \")) {\n\t\t\t\t\tSystem.out.println(s);\n\t\t\t\t\tretrieveFriendMessages(s);\n\t\t\t\t} else if (s.contains(\"Request to add Friend: \")) {\n\t\t\t\t\tSystem.out.println(s);\n\t\t\t\t\trequestFriendship(s);\n\t\t\t\t} else if (s.contains(\"Retrieve ChatIDs: \")) {\n\t\t\t\t\tSystem.out.println(s);\n\t\t\t\t\tretrieveSavedChatIDS(s);\n\t\t\t\t} else if (s.contains(\"Add Chat ID: \")) {\n\t\t\t\t\tSystem.out.println(s);\n\t\t\t\t\taddChatID(s);\n\t\t\t\t} else if (s.contains(\"Remove Chat ID: \")) {\n\t\t\t\t\tSystem.out.println(s);\n\t\t\t\t\tremoveChatID(s);\n\t\t\t\t} else if (s.contains(\"Retrieve Friends: \")) {\n\t\t\t\t\tSystem.out.println(s);\n\t\t\t\t\tretrieveFriends(s);\n\t\t\t\t} else if (s.contains(\"Remove Friend: \")) {\n\t\t\t\t\tSystem.out.println(s);\n\t\t\t\t\tremoveFriend(s);\n\t\t\t\t} else if (s.contains(\"Accept Friend Request: \")) {\n\t\t\t\t\tSystem.out.println(s);\n\t\t\t\t\tacceptFriendRequest(s);\n\t\t\t\t} else if (s.contains(\"Decline Friend Request: \")) {\n\t\t\t\t\tSystem.out.println(s);\n\t\t\t\t\tdeclineFriendRequest(s);\n\t\t\t\t} else if (s.contains(\"Retrieve Friend Requests: \")) {\n\t\t\t\t\tSystem.out.println(s);\n\t\t\t\t\tretrieveFriendRequests(s);\n\t\t\t\t} else if (s.contains(\"Check Chatroom Notifications: \")) {\n\t\t\t\t\tSystem.out.println(s);\n\t\t\t\t\tcheckIfNewNotificationsExist(s);\n\t\t\t\t} else if (s.contains(\"Check Friend Notifications: \")) {\n\t\t\t\t\tSystem.out.println(s);\n\t\t\t\t\tcheckIfNewFriendNotificationsExist(s);\n\t\t\t\t} else if (s.equals(\"Delete recent cache\")) {\n\t\t\t\t\tmostRecentMsgID = 0;\n\t\t\t\t} else if (s.equals(\"Delete recent friend cache\")) {\n\t\t\t\t\tmostRecentFriendMsgID = 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (IOException | InterruptedException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\tSystem.out.println(\"Something went wrong when processing data... with client: \" + S.toString());\n\t\t\tthis.isConnected = false;\n\t\t\treturn;\n\t\t}\n\t}", "title": "" }, { "docid": "d5083e446d38ea3bb36119a414ae67db", "score": "0.5404845", "text": "private void processMessageClient(Data data){\n\t\t\tswitch (data.getType()){\n\t\t\t\tcase 0://normal communication\n\t\t\t\t\t//chatArea.append(\"Message received.\\n\");\n\t\t\t\t\tdisplayMessage(data.getfromName(),data.getfromID(),data.gettoNameIDString(),data.getMessage());\n\t\t\t\t\tbreak;\n\t\t\t\n\t\t\t\tcase 1://update username in userList\n\t\t\t\t\t\n\t\t\t\t\tupdateUserListClient(data.getfromName(), data.getfromID());\n\t \t\tupdateUserListDisplay(uList);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\t//get ID, receive current UserList\n\t \t\tuserID = data.getfromID();\n\t \t\tchatArea.append(\"\\n\\nWelcome to SSChat!\\n\\n\");\n\t \t\tchatArea.append(\"Your username is: \"+userName+\"\\n\");\n\t \t\tchatArea.append(\"Your ID is: [\"+userID+\"]\\n\\n\");\n\t \t\tuList = data.getUserList();\n\t \t\tupdateUserListDisplay(uList);\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3://terminate connection\n\t\t\t\t\tisConnected=false;\n\t\t\t\t\t//chatArea.append(\"Received Terminating signal from Server.\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4: //receive newly connected user info\n\t\t\t\t\tchatArea.append(data.getfromName()+\"[\"+data.getfromID()+\"] is online.\\n\");\n\t\t\t\t\tUser u = new User(data.getfromName(),data.getfromID());\n\t\t\t\t\tuList.add(u);\n\t \t\tupdateUserListDisplay(uList);\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5: //receive newly disconnected user info\n\t\t\t\t\tchatArea.append(data.getfromName()+\"[\"+data.getfromID()+\"] is offline.\\n\");\n\t\t\t\t\tint index=-1;\n\t\t\t\t\tfor(int i=0; i< uList.size();i++){\n\t\t\t\t\t\tif((uList.get(i).getUserID())==data.getfromID()){\n\t\t\t\t\t\t\tindex=i;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tuList.remove(index);\n\t \t\tupdateUserListDisplay(uList);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tchatArea.append(\"Something unexpected has happened. Please Reboot.\\n\");\t\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "052fd1781a44c16231bf10742d3e7c51", "score": "0.54024", "text": "@Override\n\tpublic void onReceivedMessage(String msg) {\n\t\tthis.processMessage(msg);\n\t}", "title": "" }, { "docid": "5d139766a43d50fe1de65a3d56ae2c25", "score": "0.5399029", "text": "@Override\n\tpublic void onDataReceived() {\n\t\tMspMsg request = lowerLayer.readData();\n\t\tif (null == request)\n\t\t\treturn;\n\n\t\thandleMessage(request);\n\t}", "title": "" }, { "docid": "6fb2b52174be74ccd77daf20c5fe7e29", "score": "0.53982764", "text": "private void processMessage(Message message) {\r\n\t\tlog.debug(\"message class=\" + message.getClass().getName());\r\n\t\t\r\n\t\tif(message instanceof UpdateMessage){\t\t\r\n\t\t\tprocessUpdate(message);\r\n\t\t}else if(message instanceof QueryMessage){\t\r\n\t\t\tprocessQuery(message);\t\t\t\r\n\t\t}else if(message instanceof MeasureMessage){\r\n\t\t\tStockTicks stockTicks = null;\r\n\t\t\tObject content = message.getBody().getAny();\r\n\t\t\tif(Message.isPojo(content)){\r\n\t\t\t\tlog.debug(\"StockConsumer.processMessage(): Message Received....\");\r\n\t\t\t\treturn;\r\n\t\t\t}else{\r\n\t\t\t\ttry{\r\n\t\t\t\t\tJAXBContext jc = JAXBContext.newInstance(\"org.netbeams.dsp.demo.stock\",\r\n\t\t\t\t\t\t\tStockTicks.class.getClassLoader());\r\n\t\t\t\t\tUnmarshaller unmarshaller = jc.createUnmarshaller();\r\n\t\t\t\t\tstockTicks = (StockTicks)unmarshaller.unmarshal((Node)content);\r\n\t\t\t\t}catch(JAXBException e){\r\n\t\t\t\t\tlog.error(\"Error unmarhalling the message\", e);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor(StockTick tick: stockTicks.getStockTick()){\r\n\t\t\t\tlog.debug(\"Symble:\" + tick.getSymbol() + \" \" + \"Value:\" + tick.getValue());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ff8552c027b62730a3ee0090d8f7b4b8", "score": "0.5396559", "text": "public void mesageReceived();", "title": "" }, { "docid": "5ccf4cd457d0a58f7d61c7684dc13219", "score": "0.5396534", "text": "protected abstract List<E> onDataReceived(M data);", "title": "" }, { "docid": "0d0408da6be34bf5485a4f9596ed6440", "score": "0.538577", "text": "public void processLogicOnMessage(XMWPLogic logic,Message message) throws XMWPException{\n\n for(Element elt : request){\n logic.onReceived(elt, message);\n }\n\n for(Element elt : inform){\n logic.onReceived(elt, message);\n }\n }", "title": "" }, { "docid": "0e4924f6c406f294e3f018b5a8d0d1d5", "score": "0.53828967", "text": "void beforeServerMessageProcessed(Client client,ServerMessageType serverMessageType,String customMessageCommand, boolean isBinary,Object data);", "title": "" }, { "docid": "a08ef3d4277a00c0cf517a3d4a2daa51", "score": "0.53778523", "text": "@Override\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n switch (msg.what) {\n case 0x001:\n Bundle bundle1 = msg.getData();\n String result1 = bundle1.getString(\"result\");\n parseData(result1);\n break;\n\n case 0x002:\n Bundle bundle2 = msg.getData();\n String result2 = bundle2.getString(\"result\");\n basketBallParseData(result2);\n break;\n\n case 0x004:\n getImmediateData();\n break;\n\n default:\n break;\n }\n }", "title": "" }, { "docid": "a12d11d1326b97fbe351ce837fca7a39", "score": "0.5376504", "text": "public void processPacket(INetHandlerPlayClient handler) {\n/* 50 */ handler.handleCollectItem(this);\n/* */ }", "title": "" }, { "docid": "e691971dd544afef36eabdb8f0c4b53a", "score": "0.53715813", "text": "public void processPacket(Packet packet) {\n\t\t\tMessage message = (Message)packet;\n\t\t\tString body = message.getBody();\n\t\t\tif (body != null && body.startsWith(\"{\") || body.trim().startsWith(\"{\")) {\n\t\t\t\t// the body contains a JSON object\n\t\t\t\tObjectNode json = null;\n\t\t\t\tJSONResponse response = null;\t\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tjson = JOM.getInstance().readValue(body, ObjectNode.class);\n\t\t\t\t\tif (isResponse(json)) {\n\t\t\t\t\t\t// this is a response\n\t\t\t\t\t\t// Find and execute the corresponding callback\n\t\t\t\t\t\tString id = json.has(\"id\") ? json.get(\"id\").asText() : null;\n\t\t\t\t\t\tAsyncCallback<JSONResponse> callback = \n\t\t\t\t\t\t\t\t(id != null) ? callbacks.pull(id) : null;\n\t\t\t\t\t\tif (callback != null) {\n\t\t\t\t\t\t\tcallback.onSuccess(new JSONResponse(body));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t// TODO: is it needed to send this error back?\n\t\t\t\t\t\t\tthrow new Exception(\"Callback with id '\" + id + \"' not found\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (isRequest(json)) {\n\t\t\t\t\t\t// this is a request\n\t\t\t\t\t\tJSONRequest request = new JSONRequest(json);\n\t\t\t\t\t\tresponse = agentFactory.invoke(agentId, request);\n\t\t\t\t\t\t// TODO: replace JSONRPC.invoke with agentFactory.invoke(class, id)\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tthrow new Exception(\"Request does not contain a valid JSON-RPC request or response\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception err) {\n\t\t\t\t\t// generate JSON error response\n\t\t\t\t\tJSONRPCException jsonError = new JSONRPCException(\n\t\t\t\t\t\t\tJSONRPCException.CODE.INTERNAL_ERROR, err.getMessage());\n\t\t\t\t\tresponse = new JSONResponse(jsonError);\n\t\t\t\t}\n\n\t\t\t\t// send a response (when needed)\n\t\t\t\tif (response != null) {\n\t\t\t\t\tString from = StringUtils.parseBareAddress(message.getFrom());\n\t\t\t\t\tMessage reply = new Message();\n\t\t\t\t\treply.setTo(from);\n\t\t\t\t\treply.setBody(response.toString());\n\t\t\t\t\tconn.sendPacket(reply);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "92c6ef4860e2ee1fdba3b45ebf3e848c", "score": "0.5370318", "text": "void dispatch(ProtocalDetectable handler, NetworkUser client);", "title": "" }, { "docid": "1fe18a3e8552f6753a0d0fa8fd646441", "score": "0.53690225", "text": "void onMessageBatchReady(ArrayList<MOKMessage> messages);", "title": "" }, { "docid": "538e81e6cf0b780e0de234b2b10f819f", "score": "0.53510153", "text": "protected void onNotify()\n {\n // import com.tangosol.io.ByteArrayReadBuffer;\n // import com.tangosol.net.messaging.ConnectionException;\n // import com.tangosol.util.ExternalizableHelper;\n // import java.io.DataInput;\n // import java.io.IOException;\n \n TcpInitiator manager = (TcpInitiator) get_Module();\n TcpInitiator.TcpConnection connection = (TcpInitiator.TcpConnection) get_Parent();\n DataInput in = connection.getDataInputStream();\n \n while (!isExiting())\n {\n try\n {\n int cb = ExternalizableHelper.readInt(in); // Message length\n manager.enforceMaxIncomingMessageSize(cb);\n \n if (cb < 0)\n {\n throw new IOException(\"Received a message with a negative length\");\n }\n else if (cb == 0)\n {\n throw new IOException(\"Received a message with a length of zero\");\n }\n else\n {\n byte[] ab = new byte[cb];\n in.readFully(ab);\n \n // update stats\n connection.setStatsBytesReceived(connection.getStatsBytesReceived() + cb);\n connection.setStatsReceived(connection.getStatsReceived() + 1);\n \n // dispatch Message\n manager.receive(new ByteArrayReadBuffer(ab), connection);\n }\n }\n catch (IOException e)\n {\n // see TcpConnection.closeInternal()\n if (!isExiting())\n {\n try\n {\n connection.close(\n /*fNotify*/ false,\n new ConnectionException(e, connection),\n /*fWait*/ false);\n }\n catch (Exception ee) {}\n stop();\n }\n }\n }\n }", "title": "" }, { "docid": "797ac09b583842b64913c05159081317", "score": "0.53485745", "text": "public boolean parse(Object tag, NdefMessage[] ndefMsgs, Handler handler, Context context, int timeout);", "title": "" }, { "docid": "7c545853b9e966614014f9ac46ffc7ed", "score": "0.5345206", "text": "public void receiveMessage(String message) {\n log.debug(\"Received message for VSI \" + vsiId + \"\\n\" + message);\n\n try {\n ObjectMapper mapper = new ObjectMapper();\n EngineMessage em = mapper.readValue(message, EngineMessage.class);\n EngineMessageType type = em.getType();\n\n switch (type) {\n case INSTANTIATE_VSI_REQUEST: {\n log.debug(\"Processing VSI instantiation request.\");\n InstantiateVsiRequestMessage instantiateVsRequestMsg = (InstantiateVsiRequestMessage) em;\n processInstantiateRequest(instantiateVsRequestMsg);\n break;\n }\n\n case MODIFY_VSI_REQUEST: {\n log.debug(\"Processing VSI termination request.\");\n ModifyVsiRequestMessage modifyVsRequestMsg = (ModifyVsiRequestMessage) em;\n processModifyRequest(modifyVsRequestMsg);\n break;\n }\n\n case TERMINATE_VSI_REQUEST: {\n log.debug(\"Processing VSI termination request.\");\n TerminateVsiRequestMessage terminateVsRequestMsg = (TerminateVsiRequestMessage) em;\n processTerminateRequest(terminateVsRequestMsg);\n break;\n }\n\n case NOTIFY_NSI_STATUS_CHANGE: {\n log.debug(\"Processing NSI status change notification.\");\n NotifyNsiStatusChange notifyNsiStatusChangeMsg = (NotifyNsiStatusChange) em;\n processNsiStatusChangeNotification(notifyNsiStatusChangeMsg);\n break;\n }\n case RESOURCES_GRANTED: {\n log.debug(\"Processing resources granted notification.\");\n NotifyResourceGranted notifyResourceGranted = (NotifyResourceGranted) em;\n processResourcesGrantedNotification(notifyResourceGranted);\n break;\n }\n\n default:\n log.error(\"Received message with not supported type. Skipping.\");\n break;\n }\n\n } catch (JsonParseException e) {\n manageVsError(\"Error while parsing message: \" + e.getMessage());\n } catch (JsonMappingException e) {\n manageVsError(\"Error in Json mapping: \" + e.getMessage());\n } catch (IOException e) {\n manageVsError(\"IO error when receiving json message: \" + e.getMessage());\n }\n }", "title": "" }, { "docid": "db0f0364932d4d23954c38a036f49b34", "score": "0.53447914", "text": "@Override\n public void handleMessage(Message msg) {\n }", "title": "" }, { "docid": "db0f0364932d4d23954c38a036f49b34", "score": "0.53447914", "text": "@Override\n public void handleMessage(Message msg) {\n }", "title": "" }, { "docid": "2c7d562da54a31c25feb11077b817e37", "score": "0.5336019", "text": "public void receiveMessage(HashMap<String,List<String>> message) {\n Track trackRsp=null;\n Pricing priceRsp=null;\n Shipments shipRsp=null;\n Track track=null;\n Details response=new Details();\n if(message!=null) {\n //get value from HashMap message\n List<String> pricingList = message.get(\"pricing\");\n List<String> trackList =trackList = message.get(\"track\");\n List<String> shipmentsList = message.get(\"shipments\");\n\n //Add list of string to queue\n trackQueue.addAll(trackList);\n shipQueue.addAll(shipmentsList);\n priceQueue.addAll(pricingList);\n\n\n\n //Invoke Respective APIs when count has reached 5\n if (trackQueue.size() >= 5) {\n trackQueue.drainTo(trackList,5);\n trackRsp = getTrackingDetails(trackList);\n }\n\n if (priceQueue.size() >= 5) {\n priceQueue.drainTo(pricingList,5);\n priceRsp = getPricingDetails(pricingList);\n\n }\n if (shipQueue.size() >= 5)\n {\n shipQueue.drainTo(shipmentsList, 5);\n shipRsp = getShipmentDetails(shipmentsList);\n }\n\n\n if(trackRsp!=null&&priceRsp!=null&&shipRsp!=null)\n {\n response.setPricing(priceRsp);\n response.setTrack(trackRsp);\n response.setShipments(shipRsp);\n //publish event when response is received\n responsePublisher.publishChange(response);\n\n }else\n {\n throw new ApiException(HttpStatus.INTERNAL_SERVER_ERROR,\" call to one/all api failed\");\n }\n\n }\n }", "title": "" }, { "docid": "b3c5d058082dc8e7af6da47bb26ddcd8", "score": "0.5335971", "text": "public void processMessage(ClientRequestWithAgreement request) \r\n throws CommunicationException;", "title": "" }, { "docid": "1e8d88745f85ebb6a74f98a2302db0df", "score": "0.5328987", "text": "public void messageReceived(ChatMessage cm);", "title": "" }, { "docid": "48d4b19541c595977c5561eaaf4e80a5", "score": "0.53198135", "text": "protected void handleRead(ClientHandler clientHandler) {\n \t// Call clientHandler.handleRead one time will just generate one Packet.\n \t// If there are more Packet, we need to call it multiple times.\n \twhile (clientHandler.handleRead()) {\n \t\tcontinue;\n \t}\n }", "title": "" }, { "docid": "5c574b59ed939fa4c3eb5df4adab58b8", "score": "0.5319013", "text": "public MessageProcessResult processMessage(MessageWrapper msg) {\n\n\tif (compositeRules != null) {\n\t compositeRules.insertMessageRecievedAtContractEvent(msg, id); // new\n\t // event\n\t}\n\n\tMessageProcessResult mpr = null;\n\t// Iterate thru terms and process message\n\tfor (Term t : termList) {\n\t if (msg.getOperationName().equalsIgnoreCase(\n\t\t t.getOperation().getName())) {\n\t\tlog.info(\"Contract 3 . processing\" + t.getId());\n\t\tmpr = t.processMessage(msg);\n\t }\n\t}\n\t// Set the contract\n\tmpr.setContract(this);\n\treturn mpr;\n }", "title": "" }, { "docid": "2fd1951b68916ff055c491cfd4cd2259", "score": "0.53130347", "text": "@Override\n protected Void doInBackground(String... strings) {\n MessageServer server = serverReference.get();\n if (server == null) {\n return null;\n }\n MessageClient client = clientReference.get();\n if (client != null) {\n server.processMessage(strings[0], client);\n }\n return null;\n }", "title": "" }, { "docid": "4d6edc0cca957e5839fff0b622851dfd", "score": "0.53121156", "text": "void onReceived(String source, Message message);", "title": "" }, { "docid": "1ebda3bbad48a5fa2b3dae3124f2da77", "score": "0.53070384", "text": "public static void clientHandler()\n throws IOException {\n BufferedReader scn = new BufferedReader\n (new InputStreamReader(System.in));\n\n String command;\n String[] cmdParts;\n\n /*reads next line from user*/\n while((command = scn.readLine()) != null) {\n try {\n cmdParts = command.split(\"\\\\s\");\n ClientCommand cmd = ClientCommand.getByCmd(cmdParts);\n\n switch(cmd) {\n case CONNECT:\n connectHandler(cmdParts);\n break;\n case DOWNLOAD:\n downloadHandler(cmdParts);\n break;\n case EXIT:\n System.out.println(msgCloseNode);\n logger.info(msgCloseNode);\n exit(0);\n break;\n case SEARCH:\n searchHandler(command);\n break;\n }\n } catch(IOException|BadAttributeValueException e) {\n logger.log(Level.WARNING, errorLocClient,\n e.fillInStackTrace());\n }\n }\n }", "title": "" }, { "docid": "bb304040376343dff9142388ca596824", "score": "0.53005254", "text": "@Override\r\n\tpublic void processChildMessage(MessageVO vo) {\n\t\t\r\n\t}", "title": "" }, { "docid": "3a92289f2458c82946c3c9ae4d7cc7b5", "score": "0.5300177", "text": "void read(String msg) {\n \t\tchar startsWith = ' ';\n \t\tif (msg.length() > 0) startsWith = msg.charAt(0);\n \n \t\tString[] tokens = msg.split(\"\\\\|\");\n \n \t\tswitch(startsWith){\n \n // Async Client Joined\n \t\tcase 'A':\n \t\t\tif (parent.verbose) {\n \t\t\t\tSystem.out.println(\"Raw receive: \" + msg);\n \t\t\t}\n \t\t\tclientID = Integer.parseInt(tokens[1]);\n \n \n \t\t\t// We are asynchronous\n \t\t\tisAsynch = true;\n \n \t\t\t// Let's see if we want to get messages\n \t\t\tif (tokens.length > 3) {\n \t\t\t\ttry {\n \t\t\t\t\tasynchReceive = Boolean.parseBoolean(tokens[3]);\n \t\t\t\t} catch (Exception e) {\n \t\t\t\t\tSystem.out.println(\"Malformed boolean for synch receive\");\n \t\t\t\t}\n \t\t\t}\n \n \t\t\tSystem.out.println(\"Connecting asynch client \" + clientID + \" receiver: \" + asynchReceive);\n \n \t\t\t// I don't think we need to bother keep a reference to this object\n \t\t\t// unless it needs to receive messages, ah but let's do it anyway\n \t\t\tparent.addConnection(this);\n \n \t\t\tbreak;\n \n // Sync client joined \n \t\tcase 'S':\n \t\t\t\n \t\t\t// Making the decision that if the server is paused and there is a new connection\n \t\t\t// It starts again\n \t\t\t/*if (parent.paused) {\n \t\t\t\tparent.paused = false;\n \t\t\t}*/\n \t\t\t\n \t\t\tif (parent.verbose) {\n \t\t\t\tSystem.out.println(\"Raw receive: \" + msg);\n \t\t\t}\n \t\t\tclientID = Integer.parseInt(tokens[1]);\n \n \t\t\tparent.addConnection(this);\n \n \t\t\tSystem.out.println(\"Connecting synch client \" + clientID);\n \t\t\tint total = parent.totalConnections();\n \n \t\t\t// We should only wait the *first* time if we are told to wait for everyone \n \t\t\t// otherwise we can just reset if someone has disconnected and reconnected\n \t\t\tif (parent.waitForAll && !parent.allConnected) {\n \t\t\t\tparent.allConnected = (total == parent.numRequiredClients);\n \t\t\t\tif (parent.allConnected) {\n \t\t\t\t\tparent.triggerFrame(false);\n \t\t\t\t}\n \t\t\t} else {\n \t\t\t\tparent.triggerFrame(true);\n \t\t\t}\n \n \t\t\tbreak;\n \n // Done rendering \n \t\tcase 'D': \n \t\t\tif (!parent.waitForAll || parent.allConnected) {\n \t\t\t\tclientID = Integer.parseInt(tokens[1]);\n \t\t\t\tint fc = Integer.parseInt(tokens[2]);\n \t\t\t\tif (parent.verbose) {\n \t\t\t\t\tSystem.out.println(\"Client: \" + clientID + \" says done with: \" + fc + \" server count: \" + parent.frameCount);\n \t\t\t\t}\n \t\t\t\tif (fc == parent.frameCount) {\n \t\t\t\t\tparent.setReady(clientID);\n \t\t\t\t}\n \t\t\t}\n \t\t\tbreak;\n \n // DaTa message was received \n \t\tcase 'T': \n \t\t\tif (parent.verbose) {\n \t\t\t\tSystem.out.println(\"Adding message to next frameEvent: \" + clientID + \",\" + tokens[1]);\n \t\t\t}\n String message = tokens[1];\n ArrayList<Integer> toClientIDs = new ArrayList<Integer>();\n if (tokens.length > 2) {\n // Add the ints\n String clientIDs = tokens[2];\n if (clientIDs.length() > 0) {\n ArrayList<String> ids = new ArrayList<String>(Arrays.asList(clientIDs.split(\",\")));\n for(String id : ids) {\n toClientIDs.add(Integer.parseInt(id));\n }\n }\n } else {\n toClientIDs = parent.receivingClientIDs();\n } \n parent.addMessage(message, clientID, toClientIDs);\n \t\t\tbreak;\n \n // Pause\n \t\tcase 'P':\n \t\t\tparent.paused = !parent.paused;\n \t\t\tif (parent.verbose) {\n \t\t\t\tif (parent.paused){ \n \t\t\t\t\tSystem.out.println(\"Client \" + clientID + \" has asked to pause.\");\n \t\t\t\t} else {\n \t\t\t\t\tSystem.out.println(\"Client \" + clientID + \" has asked to unpause.\");\n \n \t\t\t\t}\n \t\t\t}\n \t\t\t// If we are unpausing and everyone is ready go ahead onto next frame\n \t\t\t// This should probably be refactored and combined more nicely with what happens in setReady()\n \t\t\tif (!parent.paused && parent.isReady()) {\n \t\t\t\tparent.frameCount++;\n \t\t\t\tparent.triggerFrame(false);\n \t\t\t}\n \t\t\tbreak;\n \n // Reset\n case 'R': \n parent.paused = false;\n parent.triggerFrame(true);\n break;\n \n \t\t}\n \t}", "title": "" }, { "docid": "deb93a7dad39c089e58a3454eddbb5af", "score": "0.5299081", "text": "void onBinaryMessage(byte[] message);", "title": "" }, { "docid": "90abaad8293624b94180b94c2715f36c", "score": "0.5297004", "text": "public void messageReceived (short messageType);", "title": "" }, { "docid": "3a421c57548538a9f8eed3855f9a9f63", "score": "0.52882016", "text": "@Override\n public void run() {\n if (message != null && senderAddress != null)\n processMessage(message, senderAddress);\n }", "title": "" }, { "docid": "577f9be4af53b12a31ceb4f81d44dc62", "score": "0.52852994", "text": "protected void processTeleMethod(TeleMethodElement teleMethod) {\n\n }", "title": "" }, { "docid": "1fc0dd51c438da6c69062a8f77cd97cb", "score": "0.52826184", "text": "public void onMessage(Message message) {\r\n log.debug(\"Received message from queue [\" + message + \"]\");\r\n\r\n\t\t/* The message must be of type TextMessage */\r\n if (message instanceof TextMessage) {\r\n try {\r\n String msgText = ((TextMessage) message).getText();\r\n String corID = ((TextMessage) message).getJMSCorrelationID();\r\n\r\n log.debug(\"About to process message: \" + msgText);\r\n byte[] resp = getResponse();\r\n\r\n\t\t\t\t/* call message sender to put message onto second queue */\r\n messageSender.sendMessage(resp, corID);\r\n\r\n } catch (Exception jmsEx) {\r\n String errMsg = \"An error occurred extracting message\";\r\n log.error(errMsg, jmsEx);\r\n }\r\n } else {\r\n String errMsg = \"Message is not of expected type TextMessage\";\r\n log.error(errMsg);\r\n throw new RuntimeException(errMsg);\r\n }\r\n }", "title": "" }, { "docid": "19a73d1e44da3aac4e08114abb497bfb", "score": "0.52751577", "text": "@Override\n protected void onTextMessage(CharBuffer arg0) throws IOException {\n\t\t\tSystem.out.println(\"message received: \" + arg0.toString());\n\t\t\t\n\t\t Message message = gson.fromJson(arg0.toString(), Message.class);\n\n\t\t if (message.action != null && message.action.equals(\"compile\")){\n\t\t \tcompile(\"demo\", message.content);\n\t\t } else {\n\t\t \tSystem.err.println(\"unknown action: [\" + message.action + \"]\");\n\t\t \tsendErrorMessage(\"unknown action: [\" + message.action + \"]\");\n\t\t }\n//\t\t String query = arg0.toString();\n//\t\t StringReader sr = new java.io.StringReader(query);\n//\t\t Reader r = new BufferedReader(sr);\n//\t\t TritonParser tritonParser;\n//\t\t tritonParser = new TritonParser(r);\n//\t\t ASTStart root;\n// try {\n//\t root = tritonParser.Start();\n//\n//\t\t\t ResourceManager resourceManager = ResourceManager.getInstance();\n//\t\n//\t\t\t LogicPlanVisitor logicPlanVisitor = new LogicPlanVisitor(resourceManager);\n//\t\n//\t\t\t root.jjtAccept(logicPlanVisitor, resourceManager);\n//\t\t\t//System.out.println(resourceManager.getStreamByName(\"s1\"));\n//\t\n//\t\t\t sendInforMessage(\"Generating logic plan...\");\n//\t\t\t List<BaseLogicPlan> logicPlanList = logicPlanVisitor.getLogicPlanList();\n//\t\n//\t\t\t sendInforMessage(\"Generating trident code...\");\n//\t\t\t String className = \"Sample\";\n//\t\t\t CodeGenerator codeGen = new CodeGenerator(logicPlanList, className);\n//\t\n//\t\t\t JavaProgram program = codeGen.generate();\n//\t\n//\t\t\t sendInforMessage(\"Translating trident code into java code...\");\n//\t\t\t\tString res = program.translate();\n//\t\n//\t\t\t\tsendInforMessage(\"Generating packge...\");\n//\t\t\t\tsendInforMessage(\"Compile success!\");\n//\t\t\t\t\n//\t\t\t\tMessage message = new Message(\"server\", \"result\", res);\n//\t\t\t\tsendMessage(gson.toJson(message));\n//\t\t\t\t\n// } catch (ParseException e) {\n//\t // TODO Auto-generated catch block\n//\t e.printStackTrace();\n// }\n }", "title": "" }, { "docid": "ea0e6e3114f4eec51b3ce3712c7d0b5f", "score": "0.52747697", "text": "public void process(){\n\t\ttry{\n\t\t\tbr = new BufferedReader(new InputStreamReader(this.workerSocket.getInputStream()));\n\t\t\tString line = br.readLine();\n\t\t\tString[] words = line.split(\" \");\n\t\t\t\n\t\t\twhile(!line.isEmpty()){\n line = br.readLine();\n\t\t\t}\n\t\t\t\n\t\t\tswitch (words[0]){\n\t\t\t\tcase \"GET\":\n\t\t\t\tcase \"POST\":\n\t\t\t\tcase \"PUT\":\n\t\t\t\tcase \"DELETE\":\n\t\t\t\t\tsendResponse();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tbr.close();\n\t\t\tworkerSocket.close();\n\t\t\t\n\t\t}catch(IOException ee){\n\t\t\tSystem.out.println(\"Connection time out\");\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(\"Process Exception: \" + e.getMessage());\n\t\t\ttry {\n\t\t\t\tworkerSocket.close();\n\t\t\t\tbr.close();\n\t\t\t} catch (IOException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "6f477ed73aa037a2889724d4072bd3d6", "score": "0.52635926", "text": "public void handleMessage(Message message) {\n switch (message.type) {\n // handle any logging or special actions\n case DISCONNECT:\n debugPrint(String.format(\"Disconnected: %s%n\", message));\n sendEvent(message);\n break;\n case ERROR:\n debugPrint(String.format(\"Error message: %s%n\", message));\n sendEvent(message);\n break;\n case INIT_CONNECTION:\n debugPrintln(message.toString());\n connectionInfo = (ConnectionMessage) message;\n sendEvent(message);\n break;\n case CHAT:\n debugPrintln(\"Chat message: \" + message);\n sendEvent(message);\n break;\n case RESULT:\n resultQueue.add((ResultMessage) message);\n break;\n case INFO_QUERY:\n case CHANGE_INFO:\n throw new UnsupportedOperationException(\"Info requests are handled by the server here\");\n case MOVE:\n Move move = ((MoveMessage) message).move;\n MoveResult result = dispatcher.runMove(((MoveMessage) message).move);\n sendMessage(new MoveResultMessage(move, result));\n break;\n case CONNECTION_REQUEST:\n System.err.println(\"Server event received on client\");\n break;\n case GAME_OVER:\n debugPrint(\"Game over\");\n sendEvent(message);\n break;\n case BOARD:\n debugPrint(\"Board received\");\n sendEvent(message);\n break;\n case READY:\n debugPrint(\"Partner ready to play\");\n sendEvent(message);\n }\n }", "title": "" }, { "docid": "86cd80490f42834fc4a2cf378168e902", "score": "0.5261308", "text": "public abstract void onTextReceived(String message);", "title": "" }, { "docid": "94d5473a996575d451e87c52218dd4c3", "score": "0.5256911", "text": "@Override\n\t\t\tpublic void callbackMethod(Map<String,List<String>> headerField, String messages) {\n\t\t\t\ttry {\n\t\t\t\t\tfor (String message : messages.split(\"\\n\")){\n\t\t\t\t\t\tJSONParser Jpar = new JSONParser();\n\t\t\t\t\t\tJSONObject Jobj = (JSONObject) Jpar.parse(message);\n\t\t\t\t\t\tString srcMRN = (String) Jobj.get(\"srcMRN\");\n\t\t\t\t\t\tString msg = (String) Jobj.get(\"msg\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(\"srcMRN: \"+srcMRN);\n\t\t\t\t\t\tSystem.out.println(\"msg: \"+msg);\n\t\t\t\t\t}\n\t\t\t\t} catch (ParseException 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\t\n\t\t\t}", "title": "" }, { "docid": "ee007b67ec4c26cc37bca9a95e193262", "score": "0.5255428", "text": "public void interpretMessage(Message msg){\n }", "title": "" }, { "docid": "47bf720a15f46e43738161a0c3cdf35a", "score": "0.5253809", "text": "@Override\r\n\t\tpublic void handleMessage(Message msg) {\n\t\t\t\r\n\t\t\tswitch (msg.what) {\r\n\t\t\tcase SUCCESS:// 网络请求成功后回调\r\n\t\t\t\tcallBack.preccess(msg.obj, true);\r\n\t\t\t\t\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase FAIL:// 网络请求失败后回调\r\n\t\t\t\t\r\n\t\t\tcase ERROR:\r\n\t\t\t\tcallBack.preccess(msg.obj, false);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tsuper.handleMessage(msg);\r\n\t\t}", "title": "" }, { "docid": "c8c8120a43941dafba23995080735b77", "score": "0.52480906", "text": "@Override\n\tpublic void processMessageRead(QBGroupChat sender, String messageID) {\n\t\tsuper.processMessageRead(sender, messageID);\n\t}", "title": "" }, { "docid": "2b7db25b4a2057a1c31d1964ab2c8d08", "score": "0.5245833", "text": "@SuppressWarnings(\"unused\")\n\tpublic void mainPageIncomingMessage(){\n byte[] buffer = new byte[1024];\n int bytes = 0;\n\t\ttry {\n\t\t\twhile((bytes = mmInStream.read(buffer)) != -1){\n\t\t\t\tHome.incomingMessages(buffer);\n\t\t\t}\n\t\t\tmmInStream.close();\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}", "title": "" }, { "docid": "433d69b8adea604841cb959a69a39034", "score": "0.5241502", "text": "public void messageReceived(String msg);", "title": "" } ]